/* Mix Check: hardware loudness meter styling. Charcoal and orange, dark only. */
:root {
  --hot: #F06A3B;
  --hot-soft: #F2875C;
  --hot-text: #F7A27F;
  --warm: #FFB547;
  --warm-text: #F7A27F;
  --lcd-text: #ECEDE8;
  --lcd-glow: 0 0 14px rgba(244, 243, 236, 0.6);
  --led-off: #3A3C3A;
  --bevel: linear-gradient(180deg, #3B3E45 0%, var(--key) 100%);
  --bevel-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* a faint studio grid behind everything */
body.check-body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(900px 600px at 50% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(900px 600px at 50% 0%, #000 0%, transparent 75%); }
body.check-body { overflow-x: hidden; }

.check-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; border-bottom: 1px solid var(--line); }
.check-head .brand { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none; font-weight: 700; }
.footer nav a, .footer > .brand { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

.check { max-width: 1100px; display: grid; gap: 18px; padding-top: 28px; padding-bottom: 72px; counter-reset: panel; }
.check > * { min-width: 0; }

/* ---------- intro ---------- */
.intro { position: relative; padding: 18px 0 24px; }
.intro .eyebrow { margin: 0 0 12px; color: var(--accent); }
.intro .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--t300); box-shadow: 0 0 10px var(--t500); }
.intro h1 { font-size: clamp(42px, 8vw, 76px); text-shadow: 0 0 40px rgba(244, 243, 236, 0.18); }
.intro .lead { margin-top: 14px; }
.privacy { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 9px 14px; border: 1px solid var(--t800); border-radius: 4px; color: var(--t300); font-size: 14px; background: rgba(31, 33, 31, 0.55); }
.privacy::before { content: ""; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- panels ---------- */
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { position: relative; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 120px), var(--panel); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 34px rgba(0, 0, 0, 0.22); }
.panel h2 { display: flex; align-items: baseline; gap: 12px; font-size: 26px; margin: 0 0 14px; }
.panel h2::before { counter-increment: panel; content: counter(panel, decimal-leading-zero); flex: none; font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--t400); transform: translateY(-3px); }
.subtext { color: var(--muted); margin: -4px 0 16px; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }
.top-gap { margin-top: 16px; }

/* ---------- drop zones ---------- */
.drop-zone { position: relative; isolation: isolate; overflow: hidden; min-height: 190px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; border: 1.5px dashed rgba(244, 243, 236, 0.38); border-radius: 6px; padding: 20px; background: radial-gradient(120% 90% at 0% 0%, rgba(244, 243, 236, 0.07), transparent 60%), rgba(0, 0, 0, 0.18); cursor: pointer; transition: border-color 0.2s, box-shadow 0.25s, background-color 0.25s, transform 0.2s; }
.drop-zone::before { content: ""; position: absolute; z-index: -1; inset: -40%; background: radial-gradient(closest-side, rgba(244, 243, 236, 0.15), transparent 70%); animation: mc-breathe 4.5s ease-in-out infinite; pointer-events: none; }
.drop-zone::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, rgba(244, 243, 236, 0.22), transparent); opacity: 0; pointer-events: none; }
.drop-zone > * { position: relative; }
.drop-zone p { margin: 0; font-weight: 700; font-size: 17px; }
.drop-zone small { color: var(--muted); line-height: 1.45; }
.drop-zone:hover { border-color: rgba(244, 243, 236, 0.6); }
.drop-zone.dragging { border-style: solid; border-color: var(--t400); background-color: rgba(244, 243, 236, 0.1); box-shadow: inset 0 0 0 1px var(--t500), 0 0 34px rgba(244, 243, 236, 0.28); transform: scale(1.012); }
.drop-zone.dragging .eq i { animation-duration: 0.42s; }
.drop-zone.busy::after { opacity: 1; animation: mc-scan 1.1s linear infinite; }
.drop-zone.busy .eq i { animation-duration: 0.5s; }
.drop-zone.loaded { border-style: solid; border-color: rgba(244, 243, 236, 0.28); }
.dz-art { display: flex; align-items: center; gap: 14px; margin-bottom: 2px; }
.dz-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 4px; background: var(--screen); color: var(--t300); border: 1px solid rgba(244, 243, 236, 0.22); box-shadow: 0 0 18px rgba(244, 243, 236, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.dz-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(244, 243, 236, 0.7)); }
.drop-zone.dragging .dz-icon svg { animation: mc-bob 0.6s ease-in-out infinite alternate; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.eq i { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(180deg, var(--t300), var(--t700)); box-shadow: 0 0 10px rgba(244, 243, 236, 0.45); transform-origin: bottom; animation: mc-eq 1.2s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: -0.9s; } .eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; }
.eq i:nth-child(4) { animation-delay: -0.1s; } .eq i:nth-child(5) { animation-delay: -0.75s; } .eq i:nth-child(6) { animation-delay: -0.45s; }
.eq i:nth-child(7) { animation-delay: -0.2s; }
.drop-zone.loaded .eq { display: none; }
.dz-wave { display: block; width: 100%; height: 56px; margin-top: 6px; border-radius: 4px; background: var(--screen); border: 1px solid rgba(244, 243, 236, 0.2); box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.55); }
.dz-wave[hidden] { display: none; }
.drop-zone.loaded .dz-wave { animation: mc-fade 0.5s both; }
.file-name { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; color: var(--t300); font-family: "JetBrains Mono", monospace; font-size: 13px; margin: 12px 0 0; }
.file-name:empty { display: none; }
.file-name::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--t300); box-shadow: 0 0 8px var(--t500); }
#demoBtn { margin-top: 12px; }

