@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/manrope-latin.woff2") format("woff2");
}

/* Neutral reading surfaces; blue is interactive, coral remains physiological. */
:root {
  --font: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-strong: rgba(255, 255, 255, .94);
  --surface-soft: #f0f1f4;
  --text: #1d1d1f;
  --text-soft: #515156;
  --muted: #73737a;
  --muted-strong: #626269;
  --bio-paper: #ffffff;
  --bio-surface: #f5f5f7;
  --bio-ink: #1d1d1f;
  --bio-muted: #626269;
  --bio-teal: #0066cc;
  --bio-coral: #cc3d52;
  --bio-line: #8e9cae;
  --bio-tint: #5188b8;
  --brief-paper: #ffffff;
  --brief-ink: #1d1d1f;
  --clinical-green: #287d46;
  --clinical-amber: #946013;
  --clinical-coral: #cc3d52;
  --scale-deep: #2868b2;
  --scale-rem: #6ba9e0;
  --scale-light: #c7dff4;
  --scale-warm: #a15c2c;
  --sleep: #2868b2;
  --hairline: rgba(29, 29, 31, .08);
  --hairline-strong: rgba(29, 29, 31, .16);
  --ink-button: #1d1d1f;
  --on-ink: #ffffff;
  --on-accent: #ffffff;
  --focus: #0071e3;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow: 0 8px 32px -24px rgba(29, 29, 31, .18);
  --shadow-float: 0 16px 48px -24px rgba(29, 29, 31, .28);
  --spring: cubic-bezier(.22, 1, .36, 1);
  --ease-view: var(--spring);
  --popover-bg: rgba(31, 31, 31, .96);
  --popover-ink: #f5f5f7;
  --popover-soft: #d2d2d7;
}
html[data-theme="dark"] {
  --bg: #000000;
  --bg-elevated: #181818;
  --surface: #181818;
  --surface-strong: rgba(31, 31, 31, .96);
  --surface-soft: #272727;
  --text: #f5f5f7;
  --text-soft: #c5c5cc;
  --muted: #a1a1a8;
  --muted-strong: #b0b0b7;
  --bio-paper: #181818;
  --bio-surface: #1f1f1f;
  --bio-ink: #f5f5f7;
  --bio-muted: #b0b0b7;
  --bio-teal: #85bfff;
  --bio-coral: #ff8192;
  --bio-line: #91a1b5;
  --bio-tint: #8eb9df;
  --brief-paper: #181818;
  --brief-ink: #f5f5f7;
  --clinical-green: #84d3a0;
  --clinical-amber: #e6bd7b;
  --clinical-coral: #ff8192;
  --scale-deep: #7bb5ef;
  --scale-rem: #4a81b7;
  --scale-light: #2c425c;
  --scale-warm: #e6bd7b;
  --sleep: #7bb5ef;
  --hairline: rgba(245, 245, 247, .1);
  --hairline-strong: rgba(245, 245, 247, .2);
  --ink-button: #f5f5f7;
  --on-ink: #181818;
  --on-accent: #000000;
  --focus: #85bfff;
  --shadow: none;
  --shadow-float: 0 16px 48px -24px rgba(0, 0, 0, .8);
  --popover-bg: rgba(49, 49, 49, .96);
  --popover-ink: #f5f5f7;
  --popover-soft: #d2d2d7;
}
.period-switch, .period-switch__button { outline: none; box-shadow: none; }
.period-switch__button { transition: color 280ms, font-weight 280ms; font-weight: 450; }
.period-switch__button.is-active { font-weight: 620; }
.period-switch__button:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.period-switch__button:focus-visible { outline: 1.5px solid var(--bio-teal); outline-offset: 3px; }
.period-switch__indicator { box-shadow: inset 0 1px 1px rgba(255,255,255,.12), inset 0 -2px 3px rgba(0,0,0,.12); transition: transform 460ms cubic-bezier(.22,1,.36,1); }
.time-capsule__context { gap: 8px; font-size: 10px; letter-spacing: .015em; }
.hero { padding-top: 26px; padding-bottom: 18px; }
.hero__status { display: none; }
.vitals-strip { margin-bottom: 18px; }
#dailyBriefing, #bioTwin, #timeScaleView, .bento { scroll-margin-top: 125px; }
.bio-twin { margin: 18px 0 30px; }
.bio-system-detail { min-height: 100px; }
.context-logger { margin: 14px 0 30px; padding: 0; border: 0; border-radius: 24px; background: var(--bio-paper); color: var(--bio-ink); }
.context-capsule { list-style: none; display: flex; align-items: center; gap: 18px; min-height: 54px; padding: 10px 24px; cursor: pointer; }
.context-capsule::-webkit-details-marker { display: none; }
.context-capsule > span:first-child { flex-shrink: 0; font-size: 12px; font-weight: 550; }
#contextPreview { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: var(--bio-muted); }
.context-capsule .context-save-state { font-size: 10px; flex-shrink: 0; }
.context-capsule svg { width: 18px; height: 18px; color: var(--bio-teal); transition: transform 250ms; }
.context-logger[open] { border-radius: 16px; }
.context-logger[open] .context-capsule svg { transform: rotate(180deg); }
.context-drawer { padding: 5px 24px 22px; }
.context-tags { margin: 6px 0 16px; }
.daily-briefing { margin-bottom: 0; }
.brief-lead { padding: 22px 0; }
.brief-readouts { padding-top: 14px; padding-bottom: 14px; }
.brief-footer { padding-top: 18px; }
.rx-tile { min-height: 195px; padding: 20px; }
.rx-tile__action { line-height: 1.65; }
.rx-tile__foot { gap: 8px; }
.rx-tile__status { font-size: 9px; }
.rx-ask { border: 0; padding: 7px 0; min-height: 32px; background: none; color: var(--bio-teal); font-size: 10px; cursor: pointer; margin-left: auto; white-space: nowrap; }
.bento { grid-auto-rows: auto; gap: 20px; }
.bento > .sleep-card { grid-column: 1 / span 7; grid-row: 1; }
.bento > .heart-card { grid-column: 8 / span 5; grid-row: 1; }
.bento > .activity-card { grid-column: 1 / span 4; grid-row: 2; }
.bento > .circadian-card { grid-column: 5 / span 8; grid-row: 2; }
.bento .card { min-height: 0; }
.bento > .activity-card { align-self: start; }
.activity-card .activity-visual { margin: 18px 0 12px; }
.heart-chart-key { font-size: 9px; line-height: 1.65; color: var(--bio-muted); margin: 10px 0 18px; }
.heart-chart-wrap { margin-top: 15px; }
#heartChart { touch-action: pan-y; }
.heart-cursor { position: absolute; width: 9px; height: 9px; border: 2px solid var(--bio-paper); background: var(--bio-coral); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.chart-tooltip { max-width: calc(100% - 12px); width: max-content; pointer-events: none; }
.circadian-clinical { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.circadian-clinical .card__header { margin-bottom: 12px; }
.circadian-clinical .card__title { font-size: 19px; }
.circadian-clinical .clinical-rule-list { gap: 12px; }
.circadian-clinical .clinical-rule { padding: 12px 0; }
.evidence-disclosure { margin-top: 22px; border-top: 1px solid var(--hairline); padding-top: 15px; }
.evidence-disclosure > summary { color: var(--bio-muted); font-size: 11px; min-height: 30px; cursor: pointer; }
.evidence-disclosure[open] > summary { margin-bottom: 18px; }
.evidence-disclosure .signals-list { gap: 12px; }
.evidence-disclosure .card__header { display: none; }
.evidence-disclosure .radar-wrap { max-width: 450px; margin: auto; }
.day-ask { display: inline-flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; min-height: 40px; padding: 9px 16px; border: 0; border-radius: 22px; background: var(--bio-ink); color: var(--bio-paper); font-size: 11px; cursor: pointer; transition: transform 180ms, opacity 180ms; }
.day-ask::before { content: ""; display: block; width: 11px; height: 11px; margin-right: 7px; background: currentColor; clip-path: polygon(50% 0,64% 36%,100% 50%,64% 64%,50% 100%,36% 64%,0 50%,36% 36%); }
.scale-chart { cursor: crosshair; touch-action: pan-y; }
.scale-chart:focus-visible { outline: 1.5px solid var(--bio-teal); outline-offset: 5px; border-radius: 5px; }
.scale-crosshair { stroke: var(--bio-teal); stroke-width: 1; stroke-dasharray: 3 4; pointer-events: none; }
.scale-crosshair-dot { fill: var(--bio-paper); stroke: var(--bio-teal); stroke-width: 2; pointer-events: none; }
.scale-tooltip { position: fixed; z-index: 600; display: grid; gap: 6px; width: max-content; max-width: min(340px, calc(100vw - 16px)); padding: 15px 18px; border-radius: 14px; background: var(--popover-bg); color: var(--popover-ink); box-shadow: 0 12px 35px -15px rgba(0,0,0,.4); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); pointer-events: none; font-size: 11px; line-height: 1.6; }
.scale-tooltip strong { font-weight: 600; font-size: 12px; }
.scale-tooltip span { color: var(--popover-soft); }
.scale-tooltip small { color: var(--popover-soft); font-size: 9px; margin-top: 3px; }
.week-raster__sleep { border: 0; padding: 0 3px; cursor: pointer; }
.week-raster__row > span[role="button"], .week-raster__track { cursor: pointer; }
.week-insights .day-ask { margin-top: 5px; }
.month-deviations { padding: 24px 10px 0; }
.month-deviations h3 { font-size: 14px; font-weight: 550; margin: 0 0 14px; }
.month-deviations > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.deviation-date { border: 0; background: none; color: var(--bio-ink); padding: 8px 0; text-align: left; font-size: 12px; cursor: pointer; }
.record-item { appearance: none; border: 0; background: none; padding: 8px 0; color: var(--bio-ink); text-align: left; cursor: pointer; border-radius: 5px; }
.record-item:disabled { cursor: default; opacity: .65; }
.archive-records { margin-top: 20px; }
.weekly-dates { display: flex; flex-wrap: wrap; gap: 3px; }
.weekly-milestone { position: relative; }
.weekly-milestone::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--timeline-cursor, 50%); border-left: 1px dashed var(--bio-teal); opacity: 0; pointer-events: none; }
.weekly-milestone:hover::after, .weekly-milestone:focus::after, .weekly-milestone:focus-within::after { opacity: .5; }
.weekly-dates button { border: 0; background: var(--bio-surface); color: var(--bio-teal); font-size: 10px; border-radius: 5px; min-width: 28px; min-height: 32px; padding: 3px; cursor: pointer; }
.sensitivity { padding: 26px 30px; border-radius: 16px; background: var(--bio-paper); color: var(--bio-ink); }
.sensitivity-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.sensitivity-head h2 { margin: 0; font-size: clamp(19px, 2vw, 25px); font-weight: 550; letter-spacing: -.025em; }
.sensitivity-grid { display: grid; grid-template-columns: 1.15fr 1.15fr 1fr; gap: 32px; }
.sensitivity-item { min-width: 0; position: relative; }
.sensitivity-item + .sensitivity-item { border-left: 1px solid var(--hairline); padding-left: 26px; }
.sensitivity-item h3 { font-size: 13px; font-weight: 550; margin: 0 0 12px; }
.sensitivity-groups { color: var(--bio-muted); font-size: 10px; line-height: 1.8; margin: 0 0 16px; }
.sensitivity-metrics { margin: 0; display: grid; gap: 13px; }
.sensitivity-metrics > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sensitivity-metrics dt { color: var(--bio-muted); font-size: 11px; }
.sensitivity-metrics dd { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.02em; text-align: right; }
.sensitivity-item > .clinical-info { position: absolute; top: -6px; right: -5px; width: 25px; height: 25px; }
.sensitivity-item h3 { padding-right: 22px; }
.sensitivity-rate { display: block; font-size: 36px; line-height: 1; font-weight: 500; letter-spacing: -.03em; margin-bottom: 14px; }
.sensitivity-feedback { color: var(--bio-ink); font-size: 11px; line-height: 1.8; margin: 0; }
.sensitivity--compact { padding: 0; margin-top: 22px; border-radius: 0; background: none; border-top: 1px solid var(--hairline); }
.sensitivity--compact > summary { list-style: none; padding: 16px 0; margin: 0; cursor: pointer; font-size: 12px; }
.sensitivity--compact > summary::-webkit-details-marker { display: none; }
.sensitivity--compact > summary::after { content: "+"; font-size: 18px; color: var(--bio-teal); }
.sensitivity--compact[open] > summary::after { content: "−"; }
.sensitivity--compact > .sensitivity-grid { padding: 8px 0 22px; }
.day-sheet { width: min(720px, calc(100% - 32px)); max-height: min(90dvh, 980px); }
.day-sheet .clinical-sheet__head h2 { font-size: 16px; line-height: 1.6; }
.day-sheet .clinical-sheet__body { padding: 8px 28px 26px; }
.day-recovery { display: flex; align-items: center; gap: 16px; padding: 8px 0 24px; }
.day-recovery > strong { font-size: 54px; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.day-recovery small { font-size: 13px; font-weight: 400; letter-spacing: 0; margin-left: 5px; color: var(--bio-muted); }
.day-recovery > span { font-size: 13px; color: var(--bio-teal); }
.day-recovery .clinical-info { margin-left: auto; }
.day-inspector h3 { font-size: 14px; font-weight: 550; margin: 0 0 12px; }
.day-window { color: var(--bio-muted); font-size: 12px; line-height: 1.8; margin: 0 0 18px; }
.day-stage-strip { display: flex; gap: 2px; height: 32px; overflow: hidden; border-radius: 7px; }
.day-stage { min-width: 1px; flex-basis: 0; }
.day-stage--awake { background: var(--awake); }
.day-stage--rem { background: var(--scale-rem); }
.day-stage--light { background: var(--scale-light); }
.day-stage--deep { background: var(--scale-deep); }
.day-stage-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 12px; font-size: 10px; color: var(--bio-muted); }
.day-stage-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 5px; background: var(--scale-light); }
.day-stage-legend .day-legend--deep::before { background: var(--scale-deep); }
.day-stage-legend .day-legend--rem::before { background: var(--scale-rem); }
.day-stage-legend .day-legend--awake::before { background: var(--awake); }
.day-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; padding: 24px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.day-metrics dt { color: var(--bio-muted); font-size: 11px; margin-bottom: 8px; }
.day-metrics dd { margin: 0; font-size: 18px; font-weight: 500; }
.day-context p { color: var(--bio-muted); font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.day-context-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.day-context-tags span { padding: 5px 12px; background: var(--bio-surface); border-radius: 20px; font-size: 11px; }
.day-sheet-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.day-sheet-footer > span { max-width: 36ch; font-size: 10px; color: var(--bio-muted); line-height: 1.7; }
.day-sheet-footer > button { flex-shrink: 0; }
.day-sheet[open] { animation: day-sheet-in 400ms cubic-bezier(.22,1,.36,1); }
@keyframes day-sheet-in { from { transform: translateY(22px); opacity: .6; } to { transform: none; opacity: 1; } }
.sync-popover { width: 320px; max-width: calc(100vw - 28px); }
.sync-controls { display: flex; align-items: center; gap: 14px; padding-top: 16px; }
.sync-trigger { border: 0; background: var(--bio-ink); color: var(--bio-paper); min-height: 42px; padding: 9px 15px; border-radius: 22px; font-size: 11px; cursor: pointer; }
.sync-trigger:disabled { opacity: .55; cursor: wait; }
.sync-progress { margin: 13px 0 0; font-size: 10px; color: var(--bio-muted); line-height: 1.8; }
#clearChatDate { flex-shrink: 0; font-size: 10px; margin-left: auto; }
@media (hover: hover) {
  .day-ask:hover { opacity: .85; transform: translateY(-1px); }
  .record-item:hover strong, .deviation-date:hover { color: var(--bio-teal); }
  .rx-ask:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 1101px) {
  .vitals-strip { padding: 18px 28px; }
  .vitals-strip__header { margin-bottom: 12px; }
  .scale-kpi { gap: 8px; }
  .bio-twin { padding-top: 22px; padding-bottom: 22px; }
  .bio-layout { margin-top: 12px; }
  .bio-stage { height: 340px; }
  .bio-system-detail { min-height: 90px; padding-top: 12px; }
  .bio-figure { top: 118px; }
  .bio-controls { gap: 6px 22px; padding: 18px 24px; }
  .bio-control-head h3 { font-size: 19px; }
  .bio-controls .bio-outputs { gap: 10px 14px; }
  .bio-controls .bio-estimate { gap: 2px; }
  .bio-controls .bio-estimate { grid-template-columns: max-content minmax(0, 1fr); column-gap: 8px; }
  .bio-estimate > span:first-child, .bio-estimate > strong { grid-column: 1 / -1; }
  .bio-controls .bio-estimate__range { align-self: center; font-size: 8px; line-height: 1.6; }
  .bio-controls .bio-estimate strong { font-size: 29px; }
  .bio-controls .bio-estimate--time strong { font-size: 20px; padding: 2px 0; }
  .bio-presets { min-height: 45px; margin: 0 0 4px; }
  .bio-preset { min-height: 45px; gap: 3px; padding: 7px 8px; }
  .bio-controls .bio-slider { gap: 0; }
  .bio-slider output { font-size: 19px; }
  .bio-controls .bio-forecast-header { margin: 0; }
  .bio-controls .bio-estimate-note { font-size: 8px; }
  .bio-controls .bio-breathe { min-height: 34px; }
  .brief-lead { padding: 16px 0; }
  .brief-pillars { gap: 16px; }
  .brief-pillar svg { width: 75px; height: 75px; }
  .hero { padding-top: 20px; padding-bottom: 12px; }
  .rx-tile { min-height: 170px; padding: 16px 12px; gap: 7px; }
  .rx-tile__number { margin: 0; font-size: 32px; }
  .brief-readouts { margin-bottom: 18px; padding-top: 10px; padding-bottom: 10px; }
  .sleep-chart-wrap { height: 258px; }
  .sleep-chart { height: 250px; }
  .heart-chart-wrap { height: 255px; }
  .bento > .circadian-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; gap: 14px 22px; }
  .circadian-card > .card__header, .circadian-card > .circadian-summary, .circadian-card > .evidence-disclosure { grid-column: 1 / -1; }
  .circadian-card > .card__header { margin-bottom: 0; }
  .circadian-card .circadian-raster-wrap { grid-column: 1; grid-row: 3; }
  .circadian-card .circadian-raster { height: 260px; }
  .circadian-card > .baseline-note { grid-column: 1; grid-row: 4; align-self: start; margin-top: 0; }
  .circadian-card .circadian-clinical { grid-column: 2; grid-row: 3 / span 2; padding: 0; margin: 0; border-top: 0; }
  .circadian-card .evidence-disclosure { margin-top: 0; }
  .circadian-card .clinical-rule__evidence { gap: 4px; }
  .circadian-card .clinical-rule__head strong { font-size: 12px; }
  .circadian-card .clinical-rule { padding: 8px 0; }
  .circadian-card .clinical-rule__evidence span { font-size: 10px; }
  .activity-card .activity-visual { flex-direction: column; }
}
@media (max-width: 1000px) {
  .sensitivity-grid { gap: 24px; }
  .sensitivity-item + .sensitivity-item { padding-left: 20px; }
  .sensitivity-metrics dd { font-size: 15px; }
  .bento > .activity-card { grid-column: 1 / span 5; }
  .bento > .circadian-card { grid-column: 6 / span 7; }
}
@media (max-width: 800px) {
  .bento > .sleep-card, .bento > .heart-card, .bento > .activity-card, .bento > .circadian-card { grid-column: 1 / -1; grid-row: auto; }
  .sensitivity-grid { grid-template-columns: 1fr; gap: 24px; }
  .sensitivity-item + .sensitivity-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 22px; }
  .sensitivity-item + .sensitivity-item > .clinical-info { top: 17px; }
  .sensitivity-metrics dd { font-size: 19px; }
  .sensitivity-item h3 { font-size: 14px; }
  .sensitivity-groups { font-size: 11px; }
  .week-cycle { overflow: visible; }
  .week-cycle .scale-chart { min-width: 0; }
  .scale-legend { flex-wrap: wrap; gap: 9px 15px; }
  .sensitivity--compact .sensitivity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sensitivity--compact .sensitivity-tracking { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  #dailyBriefing, #bioTwin, #timeScaleView, .bento { scroll-margin-top: 190px; }
  .vitals-grid { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 8px; }
  .scale-kpi, .scale-kpi:last-child { flex: 0 0 120px; display: grid; grid-template-columns: none; align-content: start; align-items: start; scroll-snap-align: start; }
  .scale-kpi:nth-child(n) { border: 0; padding-top: 0; }
  .scale-kpi:last-child .scale-kpi__detail { grid-column: auto; }
  .scale-kpi__value { font-size: 29px; }
  .scale-kpi__detail { max-width: 22ch; }
  .vitals-strip { padding-bottom: 14px; }
  .vitals-strip__header { margin-bottom: 16px; }
  .hero { padding-top: 24px; }
  .context-logger { margin-bottom: 24px; }
  .context-capsule { padding: 10px 16px; gap: 12px; }
  .context-capsule > span:first-child { font-size: 11px; }
  .context-capsule .context-save-state { display: none; }
  #contextPreview { font-size: 10px; }
  .context-drawer { padding: 2px 16px 18px; }
  .context-note-row { align-items: stretch; }
  .sensitivity { padding: 24px 20px; }
  .sensitivity--compact { padding: 0; }
  .sensitivity--compact .sensitivity-grid { grid-template-columns: 1fr; }
  .rx-tile { min-height: 180px; padding: 17px; }
  .rx-tile__foot { flex-wrap: wrap; }
  .rx-ask { min-height: 36px; }
  .month-deviations { padding: 22px 2px 0; }
  .month-deviations > div { gap: 10px; }
  .deviation-date { font-size: 11px; }
  .day-ask { padding: 9px 12px; font-size: 10px; }
  .week-cycle .scale-chart { height: auto; }
  .week-cycle .scale-chart text, .month-corridors .scale-chart text { font-size: 16px; }
  .correlation-grid .scale-chart text { font-size: 14px; }
  .week-raster__head, .week-raster__row { grid-template-columns: 48px 1fr; }
  .week-raster__track { height: 50px; }
  .week-raster__sleep { top: 0; height: 25px; font-size: 8px; border-radius: 3px; }
  .week-raster__sleep--prior { top: 26px; height: 24px; }
  .week-raster__row { margin: 8px 0; }
  .day-sheet { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .day-sheet .clinical-sheet__head { padding: 20px; }
  .day-sheet .clinical-sheet__head h2 { font-size: 14px; }
  .day-sheet .clinical-sheet__body { padding: 0 22px 26px; }
  .day-recovery > strong { font-size: 48px; }
  .day-metrics { gap: 23px 14px; }
  .day-metrics dd { font-size: 16px; line-height: 1.6; }
  .day-sheet-footer { flex-direction: column; align-items: stretch; gap: 18px; }
  .day-sheet-footer > span { max-width: none; }
  .day-sheet-footer > button { width: 100%; min-height: 46px; }
  .sync-popover { right: 0; }
  .context-note-row input { min-width: 0; }
}
/* Reading rhythm and shared controls. The existing data and chart layouts stay intact. */
body { background: var(--bg); font-size: 16px; line-height: 24px; transition: none; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select, textarea { font-family: var(--font); }
button, a, summary { touch-action: manipulation; }
button, a, input, select, textarea, summary { transition-timing-function: var(--spring); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 4px;
}
button:not(:disabled):active { transform: scale(.98); }
button:disabled { cursor: not-allowed; }
.skip-link { position: fixed; z-index: 1000; top: 16px; left: 16px; padding: 12px 16px; border-radius: 12px; background: var(--ink-button); color: var(--on-ink); text-decoration: none; transform: translateY(-96px); }
.skip-link:focus { transform: none; }
.page-shell { width: min(1200px, calc(100% - 96px)); padding-bottom: 32px; }
.topbar { top: 16px; width: min(1120px, calc(100% - 32px)); min-height: 80px; margin-top: 16px; padding: 8px 16px; grid-template-columns: 1fr minmax(240px, 320px) 1fr; gap: 16px; border-radius: 24px; background: color-mix(in srgb, var(--bg) 80%, transparent); box-shadow: 0 8px 32px -24px rgba(0, 0, 0, .24); }
.brand { gap: 8px; }
.brand__mark { width: 32px; height: 32px; border-radius: 8px; box-shadow: none; }
.brand__name { font-size: 16px; line-height: 24px; font-weight: 600; }
.topbar__actions { gap: 8px; min-width: 0; }
.topbar .icon-button, .topbar .avatar-button { width: 40px; height: 40px; border-radius: 9999px; }
.avatar-button { background: var(--surface-soft); font-size: 14px; line-height: 20px; }
.time-capsule { gap: 4px; }
.period-switch { width: 320px; height: 40px; background: var(--surface-soft); }
.period-switch__indicator { background: var(--bio-paper); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .24); transition: transform 500ms var(--spring); }
.period-switch__button { font-size: 14px; line-height: 20px; font-weight: 500; transition: opacity 300ms var(--spring), transform 500ms var(--spring); }
.period-switch__button.is-active { color: var(--text); font-weight: 600; }
.time-capsule__context, .time-sample { font-size: 12px; line-height: 16px; }
.time-capsule__context { min-height: 16px; }
#timeCaption { display: none; }
.time-sample { padding: 0; background: none; color: var(--muted-strong); }
.topbar .sync-pill { max-width: 128px; min-height: 40px; padding: 8px; gap: 8px; border: 0; background: transparent; font-size: 12px; line-height: 16px; }
#syncLabel { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero { display: block; padding: 64px 0 40px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero .eyebrow { order: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted-strong); }
.hero h1 { max-width: 680px; font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--text); background: linear-gradient(100deg, #000000, #666666); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
html[data-theme="dark"] .hero h1 { background-image: linear-gradient(100deg, #ffffff, #9b9b9b); }
.hero__insight { display: block; max-width: 680px; min-height: 0; margin: 0; font-size: 18px; line-height: 28px; font-weight: 400; color: var(--text-soft); letter-spacing: 0; }
.hero__insight:empty { display: none; }
.vitals-strip { margin-bottom: 32px; padding: 32px; border-radius: 24px; }
.vitals-strip__header { margin-bottom: 24px; }
.vitals-strip__header h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.vitals-strip__meta { gap: 8px; font-size: 12px; line-height: 16px; }
.vitals-grid { gap: 24px; }
.scale-kpi { gap: 12px; }
.scale-kpi__label { font-size: 14px; line-height: 20px; }
.scale-kpi__value { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -.04em; }
.scale-kpi__value small { font-size: 12px; line-height: 16px; }
.scale-kpi__detail { max-width: 24ch; font-size: 12px; line-height: 16px; }
.vital-skeleton { background: var(--surface-soft); animation: surface-breathe 1800ms var(--spring) infinite alternate; }
.bio-twin { margin: 32px 0; padding: 32px; border-radius: 24px; }
.bio-title h2 { font-size: 24px; line-height: 32px; font-weight: 600; }
.bio-title { gap: 8px; }
.bio-scale-badge { font-size: 12px; line-height: 16px; }
.bio-layout { gap: 32px; margin-top: 24px; }
.bio-timestamp, .bio-view-state { font-size: 12px; line-height: 16px; }
.bio-stage { height: 440px; margin-top: 16px; background: none; }
.bio-system, .bio-shell { transition: opacity 500ms var(--spring); }
.bio-readout { width: 112px; min-height: 80px; padding: 12px; border-radius: 12px; background: var(--bio-paper); transition: transform 500ms var(--spring), opacity 300ms var(--spring); }
.bio-readout span { margin-bottom: 8px; font-size: 12px; line-height: 16px; }
.bio-readout strong { font-size: 24px; line-height: 32px; font-weight: 600; }
.bio-readout .bio-hud-hint { display: none; }
.bio-overview { top: 0; min-height: 32px; padding: 8px 12px; border-radius: 9999px; font-size: 12px; line-height: 16px; }
.bio-overview:not(:disabled):active { transform: translateX(-50%) scale(.98); }
.bio-wave-label { bottom: 8px; font-size: 12px; line-height: 16px; }
.bio-system-tabs { gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.bio-system-tabs button, .bio-mode button { min-height: 40px; padding: 8px 12px; font-size: 14px; line-height: 20px; }
.bio-mode { padding: 4px; border-radius: 12px; }
.bio-mode button { border-radius: 8px; }
.bio-system-detail { min-height: 0; padding-top: 24px; }
.bio-detail-metrics { gap: 16px; }
.bio-detail-metrics span, .bio-detail-metrics small, .bio-detail-head { font-size: 12px; line-height: 16px; }
.bio-detail-metrics strong { font-size: 24px; line-height: 32px; }
.bio-detail-head { margin-top: 16px; gap: 8px; }
.bio-detail-action { min-height: 40px; padding: 8px 0; font-size: 14px; line-height: 20px; }
.bio-controls { gap: 16px 24px; padding: 32px; margin: 0; border-radius: 16px; }
.bio-control-head { align-items: flex-start; gap: 8px; }
.bio-control-head h3 { font-size: 24px; line-height: 32px; font-weight: 600; }
.bio-reset { min-height: 32px; padding: 8px 0 8px 8px; font-size: 12px; line-height: 16px; }
.bio-presets { gap: 8px; min-height: 80px; margin: 8px 0; }
.bio-preset { gap: 8px; min-height: 80px; padding: 12px 8px; border-radius: 8px; transition: transform 500ms var(--spring), opacity 300ms var(--spring); }
.bio-preset strong, .bio-preset span { font-size: 12px; line-height: 16px; }
.bio-controls .bio-slider { gap: 8px; margin: 0; }
.bio-slider__head { gap: 8px; font-size: 14px; line-height: 20px; }
.bio-slider output { font-size: 24px; line-height: 32px; }
.bio-controls .bio-slider input[type="range"] { height: 32px; margin-top: 0; }
.bio-slider__ends { font-size: 12px; line-height: 16px; }
.bio-controls .bio-forecast-header { margin: 8px 0 0; }
.bio-forecast-header h4 { font-size: 14px; line-height: 20px; }
.bio-controls .bio-outputs { gap: 24px 16px; }
.bio-controls .bio-estimate { grid-template-columns: minmax(0, 1fr); gap: 8px; font-size: 12px; line-height: 16px; }
.bio-controls .bio-estimate > * { grid-column: auto; }
.bio-controls .bio-estimate strong { font-size: 30px; line-height: 36px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
.bio-estimate strong small { font-size: 12px; line-height: 16px; }
.bio-controls .bio-estimate--time strong { padding: 0; font-size: 18px; line-height: 28px; overflow-wrap: normal; }
.bio-controls .bio-estimate__range, .bio-controls .bio-estimate-note { font-size: 12px; line-height: 16px; }
.bio-delta { max-width: 100%; padding: 4px 8px; font-size: 12px; line-height: 16px; white-space: normal; transition: opacity 300ms var(--spring); }
.bio-controls .bio-estimate-note { margin-top: 8px; }
.bio-controls .bio-scenario-plan { gap: 8px; margin-top: 0; font-size: 12px; line-height: 16px; }
.bio-breathe, .bio-controls .bio-breathe, .primary-button, #loginButton, #contextSaveButton, .sync-trigger, .day-ask {
  min-height: 40px; padding: 8px 12px; border-radius: 9999px; background: var(--bio-teal); color: var(--on-accent); font-size: 16px; line-height: 24px; font-weight: 600; transition: transform 500ms var(--spring), opacity 300ms var(--spring); filter: none;
}
.bio-controls .bio-breathe { margin-top: 8px; }
.rhythm-pause { display: grid; min-height: 320px; padding: 64px 24px; place-items: center; }
.rhythm-pause p { max-width: 680px; margin: 0; color: var(--text); font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -.04em; text-align: center; }
.rhythm-line { display: block; }
.rhythm-line + .rhythm-line { margin-top: 16px; }
.rhythm-word { display: inline-block; transition: opacity 500ms var(--spring); }
.has-word-reveal .rhythm-word { opacity: .3; }
.has-word-reveal .rhythm-word.is-lit { opacity: 1; }
.daily-briefing { margin: 0 0 32px; padding: 32px; border-radius: 24px; background: var(--brief-paper); }
.brief-masthead h2 { font-size: 18px; line-height: 28px; font-weight: 600; }
.brief-masthead .brief-date { font-size: 12px; line-height: 16px; }
.brief-lead { gap: 32px; padding: 32px 0; }
.brief-lead h3 { font-family: var(--font); font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -.03em; }
.brief-summary { margin-top: 16px; font-size: 16px; line-height: 24px; }
.brief-pillars { gap: 16px; }
.brief-pillar { font-size: 12px; line-height: 16px; }
.brief-pillar svg { width: 80px; }
.brief-readouts { gap: 32px; flex-wrap: wrap; margin-bottom: 24px; padding: 16px 0; }
.brief-readout { font-size: 12px; line-height: 16px; }
.brief-readout strong { font-size: 30px; line-height: 36px; }
.brief-readout small { font-size: 12px; line-height: 16px; }
.clinical-playbook, .clinical-playbook.is-compact { gap: 16px; }
.rx-tile { min-height: 0; padding: 24px; gap: 12px; border: 0; border-radius: 16px; background: var(--bio-surface); }
.rx-tile h4 { font-size: 14px; line-height: 20px; }
.rx-tile__number { margin: 0; font-size: 36px; line-height: 40px; }
.rx-tile__action { font-size: 14px; line-height: 20px; }
.rx-tile__number small, .rx-tile__time, .rx-tile__status { font-size: 12px; line-height: 16px; }
.rx-tile__foot { margin-top: 0; gap: 8px; flex-wrap: wrap; }
.rx-ask, .rx-breathe-button { min-height: 40px; font-size: 14px; line-height: 20px; }
.rx-check { width: 40px; height: 40px; }
.brief-footer { padding-top: 24px; margin-top: 0; font-size: 12px; line-height: 16px; }
.brief-tools button, .brief-tools select, .rich-export, .brief-consult { min-height: 40px; padding: 8px 12px; font-size: 14px; line-height: 20px; }
.brief-tools .brief-refresh { color: var(--on-accent); }
.context-logger { margin: 0 0 32px; border-radius: 16px; }
.context-capsule { gap: 16px; min-height: 64px; padding: 16px 24px; }
.context-capsule > span:first-child { font-size: 14px; line-height: 20px; }
#contextPreview, .context-capsule .context-save-state { font-size: 12px; line-height: 16px; }
.context-capsule svg { transition: transform 500ms var(--spring); }
.context-drawer { padding: 0 24px 24px; }
.context-tag { min-height: 40px; font-size: 14px; line-height: 20px; }
.context-note-row input { font-size: 16px; line-height: 24px; }
.bento { gap: 24px; }
html[data-theme] .card { padding: 32px; border: 0; border-radius: 24px; background: var(--bio-paper); box-shadow: var(--shadow); backdrop-filter: none; -webkit-backdrop-filter: none; transition: transform 500ms var(--spring), opacity 300ms var(--spring); }
.card:hover { transform: none; }
.card__kicker { font-size: 14px; line-height: 20px; letter-spacing: 0; font-weight: 500; }
.card__title { gap: 8px; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -.04em; }
.card__title small { font-size: 14px; line-height: 20px; }
.activity-card .card__title, .circadian-card .card__title { font-size: 24px; line-height: 32px; letter-spacing: -.02em; }
.circadian-clinical .card__title { font-size: 20px; line-height: 28px; }
.card__badge, .metric-delta, .heart-card__aside, .heart-chart-key, .baseline-note, .stage-legend, .sleep-detail__times { font-size: 12px; line-height: 16px; }
.stage-legend { gap: 12px 16px; flex-wrap: wrap; }
.activity-row { font-size: 14px; line-height: 20px; }
.clinical-rule__head strong, .circadian-card .clinical-rule__head strong { font-size: 14px; line-height: 20px; }
.clinical-rule__evidence span, .circadian-card .clinical-rule__evidence span { font-size: 12px; line-height: 16px; }
.evidence-disclosure > summary { min-height: 40px; padding: 8px 0; font-size: 14px; line-height: 20px; }
.scale-panel { padding: 32px; border-radius: 24px; }
.scale-panel h2 { font-size: 24px; line-height: 32px; font-weight: 600; }
.scale-meta, .scale-footnote, .scale-legend { font-size: 12px; line-height: 16px; }
.scale-panel__head { margin-bottom: 24px; }
.scale-segment { flex-wrap: wrap; }
.scale-segment button { font-size: 14px; line-height: 20px; }
.scale-tooltip { padding: 16px; font-size: 12px; line-height: 16px; }
.scale-tooltip small { font-size: 12px; line-height: 16px; }
.day-sheet .clinical-sheet__head h2 { font-size: 18px; line-height: 28px; }
.day-recovery > strong { font-size: 48px; }
.day-window, .day-metrics dt, .day-context p, .day-sheet-footer > span, .sync-progress { font-size: 12px; line-height: 16px; }
.day-metrics dd { font-size: 18px; line-height: 28px; }
.day-ask::before { margin-right: 8px; }
.sensitivity-head h2 { font-size: 24px; line-height: 32px; }
.sensitivity-item h3 { font-size: 14px; line-height: 20px; }
.sensitivity-groups, .sensitivity-metrics dt, .sensitivity-feedback { font-size: 12px; line-height: 16px; }
.sensitivity-metrics dd { font-size: 18px; line-height: 28px; }
.page-footer { gap: 16px; padding: 32px 0; flex-wrap: wrap; font-size: 12px; line-height: 16px; color: var(--muted-strong); }
.copilot-launch { bottom: 24px; right: 24px; min-height: 48px; padding: 8px 16px 8px 8px; gap: 12px; background: var(--ink-button); color: var(--on-ink); font-size: 14px; line-height: 20px; box-shadow: var(--shadow-float); transition: transform 500ms var(--spring), opacity 300ms var(--spring); }
.copilot-launch__orb { background: var(--bio-teal); color: var(--on-accent); }
.copilot-launch kbd { font-family: var(--font); }
.copilot-drawer, html[data-theme="dark"] .copilot-drawer { background: var(--bio-paper); }
.copilot-orb { background: var(--bio-teal); }
.copilot-header h2 { font-size: 20px; line-height: 28px; }
.copilot-context, .copilot-footnote, .message__meta, .copilot-identity > div > span, .memory-item strong, .memory-item p { font-size: 12px; line-height: 16px; }
.copilot-welcome__title { font-size: 30px; line-height: 36px; }
.copilot-welcome, .message__bubble, .rich-summary, .clinical-method { font-size: 16px; line-height: 24px; }
.rich-verdict { background: var(--bio-surface); }
.clinical-method h3 { font-size: 18px; line-height: 28px; }
.clinical-inputs, .clinical-source p, .evidence-chip { font-size: 12px; line-height: 16px; }
.copilot-composer textarea, .field input, .field select, .field textarea, .login-form input { font-size: 16px; line-height: 24px; }
.breath-orb { background: color-mix(in srgb, var(--bio-teal) 8%, transparent); }
.breath-start { color: var(--on-accent); }
.breath-session, .breath-consent, .breath-safety, .breath-method { font-size: 12px; line-height: 16px; }
.auth-gate { grid-template-columns: 1fr; place-items: center; background: var(--bg); }
.auth-panel { width: min(480px, 100%); margin: 0; padding: 32px; }
.auth-panel__copy h1 { font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.auth-panel__copy p { font-size: 16px; line-height: 24px; }
.auth-panel__copy > span, .auth-panel__foot, .login-form label { font-size: 12px; line-height: 16px; }
.auth-art { display: none; }
.sync-popover, .account-menu { background: var(--surface-strong); box-shadow: var(--shadow-float); }
.account-menu button { min-height: 40px; font-size: 14px; line-height: 20px; }
.reveal { opacity: 1; transform: none; animation: none; transition: transform 700ms var(--spring), opacity 700ms var(--spring); }
html[data-theme] .card.reveal { transition-duration: 700ms; }
.reveal.is-pending { opacity: 0; transform: translateY(32px); }
.is-ready .topbar { animation: surface-arrive 700ms var(--spring) both; }
.is-ready .hero__copy { animation: surface-arrive 700ms var(--spring) 60ms both; }
@keyframes surface-arrive { from { opacity: .3; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes surface-breathe { from { opacity: .45; } to { opacity: 1; } }
@media (hover: hover) {
  .bio-breathe:hover { filter: none; }
  .bio-breathe:hover, .day-ask:hover, .sync-trigger:hover, .primary-button:hover, #loginButton:hover { opacity: .82; transform: translateY(-2px); }
  .period-switch__button:not(.is-active):hover, .bio-system-tabs button:hover { color: var(--bio-teal); }
}
@media (min-width: 1101px) {
  .bio-figure { top: 112px; }
  .bento > .circadian-card { gap: 16px 24px; }
}
@media (max-width: 1100px) {
  .hero h1 { font-size: 48px; line-height: 1; }
  .page-shell { width: calc(100% - 64px); }
  .bio-layout { gap: 24px; }
  .bio-controls { padding: 24px; }
  .bio-title { flex-wrap: wrap; }
  .clinical-playbook { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scale-kpi__value { font-size: 30px; line-height: 36px; }
  .brief-lead { grid-template-columns: 1fr; }
  .brief-pillars { justify-content: flex-start; }
}
@media (max-width: 1000px) {
  #syncLabel { display: none; }
  .time-capsule__context { flex-direction: row; }
}
@media (max-width: 800px) {
  .topbar { top: 8px; margin-top: 8px; padding: 12px; grid-template-columns: 1fr auto; gap: 8px 16px; border-radius: 24px; }
  .time-capsule { width: 100%; gap: 8px; }
  .period-switch { width: 100%; }
  .hero { padding: 48px 0 32px; }
  .vitals-grid { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .scale-kpi, .scale-kpi:last-child { flex: 0 0 144px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; scroll-snap-align: start; }
  .scale-kpi:nth-child(n) { padding-top: 0; border: 0; }
  .scale-kpi:last-child .scale-kpi__detail { grid-column: auto; }
  .bio-stage { height: 440px; }
  .bio-title { gap: 4px 8px; }
  .bio-mode { flex-shrink: 0; }
  .bio-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .bio-controls > :not(.bio-slider), .bio-slider:last-of-type { grid-column: 1 / -1; }
  .bio-controls .bio-slider__head { flex-direction: column; align-items: flex-start; }
  .bio-controls .bio-slider:last-of-type .bio-slider__head { flex-direction: row; align-items: baseline; }
  .bio-presets { margin: 0; }
  .bio-controls .bio-estimate-note, .bio-controls .bio-breathe { margin-top: 0; }
  .circadian-card .card__title { font-size: 20px; line-height: 28px; }
  .rhythm-pause { min-height: 280px; padding: 64px 0; }
  #dailyBriefing, #bioTwin, #timeScaleView, .bento { scroll-margin-top: 192px; }
  .page-footer { padding-bottom: 96px; }
}
@media (max-width: 540px) {
  .page-shell { width: calc(100% - 32px); }
  .topbar { width: calc(100% - 24px); }
  .hero__copy { gap: 12px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .hero__insight { font-size: 16px; line-height: 24px; }
  .hero .eyebrow { font-size: 12px; line-height: 16px; }
  .vitals-strip, .bio-twin, .daily-briefing, .scale-panel, html[data-theme] .card { padding: 24px; }
  .vitals-strip__header { gap: 8px; }
  .vitals-strip__meta { max-width: 60%; font-size: 12px; }
  .vitals-strip__header h2 { font-size: 14px; line-height: 20px; }
  .bio-header { flex-wrap: wrap; gap: 16px; }
  .bio-title h2 { font-size: 24px; line-height: 32px; }
  .bio-scale-badge { order: 0; flex-basis: auto; margin: 0; }
  .bio-layout { margin-top: 24px; }
  .bio-timestamp { flex-wrap: wrap; gap: 8px; }
  .bio-stage { height: 400px; }
  .bio-readout { width: 88px; padding: 8px; }
  .bio-readout span { font-size: 12px; line-height: 16px; }
  .bio-readout strong { font-size: 20px; line-height: 28px; }
  .bio-detail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bio-detail-metrics strong { font-size: 20px; line-height: 28px; }
  .bio-controls { padding: 24px 16px; }
  .bio-control-head h3 { font-size: 20px; line-height: 28px; }
  .bio-preset { padding: 12px 8px; min-height: 96px; }
  .bio-controls .bio-slider input[type="range"] { height: 40px; }
  .bio-controls .bio-estimate strong { font-size: 30px; line-height: 36px; }
  .bio-controls .bio-estimate--time strong { font-size: 16px; line-height: 24px; }
  .rhythm-pause p { font-size: 36px; line-height: 40px; }
  .brief-lead h3 { font-size: 30px; line-height: 36px; }
  .brief-pillars { gap: 16px; }
  .brief-pillar { min-width: 64px; }
  .brief-pillar svg { width: 64px; }
  .clinical-playbook, .clinical-playbook.is-compact { grid-template-columns: 1fr; }
  .rx-tile { padding: 24px; }
  .brief-tools { flex-wrap: wrap; gap: 8px; }
  .brief-footer { flex-wrap: wrap; }
  .context-capsule { padding: 16px; gap: 8px; flex-wrap: wrap; }
  #contextPreview { font-size: 12px; }
  .context-capsule svg { margin-left: auto; }
  .context-note-row { flex-wrap: wrap; gap: 8px; }
  .context-note-row input { flex: 1 1 100%; min-height: 48px; }
  .context-note-row button { margin-left: auto; }
  .scale-panel h2 { font-size: 20px; line-height: 28px; }
  .correlation-grid .scale-panel, .month-corridors .scale-panel { padding: 24px; }
  .scale-segment button { font-size: 12px; line-height: 16px; }
  .copilot-launch { bottom: calc(16px + env(safe-area-inset-bottom)); right: 16px; }
  .copilot-launch > span:nth-child(2), .copilot-launch kbd { display: none; }
  .copilot-launch { padding: 8px; min-height: 48px; }
  .copilot-drawer { top: max(8px, env(safe-area-inset-top)); right: 0; bottom: 0; width: 100%; border-radius: 24px 24px 0 0; }
  .auth-panel { padding: 24px; }
  .auth-panel__copy h1 { font-size: 48px; line-height: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .has-word-reveal .rhythm-word { opacity: 1; }
  .day-sheet[open], .is-ready .topbar, .is-ready .hero__copy { animation: none; }
}
