/* Základ převzatý z původního Atlasu mobility, přebarvený do ITFIT. */
@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}
:root {
  color-scheme: dark;
  --bg: #171516;
  --sidebar: #131112;
  --panel: #1d1a1b;
  --card: #242122;
  --line: #433b3e;
  --muted: #c4bdc0;
  --text: #ffffff;
  --coral: #ff7476;
  --mint: #ff7476;
  --red: #fe2d2f;
  --red-hover: #ff5557;
  --on-red: #100b0d;
}

* {
  box-sizing:border-box;
}

body {
  background:var(--bg);
  color:var(--text);
  margin:0;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-size:16px;
  line-height:1.5;
}

button,input,select,textarea {
  font:inherit;
}

button,a,input,select,textarea {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:default;
  opacity:.45;
}

button {
  color:inherit;
}

:is(button:focus-visible,a:focus-visible,summary:focus-visible) {
  outline:2px solid var(--coral);
  outline-offset:4px;
}

input:focus,textarea:focus,select:focus {
  outline:2px solid var(--coral);
  outline-offset:2px;
}

a {
  color:inherit;
}

button {
  background:0 0;
  border:0;
}

h1,h2,h3,p {
  margin:0;
}

h1,h2,h3 {
  line-height:1.2;
}

h1 {
  letter-spacing:-1.8px;
  font-size:clamp(32px,3.45vw,51px);
  font-weight:600;
}

h2 {
  letter-spacing:-.4px;
  font-size:22px;
  font-weight:600;
}

h3 {
  font-size:18px;
  font-weight:600;
}

.muted {
  color:var(--muted);
}

.small-copy {
  font-size:14px;
}

.app-shell {
  min-height:100vh;
}

.sidebar {
  background:var(--sidebar);
  border-right:1px solid var(--line);
  z-index:20;
  flex-direction:column;
  width:228px;
  padding:42px 20px 0;
  display:flex;
  position:fixed;
  inset:0 auto 0 0;
}

.brand {
  text-align:left;
  padding:0 12px 47px;
}

.brand>span {
  letter-spacing:-1.7px;
  font-size:34px;
  font-weight:800;
  line-height:1;
  position:relative;
}

.brand-light {
  font-weight:400;
}

.brand i {
  background:var(--coral);
  width:5px;
  height:24px;
  margin-left:9px;
  display:inline-block;
  transform:skew(-19deg);
}

.brand small {
  letter-spacing:3.2px;
  color:var(--muted);
  margin-top:11px;
  font-size:12px;
  font-weight:600;
  display:block;
}

.sidebar-label {
  letter-spacing:1.1px;
  color:#9b9094;
  margin:0 12px 19px;
  font-size:12px;
}

.nav-item {
  text-align:left;
  color:#bfb8bb;
  border-radius:7px;
  align-items:center;
  gap:12px;
  width:100%;
  margin-bottom:7px;
  padding:13px 12px;
  font-size:14px;
  transition:background .15s;
  display:flex;
}

.nav-item:hover {
  background:#2d282a;
}

.nav-item.active {
  color:#f3f2f2;
  background:#393436;
}

.nav-item.active svg {
  color:var(--coral);
}

.nav-item em {
  color:#c8c1c4;
  background:#ffffff0c;
  border-radius:4px;
  margin-left:auto;
  padding:1px 7px;
  font-size:12px;
  font-style:normal;
}

.side-divider {
  background:var(--line);
  height:1px;
  margin:24px 12px 20px;
}

.sidebar-note {
  margin:auto 12px 30px;
  padding-top:55px;
}

.mini-mark {
  color:var(--coral);
  margin-bottom:18px;
  display:flex;
}

.sidebar-note strong {
  letter-spacing:-.5px;
  font-size:21px;
  font-weight:500;
  line-height:1.3;
}

.sidebar-note p {
  color:#a59a9e;
  margin-top:14px;
  font-size:12px;
}

.sidebar-bottom {
  border-top:1px solid var(--line);
  align-items:center;
  gap:10px;
  padding:23px 0;
  display:flex;
}

.avatar {
  color:#dbd7d9;
  background:#494144;
  border-radius:50%;
  place-items:center;
  width:33px;
  height:33px;
  font-size:12px;
  display:grid;
}

.sidebar-bottom strong {
  font-size:12px;
  font-weight:500;
  display:block;
}

.sidebar-bottom small {
  color:var(--muted);
  font-size:12px;
}

.main-shell {
  margin-left:228px;
}

.topbar {
  border-bottom:1px solid var(--line);
  justify-content:space-between;
  align-items:center;
  gap:16px;
  height:83px;
  padding:0 42px;
  display:flex;
}

.breadcrumb {
  white-space:nowrap;
  align-items:center;
  gap:15px;
  font-size:13px;
  display:flex;
}

.breadcrumb>span:first-of-type {
  color:#aea4a8;
}

.breadcrumb b {
  font-weight:400;
}

.crumb-line {
  color:#685d61;
}

.top-actions {
  align-items:center;
  gap:22px;
  display:flex;
}

.saved-state {
  color:var(--muted);
  white-space:nowrap;
  align-items:center;
  gap:7px;
  font-size:12px;
  display:flex;
}

.saved-state svg {
  color:#afa5a9;
}

.button {
  white-space:nowrap;
  border:1px solid #544b4f;
  border-radius:6px;
  justify-content:center;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:12px 19px;
  font-size:14px;
  font-weight:500;
  line-height:1.4;
  transition:background .15s;
  display:inline-flex;
}

.button:hover:not(:disabled) {
  background:#3e383a;
}

.button.primary {
  background:var(--coral);
  color:#232021;
  border-color:var(--coral);
  font-weight:600;
}

.button.primary:hover:not(:disabled) {
  background:#f49697;
}

.button.small {
  min-height:36px;
  padding:9px 14px;
  font-size:12px;
}

.button.quiet {
  color:var(--muted);
  border-color:#0000;
}

.button.full {
  width:100%;
}

.button-row {
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  display:flex;
}

.icon-button {
  width:35px;
  height:35px;
  color:var(--muted);
  border-radius:5px;
  flex-shrink:0;
  justify-content:center;
  align-items:center;
  display:inline-flex;
}

.icon-button:hover:not(:disabled) {
  color:var(--text);
  background:#ffffff0b;
}

.icon-button.danger:hover {
  color:#f19899;
}

.mobile-menu,.nav-backdrop {
  display:none;
}

main {
  max-width:1580px;
  margin:auto;
  padding:45px 42px 0;
}

.page-intro {
  justify-content:space-between;
  align-items:center;
  gap:28px;
  padding:8px 0 48px;
  display:flex;
}

.eyebrow {
  color:#b6aeb1;
  letter-spacing:2.1px;
  align-items:center;
  gap:8px;
  margin-bottom:18px;
  font-size:12px;
  font-weight:600;
  display:flex;
}

.eyebrow>span {
  background:var(--coral);
  width:17px;
  height:5px;
  display:inline-block;
}

.page-intro h1 em {
  color:var(--mint);
  font-style:normal;
}

.intro-copy {
  color:var(--muted);
  margin-top:17px;
  font-size:14px;
  line-height:1.6;
}