/* ---------- keys ---------- */
.button { position: relative; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); background: var(--bevel); box-shadow: var(--bevel-shadow); font: inherit; font-weight: 700; font-size: 14px; text-align: center; cursor: pointer; text-decoration: none; transition: transform 0.08s, box-shadow 0.2s, border-color 0.2s, color 0.2s, background-color 0.2s; }
.button:active:not(:disabled) { transform: translateY(1px) scale(0.98); }
.button.primary { border: 0; color: var(--on-teal); background: var(--fill); box-shadow: var(--fill-shadow); }
@media (hover: hover) {
  .button:hover:not(:disabled) { border-color: var(--t400); }
  .button.primary:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 26px rgba(244, 243, 236, 0.5); }
}
.button.choice::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--led-off); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); transition: background-color 0.2s, box-shadow 0.2s; }
.button.choice[aria-pressed="true"] { border-color: var(--t500); color: var(--t300); background: linear-gradient(180deg, #3A3C3A, var(--t950)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 16px rgba(244, 243, 236, 0.16); }
.button.choice[aria-pressed="true"]::before { background: var(--t300); box-shadow: 0 0 8px var(--t500), 0 0 2px #fff; }
.button:disabled { opacity: 0.5; cursor: default; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.file-button:focus-within { outline: 2px solid var(--t300); outline-offset: 3px; }
.button:focus-visible, .info:focus-visible, .wide:focus-visible { outline: 2px solid var(--t300); outline-offset: 3px; }

/* ---------- transport ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
#playBtn { min-width: 108px; }
#playBtn::before { content: ""; flex: none; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
#playBtn.live::before { width: 10px; height: 12px; border: 0; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 7px, currentColor 7px 10px); }
.clock { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; border-radius: 4px; background: var(--screen); border: 1px solid rgba(244, 243, 236, 0.2); box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.55); font-size: 18px; font-weight: 700; color: var(--lcd-text); text-shadow: var(--lcd-glow); font-variant-numeric: tabular-nums; }
.clock::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--led-off); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }
.clock.live::before { background: var(--t300); box-shadow: 0 0 8px var(--t500); animation: mc-pulse 1s ease-in-out infinite; }
.wide { display: block; width: 100%; margin: 16px 0 0; min-height: 44px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.wide::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--t600), var(--t300) var(--p, 0%), #1F211F var(--p, 0%)); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(244, 243, 236, 0.15); }
.wide::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, var(--t300) 38%, var(--t600) 100%); box-shadow: 0 0 12px rgba(244, 243, 236, 0.75), 0 2px 4px rgba(0, 0, 0, 0.5); }
.wide::-moz-range-track { height: 8px; border-radius: 4px; background: #1F211F; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6); }
.wide::-moz-range-progress { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--t600), var(--t300)); }
.wide::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, var(--t300) 38%, var(--t600) 100%); box-shadow: 0 0 12px rgba(244, 243, 236, 0.75); }

/* ---------- inputs ---------- */
.range-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 9px; }
.range-grid label, .field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
input[type="number"], textarea { width: 100%; min-height: 44px; border: 1px solid rgba(244, 243, 236, 0.22); border-radius: 4px; padding: 9px 11px; background: #232523; color: var(--text); font: inherit; box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.5); }
input[type="number"] { max-width: 160px; font-family: "JetBrains Mono", monospace; font-weight: 700; color: var(--lcd-text); text-shadow: 0 0 10px rgba(244, 243, 236, 0.45); }
input[type="number"]:focus-visible, textarea:focus-visible { outline: 2px solid var(--t300); outline-offset: 2px; border-color: var(--t500); }
textarea { resize: vertical; min-height: 90px; background: var(--bg-flat); border-color: var(--border); }
.modes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.modes .button { min-width: 0; min-height: 52px; white-space: normal; padding: 8px; flex-direction: column; gap: 6px; }

/* ---------- measuring ---------- */
.status { min-height: 24px; color: var(--t300); font-size: 14px; }
.status.error { color: var(--hot-text); }
.progress { position: relative; height: 16px; margin-top: 16px; border-radius: 8px; background: var(--screen); border: 1px solid rgba(244, 243, 236, 0.22); box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.55); overflow: hidden; }
.progress[hidden] { display: none; }
.progress-fill { position: absolute; inset: 3px; transform-origin: left center; transform: scaleX(var(--p, 0)); border-radius: 4px; background: linear-gradient(90deg, var(--t700), var(--t500) 70%, var(--t300)); box-shadow: 0 0 12px rgba(244, 243, 236, 0.6); -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px); mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px); transition: transform 0.18s linear; }
.progress::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent); animation: mc-scan 1.2s linear infinite; }
#measureBtn.working { pointer-events: none; }
#measureBtn.working::after { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(10, 10, 10, 0.3); border-top-color: var(--on-teal); animation: mc-spin 0.7s linear infinite; }

