:root{
  color-scheme:dark;
  --rc-bg:#111411;
  --rc-surface:#181c18;
  --rc-surface-subtle:#202520;
  --rc-surface-strong:#272d27;
  --rc-text:#f2f0e9;
  --rc-text-muted:#a7aea5;
  --rc-border:rgba(237,239,232,.12);
  --rc-primary:#ef6840;
  --rc-primary-soft:rgba(239,104,64,.09);
  --rc-warning:#d79a55;
  --rc-warning-soft:rgba(215,154,85,.1);
  --rc-danger:#dd6b5f;
  --rc-danger-soft:rgba(221,107,95,.1);
  --rc-info:#7897aa;
  --rc-on-primary:#18100d;
  --rc-shadow:0 22px 60px rgba(0,0,0,.24);
  --rc-radius-sm:9px;
  --rc-radius-md:13px;
  --rc-radius-lg:17px;
  --rc-radius-section:24px;
  --rc-radius-control:10px;
  --rc-space-xs:.375rem;
  --rc-space-sm:.625rem;
  --rc-space-md:1rem;
  --rc-space-lg:1.5rem;
  --rc-space-xl:2.25rem;
  --rc-space-2xl:3rem;
  --rc-focus:#d38a25;
  --rc-positive:#74b98b;
  --rc-negative:#dd6b5f;
  --rc-chart-mint:#53977b;
  --rc-chart-teal:#408580;
  --rc-chart-amber:#ef6840;
  --rc-chart-coral:#e84c33;
  --rc-chart-lavender:#887c94;
  --rc-chart-training:var(--rc-chart-mint);
  --rc-chart-stress:var(--rc-chart-lavender);
  --rc-chart-hrv:#8b75a8;
  --rc-chart-sleep:var(--rc-chart-amber);
  --rc-chart-warning:var(--rc-chart-coral);
  --rc-chart-race:var(--rc-chart-coral);
  --rc-chart-fitness:#74b98b;
  --rc-motion-fast:140ms;
  --rc-motion-standard:230ms;
  --rc-motion-slow:380ms;
  --rc-motion-reveal:400ms;
  --rc-motion-data:760ms;
  --rc-motion-stagger:70ms;
  --rc-ease:cubic-bezier(.2,.8,.2,1);
  --rc-container:1180px;
  --rc-gutter:18px;
  --surface-page:var(--rc-bg);
  --surface-section:var(--rc-surface);
  --surface-section-base:var(--rc-surface);
  --surface-section-highlight:var(--rc-primary);
  --surface-section-gradient:
    radial-gradient(ellipse at 12% 0,color-mix(in srgb,var(--surface-section-highlight) 8%,transparent),transparent 44%),
    linear-gradient(145deg,var(--surface-section-base),color-mix(in srgb,var(--surface-section-base) 94%,var(--rc-primary-soft)));
  --surface-raised:color-mix(in srgb,var(--rc-surface) 92%,var(--rc-primary-soft));
  --surface-subtle:var(--rc-surface-subtle);
  --surface-interactive:color-mix(in srgb,var(--rc-primary-soft) 52%,var(--rc-surface));
  --border-subtle:color-mix(in srgb,var(--rc-border) 62%,transparent);
  --border-strong:color-mix(in srgb,var(--rc-primary) 52%,var(--rc-border));
  --border-accent:var(--rc-primary);
  --divider:color-mix(in srgb,var(--rc-border) 58%,transparent);
  --radius-small:var(--rc-radius-sm);
  --radius-control:var(--rc-radius-control);
  --radius-card:15px;
  --radius-section:var(--rc-radius-section);
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-8:32px;
  --space-10:40px;
  --space-12:48px;
  --space-16:64px;
  --paper:var(--rc-bg);
  --cream:var(--rc-bg);
  --card:var(--rc-surface);
  --ink:var(--rc-text);
  --muted:var(--rc-text-muted);
  --line:var(--rc-border);
  --green:var(--rc-primary);
  --g:var(--rc-primary);
  --green-soft:var(--rc-primary-soft);
  --soft:var(--rc-primary-soft);
  --sage:var(--rc-primary-soft);
  --shadow:var(--rc-shadow);
  --blue:#7897aa;
  --gold:#ef6840;
  --red:#dd6b5f;
  --violet:#887c94;
  --night:#887c94;
  --easy:#53977b;
  --recovery:#408580;
  --quality:#ef6840;
  --interval:#e84c33;
  --long:#467093;
  --race:#f54c2d;
  --rest:#408580;
  --work:#887c94;
  --provisional:#c0b579;
  --strides:#ac8ad1;
  --strength:#849bc6;
  --unknown:#9ca49f;
  --core:#78b4ba;
  --cal:#aa8bd1;
  --calx:#c986df;
}

