:root {
  --paper: #f4f0e5;
  --card: #fffdf7;
  --ink: #173a32;
  --muted: #586a64;
  --quiet: #2f8f68;
  --watch: #d69832;
  --loud: #cf5f4c;
  --rule: #d8d3c5;
  --panel: #102c27;
  --shadow: 0 20px 60px rgba(29, 54, 47, .12);
  --sans: "Segoe UI", Arial, sans-serif;
  --serif: Georgia, Cambria, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #77b9a0; outline-offset: 3px; }

.site-header { max-width: 1240px; margin: 0 auto; min-height: 66px; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(23,58,50,.13); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; padding: 4px; background: var(--ink); border-radius: 5px; }
.brand-mark i { display: block; background: var(--card); border-radius: 2px 2px 0 0; }
.brand-mark i:nth-child(1) { height: 32%; }.brand-mark i:nth-child(2) { height: 62%; }.brand-mark i:nth-child(3) { height: 90%; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a, .site-footer nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 650; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--ink); }

main { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
tool-feedback {
  display: block;
  --feedback-ink: var(--ink);
  --feedback-sans: var(--sans);
  --feedback-display: var(--serif);
  --feedback-accent: #247554;
  --feedback-soft: #e1efe8;
  --feedback-line: var(--rule);
  --feedback-paper: rgba(255, 253, 247, .78);
  --feedback-radius: 10px;
  --feedback-control-radius: 6px;
  --feedback-margin: 14px 0 24px;
}
tool-feedback:defined > .feedback-fallback { display: none; }
.feedback-fallback { min-height: 62px; margin: 14px 0 24px; padding: 11px 14px; display: flex; align-items: baseline; gap: 10px 14px; border: 1px solid var(--rule); border-radius: 10px; background: rgba(255,253,247,.78); }
.feedback-fallback span { color: var(--quiet); font-size: .62rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.feedback-fallback strong { font: 700 1rem/1.15 var(--serif); }
.feedback-fallback small { margin-left: auto; color: var(--muted); font-size: .7rem; }
.eyebrow { margin: 0 0 8px; color: #527168; font-size: .73rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.meter-shell { margin-top: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow); }
.meter-topline { min-height: 56px; padding: 8px 14px 8px 18px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--rule); }
.meter-identity { min-width: 0; display: flex; align-items: baseline; gap: 9px; }
.meter-identity .eyebrow { margin: 0; color: var(--quiet); font-size: .58rem; white-space: nowrap; }
.meter-identity h1 { margin: 0; font: 700 1.16rem/1.05 var(--serif); letter-spacing: -.025em; white-space: nowrap; }
.privacy-dot { width: 9px; height: 9px; border-radius: 50%; background: #a2aaa6; box-shadow: 0 0 0 4px rgba(96,115,109,.12); }
.meter-shell.is-listening .privacy-dot { background: var(--quiet); box-shadow: 0 0 0 4px rgba(47,143,104,.15); }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.text-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.meter-workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .68fr); min-height: 540px; }
.signal-stage { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(80px, .35fr) minmax(155px, .65fr); grid-template-rows: auto 1fr auto; align-items: center; gap: 10px 24px; padding: 18px 38px 16px; background: var(--panel); color: #f8f4e8; isolation: isolate; }
.signal-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to right, transparent, black 40%, black); }
.sound-bands { grid-row: 2; height: 240px; display: flex; align-items: end; justify-content: center; gap: 5px; }
.sound-bands span { width: min(10px, 8%); min-height: 8px; height: 8%; background: rgba(255,255,255,.15); border-radius: 3px 3px 0 0; transform-origin: bottom; transition: height .12s ease, background-color .22s ease, opacity .22s ease; }
.sound-bands span:nth-child(2), .sound-bands span:nth-child(9) { height: 15%; }
.sound-bands span:nth-child(3), .sound-bands span:nth-child(8) { height: 25%; }
.sound-bands span:nth-child(4), .sound-bands span:nth-child(7) { height: 38%; }
.sound-bands span:nth-child(5), .sound-bands span:nth-child(6) { height: 52%; }
.signal-visual { grid-row: 2; min-height: 250px; display: grid; place-items: center; }
.traffic-signal { width: 95px; padding: 13px; display: grid; gap: 11px; background: #091b18; border: 1px solid rgba(255,255,255,.2); border-radius: 42px; box-shadow: inset 0 0 0 5px rgba(255,255,255,.035), 0 18px 30px rgba(0,0,0,.22); }
.light { aspect-ratio: 1; display: block; border-radius: 50%; background: #233e38; box-shadow: inset 0 3px 10px rgba(0,0,0,.5); opacity: .45; transition: opacity .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease; }
.state-quiet .light-green { opacity: 1; background: #54cb91; box-shadow: 0 0 34px rgba(84,203,145,.58), inset 0 2px 5px rgba(255,255,255,.4); transform: scale(1.04); }
.state-watch .light-amber, .state-alert .light-amber { opacity: 1; background: #e6ad4a; box-shadow: 0 0 34px rgba(230,173,74,.52), inset 0 2px 5px rgba(255,255,255,.35); transform: scale(1.04); }
.state-loud .light-red { opacity: 1; background: #e77763; box-shadow: 0 0 38px rgba(231,119,99,.58), inset 0 2px 5px rgba(255,255,255,.35); transform: scale(1.04); }
.cozy-kittens { display: none; position: relative; width: min(680px, 96%); opacity: 1; transform: scale(1); transition: opacity .28s ease, transform .28s ease; }
.cozy-kittens::before { content: ""; position: absolute; width: 92%; aspect-ratio: 1.5; left: 4%; top: -10%; border-radius: 50%; background: rgba(247,232,184,.065); box-shadow: 0 0 0 1px rgba(247,232,184,.07), 0 0 80px rgba(247,232,184,.06); }
.cozy-kittens::after { content: ""; position: absolute; z-index: -1; width: 88%; height: 15%; left: 6%; bottom: 3%; border-radius: 50%; background: rgba(2,18,15,.42); filter: blur(5px); }
.kitten-sprite { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 1.5; filter: drop-shadow(0 15px 12px rgba(1,16,13,.28)); }
.kitten-pose { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: none; }
.state-off .kitten-pose-sleeping, .state-quiet .kitten-pose-sleeping, .state-watch .kitten-pose-one-awake, .state-alert .kitten-pose-two-awake, .state-loud .kitten-pose-shh { opacity: 1; }
.visual-story .traffic-signal { display: none; }.visual-story .cozy-kittens { display: block; }
.meter-shell.view-story .signal-stage { display: grid; place-items: center; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 7px; padding: 14px 28px 14px; overflow: hidden; background: radial-gradient(circle at 50% 70%, #244b50 0, #122f3d 42%, #081b2d 100%); }
.meter-shell.view-story .signal-stage::before { content: ""; position: absolute; z-index: -1; width: clamp(90px, 13vw, 150px); aspect-ratio: 1; top: 7%; right: 9%; border-radius: 50%; background: #fff5c8; box-shadow: 0 0 38px rgba(255,245,200,.34); }
.meter-shell.view-story .signal-stage::after { opacity: .9; mask-image: none; background-image: radial-gradient(circle at 8% 18%, #fff8cf 0 1.4px, transparent 1.9px), radial-gradient(circle at 25% 38%, #d7ecff 0 1px, transparent 1.5px), radial-gradient(circle at 66% 16%, #fff8cf 0 1.2px, transparent 1.7px), radial-gradient(circle at 88% 42%, #d7ecff 0 1.3px, transparent 1.8px); background-size: 210px 180px, 290px 230px, 260px 210px, 330px 260px; }
.meter-shell.view-story .sound-bands { display: none; }
.meter-shell.view-story .signal-visual { width: 100%; min-height: 0; display: grid; place-items: center; }
.meter-shell.view-story .cozy-kittens { width: min(620px, 90%); }
.live-wave { grid-column: 1 / -1; grid-row: 3; width: min(440px, 72%); height: 26px; display: none; align-items: center; justify-content: center; gap: 4px; }
.meter-shell.view-story .live-wave { display: flex; }
.live-wave span { width: 7px; height: 28%; border-radius: 4px; background: rgba(210,230,225,.24); transition: height .12s ease, background-color .14s ease, box-shadow .14s ease; }
.live-wave span:nth-child(2), .live-wave span:nth-child(11) { height: 38%; }
.live-wave span:nth-child(3), .live-wave span:nth-child(10) { height: 52%; }
.live-wave span:nth-child(4), .live-wave span:nth-child(9) { height: 68%; }
.live-wave span:nth-child(5), .live-wave span:nth-child(8) { height: 84%; }
.live-wave span:nth-child(6), .live-wave span:nth-child(7) { height: 100%; }
.live-wave span.is-active { background: #8ed8b8; box-shadow: 0 0 9px rgba(142,216,184,.42); }
.state-watch .live-wave span.is-active, .state-alert .live-wave span.is-active { background: #f0c36c; box-shadow: 0 0 9px rgba(240,195,108,.42); }
.state-loud .live-wave span.is-active { background: #ef8b79; box-shadow: 0 0 9px rgba(239,139,121,.46); }
.goal-display { grid-column: 1 / -1; grid-row: 4; width: min(430px, 78%); justify-self: center; padding: 8px 10px; display: grid; gap: 4px; color: #dbeee7; background: rgba(4,24,32,.56); border: 1px solid rgba(219,238,231,.16); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.goal-display span { color: #a9cfc2; font-size: .58rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.goal-display strong { color: #fff8e7; font: 700 .86rem/1.12 var(--serif); }
.goal-display small { color: #bfd2cc; font-size: .66rem; line-height: 1.25; }
.goal-display-track, .goal-progress { overflow: hidden; height: 7px; background: rgba(23,58,50,.12); border-radius: 999px; }
.goal-display-track { background: rgba(219,238,231,.14); }
.goal-display-track i, .goal-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #8ed8b8; transition: width .2s ease; }
.state-watch .goal-display-track i, .state-alert .goal-display-track i { background: #f0c36c; }
.state-loud .goal-display-track i { background: #ef8b79; }
.goal-display.is-success .goal-display-track i { background: #f7e8b8; }
.self-monitor-display { grid-column: 1 / -1; grid-row: 4; width: min(440px, 82%); justify-self: center; padding: 10px 12px; display: grid; gap: 3px; text-align: center; color: #e7f1ee; background: rgba(5,24,26,.5); border: 1px solid rgba(231,241,238,.18); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.self-monitor-display[hidden] { display: none; }
.self-monitor-display span { color: #aacac1; font-size: .58rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.self-monitor-display strong { color: #fffaf0; font: 700 .98rem/1.1 var(--serif); }
.self-monitor-display small { color: #c5d8d2; font-size: .67rem; line-height: 1.28; }
.meter-shell.view-self-monitor .goal-display, .meter-shell.view-self-monitor .calm-goal-card { display: none; }
.meter-shell.view-self-monitor .signal-stage { background: #133632; }
.meter-shell.view-self-monitor .signal-stage::after { opacity: .18; }
.meter-shell.view-self-monitor .live-wave { display: flex; }
.visual-self .cozy-kittens { display: none; }
.visual-self .traffic-signal { display: grid; width: min(132px, 34vw); padding: 16px; border-radius: 22px; }
.status-copy { max-width: 440px; }
.status-kicker { margin: 0 0 5px; color: #a9c0b8; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.status-copy h2 { margin: 0 0 10px; font: 700 clamp(2rem,4vw,4.6rem)/.93 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
.status-copy p:last-child { margin: 0; color: #bdd0c9; max-width: 42ch; }
.primary-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 14px; }
.primary-actions button { min-width: 0; padding-inline: 10px; white-space: nowrap; font-size: .82rem; }
.primary-button, .secondary-button { min-height: 44px; padding: 10px 17px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; font-weight: 800; cursor: pointer; transition: transform .18s ease, background-color .18s ease, opacity .18s ease; }
.primary-button { color: white; background: var(--ink); border-color: var(--ink); }
.secondary-button { color: var(--ink); background: transparent; border-color: var(--rule); }
.danger-button { border-color: rgba(207,95,76,.55); color: #9f3d2e; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.secondary-button:hover { background: rgba(23,58,50,.06); }
.primary-button:disabled, .secondary-button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.control-board { padding: 22px 22px 18px; background: #fbf8ef; border-left: 1px solid var(--rule); }
.control-heading { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.control-heading > div { min-width: 0; }
.mobile-status-preview { display: none; }
.teacher-status { margin: 0 0 14px; padding: 0 0 13px; border-bottom: 1px solid var(--rule); }
.teacher-status .status-kicker { color: #527168; }
.teacher-status h2 { margin-bottom: 6px; color: var(--ink); font-size: clamp(1.32rem, 2vw, 1.72rem); line-height: 1.04; }
.teacher-status p:last-child { color: var(--muted); font-size: .75rem; line-height: 1.36; }
.microphone-field { margin: 0 0 10px; }
.microphone-field label { display: block; margin-bottom: 4px; color: #527168; font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.microphone-field select { width: 100%; min-height: 39px; padding: 7px 28px 7px 8px; border: 1px solid var(--rule); border-radius: 5px; background: var(--card); color: var(--ink); font-size: .74rem; }
.microphone-field small { display: block; margin-top: 4px; min-height: 1.25em; color: var(--muted); font-size: .64rem; line-height: 1.3; }
fieldset { border: 0; padding: 0; margin: 0; }
.mode-switcher legend, .range-control > span strong { font-size: .86rem; }
.mode-switcher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.mode-switcher legend { grid-column: 1 / -1; margin-bottom: 5px; font-weight: 750; }
.mode-switcher input { position: absolute; opacity: 0; pointer-events: none; }
.mode-switcher span { display: flex; min-height: 52px; padding: 7px 6px; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--rule); border-radius: 6px; color: var(--muted); cursor: pointer; }
.mode-switcher span strong { font-size: .82rem; }
.mode-switcher span small { margin-top: 3px; font-size: .67rem; font-weight: 600; line-height: 1.22; }
.mode-switcher input:checked + span { background: var(--ink); border-color: var(--ink); color: white; }
.mode-switcher input:focus-visible + span { outline: 3px solid #77b9a0; outline-offset: 2px; }
.range-control { display: block; margin-top: 12px; }
.range-control > span { display: flex; align-items: center; justify-content: space-between; }
.range-control output { min-width: 50px; text-align: right; color: var(--quiet); font-weight: 850; font-variant-numeric: tabular-nums; }
.range-values { display: flex; align-items: baseline; gap: 9px; }
.range-values small { display: inline; white-space: nowrap; }
.range-values small output { min-width: 24px; color: var(--muted); font-size: inherit; }
.range-control input { width: 100%; accent-color: var(--quiet); margin: 7px 0 2px; }
.range-control small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.session-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 14px; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.session-grid div { min-width: 0; padding: 8px 6px; text-align: center; }
.session-grid div + div { border-left: 1px solid var(--rule); }
.session-grid span { display: block; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; }
.session-grid strong { display: block; margin-top: 3px; font-size: .96rem; font-variant-numeric: tabular-nums; }
.calm-goal-card { margin-top: 12px; padding: 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.calm-goal-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.calm-goal-heading strong { display: block; font-size: .8rem; }
.calm-goal-heading p { margin: 2px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.3; }
.calm-goal-heading span { flex: 0 0 auto; padding: 3px 7px; color: #17684f; background: #e4f0ea; border-radius: 999px; font-size: .62rem; font-weight: 850; }
.goal-controls { margin-top: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.goal-controls label, .reward-field { display: grid; gap: 4px; color: #527168; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.goal-controls select, .reward-field input { width: 100%; min-height: 34px; padding: 6px 7px; border: 1px solid var(--rule); border-radius: 5px; background: #fbf8ef; color: var(--ink); font-size: .78rem; font-weight: 650; text-transform: none; letter-spacing: 0; }
.reward-field { margin-top: 8px; }
.goal-progress { margin-top: 10px; }
.goal-status { min-height: 2.35em; margin: 7px 0 8px; color: #527168; font-size: .68rem; line-height: 1.3; }
.goal-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; }
.goal-actions .secondary-button { min-height: 34px; padding: 7px 10px; font-size: .75rem; }
.goal-actions .text-button { min-height: 32px; padding: 5px 3px; color: #527168; font-size: .68rem; }
.advanced-controls { margin-top: 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.advanced-controls summary { min-height: 40px; padding: 9px 2px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); cursor: pointer; font-size: .78rem; font-weight: 800; list-style: none; }
.advanced-controls summary::-webkit-details-marker { display: none; }
.advanced-controls summary::after { content: "+"; font-size: 1rem; line-height: 1; }
.advanced-controls[open] summary::after { content: "−"; }
.advanced-controls summary small { margin-left: auto; color: var(--muted); font-size: .66rem; font-weight: 650; }
.advanced-controls-body { padding: 4px 0 14px; }
.advanced-controls .range-control { margin-top: 15px; }
.scene-head { z-index: 2; grid-column: 1 / -1; grid-row: 1; width: 100%; display: grid; grid-template-columns: 1fr; align-items: center; }
.scene-status { width: min(620px,96%); max-width: none; justify-self: center; margin: 0; padding: 7px 10px; border: 1px solid rgba(219,238,231,.11); border-radius: 8px; color: #f8f4e8; background: rgba(4,24,32,.42); }
.scene-status .status-kicker { margin-bottom: 2px; color: #a9cfc2; font-size: .58rem; }
.scene-status h2 { margin: 0 0 3px; color: #fff8e7; font: 700 clamp(1.08rem,1.8vw,1.42rem)/1.05 var(--serif); letter-spacing: -.025em; }
.scene-status p:last-child { margin: 0; max-width: 48ch; color: #bfd2cc; font-size: .63rem; line-height: 1.3; }
.room-match { width: 100%; margin: 0 0 12px; padding: 9px; border: 1px solid var(--rule); border-radius: 7px; background: var(--card); color: var(--ink); }
.room-match > strong { display: block; font-size: .78rem; }
.room-match > p { margin: 2px 0 7px; color: var(--muted); font-size: .67rem; line-height: 1.3; }
.room-match-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.room-match-options button { min-width: 0; min-height: 38px; padding: 5px 3px; border: 1px solid var(--rule); border-radius: 5px; background: var(--card); color: var(--muted); font-size: .65rem; font-weight: 750; line-height: 1.15; cursor: pointer; }
.room-match-options button:hover:not(:disabled) { border-color: var(--quiet); color: var(--ink); }
.room-match-options button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.room-match-options button:disabled { opacity: .48; cursor: not-allowed; }
.room-match .room-match-status { margin: 6px 0 0; min-height: 1.1em; color: #527168; }
.room-match .room-match-reset { min-height: 26px; margin-top: 2px; padding: 2px 0; color: #527168; font-size: .68rem; }
.relative-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .7rem; line-height: 1.4; }
.relative-note strong { color: var(--ink); }

@media (min-width: 981px) {
  .meter-workspace { min-height: 0; height: clamp(480px, calc(100svh - 136px), 540px); }
  .control-board { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
}

.state-quiet .sound-bands span { background: rgba(84,203,145,.7); }
.state-watch .sound-bands span, .state-alert .sound-bands span { background: rgba(230,173,74,.72); }
.state-loud .sound-bands span { background: rgba(231,119,99,.78); }
.meter-shell:fullscreen { width: 100vw; height: 100vh; border: 0; border-radius: 0; background: var(--panel); }
.meter-shell:fullscreen .meter-topline { color: white; border-color: rgba(255,255,255,.12); }
.meter-shell:fullscreen .text-button { color: white; }
.meter-shell:fullscreen .meter-workspace { min-height: calc(100vh - 49px); grid-template-columns: 1fr; }
.meter-shell:fullscreen .control-board { display: none; }
.meter-shell:fullscreen .signal-stage { min-height: calc(100vh - 49px); padding: clamp(30px, 5vw, 72px); }
.meter-shell:fullscreen .scene-head { display: none; }
.meter-shell:fullscreen .signal-stage { grid-template-rows: 1fr auto; }
.meter-shell:fullscreen .signal-visual { grid-row: 1; }
.meter-shell:fullscreen .live-wave { grid-row: 2; width: min(640px, 72vw); }
.meter-shell:fullscreen .goal-display { grid-row: 3; width: min(520px, 76vw); margin-bottom: 2vh; }
.meter-shell:fullscreen.view-story .cozy-kittens { width: min(1050px, 94vw, calc((100vh - 90px) * 1.5)); }
.meter-shell:fullscreen.view-story .meter-topline { display: none; }
.meter-shell:fullscreen.view-story .meter-workspace, .meter-shell:fullscreen.view-story .signal-stage { min-height: 100vh; }

.proof-strip { margin: 20px 0 0; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.proof-strip div { padding: 18px 20px; }
.proof-strip div + div { border-left: 1px solid var(--rule); }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip strong { font-size: .85rem; }.proof-strip span { color: var(--muted); font-size: .76rem; }
.content-section, .steps-section, .faq-section { padding: 72px 0; border-top: 1px solid var(--rule); }
.proof-strip + .content-section { padding-top: 44px; border-top: 0; }
.split-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px,8vw,120px); }
.content-section h2, .section-heading h2, .privacy-panel h2, .legal-page h1 { margin: 0; font: 700 clamp(2rem,4vw,3.4rem)/1.02 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.section-intro { max-width: 760px; margin: -14px 0 30px; color: #435e56; font-size: 1.06rem; line-height: 1.65; }
.reading-copy { max-width: 690px; color: #435e56; font-size: 1.05rem; }
.reading-copy p:first-child { margin-top: 0; }.reading-copy p:last-child { margin-bottom: 0; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.steps-grid li { padding: 24px 20px 22px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; }
.steps-grid li > span { width: 31px; height: 31px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 50%; font: 700 .8rem var(--sans); }
.steps-grid h3, .use-case-grid h3 { margin: 34px 0 8px; font: 700 1.25rem/1.15 var(--serif); }
.steps-grid p, .use-case-grid p { margin: 0; color: var(--muted); font-size: .88rem; }
.companion-tool { margin: 0 auto 58px; padding: 26px 28px; max-width: 1220px; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: white; background: var(--ink); border-radius: 10px; }
.companion-tool .eyebrow { margin-bottom: 7px; color: #f0c86b; }
.companion-tool h2 { margin: 0 0 6px; color: white; font: 700 clamp(1.45rem, 2.8vw, 2.1rem)/1.05 var(--serif); }
.companion-tool p:last-child { margin: 0; max-width: 700px; color: #c5d6cf; }
.companion-tool a { flex: 0 0 auto; padding: 12px 16px; color: var(--ink); background: #f7e8b8; border-radius: 6px; text-decoration: none; font-weight: 800; }
.use-case-grid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.use-case-grid article { padding: 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.use-case-grid article > span { color: var(--quiet); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.use-case-grid h3 { margin-top: 24px; }
.privacy-panel { margin: 72px 0; padding: 44px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; color: #f4eee1; background: var(--ink); border-radius: 10px; }
.privacy-panel .eyebrow { color: #a8c4b9; }.privacy-panel p { color: #c5d6cf; }.privacy-panel a { color: #f7e8b8; font-weight: 750; text-underline-offset: 3px; }
.faq-section details { border-top: 1px solid var(--rule); }
.faq-section details:last-child { border-bottom: 1px solid var(--rule); }
.faq-section summary { padding: 21px 4px; cursor: pointer; font: 700 1.12rem/1.3 var(--serif); }
.faq-section details p { max-width: 800px; margin: -5px 4px 24px; color: var(--muted); }
.site-footer { max-width: 1240px; margin: 84px auto 0; padding: 30px 24px 42px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--rule); }
.site-footer p { margin: 7px 0 0 39px; color: var(--muted); font-size: .78rem; }

.legal-main { max-width: 900px; min-height: 70vh; }
.legal-page { padding: 70px 0 100px; }
.legal-page .lede { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.legal-page h2 { margin: 42px 0 10px; font: 700 1.55rem var(--serif); }
.legal-page p, .legal-page li { color: #405b53; }
.legal-page a { color: #17684f; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .meter-workspace { grid-template-columns: 1fr; }
  .control-board { border-left: 0; border-top: 1px solid var(--rule); }
  .signal-stage { min-height: 460px; }
  .proof-strip { grid-template-columns: repeat(2,1fr); }.proof-strip div:nth-child(3) { border-left: 0; border-top: 1px solid var(--rule); }.proof-strip div:nth-child(4) { border-top: 1px solid var(--rule); }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .meter-shell:fullscreen { overflow: auto; }.meter-shell:fullscreen .signal-stage { min-height: calc(100vh - 49px); }
}

@media (max-width: 720px) {
  .site-header { padding: 12px 16px; }.site-header nav a:not(:last-child) { display: none; }
  main { padding: 0 14px; }
  .meter-shell { margin-top: 10px; }
  .meter-topline { min-height: 64px; padding: 9px 11px; grid-template-columns: minmax(0,1fr) auto; gap: 6px 10px; }
  .meter-identity .eyebrow { display: none; }.meter-identity h1 { font-size: 1.05rem; white-space: normal; }
  .meter-topline > .text-button { grid-column: 2; grid-row: 1; font-size: 0; }.meter-topline > .text-button svg { width: 22px; }
  .feedback-fallback { display: grid; gap: 3px; }.feedback-fallback small { margin-left: 0; }
  .scene-head { grid-template-columns: 1fr; }
  .scene-status { padding-inline: 3px; }
  .scene-status h2 { font-size: 1.12rem; }
  .control-board { order: -1; }
  .mobile-status-preview { min-height: 82px; margin: 0 0 14px; padding: 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
  .mobile-preview-copy { min-width: 0; display: grid; gap: 2px; }
  .mobile-preview-copy span { color: #527168; font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-preview-copy strong { color: var(--ink); font: 700 1rem/1.08 var(--serif); }
  .mobile-preview-copy small { color: var(--muted); font-size: .66rem; line-height: 1.3; }
  .mobile-preview-state { width: 58px; height: 42px; padding: 5px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; align-items: end; border-radius: 7px; background: #14362f; }
  .mobile-preview-state span { height: 42%; border-radius: 4px 4px 2px 2px; background: rgba(255,255,255,.24); }
  .mobile-preview-state span:nth-child(2) { height: 66%; }
  .mobile-preview-state span:nth-child(3) { height: 90%; }
  .state-quiet .mobile-preview-state span:first-child { background: #54cb91; box-shadow: 0 0 8px rgba(84,203,145,.36); }
  .state-watch .mobile-preview-state span:nth-child(-n+2), .state-alert .mobile-preview-state span:nth-child(-n+2) { background: #e6ad4a; box-shadow: 0 0 8px rgba(230,173,74,.32); }
  .state-loud .mobile-preview-state span { background: #e77763; box-shadow: 0 0 8px rgba(231,119,99,.32); }
  .meter-shell.view-story .signal-stage::before { top: 18%; right: 4%; opacity: .72; }
  .signal-stage { min-height: 390px; padding: 14px; grid-template-columns: .38fr .62fr; grid-template-rows: auto auto auto auto; gap: 8px; }
  .sound-bands { height: 150px; }.signal-visual { min-height: 170px; }.traffic-signal { width: 72px; }.cozy-kittens { width: min(480px, 96%); }
  .control-board { padding: 24px 18px; }.session-grid strong { font-size: .84rem; }
  .goal-display { width: 100%; padding: 7px 9px; }
  .goal-display strong { font-size: .8rem; }
  .self-monitor-display { width: 100%; padding: 8px 9px; }
  .goal-controls { grid-template-columns: 1fr 1fr; }
  .proof-strip { margin-bottom: 0; grid-template-columns: 1fr; }.proof-strip div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .content-section, .steps-section, .faq-section { padding: 52px 0; }.split-section, .privacy-panel { grid-template-columns: 1fr; gap: 24px; }
  .proof-strip + .content-section { padding-top: 36px; }
  .steps-grid, .use-case-grid { grid-template-columns: 1fr; }.use-case-grid article { padding: 22px; }
  .companion-tool { margin-bottom: 42px; padding: 22px; align-items: flex-start; flex-direction: column; }
  .privacy-panel { margin: 52px -2px; padding: 28px 22px; }
  .site-footer { margin-top: 48px; padding: 26px 18px 36px; flex-direction: column; }.site-footer nav { align-items: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
