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

:root {
  color-scheme: light;
  --page: #faf8f4;
  --surface: #fff;
  --soft: #f7f8f8;
  --ink: #242729;
  --muted: #50565f;
  --line: #e6e8e7;
  --orange: #ff742b;
  --orange-dark: #a43a08;
  --orange-soft: #fff0e3;
  --coral: #ad3747;
  --coral-soft: #ffd6d5;
  --violet: #6540a6;
  --violet-soft: #ddccff;
  --amber: #985012;
  --amber-soft: #ffe2ac;
  --green: #246748;
  --green-soft: #b8ecd5;
  --coral-bright: #f03c68;
  --violet-bright: #9563ed;
  --green-bright: #3db98a;
  --orange-back: #ffdcb5;
  --violet-back: #d8c5ff;
  --green-back: #c9f1dd;
  --graph: #f9c79f;
  --graph-light: #ffede0;
  --graph-side: #dd9e6c;
  --shadow-rgb: 41 48 46;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 28px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;
  --caption: 12px;
  --micro: 11px;
  --small: 13px;
  --body: 16px;
  --control: 14px;
  --heading: 18px;
  --reading: 28px;
  --display: 52px;
  --radius: 28px;
  --radius-small: 16px;
  --radius-control: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 2px 3px rgb(var(--shadow-rgb) / .025), 0 20px 48px rgb(var(--shadow-rgb) / .055);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background: radial-gradient(ellipse at 85% 0%, var(--violet-soft), transparent 45%), radial-gradient(ellipse at 0% 45%, var(--orange-soft), transparent 55%), var(--page);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--orange-dark);
  outline-offset: 5px;
}
button:disabled { color: var(--muted); }
h1, h2, h3, p, figure { margin: 0; }
svg { display: block; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: absolute; left: var(--s6); top: -100px; z-index: 11; padding: var(--s3); background: var(--surface); color: var(--ink); }
.skip-link:focus { top: var(--s3); }
.page { width: min(1200px, calc(100% - 96px)); margin: 0 auto; padding: var(--s10) 0 var(--s7); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); min-height: 48px; }
.identity { display: flex; gap: var(--s3); align-items: center; font-size: var(--heading); font-weight: 750; letter-spacing: -.025em; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: var(--orange); color: var(--surface); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 4px 8px rgb(var(--shadow-rgb) / .1); }
.icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 auto; background: currentColor; mask: var(--icon) center / contain no-repeat; -webkit-mask: var(--icon) center / contain no-repeat; }
.icon-heart { --icon: url("./assets/heartbeat.svg"); }
.icon-replay { --icon: url("./assets/arrow-counter-clockwise.svg"); }
.icon-weight { --icon: url("./assets/scales.svg"); }
.icon-energy { --icon: url("./assets/lightning.svg"); }
.icon-muscle { --icon: url("./assets/barbell.svg"); }
.icon-walk { --icon: url("./assets/person-simple-walk.svg"); }
.icon-cube { --icon: url("./assets/cube.svg"); }
.toolbar { display: flex; gap: var(--s2); align-items: center; }
.control {
  border: 1px solid var(--line);
  background: rgb(255 255 255 / .72);
  border-radius: var(--radius-control);
  min-height: 44px;
  padding: var(--s2) var(--s4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-size: var(--control);
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 180ms, transform 180ms var(--ease);
}
.control .icon { width: 18px; height: 18px; }
.control:hover:not(:disabled) { background: var(--surface); }
.control:active:not(:disabled) { transform: scale(.97); }
.switch-track { display: inline-flex; align-items: center; width: 28px; height: 17px; padding: 3px; border-radius: 20px; background: var(--muted); }
.switch-track::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); transform: translateX(0); transition: transform 280ms var(--ease); }
[aria-pressed="true"] .switch-track { background: var(--orange-dark); }
[aria-pressed="true"] .switch-track::after { transform: translateX(11px); }
.intro-row { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; min-height: 222px; gap: var(--s8); padding: var(--s5) 0; }
h1 { font-size: clamp(36px, 4vw, var(--display)); line-height: 1.16; font-weight: 650; letter-spacing: -.055em; }
h1 span { color: var(--violet); }
.intro-copy p { color: var(--muted); margin-top: var(--s4); font-size: var(--control); }
.sample-label { display: inline-flex; gap: var(--s2); align-items: center; font-size: var(--caption); color: var(--muted); }
.sample-label::before { content: ""; width: 16px; height: 1px; background: var(--muted); }
.instrument { position: relative; width: 360px; height: 228px; margin-left: auto; perspective: 900px; }
.health-scene { position: absolute; inset: -20px 0; opacity: 0; transition: opacity 240ms ease-out; }
.health-scene canvas { width: 100%; height: 100%; display: block; }
.instrument[data-ready="true"] .health-scene { opacity: 1; }
.instrument[data-ready="true"] .heart-fallback { visibility: hidden; }
[data-depth="off"] .instrument .health-scene { visibility: hidden; }
[data-depth="off"] .instrument .heart-fallback { visibility: visible; }
.instrument::after { content: ""; position: absolute; width: 220px; height: 24px; left: 76px; bottom: 0; border-radius: 50%; background: rgb(var(--shadow-rgb) / .09); filter: blur(12px); pointer-events: none; }
.heart-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--coral); }
.heart-fallback .icon { width: 55%; height: 70%; }
.dashboard { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s7); }
.metrics { display: grid; grid-template-rows: repeat(4, 1fr); gap: var(--s4); }
.depth-host { perspective: 1100px; min-width: 0; min-height: 0; }
.surface { position: relative; background: linear-gradient(135deg, var(--surface), var(--surface) 58%, var(--soft)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 0 1px 0 var(--surface), var(--shadow); transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.surface.is-settling { transition: transform 280ms var(--ease); }
.metric-card { display: flex; align-items: center; gap: var(--s5); padding: var(--s6); min-height: 112px; height: 100%; background: linear-gradient(115deg, var(--tone-soft), var(--tone-back)); border-color: rgb(255 255 255 / .8); }
.metric-main { min-width: 0; transform: translateZ(0); }
.metric-title { font-size: var(--caption); font-weight: 650; color: var(--tone); margin-bottom: var(--s1); }
.metric-value { font-size: var(--reading); font-weight: 650; letter-spacing: -.045em; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-value small { font-size: var(--control); font-weight: 500; letter-spacing: 0; color: var(--tone); margin-left: var(--s1); }
.metric-status { font-size: var(--small); color: var(--tone); margin-top: var(--s1); }
.icon-well { width: 48px; height: 48px; border-radius: var(--radius-small); display: grid; place-items: center; flex: 0 0 auto; transform: translateZ(24px); background: rgb(255 255 255 / .6); color: var(--tone); box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 4px 8px rgb(var(--shadow-rgb) / .03); }
.tone-weight { --tone: var(--coral); --tone-soft: var(--coral-soft); --tone-back: var(--orange-back); }
.tone-energy { --tone: var(--violet); --tone-soft: var(--violet-soft); --tone-back: var(--violet-back); }
.tone-muscle { --tone: var(--amber); --tone-soft: var(--amber-soft); --tone-back: var(--orange-back); }
.tone-walk { --tone: var(--green); --tone-soft: var(--green-soft); --tone-back: var(--green-back); }
.mini-visual { margin-left: auto; width: 88px; height: 40px; color: var(--tone); transform: translateZ(30px); flex: 0 0 auto; }
.mini-visual svg { width: 100%; height: 100%; overflow: visible; }
.mini-visual path, .mini-visual polyline { stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.energy-bars { display: flex; align-items: flex-end; justify-content: flex-end; gap: 5px; padding: 0 var(--s1); }
.energy-bars i { display: block; width: 6px; border-radius: 3px; background: var(--tone); opacity: .25; height: var(--height); transform-origin: center bottom; }
.energy-bars i:nth-child(2n) { opacity: .65; }
.energy-bars i:last-child { opacity: 1; }
.week-days { display: flex; gap: 5px; align-items: center; font-size: var(--caption); color: var(--tone); }
.week-days .today { color: var(--amber); font-weight: 750; position: relative; }
.week-days .today::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: currentColor; bottom: -9px; }
.score-card { height: 100%; padding: var(--s7); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); transform: translateZ(0); }
.panel-heading h2 { font-size: var(--heading); font-weight: 750; letter-spacing: -.025em; }
.panel-heading p { font-size: var(--small); color: var(--muted); margin-top: var(--s1); }
.periods { display: flex; align-items: center; gap: var(--s1); padding: var(--s1); border-radius: 14px; background: var(--soft); }
.periods button { min-height: 44px; padding: var(--s2) var(--s3); border: 0; border-radius: 10px; background: transparent; font-size: var(--caption); font-weight: 650; transition: background-color 180ms, color 180ms; }
.periods button:hover:not(.selected) { background: var(--line); }
.periods button { min-width: 44px; }
.periods .selected { background: var(--ink); color: var(--surface); box-shadow: 0 2px 4px rgb(var(--shadow-rgb) / .12); }
.score-line { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s4); transform: translateZ(0); }
.score-number { font-size: 64px; font-weight: 500; letter-spacing: -.065em; line-height: 1; font-variant-numeric: tabular-nums; }
.score-description { color: var(--muted); font-size: var(--caption); line-height: 1.6; }
.score-description strong { color: var(--orange-dark); display: block; font-weight: 650; }
.chart { position: relative; margin: var(--s4) 0 var(--s5); padding-top: var(--s3); transform: translateZ(0); }
.plot { position: relative; height: 146px; display: grid; grid-template-columns: repeat(var(--columns, 7), minmax(0, 1fr)); gap: var(--s3); padding: 0 var(--s2); }
.plot::before, .plot::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); pointer-events: none; }
.plot::before { top: 22%; opacity: .45; }
.plot::after { top: 72%; opacity: .45; }
.average-line { position: absolute; left: 0; right: 0; bottom: calc(28px + (100% - 28px) * var(--average, .63)); border-top: 1px dashed var(--graph-side); pointer-events: none; z-index: 1; }
.average-label { display: inline-block; position: absolute; left: -4px; top: -13px; font-size: var(--caption); padding: 3px 7px; background: var(--ink); color: var(--surface); border-radius: 6px; box-shadow: 0 2px 4px rgb(var(--shadow-rgb) / .08); }
.bar-column { position: relative; min-width: 0; display: flex; align-items: center; justify-content: flex-end; flex-direction: column; padding-bottom: var(--s7); }
.bar-graphic { width: 65%; max-width: 38px; height: var(--bar-height); position: relative; border-radius: 6px 2px 0 0; background: linear-gradient(90deg, var(--graph-light), var(--graph)); transform-origin: center bottom; box-shadow: 4px 6px 8px rgb(var(--shadow-rgb) / .025); }
.bar-graphic::after { content: ""; position: absolute; top: 2px; bottom: 0; right: -6px; width: 6px; background: var(--graph-side); transform: skewY(-35deg); transform-origin: left top; border-radius: 0 3px 0 0; }
.bar-graphic::before { content: ""; position: absolute; top: -4px; left: 2px; right: -3px; height: 6px; background: var(--surface); transform: skewX(-55deg); border-radius: 4px 4px 0 0; }
.bar-column.featured .bar-graphic { background: linear-gradient(90deg, var(--orange), var(--orange)); }
.bar-column.featured .bar-graphic::after { background: var(--orange-dark); }
.bar-column.featured .bar-graphic::before { background: var(--orange); }
.bar-label { position: absolute; bottom: 0; font-size: var(--caption); color: var(--muted); }
.bar-column.featured .bar-label { color: var(--orange-dark); font-weight: 750; background: var(--orange-soft); border-radius: 6px; padding: 1px 6px; }
.chart-caption { margin-top: var(--s3); color: var(--muted); font-size: var(--caption); }
.summaries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); transform: translateZ(0); }
.summary { border-radius: var(--radius-small); background: var(--tone-soft); padding: var(--s3) var(--s2); text-align: center; }
.summary .icon { color: var(--tone); width: 22px; height: 22px; margin-bottom: var(--s1); }
.summary h3 { color: var(--tone); font-size: var(--caption); font-weight: 600; }
.summary p { font-size: var(--heading); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.025em; margin-top: 2px; white-space: nowrap; }
.summary small { font-size: var(--caption); font-weight: 500; }
.bottom-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s6); margin-top: var(--s7); font-size: var(--caption); color: var(--muted); }
.data-note { max-width: 540px; }
.data-note summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: var(--s2); list-style: none; width: fit-content; }
.data-note summary::-webkit-details-marker { display: none; }
.data-note summary::after { content: "+"; font-size: var(--heading); }
.data-note[open] summary::after { content: "−"; }
.data-note p { padding-bottom: var(--s3); font-size: var(--small); line-height: 1.8; }
.footer-caption { padding-top: var(--s3); text-align: right; }
.welcome { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, var(--surface), var(--violet-soft) 150%); z-index: 10; pointer-events: none; visibility: hidden; }
.welcome-mark { display: flex; flex-direction: column; align-items: center; gap: var(--s5); color: var(--muted); font-size: var(--control); font-weight: 600; letter-spacing: -.02em; }
.welcome-symbol { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 32px; background: var(--coral-bright); color: var(--surface); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 16px 40px rgb(173 55 71 / .2); }
.welcome-symbol .icon { width: 62px; height: 62px; }
.motion-note { font-size: var(--caption); color: var(--muted); }
@keyframes energy-rhythm { 0%,100% { transform: scaleY(.68); } 50% { transform: scaleY(1); } }
.energy-bars i { animation: energy-rhythm 2.4s ease-in-out infinite paused; }
.energy-bars i:nth-child(2n) { animation-delay: -.8s; }
.energy-bars i:nth-child(3n) { animation-delay: -1.6s; }
[data-motion="on"][data-entering="false"] .energy-bars i { animation-play-state: running; }
[data-depth="off"] .surface { transform: none; transform-style: flat; }
[data-depth="off"] .metric-main, [data-depth="off"] .mini-visual, [data-depth="off"] .icon-well,
[data-depth="off"] .panel-heading, [data-depth="off"] .score-line, [data-depth="off"] .chart, [data-depth="off"] .summaries { transform: none; }
[data-depth="off"] .bar-graphic::before, [data-depth="off"] .bar-graphic::after { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-depth="on"][data-motion="on"] .depth-host:hover .metric-main { transform: translateZ(18px); }
  [data-depth="on"][data-motion="on"] .depth-host:hover .panel-heading { transform: translateZ(16px); }
  [data-depth="on"][data-motion="on"] .depth-host:hover .score-line { transform: translateZ(24px); }
  [data-depth="on"][data-motion="on"] .depth-host:hover .chart { transform: translateZ(18px); }
  [data-depth="on"][data-motion="on"] .depth-host:hover .summaries { transform: translateZ(20px); }
}