html[data-theme="dark"]{
  color-scheme:dark;
  --rc-bg:#111411;
  --rc-surface:#181c18;
  --rc-surface-subtle:#202520;
  --rc-surface-strong:#272d27;
  --rc-text:#f2f0e9;
  --rc-text-muted:#a7aea5;
  --rc-border:rgba(237,239,232,.12);
  --rc-primary:#ef6840;
  --rc-primary-soft:rgba(239,104,64,.09);
  --rc-warning:#d79a55;
  --rc-warning-soft:rgba(215,154,85,.1);
  --rc-danger:#dd6b5f;
  --rc-danger-soft:rgba(221,107,95,.1);
  --rc-info:#7897aa;
  --rc-positive:#74b98b;
  --rc-negative:#dd6b5f;
  --rc-on-primary:#18100d;
  --rc-shadow:0 22px 60px rgba(0,0,0,.24);
  --blue:#7897aa;
  --gold:#ef6840;
  --red:#dd6b5f;
  --violet:#887c94;
  --night:#887c94;
  --easy:#53977b;
  --recovery:#408580;
  --quality:#ef6840;
  --interval:#e84c33;
  --long:#467093;
  --race:#f54c2d;
  --rest:#408580;
  --work:#887c94;
  --provisional:#c0b579;
  --strides:#ac8ad1;
  --strength:#849bc6;
  --unknown:#9ca49f;
  --core:#78b4ba;
  --cal:#aa8bd1;
  --calx:#c986df;
  --rc-chart-fitness:#74b98b;
}

