:root{color-scheme:dark;--bg:#20242d;--chrome:#303541;--toolbar:#2c303b;--panel:#292e38;--canvas:#202530;--well:#242934;--edge:#3e4553;--edge2:#50596b;--text:#e5e9f0;--soft:#b4bbca;--muted:#8c95a6;--blue:#6daaf2;--blue-soft:#93c5ff;--violet:#a69af7;--mint:#77caa9;--yellow:#f0c56b;--hot:#f08b82;--good:#86d3ae;--corner:5px;font:13px/1.45 system-ui,Inter,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}html{min-width:330px}body{margin:0;color:var(--text);background:var(--bg)}button,select,input{font:inherit}button{color:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,select:focus-visible,input:focus-visible,[role=button]:focus-visible{outline:2px solid #a6d5ff;outline-offset:2px}button,select{border-radius:4px}button:active:not(:disabled){transform:translateY(1px)}
.top{height:40px;display:flex;align-items:center;gap:0;background:#333842;border-bottom:1px solid #414754;padding:0 14px}.product-mark{display:inline-flex;align-items:center;gap:9px;font-weight:710;letter-spacing:.01em;white-space:nowrap;margin-right:25px;font-size:13px}.top-status{display:flex;align-items:center;gap:7px;margin-left:auto;color:#aeb6c4;font-size:11px}.online-dot{width:7px;height:7px;border-radius:100%;background:#718093}.online-dot.active{background:#77dcb1;box-shadow:0 0 0 3px #77dcb122}
.toolbar{min-height:64px;background:var(--toolbar);display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:9px 14px;border-bottom:1px solid #414958}.toolgroup{display:flex;align-items:center;gap:4px}.tools-sep{height:30px;width:1px;background:#4b5260;margin:0 2px}.tb{border:1px solid #4a5363;background:#3a414e;min-height:34px;padding:6px 11px;color:#dfe4ed}.tb:hover{background:#495363}.tb.icon{min-width:35px;display:grid;place-items:center;padding:5px}.tb.major{background:#4476af;border-color:#6da6ec;color:white;font-weight:650}.tb.major:hover{background:#538bce}.tb.recording{background:#5b3a49;border-color:#b17889;color:#ffcbd8}.tb.on{border-color:#6e9aca;background:#394f6d}.tiny-icon{width:16px;height:16px;fill:currentColor;display:block}.label{font-size:11px;color:#b0b9c7;white-space:nowrap}.control{min-height:34px;color:#e1e7f0;background:#232934;border:1px solid #4b5565;padding:6px 9px;max-width:100%}.control:focus{outline:1px solid var(--blue)}.preset-select{min-width:210px;width:220px}.tb-text{font-size:11px;font-weight:650}.tb[data-disabled-hint]{opacity:.5}.cal-group{display:flex;align-items:center;gap:0}.cal-group .tb{border-radius:0}.cal-group .tb:first-child{border-radius:4px 0 0 4px}.cal-group .tb:last-child{border-radius:0 4px 4px 0}.cal-group input{width:61px;text-align:center;border-radius:0;appearance:textfield;-moz-appearance:textfield;min-height:34px;border-left:0;border-right:0;font-variant-numeric:tabular-nums}.cal-group input::-webkit-inner-spin-button,.cal-group input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.toolbar-tail{margin-left:auto;display:flex;align-items:center;gap:8px}.checkline{display:flex;align-items:center;gap:6px;color:#d4dae5;font-size:11px;cursor:pointer;white-space:nowrap}.checkline input{accent-color:#7cb2fb}
.small-split{width:1px;height:13px;background:#4a5362;margin:0 5px}
.main{max-width:1520px;margin:0 auto;padding:10px 12px 12px;display:grid;grid-template-columns:minmax(650px,1.22fr) minmax(410px,.88fr);gap:10px;align-items:start}.dock{min-width:0;background:var(--panel);border:1px solid var(--edge);border-radius:5px;overflow:hidden;box-shadow:0 1px 2px #0002}.dockbar{height:40px;background:#333945;border-bottom:1px solid #484f5d;display:flex;align-items:center;gap:9px;padding:0 13px}.dockbar .head{font-size:12px;font-weight:720;letter-spacing:.005em}.dockbar .sub{font-size:11px;color:var(--muted)}.dockbar .grow{flex:1}.dockbar .signal-led{display:inline-block;width:7px;height:7px;background:#718091;border-radius:50%}.dockbar .signal-led.on{background:var(--good)}
.instrument-layout{display:grid;grid-template-columns:minmax(238px,1.02fr) minmax(280px,.98fr);min-height:711px}.saz-stage{position:relative;display:flex;flex-direction:column;align-items:center;background:radial-gradient(ellipse at 50% 54%,#313846 0%,#252a34 63%,#222732 100%);border-right:1px solid #414854;min-width:0;overflow:hidden}.saz-svg{display:block;max-width:100%;width:auto;height:670px;flex-shrink:0;touch-action:manipulation;cursor:crosshair;user-select:none;-webkit-user-select:none;filter:drop-shadow(0 8px 16px #0a101b30)}.saz-svg image{pointer-events:none}.saz-svg .wire{fill:none;stroke:#f4f4ef;stroke-width:1.55;opacity:.54;pointer-events:none;stroke-linecap:round}.saz-svg .wire.wound{stroke:#b0c5c8;stroke-width:2.4;stroke-dasharray:2 1;opacity:.7}.saz-svg .wire.active{stroke:#b3defe;stroke-width:3;opacity:1;filter:url(#stringGlow)}.saz-svg .wire.wound.active{stroke:#d1edff;stroke-width:3.7;stroke-dasharray:none}.saz-svg .string-hit{fill:none;stroke:transparent;stroke-width:20;pointer-events:stroke;cursor:pointer;stroke-linecap:round}.saz-svg .string-hit.lower-fan{stroke-width:28}.saz-svg .peg .halo{fill:rgba(108,172,246,.04);stroke:rgba(133,191,254,.0);stroke-width:2;transition:stroke .15s,fill .15s}.saz-svg .peg.active .halo{stroke:#8ac3ff;stroke-width:3;fill:#72b4ff30;filter:url(#pegGlow)}.saz-svg .peg .peg-hit{fill:transparent;cursor:pointer}.saz-svg .peg.active .peg-core{fill:#cff0ff;stroke:#7dbafe;stroke-width:1;opacity:.9}.saz-svg .peg .peg-core{fill:transparent;stroke:transparent}.saz-svg .course-marker{fill:#2d3a4cdd;stroke:#64738b;stroke-width:1}.saz-svg .course-marker.active{fill:#426b96;stroke:#b5d9ff}.saz-svg .course-marker-text{fill:#cfd5df;font:bold 14px system-ui,sans-serif;text-anchor:middle;pointer-events:none}.saz-svg .course-marker-text.active{fill:#fff}.saz-svg .selected-bridge{fill:#b0d9ff;stroke:#ffffff;stroke-width:1;filter:url(#pegGlow)}.saz-svg .selected-nut{fill:#c7e3ff}.saz-svg .string-end-bubble{fill:#243342;stroke:#8ba0b8;stroke-width:1.4;cursor:pointer}.saz-svg .string-end-bubble.active{fill:#4d85bd;stroke:#d5ebff;stroke-width:2;filter:url(#pegGlow)}.saz-svg .string-end-text{fill:#edf5ff;font:700 10px system-ui,sans-serif;text-anchor:middle;pointer-events:none}.saz-svg .string-end-tail{fill:none;stroke:#9dbbe0;stroke-width:1.1;opacity:.35;pointer-events:none}.saz-svg .string-end-tail.active{stroke:#d5ecff;stroke-width:2.4;opacity:.95;filter:url(#stringGlow)}.stage-bottom{margin-top:auto;width:100%;padding:10px 12px 12px;border-top:1px solid #404858;background:#252b36a6;display:flex;justify-content:space-between;gap:12px;align-items:center}.stage-bottom .caption{font-size:11px;color:#bdc6d3}.stage-bottom .caption strong{color:#eaf1fb}.stage-bottom .keyhint{border:1px solid #586476;border-radius:2px;font-size:10px;padding:2px 5px;color:#b7c6d7;white-space:nowrap}
.tracks{display:flex;flex-direction:column;min-width:0;background:#252b35}.tracks-heading{display:flex;justify-content:space-between;padding:10px 12px;background:#2d3440;border-bottom:1px solid #454f5e;font-size:10px;letter-spacing:.04em;color:#abb5c4;text-transform:uppercase}.course-block{border-bottom:1px solid #414958}.course-title{display:flex;align-items:center;min-height:41px;padding:4px 8px 4px 11px;gap:8px;background:#303745}.course-no{width:18px;height:18px;border:1px solid #586677;background:#384353;text-align:center;font-weight:650;border-radius:3px;color:#d3dbea;font-size:11px;line-height:17px}.course-title .course-title-text{font-size:12px;font-weight:680;white-space:nowrap}.course-title .course-title-note{font-size:11px;color:#b0bad0;margin-left:auto;font-variant-numeric:tabular-nums}.course-title button{width:25px;height:23px;background:#3c4655;border:1px solid #556274;flex-shrink:0;display:grid;place-items:center;font-size:10px}.course-title button:hover{background:#52627a}.course-title .course-name-secondary{color:#9ca7b8;font-size:10px}.course-title .colourtab{width:3px;height:22px;background:var(--course)}.course-block.selected .course-title{background:#354051}.course-block.selected .course-no{border-color:#9bbfe9}.lane{display:flex;align-items:stretch;gap:0;width:100%;height:52px;background:#242c37;border:0;border-bottom:1px solid #394353;text-align:left;padding:0;position:relative}.lane:last-child{border-bottom:0}.lane:hover{background:#2b3544}.lane.active{background:#303e51;box-shadow:inset 0 0 0 1px #6ca5eb}.lane-tab{width:5px;flex:0 0 auto;background:var(--course);opacity:.86}.lane.active .lane-tab{opacity:1}.lane-header{width:92px;flex:0 0 92px;padding:7px 6px 7px 9px;border-right:1px solid #485364;overflow:hidden}.lane-no{color:#96a4b6;font-size:10px;display:block}.lane-name{display:block;font-size:10px;font-weight:670;color:#e2e7f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.lane-wave{min-width:0;flex:1;display:flex;align-items:center;position:relative;padding:0 6px}.wave-clip{border:1px solid color-mix(in srgb,var(--course),#111 40%);background:color-mix(in srgb,var(--course),transparent 75%);width:100%;height:35px;display:block;position:relative;overflow:hidden}.wave-top{position:absolute;top:1px;left:4px;color:#dce3ee;font-size:9px;z-index:1}.wave-line{width:100%;height:100%;display:block}.lane.active .wave-clip{outline:1px solid #c3ddff;outline-offset:-1px}.lane-note{font-size:11px;font-weight:700;color:#e5eaf1;width:40px;flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;padding:0 9px 0 0;font-variant-numeric:tabular-nums}.lane.active .lane-note{color:#a4cffd}.tracks-foot{margin-top:auto;padding:11px;border-top:1px solid #414958;background:#2b323e}.selected-string{font-size:11px;color:#9daabc}.selected-string .sel-note{display:block;color:#e8effa;font-size:21px;font-weight:700;line-height:1.5;font-variant-numeric:tabular-nums}.tracks-foot-actions{display:flex;gap:6px;margin-top:8px}.flatbtn{border:1px solid #566173;background:#3a4657;color:#e2e8f0;padding:6px 9px;min-height:30px;font-size:11px;flex:1}.flatbtn:hover{background:#4c5e73}.flatbtn:disabled{opacity:.5}
.read-panel{padding:12px;min-height:0}.read-top{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:0 1px 10px;border-bottom:1px solid #454d5b}.read-name{color:#a8b4c6;font-size:10px;text-transform:uppercase;letter-spacing:.07em}.read-name strong{display:block;font-size:16px;letter-spacing:0;text-transform:none;color:#e4e8f1;font-weight:680;margin-top:3px}.read-selected{border:1px solid #4f5869;background:#252c39;padding:6px 10px;min-width:113px;text-align:right}.read-selected .kicker{font-size:10px;color:#9dabc0}.read-selected .large{font-size:18px;line-height:1.3;font-weight:750;color:#c1dcff;font-variant-numeric:tabular-nums}.pitch-main{background:#242b36;border:1px solid #465061;display:grid;grid-template-columns:1fr 1fr;margin-top:12px;min-height:125px}.pitch-cell{padding:12px 16px;display:flex;flex-direction:column;justify-content:center}.pitch-cell+ .pitch-cell{border-left:1px solid #465061}.pitch-title{font-size:10px;text-transform:uppercase;color:#aeb7c5;font-weight:700;letter-spacing:.07em}.pitch-value{font-size:clamp(36px,3.5vw,55px);letter-spacing:-.04em;font-weight:650;line-height:1.2;font-variant-numeric:tabular-nums;color:#e6ebf3;margin:5px 0}.pitch-value.flat{color:#f5c680}.pitch-value.sharp{color:#f18f87}.pitch-value.tuned{color:#8bdeb6}.small-value{font-size:11px;color:#abb6c9;font-variant-numeric:tabular-nums}.pitch-focus{margin-top:11px}.meter-top{display:flex;justify-content:space-between;align-items:center;font-size:11px}.meter-top strong{font-size:15px;color:#e8edf6;font-variant-numeric:tabular-nums}.meter{margin:12px 9px 19px;position:relative;height:37px;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(10% - 1px),#58616f calc(10% - 1px),#58616f 10%),linear-gradient(180deg,#242b34,#2c3440);border-block:1px solid #596270}.meter:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:10%;transform:translateX(-50%);background:#5a997b37;box-shadow:inset 0 0 0 1px #7ab99c9c}.meter:after{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background:#a8e3bd}.needle{position:absolute;top:-5px;bottom:-6px;width:3px;left:50%;transform:translateX(-50%);background:#b9ddff;box-shadow:0 0 6px #add3ffaf;transition:left .12s;z-index:2}.needle:before{content:"";border-left:6px solid transparent;border-right:6px solid transparent;border-top:7px solid #b9ddff;position:absolute;top:-1px;left:-4.5px}.ticks{display:flex;justify-content:space-between;margin-top:-11px;font-size:10px;color:#929ead;font-variant-numeric:tabular-nums}.meter-status{background:#222832;border:1px solid #424c5a;font-size:12px;color:#c6d0dd;margin-top:16px;padding:9px 10px;min-height:38px}.meter-status.good{border-color:#5da582;color:#b0e8cd}.meter-status.warn{border-color:#98666a;color:#f1b5b4}.readinfo{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:11px 0}.info-cell{background:#272e3a;border:1px solid #444d5d;padding:9px 11px}.info-cell .mini{font-size:10px;color:#9facc0;text-transform:uppercase;letter-spacing:.045em}.info-cell .val{color:#e2e9f4;font-size:16px;font-weight:660;margin-top:3px;font-variant-numeric:tabular-nums}.info-cell .desc{font-size:10px;color:#8d9bac;margin-top:2px}.plot{margin-top:10px;border:1px solid #465061;background:#202632}.plot-head{height:30px;background:#313846;display:flex;align-items:center;justify-content:space-between;padding:0 10px;font-size:11px;font-weight:675;border-bottom:1px solid #464e5c}.plot-head .legend{font-size:10px;color:#a3aec0;font-weight:400}.plot-head .legend i{display:inline-block;height:2px;width:14px;background:var(--yellow);vertical-align:middle;margin-right:5px}.plot canvas{display:block;width:100%;height:166px;background:linear-gradient(#262d3b,#202630)}.plot-footer{display:flex;justify-content:space-between;background:#29303b;border-top:1px solid #454f5e;padding:5px 9px;font-size:10px;color:#9dabbc}.waveform-plot{margin-top:10px}.waveform-plot canvas{height:86px}.meter-level{display:flex;align-items:center;gap:8px}.level-track{height:8px;width:96px;background:#19202a;border:1px solid #485465}.level-fill{height:100%;width:0;background:linear-gradient(90deg,#62acb8 0%,#9ad0a4 65%,#ebbd6e 84%,#de8383 100%);transition:width .08s}
.custom-area{border-top:1px solid #4a5361;background:#242b36;display:none;padding:11px 12px;gap:10px;align-items:end;flex-wrap:wrap}.custom-area.open{display:flex}.custom-area label{font-size:10px;color:#a9b3c3;display:flex;flex-direction:column;gap:5px}.custom-area select{width:114px}.custom-area p{font-size:10px;margin:0;flex:1;min-width:190px;color:#a3adbd}.helpbar{max-width:1520px;margin:0 auto;padding:0 12px 10px}.note-panel{border:1px solid #465061;background:#292f3a;color:#adb9cb;padding:9px 12px;font-size:11px}.note-panel strong{color:#e0e6ef}.footer{background:#2d323c;border-top:1px solid #48505f;color:#acb5c2;display:flex;align-items:center;gap:16px;padding:7px 14px;font-size:10px;min-height:30px}.footer .right{margin-left:auto}.footer strong{color:#dfe6ef;font-weight:680}
@media(max-width:1100px){.main{grid-template-columns:minmax(0,1fr)}.instrument-layout{grid-template-columns:minmax(260px,1fr) minmax(280px,.9fr)}.saz-svg{height:690px}.read-panel{display:grid;grid-template-columns:minmax(280px,1fr) minmax(310px,1fr);grid-template-areas:"head head" "read spectrum" "meter spectrum" "info waveform";gap:0 12px}.read-top{grid-area:head}.pitch-main{grid-area:read}.pitch-focus{grid-area:meter}.readinfo{grid-area:info}.plot{grid-area:spectrum;align-self:start;margin-top:12px}.waveform-plot{grid-area:waveform;margin-top:8px;align-self:start}}
@media(max-width:760px){.top{padding:0 10px}.toolbar{gap:8px;padding:8px 10px}.preset-select{min-width:180px;width:180px}.toolbar-tail{margin-left:0}.main{padding:7px;gap:8px}.instrument-layout{grid-template-columns:1fr}.saz-stage{border-right:0;border-bottom:1px solid #414854;min-height:0}.saz-svg{height:min(670px,120vw);max-height:670px}.tracks{min-height:0}.tracks-foot{margin-top:0}.read-panel{display:block}.read-top{display:grid}.pitch-main{margin-top:12px}.plot{margin-top:10px}.waveform-plot{margin-top:10px}}
@media(max-width:460px){.product-mark{margin-right:10px;font-size:12px}.top-status{font-size:10px}.toolbar{gap:6px}.toolbar .tools-sep{display:none}.tb{padding:6px 8px}.tb.icon{min-width:31px}.tb-text{font-size:10px}.preset-select{min-width:151px;width:151px;font-size:11px}.label{font-size:10px}.course-title .course-name-secondary{display:none}.pitch-cell{padding:10px}.pitch-value{font-size:39px}.saz-svg{height:570px}.read-panel{padding:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}

/* On narrow screens, the live pitch readout sits immediately below the saz,
   before the list of seven tracks, to avoid scrolling past the tracks to tune. */
.mobile-tuning-panel{display:none}
@media(max-width:760px){
  .mobile-tuning-panel{display:block;min-width:0;padding:9px 11px 12px;background:#29313e;border-top:1px solid #485263;border-bottom:1px solid #485263}
  .mobile-tuning-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:32px}
  .mobile-tuning-toolbar strong{font-size:11px;color:#cdd7e6;font-weight:710;letter-spacing:.065em;display:flex;align-items:center;gap:7px}
  .mobile-live-dot{width:7px;height:7px;border-radius:50%;background:#69798e;display:inline-block}
  .mobile-live-dot.on{background:#84d8b5;box-shadow:0 0 0 3px #84d8b51e}
  .mobile-mic-toggle{border:1px solid #6e9bcc;background:#38587c;color:#f1f6ff;padding:6px 12px;min-height:32px;font-size:11px;font-weight:700;border-radius:3px}
  .mobile-mic-toggle.recording{background:#603e4b;border-color:#b07889;color:#ffd4dd}
  .mobile-mic-toggle:disabled{opacity:.65}
  .mobile-tuning-panel .read-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:7px 1px 8px;border-bottom:1px solid #465165}
  .mobile-tuning-panel .read-name{font-size:9px}
  .mobile-tuning-panel .read-name strong{font-size:14px;margin-top:1px}
  .mobile-tuning-panel .read-selected{padding:4px 9px;min-width:82px}
  .mobile-tuning-panel .read-selected .large{font-size:16px}
  .mobile-tuning-panel .pitch-main{margin-top:8px;min-height:0}
  .mobile-tuning-panel .pitch-cell{padding:7px 12px}
  .mobile-tuning-panel .pitch-title{font-size:9px}
  .mobile-tuning-panel .pitch-value{font-size:clamp(30px,8vw,40px);margin:1px 0;line-height:1.15}
  .mobile-tuning-panel .small-value{font-size:10px}
  .mobile-tuning-panel .pitch-focus{margin-top:8px}
  .mobile-tuning-panel .meter-top{font-size:10px}
  .mobile-tuning-panel .meter-top strong{font-size:11px}
  .mobile-tuning-panel .meter{height:27px;margin:8px 7px 17px}
  .mobile-tuning-panel .meter-status{font-size:11px;line-height:1.35}
}


/* Straight instrument strings end at the bridge; label leaders begin below it. */
.saz-stage 
.saz-svg .wire{pointer-events:none}
.saz-svg .wire.active{stroke:#a9dafd;stroke-width:3}
.saz-svg .wire.wound.active{stroke-width:3.6}
.saz-svg .string-callout{fill:none;stroke:#91b1ce;stroke-width:1.65;stroke-dasharray:4 3;stroke-linejoin:round;stroke-linecap:round;opacity:.70;pointer-events:none}
.saz-svg .string-callout.active{stroke:#c9e9ff;stroke-width:2.7;stroke-dasharray:none;opacity:1;filter:url(#stringGlow)}
.saz-svg .string-callout-dot{fill:#92b9d9;stroke:#24303c;stroke-width:.9;opacity:.9;pointer-events:none}
.saz-svg .string-callout-dot.active{fill:#daedff;stroke:#70b8ff}
.saz-svg .string-end{cursor:pointer}
.saz-svg .string-end-bubble{fill:#253646;stroke:#9bb3c8;stroke-width:1.8;cursor:pointer}
.saz-svg .string-end-bubble.active{fill:#457baf;stroke:#e6f4ff;stroke-width:2.6;filter:url(#pegGlow)}
.saz-svg .string-end-text{fill:#f0f6ff;font:700 12px system-ui,sans-serif;text-anchor:middle;pointer-events:none}
.saz-svg .string-end:focus-visible{outline:none}
.saz-svg .string-end:focus-visible .string-end-bubble{stroke:#ffffff;stroke-width:3}
.plot-head .fft-detail{color:#9cabbf;font-weight:450}

.top .brand-icon{display:block;width:20px;height:20px;flex-shrink:0}