/* ---------- results ---------- */
#results { min-width: 0; }
.results-empty { position: relative; overflow: hidden; margin-top: 18px; padding: 22px 20px; border-radius: 4px; background: var(--screen); display: grid; gap: 14px; }
.results-empty p { margin: 0; color: var(--t300); font-size: 14px; position: relative; }
.idle-bars { display: grid; gap: 8px; position: relative; }
.idle-bars span { height: 10px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(244, 243, 236, 0.14) 0 4px, transparent 4px 6px); }
.idle-bars span:nth-child(2) { width: 82%; } .idle-bars span:nth-child(3) { width: 64%; }
.result-set { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; min-width: 0; }
.rs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 14px; }
.result-set h3 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.rs-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 4px; background: var(--t950); border: 1px solid var(--t800); color: var(--t300); font: 700 12px "JetBrains Mono", monospace; letter-spacing: 0.04em; }
.rs-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t300); box-shadow: 0 0 8px var(--t500); }
.rs-tag.ref { background: #2C2412; border-color: #6B5320; color: var(--warm-text); }
.rs-tag.ref::before { background: var(--warm); box-shadow: 0 0 8px var(--warm); }

.lcd { position: relative; overflow: hidden; border-radius: 6px; background: var(--screen); border: 1px solid rgba(244, 243, 236, 0.18); box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.35), 0 14px 36px rgba(0, 0, 0, 0.3); }
.lcd::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px); }
.lcd-title { margin: 0 0 10px; font: 700 11px "JetBrains Mono", monospace; letter-spacing: 0.09em; text-transform: uppercase; color: var(--t300); }

