@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --canvas: #f3f4ee;
  --surface: #fbfcf8;
  --surface-strong: #fff;
  --ink: #1e251d;
  --muted: #70766b;
  --line: #d9ddd2;
  --line-strong: #b9c0b2;
  --accent: #b9e246;
  --run: #dff58e;
  --bike: #9edee0;
  --rest: #e5e7df;
  --race: #e9534c;
  --strength: #dec8f4;
  --danger: #a53e36;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); font-family: Inter, Arial, sans-serif; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
body.modal-open { position: fixed; right: 0; left: 0; width: 100%; overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.loading-screen, .fatal-error { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; }
.no-script-content { min-height: 100vh; display: grid; align-content: center; gap: 14px; padding: 28px; text-align: center; }
.no-script-content h1 { max-width: 760px; margin: 0 auto; font: 700 clamp(34px, 6vw, 64px)/1 Manrope, sans-serif; letter-spacing: -.055em; }
.no-script-content p { max-width: 620px; margin: 0 auto; color: var(--muted); line-height: 1.6; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Manrope, sans-serif; }
.brand > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: var(--ink); color: var(--surface); font-size: 11px; font-weight: 800; }
.brand > strong { font-size: 19px; letter-spacing: -.04em; }
.eyebrow, .context-label { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.primary-button, .secondary-button, .danger-button, .text-button { min-height: 40px; border-radius: 10px; padding: 0 15px; font-weight: 750; cursor: pointer; }
.primary-button { border: 1px solid var(--ink); background: var(--ink); color: var(--surface); }
.primary-button:hover { background: #313b2e; }
.secondary-button { border: 1px solid var(--line); background: var(--surface-strong); }
.secondary-button:hover { border-color: var(--line-strong); }
.danger-button { border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line)); background: transparent; color: var(--danger); }
.text-button { min-height: 32px; border: 0; padding: 0; background: transparent; color: var(--muted); }
.button-link { display: inline-grid; place-items: center; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .5; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 540px) 1fr; }
.auth-card { display: grid; align-content: center; padding: clamp(28px, 7vw, 90px); background: var(--surface); }
.auth-card .brand { margin-bottom: 64px; }
.auth-card h1, .installer-card h1 { margin: 0; font: 700 clamp(34px, 5vw, 58px)/1 Manrope, sans-serif; letter-spacing: -.06em; }
.auth-card > p:not(.eyebrow), .installer-card > p { color: var(--muted); line-height: 1.6; }
.auth-form { display: grid; gap: 14px; margin-top: 22px; }
.verification-copy { margin: 0 0 18px; color: var(--landing-muted); font-size: 13px; line-height: 1.55; }
.verification-copy strong { color: var(--landing-ink); }
.verification-code { font: 800 25px/1 Manrope, sans-serif; letter-spacing: .28em; text-align: center; }
.verification-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 16px; }
.auth-form label, .install-form label, .field { display: grid; gap: 7px; }
.workout-distance-field[hidden], .workout-pace-field[hidden] { display: none !important; }
.auth-form label > span, .install-form label > span, .field > span { color: var(--muted); font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; background: var(--surface-strong); color: var(--ink); outline: none; }
textarea { min-height: 104px; padding-block: 11px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #8ba43d; box-shadow: 0 0 0 3px rgb(185 226 70 / 18%); }
.auth-toggle { margin-top: 18px; text-align: left; }
.auth-poster { display: grid; align-content: end; min-height: 100vh; padding: 7vw; background: linear-gradient(145deg, #b9e246, #e9f6ba 55%, #9edee0); }
.auth-poster > span { font: 800 clamp(64px, 11vw, 154px)/.78 Manrope, sans-serif; letter-spacing: -.09em; }
.auth-poster p { max-width: 400px; margin-top: 40px; font-size: 18px; font-weight: 600; }

.landing { --landing-bg: #f2f4ed; --landing-surface: #fbfcf8; --landing-ink: #182017; --landing-muted: #5f685b; --landing-line: #ced4c7; --landing-shell: min(1400px, calc(100% - 48px)); min-height: 100dvh; overflow: hidden; background: var(--landing-bg); color: var(--landing-ink); }
.landing button, .landing a { -webkit-tap-highlight-color: transparent; }
.landing button:focus-visible, .landing a:focus-visible, .landing input:focus-visible, .landing select:focus-visible { outline: 3px solid #9fbd3d; outline-offset: 3px; }
.landing-hero-stage { position: relative; min-height: 100dvh; overflow: hidden; isolation: isolate; background: #293326; color: #f7faef; }
.landing-nav { position: relative; z-index: 2; width: var(--landing-shell); height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; margin: 0 auto; }
.landing-brand { color: #f7faef; text-decoration: none; }
.landing-hero-stage .landing-brand > span { border: 1px solid rgb(255 255 255 / 30%); background: rgb(19 27 18 / 45%); color: #f7faef; backdrop-filter: blur(10px); }
.landing-nav nav { display: flex; justify-content: center; gap: 28px; }
.landing-nav nav a { color: rgb(247 250 239 / 82%); font-size: 13px; font-weight: 650; text-decoration: none; transition: color .2s ease; }
.landing-nav nav a:hover { color: #fff; }
.landing-nav > div, .landing-actions { display: flex; align-items: center; gap: 9px; }
.landing-primary, .landing-secondary, .landing-login { min-height: 44px; border-radius: 10px; padding: 0 18px; font-weight: 780; white-space: nowrap; cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.landing-primary { border: 1px solid var(--landing-ink); background: var(--landing-ink); color: #f9fbf5; }
.landing-secondary { border: 1px solid var(--landing-line); background: var(--landing-surface); color: var(--landing-ink); }
.landing-login { border: 0; background: transparent; color: #f7faef; }
.landing-primary:hover { background: #303b2d; }
.landing-secondary:hover { border-color: #929d8d; }
.landing-primary:active, .landing-secondary:active, .landing-login:active { transform: translateY(1px); }
.landing-hero-stage .landing-primary { border-color: #c5e35a; background: #c5e35a; color: #182017; }
.landing-hero-stage .landing-primary:hover { background: #d3ed79; }
.landing-hero-stage .landing-secondary { border-color: rgb(255 255 255 / 38%); background: rgb(18 27 16 / 28%); color: #f7faef; backdrop-filter: blur(12px); }
.landing-hero-stage .landing-secondary:hover { border-color: rgb(255 255 255 / 70%); background: rgb(18 27 16 / 42%); }
.landing-hero { position: relative; z-index: 1; width: var(--landing-shell); min-height: calc(100dvh - 72px); display: grid; align-items: center; margin: 0 auto; padding: 44px 0 72px; }
.landing-hero-copy { position: relative; z-index: 1; max-width: 1180px; }
.landing-kicker { margin: 0 0 20px; color: #d7f276; font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.landing-hero h1 { max-width: none; margin: 0; color: #f7faef; font: 750 clamp(42px, 3.8vw, 64px)/1.02 Manrope, sans-serif; letter-spacing: -.055em; overflow-wrap: normal; white-space: nowrap; text-shadow: 0 3px 32px rgb(10 18 9 / 24%); }
.landing-lead { max-width: 660px; margin: 25px 0 28px; color: rgb(247 250 239 / 88%); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; }
.landing-hero-media { position: absolute; z-index: 0; inset: 0; margin: 0; overflow: hidden; }
.landing-hero-media::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, rgb(12 20 11 / 82%) 0%, rgb(18 27 16 / 62%) 42%, rgb(18 27 16 / 15%) 72%, rgb(18 27 16 / 24%) 100%), linear-gradient(0deg, rgb(8 14 7 / 28%), transparent 48%); pointer-events: none; }
.landing-hero-poster, .landing-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 58% center; }
.landing-hero-poster { z-index: 0; will-change: transform, opacity; transition: opacity .8s ease; }
.landing-hero-video { z-index: 1; opacity: 0; transition: opacity .8s ease; }
.landing-hero-media.video-ready .landing-hero-poster { opacity: 0; }
.landing-hero-media.video-ready .landing-hero-video { opacity: 1; }
.landing-features { width: var(--landing-shell); margin: 0 auto; padding: 112px 0; }
.landing-section-copy { max-width: none; margin-bottom: 46px; }
.landing-section-copy h2, .landing-coach h2, .landing-roles h2, .landing-final h2 { margin: 0; font: 720 clamp(34px, 2.8vw, 46px)/1 Manrope, sans-serif; letter-spacing: -.05em; overflow-wrap: normal; }
.landing-section-copy p, .landing-coach > div > p, .landing-roles p, .landing-final p { max-width: 610px; margin: 18px 0 0; color: var(--landing-muted); font-size: 16px; line-height: 1.6; }
.feature-bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(190px, auto); gap: 14px; }
.feature-bento article { grid-column: span 5; display: grid; align-content: end; padding: clamp(22px, 3vw, 38px); border: 1px solid var(--landing-line); border-radius: 16px; background: var(--landing-surface); }
.feature-bento .feature-calendar { grid-column: span 7; grid-row: span 2; min-height: 394px; background: linear-gradient(145deg, #dcecad, #f6f8ed 72%); }
.feature-bento .feature-json { grid-column: span 7; background: #d9eceb; }
.feature-bento span { color: #536046; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.feature-bento h3 { max-width: 540px; margin: 13px 0 8px; font: 700 clamp(21px, 2vw, 30px)/1.08 Manrope, sans-serif; letter-spacing: -.04em; overflow-wrap: normal; }
.feature-bento p { max-width: 470px; margin: 0; color: var(--landing-muted); font-size: 14px; line-height: 1.55; }
.landing-coach { width: var(--landing-shell); display: grid; grid-template-columns: minmax(0, .95fr) minmax(540px, 1.05fr); align-items: center; gap: clamp(40px, 6vw, 88px); margin: 0 auto; padding: 80px 0 130px; }
.landing-coach h2 { font-size: clamp(32px, 2.35vw, 38px); }
.landing-coach figure { margin: 0; }
.landing-coach img { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; border-radius: 16px; object-fit: cover; }
.landing-coach ul { display: grid; gap: 12px; margin: 28px 0 32px; padding: 0; list-style: none; }
.landing-coach li { padding-left: 19px; color: var(--landing-ink); font-size: 14px; font-weight: 700; }
.landing-coach li::before { content: "+"; display: inline-block; width: 19px; margin-left: -19px; color: #708b29; }
.landing-roles { width: var(--landing-shell); display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 auto; border-block: 1px solid var(--landing-line); }
.landing-roles > div { min-height: 340px; display: grid; align-content: center; padding: clamp(32px, 5vw, 72px); }
.landing-roles > div + div { border-left: 1px solid var(--landing-line); }
.landing-roles h2 { font-size: clamp(31px, 4vw, 48px); }
.landing-text-action { width: fit-content; margin-top: 25px; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 4px; background: transparent; color: var(--landing-ink); font-weight: 800; cursor: pointer; }
.landing-final { width: var(--landing-shell); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(46px, 9vw, 132px); margin: 0 auto; padding: 112px 0; text-align: left; }
.landing-final-copy { min-width: 0; }
.landing-final-copy p { margin-bottom: 28px; }
.landing-mascot { display: grid; justify-items: center; gap: 13px; }
.landing-mascot-stage { width: 220px; height: 220px; display: grid; place-items: center; border: 1px solid var(--landing-line); border-radius: 16px; background: linear-gradient(145deg, #e4f0bd, #f8faf1); }
.landing-mascot-stage .wheel-and-hamster { font-size: 13.5px; }
.landing-mascot > p { margin: 0; color: var(--landing-muted); font-size: 12px; font-weight: 700; text-align: center; }
.landing-footer { width: var(--landing-shell); min-height: 110px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; margin: 0 auto; border-top: 1px solid var(--landing-line); }
.landing-footer .landing-brand, .landing-footer .landing-login { color: var(--landing-ink); }
.landing-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 20px; }
.landing-legal-links a { color: var(--landing-muted); font-size: 11px; font-weight: 650; text-decoration: none; }
.landing-legal-links a:hover { color: var(--landing-ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-backdrop { z-index: 50; align-items: center; justify-content: center; padding: 20px; }
.landing-auth-dialog { width: min(460px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 28px; border-radius: 16px; background: var(--landing-surface); color: var(--landing-ink); box-shadow: 0 30px 90px rgb(20 27 18 / 30%); }
.landing-auth-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.landing-auth-head span { color: var(--landing-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.landing-auth-head h2 { margin: 6px 0 0; font: 720 34px/1 Manrope, sans-serif; letter-spacing: -.05em; }
.landing-modal-close { border: 0; padding: 4px 0; background: transparent; color: var(--landing-muted); font-size: 11px; font-weight: 750; cursor: pointer; }
.landing-auth-dialog .auth-form { margin: 0; }
.landing-auth-dialog .landing-primary { width: 100%; margin-top: 4px; }
.auth-form .auth-checkbox { grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 10px; padding: 3px 0; cursor: pointer; }
.auth-form .auth-checkbox input { width: 18px; min-height: 18px; height: 18px; margin: 1px 0 0; padding: 0; accent-color: #769124; }
.auth-form .auth-checkbox > span { color: var(--landing-muted); font-size: 11px; font-weight: 550; line-height: 1.5; }
.auth-form .auth-checkbox a { color: var(--landing-ink); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.auth-form .auth-remember { align-items: center; }
.auth-form .auth-remember input { margin-top: 0; }

@media (prefers-color-scheme: dark) {
  .landing { --landing-bg: #111510; --landing-surface: #1b2119; --landing-ink: #edf1e8; --landing-muted: #afb8aa; --landing-line: #384035; }
  .landing-kicker, .feature-bento span { color: #bfd768; }
  .landing-primary { border-color: #c5e35a; background: #c5e35a; color: #172011; }
  .landing-primary:hover { background: #d2ec76; }
  .landing-secondary { background: #1b2119; }
  .feature-bento .feature-calendar { background: linear-gradient(145deg, #35431f, #1b2119 72%); }
  .feature-bento .feature-json { background: #183536; }
  .landing-coach li::before { color: #c5e35a; }
  .landing-mascot-stage { background: linear-gradient(145deg, #34421f, #1b2119); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-video { display: none; }
  .wheel-and-hamster, .wheel-and-hamster *, .hamster-bike, .hamster-bike *, .strength-hamster, .strength-hamster *, .rest-hamster, .rest-hamster * { animation: none !important; }
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: grid; grid-template-rows: auto 1fr auto; gap: 44px; padding: 28px 21px; border-right: 1px solid var(--line); background: var(--surface); }
.nav { display: grid; align-content: start; gap: 7px; }
.nav button { min-height: 43px; border: 0; border-radius: 10px; padding: 0 13px; background: transparent; text-align: left; font-weight: 650; cursor: pointer; }
.nav button:hover, .nav button.active { background: var(--rest); }
.sidebar-account { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.sidebar-account > span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.sidebar-account .text-button { justify-self: start; }
.main { min-width: 0; padding: 26px clamp(22px, 4vw, 58px) 60px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 34px; }
.topbar h1 { margin: 0; font: 600 clamp(29px, 4vw, 48px)/1 Manrope, sans-serif; letter-spacing: -.055em; }
.user-chip { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 6px 9px 6px 7px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background-color .16s ease; }
.user-chip:hover, .user-chip:focus-visible { border-color: var(--line); background: var(--surface); outline: none; }
.user-chip > span, .avatar-large { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--accent); font-weight: 800; }
.avatar-shell { flex: none; overflow: hidden; }
.avatar-shell img { width: 100%; height: 100%; display: block; object-fit: cover; }
.user-chip div { display: grid; gap: 3px; }
.user-chip small { color: var(--muted); }
.user-chip b { margin-left: 3px; color: var(--muted); font-size: 20px; font-weight: 500; line-height: 1; }
.notice { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 13px 15px; border: 1px solid #abc75c; border-radius: 10px; background: #f1f9d7; font-size: 13px; }
.notice.error { border-color: #d8a6a1; background: #fff0ee; color: #7c2c27; }
.notice button { border: 0; background: transparent; color: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }

.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 30px; border-block: 1px solid var(--line); }
.summary-grid div { padding: 21px 24px; border-right: 1px solid var(--line); }
.summary-grid div:first-child { padding-left: 0; }
.summary-grid div:last-child { border-right: 0; }
.summary-grid span { display: block; color: var(--muted); font-size: 11px; }
.summary-grid strong { display: block; margin-top: 8px; font: 700 clamp(28px, 3vw, 39px)/1 Manrope, sans-serif; letter-spacing: -.05em; }
.coach-dashboard { display: grid; gap: 26px; }
.coach-dashboard-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.coach-dashboard-intro > div > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.coach-dashboard-intro h2 { margin: 7px 0 0; font: 700 clamp(27px, 3.5vw, 41px)/1 Manrope, sans-serif; letter-spacing: -.05em; }
.coach-dashboard-intro p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.coach-summary { margin: 0; }
.coach-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); gap: 18px; align-items: start; }
.coach-reports-panel, .coach-week-panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.coach-report-list, .coach-week-list { display: grid; }
.coach-report-row { width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; gap: 13px; padding: 15px 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.coach-report-row:hover { background: #f6f8f1; }
.coach-report-date { color: var(--muted); font-size: 11px; font-weight: 750; }
.coach-report-row > div { min-width: 0; display: grid; gap: 3px; }
.coach-report-row strong { font-size: 13px; }
.coach-report-row > div > span { color: var(--muted); font-size: 10px; }
.coach-report-row p { display: -webkit-box; overflow: hidden; margin: 5px 0 0; color: #4c5548; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.coach-report-row > b { align-self: center; color: var(--muted); font-size: 19px; }
.coach-week-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.coach-week-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--accent); font-size: 10px; font-weight: 850; }
.coach-week-row > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.coach-week-row > div:nth-child(2) strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.coach-week-row > div:nth-child(2) span, .coach-week-report-count span, .coach-week-no-plan { color: var(--muted); font-size: 9px; }
.coach-week-report-count { display: grid; justify-items: end; }
.coach-week-report-count strong { font: 750 18px/1 Manrope, sans-serif; }
.coach-week-row .text-button, .coach-week-no-plan { grid-column: 2 / -1; justify-self: start; min-height: 26px; }
.coach-dashboard-empty { display: grid; gap: 5px; padding: 24px 0; border-top: 1px solid var(--line); }
.coach-dashboard-empty p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.coach-dashboard-empty.standalone { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.overview-roadmap { margin-bottom: 26px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 26px; align-items: start; }
.plan-panel, .next-panel, .calendar.expanded, .coach-strip, .join-strip, .empty-state, .athlete-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plan-panel, .calendar.expanded { padding: clamp(18px, 2.6vw, 30px); }
.next-panel { padding: 24px; }
.section-head, .plan-title-row, .workouts-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.section-head { margin-bottom: 24px; }
.section-head h2, .next-panel h2, .coach-strip h2, .join-strip h2, .workouts-head h3 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.section-head p, .coach-strip p, .join-strip p, .workouts-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.next-list { display: grid; margin-top: 16px; }
.next-row { display: grid; grid-template-columns: 55px 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.next-row time { color: var(--muted); font-size: 11px; }
.next-row div { display: grid; gap: 4px; }
.next-row strong { font-size: 13px; }
.next-row span, .muted-copy { color: var(--muted); font-size: 12px; }

.calendar { min-width: 0; }
.plan-title-row { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.plan-title-row h3 { margin: 9px 0 4px; font: 650 clamp(23px, 3vw, 34px)/1.05 Manrope, sans-serif; letter-spacing: -.05em; }
.plan-title-row p { margin: 0; color: var(--muted); font-size: 12px; }
.sport-token { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 7px; background: var(--run); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.sport-token.bike { background: var(--bike); }
.sport-token.mixed { background: #b6e5aa; }
.calendar-scroll { overflow-x: auto; margin-top: 18px; padding-bottom: 5px; }
.month-grid { min-width: 1060px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.calendar:not(.expanded) .month-grid { min-width: 940px; }
.weekday-row, .week-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(118px, .85fr); }
.weekday-row { background: var(--ink); color: var(--surface); }
.weekday-row div { padding: 9px 11px; border-right: 1px solid rgb(255 255 255 / 13%); font-size: 9px; font-weight: 900; }
.weekday-row div:last-child { border-right: 0; }
.weekday-row .volume-heading { background: rgb(255 255 255 / 7%); color: var(--accent); }
.week-row { border-bottom: 1px solid var(--line); }
.day-cell { min-width: 0; min-height: 218px; padding: 9px; border-right: 1px solid var(--line); background: var(--surface); }
.day-cell:nth-child(7) { border-right: 0; }
.day-cell.outside { background: #f0f1ec; }
.day-cell.today { box-shadow: inset 0 0 0 2px var(--ink); }
.day-cell.athlete-today { position: relative; background: #f2f8dc; box-shadow: inset 0 0 0 3px #78952d; }
.day-cell.coach-editable { cursor: pointer; transition: background-color .16s ease; }
.day-cell.coach-editable:hover { background: #fbfdf5; }
.day-cell.drop-target { background: #eef8d0; box-shadow: inset 0 0 0 2px #78952d; }
.day-cell > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.day-cell > header time { color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -.025em; }
.mobile-weekday { display: none; }
.mobile-date-number { display: none; }
.day-header-meta { display: flex; align-items: center; gap: 5px; }
.day-header-meta > b { padding: 4px 6px; border-radius: 5px; background: #78952d; color: #fff; font-size: 7px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.day-header-meta > span { display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 999px; background: var(--surface-strong); color: var(--ink); font-size: 9px; font-weight: 800; }
.day-workouts { display: grid; gap: 7px; align-content: start; }
.workout-card { position: relative; min-width: 0; }
.workout-card[draggable="true"] { cursor: grab; }
.workout-card.dragging { opacity: .38; }
.workout-card.drop-before::before, .workout-card.drop-after::after { position: absolute; z-index: 5; right: 2px; left: 2px; height: 3px; border-radius: 99px; background: #78952d; box-shadow: 0 0 0 2px var(--surface); content: ""; pointer-events: none; }
.workout-card.drop-before::before { top: -5px; }
.workout-card.drop-after::after { bottom: -5px; }
.workout-block { width: 100%; min-width: 0; display: grid; gap: 6px; padding: 11px; border: 0; border-radius: 9px; background: var(--run); color: var(--ink); font: inherit; text-align: left; }
.workout-block.editable { padding-right: 34px; }
.workout-block.editable, .workout-block.viewable { cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.workout-block.editable:hover, .workout-block.viewable:hover, .workout-block.editable:focus-visible, .workout-block.viewable:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(34 42 30 / 12%); outline: 2px solid #78952d; outline-offset: 2px; }
.workout-block.viewable:active { transform: scale(.98); }
.workout-block.bike { background: var(--bike); }
.workout-block.strength { background: var(--strength); }
.workout-block.rest { background: var(--rest); }
.workout-block.race { background: var(--race); color: #fff; }
.workout-block.race span { color: rgb(255 255 255 / 82%); }
.workout-block > div { display: flex; justify-content: space-between; gap: 6px; }
.workout-block span { color: #4f594b; font-size: 11px; line-height: 1.3; }
.workout-mobile-metric { display: none; }
.workout-block strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.25; }
.workout-copy { position: absolute; z-index: 2; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 6px; padding: 0; background: rgb(255 255 255 / 62%); color: var(--ink); font-size: 15px; line-height: 1; cursor: pointer; opacity: .72; transition: opacity .16s ease, background-color .16s ease; }
.workout-copy:hover, .workout-copy:focus-visible { background: #fff; opacity: 1; outline: none; }
.workout-hover-card { position: fixed; z-index: 30; display: block; visibility: hidden; opacity: 0; padding: 16px; border: 1px solid #cbd1c4; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 18px 45px rgb(25 32 23 / 20%); pointer-events: none; transform: translateY(5px); transition: opacity .12s ease, transform .12s ease, visibility .12s ease; }
.workout-hover-card.visible { visibility: visible; opacity: 1; transform: translateY(0); }
.workout-hover-card > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.workout-hover-card time { color: var(--muted); font-size: 11px; }
.workout-hover-type { display: inline-flex; padding: 4px 7px; border-radius: 6px; background: var(--run); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.workout-hover-type.bike { background: var(--bike); }
.workout-hover-type.strength { background: var(--strength); }
.workout-hover-type.rest { background: var(--rest); }
.workout-hover-type.race { background: var(--race); color: #fff; }
.workout-hover-card h4 { margin: 12px 0; font: 700 17px/1.2 Manrope, sans-serif; letter-spacing: -.025em; }
.workout-hover-card dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 0; }
.workout-hover-card dl div { display: grid; gap: 2px; padding: 8px; border-radius: 7px; background: var(--canvas); }
.workout-hover-card dt { color: var(--muted); font-size: 9px; }
.workout-hover-card dd { margin: 0; font-size: 11px; font-weight: 750; }
.workout-hover-card p { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--line); color: #4d5549; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.workout-hover-card small { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; }
.week-volume { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 11px; border-left: 1px solid var(--line); background: #f4f7e9; }
.week-volume > span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.week-volume > div { display: grid; gap: 3px; padding-top: 9px; border-top: 1px solid #d8dfc4; }
.week-volume em { color: var(--muted); font-size: 9px; font-style: normal; }
.week-volume strong { font: 750 13px/1.15 Manrope, sans-serif; }
.month-volume-row { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(130px, auto) minmax(150px, auto); align-items: center; gap: 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--ink); color: var(--surface); }
.month-volume-row:last-child { border-bottom: 0; }
.month-volume-row > div { display: grid; gap: 3px; }
.month-volume-row span, .month-volume-row em { color: #bfc5b8; font-size: 9px; font-style: normal; text-transform: uppercase; }
.month-volume-row strong { font: 700 15px/1.15 Manrope, sans-serif; }
.month-volume-row b { color: var(--accent); font: 750 14px/1.15 Manrope, sans-serif; }
.day-add-slot, .day-add-more { width: 100%; border: 1px dashed #aeb7a5; background: transparent; color: var(--muted); font-weight: 750; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, color .16s ease; }
.day-add-slot { min-height: 59px; display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 9px; font-size: 9px; }
.day-add-slot span { color: var(--ink); font-size: 18px; line-height: 1; }
.day-add-more { min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 8px; font-size: 9px; }
.day-add-more span { color: var(--ink); font-size: 15px; line-height: 1; }
.day-add-slot:hover, .day-add-more:hover { border-color: #71892d; background: #f2f8de; color: var(--ink); }
.calendar-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.readonly-plan-badge { align-self: center; padding: 8px 11px; border: 1px solid #d5d9cd; border-radius: 9px; background: #f3f5ef; color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.day-report-button, .day-report-view { margin-top: 9px; }
.day-report-button { position: relative; width: 36px; min-height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid #cbd3b8; border-radius: 50%; background: #f8faef; color: #4c5e29; font-size: 10px; font-weight: 850; cursor: pointer; }
.day-report-button span { font-size: 17px; line-height: 1; }
.day-report-button b { position: absolute; top: -5px; right: -6px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--surface); border-radius: 9px; background: var(--ink); color: #fff; font-size: 8px; line-height: 1; }
.day-report-button.completed { border-color: #93ad4e; background: #edf6d1; color: #344417; }
.day-report-view { width: 100%; display: grid; gap: 6px; padding: 10px; border: 1px solid #cbd3b8; border-radius: 8px; background: #f7f9ee; text-align: left; cursor: pointer; }
.day-report-view:hover { border-color: #91aa4d; background: #f1f7df; }
.day-report-view > span:first-child { color: #64714f; font-size: 9px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.day-report-excerpt { display: -webkit-box; overflow: hidden; color: #3f4939; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.day-report-view > b { color: #4c5e29; font-size: 9px; }

.coach-strip, .join-strip { margin-top: 26px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.coach-strip { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.coach-strip p { color: #c7cbbf; }
.invite-code { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 15px; }
.invite-code span { grid-column: 1 / -1; color: #b9bfb2; font-size: 9px; text-transform: uppercase; }
.invite-code strong { font: 800 23px/1 monospace; letter-spacing: .12em; }
.invite-code button { border: 0; background: transparent; color: var(--accent); font-weight: 800; cursor: pointer; }
.join-form { display: flex; align-items: end; gap: 8px; min-width: 320px; }
.join-form label { flex: 1; display: grid; gap: 6px; }
.join-form label span { color: var(--muted); font-size: 10px; }

.plans-view, .athletes-view { display: grid; gap: 22px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.file-button { display: inline-grid; place-items: center; cursor: pointer; }
.plans-layout { display: grid; gap: 22px; }
.plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 34px; padding-right: 26px; }
.plan-list-item { position: relative; min-width: 0; display: grid; justify-items: start; gap: 6px; margin-right: 2px; padding: 15px 154px 15px 15px; overflow: visible; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; cursor: pointer; }
.plan-list-item:hover, .plan-list-item.active { border-color: #9ab847; background: #f5f9e8; }
.plan-list-item .sport-token { margin-bottom: 4px; }
.plan-list-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-list-dates { color: var(--muted); font-size: 10px; }
.plan-owner { position: absolute; top: 50%; right: -29px; display: flex; align-items: center; gap: 10px; transform: translateY(-50%); pointer-events: none; }
.plan-owner-name { max-width: 108px; overflow: hidden; color: #30392d; font: 800 16px/1.05 Manrope, sans-serif; letter-spacing: -.025em; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.plan-owner-avatar { display: grid; width: 58px; height: 58px; place-items: center; border: 5px solid var(--canvas); border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 16px; font-weight: 850; box-shadow: 0 8px 18px rgb(35 45 29 / 15%); }
.plan-origin { grid-column: 1 / -1; justify-self: start; padding: 4px 7px; border-radius: 6px; color: #5c6653; background: #eef1e8; font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.plan-origin.coach { color: #774336; background: #f4ded7; }
.plan-list-meta { min-width: 0; display: flex; align-items: center; gap: 8px; }
.plan-list-hamster { position: relative; width: 34px; height: 34px; flex: 0 0 34px; overflow: hidden; pointer-events: none; }
.plan-list-hamster .wheel-and-hamster { position: absolute; top: 0; left: 0; font-size: 2.84px; }
.empty-state { min-height: 300px; display: grid; align-content: center; justify-items: start; padding: clamp(28px, 6vw, 62px); background: linear-gradient(135deg, #f0f8d8, var(--surface) 60%); }
.empty-state > span { font: 800 10px/1 monospace; letter-spacing: .14em; }
.empty-state h2 { margin: 18px 0 8px; font: 700 clamp(28px, 4vw, 44px)/1 Manrope, sans-serif; letter-spacing: -.055em; }
.empty-state p { max-width: 470px; margin: 0 0 22px; color: var(--muted); }
.athletes-view > .coach-strip { margin-top: 0; }
.athlete-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 10px; align-items: start; }
.athlete-card { min-width: 0; display: grid; align-content: start; gap: 10px; padding: 14px; }
.athlete-card h3, .athlete-card p { margin: 0; }
.athlete-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.athlete-card-head .avatar-large { width: 36px; height: 36px; font-size: 12px; }
.athlete-card-head > div:nth-child(2) { min-width: 0; }
.athlete-card-head h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.athlete-card-head p { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.athlete-plan-count { display: grid; justify-items: end; }
.athlete-plan-count strong { font: 750 19px/1 Manrope, sans-serif; }
.athlete-plan-count span { color: var(--muted); font-size: 9px; }
.athlete-plan-section, .athlete-week-section { min-width: 0; display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.athlete-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.athlete-section-title > strong { font-size: 11px; }
.athlete-section-title > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.athlete-plan-list, .athlete-week-feed { max-height: 180px; display: grid; overflow: auto; }
.athlete-plan-list > button, .athlete-feed-row { width: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border: 0; border-top: 1px solid #e6e9e0; background: transparent; text-align: left; cursor: pointer; }
.athlete-plan-list > button:first-child, .athlete-week-feed > button:first-child { border-top: 0; }
.athlete-plan-list > button:hover, .athlete-feed-row:hover { background: #f6f8f1; }
.athlete-plan-list > button > span:nth-child(2), .athlete-feed-row > div { min-width: 0; display: grid; gap: 3px; }
.athlete-plan-list > button > span:nth-child(2) > strong, .athlete-feed-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.athlete-plan-list small, .athlete-feed-row span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.athlete-plan-list b, .athlete-feed-row > b { color: var(--muted); font-size: 18px; }
.athlete-feed-row time { color: var(--muted); font-size: 10px; }
.athlete-feed-row.report strong { color: #506427; }
.athlete-feed-row.report span { color: #3f4939; }
.athlete-section-empty { margin: 1px 0 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.athlete-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.athlete-actions > * { min-width: 0; min-height: 34px; padding-inline: 7px; font-size: 10px; white-space: nowrap; }
.athlete-note-form { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.athlete-note-form label { display: grid; gap: 6px; }
.athlete-note-form label span { color: var(--muted); font-size: 10px; font-weight: 750; }
.athlete-note-form textarea { min-height: 58px; resize: vertical; }
.athlete-note-form button { justify-self: start; }

.plan-roadmap { position: relative; overflow: hidden; padding: clamp(20px, 3vw, 32px); border: 1px solid #cdd9ab; border-radius: var(--radius); background: linear-gradient(135deg, #f5fadf 0%, #edf4d2 55%, #f9fbf2 100%); }
.roadmap-copy { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.roadmap-copy span { color: #687451; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.roadmap-copy h2 { margin: 6px 0 0; font: 700 clamp(20px, 3vw, 30px)/1.05 Manrope, sans-serif; letter-spacing: -.04em; }
.roadmap-copy > strong { padding: 9px 12px; border-radius: 9px; background: var(--ink); color: var(--accent); font-size: 11px; white-space: nowrap; }
.roadmap-track { position: relative; height: 104px; margin: 24px 42px 0; }
.roadmap-line { position: absolute; inset: 50px 0 auto; height: 6px; overflow: hidden; border-radius: 99px; background: #d5ddbd; }
.roadmap-line > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9eba47, #556d24); }
.roadmap-start, .roadmap-finish { position: absolute; top: 68px; display: grid; gap: 4px; color: #697458; font-size: 9px; font-weight: 750; }
.roadmap-start { left: 0; transform: translateX(-50%); }
.roadmap-finish { right: 0; justify-items: end; transform: translateX(50%); }
.roadmap-start i { position: absolute; top: -23px; left: 50%; width: 9px; height: 9px; border: 2px solid #73893a; border-radius: 50%; background: #f5fadf; transform: translateX(-50%); }
.roadmap-finish i { position: absolute; top: -30px; right: 50%; color: #29321e; font-size: 24px; font-style: normal; transform: translateX(50%); }
.roadmap-marker { position: absolute; z-index: 2; top: 12px; width: 75.6px; height: 75.6px; margin-left: -37.8px; }
.roadmap-marker::before { position: absolute; z-index: 0; inset: 1px -4px -1px; border-radius: 20px; background: #f0f6d9; content: ""; }
.roadmap-marker > .wheel-and-hamster, .roadmap-marker > .hamster-bike, .roadmap-marker > .strength-hamster, .roadmap-marker > .rest-hamster { z-index: 1; }
.hamster-mode-easy { --hamster-dur: 1.65s; }
.hamster-mode-steady { --hamster-dur: 1s; }
.hamster-mode-hard { --hamster-dur: .55s; }
.wheel-and-hamster { --dur: var(--hamster-dur, 1s); position: relative; width: 12em; height: 12em; font-size: 6.3px; filter: drop-shadow(0 8px 9px rgb(53 68 31 / 16%)); transform: scaleX(-1); transform-origin: center; }
.wheel-and-hamster .wheel,
.wheel-and-hamster .hamster,
.wheel-and-hamster .hamster div,
.wheel-and-hamster .spoke { position: absolute; }
.wheel-and-hamster .wheel,
.wheel-and-hamster .spoke { top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; }
.wheel-and-hamster .wheel { z-index: 2; background: radial-gradient(100% 100% at center, hsl(0 0% 60% / 0%) 47.8%, hsl(0 0% 60%) 48%); }
.wheel-and-hamster .hamster { z-index: 1; top: 50%; left: calc(50% - 3.5em); width: 7em; height: 3.75em; animation: roadmapHamster var(--dur) ease-in-out infinite; transform: rotate(4deg) translate(-.8em, 1.85em); transform-origin: 50% 0; }
.wheel-and-hamster .hamster__head { top: 0; left: -2em; width: 2.75em; height: 2.5em; border-radius: 70% 30% 0 100% / 40% 25% 25% 60%; background: hsl(30 90% 55%); box-shadow: 0 -.25em 0 hsl(30 90% 80%) inset, .75em -1.55em 0 hsl(30 90% 90%) inset; animation: roadmapHamsterHead var(--dur) ease-in-out infinite; transform-origin: 100% 50%; }
.wheel-and-hamster .hamster__ear { top: -.25em; right: -.25em; width: .75em; height: .75em; border-radius: 50%; background: hsl(0 90% 85%); box-shadow: -.25em 0 hsl(30 90% 55%) inset; animation: roadmapHamsterEar var(--dur) ease-in-out infinite; transform-origin: 50% 75%; }
.wheel-and-hamster .hamster__eye { top: .375em; left: 1.25em; width: .5em; height: .5em; border-radius: 50%; background: hsl(90 14% 10%); animation: roadmapHamsterEye var(--dur) linear infinite; }
.wheel-and-hamster .hamster__nose { top: .75em; left: 0; width: .2em; height: .25em; border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%; background: hsl(0 90% 75%); }
.wheel-and-hamster .hamster__cheek { display: none; z-index: 2; top: 1em; left: .12em; width: 1.48em; height: 1.36em; border: .1em solid hsl(28 76% 57%); border-radius: 58% 48% 60% 52%; background: hsl(31 92% 78%); box-shadow: .88em .1em 0 -.04em hsl(31 90% 72%), inset -.16em -.15em 0 hsl(28 82% 64%); }
.hamster-mode-easy .wheel-and-hamster .hamster__cheek { display: block; animation: roadmapCheeks var(--dur) ease-in-out infinite; }
.hamster-mode-easy .wheel-and-hamster .hamster__eye, .hamster-mode-easy .wheel-and-hamster .hamster__nose { z-index: 4; }
.wheel-and-hamster .hamster__headband { display: none; z-index: 3; top: .14em; left: .2em; width: 2.25em; height: .34em; border-radius: .2em; background: #e63d45; box-shadow: 0 .12em 0 #a91f2b; transform: rotate(-8deg); }
.wheel-and-hamster .hamster__headband::after { position: absolute; top: .08em; right: -.72em; width: .85em; height: .24em; clip-path: polygon(0 0,100% 48%,0 100%); background: #e63d45; content: ""; }
.hamster-mode-hard .wheel-and-hamster .hamster__headband { display: block; }
.wheel-and-hamster .hamster__body { top: .25em; left: 2em; width: 4.5em; height: 3em; border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%; background: hsl(30 90% 90%); box-shadow: .1em .75em 0 hsl(30 90% 55%) inset, .15em -.5em 0 hsl(30 90% 80%) inset; animation: roadmapHamsterBody var(--dur) ease-in-out infinite; transform-origin: 17% 50%; transform-style: preserve-3d; }
.wheel-and-hamster .hamster__limb--fr,
.wheel-and-hamster .hamster__limb--fl { top: 2em; left: .5em; width: 1em; height: 1.5em; transform-origin: 50% 0; }
.wheel-and-hamster .hamster__limb--fr::before,
.wheel-and-hamster .hamster__limb--fl::before { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 70% 80%, 60% 100%, 0% 100%, 40% 80%); content: ""; }
.wheel-and-hamster .hamster__limb--fr { animation: roadmapHamsterFRLimb var(--dur) linear infinite; transform: rotate(15deg) translateZ(-1px); }
.wheel-and-hamster .hamster__limb--fr::before { background: linear-gradient(hsl(30 90% 80%) 80%, hsl(0 90% 75%) 80%); }
.wheel-and-hamster .hamster__limb--fl { animation: roadmapHamsterFLLimb var(--dur) linear infinite; transform: rotate(15deg); }
.wheel-and-hamster .hamster__limb--fl::before { background: linear-gradient(hsl(30 90% 90%) 80%, hsl(0 90% 85%) 80%); }
.wheel-and-hamster .hamster__limb--br,
.wheel-and-hamster .hamster__limb--bl { top: 1em; left: 2.8em; width: 1.5em; height: 2.5em; transform-origin: 50% 30%; }
.wheel-and-hamster .hamster__limb--br::before,
.wheel-and-hamster .hamster__limb--bl::before { position: absolute; inset: 0; border-radius: .75em .75em 0 0; clip-path: polygon(0 0, 100% 0, 100% 30%, 70% 90%, 70% 100%, 30% 100%, 40% 90%, 0% 30%); content: ""; }
.wheel-and-hamster .hamster__limb--br { animation: roadmapHamsterBRLimb var(--dur) linear infinite; transform: rotate(-25deg) translateZ(-1px); }
.wheel-and-hamster .hamster__limb--br::before { background: linear-gradient(hsl(30 90% 80%) 90%, hsl(0 90% 75%) 90%); }
.wheel-and-hamster .hamster__limb--bl { animation: roadmapHamsterBLLimb var(--dur) linear infinite; transform: rotate(-25deg); }
.wheel-and-hamster .hamster__limb--bl::before { background: linear-gradient(hsl(30 90% 90%) 90%, hsl(0 90% 85%) 90%); }
.wheel-and-hamster .hamster__shoe { display: none; z-index: 4; width: 1.42em; height: .54em; border-radius: .45em .65em .3em .3em; border-bottom: .16em solid #fff; background: #3f65db; box-shadow: inset -.25em .08em 0 #244197; }
.wheel-and-hamster .hamster__shoe--front { top: 1.16em; left: .42em; transform: rotate(3deg) scaleX(-1); transform-origin: .12em 50%; }
.wheel-and-hamster .hamster__shoe--back { top: 2.16em; left: .68em; transform: rotate(3deg) scaleX(-1); transform-origin: .12em 50%; }
.hamster-mode-hard .wheel-and-hamster .hamster__shoe { display: block; animation: roadmapShoes var(--dur) linear infinite; }
.wheel-and-hamster .hamster__tail { top: 1.5em; right: -.5em; width: 1em; height: .5em; border-radius: .25em 50% 50% .25em; background: hsl(0 90% 85%); box-shadow: 0 -.2em 0 hsl(0 90% 75%) inset; animation: roadmapHamsterTail var(--dur) linear infinite; transform: rotate(30deg) translateZ(-1px); transform-origin: .25em .25em; }
.wheel-and-hamster .spoke { background: radial-gradient(100% 100% at center, hsl(0 0% 60%) 4.8%, hsl(0 0% 60% / 0%) 5%), linear-gradient(hsl(0 0% 55% / 0%) 46.9%, hsl(0 0% 65%) 47% 52.9%, hsl(0 0% 65% / 0%) 53%) 50% 50% / 99% 99% no-repeat; animation: roadmapSpoke var(--dur) linear infinite; }
.hamster-bike { --dur: var(--hamster-dur, 1s); position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); opacity: 0; filter: drop-shadow(0 8px 9px rgb(53 68 31 / 16%)); transform: scaleX(-1); transform-origin: center; }
.plan-roadmap.bike-only .wheel-and-hamster { display: none; }
.plan-roadmap.bike-only .hamster-bike { opacity: 1; visibility: visible; }
.plan-list-hamster.bike-only > .hamster-bike { inset: 0 auto auto 0; width: 75.6px; height: 75.6px; opacity: 1; visibility: visible; transform: translateX(34px) scale(-.45, .45); transform-origin: 0 0; }
.hamster-bike__machine { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: scaleX(-1); transform-origin: center; }
.hamster-bike__wheel { fill: rgb(255 255 255 / 22%); stroke: #626b62; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3.2; animation: roadmapBikeWheel var(--dur) linear infinite; transform-box: fill-box; transform-origin: center; }
.hamster-bike__frame { fill: none; stroke: #668626; stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; }
.hamster-bike__crank { fill: none; stroke: #47543c; stroke-linecap: round; stroke-width: 3; animation: roadmapBikeCrank var(--dur) linear infinite; transform-box: fill-box; transform-origin: center; }
.hamster-bike__rider { position: absolute; top: 10px; left: 15px; width: 48px; height: 43px; animation: roadmapBikeRider var(--dur) ease-in-out infinite; transform-origin: 70% 80%; }
.hamster-bike__rider i, .hamster-bike__rider b { position: absolute; display: block; }
.hamster-bike__body { top: 13px; left: 17px; width: 28px; height: 21px; border-radius: 52% 42% 50% 38%; background: #f9d8a2; box-shadow: inset 3px -5px 0 #ee9b35, inset -2px 3px 0 #fce9c9; transform: rotate(13deg); }
.hamster-bike__head { z-index: 2; top: 7px; left: 4px; width: 20px; height: 19px; border-radius: 68% 42% 50% 72%; background: #ed8e28; box-shadow: inset -5px 5px 0 #f9d8a2; }
.hamster-bike__head::before { position: absolute; top: -3px; right: 1px; width: 7px; height: 7px; border-radius: 50%; background: #f4aeb2; box-shadow: inset -2px 0 0 #d97925; content: ""; }
.hamster-bike__head::after { position: absolute; top: 7px; left: -2px; width: 3px; height: 3px; border-radius: 50%; background: #ed7b89; content: ""; }
.hamster-bike__head b { top: 5px; left: 7px; width: 4px; height: 4px; border-radius: 50%; background: #22291f; }
.hamster-bike__arm { z-index: 3; top: 23px; left: 8px; width: 16px; height: 5px; border-radius: 99px; background: #f6c88a; transform: rotate(-14deg); transform-origin: right center; }
.hamster-bike__leg { z-index: 2; top: 29px; left: 15px; width: 14px; height: 6px; overflow: visible; border-radius: 99px; background: #efa13d; animation: roadmapBikeLeg var(--dur) linear infinite; transform-origin: right center; }
.hamster-bike__leg::after { position: absolute; top: 50%; left: -3px; width: 7px; height: 5px; border-radius: 55% 65% 45% 55%; background: #f4b46e; content: ""; transform: translateY(-50%); }
.hamster-bike__leg--back { z-index: 0; opacity: .7; animation-delay: calc(var(--dur) / -2); }
.hamster-bike__cheek { display: none !important; z-index: 4; top: 16px; left: 7px; width: 12px; height: 10px; border-radius: 55%; background: #f7c989; box-shadow: 7px 1px 0 -1px #eda24d; }
.hamster-mode-easy .hamster-bike__cheek { display: block !important; }
.hamster-bike__band { display: none !important; z-index: 5; top: 9px; left: 5px; width: 19px; height: 4px; border-radius: 4px; background: #e63d45; transform: rotate(-10deg); }
.hamster-bike__shoe { display: none !important; z-index: 5; top: 50%; left: -8px; width: 13px; height: 7px; border-bottom: 2px solid #fff; border-radius: 6px 8px 4px 4px; background: #3f65db; box-shadow: inset -3px 1px 0 #244197; animation: roadmapBikeFoot var(--dur) linear infinite; transform: translateY(-50%) scaleX(-1); transform-origin: 8px 50%; }
.hamster-bike__leg--back .hamster-bike__shoe { animation-delay: calc(var(--dur) / -2); }
.hamster-mode-hard .hamster-bike__band, .hamster-mode-hard .hamster-bike__shoe { display: block !important; }
.hamster-mode-hard .hamster-bike__leg::after { display: none; }
.strength-hamster, .rest-hamster { position: absolute; top: 0; left: 0; width: 75.6px; height: 75.6px; filter: drop-shadow(0 8px 9px rgb(53 68 31 / 14%)); transform-origin: 0 0; }
.strength-hamster *, .rest-hamster * { position: absolute; display: block; box-sizing: border-box; }
.plan-list-hamster > .strength-hamster, .plan-list-hamster > .rest-hamster { transform: scale(.45); }
.strength-hamster__mat { right: 4px; bottom: 2px; left: 4px; height: 7px; border-radius: 50%; background: #72864f; box-shadow: inset 0 -2px 0 #506238, 0 2px 4px #53653a22; }
.strength-hamster__tail { z-index: 1; left: 10px; bottom: 17px; width: 8px; height: 5px; border-radius: 55% 30% 30% 55%; background: #f4aeb2; box-shadow: inset 0 -2px #e77d87; transform: rotate(-18deg); }
.strength-hamster__body { z-index: 2; left: 14px; bottom: 7px; width: 41px; height: 25px; border-radius: 54% 44% 50% 43% / 58% 55% 45% 42%; background: #f8dfb7; box-shadow: inset 3px -5px 0 #ed9935, inset -2px 3px 0 #fcefd5; animation: strengthBody calc(var(--hamster-dur, 1s) * 1.15) ease-in-out infinite; }
.strength-hamster__body > i { right: 5px; bottom: 2px; width: 23px; height: 15px; border-radius: 50%; background: #fff0d8; box-shadow: inset 0 -2px #f7d4a3; }
.strength-hamster__head { z-index: 5; right: 9px; bottom: 14px; width: 21px; height: 20px; border-radius: 64% 42% 52% 70% / 48% 45% 58% 65%; background: #ee922d; box-shadow: inset 4px -2px 0 #f8d8a3, inset -2px 2px 0 #f7b35d; transform: rotate(185deg) scaleX(-1); }
.strength-hamster__ear { top: -2px; left: 4px; width: 7px; height: 7px; border: 2px solid #db7d24; border-radius: 50%; background: #f5afb3; }
.strength-hamster__eye { top: 7px; right: 5px; width: 5px; height: 2px; border-top: 2px solid #22291f; border-radius: 50%; transform: rotate(-10deg); }
.strength-hamster__nose { top: 10px; right: -2px; width: 4px; height: 4px; border-radius: 55% 65% 75% 45%; background: #eb7886; }
.strength-hamster__cheek { right: 2px; bottom: 3px; width: 7px; height: 6px; border-radius: 50%; background: #f6c687; opacity: .72; }
.strength-hamster__band { top: 3px; right: 0; left: 1px; height: 3px; border-radius: 3px; background: #e63d45; box-shadow: 0 1px 0 #aa202b; transform: rotate(-5deg); }
.strength-hamster__band::after { position: absolute; top: 1px; left: -5px; width: 6px; height: 3px; clip-path: polygon(0 0,100% 48%,0 100%); background: #e63d45; content: ""; }
.strength-hamster__rear-leg { z-index: 4; width: 15px; height: 7px; border-radius: 8px; background: #f7d29b; transform-origin: right center; }
.strength-hamster__rear-leg::after { position: absolute; top: -2px; left: -1px; width: 8px; height: 6px; border-radius: 55% 65% 45% 55%; background: #f5b978; box-shadow: inset 0 -2px #e8983a; content: ""; }
.strength-hamster__rear-leg--front { left: 8px; bottom: 16px; transform: rotate(28deg); }
.strength-hamster__rear-leg--back { left: 10px; bottom: 22px; opacity: .83; transform: rotate(48deg); }
.strength-hamster__arm { z-index: 6; bottom: 20px; width: 7px; height: 19px; border-radius: 7px; background: #f6cb91; box-shadow: inset -1px 0 #eaa04d; animation: strengthPress calc(var(--hamster-dur, 1s) * 1.25) ease-in-out infinite; transform-origin: 50% 100%; }
.strength-hamster__arm--back { left: 29px; opacity: .78; animation-delay: -.08s; }
.strength-hamster__arm--front { z-index: 1; left: 42px; }
.strength-hamster__paw { top: -3px; left: -1px; width: 8px; height: 7px; border-radius: 50%; background: #f4b46e; }
.strength-hamster__dumbbell { top: -8px; left: -7px; width: 21px; height: 5px; border-radius: 3px; background: #515a56; box-shadow: inset 0 -1px #303935; }
.strength-hamster__dumbbell > i { top: -3px; width: 5px; height: 11px; border-radius: 2px; background: #222b27; box-shadow: inset 0 0 0 1px #65716b; }
.strength-hamster__dumbbell > i:first-child { left: 1px; }
.strength-hamster__dumbbell > i:last-child { right: 1px; }
.strength-hamster__sweat { z-index: 5; width: 6px; height: 9px; clip-path: polygon(50% 0, 100% 65%, 82% 92%, 50% 100%, 18% 92%, 0 65%); border-radius: 50%; background: #55b9df; opacity: 0; animation: strengthSweat calc(var(--hamster-dur, 1s) * 2.2) ease-in infinite; }
.strength-hamster__sweat--one { top: 38px; right: 5px; }
.strength-hamster__sweat--two { top: 40px; right: 12px; animation-delay: calc(var(--hamster-dur, 1s) * -1.1); }
.rest-hamster__tv { z-index: 4; top: 20px; left: 0; width: 24px; height: 25px; border: 3px solid #26302a; border-radius: 5px; background: #91bfd0; box-shadow: inset 0 0 0 2px #c9e4e7, 0 2px 0 #4c554f; }
.rest-hamster__tv::before, .rest-hamster__tv::after { position: absolute; bottom: -8px; width: 5px; height: 7px; border-radius: 0 0 3px 3px; background: #26302a; content: ""; }
.rest-hamster__tv::before { left: 3px; transform: rotate(7deg); }
.rest-hamster__tv::after { right: 3px; transform: rotate(-7deg); }
.rest-hamster__tv > i { inset: 2px; border-radius: 2px; background: linear-gradient(135deg, #d9f3f3, #78a7bc 56%, #d9e98a); animation: restTv 1.6s steps(2) infinite; }
.rest-hamster__tv > b { top: -11px; left: 6px; width: 10px; height: 11px; border-left: 2px solid #46504b; border-right: 2px solid #46504b; transform: perspective(10px) rotateX(-25deg); }
.rest-hamster__sofa { z-index: 1; right: 0; bottom: 7px; left: 23px; height: 32px; border-radius: 10px 12px 7px 7px; background: #6c8552; box-shadow: inset 0 -8px 0 #4d663a, 0 5px 0 #37482c; }
.rest-hamster__sofa::before, .rest-hamster__sofa::after { position: absolute; bottom: 0; width: 9px; height: 24px; border-radius: 8px; background: #819b63; content: ""; }
.rest-hamster__sofa::before { left: -3px; }
.rest-hamster__sofa::after { right: -3px; }
.rest-hamster__cushion { top: 3px; left: 6px; width: 22px; height: 17px; border-radius: 8px; background: #a8bc7f; transform: rotate(-5deg); }
.rest-hamster__body { z-index: 2; left: 35px; bottom: 25px; width: 35px; height: 19px; border-radius: 52% 45% 48% 42%; background: #f9d8a2; box-shadow: inset 2px -5px 0 #ee9b35; animation: restBreath 2.7s ease-in-out infinite; }
.rest-hamster__head { z-index: 3; right: 0; bottom: 27px; width: 20px; height: 20px; border-radius: 55% 68% 55% 48%; background: #ed8e28; box-shadow: inset 4px -2px 0 #f9d8a2; animation: restBreath 2.7s ease-in-out infinite; }
.rest-hamster__ear { top: -3px; left: 3px; width: 7px; height: 7px; border-radius: 50%; background: #f4aeb2; box-shadow: inset -2px 0 #d97925; }
.rest-hamster__eye { top: 7px; right: 5px; width: 4px; height: 4px; border-radius: 50%; background: #22291f; animation: restBlink 4.5s linear infinite; }
.rest-hamster__nose { top: 10px; right: -2px; width: 4px; height: 4px; border-radius: 50%; background: #ed7b89; }
.rest-hamster__blanket { z-index: 3; left: 30px; bottom: 18px; width: 31px; height: 20px; border-radius: 9px 12px 5px 5px; background: #d6e89c; box-shadow: inset 0 -5px 0 #b3ca72; transform: rotate(3deg); animation: restBreath 2.7s ease-in-out infinite; }
.rest-hamster__remote { z-index: 4; right: 5px; bottom: 16px; width: 12px; height: 6px; border-radius: 3px; background: #333c37; transform: rotate(-12deg); }
.rest-hamster__remote::after { position: absolute; top: 2px; left: 2px; width: 2px; height: 2px; border-radius: 50%; background: #e85e54; content: ""; }
.plan-roadmap > p { margin: 4px 0 0; color: #6b745e; font-size: 10px; }
.plan-roadmap > p strong { color: #3c482c; }

.garmin-card { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f6f8f3; }
.integration-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 10px; background: #e6f3b8; color: #34431d; font: 850 10px/1 Manrope, sans-serif; letter-spacing: .08em; }
.garmin-card > div:nth-child(2) { display: grid; gap: 3px; }
.garmin-card span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.garmin-card strong { font-size: 13px; }
.garmin-card p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.garmin-card-actions { display: flex; align-items: center; gap: 9px; }
.notification-settings { margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f8faf4; }
.notification-settings-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; }
.notification-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 10px; background: #182017; color: var(--accent); font-size: 16px; }
.notification-settings-head > div:nth-child(2) { display: grid; gap: 3px; }
.notification-settings-head span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.notification-settings-head strong { font-size: 13px; }
.notification-settings-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.notification-preferences { display: grid; border-top: 1px solid var(--line); }
.notification-option { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; min-height: 68px; padding: 12px 16px; cursor: pointer; }
.notification-option + .notification-option { border-top: 1px solid var(--line); }
.notification-option input { position: relative; width: 42px; height: 24px; margin: 0; border: 1px solid #bdc4b7; border-radius: 999px; appearance: none; background: #dfe3da; cursor: pointer; transition: background .2s,border-color .2s; }
.notification-option input::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(22 31 20 / 24%); content: ""; transition: transform .2s; }
.notification-option input:checked { border-color: #92bd27; background: var(--accent); }
.notification-option input:checked::after { transform: translateX(18px); }
.notification-option input:focus-visible { outline: 3px solid rgb(185 226 70 / 35%); outline-offset: 2px; }
.notification-option span { display: grid; gap: 3px; }
.notification-option strong { font-size: 12px; }
.notification-option small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.notification-test { width: 100%; min-height: 42px; border-top: 1px solid var(--line); border-radius: 0; }
.admin-users-view { display: grid; gap: 22px; }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.admin-summary > div { padding: 20px 22px; border-right: 1px solid var(--line); }
.admin-summary > div:first-child { padding-left: 0; }
.admin-summary > div:last-child { border-right: 0; }
.admin-summary span { display: block; color: var(--muted); font-size: 11px; }
.admin-summary strong { display: block; margin-top: 7px; font: 700 34px/1 Manrope, sans-serif; }
.admin-users-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.admin-users-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.admin-users-head h2, .admin-users-head p { margin: 0; }
.admin-users-head h2 { font-size: 19px; }
.admin-users-head p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.admin-users-head label { width: min(280px, 100%); display: grid; gap: 6px; }
.admin-users-head label span, .admin-role-field > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.admin-user-list { display: grid; }
.admin-user-row { display: grid; grid-template-columns: 42px minmax(190px, 1fr) 72px minmax(220px, .55fr) 300px; align-items: center; gap: 16px; padding: 15px 24px; border-bottom: 1px solid var(--line); }
.admin-user-row:last-child { border-bottom: 0; }
.admin-user-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--accent); font-size: 11px; font-weight: 850; }
.admin-user-identity { min-width: 0; display: grid; gap: 3px; }
.admin-user-identity strong, .admin-user-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-identity strong { font-size: 13px; }
.admin-user-identity span, .admin-user-identity small, .admin-user-plans span { color: var(--muted); font-size: 10px; }
.admin-user-plans { display: grid; gap: 2px; text-align: center; }
.admin-user-plans strong { font: 750 18px/1 Manrope, sans-serif; }
.admin-role-field { display: grid; gap: 5px; }
.admin-role-field select { width: 100%; min-height: 38px; }
.admin-user-actions { display: flex; justify-content: flex-end; gap: 7px; }
.admin-user-actions button { min-height: 38px; padding-inline: 10px; font-size: 11px; }
.protected-admin { color: #66723f; font-size: 10px; font-weight: 800; text-align: right; }
.admin-empty-search { margin: 0; padding: 36px; color: var(--muted); text-align: center; }
.admin-user-dialog { width: min(560px, 100%); }
#admin-user-form { min-height: 0; display: grid; grid-template-rows: 1fr auto; }
.admin-user-edit-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.modal-backdrop { position: fixed; z-index: 60; inset: 0; display: flex; justify-content: flex-end; background: rgb(20 25 18 / 48%); backdrop-filter: blur(3px); }
.editor { width: min(760px, 100%); height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: var(--surface); box-shadow: -20px 0 60px rgb(20 25 18 / 18%); }
.editor-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.editor-head p { margin: 0 0 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.editor-head h2 { margin: 0; font: 700 27px/1 Manrope, sans-serif; letter-spacing: -.04em; }
.editor-head > div > span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
#plan-form { min-height: 0; display: grid; grid-template-rows: 1fr auto; }
#calendar-workout-form { min-height: 0; display: grid; grid-template-rows: 1fr auto; }
#profile-form { min-height: 0; display: grid; grid-template-rows: 1fr auto; }
#day-report-form { min-height: 0; display: grid; grid-template-rows: 1fr auto; }
.workout-dialog { width: min(620px, 100%); }
.workout-preview-dialog { width: min(560px, 100%); grid-template-rows: auto 1fr auto; }
.workout-preview-body { display: grid; align-content: start; gap: 22px; overflow: auto; padding: 26px 28px; }
.workout-preview-type { justify-self: start; padding: 6px 9px; border-radius: 7px; background: var(--run); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.workout-preview-type.bike { background: var(--bike); }
.workout-preview-type.strength { background: var(--strength); }
.workout-preview-type.rest { background: var(--rest); }
.workout-preview-type.race { background: var(--race); color: #fff; }
.workout-preview-body dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.workout-preview-body dl > div { display: grid; gap: 5px; padding: 13px; border-radius: 9px; background: var(--canvas); }
.workout-preview-body dt, .workout-preview-body section > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.workout-preview-body dd { margin: 0; font: 750 15px/1.2 Manrope, sans-serif; }
.workout-preview-body section { display: grid; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line); }
.workout-preview-body section p { margin: 0; color: #3f4939; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-dialog { width: min(540px, 100%); }
.report-dialog { width: min(600px, 100%); }
.report-dialog textarea { min-height: 220px; resize: vertical; font-size: 15px; line-height: 1.55; }
.report-preview-dialog { max-height: min(760px, calc(100dvh - 40px)); grid-template-rows: auto 1fr auto; }
.report-preview-body { display: grid; align-content: start; gap: 24px; overflow: auto; padding: 24px 28px; }
.report-preview-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.report-preview-workouts { display: grid; gap: 7px; }
.report-preview-workout { padding: 12px; border-radius: 9px; background: var(--run); }
.report-preview-workout.bike { background: var(--bike); }
.report-preview-workout.strength { background: var(--strength); }
.report-preview-workout.rest { background: var(--rest); }
.report-preview-workout.race { background: var(--race); color: #fff; }
.report-preview-workout > div { display: flex; justify-content: space-between; gap: 12px; }
.report-preview-workout strong { font-size: 13px; }
.report-preview-workout span { font-size: 10px; }
.report-preview-workout p { margin: 6px 0 0; font-size: 11px; }
.report-preview-note { padding: 18px; border: 1px solid #cbd3b8; border-radius: 12px; background: #f7f9ee; }
.report-preview-note p { margin: 0; color: #30392d; font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-preview-empty { margin: 0; color: var(--muted); font-size: 12px; }
.report-hint { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.plan-chat-dialog { width: min(680px, 100%); grid-template-rows: auto minmax(0, 1fr) auto; }
.plan-chat-messages { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px; background: linear-gradient(#f5f6f0, #eef1e6); }
.plan-chat-message { display: flex; justify-content: flex-start; margin-bottom: 11px; }
.plan-chat-message.mine { justify-content: flex-end; }
.plan-chat-bubble { width: min(82%, 470px); padding: 10px 12px 8px; border: 1px solid #d7dccf; border-radius: 5px 15px 15px 15px; background: #fff; box-shadow: 0 3px 9px rgb(24 33 20 / 5%); }
.plan-chat-message.mine .plan-chat-bubble { border-color: #b7cd77; border-radius: 15px 5px 15px 15px; background: #e9f4ca; }
.plan-chat-bubble header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 5px; }
.plan-chat-bubble header strong { color: #53603f; font-size: 10px; }
.plan-chat-bubble header button { padding: 2px 6px; border: 0; border-radius: 5px; background: rgb(23 33 22 / 7%); color: #59684b; font-family: inherit; font-size: 9px; font-weight: 750; line-height: 1.4; cursor: pointer; }
.plan-chat-bubble p { margin: 0; color: #263020; font-size: 14px; line-height: 1.52; white-space: pre-wrap; overflow-wrap: anywhere; }
.plan-chat-bubble time { display: block; margin-top: 5px; color: #7c8574; font-size: 9px; text-align: right; }
.plan-chat-empty { max-width: 390px; margin: 18vh auto 0; color: var(--muted); text-align: center; }
.plan-chat-empty strong { color: var(--ink); font-size: 17px; }
.plan-chat-empty p { font-size: 12px; line-height: 1.55; }
.plan-chat-composer { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 14px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.plan-chat-date { display: grid; gap: 3px; padding-bottom: 7px; }
.plan-chat-date span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.plan-chat-date strong { font-size: 11px; white-space: nowrap; }
.plan-chat-composer label { display: block; }
.plan-chat-composer textarea { width: 100%; min-height: 48px; max-height: 130px; resize: vertical; font-size: 14px; line-height: 1.45; }
.plan-chat-composer .primary-button { min-height: 48px; }
.plan-chat-composer .notice { grid-column: 1 / -1; margin: 0; }
.profile-avatar-control { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; margin-bottom: 26px; }
.profile-avatar-preview { display: grid; width: 88px; height: 88px; place-items: center; border: 4px solid #e4e9d9; border-radius: 50%; background: var(--accent); font-size: 25px; font-weight: 850; }
.profile-avatar-control > div { min-width: 0; display: grid; gap: 5px; }
.profile-avatar-control > div > strong { font-size: 13px; }
.profile-avatar-control > div > span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.profile-avatar-control > div > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 5px; }
.profile-avatar-upload { min-height: 36px; display: inline-grid; place-items: center; padding-inline: 12px; font-size: 11px; cursor: pointer; }
.profile-avatar-remove { color: var(--danger); font-size: 10px; }
.profile-hint { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.editor-body { overflow: auto; padding: 26px 28px 40px; }
.form-grid, .workout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field.wide, .workout-fields .wide { grid-column: span 2; }
.workouts-head { margin: 30px 0 15px; padding-top: 24px; border-top: 1px solid var(--line); }
.workout-editor-list { display: grid; gap: 10px; }
.workout-editor { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-strong); }
.workout-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: var(--ink); color: var(--surface); font: 700 10px/1 monospace; }
.remove-button { align-self: start; border: 0; background: transparent; color: var(--danger); font-size: 10px; font-weight: 800; cursor: pointer; }
.editor-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 28px; border-top: 1px solid var(--line); background: var(--surface); }
.editor-footer > div { display: flex; gap: 8px; }

.installer-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, var(--canvas), #e9f4c9); }
.installer-card { width: min(720px, 100%); padding: clamp(25px, 6vw, 56px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 25px 80px rgb(30 37 29 / 12%); }
.installer-card .brand { margin-bottom: 46px; }
.install-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 25px; }
.install-form .wide, .form-divider { grid-column: 1 / -1; }
.form-divider { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 800; }
code { padding: 2px 5px; border-radius: 4px; background: var(--rest); }

.pace-calculator-page { display: grid; gap: 28px; }
.pace-calculator-intro { max-width: 760px; }
.pace-calculator-intro p { margin: 0 0 9px; color: #6f852d; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.pace-calculator-intro h2 { margin: 0; font: 700 clamp(28px, 3.4vw, 43px)/1.04 Manrope, sans-serif; letter-spacing: -.05em; }
.pace-calculator-intro > span { display: block; max-width: 650px; margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.pace-calculator-layout { display: grid; grid-template-columns: minmax(320px, .86fr) minmax(390px, 1.14fr); gap: 20px; align-items: start; }
.pace-calculator-form, .pace-result-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pace-calculator-form { display: grid; gap: 22px; padding: clamp(20px, 3vw, 34px); }
.pace-mode-group { display: grid; gap: 8px; }
.pace-mode-group > span { color: var(--ink); font-size: 12px; font-weight: 800; }
.pace-mode-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #eef0e9; }
.pace-mode-switch button { min-height: 42px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.pace-mode-switch button[aria-pressed="true"] { background: var(--surface-strong); color: var(--ink); box-shadow: 0 1px 3px rgb(32 41 30 / 10%); }
.pace-field-group { display: grid; gap: 8px; }
.pace-field-group > label, .pace-time-group legend { color: var(--ink); font-size: 12px; font-weight: 800; }
.pace-field-group > small, .pace-form-note { color: var(--muted); font-size: 10px; line-height: 1.5; }
.pace-distance-input { position: relative; }
.pace-distance-input input { height: 58px; padding-right: 58px; font: 750 24px/1 Manrope, sans-serif; }
.pace-distance-input > span { position: absolute; top: 50%; right: 16px; color: var(--muted); font-size: 12px; font-weight: 750; transform: translateY(-50%); pointer-events: none; }
.pace-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 7px; }
.pace-presets button { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-strong); font-size: 11px; font-weight: 750; cursor: pointer; }
.pace-presets button:hover { border-color: var(--line-strong); }
.pace-presets button[aria-pressed="true"] { border-color: #9fbd3d; background: #edf6d1; color: #344417; }
.pace-time-group { min-width: 0; margin: 0; border: 0; padding: 0; }
.pace-time-group legend { margin-bottom: 10px; padding: 0; }
.pace-time-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.pace-time-fields.pace-input-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pace-time-fields label { min-width: 0; display: grid; gap: 6px; }
.pace-time-fields label > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.pace-time-fields input { height: 50px; font: 720 18px/1 Manrope, sans-serif; text-align: center; }
.pace-submit { width: 100%; min-height: 48px; }
.pace-form-note { margin: -7px 0 0; }
.pace-result-card { overflow: hidden; background: #20291e; color: #f7faef; }
.pace-result-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 3vw, 34px); padding: clamp(28px, 4.2vw, 54px); background: radial-gradient(circle at 85% 5%, rgb(185 226 70 / 22%), transparent 42%), #20291e; }
.pace-result-copy { min-width: 0; display: grid; justify-items: start; }
.pace-result-copy > span, .pace-result-facts span, .pace-splits-head span { color: rgb(247 250 239 / 66%); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.pace-result-copy strong { margin-top: 13px; font: 750 clamp(58px, 7vw, 94px)/.86 Manrope, sans-serif; letter-spacing: -.075em; }
.pace-result-copy b { margin-top: 12px; color: #cce96e; font-size: 13px; }
.pace-result-hamster { --hamster-dur: .72s; width: clamp(118px, 14vw, 158px); height: clamp(118px, 14vw, 158px); display: grid; flex: none; place-items: center; }
.pace-result-hamster .wheel-and-hamster { font-size: clamp(9.8px, 1.15vw, 13.15px); filter: drop-shadow(0 13px 15px rgb(4 8 3 / 28%)); }

.races-view { display: grid; gap: 18px; }
.races-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, #1d271c, #344329); color: #f7faef; }
.races-intro > div:first-child { display: grid; gap: 5px; }
.races-intro p { margin: 0; color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.races-intro h2 { margin: 0; font: 750 clamp(28px, 4vw, 46px)/1 Manrope, sans-serif; letter-spacing: -.055em; }
.races-intro span { max-width: 650px; color: #cbd2c4; font-size: 14px; line-height: 1.5; }
.races-intro > div:last-child { display: grid; justify-items: end; gap: 8px; }
.races-intro small { color: #aeb8a6; font-size: 11px; }
.races-intro .secondary-button { border-color: rgb(255 255 255 / 22%); background: rgb(255 255 255 / 8%); color: #fff; }
.race-filters { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; align-items: end; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.race-filters label { display: grid; gap: 6px; }
.race-filters label > span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.race-filter-result { min-height: 44px; display: flex; align-items: baseline; justify-content: end; gap: 6px; padding: 0 5px 0 16px; }
.race-filter-result strong { font: 750 24px/1 Manrope, sans-serif; }
.race-filter-result span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.race-month-head { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; }
.race-month-head h2 { margin: 0; font: 750 clamp(28px, 3.4vw, 40px)/1 Manrope, sans-serif; letter-spacing: -.045em; text-align: center; }
.race-month-head button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.race-month-head button:hover { border-color: #8da53f; background: #f2f7df; }
.race-weekdays, .race-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.race-weekdays { overflow: hidden; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--ink); color: var(--surface); }
.race-weekdays span { padding: 12px 9px; border-right: 1px solid rgb(255 255 255 / 10%); font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; }
.race-weekdays span:last-child { border-right: 0; }
.race-calendar { overflow: visible; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--line); gap: 1px; }
.race-calendar-day { position: relative; min-width: 0; min-height: 142px; display: grid; align-content: start; gap: 11px; padding: 11px; background: var(--surface); }
.race-calendar-day.outside { background: #eef0e9; opacity: .48; }
.race-calendar-day.today { box-shadow: inset 0 0 0 2px #809a31; }
.race-calendar-day > header { display: flex; justify-content: space-between; align-items: center; }
.race-calendar-day > header span { display: none; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.race-calendar-day > header time { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; font: 800 16px/1 Manrope, sans-serif; }
.race-calendar-day.today > header time { background: var(--ink); color: var(--accent); }
.race-day-events { position: relative; display: grid; align-content: start; gap: 6px; }
.race-day-empty { align-self: center; color: #a1a79b; font-size: 10px; text-align: center; }
.race-marker { position: relative; min-width: 0; width: 100%; }
.race-marker-label { width: 100%; min-height: 40px; display: -webkit-box; overflow: hidden; padding: 8px 9px; border: 1px solid #c8d59d; border-radius: 8px; background: #edf5d3; color: #27351d; cursor: default; font: 750 12px/1.25 Manrope, sans-serif; text-align: left; overflow-wrap: break-word; -webkit-box-orient: vertical; -webkit-line-clamp: 2; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.race-marker:hover .race-marker-label { border-color: #809a31; background: #e1efb4; box-shadow: 0 5px 14px rgb(75 96 32 / 14%); }
.race-popover { position: absolute; z-index: 45; top: calc(100% + 8px); left: 0; width: min(360px, calc(100vw - 48px)); display: none; gap: 10px; padding: 17px; border: 1px solid #cbd6aa; border-radius: 14px; background: #f8faef; box-shadow: 0 20px 55px rgb(25 37 20 / 24%); }
.race-popover::before { position: absolute; right: 0; bottom: 100%; left: 0; height: 9px; content: ""; }
.race-marker:hover .race-popover { display: grid; }
.race-marker.is-positioning .race-popover { display: grid; visibility: hidden; pointer-events: none; }
.race-marker.popover-up .race-popover { top: auto; bottom: calc(100% + 8px); }
.race-marker.popover-up .race-popover::before { top: 100%; bottom: auto; }
.race-calendar-day:nth-child(7n + 6) .race-popover, .race-calendar-day:nth-child(7n) .race-popover { right: 0; left: auto; }
.race-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #65724f; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.race-card-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-popover h3 { margin: 0; font: 750 18px/1.25 Manrope, sans-serif; overflow-wrap: break-word; }
.race-popover > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.race-distances { display: flex; flex-wrap: wrap; gap: 6px; }
.race-distances span { max-width: 100%; overflow: hidden; padding: 6px 8px; border-radius: 7px; background: #dcebac; color: #3e4d2c; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.race-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.race-links a { color: #55643d; font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.race-links a.primary { color: #27351d; }
.race-month-empty { display: grid; justify-items: center; gap: 5px; margin-top: -120px; padding: 26px; text-align: center; pointer-events: none; }
.race-month-empty strong { font-size: 13px; }
.race-month-empty p { margin: 0; color: var(--muted); font-size: 10px; }
.race-source-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.race-source-note a { color: var(--ink); font-weight: 750; }
.race-loading { min-height: 380px; display: grid; place-content: center; justify-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.race-loading > span { width: 34px; height: 34px; border: 4px solid #dbe3c3; border-top-color: #6f8927; border-radius: 50%; animation: raceLoading .8s linear infinite; }
.race-loading p { margin: 0; color: var(--muted); font-size: 10px; }
@keyframes raceLoading { to { transform: rotate(360deg); } }
.pace-result-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgb(255 255 255 / 12%); border-bottom: 1px solid rgb(255 255 255 / 12%); }
.pace-result-facts > div { min-width: 0; display: grid; gap: 8px; padding: 18px clamp(20px, 3vw, 34px); }
.pace-result-facts > div + div { border-left: 1px solid rgb(255 255 255 / 12%); }
.pace-result-facts strong { font: 700 18px/1.1 Manrope, sans-serif; }
.pace-splits { padding: 12px clamp(28px, 4.2vw, 54px) 24px; }
.pace-splits-head { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; }
.pace-splits-head small { color: rgb(247 250 239 / 45%); font-size: 9px; }
.pace-splits > div:not(.pace-splits-head) { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 11px 0; border-top: 1px solid rgb(255 255 255 / 10%); }
.pace-splits > div > span { color: rgb(247 250 239 / 75%); font-size: 12px; }
.pace-splits > div > strong { font: 700 15px/1 Manrope, sans-serif; }
.pace-result-empty { min-height: 470px; display: grid; align-content: center; justify-items: start; padding: clamp(28px, 4.2vw, 54px); }
.pace-result-empty > span { color: #cce96e; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pace-result-empty strong { max-width: 380px; margin-top: 12px; font: 700 clamp(29px, 4vw, 43px)/1 Manrope, sans-serif; letter-spacing: -.05em; }
.pace-result-empty p { margin: 13px 0 0; color: rgb(247 250 239 / 60%); font-size: 12px; }

@media (min-width: 701px) {
  .landing-section-copy h2, .landing-coach h2, .landing-roles h2, .landing-final h2, .feature-bento h3 { white-space: nowrap; }
}

@media (max-width: 1180px) {
  .landing-hero { padding-top: 54px; }
  .landing-hero-copy { max-width: none; }
  .landing-hero h1 { font-size: clamp(30px, 4vw, 46px); }
  .landing-coach { grid-template-columns: 1fr; }
  .landing-coach figure { max-width: 900px; }
}

@media (max-width: 980px) {
  .landing { --landing-shell: min(1400px, calc(100% - 32px)); }
  .landing-nav { width: var(--landing-shell); grid-template-columns: auto 1fr; }
  .landing-nav nav { display: none; }
  .landing-nav > div { justify-self: end; }
  .landing-hero { width: var(--landing-shell); min-height: calc(100dvh - 72px); padding-top: 54px; }
  .landing-hero-copy { max-width: none; }
  .landing-coach { width: var(--landing-shell); grid-template-columns: 1fr; }
  .landing-coach figure { max-width: 760px; }
  .admin-user-row { grid-template-columns: auto minmax(180px, 1fr) 70px minmax(145px, .7fr); }
  .admin-user-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-poster { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; grid-template-columns: auto 1fr auto; grid-template-rows: auto; align-items: center; padding: 14px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: flex; justify-content: center; }
  .nav button { padding-inline: 11px; }
  .sidebar-account > span { display: none; }
  .sidebar-account { padding: 0; border: 0; }
  .workspace-grid { grid-template-columns: 1fr; }
  .coach-dashboard-grid { grid-template-columns: 1fr; }
  .pace-calculator-layout { grid-template-columns: 1fr; }
  .pace-result-copy strong { font-size: clamp(64px, 12vw, 92px); }
}

@media (max-width: 700px) {
  .landing-nav { height: 64px; }
  .landing-nav .landing-login { display: none; }
  .landing-nav .landing-primary { min-height: 40px; padding-inline: 13px; }
  .landing-hero { min-height: calc(100dvh - 64px); padding: 36px 0 48px; }
  .landing-hero h1 { font-size: clamp(28px, 7.2vw, 31px); line-height: 1.04; white-space: normal; text-wrap: balance; }
  .landing-section-copy h2, .landing-coach h2, .landing-roles h2, .landing-final h2, .feature-bento h3 { white-space: normal; text-wrap: balance; }
  .landing-actions { align-items: stretch; flex-direction: column; }
  .landing-actions button { width: 100%; }
  .landing-hero-media::after { background: linear-gradient(90deg, rgb(10 17 9 / 82%) 0%, rgb(14 23 12 / 58%) 72%, rgb(14 23 12 / 34%) 100%), linear-gradient(0deg, rgb(8 14 7 / 38%), transparent 55%); }
  .landing-hero-poster, .landing-hero-video { object-position: 66% center; }
  .landing-features, .landing-roles, .landing-final, .landing-footer { width: var(--landing-shell); }
  .landing-features { padding: 84px 0; }
  .feature-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .feature-bento article, .feature-bento .feature-calendar, .feature-bento .feature-json { grid-column: 1; grid-row: auto; min-height: 230px; }
  .landing-coach { padding: 50px 0 90px; }
  .landing-roles { grid-template-columns: 1fr; }
  .landing-roles > div { min-height: 280px; padding-inline: 8px; }
  .landing-roles > div + div { border-top: 1px solid var(--landing-line); border-left: 0; }
  .landing-final { grid-template-columns: 1fr; justify-items: start; gap: 50px; padding: 88px 0; text-align: left; }
  .landing-mascot { width: 100%; justify-items: center; }
  .landing-mascot-stage { width: min(220px, 72vw); height: min(220px, 72vw); }
  .landing-footer { grid-template-columns: 1fr auto; padding: 25px 0; }
  .landing-legal-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .landing-auth-dialog { padding: 22px; }
  .admin-summary { grid-template-columns: 1fr 1fr; }
  .admin-summary > div { padding: 15px 12px; }
  .admin-summary > div:nth-child(2) { border-right: 0; }
  .admin-summary > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .admin-users-head { align-items: stretch; flex-direction: column; }
  .admin-users-head label { width: 100%; }
  .admin-user-row { grid-template-columns: auto 1fr; align-items: start; padding: 17px; }
  .admin-user-plans { grid-column: 1; grid-row: 2; text-align: left; }
  .admin-role-field, .admin-user-actions { grid-column: 2; }
  .admin-user-actions { flex-wrap: wrap; }
  .main { padding: 20px 15px 45px; }
  .topbar { align-items: flex-start; }
  .topbar h1 { font-size: 30px; }
  .user-chip div { display: none; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid div { padding: 15px 12px; }
  .summary-grid div:nth-child(2) { border-right: 0; }
  .summary-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .coach-dashboard { gap: 18px; }
  .coach-dashboard-intro { align-items: stretch; flex-direction: column; gap: 14px; }
  .coach-dashboard-intro .secondary-button { width: 100%; }
  .coach-reports-panel, .coach-week-panel { padding: 17px 14px; }
  .coach-report-row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 9px; }
  .overview-roadmap { margin-bottom: 18px; }
  .section-head, .plan-title-row, .workouts-head, .coach-strip, .join-strip { align-items: stretch; flex-direction: column; }
  .join-form { min-width: 0; align-items: stretch; flex-direction: column; }
  .roadmap-copy { align-items: stretch; flex-direction: column; gap: 12px; }
  .roadmap-copy > strong { width: fit-content; }
  .roadmap-track { margin-inline: 30px; }
  .roadmap-marker { top: 17px; width: 64.8px; height: 64.8px; margin-left: -32.4px; }
  .wheel-and-hamster { font-size: 5.4px; }
  .roadmap-marker > .strength-hamster, .roadmap-marker > .rest-hamster { transform: scale(.857); }
  .garmin-card { grid-template-columns: auto 1fr; }
  .garmin-card-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .garmin-card-actions > * { width: 100%; }
  .notification-settings-head { grid-template-columns: auto 1fr; }
  .notification-settings-head > button { grid-column: 1 / -1; width: 100%; }
  .verification-actions { align-items: flex-start; flex-direction: column; }
  .month-grid { min-width: 1020px; }
  .calendar:not(.expanded) .month-grid { min-width: 920px; }
  .form-grid, .workout-fields, .install-form { grid-template-columns: 1fr; }
  .field.wide, .workout-fields .wide, .install-form .wide, .form-divider { grid-column: 1; }
  .workout-editor { grid-template-columns: 32px 1fr; }
  .remove-button { grid-column: 2; justify-self: start; }
  .editor-head, .editor-body, .editor-footer { padding-inline: 18px; }
  .editor-footer { align-items: stretch; flex-direction: column-reverse; }
  .editor-footer > div, .editor-footer button { width: 100%; }
}

@media (max-width: 470px) {
  .sidebar { grid-template-columns: auto 1fr; }
  .sidebar-account { display: none; }
  .brand > strong { display: none; }
  .nav { justify-content: flex-end; }
  .auth-card { padding: 28px 22px; }
  .auth-card .brand { margin-bottom: 48px; }
}

@media (max-width: 700px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .app-shell { display: block; min-height: 100dvh; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .sidebar { position: fixed; z-index: 45; inset: auto 0 0; height: auto; display: block; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-right: 0; border-bottom: 0; background: rgb(255 255 255 / 96%); box-shadow: 0 -8px 28px rgb(33 41 29 / 10%); backdrop-filter: blur(14px); }
  .sidebar .brand, .sidebar-account { display: none; }
  .nav { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; justify-content: stretch; gap: 4px; }
  .nav button { min-width: 0; min-height: 48px; padding: 0 6px; text-align: center; font-size: 12px; }
  .main { padding: 16px 12px 36px; }
  .pace-calculator-page { gap: 20px; }
  .pace-calculator-intro h2 { font-size: clamp(27px, 8vw, 35px); }
  .pace-calculator-intro > span { font-size: 13px; }
  .pace-calculator-layout { gap: 12px; }
  .pace-calculator-form { gap: 19px; padding: 19px 15px; }
  .pace-distance-input input, .pace-time-fields input { font-size: 20px; }
  .pace-result-main { gap: 10px; padding: 30px 22px; }
  .pace-result-copy strong { font-size: clamp(52px, 15vw, 72px); }
  .pace-result-hamster { width: clamp(82px, 25vw, 112px); height: clamp(82px, 25vw, 112px); }
  .pace-result-hamster .wheel-and-hamster { font-size: clamp(6.8px, 2.08vw, 9.3px); }
  .pace-result-facts > div { padding: 16px 18px; }
  .pace-result-facts strong { font-size: 16px; }
  .pace-splits { padding: 10px 22px 20px; }
  .pace-result-empty { min-height: 340px; padding: 30px 22px; }
  .topbar { align-items: center; margin-bottom: 22px; }
  .topbar h1 { font-size: clamp(27px, 8vw, 34px); }
  .context-label { font-size: 9px; }
  .user-chip { min-height: 48px; padding: 3px; }
  .user-chip > span { width: 44px; height: 44px; }
  .user-chip b { display: none; }
  .plan-panel, .calendar.expanded { padding: 15px 10px; }
  .next-panel { padding: 18px 15px; }
  .plans-view, .athletes-view, .plans-layout, .calendar { min-width: 0; gap: 16px; }
  .athlete-grid { grid-template-columns: minmax(0, 1fr); }
  .athlete-card { padding: 16px 13px; }
  .athlete-card-head { grid-template-columns: auto minmax(0, 1fr); }
  .athlete-plan-count { grid-column: 2; justify-items: start; grid-template-columns: auto auto; align-items: baseline; gap: 5px; }
  .athlete-plan-list, .athlete-week-feed { max-height: none; }
  .athlete-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .athlete-actions > * { width: 100%; min-height: 44px; }
  .actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .actions-row > * { min-width: 0; min-height: 44px; width: 100%; padding-inline: 9px; font-size: 12px; }
  .plan-list { grid-template-columns: 1fr; }
  .plan-list { gap: 10px; padding-right: 21px; }
  .plan-list-item.self-plan { order: -1; }
  .plan-list-item { min-width: 0; min-height: 104px; padding: 14px 118px 14px 14px; }
  .plan-list-item strong { min-width: 0; }
  .plan-owner { right: -23px; gap: 7px; }
  .plan-owner-name { max-width: 70px; font-size: 13px; }
  .plan-owner-avatar { width: 48px; height: 48px; border-width: 4px; font-size: 13px; }
  .plan-title-row { gap: 10px; padding: 0 3px 14px; }
  .plan-title-row h3 { max-width: 100%; margin-top: 7px; overflow-wrap: anywhere; font-size: 23px; line-height: 1.04; }
  .plan-title-row p { font-size: 10px; line-height: 1.45; }
  .plan-title-row .secondary-button { width: 100%; min-height: 40px; display: grid; place-items: center; }
  .readonly-plan-badge { align-self: flex-start; min-height: 0; padding: 6px 8px; border-radius: 7px; font-size: 9px; }
  .calendar-scroll { overflow: visible; margin-top: 14px; padding: 0; }
  .month-grid, .calendar:not(.expanded) .month-grid { min-width: 0; overflow: visible; border: 0; border-radius: 0; }
  .weekday-row { display: none; }
  .week-stack { display: grid; gap: 13px; }
  .week-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; overflow: hidden; border: 1px solid #d3d9ca; border-radius: 13px; background: var(--surface); box-shadow: 0 5px 18px rgb(35 45 29 / 6%); }
  .day-cell { min-width: 0; min-height: 142px; display: flex; flex-direction: column; padding: 0 3px 6px; border: 0 !important; border-right: 1px solid #e1e5dc !important; border-radius: 0; background: #fbfcf8; box-shadow: none; }
  .day-cell:nth-child(7) { border-right: 0 !important; }
  .day-cell.outside { display: flex; opacity: .38; background: #f0f2ed; }
  .day-cell.today, .day-cell.athlete-today { position: relative; background: #f3f8df; box-shadow: none; }
  .day-cell.today::before, .day-cell.athlete-today::before { position: absolute; z-index: 0; top: 0; right: 0; left: 0; height: 3px; background: #718d2d; content: ""; }
  .day-cell > header { position: relative; z-index: 1; min-height: 45px; align-items: center; flex-direction: column; justify-content: center; gap: 0; margin: 0 -3px 5px; padding-top: 3px; border-bottom: 1px solid #e4e7df; text-align: center; }
  .day-cell > header time { display: grid; justify-items: center; gap: 2px; font-size: 11px; line-height: 1; white-space: nowrap; }
  .desktop-date-label { display: none; }
  .mobile-weekday { display: block; color: #707a65; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
  .mobile-date-number { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #263020; font: 800 12px/1 Manrope, sans-serif; }
  .day-cell.today .mobile-date-number, .day-cell.athlete-today .mobile-date-number { background: #263020; color: #f8faef; }
  .day-header-meta { min-height: 0; }
  .day-header-meta > b, .day-header-meta > span { display: none; }
  .day-workouts { display: grid; gap: 4px; align-content: start; }
  .workout-card { min-width: 0; }
  .workout-block { min-height: 38px; align-content: center; gap: 3px; padding: 5px 4px 5px 6px; border: 1px solid rgb(38 48 32 / 8%); border-radius: 7px; box-shadow: inset 2px 0 rgb(85 116 29 / 35%); }
  .workout-block.editable { padding-right: 16px; }
  .workout-block.bike { box-shadow: inset 2px 0 #378e93; }
  .workout-block.strength { box-shadow: inset 2px 0 #8758ad; }
  .workout-block.rest { box-shadow: inset 2px 0 #92998d; }
  .workout-block.race { border-color: #c33e39; box-shadow: inset 2px 0 rgb(255 255 255 / 44%); }
  .workout-block > div { display: none; }
  .workout-block > span { overflow: hidden; font-size: 8px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
  .workout-block > .workout-meta { display: none; }
  .workout-block > .workout-mobile-metric { display: block; color: #34442b; font: 800 9px/1 Manrope, sans-serif; letter-spacing: -.025em; }
  .workout-block.race > .workout-mobile-metric { color: #fff; }
  .workout-block strong { display: -webkit-box; overflow: hidden; font-size: 9px; line-height: 1.12; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .workout-copy { top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 4px; font-size: 9px; opacity: .82; }
  .workout-hover-card { display: none !important; }
  .day-add-slot, .day-add-more { min-height: 29px; gap: 0; border-color: #c7cec0; border-radius: 7px; background: #f7f9f3; font-size: 0; }
  .day-add-slot span, .day-add-more span { color: #536346; font-size: 16px; }
  .day-report-button { width: 25px; min-height: 25px; margin: auto auto 0; padding: 0; border-radius: 50%; font-size: 0; }
  .day-report-button > span { display: block; font-size: 16px; }
  .day-report-button b { top: -5px; right: -7px; min-width: 13px; height: 13px; padding: 0 3px; border-width: 1px; font-size: 7px; }
  .day-report-view { min-height: 25px; place-content: center; margin-top: auto; padding: 3px 2px; border-radius: 7px; }
  .day-report-view > span:first-child { font-size: 0; }
  .day-report-view > span:first-child::after { content: "Чат"; font-size: 8px; }
  .day-report-excerpt, .day-report-view > b { display: none; }
  .week-volume { grid-column: 1 / -1; grid-template-columns: auto repeat(2, minmax(0, 1fr)); align-items: center; gap: 7px; min-height: 40px; padding: 7px 10px; border: 0; border-top: 1px solid #d3d9ca; border-radius: 0; background: #edf2df; }
  .week-volume.run-only { grid-template-columns: auto minmax(0, 1fr); }
  .week-volume > span { align-self: center; }
  .week-volume > span, .week-volume em { font-size: 8px; }
  .week-volume > div { padding: 0 0 0 8px; border-top: 0; border-left: 1px solid #ced6ba; }
  .week-volume strong { font-size: 11px; }
  .month-volume-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; margin-top: 5px; padding: 9px 10px; border-radius: 10px; }
  .month-volume-row > div:first-child { grid-column: auto; }
  .month-volume-row span, .month-volume-row em { font-size: 8px; }
  .month-volume-row strong, .month-volume-row b { font-size: 10px; }
  .plan-roadmap { padding: 18px 14px; }
  .roadmap-copy h2 { font-size: 21px; }
  .roadmap-track { margin-inline: 24px; }
  .coach-strip, .join-strip { padding: 18px 15px; }
  .modal-backdrop.plan-backdrop, .modal-backdrop.workout-backdrop, .modal-backdrop.workout-preview-backdrop, .modal-backdrop.profile-backdrop, .modal-backdrop.admin-user-backdrop, .modal-backdrop.report-backdrop, .modal-backdrop.report-preview-backdrop, .modal-backdrop.plan-chat-backdrop { align-items: flex-end; justify-content: center; padding-top: 28px; }
  .plan-backdrop .editor, .workout-backdrop .editor, .workout-preview-backdrop .editor, .profile-backdrop .editor, .admin-user-backdrop .editor, .report-backdrop .editor, .report-preview-backdrop .editor, .plan-chat-backdrop .editor { width: 100%; height: min(92dvh, 780px); border-radius: 18px 18px 0 0; box-shadow: 0 -18px 55px rgb(20 25 18 / 20%); }
  .editor-head { padding-top: 20px; }
  .editor-head h2 { font-size: 24px; }
  .profile-avatar-control { gap: 13px; }
  .profile-avatar-preview { width: 72px; height: 72px; }
  .editor-head .text-button { min-height: 42px; }
  .editor-body { padding-bottom: 28px; }
  .editor input, .editor select, .editor textarea { font-size: 16px; }
  .report-dialog textarea { min-height: 210px; }
  .report-preview-body { padding: 20px 18px; }
  .plan-chat-head { padding: 16px 18px; }
  .plan-chat-head h2 { font-size: 20px; }
  .plan-chat-messages { padding: 15px 12px; }
  .plan-chat-bubble { width: min(88%, 470px); }
  .plan-chat-composer { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 10px; }
  .plan-chat-date { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 0 2px; }
  .plan-chat-composer textarea { min-height: 46px; }
  .plan-chat-composer .primary-button { min-height: 46px; padding-inline: 12px; }
  .modal-backdrop.plan-chat-backdrop { align-items: stretch; justify-content: stretch; padding: 0; overflow: hidden; background: var(--surface); backdrop-filter: none; }
  .plan-chat-backdrop .plan-chat-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; overflow: hidden; border-radius: 0; box-shadow: none; }
  .plan-chat-dialog .plan-chat-head { min-width: 0; padding-top: max(16px, env(safe-area-inset-top)); }
  .plan-chat-dialog .plan-chat-head > div { min-width: 0; }
  .plan-chat-dialog .plan-chat-head h2 { overflow-wrap: anywhere; }
  .plan-chat-dialog .plan-chat-messages { min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-x: none; overscroll-behavior-y: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
  .plan-chat-dialog .plan-chat-composer { flex: none; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .workout-preview-body { padding: 22px 18px; }
  .workout-preview-body dl { grid-template-columns: 1fr 1fr; }
  .workout-preview-body section p { font-size: 16px; }
  .modal-backdrop.workout-preview-backdrop { align-items: stretch; justify-content: stretch; padding: 0; overflow: hidden; background: var(--surface); backdrop-filter: none; }
  .workout-preview-backdrop .workout-preview-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; overflow: hidden; border-radius: 0; box-shadow: none; }
  .workout-preview-dialog .editor-head { min-width: 0; padding-top: max(18px, env(safe-area-inset-top)); padding-right: 18px; padding-left: 18px; }
  .workout-preview-dialog .editor-head > div { min-width: 0; }
  .workout-preview-dialog .editor-head h2 { overflow-wrap: anywhere; }
  .workout-preview-dialog .workout-preview-body { min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-x: none; overscroll-behavior-y: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
  .workout-preview-dialog .workout-preview-body > * { min-width: 0; max-width: 100%; }
  .workout-preview-dialog .editor-footer { flex: none; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .editor-footer button { min-height: 46px; }
}

@media (max-width: 700px) {
  .races-view { gap: 13px; }
  .races-intro { align-items: start; flex-direction: column; padding: 18px 15px; }
  .races-intro > div:last-child { width: 100%; justify-items: start; }
  .races-intro .secondary-button { width: 100%; }
  .race-filters { grid-template-columns: 1fr 1fr; padding: 10px; }
  .race-filter-result { grid-column: 1 / -1; min-height: 28px; justify-content: start; padding: 0 2px; }
  .race-month-head { grid-template-columns: 38px 1fr 38px; }
  .race-month-head button { width: 38px; height: 38px; }
  .race-weekdays { display: none; }
  .race-calendar { display: grid; grid-template-columns: 1fr; gap: 7px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .race-calendar-day { min-height: 0; grid-template-columns: 44px minmax(0, 1fr); gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; }
  .race-calendar-day.outside, .race-calendar-day.empty { display: none; }
  .race-calendar-day > header { align-content: start; justify-content: center; flex-direction: column; gap: 2px; padding-top: 2px; }
  .race-calendar-day > header span { display: block; }
  .race-calendar-day > header time { width: 36px; height: 36px; font-size: 18px; }
  .race-day-empty { display: none; }
  .race-day-events { align-items: start; gap: 8px; padding-block: 5px; }
  .race-marker-label { min-height: 43px; padding: 10px 11px; cursor: pointer; font-size: 14px; -webkit-line-clamp: 3; }
  .race-marker:hover .race-popover { display: none; }
  .race-marker.is-positioning .race-popover { display: grid; visibility: hidden; }
  .race-marker.is-open .race-popover { position: static; width: 100%; display: grid; visibility: visible; margin-top: 9px; padding: 15px; box-shadow: none; }
  .race-card-head { font-size: 10px; }
  .race-popover h3 { font-size: 17px; }
  .race-popover > p { font-size: 13px; }
  .race-distances span, .race-links a { font-size: 11px; }
  .race-month-empty { margin-top: 0; border: 1px dashed var(--line); border-radius: 11px; background: var(--surface); }
}

@media (max-width: 360px) {
  .main { padding-inline: 7px; }
  .plan-panel, .calendar.expanded { padding-inline: 6px; }
  .plan-title-row h3 { font-size: 21px; }
  .day-cell { padding-inline: 2px; }
  .day-cell > header { margin-inline: -2px; }
  .workout-block { min-height: 36px; padding-inline: 3px; }
  .workout-block strong { display: none; }
  .workout-block::before { overflow: hidden; font-size: 8px; font-weight: 750; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
  .workout-block.run::before { content: "Бег"; }
  .workout-block.bike::before { content: "Вело"; }
  .workout-block.strength::before { content: "Сила"; }
  .workout-block.rest::before { content: "Отдых"; }
  .workout-block.race::before { content: "Старт"; }
  .workout-block > .workout-mobile-metric { font-size: 8px; }
  .week-volume { padding-inline: 8px; }
}

@media (max-width: 420px) {
  .actions-row { grid-template-columns: 1fr; }
  .athlete-actions { grid-template-columns: 1fr; }
  .summary-grid span { font-size: 10px; }
  .summary-grid strong { font-size: 28px; }
  .plan-roadmap { padding-inline: 10px; }
  .pace-presets { grid-template-columns: repeat(3, 1fr); }
  .pace-result-facts { grid-template-columns: 1fr; }
  .pace-result-facts > div + div { border-top: 1px solid rgb(255 255 255 / 12%); border-left: 0; }
  .pace-splits-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .pace-result-copy strong { font-size: clamp(46px, 14vw, 62px); }
  .pace-result-hamster { width: clamp(72px, 23vw, 92px); height: clamp(72px, 23vw, 92px); }
  .pace-result-hamster .wheel-and-hamster { font-size: clamp(6px, 1.92vw, 7.65px); }
}

@media (prefers-reduced-motion: no-preference) {
  button { transition: background .16s ease, border-color .16s ease, transform .08s ease; }
  button:active { transform: translateY(1px); }
  .modal-backdrop { animation: appear .18s ease-out; }
  .editor { animation: slide .23s ease-out; }
}
@keyframes appear { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(25px); opacity: .8; } }
@keyframes roadmapHamster {
  from, to { transform: rotate(4deg) translate(-.8em, 1.85em); }
  50% { transform: rotate(0) translate(-.8em, 1.85em); }
}
@keyframes roadmapHamsterHead {
  from, 25%, 50%, 75%, to { transform: rotate(0); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(8deg); }
}
@keyframes roadmapHamsterEye {
  from, 90%, to { transform: scaleY(1); }
  95% { transform: scaleY(0); }
}
@keyframes roadmapHamsterEar {
  from, 25%, 50%, 75%, to { transform: rotate(0); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(12deg); }
}
@keyframes roadmapHamsterBody {
  from, 25%, 50%, 75%, to { transform: rotate(0); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-2deg); }
}
@keyframes roadmapHamsterFRLimb {
  from, 25%, 50%, 75%, to { transform: rotate(50deg) translateZ(-1px); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-30deg) translateZ(-1px); }
}
@keyframes roadmapHamsterFLLimb {
  from, 25%, 50%, 75%, to { transform: rotate(-30deg); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(50deg); }
}
@keyframes roadmapHamsterBRLimb {
  from, 25%, 50%, 75%, to { transform: rotate(-60deg) translateZ(-1px); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(20deg) translateZ(-1px); }
}
@keyframes roadmapHamsterBLLimb {
  from, 25%, 50%, 75%, to { transform: rotate(20deg); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-60deg); }
}
@keyframes roadmapHamsterTail {
  from, 25%, 50%, 75%, to { transform: rotate(30deg) translateZ(-1px); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(10deg) translateZ(-1px); }
}
@keyframes roadmapSpoke {
  from { transform: rotate(0); }
  to { transform: rotate(-1turn); }
}
@keyframes roadmapCheeks {
  from, to { transform: scale(1); }
  50% { transform: scale(1.1, 1.06); }
}
@keyframes roadmapShoes {
  from, 50%, to { filter: brightness(1); }
  25%, 75% { filter: brightness(1.18); }
}
@keyframes roadmapBikeWheel {
  from { transform: rotate(0); }
  to { transform: rotate(1turn); }
}
@keyframes roadmapBikeCrank {
  from { transform: rotate(0); }
  to { transform: rotate(1turn); }
}
@keyframes roadmapBikeRider {
  from, to { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-2px) rotate(-2deg); }
}
@keyframes roadmapBikeLeg {
  from { transform: rotate(0); }
  to { transform: rotate(-1turn); }
}
@keyframes roadmapBikeFoot {
  from { transform: translateY(-50%) rotate(0) scaleX(-1); }
  to { transform: translateY(-50%) rotate(1turn) scaleX(-1); }
}
@keyframes strengthPress {
  0%, 100% { transform: translateY(5px) rotate(-2deg); }
  45% { transform: translateY(-11px) rotate(1deg); }
  48% { transform: translate(-1px, -11px) rotate(-1deg); }
  51% { transform: translate(1px, -11px) rotate(2deg); }
  54% { transform: translateY(-11px) rotate(-1deg); }
}
@keyframes strengthBody {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.06); }
}
@keyframes strengthSweat {
  0%, 12% { opacity: 0; transform: translate(0, 0) scale(.64); }
  20% { opacity: 1; transform: translate(0, 1px) scale(.72); }
  55% { opacity: 1; transform: translate(-1px, 12px) scale(.88); }
  82% { opacity: .82; transform: translate(-2px, 22px) scale(1); }
  100% { opacity: 0; transform: translate(-3px, 29px) scale(.9); }
}
@keyframes restBreath {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-1px) scaleY(1.06); }
}
@keyframes restBlink {
  0%, 46%, 50%, 100% { transform: scaleY(1); }
  48% { transform: scaleY(.12); }
}
@keyframes restTv {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(18deg) brightness(1.14); }
}