*{box-sizing:border-box}
html{background:var(--rc-bg);accent-color:var(--rc-primary)}
body{
  margin:0;
  max-width:none;
  overflow-x:hidden;
  background:var(--rc-bg);
  color:var(--rc-text);
  font:15px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;
}
img,svg,canvas,video{max-width:100%}
.mobile-bottom-nav{display:none}
.connection-status{position:fixed;z-index:100;left:50%;bottom:18px;transform:translateX(-50%);max-width:calc(100% - 24px);padding:9px 14px;border-radius:999px;background:var(--rc-warning);color:#fff;font-size:.78rem;font-weight:800;box-shadow:var(--rc-shadow)}
body,button,input,select,textarea{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
main,section,article,div,li,dd,dt,form,fieldset{min-width:0}
h1,h2,h3,h4,p,li,dd,dt,strong,a,button,summary{overflow-wrap:anywhere}
.page-container{
  width:min(calc(100% - (2 * var(--rc-gutter))),var(--rc-container));
  max-width:var(--rc-container);
  margin-inline:auto;
  padding-inline:0;
}
main.page-container{
  margin:0 auto 70px;
  padding:18px 0 0;
}

/* One application header and navigation shell. */
.app-header{
  position:static;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  background:var(--rc-bg);
  color:var(--rc-text);
}
.app-header__inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:var(--rc-space-lg);
  min-height:160px;
  padding-block:24px 22px;
}
.app-header__copy{min-width:0}
.app-header .eyebrow{
  display:block;
  margin:0;
  color:var(--rc-primary);
  font-size:.68rem;
  font-weight:850;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.app-header h1{
  margin:.18em 0 0;
  color:var(--rc-text);
  font-size:clamp(2.5rem,5vw,4.15rem);
  font-weight:800;
  letter-spacing:-.055em;
  line-height:.92;
}
.app-header__meta{
  max-width:760px;
  margin:8px 0 0;
  color:var(--rc-text-muted);
  font-size:.82rem;
  line-height:1.35;
}
.app-header__action{
  flex:0 0 auto;
  margin-bottom:4px;
  color:var(--rc-primary);
  font-size:.78rem;
  font-weight:800;
  text-decoration:none;
}
.app-nav{
  position:sticky;
  top:0;
  z-index:30;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  overflow-x:auto;
  border-block:1px solid var(--rc-border);
  background:color-mix(in srgb,var(--rc-bg) 94%,transparent);
  backdrop-filter:blur(10px);
  scrollbar-width:none;
}
.app-nav::-webkit-scrollbar{display:none}
.app-nav .nav-shell{
  display:flex;
  align-items:center;
  gap:var(--rc-space-xs);
  min-height:56px;
  padding-block:8px;
  overflow:visible;
}
.app-nav__primary,.app-nav__secondary{
  display:flex;
  align-items:center;
  gap:var(--rc-space-xs);
  flex:0 0 auto;
}
.app-nav__secondary{margin-left:auto}
a.app-nav__link{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid transparent;
  border-radius:999px;
  background:transparent;
  color:var(--rc-text);
  font-size:.82rem;
  font-weight:760;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}
a.app-nav__link:hover{background:var(--rc-primary-soft);color:var(--rc-primary)}
a.app-nav__link.active{
  border-color:var(--rc-primary);
  background:var(--rc-primary);
  color:var(--rc-on-primary);
}
a.app-nav__link--secondary{
  color:var(--rc-text-muted);
  font-size:.78rem;
  font-weight:700;
}
a.app-nav__link--secondary.active{
  border-color:color-mix(in srgb,var(--rc-primary) 48%,var(--rc-border));
  background:var(--rc-primary-soft);
  color:var(--rc-primary);
}
.month-review-banner{
  margin-top:10px;
  padding:12px 16px;
  border-left:5px solid var(--gold);
  border-radius:var(--rc-radius-sm);
  background:var(--rc-warning-soft);
  color:var(--rc-text);
}
.month-review-banner a{color:var(--rc-primary);font-weight:850}

/* Shared typography and surface components. */
main h1{font-size:clamp(1.9rem,4vw,2.8rem);line-height:1.08;letter-spacing:-.035em}
main h2{font-size:clamp(1.3rem,2.3vw,1.75rem);line-height:1.15;letter-spacing:-.018em}
main h3{font-size:1rem;line-height:1.25}
.eyebrow{
  display:block;
  color:var(--rc-primary);
  font-size:.68rem;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.muted,.section-subtitle,.metadata{color:var(--rc-text-muted)}
.page-context-note{
  max-width:780px;
  margin:0 0 var(--rc-space-lg);
  color:var(--rc-text-muted);
  font-size:.82rem;
}
.preview-banner{
  padding:6px 12px;
  background:var(--rc-primary);
  color:var(--rc-on-primary);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.04em;
  text-align:center;
}
.app-page-actions{justify-content:flex-end;margin:0 0 var(--rc-space-md)}
.goal-review-form-card{max-width:900px;margin-inline:auto}
.grid-spaced{margin-top:var(--rc-space-lg)}
.proposal-roadmap-title{margin-top:var(--rc-space-md)}
.modal-close{float:right}
.card,.hero,.today,.checkin,.status-card,.chart-card,.notice,.issues,.overall,.month-review-entry{
  border:1px solid var(--rc-border);
  border-radius:var(--rc-radius-lg);
  background:var(--rc-surface);
  box-shadow:var(--rc-shadow);
}
.card,.hero,.today,.checkin,.chart-card,.status-card,.notice,.issues,.overall{padding:20px}
.card,.hero,.today,.checkin,.chart-card,.notice{margin-bottom:14px}
.card>:first-child,.hero>:first-child,.chart-card>:first-child{margin-top:0}
.card>:last-child,.hero>:last-child,.chart-card>:last-child{margin-bottom:0}
.stat,.metric,.week-figure,.summary-item,.fact,.scope,.mini-day,.day-detail-item,.roadmap article,.session{
  border:1px solid var(--rc-border);
  border-radius:var(--rc-radius-md);
  background:var(--rc-surface-subtle);
  box-shadow:none;
}
.callout,.action-card,.notice{border-radius:var(--rc-radius-md)}

/* Canonical editorial performance-lab primitives. */
.rc-section{
  position:relative;
  min-width:0;
  padding:clamp(var(--space-5),3vw,34px);
  overflow:hidden;
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-section);
  background:var(--surface-section-gradient);
  box-shadow:0 20px 52px color-mix(in srgb,#000 10%,transparent);
}
.rc-section::before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,var(--border-accent),color-mix(in srgb,var(--border-accent) 14%,transparent) 65%,transparent);pointer-events:none}
.rc-section>*{position:relative;min-width:0}
.rc-section-header{display:flex;align-items:center;justify-content:space-between;gap:var(--space-5);margin:0 0 var(--space-5)}
.rc-section-header>div:first-child{display:flex;align-items:center;gap:11px;min-width:0}
.rc-section-number,.section-number{
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  min-width:30px;
  min-height:25px;
  padding:4px 8px;
  border:0;
  border-radius:999px;
  background:color-mix(in srgb,var(--rc-primary) 13%,transparent);
  color:var(--rc-primary);
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1;
  text-transform:uppercase;
}
.rc-section-title{margin:0;font-size:clamp(1.65rem,3vw,2.15rem);font-weight:800;letter-spacing:-.035em;line-height:1.05}
.rc-section-subtitle{margin:3px 0 0;color:var(--rc-text-muted);font-size:.82rem;line-height:1.4}
.rc-module-eyebrow{display:block;margin:0 0 4px;color:var(--rc-primary);font-size:9px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
.rc-module-title{margin:0;font-size:clamp(1.02rem,2vw,1.35rem);letter-spacing:-.015em;line-height:1.2}
.rc-module-subtitle{margin:4px 0 0;color:var(--rc-text-muted);font-size:.73rem;line-height:1.45}
.rc-metric-strip{display:grid;grid-template-columns:repeat(var(--metric-columns,4),minmax(0,1fr));gap:0;overflow:hidden;border:1px solid var(--border-subtle);border-radius:var(--radius-card);background:color-mix(in srgb,var(--surface-section) 64%,transparent)}
.rc-metric{position:relative;min-width:0;padding:var(--space-4) 18px;border:0;background:transparent;box-shadow:none}
.rc-metric+.rc-metric::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:1px;background:var(--divider)}
.rc-metric-label{display:block;color:var(--rc-text-muted);font-size:9px;font-weight:850;letter-spacing:.085em;text-transform:uppercase}
.rc-metric-value{display:block;margin-top:7px;color:var(--rc-text);font-size:clamp(1.15rem,2vw,1.55rem);font-weight:850;line-height:1.12;overflow-wrap:anywhere}
.rc-metric:first-child .rc-metric-value,.rc-metric-value--accent{color:var(--rc-primary)}
.rc-metric-context{display:block;margin-top:5px;color:var(--rc-text-muted);font-size:10px;line-height:1.35}
.rc-analytical-surface{min-width:0;padding:clamp(17px,2.4vw,25px);overflow:hidden;border:1px solid var(--border-subtle);border-radius:18px;background:color-mix(in srgb,var(--surface-raised) 76%,transparent)}
.rc-support-grid{display:grid;grid-template-columns:repeat(var(--support-columns,3),minmax(0,1fr));gap:var(--space-3)}
.rc-support-panel{min-width:0;padding:var(--space-4);border:1px solid var(--border-subtle);border-radius:var(--radius-card);background:color-mix(in srgb,var(--surface-subtle) 69%,transparent);box-shadow:none}
.rc-action-panel{
  display:flex;
  min-width:0;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-3);
  padding:var(--space-4);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-card);
  background:var(--surface-subtle);
}
.rc-action-panel__copy{min-width:0}
.rc-action-panel__copy h3{margin:3px 0;font-size:1rem;letter-spacing:-.01em}
.rc-action-panel__copy p{margin:0;color:var(--rc-text-muted);font-size:.75rem;line-height:1.35}
.rc-structured-rows>*{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px var(--space-3);align-items:baseline;padding:9px 0;border-top:1px solid var(--divider)}
.rc-structured-rows>*:first-child{padding-top:0;border-top:0}
.rc-control-group{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap}
.rc-control-pill{min-height:36px;padding:7px 12px;border:1px solid var(--border-subtle);border-radius:999px;background:var(--surface-interactive);color:var(--rc-text);font-size:.72rem;font-weight:800}
.rc-control-pill[aria-pressed="true"],.rc-control-pill.active{border-color:var(--rc-primary);background:var(--rc-primary);color:var(--rc-on-primary)}
.rc-state{padding:12px 14px;border:1px solid var(--border-subtle);border-radius:var(--radius-control);background:var(--surface-subtle);color:var(--rc-text-muted);font-size:.78rem}
.rc-state--success{border-color:color-mix(in srgb,var(--rc-positive) 42%,var(--rc-border));background:color-mix(in srgb,var(--rc-primary-soft) 70%,var(--surface-section));color:var(--rc-positive)}
.rc-state--error{border-color:color-mix(in srgb,var(--rc-danger) 45%,var(--rc-border));background:var(--rc-danger-soft);color:var(--rc-negative)}
.rc-interactive{transition:background-color var(--rc-motion-fast) var(--rc-ease),border-color var(--rc-motion-fast) var(--rc-ease),color var(--rc-motion-fast) var(--rc-ease),transform var(--rc-motion-fast) var(--rc-ease)}
.rc-interactive:hover{border-color:var(--border-strong);background:var(--surface-interactive)}
.rc-interactive:active{transform:scale(.99)}