.generator-invite {
  text-align:left;
  background:#2e292b;
  border:1px solid #4a4245;
  border-radius:8px;
  flex-shrink:0;
  align-items:center;
  gap:13px;
  padding:20px 18px;
  display:flex;
}

.generator-invite:hover {
  border-color:var(--coral);
}

.generator-invite strong {
  font-size:13px;
  font-weight:500;
  display:block;
}

.generator-invite small {
  color:var(--muted);
  margin-top:5px;
  font-size:12px;
  display:block;
}

.shuffle-icon {
  width:42px;
  height:42px;
  color:var(--mint);
  background:#3f383b;
  border-radius:7px;
  place-items:center;
  display:grid;
}

.generator-plus {
  color:var(--mint);
  margin-left:10px;
  font-size:21px;
  font-weight:300;
}

.library-heading {
  justify-content:space-between;
  align-items:center;
  padding-bottom:22px;
  display:flex;
}

.library-heading>div:first-child {
  align-items:baseline;
  gap:14px;
  display:flex;
}

.library-heading h2 {
  letter-spacing:-.4px;
  font-size:19px;
}

.count-label {
  color:#aea4a8;
  font-size:12px;
}

.view-switch {
  border:1px solid var(--line);
  border-radius:6px;
  gap:2px;
  padding:3px;
  display:flex;
}

.view-switch button {
  color:#988c91;
  border-radius:3px;
  place-items:center;
  width:30px;
  height:28px;
  display:grid;
}

.view-switch .active {
  color:var(--text);
  background:#453e41;
}

.filter-bar {
  align-items:center;
  gap:10px;
  display:flex;
}

.search {
  background:var(--panel);
  height:46px;
  color:var(--muted);
  border:1px solid #443d40;
  border-radius:6px;
  flex:1;
  align-items:center;
  gap:12px;
  min-width:140px;
  padding:0 16px;
  display:flex;
}

.search input {
  width:100%;
  min-width:0;
  color:var(--text);
  background:0 0;
  border:0;
  font-size:13px;
}

.search input::placeholder {
  color:#a69b9f;
}

.search input:focus {
  outline:0;
}

.search:focus-within {
  outline:2px solid var(--coral);
}

.search button {
  place-items:center;
  display:grid;
}

.select-wrap {
  background:var(--panel);
  color:#cac4c6;
  border:1px solid #443d40;
  border-radius:6px;
  align-items:center;
  gap:8px;
  height:46px;
  padding:0 13px;
  display:flex;
  position:relative;
}

.select-wrap>svg:first-child:not(:last-child) {
  flex-shrink:0;
}

.select-wrap select {
  -webkit-appearance:none;
  appearance:none;
  min-width:120px;
  color:inherit;
  cursor:pointer;
  background:0 0;
  border:none;
  width:100%;
  padding-right:20px;
  font-size:12px;
}

.select-wrap svg:last-child {
  pointer-events:none;
  position:absolute;
  right:12px;
}

.select-wrap select:focus {
  outline:0;
}

.select-wrap:focus-within {
  outline:2px solid var(--coral);
}

option {
  background:var(--panel);
  color:var(--text);
}

.region-row {
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin:20px 0 27px;
  display:flex;
}

.region-chips {
  flex-wrap:wrap;
  gap:7px;
  display:flex;
}

.chip {
  color:#bcb4b7;
  border:1px solid #453e41;
  border-radius:5px;
  align-items:center;
  gap:9px;
  min-height:34px;
  padding:6px 13px;
  font-size:12px;
  display:flex;
}

.chip.active {
  color:#2c282a;
  background:#dbd6d8;
  border-color:#dbd6d8;
}

.chip:hover:not(.active) {
  background:#383335;
}

.chip span {
  opacity:.7;
  font-size:12px;
}

.sort-select {
  white-space:nowrap;
  color:var(--muted);
  align-items:center;
  gap:5px;
  font-size:12px;
  display:flex;
}

.sort-select select {
  -webkit-appearance:none;
  appearance:none;
  color:#ddd9db;
  cursor:pointer;
  background:0 0;
  border:0;
  max-width:100px;
  padding:3px 1px;
  font-size:12px;
}

.exercise-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  display:grid;
}

.exercise-card {
  background:#292527;
  border:1px solid #463f42;
  border-radius:9px;
  transition:transform .2s,border-color .2s;
  position:relative;
  overflow:hidden;
}

.exercise-card:hover {
  border-color:#7e7176;
  transform:translateY(-3px);
}

.card-visual {
  aspect-ratio:1.33;
  background:#292426;
  border-bottom:1px solid #453d40;
  width:100%;
  height:auto;
  display:block;
  position:relative;
  overflow:hidden;
}

.crop-image {
  isolation:isolate;
  background:#272325;
  width:100%;
  height:100%;
  position:relative;
  overflow:hidden;
}

.crop-image img {
  object-fit:fill;
  mix-blend-mode:normal;
  max-width:none;
  position:absolute;
}

.type-badge {
  color:#d5d0d2;
  z-index:1;
  background:#272224;
  border:1px solid #8b7e834d;
  border-radius:4px;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  font-size:12px;
  display:flex;
  position:absolute;
  top:15px;
  left:15px;
}

.type-badge>span {
  background:#cfcacc;
  border-radius:50%;
  width:4px;
  height:4px;
}

.type-badge.static {
  color:#eba4a5;
  background:#302a2a;
  border-color:#a3767755;
}

.type-badge.static>span {
  background:#eba4a5;
}

.favorite-button {
  color:#cdc8ca;
  z-index:2;
  background:#221e20dd;
  border:1px solid #584f53;
  border-radius:50%;
  place-items:center;
  width:30px;
  height:30px;
  display:grid;
  position:absolute;
  top:13px;
  right:13px;
}

.favorite-button.selected {
  color:var(--coral);
}

.favorite-button:hover {
  background:#3f393b;
}

.card-content {
  padding:20px 18px 17px;
}

.card-regions {
  color:var(--coral);
  text-transform:uppercase;
  letter-spacing:1.2px;
  margin-bottom:10px;
  font-size:12px;
  font-weight:500;
}

.card-title {
  text-align:left;
  width:100%;
  padding:0;
  display:block;
}

.card-title h3 {
  letter-spacing:-.35px;
  min-height:49px;
  font-size:18px;
  line-height:1.35;
}

.english-title {
  color:#aea4a8;
  min-height:34px;
  margin-top:9px;
  font-size:12px;
  line-height:1.5;
}

.card-bottom {
  border-top:1px solid #463f42;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-top:20px;
  padding-top:13px;
  display:flex;
}

.card-bottom>span {
  color:#bfb7ba;
  align-items:center;
  gap:6px;
  font-size:12px;
  line-height:1.5;
  display:flex;
}

.card-bottom>span svg {
  flex-shrink:0;
}

.add-routine {
  color:#cec9cb;
  border:1px solid #5f565a;
  border-radius:5px;
  flex-shrink:0;
  place-items:center;
  width:28px;
  height:28px;
  display:grid;
}