@media (min-width: 1600px) { .page { padding-top: var(--s16); } .intro-row { min-height: 250px; } }
@media (max-width: 1100px) {
  .page { width: calc(100% - 48px); }
  .dashboard { gap: var(--s5); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .metric-card { gap: var(--s3); padding: var(--s5); }
  .mini-visual { width: 64px; }
  .week-days { gap: 3px; font-size: 11px; }
  .score-card { padding: var(--s6); }
  .panel-heading { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .intro-row { grid-template-columns: minmax(0, 1fr) 280px; }
  .instrument { width: 280px; }
  .dashboard { grid-template-columns: 1fr; gap: var(--s6); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .metric-card { min-height: 128px; }
  .panel-heading { align-items: center; flex-wrap: nowrap; }
  .plot { height: 190px; }
  .score-card { padding: var(--s8); }
  .score-line { margin-top: var(--s6); }
  .score-number { font-size: 64px; }
}
@media (max-width: 600px) {
  .page { width: calc(100% - 40px); padding-top: var(--s6); }
  .topbar { align-items: flex-start; gap: var(--s3); flex-wrap: wrap; }
  .identity { font-size: var(--body); min-height: 44px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .toolbar { gap: var(--s2); flex-wrap: wrap; }
  .control { padding: var(--s2) var(--s3); font-size: var(--caption); }
  .control .icon-replay { width: 16px; height: 16px; }
  .intro-row { grid-template-columns: minmax(0, 1fr) 128px; gap: var(--s2); min-height: 208px; padding: var(--s6) 0; }
  h1 { font-size: clamp(30px, 7.8vw, 36px); letter-spacing: -.05em; }
  .intro-copy p { font-size: var(--small); max-width: 195px; margin-top: var(--s3); }
  .instrument { width: 128px; height: 150px; }
  .health-scene { inset: -8px -12px; }
  .instrument::after { width: 100px; left: 12px; bottom: 4px; height: 12px; }
  .metrics { gap: var(--s3); }
  .metric-card { padding: var(--s4); gap: 0; align-items: flex-start; flex-direction: column; min-height: 184px; border-radius: 22px; }
  .icon-well { width: 36px; height: 36px; border-radius: 12px; margin-bottom: var(--s3); }
  .icon-well .icon { width: 20px; height: 20px; }
  .metric-title { font-size: var(--caption); }
  .metric-value { font-size: var(--reading); }
  .metric-value small { font-size: var(--caption); }
  .metric-status { font-size: var(--caption); }
  .mini-visual { position: absolute; width: 50px; height: 28px; right: var(--s4); top: var(--s5); }
  .week-days { width: auto; font-size: var(--micro); gap: 2px; }
  .score-card { padding: var(--s5); border-radius: 24px; }
  .panel-heading { gap: var(--s4); align-items: flex-start; flex-direction: column; }
  .periods { align-self: stretch; }
  .periods button { flex: 1; }
  .score-line { margin-top: var(--s6); }
  .score-number { font-size: 52px; }
  .chart { margin-top: var(--s5); }
  .plot { height: 166px; gap: var(--s2); padding: 0 var(--s1); }
  .bar-graphic { width: 60%; }
  .average-label { font-size: var(--micro); }
  .bar-label { font-size: 11px; }
  .summaries { gap: var(--s2); }
  .summary { padding: var(--s3) var(--s1); border-radius: 12px; }
  .summary p { font-size: var(--body); }
  .summary small { font-size: var(--micro); }
  .bottom-bar { flex-direction: column; gap: 0; margin-top: var(--s4); }
  .footer-caption { text-align: left; padding-top: var(--s1); }
}
@media (max-width: 359px) {
  .page { width: calc(100% - 32px); }
  .intro-row { grid-template-columns: 1fr 104px; }
  h1 { font-size: 28px; }
  .instrument { width: 104px; transform: scale(.82); transform-origin: center; }
  .health-scene { inset: -8px -4px; }
  .metrics { grid-template-columns: 1fr; }
  .metric-card { min-height: 116px; flex-direction: row; align-items: center; gap: var(--s4); }
  .icon-well { margin-bottom: 0; }
  .mini-visual { display: none; }
  .summary p { font-size: var(--control); }
}
.summary { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: var(--s2); align-items: center; text-align: left; padding: var(--s3); }
.summary .icon { grid-row: 1 / 3; margin: 0; }
.summary p { margin-top: 0; }
.bottom-bar { position: relative; }
.data-note[open] p { position: absolute; left: 0; bottom: 100%; z-index: 3; width: min(520px, 100%); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }

@media (min-width: 701px) {
  .page { --hero-height: clamp(100px, calc(100dvh - 560px), 200px); width: min(1200px, calc(100% - 48px)); padding: clamp(12px, 2.5dvh, 28px) 0 8px; }
  .intro-row { grid-template-columns: minmax(0, 1fr) 280px; height: var(--hero-height); min-height: 0; padding: 8px 0; }
  h1 { font-size: clamp(34px, 5.5dvh, 48px); }
  .intro-copy p { margin-top: 8px; }
  .instrument { width: 280px; height: 100%; max-height: 200px; }
  .health-scene { inset: 0; }
  .instrument::after { width: 140px; height: 12px; left: 70px; bottom: 4px; }
  .dashboard { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; height: clamp(414px, calc(100dvh - var(--hero-height) - 124px), 510px); }
  .dashboard > * { min-height: 0; }
  .metrics { grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .metric-card { min-height: 0; padding: 12px 20px; }
  .score-card { display: flex; flex-direction: column; padding: 20px; min-height: 0; }
  .panel-heading { flex-wrap: nowrap; align-items: center; }
  .score-line { margin-top: 12px; }
  .score-number { font-size: 52px; }
  .chart { display: grid; grid-template-rows: minmax(0, 1fr) auto; flex: 1; min-height: 90px; margin: 8px 0 12px; padding-top: 8px; }
  .plot { height: 100%; min-height: 0; }
  .chart-caption { margin-top: 6px; }
  .bottom-bar { margin-top: 6px; }
  .data-note summary { min-height: 36px; }
  .footer-caption { padding-top: 8px; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .dashboard { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 16px; }
  .metric-card { gap: 12px; padding: 12px; }
  .mini-visual { display: none; }
  .icon-well { width: 36px; height: 36px; border-radius: 12px; }
  .score-card { padding: 16px; }
  .panel-heading { gap: 8px; }
  .panel-heading h2 { font-size: 16px; }
  .periods button { padding-inline: 10px; }
  .summary { padding: 10px 8px; column-gap: 6px; }
}
@media (min-width: 701px) and (max-height: 680px) {
  .intro-copy p { display: none; }
  .metric-title, .metric-status { margin-block: 0; }
  .metric-value { font-size: 26px; }
  .score-card { padding: 16px; }
  .score-line { margin-top: 6px; }
  .score-number { font-size: 44px; }
}
@media (max-width: 700px) {
  .page { width: calc(100% - 32px); padding: 12px 0 8px; }
  .topbar { gap: 4px; }
  .identity { min-height: 36px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .toolbar { width: 100%; gap: 6px; }
  .control { flex: 1; padding: 6px 8px; }
  .intro-row { min-height: 0; height: clamp(104px, 15dvh, 136px); grid-template-columns: minmax(0, 1fr) 116px; padding: 8px 0; }
  h1 { font-size: clamp(28px, 7.6vw, 36px); }
  .intro-copy p { display: none; }
  .instrument { width: 116px; height: 112px; transform: none; }
  .health-scene { inset: 0; }
  .instrument::after { width: 80px; left: 18px; bottom: 4px; }
  .dashboard { gap: 12px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 8px; }
  .metric-card { min-height: 90px; flex-direction: row; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; }
  .icon-well { width: 28px; height: 28px; border-radius: 10px; margin: 0; transform: none; }
  .icon-well .icon { width: 18px; height: 18px; }
  .metric-title { font-size: 11px; margin-bottom: 0; }
  .metric-value { font-size: 23px; }
  .metric-value small { font-size: var(--micro); margin-left: 0; }
  .metric-status { font-size: var(--caption); margin-top: 0; }
  .mini-visual { display: none; }
  .score-card { padding: 14px; border-radius: 20px; }
  .panel-heading { flex-direction: row; align-items: center; gap: 8px; }
  .panel-heading h2 { font-size: 14px; }
  .panel-heading p { font-size: var(--caption); }
  .periods { padding: 2px; gap: 0; align-self: auto; }
  .periods button { padding: 6px; font-size: 11px; }
  .score-line { margin-top: 8px; gap: 12px; }
  .score-number { font-size: 40px; }
  .score-description { font-size: var(--caption); }
  .chart { margin: 6px 0 10px; padding-top: 0; }
  .plot { height: clamp(92px, 13dvh, 126px); gap: 8px; }
  .chart-caption { font-size: var(--micro); margin-top: 6px; }
  .summaries { gap: 6px; }
  .summary { padding: 8px 6px; grid-template-columns: 18px minmax(0, 1fr); gap: 0 4px; }
  .summary .icon { width: 18px; height: 18px; }
  .summary h3 { font-size: var(--micro); }
  .summary p { font-size: 14px; }
  .summary small { font-size: var(--micro); }
  .bottom-bar { margin-top: 4px; }
  .data-note summary { min-height: 44px; }
  .footer-caption { display: none; }
  .motion-note { font-size: var(--caption); }
}
@media (max-width: 359px) {
  .page { padding-top: 8px; }
  .icon-well { display: none; }
  .intro-row { height: 82px; }
  .instrument { height: 84px; }
  .metric-card { min-height: 82px; padding: 8px 12px; }
  .score-card { padding: 12px; }
  .chart { margin-block: 4px 8px; }
  .panel-heading h2 { font-size: 13px; }
  .periods button { padding: 5px; font-size: var(--micro); }
  .summary { grid-template-columns: 1fr; text-align: center; padding-block: 6px; }
  .summary .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .welcome { display: none; }
  .surface { transform: none; }
}