/* meter bridge */
.bridge { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); }
.bridge-main { position: relative; padding: 22px 22px 20px; border-right: 1px solid rgba(244, 243, 236, 0.14); background: radial-gradient(260px 200px at 30% 30%, rgba(244, 243, 236, 0.16), transparent 70%); display: flex; flex-direction: column; gap: 16px; }
.big { display: flex; flex-direction: column; gap: 4px; }
.big-label { font: 700 11px "JetBrains Mono", monospace; letter-spacing: 0.09em; text-transform: uppercase; color: var(--t300); }
.big-value { position: relative; display: flex; align-items: baseline; gap: 10px; }
.big-num { position: relative; font-family: "JetBrains Mono", monospace; font-size: clamp(52px, 7vw, 68px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--lcd-text); text-shadow: 0 0 22px rgba(244, 243, 236, 0.7), 0 0 3px rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; white-space: nowrap; }
.big-ghost { position: absolute; right: 0; top: 0; color: rgba(244, 243, 236, 0.07); text-shadow: none; pointer-events: none; }
.big-unit { font: 700 15px "JetBrains Mono", monospace; color: var(--t300); }
.big-delta { align-self: flex-start; margin-top: 6px; padding: 4px 9px; border-radius: 4px; background: rgba(0, 0, 0, 0.25); font: 700 12px "JetBrains Mono", monospace; color: var(--warm-text); }
.leds { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mc-led { display: flex; align-items: center; gap: 10px; font: 700 11px "JetBrains Mono", monospace; letter-spacing: 0.05em; text-transform: uppercase; color: var(--t300); }
.led-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--led-off); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4); }
.mc-led.on.teal .led-dot { background: radial-gradient(circle at 35% 30%, #fff, var(--t300) 45%, var(--t500)); box-shadow: 0 0 10px var(--t500), 0 0 2px #fff; }
.mc-led.on.red .led-dot { background: radial-gradient(circle at 35% 30%, #fff, var(--hot-soft) 40%, var(--hot)); box-shadow: 0 0 12px var(--hot), 0 0 26px rgba(240, 106, 59, 0.55); }
.mc-led.on.red { color: var(--hot-text); }
.mc-led.on.amber .led-dot { background: radial-gradient(circle at 35% 30%, #fff, var(--warm-text) 40%, var(--warm)); box-shadow: 0 0 12px var(--warm), 0 0 22px rgba(240, 106, 59, 0.45); }
.mc-led.on.amber { color: var(--warm-text); }

.meters { padding: 20px 22px 18px; display: grid; gap: 18px; min-width: 0; }
.meter { min-width: 0; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.meter-label { font: 700 11px "JetBrains Mono", monospace; letter-spacing: 0.09em; text-transform: uppercase; color: var(--t300); }
.meter-unit { font: 700 11px "JetBrains Mono", monospace; color: var(--t300); }
.meter-bar { position: relative; height: 16px; border-radius: 4px; background: rgba(0, 0, 0, 0.32); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6); }
.meter-bar::before { content: ""; position: absolute; inset: 3px 0; background: repeating-linear-gradient(90deg, rgba(244, 243, 236, 0.12) 0 4px, transparent 4px 6px); }
.meter-zone { position: absolute; top: 0; bottom: 0; }
.meter-zone.hot { top: 3px; bottom: 3px; background: repeating-linear-gradient(90deg, rgba(240, 106, 59, 0.2) 0 4px, transparent 4px 6px); box-shadow: 0 -3px 0 -2px rgba(240, 106, 59, 0.55), 0 3px 0 -2px rgba(240, 106, 59, 0.55); }
.meter-glow { position: absolute; inset: 3px 0; filter: drop-shadow(0 0 5px rgba(244, 243, 236, 0.75)); }
.meter-lit { position: absolute; inset: 0; clip-path: inset(0 var(--r) 0 var(--l)); background: linear-gradient(90deg, var(--t800) 0%, var(--t500) 55%, var(--t300) 100%); -webkit-mask: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 6px); mask: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 6px); }
.meter.peak .meter-lit { background: linear-gradient(90deg, var(--t800) 0%, var(--t500) calc(var(--z) * 0.7), var(--t300) var(--z), var(--hot) var(--z), var(--hot-soft) 100%); }
.meter.corr .meter-lit { background: linear-gradient(90deg, var(--hot-soft) 0%, var(--hot) 50%, var(--t600) 50%, var(--t300) 100%); }
.meter.unstable .meter-lit { opacity: 0.6; }
.meter.unstable .meter-bar { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(240, 106, 59, 0.45); }
.meter-hold { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.85), 0 0 14px var(--t500); }
.meter-hold.soft { width: 2px; margin-left: -1px; background: var(--t300); box-shadow: 0 0 8px var(--t500); }
.meter-hold.hot { background: #FBD2C0; box-shadow: 0 0 8px var(--hot), 0 0 16px var(--hot); }
.meter-hold.cmp { top: -7px; bottom: -7px; width: 0; margin-left: 0; background: none; box-shadow: none; }
.meter-hold.cmp::before { content: ""; position: absolute; left: -6px; top: 0; width: 12px; height: 12px; background: var(--warm); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 0 4px var(--warm)); }
.meter-hold.cmp::after { content: ""; position: absolute; left: -1px; top: 8px; bottom: 0; width: 2px; background: var(--warm); box-shadow: 0 0 8px var(--warm); }
.meter-scale { position: relative; height: 18px; margin-top: 6px; }
.meter-scale span { position: absolute; top: 0; transform: translateX(-50%); font: 500 11px "JetBrains Mono", monospace; color: var(--t300); white-space: nowrap; }
.meter-scale span::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 4px; background: rgba(236, 237, 232, 0.5); }
.meter-scale span.first { transform: none; }
.meter-scale span.first::before { left: 0; }
.meter-scale span.last { transform: translateX(-100%); }
.meter-scale span.last::before { left: auto; right: 0; }
.meter-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font: 500 12px "JetBrains Mono", monospace; color: var(--t300); }
.meter-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.meter-legend b { color: var(--lcd-text); font-weight: 700; }
.sw { flex: none; display: inline-block; width: 12px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--t600), var(--t300)); box-shadow: 0 0 6px rgba(244, 243, 236, 0.6); }
.sw.hold { width: 3px; height: 12px; background: #fff; box-shadow: 0 0 6px #fff; }
.sw.soft { width: 2px; height: 12px; background: var(--t300); }
.sw.cmp { width: 10px; height: 8px; background: var(--warm); clip-path: polygon(50% 100%, 0 0, 100% 0); box-shadow: none; }
.sw.hot { background: repeating-linear-gradient(90deg, var(--hot) 0 3px, transparent 3px 4px); box-shadow: none; }
.sw.dash, .sw.cmpdash { width: 16px; height: 2px; border-radius: 0; background: repeating-linear-gradient(90deg, #fff 0 5px, transparent 5px 8px); box-shadow: none; }
.sw.cmpdash { background: repeating-linear-gradient(90deg, var(--warm-text) 0 5px, transparent 5px 8px); }
.sw.tri { width: 10px; height: 8px; border-radius: 0; background: #fff; clip-path: polygon(50% 100%, 0 0, 100% 0); box-shadow: none; }
.time-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; border-radius: 4px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); font: 700 13px "JetBrains Mono", monospace; color: var(--text); }
.result-set h3 { display: flex; align-items: flex-start; gap: 10px; }
.result-set h3::before { content: ""; flex: none; margin-top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: var(--t300); box-shadow: 0 0 10px var(--t500); }
.result-set.ref h3::before { background: var(--warm); box-shadow: 0 0 10px var(--warm); }

/* scopes */
.scopes { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 14px; margin-top: 14px; }
.scopes.single { grid-template-columns: minmax(0, 1fr); }
.scope { padding: 16px 16px 14px; min-width: 0; }
.scope canvas { display: block; width: 100%; }
.timeline canvas { height: 170px; }
.vector canvas { aspect-ratio: 1; max-width: 220px; margin: 0 auto; }
.scope .meter-legend { margin-top: 10px; }
.scope .hint { color: var(--t300); }

/* verdicts */
.verdict-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 22px 0 10px; }
.verdict-head h4, .all-head { margin: 0; font-family: Archivo, sans-serif; font-stretch: 100%; font-size: 17px; font-weight: 800; }
.verdict-head p { margin: 0; font-size: 13px; color: var(--muted); }
.verdicts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.verdict { --vc: var(--t300); --vb: rgba(244, 243, 236, 0.1); --vl: rgba(244, 243, 236, 0.3); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 14px 16px; border-radius: 4px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--vb), transparent 70%), var(--bg-flat); box-shadow: inset 3px 0 0 var(--vc); }
.verdict.check { --vc: var(--warm-text); --vb: rgba(240, 106, 59, 0.1); --vl: rgba(240, 106, 59, 0.4); }
.verdict.fix { --vc: var(--hot-text); --vb: rgba(240, 106, 59, 0.13); --vl: rgba(240, 106, 59, 0.45); border-color: rgba(240, 106, 59, 0.35); }
.verdict.info { --vc: #C9CCD3; --vb: rgba(255, 255, 255, 0.04); --vl: rgba(255, 255, 255, 0.2); }
.verdict-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.verdict-title { font-weight: 700; font-size: 15px; }
.chip-state { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 6px; border-radius: 999px; border: 1px solid var(--vl); background: rgba(0, 0, 0, 0.25); color: var(--vc); font: 700 11px "JetBrains Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.chip-state svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.verdict p { margin: 0; font-size: 13px; line-height: 1.5; color: #C9CCD3; }
.verdict .jumps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.verdict .jumps .button { min-height: 44px; min-width: 44px; padding: 6px 12px 6px 10px; gap: 7px; font-size: 13px; font-family: "JetBrains Mono", monospace; }
.verdict .jumps .jump::before { content: ""; flex: none; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--t300); }

/* all numbers */
.all-head { margin: 22px 0 10px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric { min-width: 0; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--bg-flat); }
.metric-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.metric-name { font-size: 12px; color: var(--muted); font-weight: 700; padding-top: 4px; }
.metric strong { display: block; margin-top: 6px; font-family: "JetBrains Mono", monospace; font-size: clamp(17px, 2.4vw, 22px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--lcd-text); text-shadow: 0 0 12px rgba(244, 243, 236, 0.35); }
.metric strong small { font-family: Archivo, sans-serif; font-size: 11px; color: var(--t300); text-shadow: none; }
.info { flex: none; width: 44px; height: 44px; margin: -6px -6px 0 0; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--bevel); color: var(--t300); font: inherit; font-weight: 700; cursor: pointer; }
.info[aria-expanded="true"] { border-color: var(--t500); background: var(--t950); }
.metric p { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 10px 0 0; }