.add-routine:hover,.add-routine.added {
  color:#d4ced0;
  background:#413a3d;
  border-color:#c2bbbe;
}

.library-foot {
  color:#988b90;
  justify-content:space-between;
  padding:21px 0 29px;
  font-size:12px;
  display:flex;
}

.page-footer {
  border-top:1px solid var(--line);
  letter-spacing:1px;
  color:#a89ea2;
  flex-wrap:wrap;
  align-items:center;
  gap:20px;
  margin-top:20px;
  padding:25px 0;
  font-size:12px;
  display:flex;
}

.page-footer>span:first-child {
  color:#dcd7d9;
  font-weight:600;
}

.page-footer i {
  color:var(--coral);
  margin:0 8px;
  font-style:normal;
}

.page-footer small {
  letter-spacing:0;
  font-size:12px;
}

.page-footer .version {
  letter-spacing:0;
  color:#8a7d82;
  margin-left:auto;
}

.list-view {
  grid-template-columns:1fr;
  gap:12px;
}

.list-view .exercise-card {
  display:flex;
  overflow:visible;
}

.list-view .card-visual {
  aspect-ratio:auto;
  border:0;
  border-radius:8px 0 0 8px;
  flex-shrink:0;
  width:210px;
  height:170px;
}

.list-view .card-content {
  flex:1;
  grid-template-columns:1fr auto;
  column-gap:25px;
  display:grid;
}

.list-view .card-regions,.list-view .card-title,.list-view .english-title {
  grid-column:1;
}

.list-view .card-title h3 {
  min-height:0;
  font-size:19px;
}

.list-view .card-bottom {
  border:0;
  grid-area:1/2/4;
  align-self:center;
  gap:25px;
  width:190px;
  margin:0;
  padding:0;
}

.list-view .english-title {
  min-height:0;
}

.list-view .favorite-button {
  left:168px;
}

.empty {
  text-align:center;
  border:1px dashed var(--line);
  color:var(--muted);
  border-radius:8px;
  flex-direction:column;
  align-items:center;
  gap:16px;
  padding:70px 24px;
  display:flex;
}

.empty h3 {
  color:var(--text);
}

.empty p {
  font-size:14px;
}

.no-image {
  color:#9a8e93;
  background:radial-gradient(#4a434644 1px,#0000 1px) 0 0/18px 18px;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:16px;
  height:100%;
  font-size:13px;
  display:flex;
}

.error-banner {
  color:#f6cbcc;
  background:#522e2f;
  border:1px solid #935052;
  border-radius:6px;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:25px;
  padding:12px 16px;
  font-size:14px;
  display:flex;
}

.error-banner>button:not(.icon-button) {
  font-size:13px;
  text-decoration:underline;
}

.toast {
  color:#292527;
  z-index:100;
  background:#d7d2d4;
  border-radius:7px;
  align-items:center;
  gap:10px;
  width:max-content;
  max-width:calc(100% - 32px);
  padding:14px 22px;
  font-size:13px;
  display:flex;
  position:fixed;
  bottom:25px;
  left:calc(50% + 114px);
  transform:translate(-50%);
  box-shadow:0 8px 35px #0005;
}

.toast svg {
  flex-shrink:0;
}

.sr-only {
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  position:absolute;
  overflow:hidden;
}

.spin {
  animation:1s linear infinite spin;
}

@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}

.modal {
  color:var(--text);
  background:#252123;
  border:1px solid #60565a;
  border-radius:12px;
  width:min(490px,100vw - 32px);
  max-height:calc(100dvh - 44px);
  margin:auto;
  padding:0;
  overflow:auto;
  box-shadow:0 30px 100px #0006;
}

.modal.wide {
  width:min(1030px,100vw - 40px);
}

.modal::backdrop {
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
  background:#0e0c0dc9;
}

.modal-head {
  z-index:4;
  border-bottom:1px solid var(--line);
  background:#252123;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:18px 24px;
  display:flex;
  position:sticky;
  top:0;
}

.modal-head h2 {
  letter-spacing:0;
  font-size:15px;
  font-weight:500;
}

.modal-body {
  padding:26px;
}

.modal-body>.muted {
  margin-bottom:25px;
  font-size:14px;
}

.detail-grid {
  grid-template-columns:.95fr 1.05fr;
  gap:30px;
  padding:28px;
  display:grid;
}

.detail-visual {
  align-self:start;
  position:relative;
}

.detail-visual>.crop-image {
  aspect-ratio:1;
  border-radius:6px;
  height:auto;
}

.detail-visual>.button {
  width:100%;
  margin-top:13px;
  font-size:12px;
}

.detail-copy h2 {
  letter-spacing:-.7px;
  margin:0 0 10px;
  font-size:28px;
  line-height:1.2;
}

.detail-copy>.muted {
  margin-bottom:21px;
  font-size:12px;
}

.detail-copy>p {
  color:#c4bdc0;
  font-size:14px;
  line-height:1.65;
}

.detail-tags {
  flex-wrap:wrap;
  gap:7px;
  margin:17px 0;
  display:flex;
}

.detail-tags span {
  color:#d4cfd1;
  background:#3a3436;
  border:1px solid #50484b;
  border-radius:4px;
  padding:4px 9px;
  font-size:12px;
}

.dose {
  color:#dcd7d9;
  background:#353032;
  border-radius:5px;
  align-items:center;
  gap:12px;
  margin:23px 0;
  padding:14px;
  font-size:13px;
  display:flex;
}

.detail-copy h3 {
  margin-bottom:14px;
  font-size:15px;
}

.steps {
  color:#ccc7c9;
  margin:0 0 22px;
  padding-left:23px;
  font-size:14px;
  line-height:1.6;
}

.steps li {
  margin-bottom:12px;
  padding-left:5px;
}

.steps li::marker {
  color:var(--coral);
  font-size:12px;
  font-weight:600;
}

.detail-copy>p.tip {
  border-left:2px solid var(--coral);
  background:#ffffff03;
  margin-bottom:25px;
  padding:10px 0 10px 15px;
  font-size:12px;
}

.tip b {
  letter-spacing:1px;
  color:var(--coral);
  margin-bottom:5px;
  font-size:12px;
  display:block;
}

.source-link {
  color:#9a8f93;
  gap:7px;
  margin-top:20px;
  font-size:12px;
  text-decoration:none;
  display:inline-flex;
}

.source-link:hover {
  text-decoration:underline;
}

.original-image {
  border-radius:6px;
  width:100%;
  display:block;
}

.exports {
  border-top:1px solid var(--line);
  color:#b9b1b4;
  margin-top:24px;
  padding-top:18px;
  font-size:12px;
}

.exports summary {
  cursor:pointer;
  justify-content:space-between;
  align-items:center;
  display:flex;
}

.exports .button-row {
  margin-top:15px;
}

.field {
  color:#c4bec0;
  border:0;
  flex-direction:column;
  gap:8px;
  min-width:0;
  margin:0 0 20px;
  padding:0;
  font-size:12px;
  display:flex;
}

.field legend {
  margin-bottom:10px;
}

