:root { color-scheme: dark; --ink: #eaf4f6; --muted: #a1b7c1; --line: #30434b; --mint: #87e7c3; --panel: #17272f; }
body { margin: 0; background: #101c23; color: var(--ink); font-family: Inter, system-ui, sans-serif; }
main, main * { box-sizing: border-box; }
main { padding: clamp(18px, 3.4vw, 62px); overflow-x: clip; }
main h1, main h2, main h3, main p, main dl, main dd, main figure { margin: 0; }
main h1 { font-size: clamp(2.3rem, 4vw, 4.5rem); line-height: 1.05; letter-spacing: -.055em; }
main header { margin-bottom: 26px; }
main header p { margin-top: 10px; color: var(--muted); line-height: 1.55; }
main h2 { font-size: 1.14rem; letter-spacing: -.02em; }
.dashboard, .guide { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.panel { padding: clamp(18px, 2.3vw, 34px); background: var(--panel); border: 1px solid var(--line); border-radius: 15px; }
.connection { background: linear-gradient(118deg, #18362f, #172b30 85%); border-top: 3px solid var(--mint); }
.row, .actions, .modes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.between { justify-content: space-between; }
.family { font: 600 .85rem ui-monospace, monospace; color: var(--mint); }
.readout { display: block; font: 600 clamp(1.7rem, 4.2vw, 5rem)/1.14 ui-monospace, monospace; letter-spacing: -.06em; margin: 20px 0; overflow-wrap: anywhere; }
.connection dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding: 18px 0; }
main dt, .muted, .stamp, .guide p { color: var(--muted); }
main dt { font-size: .87rem; }
main dd { margin-top: 6px; font: 600 clamp(1rem, 1.5vw, 1.4rem) ui-monospace, monospace; }
main button, main summary, main nav a { min-height: 44px; }
main button { border-radius: 7px; border: 1px solid #536971; color: var(--ink); background: #23373e; padding: 8px 15px; font-family: inherit; font-size: .9rem; font-weight: 600; line-height: 1.25; cursor: pointer; }
main button:hover, main button[aria-pressed="true"] { color: var(--mint); border-color: var(--mint); }
main :focus-visible { outline: 3px solid #b2efdc; outline-offset: 3px; }
main button.primary { background: var(--mint); border-color: var(--mint); color: #113429; font-weight: 700; }
main button:disabled { opacity: .62; cursor: wait; }
.stamp { font-size: .85rem; min-height: 1.3em; }
.connection .stamp { margin-top: 12px; }
.measurement figure { margin: 15px 0; }
.measurement .readout { display: inline; margin: 0; }
.unit { font: 600 .92rem ui-monospace, monospace; color: var(--muted); }
#samples { display: flex; gap: 8px; padding: 0; margin: 12px 0 8px; list-style: none; }
#samples li { flex: 1; min-width: 0; font: .85rem ui-monospace, monospace; color: #bccbd0; }
#samples li::before { content: ''; display: block; height: 28px; border-bottom: 1px solid #6d828b; background: linear-gradient(to top, #79b5c6 var(--level, 0%), transparent var(--level, 0%)); }
#samples b { display: block; padding-top: 5px; font-weight: 500; }
.api { grid-column: 1 / -1; }
.modes { gap: 6px; margin: 16px 0 10px; }
main pre { border: 1px solid var(--line); background: #0e191f; border-radius: 8px; color: #b6efdc; padding: 15px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; margin: 0 0 10px; }
main a { color: #a2e9d1; }
.guide { margin-top: 18px; }
.guide h3 { font-size: 1rem; }
.guide p { line-height: 1.55; margin: 5px 0 14px; max-width: 78ch; }
.guide ol { padding-left: 1.3rem; }
.guide summary { padding: 12px 0; cursor: pointer; }
.guide details { border-bottom: 1px solid var(--line); }
main nav { margin-top: 18px; }
main nav a { display: inline-flex; align-items: center; margin-right: 16px; }
@media (max-width: 800px) { .dashboard, .guide { grid-template-columns: minmax(0, 1fr); } }