/* notes */
.note { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-flat); box-shadow: inset 3px 0 0 var(--t600); }
.note-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--t300); font: 700 13px "JetBrains Mono", monospace; }
.note p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0; }
.note-actions { display: flex; gap: 8px; }
.note-actions .button { min-height: 44px; }

/* ---------- reveal ---------- */
.result-set.reveal .bridge { animation: mc-power 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) both; }
.result-set.reveal .meter-lit { animation: mc-sweep 0.62s cubic-bezier(0.22, 0.9, 0.25, 1) both; animation-delay: var(--d, 0ms); }
.result-set.reveal .meter-hold { animation: mc-pop 0.32s cubic-bezier(0.3, 1.6, 0.5, 1) both; animation-delay: calc(var(--d, 0ms) + 420ms); }
.result-set.reveal .meter-legend { animation: mc-fade 0.4s both; animation-delay: calc(var(--d, 0ms) + 300ms); }
.result-set.reveal .mc-led.on .led-dot { animation: mc-led 0.6s steps(1, end) both; animation-delay: 0.55s; }
.result-set.reveal .scope { animation: mc-rise 0.55s cubic-bezier(0.2, 0.75, 0.2, 1) both; animation-delay: 0.25s; }
.result-set.reveal .verdict { animation: mc-rise 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) both; animation-delay: calc(0.4s + var(--i, 0) * 70ms); }