.field input,.field textarea,.field>select {
  min-height:43px;
  color:var(--text);
  background:#1f1c1d;
  border:1px solid #50474b;
  border-radius:5px;
  width:100%;
  padding:10px 12px;
  font-size:14px;
}

.field textarea {
  resize:vertical;
  line-height:1.6;
}

.field>.select-wrap {
  width:100%;
}

.field .select-wrap select {
  font-size:14px;
}

.number-choices {
  gap:10px;
  display:flex;
}

.number-choices button {
  color:#c3bdbf;
  border:1px solid #5f565a;
  border-radius:5px;
  flex:1;
  height:48px;
  font-size:16px;
}

.number-choices button.active {
  background:var(--red);
  color:#2b2628;
  border-color:var(--red);
}

.generator-note {
  color:#c2bbbe;
  background:#352f31;
  border-radius:5px;
  gap:12px;
  margin:22px 0;
  padding:14px;
  font-size:12px;
  display:flex;
}

.generator-note svg {
  flex-shrink:0;
}

.routine-layout {
  grid-template-columns:1fr 275px;
  gap:24px;
  display:grid;
}

.routine-panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  padding:25px;
}

.routine-heading {
  border-bottom:1px solid var(--line);
  justify-content:space-between;
  align-items:center;
  padding-bottom:22px;
  display:flex;
}

.routine-heading h2 {
  font-size:21px;
}

.routine-heading span {
  color:var(--muted);
  margin-top:6px;
  font-size:12px;
  display:block;
}

.routine-row {
  border-bottom:1px solid var(--line);
  align-items:center;
  gap:13px;
  padding:19px 0;
  display:flex;
}

.routine-row:last-child {
  border:0;
}

.routine-number {
  color:#9a8f93;
  font-size:12px;
}

.routine-thumb {
  border-radius:5px;
  flex-shrink:0;
  width:78px;
  height:67px;
  overflow:hidden;
}

.routine-row-title {
  text-align:left;
  flex:1;
  padding:0;
}

.routine-row-title strong {
  font-size:13px;
  font-weight:500;
  line-height:1.5;
  display:block;
}

.routine-row-title small {
  color:var(--muted);
  margin-top:5px;
  font-size:12px;
  display:block;
}

.routine-row-actions {
  gap:1px;
  display:flex;
}

.routine-row-actions .icon-button {
  width:28px;
}

.routine-summary {
  background:linear-gradient(130deg,#363133,#2a2628);
  border:1px solid #50484b;
  border-radius:8px;
  align-self:start;
  padding:27px 25px;
}

.routine-summary h2 {
  font-size:24px;
}

.routine-summary>p {
  color:var(--muted);
  margin:18px 0 25px;
  font-size:13px;
}

.routine-summary>.button {
  width:100%;
  margin-bottom:8px;
}

.routine-summary>small {
  color:#9d9296;
  margin-top:21px;
  font-size:12px;
  line-height:1.6;
  display:block;
}

.practice {
  grid-template-columns:1.2fr 1fr;
  gap:35px;
  padding:30px;
  display:grid;
}

.practice>.crop-image {
  aspect-ratio:1.1;
  border-radius:7px;
  align-self:start;
  height:auto;
}

.practice h2 {
  margin-bottom:15px;
  font-size:26px;
}

.practice .timer {
  letter-spacing:-2px;
  font-variant-numeric:tabular-nums;
  color:var(--mint);
  margin:25px 0 2px;
  font-size:64px;
  line-height:1.2;
}

.practice>.muted {
  font-size:13px;
}

.practice .button-row {
  margin-top:22px;
}

.practice-tip {
  border-top:1px solid var(--line);
  color:var(--muted);
  margin-top:28px;
  padding-top:20px;
  font-size:13px;
}

.manage-grid {
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-bottom:35px;
  display:grid;
}

.manage-card {
  background:var(--panel);
  border:1px solid #4f464a;
  border-radius:8px;
  padding:28px;
}

.manage-card>svg {
  color:var(--coral);
  margin-bottom:23px;
}

.manage-card h2 {
  font-size:22px;
}

.manage-card p {
  color:var(--muted);
  max-width:420px;
  margin:16px 0 23px;
  font-size:13px;
}

.manage-card small {
  color:#afa5a9;
  margin-top:18px;
  font-size:12px;
  display:block;
}

.section-title {
  border-bottom:1px solid var(--line);
  align-items:center;
  gap:20px;
  padding-bottom:20px;
  display:flex;
}

.section-title h2 {
  font-size:20px;
}

.section-title>span {
  color:var(--muted);
  font-size:12px;
}

.manage-row {
  border-bottom:1px solid var(--line);
  align-items:center;
  gap:20px;
  padding:16px 0;
  display:flex;
}

.manage-row>.crop-image {
  border-radius:5px;
  flex-shrink:0;
  width:72px;
  height:62px;
}

.manage-row>div:nth-child(2) {
  flex:1;
}

.manage-row strong {
  font-size:14px;
  font-weight:500;
}

.manage-row small {
  color:var(--muted);
  margin-top:7px;
  font-size:12px;
  display:block;
}

.editor-grid {
  grid-template-columns:1fr 260px;
  gap:32px;
  padding:27px;
  display:grid;
}

.editor-main {
  min-width:0;
}

.fields-row {
  gap:15px;
  display:flex;
}

.fields-row>.field {
  flex:1;
}

.fields-row>.timer-field {
  flex:0 0 145px;
}

.checkbox-chips {
  flex-wrap:wrap;
  gap:7px;
  display:flex;
}

.checkbox-chips label {
  cursor:pointer;
  color:#bcb4b7;
  border:1px solid #544b4f;
  border-radius:5px;
  align-items:center;
  gap:7px;
  padding:7px 9px;
  font-size:12px;
  display:flex;
}

.checkbox-chips label.checked {
  color:#dedadc;
  background:#332e30;
  border-color:#94888d;
}

.checkbox-chips input {
  width:12px;
  height:12px;
  min-height:12px;
  accent-color:var(--red);
  margin:0;
}

.editor-image h3 {
  margin-bottom:14px;
  font-size:14px;
}

.editor-image>.crop-image {
  aspect-ratio:1.05;
  border:1px solid var(--line);
  border-radius:6px;
  height:auto;
  margin-bottom:14px;
}

.editor-image>small {
  color:#9d9296;
  margin-top:15px;
  font-size:12px;
  line-height:1.8;
  display:block;
}

.editor-note {
  color:#aba2a6;
  border:1px dashed #4f464a;
  border-radius:6px;
  gap:12px;
  margin-top:25px;
  padding:18px 12px;
  font-size:12px;
  line-height:1.7;
  display:flex;
}

.editor-note svg {
  color:var(--coral);
  flex-shrink:0;
}

.editor-footer {
  border-top:1px solid var(--line);
  background:#252123;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  padding:18px 25px;
  display:flex;
  position:sticky;
  bottom:0;
}

.inline-error {
  color:#efa5a6;
  margin-right:auto;
  font-size:12px;
}

.crop-settings {
  margin-top:20px;
  font-size:12px;
}

.crop-settings summary {
  cursor:pointer;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  display:flex;
}

.crop-settings .field {
  margin:12px 0;
}

.crop-settings>.small-copy {
  font-size:12px;
}

.crop-settings input {
  min-height:33px;
  padding:6px 10px;
}

@media (min-width:1550px) {
  .exercise-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .card-visual {
    aspect-ratio:1.5;
  }
  .card-content {
    padding:23px;
  }
  .card-title h3 {
    font-size:21px;
  }
  .card-regions,.english-title,.card-bottom>span {
    font-size:12px;
  }
}

@media (max-width:1250px) {
  .sidebar {
    width:200px;
    padding-left:14px;
    padding-right:14px;
  }
  .main-shell {
    margin-left:200px;
  }
  .topbar {
    padding:0 28px;
  }
  .top-actions {
    gap:15px;
  }
  main {
    padding:32px 28px 0;
  }
  .page-intro {
    gap:20px;
  }
  .generator-invite {
    gap:9px;
    padding:14px 12px;
  }
  .generator-plus {
    display:none;
  }
  .shuffle-icon {
    width:34px;
    height:34px;
  }
  .generator-invite strong {
    font-size:12px;
  }
  .generator-invite small {
    font-size:12px;
  }
  .card-title h3 {
    font-size:16px;
  }
  .card-content {
    padding:17px 14px;
  }
  .exercise-grid {
    gap:16px;
  }
  .card-bottom>span {
    font-size:12px;
  }
  .routine-layout {
    grid-template-columns:1fr 235px;
  }
  .routine-row-actions {
    flex-direction:column;
  }
  .toast {
    left:calc(50% + 100px);
  }
}

@media (max-width:1050px) {
  .sidebar {
    width:184px;
  }
  .main-shell {
    margin-left:184px;
  }
  .sidebar-label {
    letter-spacing:.5px;
    font-size:12px;
  }
  .nav-item {
    gap:9px;
    padding:12px 8px;
    font-size:12px;
  }
  .topbar {
    height:72px;
    padding:0 24px;
  }
  .saved-state {
    display:none;
  }
  .page-intro {
    align-items:flex-start;
  }
  .generator-invite {
    display:none;
  }
  .filter-bar {
    flex-wrap:wrap;
  }
  .filter-bar .search {
    flex:1 0 calc(100% - 20px);
  }
  .filter-bar>.select-wrap {
    flex:1;
  }
  .region-row {
    align-items:flex-start;
  }
  .sort-select {
    padding-top:8px;
  }
  .exercise-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
  }
  .card-title h3 {
    font-size:18px;
  }
  .card-content {
    padding:19px 16px;
  }
  .routine-layout {
    grid-template-columns:1fr;
  }
  .routine-row-actions {
    flex-direction:row;
  }
  .routine-summary {
    flex-wrap:wrap;
    align-items:center;
    gap:13px;
    display:flex;
  }
  .routine-summary .mini-mark {
    margin:0;
  }
  .routine-summary h2 {
    font-size:22px;
  }
  .routine-summary>p {
    flex:1;
    margin:0;
    font-size:12px;
  }
  .routine-summary>.button {
    width:auto;
    margin:0;
  }
  .routine-summary>small {
    width:100%;
    margin:0;
  }
  .list-view {
    grid-template-columns:1fr;
  }
  .list-view .card-visual {
    width:155px;
    height:165px;
  }
  .list-view .favorite-button {
    left:115px;
  }
  .list-view .card-content {
    display:block;
  }
  .list-view .card-title h3 {
    font-size:15px;
  }
  .list-view .card-bottom {
    width:100%;
    margin-top:5px;
    padding:7px 0 0;
  }
  .list-view .card-regions {
    margin-bottom:6px;
  }
  .list-view .english-title {
    display:none;
  }
  .manage-grid {
    grid-template-columns:1fr;
  }
  .toast {
    left:calc(50% + 92px);
  }
}