/* Shared controls. Page-specific layout may change placement, not control language. */
button,.button,.link,.button-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 13px;
  border:1px solid var(--rc-primary);
  border-radius:var(--rc-radius-sm);
  background:var(--rc-primary);
  color:var(--rc-on-primary);
  font:inherit;
  font-weight:800;
  line-height:1.15;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  transition:background-color var(--rc-motion-fast) var(--rc-ease),border-color var(--rc-motion-fast) var(--rc-ease),color var(--rc-motion-fast) var(--rc-ease),transform var(--rc-motion-fast) var(--rc-ease),opacity var(--rc-motion-fast) var(--rc-ease);
}
button:not(:disabled):active,.button:active,.button-link:active{transform:translateY(1px) scale(.99)}
button.secondary,.button.secondary,.button-link.secondary{
  border-color:var(--rc-border);
  background:var(--rc-primary-soft);
  color:var(--rc-primary);
}
button.danger,.button.danger,.delete{
  border-color:var(--rc-danger);
  background:var(--rc-danger);
  color:#fff;
}
button:disabled{cursor:not-allowed;opacity:.58}

/* Reusable structural loading and indeterminate AI processing primitives. */
.loading-skeleton{position:relative;overflow:hidden;background:var(--rc-surface-subtle);color:transparent}
.loading-skeleton:after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--rc-surface) 76%,transparent),transparent);animation:rc-shimmer 1.35s infinite var(--rc-ease)}
.skeleton-line{display:block;height:.72rem;border-radius:999px}.skeleton-line--short{width:42%}.skeleton-metric{height:2rem;width:68%;border-radius:var(--rc-radius-sm)}
.ai-processing{display:inline-flex;align-items:center;gap:10px;min-height:40px;color:var(--rc-primary);font-size:.78rem;font-weight:800}
.ai-pulse{position:relative;display:inline-block;width:74px;height:12px;flex:0 0 auto}
.ai-pulse:before{content:"";position:absolute;left:0;right:0;top:5px;height:1px;background:color-mix(in srgb,var(--rc-primary) 42%,var(--rc-border))}
.ai-pulse:after{content:"";position:absolute;top:2px;left:0;width:7px;height:7px;border-radius:50%;background:var(--rc-primary);box-shadow:0 0 0 4px color-mix(in srgb,var(--rc-primary) 14%,transparent);animation:rc-running-pulse 1.45s infinite var(--rc-ease)}
.inline-operation{display:flex;align-items:center;gap:10px;min-height:42px;margin-top:12px;color:var(--rc-text-muted);font-size:.78rem}.inline-operation.is-success{color:var(--rc-positive)}.inline-operation.is-error{color:var(--rc-negative)}.inline-operation[hidden]{display:none}
@keyframes rc-running-pulse{0%{transform:translateX(0);opacity:.55}50%{opacity:1}100%{transform:translateX(67px);opacity:.55}}
@keyframes rc-shimmer{100%{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.ai-pulse:after{left:34px;transform:none;animation:none}.loading-skeleton:after{display:none}}
button:focus-visible,.button:focus-visible,.link:focus-visible,.button-link:focus-visible,
a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:3px solid color-mix(in srgb,var(--rc-focus) 72%,transparent);
  outline-offset:2px;
}
input,select,textarea{
  width:100%;
  max-width:100%;
  min-height:40px;
  padding:9px 10px;
  border:1px solid var(--rc-border);
  border-radius:var(--rc-radius-sm);
  background:var(--rc-surface);
  color:var(--rc-text);
  font:inherit;
}
textarea{resize:vertical}
::placeholder{color:color-mix(in srgb,var(--rc-text-muted) 78%,transparent)}

