/* Hidden means hidden, whatever display rule an element otherwise has. */
[hidden]{display:none !important}

/* CNTRLLD ClearVox — interface styles.
   The palette, type and parts (header, context strip, meters, buttons, status
   bar) are SPECTRA's, so the two read as one family. The layout is a fixed
   720 x 440 surface scaled as a whole to the plug-in window. */

:root{
  --ink:#10151a;
  --panel:#171e24;
  --panel-2:#1c252c;
  --plot:#111920;
  --rule:#27333c;
  --rule-soft:#1e2830;
  --txt:#c8d4dc;
  --txt-dim:#7e8e9a;
  --txt-faint:#7b8a95;
  --amber:#e7a24a;
  --steel:#5fa8c9;
  --bone:#e6ddcd;
  --warn:#d7705a;
  --focus:#e7a24a;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{width:100%;height:100%;overflow:hidden;background:#0a0e12;color:var(--txt);
  font-family:"Barlow",system-ui,"Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;font-feature-settings:"tnum" 1,"lnum" 1;}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
#fit{transform-origin:top left;width:720px;height:440px}
.plug{position:relative;width:720px;height:440px;background:var(--panel);overflow:hidden;
  display:flex;flex-direction:column;user-select:none;-webkit-user-select:none}
.num{font-family:"Barlow Semi Condensed","Barlow",sans-serif;font-variant-numeric:tabular-nums}

/* ---------- header ---------- */
.top{flex:0 0 49px;display:flex;align-items:center;gap:18px;padding:0 18px;
  background:linear-gradient(180deg,#1c252c,#171e24);border-bottom:1px solid var(--rule)}
.brand{display:flex;align-items:baseline;gap:12px;flex:1;min-width:0}
.mfr{font-size:11px;letter-spacing:.30em;color:var(--txt-faint);font-weight:500;
  padding-right:12px;border-right:1px solid var(--rule);line-height:1}
.wordmark{font-size:25px;font-weight:600;letter-spacing:.10em;color:#f1f5f8;line-height:1}
.engine{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;color:var(--txt-dim);letter-spacing:.01em}
.pulse{width:6px;height:6px;border-radius:50%;background:var(--txt-faint);transition:background .4s}
.pulse.on{background:var(--amber);animation:pulse 2.6s ease-out infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(231,162,74,.45)}70%{box-shadow:0 0 0 7px rgba(231,162,74,0)}100%{box-shadow:0 0 0 0 rgba(231,162,74,0)}}
@media (prefers-reduced-motion:reduce){.pulse.on{animation:none}}

.tools{display:flex;align-items:center;gap:6px}
.seg{display:inline-flex;gap:0}
.seg .tbtn{border-radius:0;margin-left:-1px}
.seg .tbtn:first-child{border-radius:4px 0 0 4px;margin-left:0}
.seg .tbtn:last-child{border-radius:0 4px 4px 0}
.tbtn{height:26px;padding:0 9px;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;font-size:11.5px;
  color:var(--txt-dim);background:transparent;border:1px solid var(--rule);border-radius:3px;cursor:pointer}
.tbtn:hover:not(:disabled){color:var(--txt);border-color:#3a4a56;background:#1a232a}
.tbtn.icon{padding:0 7px}
.tbtn .ico{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.tbtn:disabled{opacity:.4;cursor:default}
.tbtn.on{color:var(--ink);background:var(--amber);border-color:var(--amber);font-weight:600}
.tbtn.on:hover:not(:disabled){color:var(--ink);background:#f2bd6e;border-color:#f2bd6e}
.bypass{margin-left:4px;height:26px;padding:0 13px;font-size:11.5px;letter-spacing:.04em;
  border:1px solid #3b4a55;border-radius:3px;background:#212b33;color:var(--txt-dim)}
.bypass.on{background:var(--warn);border-color:var(--warn);color:#150c09;font-weight:600}

/* ---------- context strip ---------- */
.strip{flex:0 0 36px;display:flex;align-items:center;gap:16px;padding:0 18px;
  background:var(--panel-2);border-bottom:1px solid var(--rule);font-size:12px}
.tag{color:var(--txt-faint);font-size:11.5px}
.tag b{font-weight:500;color:var(--txt);margin-left:4px}
.tag.alert b{color:var(--amber)}
.strip .right{margin-left:auto;display:flex;align-items:center;gap:14px}
.layer{display:flex;align-items:center;gap:6px;color:var(--txt-dim);font-size:11.5px}
.layer .sw{width:14px;height:3px;border-radius:2px;background:currentColor}

/* ---------- main ---------- */
.main{flex:1 1 auto;min-height:0;display:flex;background:var(--plot)}
.graphwrap{position:relative;flex:1;background:linear-gradient(180deg,#121a21 0%,#0f161c 100%)}
#graph{position:absolute;inset:0;width:100%;height:100%;display:block}
.side{width:252px;border-left:1px solid var(--rule-soft);background:#141c22;
  display:flex;align-items:stretch;gap:4px;padding:12px 14px 10px 12px}

.vmeters{display:flex;align-items:flex-end;gap:8px;padding-bottom:2px}
.vm{display:flex;flex-direction:column;align-items:center;gap:5px;width:30px}
.vm .vlab{font-size:10px;color:var(--txt-faint);letter-spacing:.04em;white-space:nowrap}
.vm b{font-weight:500;font-size:11.5px;color:var(--txt);width:100%;text-align:center;white-space:nowrap}
.vtrack{position:relative;width:13px;height:232px;background:#0d1319;border:1px solid #222d35;border-radius:2px;overflow:hidden}
.vtrack i{position:absolute;left:0;right:0;bottom:0;height:0;
  background:linear-gradient(0deg,#41596a 0%,#7fa3b8 62%,#c9dbe6 88%,var(--warn) 100%)}
.vtrack .pk{position:absolute;left:0;right:0;height:2px;bottom:0;background:#e9f1f6;opacity:0}
/* The removal meter hangs from the top, like a gain-reduction meter. */
.vtrack.gr i{top:0;bottom:auto;background:linear-gradient(180deg,#8a6a34,var(--amber))}

/* ---------- the one control ---------- */
.clean{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;outline:none;cursor:ns-resize}
.cname{font-size:12.5px;color:#dfe7ec;font-weight:500;letter-spacing:.08em;text-transform:uppercase}
.cbody{position:relative;display:flex;gap:6px;align-items:stretch;margin:8px 0 6px;padding-right:44px}
.scale{position:relative;width:16px;height:210px}
.cbody .end{position:absolute;left:62px;white-space:nowrap;font-size:9.5px;color:var(--txt-faint);letter-spacing:.08em;text-transform:uppercase;line-height:1}
.cbody .e-top{top:4px}
.cbody .e-bot{bottom:4px}
.scale i{position:absolute;right:0;width:7px;height:1px;background:#35434d;margin-bottom:-0.5px}
.scale i.mid{width:11px;background:#56656f}
.ctrack{position:relative;width:22px;height:210px;flex:0 0 22px;background:#0d1319;border:1px solid #2a343c;border-radius:3px}
.cfill{position:absolute;left:3px;right:3px;bottom:3px;height:0;border-radius:2px;
  background:linear-gradient(0deg,rgba(231,162,74,.25),rgba(231,162,74,.75))}
.ctrack .mark{position:absolute;left:-6px;right:-6px;height:1px;background:#3b4a55}
.clean.ring .ctrack .mark{background:#6e818e}
.clean.ring .cval{color:#ffc47a}
.ccap{position:absolute;left:50%;bottom:50%;width:46px;height:20px;transform:translate(-50%,50%);
  background:linear-gradient(180deg,#3c4a53,#222c33);border:1px solid #4d5d68;border-radius:3px;
  box-shadow:0 2px 5px rgba(0,0,0,.55)}
.ccap::after{content:'';position:absolute;left:5px;right:5px;top:50%;height:2px;margin-top:-1px;background:var(--amber);border-radius:1px}
.clean:hover .ccap,.clean.drag .ccap{border-color:#6e818e}
.clean:hover .ccap::after,.clean.drag .ccap::after{background:#ffc47a;box-shadow:0 0 6px rgba(231,162,74,.8)}
.cval{font-size:17px;font-weight:500;color:#eaf1f5;border-bottom:1px solid #2a353d;min-width:64px;text-align:center;padding-bottom:2px}
.clean:hover .cval,.clean.drag .cval{border-bottom-color:#e9a14b;color:#fff}
.clean:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:4px}
.plug.bypassed .clean,.plug.bypassed .graphwrap{opacity:.45}

/* ---------- status ---------- */
.status{flex:0 0 26px;display:flex;align-items:center;gap:18px;padding:0 18px;background:var(--panel-2);
  border-top:1px solid var(--rule);font-size:11px;color:var(--txt-faint)}
.status .hint{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status .right{margin-left:auto;display:flex;gap:18px;position:relative;flex:0 0 auto;white-space:nowrap}
.status .zoom{cursor:pointer}
.status .zoom:hover{color:var(--txt)}
.menu{position:absolute;z-index:30;background:#141c22;border:1px solid #35444f;border-radius:4px;
  box-shadow:0 12px 30px rgba(0,0,0,.55);padding:4px;min-width:120px}
.menu button{display:flex;justify-content:space-between;width:100%;text-align:left;padding:5px 10px;font-size:12px;
  color:var(--txt);border-radius:3px}
.menu button:hover{background:#243039}
.menu button.sel::after{content:"\2713";color:var(--amber)}
.zoommenu{right:-6px;bottom:22px}
.tbtn:focus-visible,.bypass:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* ---------- licence (as SPECTRA) ---------- */
.status .licence{cursor:pointer;color:var(--txt-dim)}
.status .licence:hover{color:var(--txt)}
.status .licence.warn{color:var(--warn)}
.status .buylink{cursor:pointer;padding:0 8px;border:1px solid #6b5230;border-radius:999px;color:var(--amber);line-height:16px}
.status .buylink:hover{background:#2a2620;color:#f2bd6e}
.licbadge{margin:8px 0 0;font-size:13px;font-weight:500;color:#eaf1f5;display:flex;align-items:center;gap:7px}
.licbadge::before{content:"";width:8px;height:8px;border-radius:50%;background:#7fd1a8;box-shadow:0 0 6px rgba(127,209,168,.6)}
.textlink{margin-top:10px;padding:0;border:0;background:none;font:inherit;font-size:11.5px;color:var(--txt-faint);
  text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.textlink:hover{color:var(--txt)}
.trialdays{font-size:34px;font-weight:600;line-height:1;color:var(--amber);margin:4px 0 6px}
.sheet{position:absolute;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:rgba(8,12,16,.72)}
.sheetbox{width:430px;background:#141c22;border:1px solid #35444f;border-radius:6px;padding:14px 16px 16px;
  box-shadow:0 22px 60px rgba(0,0,0,.6)}
.sheethead{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#eaf1f5;margin-bottom:8px}
.sheetnote{margin:8px 0 0;font-size:11.5px;line-height:1.45;color:var(--txt-dim)}
.sheetnote.err{color:var(--warn)}
.sheetnote.dim{color:var(--txt-faint)}
#licenceText{width:100%;box-sizing:border-box;height:104px;margin-top:8px;resize:none;background:#0d1319;
  border:1px solid var(--rule);border-radius:3px;color:var(--txt);font-family:"Barlow Semi Condensed",monospace;
  font-size:11.5px;padding:7px 8px;outline:none}
#licenceText:focus{border-color:var(--amber)}
.sheetrow{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}
.sheetrow .tbtn.go{background:#2a2620;border-color:#6b5230;color:#f1f5f8}
.popclose{border:0;background:none;color:var(--txt-faint);font-size:18px;line-height:1;cursor:pointer;padding:0 2px}
.popclose:hover{color:var(--txt)}