@media (max-width:760px) {
  .sidebar {
    width:228px;
    padding:28px 20px 0;
    transition:transform .2s;
    transform:translate(-100%);
  }
  .sidebar.open {
    transform:translate(0);
  }
  .nav-backdrop {
    z-index:19;
    background:#0009;
    display:block;
    position:fixed;
    inset:0;
  }
  .main-shell {
    margin-left:0;
  }
  .mobile-menu {
    margin-left:-6px;
    display:inline-flex;
  }
  .topbar {
    height:70px;
    padding:0 20px;
  }
  .breadcrumb {
    gap:9px;
    font-size:12px;
  }
  .breadcrumb .crumb-line,.breadcrumb b {
    display:none;
  }
  .top-actions .button {
    font-size:12px;
  }
  .top-actions .button svg {
    width:15px;
  }
  main {
    padding:29px 20px 0;
  }
  .page-intro {
    padding:6px 0 34px;
  }
  .page-intro h1 {
    letter-spacing:-1.1px;
    font-size:35px;
  }
  .intro-copy {
    max-width:400px;
    margin-top:13px;
    font-size:13px;
  }
  .eyebrow {
    letter-spacing:1.7px;
    margin-bottom:17px;
    font-size:12px;
  }
  .library-heading h2 {
    font-size:18px;
  }
  .count-label {
    font-size:12px;
  }
  .library-heading>div:first-child {
    gap:10px;
  }
  .region-row {
    flex-wrap:wrap;
    gap:14px;
    margin:18px 0 23px;
  }
  .region-chips {
    gap:6px;
  }
  .sort-select {
    margin-left:auto;
    padding:0;
  }
  .exercise-grid {
    gap:15px;
  }
  .card-content {
    padding:15px 13px;
  }
  .card-title h3 {
    font-size:17px;
  }
  .card-visual {
    aspect-ratio:1.1;
  }
  .card-regions {
    letter-spacing:.8px;
    font-size:12px;
  }
  .english-title {
    font-size:12px;
  }
  .card-bottom {
    margin-top:13px;
    padding-top:12px;
  }
  .card-bottom>span {
    font-size:12px;
  }
  .type-badge {
    font-size:12px;
    top:10px;
    left:10px;
  }
  .favorite-button {
    width:28px;
    height:28px;
    top:10px;
    right:10px;
  }
  .card-bottom>span svg {
    display:none;
  }
  .page-footer {
    gap:12px;
    padding:20px 0;
  }
  .page-footer small,.library-foot {
    font-size:12px;
  }
  .toast {
    font-size:12px;
    bottom:18px;
    left:50%;
  }
  .modal.wide {
    width:calc(100vw - 24px);
  }
  .modal {
    width:calc(100vw - 24px);
    max-height:calc(100dvh - 24px);
  }
  .modal-head {
    padding:15px 18px;
  }
  .detail-grid {
    grid-template-columns:1fr;
    gap:24px;
    padding:20px;
  }
  .detail-visual>.crop-image {
    aspect-ratio:1.5;
  }
  .detail-copy h2 {
    font-size:26px;
  }
  .detail-visual {
    width:100%;
    max-width:100%;
  }
  .original-image {
    max-width:450px;
    margin:0 auto;
  }
  .editor-grid {
    grid-template-columns:1fr;
    gap:22px;
    padding:20px;
  }
  .editor-image {
    max-width:100%;
  }
  .editor-image>.crop-image {
    aspect-ratio:1.5;
  }
  .fields-row {
    gap:10px;
  }
  .fields-row .field {
    font-size:12px;
  }
  .fields-row .field>select {
    padding:10px 8px;
    font-size:12px;
  }
  .editor-image .crop-settings .field {
    width:44%;
    margin-right:6%;
    display:inline-flex;
  }
  .editor-footer {
    flex-wrap:wrap;
    padding:13px 16px;
  }
  .inline-error {
    width:100%;
  }
  .practice {
    grid-template-columns:1fr;
    gap:24px;
    padding:20px;
  }
  .practice>.crop-image {
    aspect-ratio:1.5;
  }
  .practice .timer {
    font-size:58px;
  }
  .routine-panel {
    padding:20px;
  }
  .routine-row {
    flex-wrap:wrap;
    gap:10px;
  }
  .routine-thumb {
    width:62px;
    height:57px;
  }
  .routine-row-title strong {
    font-size:13px;
  }
  .routine-row-actions .icon-button {
    width:26px;
  }
  .routine-row-title {
    min-width:140px;
  }
  .manage-row {
    gap:12px;
  }
  .manage-row strong {
    font-size:12px;
  }
  .manage-row>.crop-image {
    width:55px;
    height:50px;
  }
  .manage-row .icon-button {
    width:30px;
  }
  .manage-card {
    padding:23px;
  }
  .manage-card .button-row {
    gap:5px;
  }
  .page-intro>.button {
    align-self:flex-end;
    padding:10px;
    font-size:12px;
  }
  .routine-summary {
    padding:22px;
  }
  .routine-summary>.mini-mark {
    display:none;
  }
}