.badge,.status,.plain-status,.cal-badge,.cal-status,.chip,.pill,.assessment,.priority-badge,.status-badge,.cal-outcome-badge{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  min-height:22px;
  padding:3px 8px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:850;
  line-height:1.2;
  white-space:normal;
  overflow-wrap:anywhere;
}

/* Shared progressive disclosure and information controls. */
details.disclosure{
  margin:var(--rc-space-sm) 0 0;
  border:1px solid var(--rc-border);
  border-radius:var(--rc-radius-sm);
  background:var(--rc-surface-subtle);
}
details.disclosure>summary{
  display:flex;
  align-items:center;
  min-height:38px;
  padding:8px 11px;
  color:var(--rc-primary);
  font-size:.78rem;
  font-weight:850;
  cursor:pointer;
  list-style:none;
}
details.disclosure>summary::-webkit-details-marker{display:none}
details.disclosure>summary:after{content:"›";margin-left:auto;transform:rotate(90deg);font-size:1.1em}
details.disclosure[open]>summary:after{transform:rotate(-90deg)}
details.disclosure>.disclosure-body{padding:0 11px 11px;color:var(--rc-text-muted);font-size:.78rem}
details.info-disclosure{position:relative;display:inline-block;margin-left:5px}
details.info-disclosure>summary{
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  border:1px solid var(--rc-border);
  border-radius:50%;
  background:var(--rc-surface);
  color:var(--rc-primary);
  font-size:0;
  font-weight:900;
  cursor:pointer;
  list-style:none;
}
details.info-disclosure>summary:after{content:"i";font-size:11px}
details.info-disclosure>summary::-webkit-details-marker{display:none}
.info-popover{
  position:absolute;
  z-index:40;
  top:calc(100% + 7px);
  left:0;
  width:min(320px,calc(100vw - 28px));
  padding:11px 12px;
  border:1px solid var(--rc-border);
  border-radius:var(--rc-radius-md);
  background:var(--rc-surface);
  box-shadow:0 14px 38px rgba(0,0,0,.2);
  color:var(--rc-text-muted);
  font-size:.78rem;
  font-weight:500;
  line-height:1.45;
}

