/* vazirmatn-arabic-wght-normal */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/vazirmatn-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}


/* vazirmatn-latin-wght-normal */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/vazirmatn-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme:dark;
  --ink:#f3f7f4; --muted:#acb9b2; --line:#303b36; --paper:#151d1a; --canvas:#0c1110;
  --raised:#1b2520; --input:#101714; --accent:#a8f13d; --accent-soft:#233619; --accent-ink:#152106;
  --night:#101714; --focus:#a8f13d; --warning:#ffab52; --warn-soft:#382a1c; --danger:#ffaba8;
  --danger-soft:#392020; --success:#a8f13d; --radius:18px; --sidebar-width:237px;
  font-family:Vazirmatn,Tahoma,Arial,sans-serif; color:var(--ink); background:var(--canvas);
  line-height:1.68;
}
:root[data-theme="light"] {
  color-scheme:light;
  --ink:#15231b; --muted:#4e6056; --line:#d3ded3; --paper:#fff; --canvas:#f2f6ef;
  --raised:#edf4e9; --input:#f9fcf8; --accent:#326810; --accent-soft:#e3f2d8; --accent-ink:#fff;
  --night:#e9f0e6; --focus:#326810; --warning:#8a4300; --warn-soft:#fff0dd; --danger:#8f2927;
  --danger-soft:#fbe8e7; --success:#326810;
}
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; }
[hidden] { display:none!important; }
button,input,select,textarea { font:inherit; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid var(--focus); outline-offset:2px;
}
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(1.7rem,5vw,2.8rem); line-height:1.45; letter-spacing:-.025em; }
h2 { font-size:1.12rem; }
h3 { font-size:1rem; }
.header { background:var(--night); color:var(--ink); }
.header-inner { min-height:72px; max-width:1200px; margin:auto; padding:12px 24px; display:flex;
  justify-content:space-between; align-items:center; gap:12px; }
.brand { display:flex; align-items:center; gap:10px; }
.brand strong,.brand small { display:block; line-height:1.45; }
.brand small { color:var(--muted); font-size:.72rem; }
.brand-icon { display:grid; place-items:center; width:42px; height:42px; color:var(--accent);
  background:var(--accent-soft); border-radius:13px; font-size:1.6rem; font-weight:bold; }