@media (max-width:420px) {
  .exercise-grid {
    grid-template-columns:1fr;
  }
  .card-visual {
    aspect-ratio:1.55;
  }
  .card-title h3 {
    min-height:0;
    font-size:21px;
    line-height:1.3;
  }
  .card-content {
    padding:20px;
  }
  .english-title {
    min-height:0;
    font-size:12px;
  }
  .card-regions {
    font-size:12px;
  }
  .card-bottom>span {
    font-size:12px;
  }
  .card-bottom>span svg {
    display:block;
  }
  .type-badge {
    font-size:12px;
    top:14px;
    left:14px;
  }
  .favorite-button {
    top:13px;
    right:13px;
  }
  .filter-bar>.select-wrap {
    flex:140px;
    padding-left:10px;
    padding-right:10px;
  }
  .filter-bar>.select-wrap select {
    min-width:100px;
    font-size:12px;
  }
  .library-heading>div:first-child {
    flex-wrap:wrap;
    gap:5px 9px;
  }
  .list-view .exercise-card {
    display:block;
    overflow:hidden;
  }
  .list-view .card-visual {
    width:100%;
    height:190px;
  }
  .list-view .favorite-button {
    left:auto;
    right:13px;
  }
  .list-view .english-title {
    display:block;
  }
  .routine-row-actions {
    justify-content:flex-end;
    width:100%;
  }
  .routine-summary>p {
    flex:1 0 100%;
  }
  .page-footer .version {
    display:none;
  }
  .modal-body {
    padding:21px;
  }
  .fields-row {
    flex-wrap:wrap;
  }
  .fields-row>.field {
    flex:100px;
  }
  .page-intro {
    flex-wrap:wrap;
  }
  .page-intro>.button {
    margin-top:0;
  }
  .region-chips .chip {
    padding:6px 11px;
  }
  .card-bottom .add-routine {
    width:34px;
    height:34px;
  }
  .checkbox-chips label {
    min-height:36px;
  }
}

@media (pointer:coarse) {
  .icon-button,.add-routine,.view-switch button,.favorite-button,.chip {
    min-width:44px;
    min-height:44px;
  }
  .favorite-button {
    width:38px;
    min-width:38px;
    height:38px;
    min-height:38px;
  }
  .routine-row-actions {
    gap:10px;
  }
  .routine-row-actions .icon-button {
    width:40px;
  }
  .button.small {
    min-height:44px;
  }
}

@media (prefers-reduced-motion:reduce) {
  *,:before,:after {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }
}

.crop-image>svg {
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  overflow:hidden;
}

.crop-image>img.crop-measure {
  opacity:0;
  pointer-events:none;
  width:1px!important;
  height:1px!important;
}

.restore-check {
  align-items:flex-start;
  gap:12px;
  margin-bottom:26px;
  font-size:14px;
  display:flex;
}

.restore-check input {
  accent-color:var(--red);
  margin-top:5px;
}

.restore-check small {
  color:var(--muted);
  margin-top:6px;
  font-size:12px;
  display:block;
}

.plan-progress-label {
  color:var(--mint);
  white-space:nowrap;
  align-items:center;
  gap:10px;
  font-size:14px;
  display:flex;
}

.plan-progress-track {
  background:#393335;
  border-radius:3px;
  height:4px;
  margin:-18px 0 30px;
  overflow:hidden;
}

.plan-progress-track>span {
  background:var(--red);
  height:100%;
  display:block;
}

.plan-layout {
  grid-template-columns:310px minmax(0,1fr);
  gap:25px;
  display:grid;
}

.plan-calendar,.plan-day-detail {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:9px;
  align-self:start;
  padding:26px;
}

.plan-calendar h2 {
  margin-bottom:12px;
  font-size:20px;
}

.plan-calendar>.small-copy {
  font-size:14px;
}

.plan-week {
  margin-top:26px;
}

.plan-week h3 {
  margin-bottom:12px;
  font-size:14px;
}

.plan-week h3>span {
  color:var(--muted);
  margin-top:6px;
  font-size:12px;
  font-weight:400;
  display:block;
}

.plan-days {
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:5px;
  display:grid;
}

.plan-days button {
  color:#c5bec1;
  border:1px solid #564d51;
  border-radius:5px;
  min-height:34px;
  font-size:13px;
  position:relative;
}

.plan-days button.selected {
  background:var(--red);
  border-color:var(--red);
  color:#292527;
}

.plan-days button.complete:not(.selected) {
  color:#e1dddf;
  background:#40393c;
  border-color:#92858a;
}

.plan-days button svg {
  position:absolute;
  bottom:1px;
  right:1px;
}

.plan-day-detail h2 {
  margin-bottom:20px;
  font-size:27px;
  line-height:1.25;
}

.plan-meta {
  color:var(--muted);
  flex-wrap:wrap;
  align-items:center;
  gap:10px 18px;
  margin-bottom:24px;
  font-size:13px;
  display:flex;
}

.plan-meta>span {
  align-items:center;
  gap:7px;
  display:flex;
}

.plan-preparation {
  border-left:2px solid var(--coral);
  background:#322c2e;
  margin-bottom:22px;
  padding:13px 15px;
}

.plan-preparation h3 {
  margin-bottom:8px;
  font-size:15px;
}

.plan-preparation p {
  color:var(--muted);
  margin-bottom:7px;
  font-size:13px;
}

.plan-preparation .button {
  min-height:36px;
  padding-left:0;
}

.plan-exercises {
  margin:0;
  padding:0;
  list-style:none;
}

