:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: rgba(17, 22, 32, .92);
  --panel-2: rgba(11, 16, 24, .98);
  --line: #273246;
  --text: #edf3ff;
  --muted: #94a0b8;
  --blue: #87aefc;
  --green: #70f0b6;
  --amber: #ffd166;
  --red: #ff6b6b;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 50% -20%, #20314d 0, transparent 44%), var(--bg);
  color: var(--text);
}
body[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3fb;
  --panel: rgba(255, 255, 255, .96);
  --panel-2: rgba(237, 243, 252, .98);
  --line: #c9d4e5;
  --text: #111827;
  --muted: #5f6f85;
  --blue: #315fb7;
  --green: #139b6c;
  --amber: #b57900;
  --shadow: 0 18px 48px rgba(34, 53, 84, .16);
  background: radial-gradient(circle at 50% -20%, #d4e2ff 0, transparent 44%), var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
body[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f4;
  --panel: rgba(255, 255, 255, .95);
  --panel-2: rgba(238, 242, 246, .98);
  --line: #c9d2df;
  --text: #111820;
  --muted: #5b6573;
  --blue: #255fc7;
  --green: #168a55;
  --amber: #b67800;
  --red: #c83b3b;
  --shadow: 0 18px 48px rgba(40, 52, 70, .16);
  background: radial-gradient(circle at 50% -20%, #d9e6ff 0, transparent 44%), var(--bg);
  color: var(--text);
}
button, input, select { font: inherit; }
.phone-shell {
  width: min(460px, 100vw);
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px 14px 36px;
}
.app-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 4px 18px; }
.header-actions { display: grid; justify-items: end; gap: 8px; }
.eyebrow, .label { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
h1 { margin: 3px 0 0; font-size: 24px; line-height: 1.05; letter-spacing: -.02em; }
h2 { margin: 0 0 8px; font-size: 18px; }
p { color: var(--muted); }
.status-pill, .theme-toggle { white-space: nowrap; border: 1px solid var(--line); color: #c9d8f8; background: #0d1420; border-radius: 999px; padding: 8px 10px; font-size: 12px; }
.theme-toggle { cursor: pointer; color: var(--text); background: color-mix(in srgb, var(--panel) 80%, transparent); }
body[data-theme="light"] .status-pill, body[data-theme="light"] .theme-toggle { color: #203044; background: #ffffff; }
.panel { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.hero-panel { padding: 14px; }
.mode-row, .tier-toggle, .view-tabs { display: grid; grid-auto-flow: column; gap: 7px; padding: 5px; border: 1px solid #222c3f; background: #070b12; border-radius: 999px; }
.mode, .tier, .tab { border: 0; border-radius: 999px; background: transparent; color: var(--muted); padding: 10px 11px; cursor: pointer; font-weight: 800; font-size: 12px; }
.mode { display: grid; gap: 2px; line-height: 1.05; }
.mode span { display: block; font-size: 9px; font-weight: 800; opacity: .72; text-transform: uppercase; letter-spacing: .08em; }
.mode.active, .tier.active, .tab.active { background: #e8f0ff; color: #07101d; }
.mode.preview-entitlement:not(.active) { outline: 1px dashed rgba(255, 209, 102, .58); outline-offset: -3px; }
.mode-copy, .message, .view-caption { margin: 12px 2px; font-size: 13px; line-height: 1.45; }
.entitlement-note { margin: 10px 2px 12px; border: 1px solid rgba(255, 209, 102, .46); background: rgba(255, 209, 102, .08); color: var(--amber); border-radius: 14px; padding: 9px 11px; font-size: 12px; line-height: 1.35; }
.target-summary { display: grid; gap: 6px; border: 1px solid #2b3850; background: rgba(4, 8, 14, .62); border-radius: 16px; padding: 11px 12px; margin: 12px 0; }
.target-summary-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.target-source-chip { border: 1px solid rgba(112, 240, 182, .42); border-radius: 999px; color: var(--green); background: rgba(112, 240, 182, .08); padding: 5px 8px; font-size: 9px; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
body[data-target-source="auto"] .target-source-chip { border-color: rgba(255, 209, 102, .48); color: var(--amber); background: rgba(255, 209, 102, .09); }
.target-summary strong { font-size: 16px; letter-spacing: -.01em; }
.target-summary span:last-child { color: var(--muted); font-size: 12px; line-height: 1.35; }
.target-mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.target-mode-card { border: 1px solid #26334a; border-radius: 16px; background: rgba(7, 11, 18, .66); color: inherit; padding: 10px 11px; text-align: left; cursor: pointer; }
.target-mode-card strong { display: block; margin-top: 3px; color: var(--text); font-size: 12px; line-height: 1.2; }
.target-mode-copy { display: block; margin: 7px 0 0; color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.3; }
.target-mode-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.target-mode-card.active { border-color: rgba(112, 240, 182, .58); box-shadow: inset 0 0 0 1px rgba(112, 240, 182, .12); }
.target-mode-card.active .label { color: var(--green); }
.target-mode-card.gated { border-style: dashed; border-color: rgba(255, 209, 102, .5); }
.target-mode-card.gated .label { color: var(--amber); }
.target-row { display: none; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.target-row.manual-visible { display: grid; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
input { width: 100%; border: 1px solid #36435c; border-radius: 14px; background: #05070c; color: var(--text); padding: 12px; }
input:disabled { opacity: .66; cursor: not-allowed; }
.mic-actions { display: grid; grid-template-columns: 1.4fr .8fr; gap: 10px; margin-top: 12px; }
button#start-mic { background: var(--green); color: #04120d; }
button#stop-mic { background: #1f2938; color: #dbe7ff; border: 1px solid #344158; }
button#start-mic, button#stop-mic, .probe-form button { border: 0; border-radius: 16px; padding: 13px 16px; font-weight: 900; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
.message { color: #cbd7ef; border: 1px solid #2b3850; background: rgba(4, 8, 14, .72); border-radius: 16px; padding: 12px; }
.wake-lock-status { margin: -4px 2px 0; color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.35; }
.install-card { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 10px; border: 1px solid rgba(135, 174, 252, .46); border-radius: 14px; background: rgba(135, 174, 252, .08); padding: 10px 11px; }
.install-card[hidden] { display: none; }
.install-card span { color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.35; }
.install-card[data-state="secure-origin-required"] { border-color: rgba(255, 209, 102, .52); background: rgba(255, 209, 102, .08); }
.install-card[data-state="secure-origin-required"] span { color: var(--amber); }
#install-app { min-height: 44px; border: 0; border-radius: 12px; background: var(--blue); color: #07101d; padding: 9px 12px; font-weight: 900; cursor: pointer; }
#install-app[hidden] { display: none; }
.readout-card { display: none; grid-template-columns: 1fr .82fr; gap: 12px; padding: 16px; margin-top: 14px; }
.note-stack, .cents-stack { min-width: 0; }
#note-name { display: block; font-size: 66px; line-height: .9; letter-spacing: -.08em; margin-top: 8px; }
#frequency, #direction-readout, .stability-readout { color: var(--muted); font-weight: 700; }
.stability-readout { display: block; margin-top: 5px; font-size: 11px; line-height: 1.25; }
#cents-readout { display: block; font-size: 48px; line-height: 1; margin-top: 11px; font-variant-numeric: tabular-nums; }
.confidence-strip { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }
.bar { height: 8px; background: #070b12; border-radius: 999px; overflow: hidden; border: 1px solid #25334a; }
.bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--amber), var(--green)); transition: width .12s linear; }
body[data-confidence="restrike"] .bar i { background: linear-gradient(90deg, var(--red), var(--amber)); }
body[data-confidence="low"] .bar i { background: linear-gradient(90deg, var(--amber), #ffe2a3); }
body[data-confidence="usable"] .bar i { background: linear-gradient(90deg, var(--blue), var(--green)); }
body[data-confidence="stable"] .bar i { background: linear-gradient(90deg, var(--green), #e8fff6); }
.signal-evidence { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.signal-evidence span { border: 1px solid #26334a; border-radius: 999px; background: rgba(7, 11, 18, .72); color: var(--muted); padding: 8px 9px; font-size: 11px; font-weight: 800; line-height: 1.15; text-align: center; }
.claim-ladder { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.claim-ladder span { position: relative; border: 1px solid #26334a; border-radius: 999px; background: rgba(7, 11, 18, .72); color: var(--muted); padding: 8px 5px 8px 18px; font-size: 9px; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .06em; }
.claim-ladder span::before { content: ''; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; border-radius: 50%; transform: translateY(-50%); background: #4a5568; }
.claim-ladder span.active { color: var(--text); border-color: rgba(112, 240, 182, .48); box-shadow: inset 0 0 0 1px rgba(112, 240, 182, .10); }
.claim-ladder span.active::before { background: var(--green); box-shadow: 0 0 12px rgba(112, 240, 182, .8); }
.tech-callout { grid-column: 1 / -1; display: grid; gap: 5px; border: 1px solid #2b3850; background: rgba(4, 8, 14, .68); border-radius: 16px; padding: 12px; }
body[data-confidence="restrike"] .tech-callout { border-color: rgba(255, 107, 107, .58); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .12); }
body[data-confidence="low"] .tech-callout { border-color: rgba(255, 209, 102, .58); box-shadow: inset 0 0 0 1px rgba(255, 209, 102, .10); }
body[data-confidence="usable"] .tech-callout { border-color: rgba(135, 174, 252, .58); box-shadow: inset 0 0 0 1px rgba(135, 174, 252, .10); }
body[data-confidence="stable"] .tech-callout { border-color: rgba(112, 240, 182, .62); box-shadow: inset 0 0 0 1px rgba(112, 240, 182, .12); }
.tech-callout strong { font-size: 18px; letter-spacing: -.01em; }
.tech-callout span:last-child { color: var(--muted); font-size: 13px; line-height: 1.35; }
.trust-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust-grid div { min-width: 0; border: 1px solid #26334a; border-radius: 14px; background: rgba(7, 11, 18, .72); padding: 10px 8px; }
.trust-grid strong { display: block; margin-top: 4px; font-size: 12px; line-height: 1.2; color: var(--text); }
.confidence-legend { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; color: var(--muted); font-size: 10px; line-height: 1.2; }
.confidence-legend span { border: 1px solid #26334a; border-radius: 12px; background: rgba(7, 11, 18, .72); padding: 8px 6px; }
.confidence-legend b { display: block; color: var(--text); font-size: 11px; }
.confidence-recipe { grid-column: 1 / -1; border: 1px solid #26334a; border-radius: 16px; background: rgba(7, 11, 18, .72); padding: 11px 12px; }
.confidence-recipe ol { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.confidence-recipe li + li { margin-top: 4px; }
.confidence-recipe strong { color: var(--text); }
.views-header { display: grid; grid-template-columns: .95fr 1.05fr; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; }
.views-header strong { display: block; margin-top: 4px; font-size: 15px; letter-spacing: -.01em; }
.views-header p { margin: 0; font-size: 12px; line-height: 1.35; }
.mode-copy, .entitlement-note, .target-summary, .target-mode-cards, .views-header, .view-intent, .view-gate-card, .stage-hint, .tier-panel, .technician-note { display: none !important; }
.target-row { margin: 10px 0 0; }
.view-tabs { margin: 10px 0; grid-template-columns: repeat(5, 1fr); border-radius: 18px; }
.tab { position: relative; display: grid; gap: 2px; border-radius: 14px; padding: 9px 5px 19px; font-size: 11px; line-height: 1.05; }
.tab span { display: block; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.tab::after { content: var(--tab-gate-label, 'open'); position: absolute; left: 6px; right: 6px; bottom: 4px; color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; opacity: .82; }
.tab[data-gate="locked"] { outline: 1px dashed rgba(255, 209, 102, .58); outline-offset: -3px; }
.tab[data-gate="locked"]::after, .tab[data-gate="caution"]::after { color: var(--amber); }
.tab[data-gate="ready"]::after { color: var(--green); }
.tab[data-gate="evidence"]::after { color: var(--blue); }
.tab.active::after { color: #07101d; opacity: .74; }
.view-intent { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; align-items: center; padding: 12px 14px; margin: -4px 0 14px; }
.view-intent strong { display: block; margin-top: 4px; font-size: 15px; }
.view-intent p { margin: 0; font-size: 12px; line-height: 1.35; }
.view-playbook { display: grid; gap: 9px; }
.view-playbook dl { margin: 0; display: grid; gap: 6px; }
.view-playbook dl div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: start; border: 1px solid #26334a; border-radius: 12px; background: rgba(7, 11, 18, .64); padding: 8px 9px; }
.view-playbook dt { color: var(--muted); font-size: 9px; font-weight: 900; line-height: 1.1; text-transform: uppercase; letter-spacing: .08em; }
.view-playbook dd { margin: 0; color: var(--text); font-size: 11px; font-weight: 750; line-height: 1.28; }
.view-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.view-badges span { border: 1px solid #2b3850; border-radius: 999px; background: rgba(7, 11, 18, .72); color: var(--muted); padding: 5px 8px; font-size: 10px; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .06em; }
.view-badges span:first-child { color: var(--green); border-color: rgba(112, 240, 182, .42); }
.view-stage { min-height: 330px; padding: 14px; overflow: hidden; }
.field-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; align-items: stretch; }
.field-readout > div { min-width: 0; border: 1px solid #26334a; border-radius: 20px; background: rgba(7, 11, 18, .78); padding: 12px 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.02); }
.field-readout strong { display: block; color: var(--text); line-height: .86; font-variant-numeric: tabular-nums; white-space: nowrap; }
#field-note { font-size: clamp(58px, 20vw, 112px); letter-spacing: -.09em; }
#field-cents { font-size: clamp(48px, 16vw, 92px); letter-spacing: -.05em; }
#field-frequency, #field-direction { display: block; min-height: 18px; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 850; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.input-level-warning { margin: -4px 0 12px; border: 1px solid #26334a; border-radius: 14px; background: rgba(7, 11, 18, .72); color: var(--muted); padding: 9px 11px; font-size: 12px; font-weight: 850; line-height: 1.25; text-align: center; }
.input-level-warning[data-state="healthy"] { border-color: rgba(112, 240, 182, .44); color: var(--green); }
.input-level-warning[data-state="quiet"] { border-color: rgba(255, 209, 102, .52); color: var(--amber); }
.input-level-warning[data-state="clipping"] { border-color: rgba(255, 107, 107, .62); background: rgba(255, 107, 107, .08); color: var(--red); }
.recovery-action { margin: -4px 0 12px; border: 2px solid rgba(255, 209, 102, .64); border-radius: 14px; background: rgba(255, 209, 102, .10); color: var(--amber); padding: 11px 12px; font-size: 14px; font-weight: 900; line-height: 1.3; text-align: center; }
.recovery-action[data-state="no-pitch"] { border-color: rgba(135, 174, 252, .62); color: var(--blue); background: rgba(135, 174, 252, .09); }
.recovery-action[hidden] { display: none; }
.view-gate-card { display: grid; gap: 4px; margin-bottom: 12px; border: 1px solid #26334a; border-radius: 16px; background: rgba(7, 11, 18, .72); padding: 10px 12px; }
.view-gate-card strong { font-size: 14px; letter-spacing: -.01em; }
.view-gate-card span:last-child { color: var(--muted); font-size: 12px; line-height: 1.35; }
.stage-hint { display: grid; gap: 4px; margin: -4px 0 12px; border: 1px dashed rgba(135, 174, 252, .42); border-radius: 16px; background: rgba(135, 174, 252, .07); padding: 10px 12px; }
.stage-hint strong { font-size: 14px; letter-spacing: -.01em; }
.stage-hint > span:last-of-type { color: var(--muted); font-size: 12px; line-height: 1.35; }
.stage-confidence-key { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.stage-confidence-key span { border: 1px solid #26334a; border-radius: 999px; color: var(--muted); background: rgba(7, 11, 18, .62); padding: 6px 5px; font-size: 9px; font-weight: 900; line-height: 1; text-align: center; text-transform: uppercase; letter-spacing: .06em; }
body[data-confidence="restrike"] .stage-confidence-key span[data-band="restrike"],
body[data-confidence="low"] .stage-confidence-key span[data-band="low"],
body[data-confidence="usable"] .stage-confidence-key span[data-band="usable"],
body[data-confidence="stable"] .stage-confidence-key span[data-band="stable"] { color: #07101d; border-color: transparent; }
body[data-confidence="restrike"] .stage-confidence-key span[data-band="restrike"] { background: var(--red); }
body[data-confidence="low"] .stage-confidence-key span[data-band="low"] { background: var(--amber); }
body[data-confidence="usable"] .stage-confidence-key span[data-band="usable"] { background: var(--blue); }
body[data-confidence="stable"] .stage-confidence-key span[data-band="stable"] { background: var(--green); }
body[data-confidence="restrike"] .view-gate-card { border-color: rgba(255, 107, 107, .42); }
body[data-confidence="low"] .view-gate-card { border-color: rgba(255, 209, 102, .42); }
body[data-confidence="usable"] .view-gate-card { border-color: rgba(135, 174, 252, .42); }
body[data-confidence="stable"] .view-gate-card { border-color: rgba(112, 240, 182, .48); }
body[data-confidence="restrike"] .stage-hint { border-color: rgba(255, 107, 107, .44); background: rgba(255, 107, 107, .06); }
body[data-confidence="low"] .stage-hint { border-color: rgba(255, 209, 102, .44); background: rgba(255, 209, 102, .07); }
body[data-confidence="stable"] .stage-hint { border-color: rgba(112, 240, 182, .46); background: rgba(112, 240, 182, .07); }
.view { display: none; }
.view.active { display: block; }
.dial-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 8px; }
.dial-controls button { border: 1px solid rgba(112, 240, 182, .42); border-radius: 999px; background: rgba(112, 240, 182, .12); color: var(--green); padding: 9px 12px; font-size: 11px; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.dial-controls button[aria-pressed="true"] { background: var(--green); color: #04120d; }
.dial-controls span { color: var(--muted); font-size: 11px; font-weight: 850; line-height: 1.2; text-align: right; }
.dial { position: relative; height: 270px; margin: 0 auto; max-width: 390px; }
.dial-arc { position: absolute; inset: 24px 24px 0; border-radius: 999px 999px 60px 60px; border-top: 18px solid #1e2a3f; border-left: 18px solid #1e2a3f; border-right: 18px solid #1e2a3f; border-bottom: 0; }
.dial-arc::after { content: ''; position: absolute; left: 50%; top: -18px; bottom: 20%; width: 6px; transform: translateX(-50%); border-radius: 999px; background: var(--green); box-shadow: 0 0 24px rgba(112, 240, 182, .75); }
.needle { position: absolute; left: 50%; bottom: 42px; width: 4px; height: 165px; transform-origin: 50% 100%; transform: rotate(0deg); background: linear-gradient(180deg, var(--amber), #fff); border-radius: 999px; transition: transform .09s linear; box-shadow: 0 0 24px rgba(255, 209, 102, .4); }
.dial-center { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: #e8f0ff; }
.dial-mark { position: absolute; bottom: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.dial-mark.left { left: 25px; } .dial-mark.mid { left: 50%; transform: translateX(-50%); } .dial-mark.right { right: 25px; }
.view-helper { display: none; margin: 8px 0 2px; border: 1px solid #26334a; border-radius: 999px; background: rgba(7, 11, 18, .72); color: var(--muted); padding: 8px 11px; font-size: 11px; font-weight: 800; line-height: 1.25; text-align: center; }
.view-caption { display: none; }
body[data-confidence="restrike"] .view-helper { border-color: rgba(255, 107, 107, .38); }
body[data-confidence="low"] .view-helper { border-color: rgba(255, 209, 102, .38); }
body[data-confidence="usable"] .view-helper { border-color: rgba(135, 174, 252, .38); }
body[data-confidence="stable"] .view-helper { border-color: rgba(112, 240, 182, .42); color: var(--text); }
.view-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 10px; }
.view-meter div { min-width: 0; border: 1px solid #26334a; border-radius: 14px; background: rgba(7, 11, 18, .72); padding: 9px 10px; }
.view-meter span { display: block; color: var(--muted); font-size: 9px; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .08em; }
.view-meter strong { display: block; margin-top: 5px; color: var(--text); font-size: 13px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.strobe { --phase: 0px; --drift: 0px; --pointer-x: 50%; --pointer-y: 0px; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; min-height: 240px; padding: 12px; border-radius: 20px; background: #06090f; overflow: hidden; }
.strobe-zero { position: absolute; z-index: 2; left: 10px; right: 10px; top: 50%; height: 2px; transform: translateY(-50%); background: rgba(232, 255, 246, .62); box-shadow: 0 0 18px rgba(112, 240, 182, .35); pointer-events: none; }
.strobe-zero::after { content: '0¢ target line'; position: absolute; right: 8px; top: -18px; color: rgba(232, 255, 246, .72); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.strobe-pointer { position: absolute; z-index: 3; left: var(--pointer-x); top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 999px; transform: translateX(-50%) translateY(0px); background: var(--amber); box-shadow: 0 0 0 5px rgba(255,209,102,.16), 0 0 28px rgba(255,209,102,.78); transition: left .09s linear, background .12s linear; pointer-events: none; }
.strobe-pointer::before { content: ''; position: absolute; inset: 8px; border-radius: inherit; background: #fff8dd; }
.strobe-pointer::after { content: 'drift'; position: absolute; left: 50%; top: 35px; transform: translateX(-50%); color: rgba(255,248,221,.88); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
body[data-confidence="stable"] .strobe-pointer { background: var(--green); box-shadow: 0 0 0 5px rgba(112,240,182,.16), 0 0 28px rgba(112,240,182,.78); }
body[data-confidence="restrike"] .strobe-pointer { opacity: .35; }
.strobe span { border-radius: 999px; background: repeating-linear-gradient(180deg, rgba(135,174,252,.16) 0 10px, rgba(112,240,182,.95) 10px 22px, rgba(255,255,255,.88) 22px 25px, rgba(135,174,252,.16) 25px 38px); background-size: 100% 76px; background-position: 0 calc(var(--phase) + var(--drift)); transform: translateY(0); transition: background-position .04s linear, opacity .12s linear, filter .12s linear; filter: drop-shadow(0 0 18px rgba(112,240,182,.28)); }
body[data-confidence="restrike"] .strobe span,
body[data-confidence="low"] .strobe span { opacity: .42; filter: grayscale(.45) drop-shadow(0 0 10px rgba(255,209,102,.16)); }
canvas { width: 100%; height: 240px; border-radius: 18px; border: 1px solid #223047; background: #071016; }
.unison-card { min-height: 250px; display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; }
.strings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 220px; }
.strings i { border-radius: 999px; background: linear-gradient(180deg, #dce8ff, #5c728f 48%, #dce8ff); box-shadow: 0 0 18px rgba(135,174,252,.18); }
.beat-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); border-top: 1px solid #26334a; margin-top: 16px; padding-top: 12px; }
.beat-row strong { color: var(--text); }
.locked-view::after { content: 'Pro feature — visible here for design testing, confidence-gated in product.'; display: block; margin-top: 12px; color: var(--amber); font-size: 12px; }
.tier-panel { margin-top: 14px; padding: 14px; }
.tier-header { display: grid; gap: 12px; }
.tier-summary { margin: 12px 2px 0; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.4; }
.feature-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.feature-list li { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 12px; background: #070b12; color: #c8d4ea; font-size: 13px; }
.feature-list li.locked { color: #68758d; }
.feature-copy { display: grid; gap: 3px; min-width: 0; }
.feature-copy small { color: var(--muted); font-size: 10px; font-weight: 800; line-height: 1.25; }
.feature-list li.locked .feature-copy small { color: #8d7651; }
.feature-state { border: 1px solid rgba(112, 240, 182, .38); border-radius: 999px; color: var(--green); padding: 5px 7px; font-size: 9px; font-weight: 900; line-height: 1; text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.feature-list li.locked .feature-state { border-color: rgba(255, 209, 102, .36); color: var(--amber); }
.field-session-panel { margin-top: 14px; padding: 14px; }
.field-session-intro, .field-session-scope, .field-session-error { margin: 12px 0; font-size: 12px; line-height: 1.45; }
.field-session-picker, .field-window-picker { margin: 12px 0; }
.field-session-picker select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; background: #101827; color: var(--text); padding: 9px 12px; font-weight: 850; }
.field-session-picker select:focus-visible, .field-window-picker input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
body[data-theme="light"] .field-session-picker select { background: #ffffff; }
.field-session-header { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0; }
.field-session-header div, .field-window-readout div { min-width: 0; border: 1px solid #26334a; border-radius: 13px; background: rgba(7, 11, 18, .72); padding: 9px; }
.field-session-header strong, .field-window-readout strong { display: block; margin-top: 4px; color: var(--text); font-size: 11px; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#field-session-timeline { height: 260px; }
.field-window-picker input { padding: 0; accent-color: var(--green); }
.field-window-readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.field-window-readout span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.field-session-risks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.field-session-risks span { border: 1px solid rgba(255, 209, 102, .38); border-radius: 999px; color: var(--amber); background: rgba(255, 209, 102, .07); padding: 6px 8px; font-size: 9px; font-weight: 900; line-height: 1; }
.field-session-scope { border: 1px dashed rgba(135, 174, 252, .46); border-radius: 14px; background: rgba(135, 174, 252, .07); padding: 10px; color: var(--muted); }
.field-session-error { color: var(--red); }
.lab-panel { display: block; margin-top: 14px; padding: 14px; }
.lab-copy { margin: 12px 0 0; font-size: 12px; line-height: 1.4; }
.technician-note { margin-top: 14px; padding: 14px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.bottom-bar {
  display: block;
  position: sticky;
  top: max(8px, env(safe-area-inset-top));
  z-index: 20;
  margin: 10px 0;
  padding: 10px;
  text-align: center;
  box-shadow: 0 16px 46px rgba(0, 0, 0, .58);
}
.target-stepper { display: grid; grid-template-columns: 58px 48px minmax(0, 1fr) 48px 58px; gap: 7px; align-items: center; }
.bottom-bar button { border: 1px solid var(--line); border-radius: 18px; background: #101827; color: var(--text); font-size: 26px; font-weight: 900; min-height: 52px; cursor: pointer; }
.sticky-mic-stop { width: 100%; margin-top: 8px; border-color: rgba(255, 107, 107, .62) !important; background: rgba(255, 107, 107, .11) !important; color: var(--red) !important; font-size: 15px !important; }
.sticky-mic-stop[hidden] { display: none; }
.sticky-mic-restart { width: 100%; margin-top: 8px; border-color: rgba(255, 209, 102, .66) !important; background: rgba(255, 209, 102, .13) !important; color: var(--amber) !important; font-size: 15px !important; }
.sticky-mic-restart[hidden] { display: none; }
.bottom-bar button[id^="octave-"] { font-size: 11px; line-height: 1.05; text-transform: uppercase; letter-spacing: .04em; }
.bottom-bar button:disabled { color: #566176; cursor: default; opacity: .48; }
body[data-theme="light"] .bottom-bar button { background: #ffffff; }
.bottom-bar strong { display: block; font-size: 24px; letter-spacing: -.03em; }
.bottom-source { display: block; margin: 3px 0 1px; color: var(--green); font-size: 10px; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .08em; }
.target-jump-picker { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); text-align: left; }
.target-jump-picker summary { min-height: 28px; color: var(--muted); font-size: 11px; font-weight: 900; line-height: 28px; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.target-jump-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; padding-top: 7px; }
.target-jump-picker label { gap: 3px; }
.target-jump-picker label > span { color: var(--muted); font-size: 10px; font-weight: 800; }
.target-jump-picker select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; background: #101827; color: var(--text); padding: 9px 12px; font-weight: 900; cursor: pointer; }
.target-jump-picker select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.target-jump-picker option:disabled { color: #566176; }
body[data-theme="light"] .target-jump-picker select { background: #ffffff; }
body[data-target-source="manual"] .bottom-bar { border-color: rgba(112, 240, 182, .42); }
body[data-target-source="auto"] .bottom-bar { border-color: rgba(255, 209, 102, .54); box-shadow: 0 18px 54px rgba(255, 209, 102, .10); }
body[data-target-source="auto"] .bottom-source { color: var(--amber); }
body[data-target-source="auto"] .bottom-bar button { border-color: rgba(255, 209, 102, .42); }
summary { cursor: pointer; font-weight: 900; color: #d8e4fb; }
.probe-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.probe-form button { grid-column: 1 / -1; background: var(--blue); color: #06101f; }
pre { overflow: auto; max-height: 220px; background: #05070c; border: 1px solid #222d42; border-radius: 16px; padding: 12px; color: #dce7ff; font-size: 12px; }
@media (min-width: 760px) {
  .phone-shell { width: min(760px, calc(100vw - 40px)); }
  .hero-panel, .tier-panel, .lab-panel, .readout-card, .view-stage { border-radius: 28px; }
  .readout-card { grid-template-columns: 1.2fr .8fr; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .phone-shell { width: min(100vw, 980px); padding: 8px 10px 10px; }
  .app-header { padding: 4px 4px 8px; }
  h1 { font-size: 18px; }
  .hero-panel { padding: 10px; }
  .mode-copy, .entitlement-note, .target-summary, .target-mode-cards, .view-intent, .views-header, .view-gate-card, .stage-hint, .tier-panel, .technician-note, .lab-panel { display: none; }
  .target-row { margin: 8px 0 0; }
  .mic-actions { margin-top: 8px; }
  .message { margin: 8px 0 0; min-height: 38px; padding: 8px 10px; font-size: 11px; }
  .view-tabs { margin: 8px 0; }
  .view-stage { min-height: calc(100vh - 170px); padding: 10px; }
  .field-readout { grid-template-columns: .9fr 1.1fr; margin-bottom: 8px; }
  .field-readout > div { padding: 8px 12px; }
  #field-note { font-size: clamp(64px, 16vh, 104px); }
  #field-cents { font-size: clamp(58px, 14vh, 94px); }
  .dial { height: calc(100vh - 315px); min-height: 190px; max-width: 520px; }
  .needle { height: calc(100% - 95px); }
  canvas, .strobe { height: calc(100vh - 315px); min-height: 190px; }
  .view-helper, .view-caption { display: none; }
  .bottom-bar { margin: 8px 0; }
}
@media (max-width: 390px) {
  .confidence-legend { grid-template-columns: repeat(2, 1fr); }
  .signal-evidence { grid-template-columns: 1fr; }
  .view-meter { grid-template-columns: 1fr; }
  .claim-ladder { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .view-intent, .views-header { grid-template-columns: 1fr; }
  .target-mode-cards { grid-template-columns: 1fr; }
  .field-session-header { grid-template-columns: 1fr; }
  .field-window-readout { grid-template-columns: repeat(2, 1fr); }
}