.account-name,.athlete-account-name { font-size:.85rem; }
.athlete-profile-button { min-width:0; padding-inline:.35rem; }
.athlete-profile-button .row { flex-wrap:nowrap; gap:.35rem; }
.athlete-profile-button .avatar { width:2rem; height:2rem; flex:none; }
.athlete-account-name { max-inline-size:clamp(4rem,18vw,12rem); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shell { max-width:1200px; margin:auto; padding:26px 24px 64px; }
.stack { display:grid; gap:14px; min-width:0; }
.row { display:flex; gap:9px; flex-wrap:wrap; align-items:center; }
.split { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.review-grid { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
.auth-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:16px; align-items:stretch; }
.auth-layout .hero { min-height:280px; }
.hero { min-height:152px; position:relative; isolation:isolate; overflow:hidden; display:flex;
  justify-content:space-between; align-items:center; gap:12px; padding:26px clamp(18px,5vw,50px);
  border-radius:25px; color:#fff; background:linear-gradient(118deg,#243b1a,#14241b 58%,#101814); }
.hero p { color:#c1d1c5; margin-top:4px; max-width:44ch; }
.eyebrow { display:inline-block; border:1px solid #668d4f; color:#e5f6df; border-radius:999px;
  padding:2px 11px; font-size:.76rem; margin-bottom:7px; }
.hero-mark { font-family:Arial,sans-serif; font-weight:bold; font-size:clamp(2rem,10vw,5rem); color:#a8f13d;
  width:1.7em; aspect-ratio:1; display:grid; place-items:center; background:#ffffff15;
  border:1px solid #ffffff34; border-radius:33%; flex:none; transform:rotate(-8deg); }
.card { border:1px solid var(--line); background:var(--paper); border-radius:var(--radius);
  padding:clamp(13px,2.2vw,22px); display:grid; gap:12px; min-width:0; overflow-wrap:anywhere; }
.section-head { display:grid; gap:2px; }
.muted { color:var(--muted); font-size:.85rem; }
.badge { display:inline-flex; align-items:center; width:fit-content; max-width:100%; border-radius:999px;
  background:var(--accent-soft); color:var(--accent); padding:3px 10px; font-size:.76rem; font-weight:bold; }
.badge.success { background:var(--accent-soft); color:var(--success); }
.badge.warn { background:var(--warn-soft); color:var(--warning); }
.badge.danger { background:var(--danger-soft); color:var(--danger); }
.button { min-height:42px; padding:7px 13px; width:fit-content; font-size:.86rem; font-weight:bold;
  border:1px solid transparent; border-radius:11px; color:var(--accent); cursor:pointer; }
.button:hover { filter:brightness(.95); }
.button.primary { color:var(--accent-ink); background:var(--accent); }
.button.secondary { background:var(--accent-soft); }
.button.ghost { background:transparent; }
.header .button.ghost { color:var(--ink); border-color:var(--line); }
.button.selected { background:var(--night); color:var(--ink); }
.button:disabled { opacity:.45; cursor:not-allowed; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; background:var(--raised); border-radius:14px; padding:4px; }
.field { display:grid; gap:4px; min-width:0; font-size:.82rem; font-weight:bold; }
input,select,textarea { min-width:0; width:100%; padding:8px 10px; min-height:42px; border:1px solid var(--line);
  border-radius:10px; background:var(--input); color:var(--ink); font-weight:normal; }
textarea { resize:vertical; }
.row > select { width:auto; }
.fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(155px,100%),1fr)); align-items:start; gap:10px; }
.editor-item,.activity,.set,.feedback-box { border:1px solid var(--line); padding:10px; border-radius:12px; background:var(--raised); }
.activity { display:grid; gap:6px; }
.set summary,.feedback-box summary { cursor:pointer; font-size:.84rem; font-weight:bold; }
.set summary p { display:inline; }
details[open] > summary { margin-bottom:9px; }
.mini { padding-inline-start:7px; font-size:.72rem; color:var(--muted); }
.list-item { display:flex; align-items:center; justify-content:space-between; gap:8px;
  border:1px solid var(--line); padding:10px; border-radius:12px; }
.metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.metric { display:block; font-size:1.7rem; }
.form-error { color:var(--danger); background:var(--danger-soft); padding:8px; border-radius:10px; font-size:.85rem; }
.notice { position:fixed; z-index:5; inset-inline:0; bottom:16px; width:max-content; max-width:calc(100vw - 24px);
  margin-inline:auto; background:var(--night); color:var(--ink); border-radius:12px; padding:10px 16px;
  box-shadow:0 8px 24px #0004; font-size:.86rem; }
@media(max-width:760px) {
  .split,.auth-layout,.review-grid { grid-template-columns:1fr; }
  .auth-layout .hero { min-height:170px; }
  .header-inner { padding-inline:12px; }
  .shell { padding-inline:12px; padding-top:14px; }
}
@media(max-width:420px) {
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .hero-mark { width:1.55em; }
  .header-inner .account-name { display:none; }
}
.week-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.week-day { text-align:start; min-width:0; min-height:80px; display:grid; align-content:start; gap:3px;
  padding:7px 9px; border:1px solid var(--line); border-radius:12px; background:var(--raised); color:var(--ink);
  cursor:pointer; font-size:.78rem; }
.week-day .mini { padding:0; }
.week-day .row { gap:3px; }
.week-day .badge { padding:1px 5px; font-size:.68rem; }
.week-selected { border-color:var(--accent); background:var(--accent-soft); }
.activity > summary { cursor:pointer; font-weight:bold; }
.activity[open] { display:grid; gap:9px; }
.bank-results { max-height:310px; overflow:auto; padding:4px; }
.equipment-list { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.check-row { display:inline-flex; align-items:center; gap:5px; min-height:34px; padding:4px 8px;
  border:1px solid var(--line); border-radius:9px; font-size:.83rem; }
.check-row input { width:16px; min-height:16px; accent-color:var(--accent); }
.phase-list { margin:0; padding-inline-start:21px; color:var(--muted); font-size:.84rem; }
@media(max-width:760px) {
  .week-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:390px) {
  .week-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* Shared panel shell */
.icon { inline-size:21px; block-size:21px; flex:none; vertical-align:middle; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.header { border-bottom:1px solid var(--line); }
.header-inner { max-width:none; min-height:66px; }
.header-inner .row { justify-content:flex-end; }
.top-context,.theme-control { display:flex; align-items:center; gap:7px; white-space:nowrap; }
.top-context .icon,.theme-control .icon { color:var(--accent); }
.theme-control { border:1px solid var(--line); border-radius:11px; padding-inline-start:8px; }
.theme-select { width:auto; min-height:34px; border:0; background:transparent; padding:4px 8px; font-size:.8rem; }
.theme-select option { background:var(--paper); color:var(--ink); }
.brand-icon .icon { inline-size:27px; block-size:27px; }
.row > select { max-width:100%; }
.panel-sidebar { position:fixed; z-index:6; inset-block:0; inset-inline-start:0; width:var(--sidebar-width);
  background:var(--night); border-inline-end:1px solid var(--line); padding:23px 14px; overflow-y:auto; }
.panel-sidebar .brand { padding:0 8px 21px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.panel-nav.side { display:grid; gap:6px; }
.nav-item { display:flex; align-items:center; gap:12px; text-align:start; min-width:0; min-height:44px;
  border:1px solid transparent; border-radius:11px; background:transparent; color:var(--muted);
  padding:7px 12px; cursor:pointer; }
.nav-item:hover { background:var(--raised); color:var(--ink); }
.nav-item.current { background:var(--accent-soft); color:var(--accent); border-color:var(--accent); font-weight:bold; }
body:is([data-panel=coach],[data-panel=admin]) .header,
body:is([data-panel=coach],[data-panel=admin]) .shell { margin-inline-start:var(--sidebar-width); }
body:is([data-panel=coach],[data-panel=admin]) .shell { max-width:none; padding-inline:clamp(14px,2vw,30px); }
.page-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.page-title h1 { font-size:clamp(1.52rem,3vw,2.45rem); }
.page-title p { margin-top:4px; }
.button .row { flex-wrap:nowrap; }
.button.selected { background:var(--accent-soft); color:var(--accent); border-color:var(--accent); }
.section-head h2 .icon { color:var(--accent); }
.notice { border:1px solid var(--line); z-index:11; }

/* Coach and administrator dashboards */
.dashboard-metrics,.dashboard-hero-grid,.dashboard-content { display:grid; align-items:start; gap:14px; min-width:0; }
.dashboard-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; }
.dashboard-hero-grid { grid-template-columns:minmax(220px,1fr) minmax(0,2.2fr); align-items:stretch; }
.dashboard-content { grid-template-columns:minmax(0,2.2fr) minmax(255px,1fr); }
.spread { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.feature { display:inline-grid; place-items:center; width:39px; height:39px; border-radius:12px;
  background:var(--accent-soft); color:var(--accent); flex:none; }
.feature.warning,.stat.warning .feature { color:var(--warning); background:var(--warn-soft); }
.stat { background:linear-gradient(120deg,var(--paper),var(--raised)); }
.stat-value { font-size:clamp(1.45rem,3vw,2.3rem); line-height:1.2; letter-spacing:-.03em; }
.stat.warning .stat-value { color:var(--warning); }
.ring-row,.timer-body,.service-box { display:flex; align-items:center; gap:18px; min-width:0; }
.ring { display:grid; position:relative; place-items:center; width:110px; aspect-ratio:1; flex:none; color:var(--accent); }
.ring-svg { position:absolute; inset:0; width:100%; height:100%; }
.ring-track,.ring-fill { stroke-width:8; fill:none; }
.ring-track { stroke:var(--line); }
.ring-fill { stroke:currentColor; stroke-linecap:round; }
.ring-label { font-size:1.15rem; font-weight:bold; color:var(--ink); position:relative; }
.plot { margin:0; }
.trend-plot { display:block; width:100%; height:115px; overflow:visible; direction:ltr; }
.plot-grid { stroke:var(--line); fill:none; }
.plot-area { fill:var(--accent-soft); }
.plot-line { stroke:var(--accent); fill:none; stroke-width:2; }
.plot-point,.plot-bar { fill:var(--accent); }
.plot-labels { display:flex; justify-content:space-between; direction:ltr; color:var(--muted); padding-inline:4px; font-size:.72rem; }
.table-wrap { overflow:auto; }
.data-table { border-collapse:collapse; width:100%; font-size:.84rem; min-width:555px; }
.data-table :is(th,td) { padding:9px 8px; text-align:start; border-bottom:1px solid var(--line); }
.data-table th { background:var(--raised); color:var(--muted); font-weight:bold; white-space:nowrap; }
.data-table tr:last-child td { border-bottom:0; }
.avatar { display:inline-grid; place-items:center; inline-size:34px; block-size:34px; border-radius:50%; flex:none;
  border:1px solid var(--accent); color:var(--accent); background:var(--accent-soft); font-weight:bold; }
.adherence { display:flex; gap:6px; align-items:center; font-size:.78rem; white-space:nowrap; }
.adherence progress { accent-color:var(--accent); width:56px; height:7px; }
.feed-item { display:flex; align-items:center; text-align:start; gap:8px; background:var(--raised);
  padding:8px; border:1px solid var(--line); border-radius:12px; color:var(--ink); cursor:pointer; min-width:0; width:100%; }
.feed-item > span:nth-child(2) { flex:1; min-width:0; }
.feed-item .mini { max-width:98px; flex:none; }
.feed-body { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.message-list { display:grid; gap:9px; max-height:60vh; overflow:auto; padding:2px; }
.message-bubble { justify-self:left; width:fit-content; max-width:min(84%,540px); border-radius:15px;
  background:var(--raised); border:1px solid var(--line); padding:9px 12px; }
.message-bubble.own { justify-self:right; background:var(--accent-soft); }
.message-bubble p { white-space:pre-wrap; overflow-wrap:anywhere; }

/* Athlete home and mobile navigation */
body[data-panel=athlete] .header-inner,body[data-panel=athlete] .shell { max-width:740px; }
body[data-panel=athlete] .shell { padding-bottom:108px; }
.bottom-nav { position:fixed; z-index:9; inset-inline:0; bottom:0; margin-inline:auto; max-width:740px;
  padding:5px max(7px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom));
  border:1px solid var(--line); border-bottom:0; border-radius:20px 20px 0 0; background:var(--night);
  box-shadow:0 -5px 20px #0002; }
.panel-nav.mobile { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; }
.panel-nav.mobile .nav-item { min-height:54px; flex-direction:column; justify-content:center; gap:1px;
  padding:3px; font-size:.74rem; text-align:center; white-space:nowrap; }
body[data-panel=athlete] .notice { bottom:83px; }
.fitx-mobile-plan-actions,.fitx-coach-quick-actions,body[data-panel=coach] .bottom-nav {display:none}
.fitx-exercise-card > summary {cursor:pointer;min-height:44px;padding:.5rem}
.fitx-exercise-card > summary small {display:inline-block;margin-inline-start:.5rem;color:var(--muted)}
.fitx-exercise-card[open] > summary {border-bottom:1px solid var(--line)}
.fitx-exercise-actions {margin-block:.4rem}
.fitx-exercise-actions .button {min-width:44px;min-height:44px}
.fitx-exercise-drag {cursor:grab;padding:.5rem;color:var(--muted)}
.fitx-log-metrics,.fitx-independent-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.fitx-log-metrics > div {border:1px solid var(--line);border-radius:12px;background:var(--raised);padding:.7rem;min-width:0}
.fitx-log-metrics p {margin:0}
.fitx-log-avatar {width:68px;height:68px;object-fit:cover;border-radius:50%;box-shadow:0 4px 18px #0005}
@media(max-width:850px){
  body[data-panel=coach] .bottom-nav {display:block}
  body[data-panel=coach] .shell {padding-bottom:112px}
  body[data-panel=coach] .notice {bottom:84px}
  .fitx-coach-quick-actions {display:flex;margin-block:.4rem}
  .fitx-coach-quick-actions .button {min-height:44px}
  .fitx-mobile-plan-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;
    position:fixed;z-index:8;bottom:calc(66px + env(safe-area-inset-bottom));inset-inline:0;
    padding:.35rem .7rem;background:var(--night);border-top:1px solid var(--line)}
  .fitx-mobile-plan-actions .button {width:100%;min-height:44px}
  .fitx-plan-editor {padding-bottom:63px;min-width:0}
  body[data-panel=coach]:has(.fitx-plan-editor) .notice {bottom:140px}
  .fitx-exercise-drag {display:none}
}
.athlete-hero { color:#fff; display:grid; align-content:space-between; gap:14px; min-height:255px;
  padding:18px; border-radius:22px; border:1px solid #3b5440;
  background:linear-gradient(90deg,#10231922 0%,#10191236 42%,#101814 73%), url('/assets/training.webp') left center/cover no-repeat, #111b14; }
.athlete-hero-copy { width:min(66%,390px); }
.athlete-hero h2 { font-size:clamp(1.6rem,5.5vw,2.75rem); margin-block:7px; line-height:1.3; }
.athlete-hero .muted { color:#d7e1d8; }
.athlete-hero .badge { color:#bbfa76; background:#20391f; }
.athlete-hero .button.primary { background:#a8f13d; color:#152106; }
.full-button { width:100%; }
.full-button .row { justify-content:center; }
.athlete-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:stretch; }
.athlete-stat .ring { width:86px; }
.athlete-stat:first-child .section-head .icon,.timer-card .section-head .icon,.coach-message .section-head .icon { color:var(--warning); }
.timer-body { flex-wrap:wrap; }
.timer-body .field input { width:72px; min-height:36px; }
.timer-ring { width:99px; }
.timer-ring .ring-label { direction:ltr; }
.coach-message { border-inline-start:3px solid var(--accent); }
.coach-message .row { align-items:flex-start; }
.coach-message .row > div { flex:1; min-width:0; }
body[data-panel=athlete] .week-grid { grid-template-columns:repeat(7,minmax(0,1fr)); }
body[data-panel=athlete] .week-day { padding:5px 3px; min-height:62px; font-size:.68rem; }

@media(max-width:1100px) {
  :root { --sidebar-width:195px; }
  .dashboard-content { grid-template-columns:1fr; }
  .dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:850px) {
  .panel-sidebar { position:static; width:auto; padding:6px 12px; border-inline-end:0; border-bottom:1px solid var(--line); }
  .panel-sidebar .brand { display:none; }
  .panel-nav.side { display:flex; overflow-x:auto; gap:4px; }
  .panel-nav.side .nav-item { flex:none; gap:5px; padding:6px 9px; font-size:.8rem; }
  body:is([data-panel=coach],[data-panel=admin]) :is(.header,.shell) { margin-inline-start:0; }
  .dashboard-hero-grid { grid-template-columns:1fr; }
}
@media(max-width:520px) {
  .header-inner { padding:6px 10px; }
  .header-inner .row { gap:3px; }
  .header-inner .brand-icon { width:31px; height:31px; }
  .header-inner .brand-icon .icon { width:20px; height:20px; }
  .header-inner .brand { gap:5px; font-size:.77rem; }
  .header-inner .brand small { display:none; }
  .header-inner .button.ghost { padding-inline:5px; font-size:.73rem; min-height:34px; }
  .theme-control .icon { display:none; }
  .theme-control { padding-inline-start:0; }
  .theme-select,.header-inner select[name=panel] { padding-inline:5px; font-size:.72rem; min-height:34px; }
  .page-title { align-items:flex-start; }
  .athlete-hero { min-height:215px; }
  body[data-panel=athlete] .week-grid { grid-template-columns:repeat(7,minmax(58px,1fr)); overflow-x:auto; padding:2px; }
}
.athlete-greeting { display:flex; align-items:center; gap:10px; }
.athlete-greeting > div { flex:1; min-width:0; }
.athlete-greeting .avatar { width:44px; height:44px; }
.athlete-greeting h1 { font-size:clamp(1.3rem,4.7vw,2.2rem); }
.athlete-greeting .button { border-color:var(--line); }
.timer-body { flex-direction:row-reverse; justify-content:space-between; }

.avatar { position:relative;overflow:hidden; }
.avatar img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.onboarding-progress { width:min(100%,340px);height:10px;accent-color:var(--accent); }
.progress-chart { width:100%;min-height:110px;direction:ltr; }
.chart-tick { fill:var(--muted);font-family:inherit;font-size:13px; }
.progress-photos { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px; }
.photo-card img { width:100%;aspect-ratio:4/5;object-fit:contain;display:block;border-radius:10px;background:var(--input); }
.photo-card form { display:inline-flex; }
.bank-selected { border-color:var(--accent); }
.panel-nav.subnav { display:grid;gap:4px;padding-inline-start:12px; }
.panel-nav.subnav .nav-item { font-size:.81rem;min-height:36px; }
@media(max-width:850px){ .panel-nav.subnav { display:flex;padding-inline-start:0; } }
.jalali-control{position:relative;min-width:0}
.jalali-calendar{position:absolute;z-index:20;inset-inline-start:0;min-width:min(18rem,80vw);padding:.65rem;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:0 12px 30px #0005}
.jalali-calendar[hidden]{display:none}
.jalali-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:.15rem;margin:.35rem 0}
.jalali-grid .button{padding:.3rem;min-width:0}
.chart-dates{display:flex;justify-content:space-between;gap:.5rem;direction:ltr;padding-inline:1rem}
.chart-dates time{direction:rtl}
.progress-chart .chart-tick{direction:ltr;unicode-bidi:isolate}
.move-picker{position:relative;min-width:0}
.move-picker input{width:100%}
.move-suggestions{position:absolute;z-index:9;inset-inline:0;top:100%;display:grid;max-height:15rem;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:10px}
.move-suggestions[hidden]{display:none}
.move-suggestions .button{text-align:start}
.guide-clock{font-variant-numeric:tabular-nums;font-size:clamp(2rem,10vw,4rem);direction:ltr;text-align:center}
.fitex-table{overflow:auto}
.fitex-table table{width:100%;min-width:40rem;border-collapse:collapse}
.fitex-table th,.fitex-table td{padding:.55rem;text-align:start;border-bottom:1px solid var(--line)}
.fitex-table th{position:sticky;top:0;background:var(--paper)}
.exercise-media{max-width:min(100%,33rem);max-height:22rem;border-radius:12px}
dialog.card{max-width:min(90vw,38rem);max-height:85vh;overflow:auto}
dialog::backdrop{background:#0008}
.movement-text{white-space:pre-wrap;overflow-wrap:anywhere}
.movement-meta{display:grid;grid-template-columns:max-content 1fr;gap:.4rem .8rem;margin:.6rem 0}
.movement-meta dt{color:var(--muted)}
.movement-meta dd{margin:0}
.gallery-scroll{max-height:30rem;overflow:auto;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));align-content:start}
.gallery-tile{min-width:0;display:grid;gap:.3rem}
.gallery-thumb{border:0;background:transparent;padding:0}
.gallery-thumb img{width:100%;height:90px;object-fit:cover;border-radius:9px}
.photo-viewer>img{display:block;max-width:100%;max-height:55vh;object-fit:contain;margin:auto}
.nav-count,.nutrition-alert-count{background:var(--accent);color:var(--accent-ink);border-radius:1rem;padding:0 .45rem;line-height:1.5}
.avatar-button{background:transparent;border:0;padding:0;min-width:0}
.messenger-layout{display:grid;grid-template-columns:minmax(12rem,1fr) minmax(0,2.5fr);gap:1rem}
.messenger-threads{max-height:65vh;overflow:auto}
.messenger-threads .button{width:100%;text-align:start}
.chat-thread-title{display:grid;flex:1;min-width:0}
.chat-thread-title small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.message-bubble p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.messenger-layout{grid-template-columns:1fr}.messenger-threads{max-height:11rem}}
.selection-dialog.card{width:min(94vw,64rem);max-width:94vw}
.selection-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.45rem}
.selection-grid .button{min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:start}
.selection-grid .button[aria-pressed=true]::before{content:'✓';margin-inline-end:.35rem}
.selection-scroll{max-height:21rem;overflow:auto;padding:.2rem}
.selected-cell{display:flex;align-items:center;justify-content:space-between;gap:.3rem;padding:.3rem .55rem;background:var(--raised);border:1px solid var(--line);border-radius:.55rem}
.selected-cell .button{padding:.2rem;min-height:2rem}
@media(max-width:900px){.selection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.selection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.sidebar-collapsed{--sidebar-width:94px}
body.sidebar-collapsed .panel-sidebar{display:block;padding-inline:9px}
.sidebar-brand{display:flex;align-items:center;gap:.45rem;margin-bottom:14px;border-bottom:1px solid var(--line);padding-bottom:13px}
.sidebar-brand .brand{padding:0;margin:0;border:0}
.sidebar-toggle.button{padding:.35rem;min-width:2.1rem}
body.sidebar-collapsed .sidebar-brand .brand>div{display:none}
body.sidebar-collapsed .sidebar-brand .brand-icon{width:2rem;height:2rem}
body.sidebar-collapsed .sidebar-brand{justify-content:center}
body.sidebar-collapsed .panel-sidebar .nav-label{display:none}
body.sidebar-collapsed .panel-sidebar .nav-item{justify-content:center;position:relative;padding-inline:7px}
body.sidebar-collapsed .panel-sidebar .nav-count{position:absolute;inset-inline-end:1px;inset-block-start:1px;font-size:.7rem}
body.sidebar-collapsed .panel-sidebar .subnav{margin:0;padding:0}
.mobile-brand{display:none}
.coach-profile-button .avatar{width:31px;height:31px}
.alerts-list{max-height:60vh;overflow:auto}
body.workout-focus :is(.header,.bottom-nav){display:none}
body.workout-focus .shell{max-width:none;padding:0;margin:0;min-height:100dvh}
.focused-workout{min-height:100dvh;width:min(100%,48rem);margin:auto;padding:clamp(.8rem,3vw,1.8rem)}
.workout-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}
.workout-stage-heading h2{font-size:clamp(1.65rem,5vw,2.75rem);font-weight:850;margin-bottom:.25rem}
.focused-set-status{margin-bottom:.45rem;font-weight:700}
.workout-step-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.focused-workout .set{padding:0;border:0;background:transparent}
@media(max-width:850px){
  .mobile-brand{display:flex;align-items:center;gap:.35rem}
  .desktop-panel-name,.sidebar-brand{display:none}
  body.sidebar-collapsed .panel-sidebar{padding:6px 9px}
}

@media(max-width:520px){.coach-profile-button .row>span:not(.avatar){display:none}}

/* Align both labels and controls when question text wraps. */
.profile-fields{grid-template-columns:repeat(auto-fit,minmax(min(225px,100%),1fr));align-items:stretch}
.profile-fields>.field{grid-template-rows:1fr auto;align-items:end}
.profile-fields>.field>select,.profile-fields>.field>input,.profile-fields>.field .jalali-control>button{width:100%;min-height:42px}
input[type=checkbox].nutrition-day-tick{width:17px;height:17px;min-height:0;min-width:0;padding:0;flex:none;margin:0}

.athlete-week-nav { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.4rem; }
.athlete-week-nav > button { font-size:1.35rem; padding:.35rem .6rem; }
.meal-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
.meal-items .list-item { flex-wrap:wrap; }
@media (min-width:850px) { .meal-items { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.nutrition-hint { padding:0; border:0; background:transparent; color:inherit; font:inherit; text-align:start; cursor:help; }
.nutrition-tooltip { position:fixed; z-index:100; width:max-content; max-width:min(23rem,calc(100vw - 16px)); padding:.75rem; border:1px solid currentColor; border-radius:.65rem; background:Canvas; color:CanvasText; pointer-events:none; white-space:normal; }
.nutrition-bank-line { display:flex; flex-wrap:nowrap; align-items:center; gap:.45rem; white-space:nowrap; }

.nutrition-draft-dialog { width:min(72rem,calc(100vw - 2rem)); max-height:90vh; overflow:auto; }

.nutrition-bank-line > .row { flex-wrap:nowrap; }

.registration-data { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:.75rem; margin:1rem 0 0; }
.registration-data > div { border:1px solid var(--border,currentColor); border-radius:.7rem; padding:.7rem .85rem; }
.registration-data dt { font-size:.85rem; opacity:.75; }
.registration-data dd { margin:.25rem 0 0; overflow-wrap:anywhere; white-space:pre-wrap; }
.manual-meal { position:relative; }
.manual-meal > details > summary { min-height:2.75rem; padding-inline-end:8rem; align-content:center; }
.manual-meal > .meal-edit { position:absolute; inset-inline-end:.4rem; inset-block-start:.25rem; z-index:1; }
.workout-tools { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.workout-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,7.5rem),1fr)); gap:.65rem; margin-block:.35rem .85rem; }
.workout-metric { display:grid; gap:.25rem; padding:.65rem .85rem; border-radius:.8rem; background:color-mix(in srgb,currentColor 7%,transparent); }
.workout-metric > span { font-size:.83rem; opacity:.8; }
.workout-metric > strong { font-size:clamp(1.1rem,3vw,1.65rem); line-height:1.4; }
.workout-optional > summary { min-height:2.5rem; align-content:center; }
.workout-save-actions { display:flex; flex-wrap:wrap; align-items:flex-start; gap:.6rem; }
.workout-save-actions > details { flex:1 1 12rem; }
.workout-save-actions > button { min-height:2.5rem; margin-inline-start:auto; }
.athlete-week-nav > button { direction:ltr; }

.diet-day-controls { align-items:flex-end; }

body[data-panel=athlete] { background:radial-gradient(ellipse at 90% 0%,#17362644,transparent 42%),var(--canvas); }
:root:not([data-theme=light]) body[data-panel=athlete] { --accent:#68ff75; --accent-soft:#1d3929; --canvas:#0c1117; --paper:#151c25; --raised:#202933; --line:#303a46; --input:#111821; }
body[data-panel=athlete] .card { border-radius:20px; }
body[data-panel=athlete] .button.primary { background:linear-gradient(110deg,#a1ff66,#21df78); color:#07170c; font-weight:800; }
body[data-panel=athlete] .panel-nav.mobile .nav-item[aria-current=page] { color:var(--accent); background:var(--accent-soft); }
.athlete-profile-hero { padding:clamp(1rem,4vw,2rem); border:1px solid var(--line); border-radius:24px; background:linear-gradient(125deg,var(--accent-soft),transparent 75%),var(--paper); }
.athlete-profile-hero .avatar { width:clamp(64px,16vw,112px); height:clamp(64px,16vw,112px); border:2px solid var(--accent); }
.athlete-progress-strip .row { gap:1.4rem; }
.athlete-progress-strip .ring { width:6rem; }
.workout-month > .row { justify-content:space-between; }
.workout-month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:.35rem; text-align:center; margin-block:.8rem; }
.workout-month-grid .month-day { min-width:0; padding:.45rem 0; border-radius:10px; }
.month-day.has-workout { background:var(--accent-soft); color:var(--accent); }
.month-day.month-today,.month-day[aria-current=date] { border-color:var(--accent); }
.month-day.outside-month { opacity:.5; }
.workout-plan-stats { display:grid; grid-template-columns:repeat(3,1fr); align-items:center; text-align:center; gap:.5rem; }
.workout-plan-stats strong { font-size:1.4rem; }
.athlete-movement-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.65rem; padding:.7rem; border:1px solid var(--line); border-radius:14px; }
.movement-help-controls { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem; }
.athlete-movement-row .movement-help-controls { flex-direction:column; align-items:end; }
.movement-help-controls > .button { min-height:44px; }
.button.movement-thumbnail {
  position:relative; display:grid; place-items:center; inline-size:clamp(62px,18vw,86px); block-size:48px;
  padding:0; overflow:hidden; background:var(--input); border:1px solid var(--line);
}
.movement-thumbnail video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.movement-thumbnail-play {
  position:relative; display:grid; place-items:center; width:26px; height:26px; border-radius:50%;
  color:#fff; background:#101821db; border:1px solid #ffffff80; font-size:.72rem;
}
.button.movement-thumbnail:hover,.button.movement-thumbnail:active { border-color:var(--accent); }
.movement-help-dialog { width:min(34rem,calc(100% - 1.5rem)); max-height:calc(100dvh - 2rem); overflow:auto; }
.movement-help-dialog > .exercise-media { display:block; width:100%; object-fit:contain; }
.movement-number { display:grid; place-items:center; min-width:2rem; height:2rem; border-radius:.65rem; color:var(--accent); background:var(--accent-soft); }
.session-media:empty { display:none; }
.session-media { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); align-items:center; gap:1rem; }
.session-media video { width:100%; max-height:300px; background:#0a0e12; border-radius:16px; }
body[data-panel=athlete] .workout-metric { border:1px solid var(--line); border-radius:15px; }
body[data-panel=athlete] .workout-metric strong { color:var(--accent); }

.workout-set-list { display:grid; gap:.45rem; }
.workout-set-row { display:grid; grid-template-columns:1fr 1fr 1fr auto; align-items:center; gap:.4rem; padding:.55rem .7rem; border:1px solid var(--line); border-radius:12px; background:var(--raised); }
.workout-set-row.current-set { border-color:var(--accent); background:var(--accent-soft); }
.focused-workout .guide-clock .timer-ring { width:min(40vw,11rem); margin-inline:auto; }

.athlete-account-menu { position:relative; }
.athlete-account-menu > summary { list-style:none; cursor:pointer; padding:.25rem .4rem; border-radius:12px; }
.athlete-account-menu > summary::-webkit-details-marker { display:none; }
.athlete-account-menu .avatar { width:2rem; height:2rem; }
.athlete-account-popover { position:absolute; inset-inline-end:0; top:100%; z-index:20; width:12rem; display:grid; gap:.3rem; box-shadow:0 10px 26px #0005; }
.athlete-account-popover button { text-align:start; }
.athlete-account-popover details > summary { padding:.4rem; cursor:pointer; }
body[data-panel=athlete] .panel-nav.mobile { border-radius:22px 22px 0 0; }
body[data-panel=athlete] .panel-nav.mobile [data-section=home][aria-current=page] { background:var(--accent); color:var(--canvas); }
.athlete-today-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.athlete-today-actions > button { min-height:84px; text-align:start; border-radius:16px; }
.athlete-today-actions > button > .row { flex-wrap:nowrap; }
.athlete-today-actions .today-workout { border-color:var(--accent); background:var(--accent-soft); }
.workout-month-grid { gap:clamp(.22rem,1.1vw,.6rem); }
.workout-month-grid > span { color:var(--muted); font-size:.85rem; }
.workout-month-grid .month-day { width:100%; min-height:clamp(40px,9vw,64px); font-weight:700; background:var(--raised); }
.workout-month-grid .has-workout { background:var(--accent-soft); }
.workout-month-grid .month-today { background:var(--accent); color:var(--accent-ink); }
.workout-month-grid [aria-current=date] { outline:1px solid var(--accent); }
.nutrition-target-grid { display:grid; justify-items:stretch; gap:1rem; margin-block:1rem; }
.nutrition-energy { display:grid; justify-items:center; text-align:center; gap:.25rem; }
.nutrition-energy-ring { width:min(100%,8rem); }
.athlete-meal-card > summary { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.75rem; cursor:pointer; }
.athlete-meal-card > summary::-webkit-details-marker { display:none; }
.athlete-meal-icon,.athlete-meal-status { display:grid; place-items:center; width:2rem; height:2rem; border-radius:.7rem; background:var(--accent-soft); color:var(--accent); }
.athlete-meal-status.meal-done { background:var(--accent); color:var(--accent-ink); }
.athlete-meal-copy { min-width:0; }
.athlete-meal-copy .nutrition-hint { font-weight:800; }
.athlete-meal-foods { display:flex; flex-wrap:wrap; gap:.1rem .8rem; color:var(--muted); font-size:.8rem; }
.athlete-meal-foods > span::before { content:'• '; color:var(--accent); }

.month-completed { border-color:var(--accent); color:var(--accent); }
.month-check { margin-inline-start:.25rem; font-size:.75em; }

.account-menu-icon { display:grid; place-items:center; inline-size:40px; block-size:40px; border:1px solid var(--line); border-radius:12px; background:var(--raised); transition:background .18s,color .18s; }
.athlete-account-menu[open] .account-menu-icon,.athlete-account-menu summary:hover .account-menu-icon { background:var(--accent-soft); color:var(--accent); }
.athlete-account-popover { width:13rem; padding:.5rem; border:1px solid var(--line); }
.athlete-account-popover > button,.athlete-account-popover > details > summary { width:100%; min-height:44px; padding:.55rem .7rem; border-radius:10px; transition:background .18s; }
.athlete-account-popover > button:hover,.athlete-account-popover > details > summary:hover { background:var(--accent-soft); }
.athlete-today-actions { grid-auto-rows:1fr; }
.athlete-today-actions > button { height:100%; background-image:radial-gradient(ellipse at 0% 0%,var(--accent-soft),transparent 75%); transition:transform .18s,box-shadow .18s,border-color .18s; }
.athlete-today-actions > button:hover { transform:translateY(-2px); border-color:var(--accent); box-shadow:0 6px 20px #0003; }
.athlete-today-actions .icon { width:2rem; height:2rem; flex:none; color:var(--accent); }
.workout-month-grid { padding:clamp(.3rem,1vw,.75rem); background:var(--canvas); border:1px solid var(--line); border-radius:16px; grid-auto-rows:auto; }
.workout-month-grid .month-day { align-self:stretch; border:1px solid var(--line); background:var(--raised); transition:border-color .18s,background .18s; }
.workout-month-grid .month-day:hover,.workout-month-grid .month-day:focus-visible { border-color:var(--accent); background:var(--accent-soft); }
.workout-month-grid .month-today { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.month-cell { display:grid; justify-items:center; align-content:start; gap:.12rem; width:100%; }
.month-cell > strong { font-size:clamp(.85rem,2.2vw,1.25rem); }
.month-metrics { display:flex; flex-wrap:nowrap; justify-content:center; align-items:baseline; gap:clamp(1px,.45vw,4px); }
.month-metric { color:var(--accent); font-size:clamp(.52rem,1.9vw,.78rem); white-space:nowrap; line-height:1.15; }
.month-metric.food { color:var(--nutrition-tone); }
@media (prefers-reduced-motion:reduce) { .athlete-today-actions > button,.account-menu-icon,.workout-month-grid .month-day { transition:none; } }

.brand-icon:has(img) { overflow:hidden; background:#030a16; }
.brand-icon img { width:100%; height:100%; object-fit:contain; transform:scale(1.53); }
.athlete-today-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
.athlete-today-actions > button { min-width:0; min-height:76px; }
.workout-month-grid .month-day { min-height:clamp(44px,8vw,58px); padding-inline:0; }
.home-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.45rem; flex:1; }
.home-stat-grid > .stack { min-width:0; gap:.2rem; padding:.55rem .45rem; border:1px solid var(--line); border-radius:11px; background:var(--raised); }
.home-unread > button { width:100%; text-align:start; border-inline-start:3px solid var(--accent); margin-block-start:.45rem; }
.home-unread > button span { overflow-wrap:anywhere; }

.athlete-home-dashboard { width:100%; gap:clamp(.75rem,2.7vw,1.15rem); }
.athlete-home-dashboard > .card { margin:0; background:linear-gradient(145deg,var(--raised),var(--paper) 70%); }
.athlete-home-dashboard > .home-profile-card { padding:0; gap:0; overflow:hidden; }
.home-profile-main { display:grid; grid-template-columns:40% minmax(0,1fr); min-height:clamp(156px,36vw,232px); align-items:stretch; background:linear-gradient(125deg,var(--paper) 58%,var(--accent-soft)); }
.home-profile-photo { position:relative; min-width:0; background:linear-gradient(145deg,var(--accent-soft),var(--paper)); }
.home-profile-photo .avatar { position:absolute; inset:0; width:100%; height:100%; border:0; border-radius:0; background:transparent; font-size:clamp(2rem,10vw,4rem); }
.home-profile-photo .avatar img { width:100%; height:100%; object-fit:cover; object-position:center 32%; }
.home-profile-copy { align-self:center; padding:clamp(.6rem,2.7vw,1.25rem); }
.home-profile-copy h1 { font-size:clamp(1.22rem,4.4vw,2.15rem); line-height:1.3; overflow-wrap:anywhere; }
.home-level { display:flex; align-items:center; gap:.5rem; padding:.45rem .65rem; margin-block-start:.6rem; border:1px solid var(--line); border-radius:12px; background:var(--raised); }
.home-level .stack { gap:.1rem; }
.home-level > .icon,.home-profile-meta .icon { color:var(--accent); }
.home-profile-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.home-profile-meta { border-top:1px solid var(--line); padding:.65rem; }
.home-period-stat { min-width:0; display:grid; justify-items:center; text-align:center; gap:.1rem; }
.home-period-stat + .home-period-stat { border-inline-start:1px solid var(--line); }
.home-profile-meta strong { color:var(--accent); }
.home-period-stat strong { font-size:clamp(.85rem,3vw,1.3rem); }
.athlete-home-dashboard > .athlete-today-actions { width:100%; align-items:stretch; gap:clamp(.45rem,1.7vw,.85rem); }
.athlete-home-dashboard .athlete-today-actions > .home-action { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:.3rem; width:100%; padding:clamp(.55rem,2vw,1rem); border:1px solid var(--line); background:radial-gradient(ellipse at 50% 15%,var(--accent-soft),transparent 78%),var(--paper); }
.athlete-home-dashboard .athlete-today-actions > .home-action:hover { border-color:var(--accent); }
.athlete-home-dashboard .athlete-today-actions > .home-action-featured { border-color:var(--accent); }
.home-action-copy { display:grid; min-width:0; font-size:clamp(.8rem,2.8vw,1.2rem); }
.home-action-copy small { color:var(--muted); font-size:clamp(.65rem,2vw,.85rem); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-action-art { grid-column:1/-1; width:100%; height:clamp(76px,23vw,156px); object-fit:contain; }
.home-action-arrow { color:var(--accent); font-size:.85rem; }
.home-results .home-stat-grid > .stack { text-align:center; border-radius:15px; }
body[data-panel=athlete] .athlete-home-dashboard .home-week-grid { grid-template-columns:repeat(7,minmax(0,1fr)); overflow:visible; padding:0; }
.athlete-home-dashboard .week-day { min-width:0; min-height:62px; border-radius:12px; background:var(--raised); }
.athlete-home-dashboard .week-day[aria-pressed=true] { background:var(--accent-soft); }
.athlete-home-dashboard .home-week-card > p { margin-block:.45rem 0; font-size:.76rem; }

.athlete-home-dashboard .home-week-grid > .week-day { display:grid; justify-items:center; align-content:center; gap:.12rem; padding:.3rem .1rem; width:100%; min-height:54px; }
.home-week-grid .week-day strong { font-size:clamp(.52rem,1.6vw,.76rem); white-space:nowrap; }
.home-week-grid .week-day .icon { width:1.05rem; height:1.05rem; }
.athlete-home-dashboard .home-week-grid .week-day[aria-pressed=true] { background:linear-gradient(160deg,#76fa8e,#24cc68); color:#061d12; border-color:#90ffa2; }

body[data-panel=athlete] {
  --nutrition-tone:#4be5d5;
  --strength-tone:#c39bff;
  --fat-tone:#ffca56;
}
:root[data-theme=light] body[data-panel=athlete] {
  --nutrition-tone:#08786e;
  --strength-tone:#6736ad;
  --fat-tone:#805300;
}
.training-tone { --gauge-tone:var(--accent); }
.nutrition-tone { --gauge-tone:var(--nutrition-tone); }
.strength-tone { --gauge-tone:var(--strength-tone); }
.fat-tone { --gauge-tone:var(--fat-tone); }
.athlete-gauges,.nutrition-macros { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; text-align:center; }
.athlete-gauge,.nutrition-macro { display:grid; justify-items:center; align-content:start; gap:.2rem; min-width:0; }
.athlete-gauge > strong { display:flex; align-items:center; gap:.35rem; }
.athlete-adherence > .muted { display:block; margin-top:.55rem; text-align:center; }
.athlete-gauge-ring,.nutrition-energy-ring,.nutrition-macro-ring { color:var(--gauge-tone); }
.athlete-gauge-ring .ring-fill,.nutrition-energy-ring .ring-fill,.nutrition-macro-ring .ring-fill {
  filter:drop-shadow(0 0 3px color-mix(in srgb,currentColor 38%,transparent));
}
.athlete-gauge-ring { width:clamp(84px,24vw,118px); }
.nutrition-energy-ring { width:clamp(116px,36vw,158px); }
.nutrition-energy-ring .ring-label { font-size:clamp(1.4rem,5vw,2rem); }
.nutrition-macros { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.35rem; }
.nutrition-macro { font-size:clamp(.7rem,2.6vw,.9rem); }
.nutrition-macro-ring { width:clamp(57px,17vw,88px); }
.nutrition-macro-ring .ring-label { font-size:clamp(.78rem,2.9vw,1rem); }
.nutrition-macro .muted { font-size:.75em; }
.athlete-art { display:block; max-width:100%; }
.athlete-meal-art { width:clamp(52px,18vw,110px); aspect-ratio:1.3; object-fit:contain; }
.athlete-meal-card > summary:hover,.athlete-meal-card[open] > summary { color:var(--accent); }
.athlete-meal-card > summary { min-height:44px; }
.athlete-training-hero {
  min-height:clamp(145px,36vw,235px); display:grid; align-content:end; color:white;
  background:linear-gradient(90deg,#10182135,#0b1117e8),url('/assets/training.webp') center 38%/cover;
}
.athlete-training-hero .muted { color:#dce6ef; }
.athlete-training-hero .page-title { margin:0; }
.athlete-training-hero .button.secondary { background:#17232d; color:#fff; border-color:#586878; }
.athlete-food-hero {
  background:linear-gradient(270deg,#0b1117 23%,#0b111744 78%),url('/assets/athlete/lunch.webp') left 47%/auto 155% no-repeat,#0b1117;
}
.nutrition-calendar .month-metrics { flex-wrap:wrap; column-gap:.22rem; row-gap:.05rem; }
.nutrition-calendar .month-day { min-height:54px; }
.workout-calendar .month-metric { font-size:clamp(.52rem,1.8vw,.84rem); }
.workout-calendar .has-workout { border-color:color-mix(in srgb,var(--accent) 45%,var(--line)); }
.workout-calendar .month-day[aria-current=date] { border-color:var(--accent); }
.athlete-chat .chat-composer-actions { justify-content:flex-start; gap:.35rem; }
.athlete-chat .chat-icon-button,.message-sticker-picker > summary {
  width:44px; min-height:44px; padding:0; display:grid; place-items:center; border-radius:50%;
}
.athlete-chat .chat-composer-actions .chat-icon-button { border:1px solid var(--line); color:var(--ink); }
.athlete-chat .chat-composer-actions .chat-icon-button:hover,.message-sticker-picker > summary:hover {
  background:var(--accent-soft); color:var(--accent);
}
.athlete-chat .chat-icon-button .icon,.message-sticker-picker > summary .icon { width:1.18rem; height:1.18rem; }
.message-sticker-picker > summary { list-style:none; border:1px solid var(--line); }
.message-sticker-picker > summary::-webkit-details-marker { display:none; }
.message-sticker-picker[open] > .row { margin-block-start:.35rem; }
.focused-workout { touch-action:pan-y; padding-bottom:5rem; }
.workout-stage-heading { padding:clamp(.65rem,3vw,1rem); border-radius:16px;
  background:linear-gradient(135deg,var(--accent-soft),var(--raised)); border:1px solid var(--line); }
.workout-stage-heading > .icon { color:var(--accent); }
.movement-session-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.movement-session-facts > div { display:flex; gap:.45rem; align-items:flex-start; padding:.65rem;
  border:1px solid var(--line); border-radius:13px; background:var(--raised); min-width:0; }
.movement-session-facts .stack { gap:.15rem; min-width:0; }
.movement-session-facts .icon { color:var(--accent); flex:none; }
.movement-session-guide { display:grid; gap:.6rem; width:100%; padding:.75rem; border:1px solid var(--line);
  border-radius:16px; background:var(--raised); }
.movement-session-guide video { display:block; width:100%; max-width:none; background:#080e13; }
.workout-step-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.workout-step-actions .button { width:100%; min-height:44px; border-color:var(--line); }
.workout-step-actions .row { justify-content:center; }
.workout-exit-bar { position:sticky; bottom:.7rem; display:grid; place-items:center; pointer-events:none; }
.workout-exit-bar .button { pointer-events:auto; display:grid; place-items:center; width:50px; height:50px; padding:0;
  border-radius:50%; border:1px solid var(--line); background:var(--paper); color:var(--ink); box-shadow:0 4px 20px #0005; }
.workout-exit-bar .button:hover { border-color:var(--accent); color:var(--accent); }
.athlete-session-title,.athlete-strength-content,.athlete-chat-header,.athlete-chat .message-feedback-detail { display:flex; align-items:center; gap:.7rem; }
.athlete-session-title > img { width:clamp(58px,20vw,115px); }
.athlete-session-title > .stack { min-width:0; align-items:start; }
.athlete-session-title h3,.athlete-chat-header h2 { overflow-wrap:anywhere; }
.workout-month > summary { display:flex; justify-content:space-between; align-items:center; min-height:44px; margin-bottom:0; list-style:none; }
.workout-month > summary::-webkit-details-marker { display:none; }
.workout-month > summary::after { content:'⌄'; color:var(--muted); font-size:1.2rem; }
.workout-month[open] > summary::after { transform:rotate(180deg); }
.workout-month > .row { justify-content:space-between; }
.workout-month > .row > button { min-width:44px; min-height:44px; }
.workout-month-grid [aria-current=date] { border-color:var(--accent); background:var(--accent-soft); outline:none; }
.workout-month-grid [aria-current=date]:focus-visible { outline:3px solid var(--focus); }
.month-day .month-cell > strong { color:var(--ink); }
.month-day.month-today .month-cell > strong,.month-day[aria-current=date] .month-cell > strong { color:var(--accent); }
.month-legend { display:flex; gap:1rem; justify-content:center; color:var(--muted); font-size:.8rem; }
.month-legend span { display:flex; gap:.35rem; align-items:center; }
.month-legend span::before { content:''; width:.55rem; height:.55rem; border-radius:50%; background:var(--gauge-tone); }
body[data-panel=athlete] .progress-chart .plot-line,body[data-panel=athlete] .progress-chart .plot-point { stroke:var(--strength-tone); }
body[data-panel=athlete] .progress-chart .plot-point { fill:var(--paper); }
.progress-chart .athlete-plot-area { fill:none; }
body[data-panel=athlete] .progress-chart .athlete-plot-area { fill:color-mix(in srgb,var(--strength-tone) 22%,transparent); }
.athlete-strength-content > img { width:clamp(66px,23vw,128px); }
.athlete-strength-records { flex:1; min-width:0; }
.athlete-strength-records .row { justify-content:space-between; gap:.25rem .7rem; border-bottom:1px solid var(--line); padding:.4rem 0; }
.athlete-strength-records strong { color:var(--strength-tone); }
.athlete-chat-header { padding-bottom:.75rem; margin-bottom:.75rem; border-bottom:1px solid var(--line); }
.athlete-chat-header .stack { gap:0; }
.athlete-chat .message-bubble { justify-self:left; max-width:92%; border-top-left-radius:4px; }
.athlete-chat .message-bubble.own { justify-self:right; border-top-left-radius:15px; border-top-right-radius:4px; }
.athlete-chat .message-bubble.feedback { border-inline-start:3px solid var(--nutrition-tone); }
.athlete-chat .message-feedback-detail > img { width:clamp(48px,16vw,78px); }
.athlete-chat .message-feedback-detail > .stack { gap:.25rem; min-width:0; }
.athlete-chat form { margin-top:1rem; }
.athlete-chat form .button { min-height:44px; }
.athlete-chat-composer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:.6rem; }
.athlete-chat-composer textarea { min-width:0; resize:none; min-height:44px; max-height:40vh; overflow-y:auto; }
.message-sticker { font-size:2.4rem; line-height:1.35; }
.message-sticker-picker > summary { display:grid; align-items:center; padding-inline:.7rem; min-height:44px; cursor:pointer; border-radius:10px; }
.message-sticker-picker[open] > summary { margin:0; background:var(--accent-soft); }
.message-sticker-picker[open] { flex-basis:100%; }
.message-sticker-picker > .row { padding:.35rem; border:1px solid var(--line); border-radius:12px; background:var(--paper); gap:.15rem; }
.message-sticker-picker .button { padding:.3rem; min-width:38px; }
.chat-message-media,.message-compose-preview video,.message-compose-preview audio { display:block; max-width:100%; }
.chat-message-media:is(video),.message-compose-preview video { max-height:280px; border-radius:12px; }
.chat-message-media:is(audio) { width:min(250px,58vw); }
.message-compose-preview { display:grid; justify-items:start; gap:.35rem; }
.athlete-chat form > .row { gap:.25rem; }
.athlete-chat form > .row > .button { padding-inline:.45rem; }
.workout-month-heading { display:flex; align-items:center; flex-direction:column; }
.workout-month-heading .button[aria-current=date] { background:var(--accent-soft); }
.home-profile-photo { display:grid; place-items:center; background:radial-gradient(circle at 50% 45%,var(--accent-soft),transparent 75%); padding:.6rem; }
.home-profile-photo .avatar,.athlete-avatar-control .avatar {
  position:relative; inset:auto; width:clamp(78px,25vw,152px); height:auto; aspect-ratio:1; border-radius:50%;
  border:2px solid var(--accent); background:var(--raised);
  box-shadow:0 8px 20px #0005,0 0 0 5px color-mix(in srgb,var(--accent) 18%,transparent);
}
.home-profile-photo .avatar img { object-position:center; }
.home-week-counts { display:grid; gap:.08rem; font-size:clamp(.62rem,2vw,.8rem); line-height:1.15; }
.home-week-counts > span { display:flex; align-items:center; justify-content:center; gap:.14rem; }
.home-week-grid .home-week-counts .icon { width:.72rem; height:.72rem; }
.home-week-grid .home-week-counts > span+span { color:var(--nutrition-tone); }
.home-week-grid [aria-pressed=true] .home-week-counts > span+span { color:#061d12; }
.athlete-edit-profile { display:flex; flex-wrap:wrap; align-items:center; gap:clamp(1rem,4vw,2rem); }
.athlete-edit-profile h2 { font-size:clamp(1.25rem,5vw,2rem); }
.athlete-avatar-control { position:relative; width:fit-content; }
.button.athlete-avatar-edit { display:grid; padding:0; border-radius:50%; background:transparent; }
.button.athlete-avatar-remove { position:absolute; top:-4px; inset-inline-end:-8px; width:44px; height:44px; padding:0;
  border-radius:50%; background:var(--paper); color:var(--danger); border-color:var(--line); font-size:1.4rem; }
.athlete-avatar-dialog { width:min(390px,calc(100% - 24px)); max-height:calc(100dvh - 1.5rem); overflow:auto; text-align:center; }
.athlete-avatar-dialog canvas { display:block; margin:auto; width:min(58vw,230px); height:auto; border-radius:50%;
  border:2px solid var(--accent); touch-action:none; cursor:grab; }
.athlete-avatar-dialog canvas:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.athlete-avatar-dialog canvas:active { cursor:grabbing; }
.athlete-avatar-dialog form > .row { justify-content:center; }
.athlete-account-menu[open] > summary,.athlete-theme-menu[open] > summary { margin-bottom:0; }
.athlete-theme-menu { position:relative; }
.athlete-theme-menu > summary { list-style:none; }
.athlete-theme-menu > summary::-webkit-details-marker { display:none; }
.athlete-theme-menu > summary .row { flex-wrap:nowrap; }
.athlete-theme-menu > summary .row > span:last-child { margin-inline-start:auto; }
.athlete-theme-options { position:absolute; inset-inline-end:calc(100% + .4rem); top:0; width:7rem; gap:.2rem; padding:.3rem; box-shadow:0 8px 20px #0005; }
.athlete-theme-options .button { width:100%; min-height:44px; padding:.3rem; }
.athlete-theme-options .button[aria-pressed=true] { background:var(--accent-soft); }
.athlete-theme-swatch { width:1rem; height:1rem; border-radius:50%; border:1px solid var(--line); flex:none; }
.athlete-theme-swatch.dark { background:linear-gradient(140deg,#151c25 65%,#68ff75 65%); }
.athlete-theme-swatch.light { background:linear-gradient(140deg,#f2f6ef 65%,#326810 65%); }
@media(max-width:350px){
  .athlete-account-popover { width:11rem; }
  .athlete-theme-options { width:6.5rem; }
}
@media (max-width:540px) {
  .home-profile-main { min-height:128px; }
  .home-profile-copy { padding-block:.5rem; }
  .home-level { margin-block-start:.35rem; padding-block:.2rem; }
  .home-profile-meta { padding:.4rem; }
  .home-profile-meta .home-period-stat { grid-template-columns:auto auto; justify-content:center; gap:0 .35rem; }
  .home-profile-meta .home-period-stat > .icon { grid-row:1/3; align-self:center; }
  .home-profile-meta .home-period-stat > .muted { grid-column:2; }
  .athlete-home-dashboard .athlete-adherence { gap:.4rem; }
  .athlete-home-dashboard .athlete-gauge-ring { width:72px; }
  .athlete-home-dashboard > .home-week-card { gap:.45rem; }
}
@media (max-width:370px) {
  .workout-month.card { padding-inline:.5rem; }
  .workout-month-grid { padding:.2rem; gap:2px; }
}
.fitx-banner { display:block; width:clamp(106px,18vw,172px); max-width:100%; height:auto; border-radius:8px; }
.sidebar-collapsed .sidebar-brand .brand { display:none; }
body[data-panel=coach] {
  background:linear-gradient(#0b14203b,#0b142069),url('/assets/coach-waves.webp') center/cover fixed,var(--canvas);
}
:root[data-theme=light] body[data-panel=coach] {
  background:linear-gradient(#f2f6efcc,#f2f6efeb),url('/assets/coach-waves.webp') center/cover fixed,var(--canvas);
}
.chat-message-actions { position:relative; }
.chat-message-actions summary { list-style:none; cursor:pointer; min-width:44px; min-height:44px; display:grid; place-items:center; }
.chat-message-actions summary::-webkit-details-marker { display:none; }
.chat-message-actions[open] > summary { margin:0; }
.chat-message-actions > div { position:absolute; inset-inline-end:0; top:100%; z-index:2; display:grid;
  border:1px solid var(--line); border-radius:12px; background:var(--paper); padding:.2rem; }
.chat-message-actions .button { min-width:76px; }
.chat-message-media:is(img),.message-compose-preview img { max-width:100%; max-height:280px; object-fit:contain; border-radius:12px; }
.chat-composer-actions .chat-icon-button { touch-action:none; }
.message-sticker-picker > .row { max-height:12rem; overflow:auto; }

body[data-panel=coach] {
  background:radial-gradient(ellipse at 12% 2%,#28422c,transparent 42%),
    repeating-linear-gradient(137deg,transparent 0 35px,#94d9660b 36px 37px,transparent 38px 56px),#101914;
}
:root[data-theme=light] body[data-panel=coach] {
  background:radial-gradient(ellipse at 15% 0%,#d6eac7,transparent 45%),
    repeating-linear-gradient(137deg,transparent 0 35px,#48783913 36px 37px,transparent 38px 56px),#f2f6ef;
}
body[data-panel=athlete] {
  background:radial-gradient(ellipse at 85% 2%,#1b3c31,transparent 42%),
    radial-gradient(ellipse at 0 72%,#172a32,transparent 52%),#0c1117;
}
:root[data-theme=light] body[data-panel=athlete] {
  background:radial-gradient(ellipse at 85% 2%,#d7ebd4,transparent 45%),
    radial-gradient(ellipse at 0 72%,#dceee9,transparent 54%),#f5f8f2;
}
.coach-deadlines { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr)); gap:.6rem; }
.button.coach-deadline { display:flex; align-items:center; gap:.8rem; width:100%; min-height:90px; text-align:start;
  color:var(--ink); background:var(--raised); border-color:var(--line); }
.button.coach-deadline.urgent { border-inline-start:3px solid var(--warning); }
.button.coach-deadline:hover,.coach-athlete-row > summary:hover { outline:1px solid var(--accent); }
.coach-deadline .stack { gap:.13rem; }
.coach-deadline-avatar { position:relative; flex:none; margin-inline-end:.4rem; }
.coach-deadline-avatar .avatar { width:54px; height:54px; }
.coach-deadline-counter { position:absolute; inset-inline-end:-11px; bottom:-8px; display:grid; place-content:center;
  justify-items:center; width:34px; aspect-ratio:1; border:2px solid var(--paper); border-radius:50%;
  background:var(--accent); color:var(--accent-ink); line-height:1; font-size:.8rem; }
.coach-deadline-counter.nutrition { background:#158176; color:white; }
.coach-deadline-counter .icon { width:.75rem; height:.75rem; }
.coach-calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:.3rem; margin-block:.7rem; }
.coach-calendar-days .button { width:100%; min-width:0; min-height:56px; padding:.25rem .05rem; }
.coach-calendar-days .stack { gap:.1rem; }
.coach-calendar-days .stack > span { font-size:clamp(.54rem,1.4vw,.75rem); }
.coach-calendar-days .button[aria-pressed=true] { border-color:var(--accent); }
.coach-calendar-events { display:flex; flex-wrap:wrap; gap:.25rem; }
.coach-athlete-row { border:1px solid var(--line); border-radius:13px; margin-block:.35rem; }
.coach-athlete-row > summary { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center;
  gap:.6rem; padding:.6rem; cursor:pointer; min-height:54px; list-style:none; border-radius:inherit; }
.coach-athlete-row > summary::-webkit-details-marker { display:none; }
.coach-athlete-row > summary .stack { gap:.05rem; }
.coach-row-percent { display:flex; align-items:center; gap:.3rem; color:var(--accent); }
.coach-athlete-row[open] .coach-row-chevron { transform:rotate(180deg); }
.coach-athlete-summary { padding:.7rem; display:grid; gap:.65rem; border-top:1px solid var(--line); }
.coach-athlete-summary .ring { width:76px; }
.coach-athlete-summary .stack { gap:.15rem; }
.coach-athlete-trend { display:flex; gap:.18rem; align-items:center; }
.coach-athlete-trend meter { flex:1; width:0; height:.7rem; accent-color:var(--accent); }
.button.dialog-close-icon { display:grid; place-items:center; padding:0; inline-size:44px; block-size:44px;
  border-radius:50%; background:var(--raised); border:1px solid var(--line); color:var(--ink); }
.button.dialog-close-icon:hover { border-color:var(--accent); color:var(--accent); }
.message-bubble.own:has(.chat-message-actions) { cursor:pointer; }
.message-bubble.own:has(.chat-message-actions[open]) { border-color:var(--accent); }
.chat-message-actions > div { position:static; display:flex; flex-wrap:wrap; }
.coach-dual-deadline { display:grid; justify-items:center; gap:.45rem; padding:.7rem; background:var(--raised);
  border:1px solid var(--line); border-radius:14px; }
.coach-dual-deadline .row { justify-content:center; flex-wrap:nowrap; gap:.6rem; }
.coach-dual-deadline .avatar,.coach-profile-heading .avatar { width:54px; height:54px; }
.button.coach-deadline-counter { position:static; width:45px; min-height:45px; padding:0; border-radius:50%;
  display:grid; place-content:center; justify-items:center; color:var(--accent-ink); }
.button.coach-deadline-counter.nutrition { color:white; }
.coach-calendar-days .stack span { display:flex; justify-content:center; align-items:center; gap:.2rem; }
.coach-calendar-days .stack .icon { width:.73rem; height:.73rem; }
.coach-week-rail { display:flex; overflow-x:auto; gap:.6rem; padding:.25rem; scrollbar-width:thin; cursor:grab; }
.coach-week-rail > .button { flex:0 0 min(360px,90%); display:grid; gap:.45rem; text-align:start; user-select:none; }
.coach-week-rail > [aria-pressed=true] { border-color:var(--accent); }
.coach-week-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.2rem; text-align:center; }
.coach-week-stats strong { grid-column:1/-1; text-align:start; }
.coach-week-stats span { display:grid; justify-items:center; font-size:.64rem; }
.coach-week-stats b { display:grid; place-items:center; width:28px; height:28px; border-radius:50%;
  background:var(--paper); border:1px solid var(--line); font-size:.84rem; }
.wizard-review-move { display:grid; gap:.5rem; }
.wizard-review-move > .row { flex-wrap:wrap; }
.wizard-review-move .button { min-height:44px; }
.wizard-session-title { display:flex; justify-content:space-between; align-items:start; gap:.5rem; }
.button.wizard-drag-handle { cursor:grab; touch-action:none; }
.wizard-preview-heading { display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
.wizard-preview-heading > .row { min-width:0; }
.wizard-preview-heading .button { flex:none; }
.chat-attachment-dialog { width:min(100% - 1.5rem,520px); max-height:90dvh; overflow:auto; }
.chat-attachment-dialog > :is(img,video) { width:100%; max-height:54dvh; object-fit:contain; border-radius:12px; background:var(--canvas); }
.chat-attachment-dialog textarea { resize:vertical; }
.work-calendar {
  --calendar-ink:var(--ink); --calendar-accent:var(--accent); --calendar-edge:var(--line);
  --calendar-panel:var(--paper); --calendar-control:var(--raised); --calendar-active:var(--accent-soft);
  color:var(--calendar-ink); border-color:var(--calendar-edge); border-radius:25px;
  background:radial-gradient(ellipse at 25% 0,var(--accent-soft),transparent 60%),var(--paper);
}
.work-calendar :is(.section-head,.work-calendar-location) .icon { color:var(--calendar-accent); }
.work-calendar .section-head h2 { font-size:clamp(1.12rem,3vw,1.65rem); }
.work-calendar :is(.work-calendar-filters,.work-calendar-deadlines,.work-calendar-pager,.work-calendar-details) {
  background:var(--calendar-panel); border:1px solid var(--calendar-edge); border-radius:16px; padding:clamp(.45rem,1.5vw,.85rem);
}
.work-calendar-filters,.work-calendar-deadline { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem; align-items:center; }
.work-calendar-filters .field { min-width:0; }
.work-calendar-filters select { width:100%; min-height:44px; color:var(--calendar-ink); background:var(--calendar-control); border-color:var(--calendar-edge); }
.work-calendar-deadline + .work-calendar-deadline,.work-calendar-athlete + .work-calendar-athlete { border-top:1px solid var(--calendar-edge); }
.work-calendar-deadline { padding:.4rem 0; }
.work-calendar .button { color:var(--calendar-ink); min-height:44px; }
.work-calendar .work-calendar-pill { width:100%; background:var(--calendar-control); border:1px solid var(--calendar-edge); }
.work-calendar-pill .row { flex-wrap:wrap; justify-content:center; gap:.25rem; }
.work-calendar-pill .icon { color:var(--calendar-accent); }
.work-calendar-pager { min-width:0; }
.work-calendar-days { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - .7rem)/3);
  gap:.35rem; overflow-x:auto; scrollbar-width:thin; padding:.2rem; user-select:none; cursor:grab; }
.work-calendar-days:active { cursor:grabbing; }
.work-calendar-days .button { cursor:inherit; }
.work-calendar-dialog { width:min(100% - 1.5rem,520px); max-height:85dvh; overflow:auto; }
.work-calendar-days .button { width:100%; min-width:0; min-height:86px; padding:.3rem; background:var(--calendar-control); border-color:var(--calendar-edge); }
.work-calendar-days .stack { gap:.18rem; }
.work-calendar-days .button[aria-pressed=true] { background:var(--calendar-active); border-color:var(--calendar-accent); }
.work-calendar-count,.work-calendar-location { display:inline-flex; align-items:center; justify-content:center; gap:.25rem;
  border-radius:10px; padding:.15rem .4rem; background:var(--calendar-active); font-size:.75rem; }
.work-calendar-count .icon { width:14px; height:14px; }
.work-calendar-details { display:grid; gap:.35rem; }
.work-calendar .work-calendar-athlete { display:flex; justify-content:space-between; align-items:center; gap:.5rem; width:100%; padding:.4rem; }
.work-calendar-athlete:hover,.work-calendar-pill:hover { background:var(--calendar-active); }
.work-calendar-location.home { background:var(--calendar-control); }
@media(max-width:560px){
  .work-calendar-deadline > .row { grid-column:1/-1; }
  .work-calendar-deadline { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .work-calendar-filters { grid-template-columns:repeat(auto-fit,minmax(86px,1fr)); }
  .work-calendar-days .button { font-size:.7rem; }
  .work-calendar-count { font-size:.64rem; padding:.1rem; }
  .work-calendar-count .icon { display:none; }
}
.coach-week-rail > .button {
  --week-glow:#43edda; --week-ink:#effffe; --week-band:#0b303d; --week-track:#255563;
  flex-basis:min(430px,96%); color:var(--week-ink); padding:.8rem; border-radius:20px;
  border:1px solid #297b7e; background:radial-gradient(ellipse at 0 0,#095052,transparent 45%),#071c28;
}
:root[data-theme=light] .coach-week-rail > .button {
  --week-glow:#087d71; --week-ink:#133c42; --week-band:#e2f4f1; --week-track:#b4d8d5;
  border-color:#79b6b2; background:radial-gradient(ellipse at 0 0,#bce8e0,transparent 50%),#f5fcfa;
}
.coach-week-rail > .button:is(:hover,[aria-pressed=true]) { border-color:var(--week-glow); box-shadow:inset 0 0 10px #25bea333; }
.coach-week-rail .muted { color:var(--week-ink); opacity:.82; }
.coach-week-title { display:flex; align-items:center; gap:.5rem; font-size:1.2rem; }
.coach-week-title .icon,.coach-week-total .icon { color:var(--week-glow); }
.coach-week-band { display:grid; grid-template-columns:minmax(65px,1fr) minmax(0,2fr); align-items:center; gap:.35rem;
  background:var(--week-band); border:1px solid var(--week-track); border-radius:13px; padding:.5rem; }
.coach-week-total { display:grid; justify-items:center; text-align:center; font-size:.72rem; border-inline-end:1px solid var(--week-track); }
.coach-week-total strong { font-size:1.35rem; }
.coach-week-rings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.15rem; }
.coach-week-ring { display:grid; justify-items:center; gap:.15rem; text-align:center; font-size:.58rem; }
.coach-week-ring .ring { width:min(100%,54px); color:var(--week-glow); }
.coach-week-ring.partial .ring { color:#42a8a7; }
.coach-week-ring.skipped .ring { color:var(--week-ink); }
.coach-week-ring .ring-track { stroke:var(--week-track); }
.coach-week-ring .ring-label { color:var(--week-ink); font-size:clamp(.64rem,2vw,.83rem); }
.coach-week-band > small { grid-column:1/-1; text-align:center; opacity:.88; }
.coach-directory-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:1rem; align-items:start; }
.coach-directory-preview { position:sticky; top:1rem; background:linear-gradient(145deg,var(--accent-soft),var(--paper) 65%); }
.coach-directory-preview .avatar { width:56px; height:56px; }
.coach-directory-preview p { white-space:pre-wrap; }
.coach-directory-options { min-width:0; margin:0; padding:.55rem; border:1px solid var(--line); border-radius:12px; }
.coach-directory-options .check-row { min-height:44px; }
@media(max-width:760px){
  .coach-directory-layout { grid-template-columns:minmax(0,1fr); }
  .coach-directory-preview { position:static; }
}
.directory-preview-page { background:#f6f7f8; color:#191d21; padding:clamp(.65rem,3vw,2rem); }
.directory-preview-page main { width:min(100%,760px); margin:auto; }
.directory-card { --ink:#191d21; --muted:#555e64; --paper:#fff; --raised:#f3f4f4; --line:#dfe3e6; --accent:#087c68; --accent-soft:#e8f4f0; display:grid; gap:.9rem; color:var(--ink); background:#fff; border:1px solid #e5e7e9; border-radius:22px; padding:clamp(.8rem,3vw,1.4rem); overflow-wrap:anywhere; }
.directory-identity { display:flex; gap:.85rem; align-items:center; }
.directory-identity .avatar { width:clamp(64px,16vw,110px); height:clamp(64px,16vw,110px); border-radius:17px; }
.directory-identity .stack,.directory-stats .stack { gap:.1rem; }
.directory-identity :is(h1,h2) { font-size:clamp(1.45rem,5vw,2.15rem); }
.directory-stats .stack,.directory-contact { background:#f3f4f4; border-radius:11px; padding:.4rem .65rem; }
.directory-identity-meta,.directory-rating { display:flex; flex-wrap:wrap; align-items:center; gap:.2rem .55rem; font-size:.75rem; color:#555e64; }
.directory-identity-meta > span { display:inline-flex; align-items:center; gap:.22rem; }
.directory-identity-meta .icon,.directory-rating .icon { width:.88rem; height:.88rem; flex:none; }
.directory-verification { color:#555e64; }
.directory-verification.is-approved { color:#08704c; }
.directory-rating .icon { color:#9c6a13; }
.directory-stats,.directory-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4rem; text-align:center; }
.directory-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
.directory-actions .button,.directory-contact .button { width:100%; border-radius:999px; }
.directory-primary { background:#191d21; color:#fff; }
.directory-tabs { border-top:1px solid #eceeef; padding-top:.6rem; }
.directory-tabs [aria-pressed=true] { background:#eceeef; }
.directory-service { border-bottom:1px solid #eceeef; padding-block:.55rem; }
.directory-contact { display:grid; gap:.35rem; padding:.7rem; }
.directory-preview-link { display:inline-flex; align-items:center; text-decoration:none; }