.plan-exercises li {
  border-bottom:1px solid var(--line);
  align-items:center;
  gap:15px;
  padding:14px 0;
  display:flex;
}

.plan-exercises li>span:first-child {
  color:#a3999d;
  width:17px;
  font-size:13px;
}

.plan-exercises li>button {
  text-align:left;
  flex:1;
  min-height:44px;
  padding:0;
  line-height:1.5;
}

.plan-exercises strong {
  font-size:15px;
  font-weight:500;
  display:block;
}

.plan-exercises small {
  color:var(--muted);
  margin-top:4px;
  font-size:12px;
  display:block;
}

.plan-exercise-time {
  color:var(--mint);
  font-size:13px;
}

.plan-rounds {
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:25px 0 15px;
  font-size:14px;
  display:flex;
}

.plan-rounds>span {
  color:var(--muted);
  margin-right:7px;
}

.plan-rounds button {
  border:1px solid #60565a;
  border-radius:5px;
  padding:8px 13px;
  font-size:13px;
}

.plan-rounds button.active {
  background:var(--red);
  border-color:var(--red);
  color:#2d292b;
}

.plan-circuit-note {
  color:var(--muted);
  margin-bottom:25px;
  font-size:13px;
  line-height:1.6;
}

.plan-paging {
  border-top:1px solid var(--line);
  justify-content:space-between;
  gap:20px;
  margin-top:25px;
  padding-top:22px;
  display:flex;
}

.plan-paging>button {
  color:#c6c0c2;
  align-items:center;
  gap:8px;
  min-height:35px;
  font-size:13px;
  display:flex;
}

.detail-copy>p.detail-note {
  color:#c2babd;
  margin-bottom:12px;
  padding:10px 0;
  font-size:13px;
}

.video-link {
  color:var(--mint);
  margin-top:17px;
}

.type-badge:has(+.none) {
  color:var(--mint);
}

.circuit-practice {
  max-width:780px;
  margin:auto;
  padding:32px;
}

.circuit-practice h2 {
  margin:12px 0 18px;
  font-size:28px;
  line-height:1.3;
}

.circuit-practice>.muted {
  margin-bottom:22px;
  font-size:15px;
}

.circuit-practice .steps {
  margin-top:25px;
  font-size:15px;
}

.circuit-practice>.button-row {
  margin-top:25px;
}

.circuit-clock {
  letter-spacing:-3px;
  font-variant-numeric:tabular-nums;
  color:var(--mint);
  margin:20px 0;
  font-size:90px;
  font-weight:500;
  line-height:1.2;
}

.circuit-clock.rest {
  color:var(--coral);
}

.circuit-practice>.button {
  margin-top:25px;
}

.filter-bar>.search {
  min-width:220px;
}

.filter-bar>.select-wrap select {
  min-width:100px;
}

.filter-bar>.select-wrap {
  padding-left:11px;
  padding-right:11px;
}