@keyframes mc-sweep { from { clip-path: inset(0 calc(100% - var(--o)) 0 var(--o)); } }
@keyframes mc-pop { from { opacity: 0; transform: scaleY(0.2); } }
@keyframes mc-fade { from { opacity: 0; } }
@keyframes mc-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes mc-power { 0% { opacity: 0; filter: brightness(1.8); } 40% { opacity: 1; } 100% { filter: none; } }
@keyframes mc-led { 0% { background: var(--led-off); box-shadow: none; } 30% { background: #fff; } 45% { background: var(--led-off); box-shadow: none; } }
@keyframes mc-breathe { 0%, 100% { opacity: 0.45; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes mc-eq { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }
@keyframes mc-scan { from { transform: translateX(0); } to { transform: translateX(450%); } }
@keyframes mc-spin { to { transform: rotate(360deg); } }
@keyframes mc-pulse { 50% { opacity: 0.35; } }
@keyframes mc-bob { from { transform: translateY(2px); } to { transform: translateY(-3px); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .bridge { grid-template-columns: minmax(0, 1fr); }
  .bridge-main { border-right: 0; border-bottom: 1px solid rgba(244, 243, 236, 0.14); flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
}
@media (max-width: 820px) {
  .modes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scopes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .check-head .brand { font-size: 16px; }
  .back-link { font-size: 13px; }
  .source-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .panel h2 { font-size: 23px; }
  .range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clock { flex-basis: 100%; margin-left: 0; justify-content: center; }
  .bridge-main { flex-direction: column; align-items: stretch; padding: 18px 16px 16px; }
  .meters { padding: 16px 14px 14px; }
  .meter-scale span.minor { display: none; }
  .timeline canvas { height: 150px; }
  .scope { padding: 14px 12px 12px; }
  .verdicts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 390px) {
  .controls .button { flex: 1 1 auto; }
  .metric { padding: 11px; }
  .big-num { font-size: 50px; }
}

/* calm by request */
@media (prefers-reduced-motion: reduce) {
  .drop-zone::before, .drop-zone::after, .eq i, .progress::after, .clock.live::before, #measureBtn.working::after, .drop-zone.dragging .dz-icon svg,
  .result-set.reveal .bridge, .result-set.reveal .meter-lit, .result-set.reveal .meter-hold, .result-set.reveal .meter-legend,
  .result-set.reveal .mc-led.on .led-dot, .result-set.reveal .scope, .result-set.reveal .verdict, .drop-zone.loaded .dz-wave { animation: none; }
  .eq i { transform: scaleY(0.6); }
  .drop-zone, .button, .progress-fill { transition: none; }
  .drop-zone.dragging { transform: none; }
  .button:active:not(:disabled) { transform: none; }
  .drop-zone.busy::after { opacity: 0; }
}

/* ---------- calmer page (design pass 2026-11-05) ----------
   The meter bridge (the LCD with the big number, LEDs and meters) stays the one hardware object.
   Around it: no glows, no breathing drop zones, no numbered panels, no eyebrow; warnings are sand, not orange;
   one orange per screen (Choose track, Measure loudness, Add note; Play turns orange only while it plays). */
body.check-body::before { content: none; }
.intro { padding-bottom: 12px; }
.intro .eyebrow { display: none; }
.intro h1 { text-shadow: none; }
.privacy { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--muted); }
.panel { box-shadow: none; background: var(--panel); }
.panel h2::before { content: none; }
.drop-zone { border: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.drop-zone::before { content: none; }
.drop-zone:hover { border-color: rgba(244, 243, 236, 0.4); }
.drop-zone.dragging { box-shadow: inset 0 0 0 1px var(--t500); transform: none; }
.eq { display: none; }
.dz-icon { background: transparent; }
.dz-icon svg { filter: none; }
.file-name::before, .rs-tag::before, .rs-tag.ref::before, .result-set h3::before, .result-set.ref h3::before { box-shadow: none; }
.button.choice[aria-pressed="true"] { background: var(--t950); box-shadow: none; }
.button.choice[aria-pressed="true"]::before { box-shadow: none; }
@media (hover: hover) { .button.primary:hover:not(:disabled) { box-shadow: var(--fill-shadow); filter: brightness(1.05); } }
#playBtn.primary:not(.live) { color: var(--t300); background: transparent; box-shadow: inset 0 0 0 1.5px var(--t300); }
.clock.live::before { box-shadow: none; }
.wide::-webkit-slider-thumb { box-shadow: none; }
.wide::-moz-range-thumb { box-shadow: none; }
input[type="number"] { text-shadow: none; }
.progress-fill { box-shadow: none; }
.metric strong { text-shadow: none; }
.sw { box-shadow: none; }
.verdict.check { --vc: #E2C27D; --vb: rgba(226, 194, 125, 0.1); --vl: rgba(226, 194, 125, 0.4); }
.mc-led.on.amber, .big-delta { color: #E2C27D; }
.mc-led.on.amber .led-dot { background: radial-gradient(circle at 35% 30%, #fff, #E2C27D 45%, #B99A55); box-shadow: 0 0 8px rgba(226, 194, 125, 0.6); }
.meter.unstable .meter-bar { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(226, 194, 125, 0.45); }
/* the long workflow gets air between its steps (Codex review 34), no new colours */
.check { gap: 28px; }
.check > .panel + .panel { margin-top: 4px; }
@media (max-width: 640px) { .check { gap: 20px; } }

/* ---------- layout pass (2026-11-10) ----------
   The workflow reads in groups instead of one flat column: sources (the sage device), Listen, then the two
   ways of shaping what you hear side by side (A–B section | Listening modes), Measurements with the reference
   matching set apart as a quieter sub-block, and Notes as entry | list. Same colours, a steadier rhythm. */
.check { gap: 22px; }
.check > .panel + .panel { margin-top: 0; }
.check > .source-grid { margin-bottom: 14px; }
.check > .panel:last-child { margin-top: 14px; }
.panel h2 { font-size: 24px; letter-spacing: -0.02em; }
.panel > .subtext { max-width: 72ch; }

/* A–B section | Listening modes */
.check-pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; align-items: stretch; min-width: 0; }
.check-pair > .panel { display: flex; flex-direction: column; }
.check-pair .range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check-pair .range-grid input[type="number"] { max-width: none; }
.check-pair .range-grid .button { width: 100%; }
.check-pair .modes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.check-pair .controls .hint { flex: 1 1 200px; margin: 0; }

/* Measurements: the reference matching as its own quiet block */
.ref-match { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px 28px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.ref-match .controls { align-items: flex-end; }
.ref-match .field input { width: 140px; }
.ref-match-hints .hint:first-child { margin-top: 0; }

/* Notes: write on the left, the list on the right */
.notes-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; align-items: start; }
#notes { min-width: 0; align-self: stretch; padding-left: 28px; border-left: 1px solid var(--line); }
#notes > :first-child { margin-top: 0; }
#notes > p.hint { padding-top: 26px; }

@media (max-width: 900px) {
  .check-pair { grid-template-columns: minmax(0, 1fr); }
  .check-pair .modes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ref-match { grid-template-columns: minmax(0, 1fr); }
  .notes-grid { grid-template-columns: minmax(0, 1fr); }
  #notes { padding-left: 0; border-left: 0; }
  #notes > p.hint { padding-top: 0; }
}
@media (max-width: 620px) {
  .check { gap: 18px; }
  .check > .source-grid { margin-bottom: 6px; }
  .check > .panel:last-child { margin-top: 6px; }
  .panel h2 { font-size: 22px; }
  .check-pair { gap: 18px; }
  .check-pair .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-match .field { flex: 1 1 100%; }
  .ref-match .field input { width: 100%; max-width: none; }
}
/* the reference comparison is one block: its heading, its measure button, then matching (Codex review 35) */
.ref-match-h { margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; color: var(--head, #F4F3EC); }
.ref-match .ref-match-h { grid-column: 1 / -1; }