/* Dark surfaces for retained page-specific analytical components. */
html[data-theme="dark"] .metric,
html[data-theme="dark"] .week-figure,
html[data-theme="dark"] .summary-item,
html[data-theme="dark"] .fact,
html[data-theme="dark"] .scope,
html[data-theme="dark"] .mini-day,
html[data-theme="dark"] .day-detail-item,
html[data-theme="dark"] .roadmap article,
html[data-theme="dark"] .session,
html[data-theme="dark"] .portrait-week-summary,
html[data-theme="dark"] .month-portrait,
html[data-theme="dark"] .diagnostics,
html[data-theme="dark"] .workflow span,
html[data-theme="dark"] .diagram-legend,
html[data-theme="dark"] .athlete-information,
html[data-theme="dark"] .diagram-node,
html[data-theme="dark"] .influence-note,
html[data-theme="dark"] .home-action,
html[data-theme="dark"] .block-purpose,
html[data-theme="dark"] .assistant,
html[data-theme="dark"] .message,
html[data-theme="dark"] .job,
html[data-theme="dark"] .plan,
html[data-theme="dark"] .entry,
html[data-theme="dark"] .goal-field,
html[data-theme="dark"] .road,
html[data-theme="dark"] .proposal-week,
html[data-theme="dark"] .rosterbar,
html[data-theme="dark"] .coverage,
html[data-theme="dark"] .outlook-week,
html[data-theme="dark"] .fixed-race,
html[data-theme="dark"] .approval,
html[data-theme="dark"] .approval-card,
html[data-theme="dark"] .coach-status,
html[data-theme="dark"] .v2metric,
html[data-theme="dark"] .v2change,
html[data-theme="dark"] .thinking,
html[data-theme="dark"] .recovery-summary-panel,
html[data-theme="dark"] .fitness-snapshot article,
html[data-theme="dark"] .performance-evidence-list article,
html[data-theme="dark"] .race-equivalent-row,
html[data-theme="dark"] .recovery-analysis,
html[data-theme="dark"] .analysis-metrics span,
html[data-theme="dark"] .week-detail,
html[data-theme="dark"] .recovery-day-detail,
html[data-theme="dark"] .recovery-metric,
html[data-theme="dark"] .fitness-detail,
html[data-theme="dark"] .fitness-event-drawer,
html[data-theme="dark"] .event-pill,
html[data-theme="dark"] .context-lane,
html[data-theme="dark"] .timeline-key,
html[data-theme="dark"] .limitations,
html[data-theme="dark"] .circadian-selected-detail,
html[data-theme="dark"] .metric-help-trigger.help-label,
html[data-theme="dark"] .deep-detail,
html[data-theme="dark"] .workflow-stage,
html[data-theme="dark"] .guardrail-summary article,
html[data-theme="dark"] .evidence-topic,
html[data-theme="dark"] .future-block-card,
html[data-theme="dark"] .future-block-grid>div,
html[data-theme="dark"] .block-events,
html[data-theme="dark"] .uncertainty{
  border-color:var(--rc-border);
  background:var(--rc-surface-subtle);
  color:var(--rc-text);
}
html[data-theme="dark"] .weektotal,
html[data-theme="dark"] .range-row,
html[data-theme="dark"] .range-row button{
  border-color:var(--rc-border);
  background:var(--rc-surface-subtle);
  color:var(--rc-text);
}
html[data-theme="dark"] .range-row button.active{
  border-color:var(--rc-primary);
  background:var(--rc-primary);
  color:var(--rc-on-primary);
}
html[data-theme="dark"] .notice,
html[data-theme="dark"] .month-review-banner,
html[data-theme="dark"] .material-review-banner,
html[data-theme="dark"] .action-card,
html[data-theme="dark"] .issue-banner,
html[data-theme="dark"] .goal-integrity{
  border-color:var(--rc-border);
  color:var(--rc-text);
}
html[data-theme="dark"] .material-review-banner{
  border:1px solid color-mix(in srgb,var(--rc-warning) 52%,var(--rc-border));
  border-left:5px solid var(--rc-warning);
  background:linear-gradient(100deg,var(--rc-warning-soft),color-mix(in srgb,var(--rc-warning-soft) 68%,var(--rc-surface)));
  color:var(--rc-text);
  box-shadow:0 10px 28px rgba(0,0,0,.16);
}
html[data-theme="dark"] .material-review-banner b{color:#f2d39d}
html[data-theme="dark"] .material-review-banner small{color:var(--rc-text-muted)}
html[data-theme="dark"] .material-review-banner a{color:#9bd1ad}
html[data-theme="dark"] .material-review-banner.confirmed{
  border-color:color-mix(in srgb,var(--rc-primary) 52%,var(--rc-border));
  border-left-color:var(--rc-primary);
  background:linear-gradient(100deg,var(--rc-primary-soft),color-mix(in srgb,var(--rc-primary-soft) 66%,var(--rc-surface)));
}
html[data-theme="dark"] .material-review-banner.confirmed b{color:#add9bc}
html[data-theme="dark"] .notice,
html[data-theme="dark"] .month-review-banner,
html[data-theme="dark"] .action-card{background:var(--rc-warning-soft)}
html[data-theme="dark"] .modal,
html[data-theme="dark"] .modal>div,
html[data-theme="dark"] .metric-help-popover{
  border-color:var(--rc-border);
  background:var(--rc-surface);
  color:var(--rc-text);
}
html[data-theme="dark"] .cal-item,
html[data-theme="dark"] .mini,
html[data-theme="dark"] .timeline .event{
  background:color-mix(in srgb,var(--tone,var(--rest)) 18%,var(--rc-surface));
  color:var(--rc-text);
}
html[data-theme="dark"] .user,
html[data-theme="dark"] .message.ryan{
  border-color:var(--rc-border);
  background:var(--rc-primary-soft);
  color:var(--rc-text);
}
html[data-theme="dark"] .chart text,
html[data-theme="dark"] .chart-label,
html[data-theme="dark"] .axis-label{fill:var(--rc-text-muted)}
html[data-theme="dark"] .grid,
html[data-theme="dark"] .axis,
html[data-theme="dark"] .axis-tick{stroke:var(--rc-border)}
html[data-theme="dark"] .hist-track,
html[data-theme="dark"] .intensity-track,
html[data-theme="dark"] .load-composition-track,
html[data-theme="dark"] .bar{background:var(--rc-border)}
html[data-theme="dark"] .recovery-lane,
html[data-theme="dark"] .map-field{fill:var(--rc-surface-subtle);stroke:var(--rc-border)}
html[data-theme="dark"] .chart-dot,
html[data-theme="dark"] .race-dot,
html[data-theme="dark"] .plan-marker circle,
html[data-theme="dark"] .recovery-point,
html[data-theme="dark"] .recovery-marker,
html[data-theme="dark"] .fitness-race-point,
html[data-theme="dark"] .map-run-start{stroke:var(--rc-surface)}
html[data-theme="dark"] .long-run-line{filter:none}
html[data-theme="dark"] img{filter:brightness(.92) contrast(1.04)}

@media(max-width:760px){
  :root{
    --rc-gutter:12px;
    --rc-space-lg:1.2rem;
    --rc-space-xl:1.75rem;
  }
  body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:calc(70px + env(safe-area-inset-bottom))}
  .app-header__inner{
    align-items:flex-start;
    height:auto;
    min-height:132px;
    overflow:visible;
    padding-top:max(18px,env(safe-area-inset-top));
    padding-bottom:15px;
  }
  .app-header h1{font-size:clamp(2.15rem,10vw,2.7rem)}
  .app-header__meta{
    display:none;
  }
  body[data-view="today"] .app-header__meta{
    display:block;
    margin-top:6px;
    font-size:.76rem;
    white-space:nowrap;
    word-break:normal;
    overflow-wrap:normal;
  }
  .app-header__action{margin-top:5px}
  .app-nav .nav-shell{
    width:max-content;
    min-width:100%;
    min-height:54px;
    padding-inline:0;
  }
  .app-nav{display:none}
  .mobile-bottom-nav{
    position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));z-index:80;
    left:0;right:0;bottom:0;min-height:calc(62px + env(safe-area-inset-bottom));
    padding:5px max(5px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(5px,env(safe-area-inset-left));
    border-top:1px solid var(--rc-border);background:color-mix(in srgb,var(--rc-surface) 96%,transparent);backdrop-filter:blur(15px);
  }
  .mobile-bottom-nav__link,.mobile-more>summary{
    display:flex;min-width:0;min-height:52px;align-items:center;justify-content:center;flex-direction:column;gap:2px;
    padding:4px 2px;border-radius:10px;color:var(--rc-text-muted);font-size:.66rem;font-weight:780;line-height:1;text-decoration:none;list-style:none;cursor:pointer;
  }
  .mobile-bottom-nav__link>span,.mobile-more>summary>span{font-size:1rem;line-height:1.1}
  .mobile-more>summary::-webkit-details-marker{display:none}
  .mobile-bottom-nav__link.active,.mobile-more.active>summary,.mobile-more[open]>summary{background:var(--rc-primary-soft);color:var(--rc-primary)}
  .mobile-more{position:relative;min-width:0}
  .mobile-more__menu{position:absolute;right:4px;bottom:58px;width:min(260px,calc(100vw - 24px));padding:8px;border:1px solid var(--rc-border);border-radius:14px;background:var(--rc-surface);box-shadow:0 12px 36px rgba(0,0,0,.2)}
  .mobile-more__menu a{display:flex;align-items:center;min-height:44px;padding:9px 11px;border-radius:8px;color:var(--rc-text);font-size:.82rem;font-weight:750;text-decoration:none}
  .mobile-more__menu a:hover,.mobile-more__menu a:focus-visible{background:var(--rc-primary-soft);color:var(--rc-primary)}
  .app-nav__secondary{margin-left:var(--rc-space-lg)}
  a.app-nav__link{min-height:38px;padding-inline:11px}
  a.app-nav__link--secondary{font-size:.76rem}
  html{scroll-padding-top:env(safe-area-inset-top);scroll-padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  main.page-container{padding-top:14px}
  .card,.chart-card,.status-card,.issues,.overall{padding:16px 14px}
  .actions{gap:8px}
  .actions>button,.actions>.button,.actions>.link{flex:1 1 140px;text-align:center}
  input,select,textarea{font-size:16px}
  button,.button,.link,select,input[type="date"],input[type="number"],input[type="text"],input[type="email"]{min-height:44px}
  input[type="checkbox"],input[type="radio"]{min-width:22px;min-height:22px}
  table{max-width:100%}
  .table-scroll,.activity-laps,.comparison-table{overflow-x:auto;-webkit-overflow-scrolling:touch}
  details.info-disclosure{position:static}
  .info-popover{
    position:fixed;
    inset:auto 12px calc(76px + env(safe-area-inset-bottom));
    width:auto;
    max-height:60vh;
    overflow:auto;
  }
  .connection-status{bottom:calc(76px + env(safe-area-inset-bottom))}
  .rc-section{
    padding:20px 16px;
    border-radius:19px;
  }
  .rc-section-header{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
  .rc-section-title{font-size:clamp(1.55rem,7vw,2rem)}
  .rc-metric-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rc-metric:nth-child(3){border-left:0}
  .rc-metric:nth-child(n+3){border-top:1px solid var(--divider)}
  .rc-support-grid{grid-template-columns:1fr}
  .rc-analytical-surface{padding:16px 14px}
  .rc-control-group{width:100%}
  .rc-control-pill{flex:1 1 auto;justify-content:center}
}

@media(max-width:390px){
  .card,.chart-card,.status-card,.issues,.overall{
    padding:14px 12px;
    border-radius:var(--rc-radius-md);
  }
  .rc-section{padding:17px 13px;border-radius:17px}
  .rc-metric{padding:13px 11px}
  .rc-metric-value{font-size:1.15rem}
  .rc-analytical-surface,.rc-support-panel{padding:13px 11px}
}

@media(max-width:330px){
  :root{--rc-gutter:9px}
  a.app-nav__link{padding-inline:9px;font-size:.76rem}
  .app-header h1{font-size:2.2rem}
}

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