.no-image:has(svg) {
  background:radial-gradient(#433c3f55,#0000 70%),linear-gradient(145deg,#322c2e,#242122);
}

@media (max-width:1120px) {
  .plan-layout {
    grid-template-columns:1fr;
  }
  .plan-calendar {
    grid-template-columns:1fr 1fr;
    gap:0 25px;
    display:grid;
  }
  .plan-calendar>h2,.plan-calendar>.small-copy,.plan-calendar>.source-link {
    grid-column:1/-1;
  }
  .plan-week {
    margin-top:21px;
  }
  .plan-days button {
    min-height:40px;
  }
  .filter-bar>.search {
    flex-basis:100%;
  }
  .filter-bar>.select-wrap {
    flex:1;
  }
}

@media (max-width:600px) {
  .plan-calendar,.plan-day-detail {
    padding:20px;
  }
  .plan-calendar {
    display:block;
  }
  .plan-days button {
    min-height:42px;
  }
  .plan-day-detail h2 {
    font-size:24px;
  }
  .plan-layout {
    gap:18px;
  }
  .plan-exercises strong {
    font-size:14px;
  }
  .plan-exercises li {
    gap:12px;
  }
  .plan-meta {
    font-size:12px;
  }
  .plan-day-detail .button-row>.button {
    width:100%;
  }
  .circuit-practice {
    padding:22px;
  }
  .circuit-practice h2 {
    font-size:24px;
  }
  .circuit-clock {
    font-size:74px;
  }
  .circuit-practice .steps {
    font-size:14px;
  }
  .filter-bar>.select-wrap {
    flex:120px;
  }
  .filter-bar>.search {
    min-width:0;
  }
  .plan-progress-label {
    font-size:13px;
  }
  .plan-progress-track {
    margin-top:0;
  }
  .plan-paging {
    gap:12px;
  }
  .plan-paging>button {
    font-size:12px;
  }
}

.sidebar .nav-item {
  font-size:13px;
}

.sidebar .nav-item>span {
  white-space:nowrap;
}

.guest-note {
  color:var(--muted);
  border:1px solid var(--line);
  background:#2b2729;
  border-radius:7px;
  margin-bottom:24px;
  padding:12px 16px;
  font-size:14px;
}

.admin-signin {
  color:var(--muted);
  font-size:12px;
  text-decoration:none;
}

.admin-signin:hover {
  text-decoration:underline;
}

.phase-stack {
  background:#221f20;
  border-radius:8px;
  width:100%;
  height:440px;
  position:relative;
  overflow:hidden;
}

.phase-frame {
  opacity:0;
  pointer-events:none;
  transition:opacity .35s;
  position:absolute;
  inset:0;
}

.phase-frame.active {
  opacity:1;
}

.phase-frame>.crop-image {
  aspect-ratio:auto;
  width:100%;
  height:100%;
}

.phase-caption {
  text-align:center;
  flex-direction:column;
  gap:5px;
  margin-top:14px;
  display:flex;
}

.phase-caption strong {
  font-size:16px;
}

.phase-caption span,.phase-note {
  color:var(--muted);
  font-size:14px;
}

.phase-controls {
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:16px;
  display:flex;
}

.phase-note {
  text-align:center;
  margin-top:12px;
  display:block;
}

@media (max-width:700px) {
  .phase-stack {
    height:360px;
  }
  .phase-controls .button {
    padding:10px;
    font-size:13px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .phase-frame {
    transition:none;
  }
}

.templates-entry {
  color:var(--mint);
  margin-top:16px;
}

.templates-back {
  margin-bottom:24px;
  padding-left:0;
}

.template-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  display:grid;
}

.template-card {
  border:1px solid var(--line);
  background:var(--card);
  border-radius:10px;
  flex-direction:column;
  display:flex;
  overflow:hidden;
}

.template-cover {
  text-align:left;
  background:#231f21;
  width:100%;
  height:220px;
  padding:0;
  display:block;
  position:relative;
}

.template-cover>.crop-image {
  aspect-ratio:auto;
  width:100%;
  height:100%;
}

.template-cover>span {
  color:var(--mint);
  background:#272224ed;
  border:1px solid #6e6367;
  border-radius:5px;
  padding:5px 10px;
  font-size:14px;
  position:absolute;
  top:16px;
  left:18px;
}

.template-card-copy {
  flex-direction:column;
  flex:1;
  padding:26px;
  display:flex;
}

.template-card-copy>h2 {
  margin-bottom:14px;
  font-size:25px;
}

.template-card-copy>p:not(.template-equipment) {
  color:var(--muted);
  min-height:78px;
  font-size:16px;
  line-height:1.65;
}

.template-stats {
  flex-wrap:wrap;
  gap:12px 22px;
  margin-top:20px;
  font-size:16px;
  display:flex;
}

.template-stats>span {
  align-items:center;
  gap:8px;
  display:flex;
}

.template-equipment {
  color:var(--muted);
  margin:12px 0 0;
  font-size:14px;
}

.template-focus {
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0 24px;
  display:flex;
}

.template-focus>span {
  border:1px solid var(--line);
  color:#c6bfc2;
  border-radius:4px;
  padding:5px 9px;
  font-size:14px;
}

.template-card-copy>.button {
  min-height:48px;
  margin-top:auto;
}

.template-detail-layout {
  grid-template-columns:minmax(0,1fr) 310px;
  gap:24px;
  display:grid;
}

.template-exercises,.template-summary {
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:9px;
  padding:26px;
}

.template-exercises>h2 {
  margin-bottom:12px;
}

.template-exercises>.muted {
  font-size:16px;
  line-height:1.65;
}

.template-exercises>ol {
  margin:22px 0 0;
  padding:0;
  list-style:none;
}

.template-exercises li {
  border-top:1px solid var(--line);
  align-items:center;
  gap:18px;
  padding:18px 0;
  display:flex;
}

.template-exercise-image {
  border-radius:6px;
  flex:0 0 90px;
  width:90px;
  height:76px;
  padding:0;
  overflow:hidden;
}

.template-exercise-image>.crop-image {
  aspect-ratio:auto;
  width:100%;
  height:100%;
}

.template-exercise-copy {
  text-align:left;
  flex:1;
  min-width:0;
  padding:0;
}

.template-exercise-copy>strong {
  font-size:16px;
  font-weight:500;
  line-height:1.4;
  display:block;
}

.template-exercise-copy>span {
  color:var(--mint);
  margin-top:8px;
  font-size:14px;
  line-height:1.5;
  display:block;
}

.template-summary {
  align-self:start;
  position:sticky;
  top:24px;
}

.template-summary .template-stats {
  flex-direction:column;
  gap:15px;
  margin-top:0;
}

.template-summary>p:not(.template-equipment) {
  margin:22px 0;
  font-size:16px;
  line-height:1.7;
}

.template-summary>small {
  color:var(--muted);
  margin-top:20px;
  font-size:14px;
  line-height:1.6;
  display:block;
}

.routine-guidance {
  border-left:2px solid var(--coral);
  color:#cbc5c7;
  background:#322c2e;
  margin:20px 0;
  padding:16px;
  font-size:16px;
  line-height:1.7;
}

@media (max-width:1100px) {
  .template-detail-layout {
    grid-template-columns:1fr;
  }
  .template-summary {
    position:static;
  }
  .template-summary .template-stats {
    flex-direction:row;
  }
  .template-cover {
    height:190px;
  }
}

@media (max-width:720px) {
  .template-grid {
    grid-template-columns:1fr;
    gap:20px;
  }
  .template-cover {
    height:215px;
  }
  .template-card-copy {
    padding:22px;
  }
  .template-card-copy>p:not(.template-equipment) {
    min-height:0;
  }
  .template-exercises,.template-summary {
    padding:20px;
  }
  .template-exercises li {
    gap:12px;
  }
  .template-exercise-image {
    flex-basis:72px;
    width:72px;
    height:66px;
  }
  .template-card-copy>h2 {
    font-size:24px;
  }
  .template-detail-layout {
    gap:20px;
  }
}

@property --tw-translate-x {
  syntax:"*";
  inherits:false;
  initial-value:0;
}

@property --tw-translate-y {
  syntax:"*";
  inherits:false;
  initial-value:0;
}

@property --tw-translate-z {
  syntax:"*";
  inherits:false;
  initial-value:0;
}

@property --tw-rotate-x {
  syntax:"*";
  inherits:false;
}

@property --tw-rotate-y {
  syntax:"*";
  inherits:false;
}

@property --tw-rotate-z {
  syntax:"*";
  inherits:false;
}

@property --tw-skew-x {
  syntax:"*";
  inherits:false;
}

@property --tw-skew-y {
  syntax:"*";
  inherits:false;
}

@property --tw-scroll-snap-strictness {
  syntax:"*";
  inherits:false;
  initial-value:proximity;
}

@property --tw-space-x-reverse {
  syntax:"*";
  inherits:false;
  initial-value:0;
}

@property --tw-border-style {
  syntax:"*";
  inherits:false;
  initial-value:solid;
}

@property --tw-leading {
  syntax:"*";
  inherits:false;
}

@property --tw-font-weight {
  syntax:"*";
  inherits:false;
}

@property --tw-tracking {
  syntax:"*";
  inherits:false;
}

@property --tw-ordinal {
  syntax:"*";
  inherits:false;
}

@property --tw-slashed-zero {
  syntax:"*";
  inherits:false;
}

@property --tw-numeric-figure {
  syntax:"*";
  inherits:false;
}

@property --tw-numeric-spacing {
  syntax:"*";
  inherits:false;
}

@property --tw-numeric-fraction {
  syntax:"*";
  inherits:false;
}

@property --tw-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000;
}

@property --tw-shadow-color {
  syntax:"*";
  inherits:false;
}

@property --tw-shadow-alpha {
  syntax:"<percentage>";
  inherits:false;
  initial-value:100%;
}

@property --tw-inset-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax:"*";
  inherits:false;
}

@property --tw-inset-shadow-alpha {
  syntax:"<percentage>";
  inherits:false;
  initial-value:100%;
}

@property --tw-ring-color {
  syntax:"*";
  inherits:false;
}

@property --tw-ring-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax:"*";
  inherits:false;
}

@property --tw-inset-ring-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000;
}

@property --tw-ring-inset {
  syntax:"*";
  inherits:false;
}

@property --tw-ring-offset-width {
  syntax:"<length>";
  inherits:false;
  initial-value:0;
}

@property --tw-ring-offset-color {
  syntax:"*";
  inherits:false;
  initial-value:#fff;
}

@property --tw-ring-offset-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000;
}

@property --tw-outline-style {
  syntax:"*";
  inherits:false;
  initial-value:solid;
}

@property --tw-duration {
  syntax:"*";
  inherits:false;
}

@property --tw-ease {
  syntax:"*";
  inherits:false;
}

@property --tw-content {
  syntax:"*";
  inherits:false;
  initial-value:"";
}

@property --tw-scale-x {
  syntax:"*";
  inherits:false;
  initial-value:1;
}

@property --tw-scale-y {
  syntax:"*";
  inherits:false;
  initial-value:1;
}

@property --tw-scale-z {
  syntax:"*";
  inherits:false;
  initial-value:1;
}

@keyframes pulse {
  50% {
    opacity:.5;
  }
}


