:root{color-scheme:dark;--paper:#203239;--ink:#edf1e4;--muted:#b3c3b7;--line:#496059;--lime:#dbeaaf}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 Arial,Helvetica,sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--lime);outline-offset:5px}button{color:inherit;background:transparent;border:1px solid var(--line);min-height:44px}button:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}.shell{max-width:1120px;margin:auto;padding:0 42px;padding-bottom:env(safe-area-inset-bottom)}header{display:flex;align-items:center;justify-content:space-between;padding:28px 0 30px}.brand{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none}.brand>span{font:32px Georgia,serif;letter-spacing:-1px}.brand small{display:block;font:7px Arial,sans-serif;letter-spacing:1.2px;margin-top:8px}.header-note{font-size:11px;color:var(--muted)}nav{display:flex;border-bottom:1px solid var(--line);gap:32px}nav button{border:0;border-bottom:2px solid transparent;padding:10px 0 15px;font-size:17px;color:var(--muted)}nav button[aria-pressed=true]{color:var(--lime);border-color:var(--lime)}main section{display:grid;grid-template-columns:1fr 1fr;gap:65px;padding:48px 0 40px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);margin:0 0 24px}h1{font:normal clamp(44px,5.5vw,68px)/1.03 Georgia,serif;letter-spacing:-2.5px;margin:0 0 24px}h1 em{display:block;color:var(--lime);font-weight:normal}.intro>p:last-child{color:var(--muted);font-size:14px;max-width:230px}.instrument{min-width:0}.readout{display:flex;justify-content:space-between;gap:8px;font-size:9px;letter-spacing:1px;color:var(--muted)}.note{text-align:center;height:161px;font:130px/1.2 Georgia,serif;color:var(--lime)}.note small{font-size:28px}#tuning-status{text-align:center;margin:0 0 24px;font-size:14px;min-height:21px}.gauge{position:relative;height:40px;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(10% - 1px),var(--line) calc(10% - 1px),var(--line) 10%);border-bottom:1px solid var(--line)}.target{position:absolute;left:45%;width:10%;height:100%;background:#dbeaaf20;border-inline:1px solid var(--lime)}#needle{position:absolute;left:50%;height:46px;width:2px;background:var(--lime);transform:translateX(-50%);transition:left .1s;top:-6px}#needle:before{content:'';position:absolute;top:0;left:-3px;width:8px;height:8px;border-radius:50%;background:var(--lime)}.scale{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:10px}.strings{display:flex;gap:6px;margin:26px 0}.strings button{flex:1;min-width:0;border-radius:24px;font-size:19px;padding:8px 0}.strings button:first-child{font-size:11px;flex:1.3}.strings small{display:block;font:9px Arial;color:var(--muted)}.strings button[aria-pressed=true]{background:var(--lime);color:var(--paper);border-color:var(--lime)}.strings button[aria-pressed=true] small{color:var(--paper)}.primary{border:0;border-radius:32px;background:var(--lime);color:var(--paper);width:100%;min-height:56px;padding:14px 22px;display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:14px}.primary span{font-size:20px}.hint{text-align:center;font-size:11px;color:var(--muted);line-height:1.6;margin:15px 0 0}.tempo{display:flex;align-items:center;justify-content:space-between;gap:10px;height:170px}.tempo button{width:44px;border-radius:50%;font-size:26px}.tempo input{width:210px;min-width:0;text-align:center;border:0;background:none;color:var(--lime);font:100px Georgia,serif;appearance:textfield;-moz-appearance:textfield}.tempo input::-webkit-inner-spin-button{appearance:none}input[type=range]{width:100%;accent-color:var(--lime);height:30px}.metro-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.metro-options button{font-size:12px;padding:0 15px;border-radius:24px}.metro-options label{font-size:12px;color:var(--muted)}select{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:9px 5px;margin-left:6px}#beats{display:flex;justify-content:center;gap:16px;margin-top:24px}#beats i{width:16px;height:16px;border:1px solid var(--muted);border-radius:50%}#beats i:first-child{border-color:var(--lime);border-width:3px}#beats i.on{background:var(--lime);box-shadow:0 0 0 5px #dbeaaf18}#meter-hint{margin:14px 0 24px}footer{border-top:1px solid var(--line);padding:20px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:11px}footer button{border:0;font-size:11px;padding:0;color:var(--lime)}dialog{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:20px;max-width:420px;width:calc(100% - 32px);padding:28px}dialog::backdrop{background:#0009}dialog h2{font:30px Georgia;margin-top:0}dialog p{font-size:14px;color:var(--muted)}@media(max-width:700px){.shell{max-width:480px;padding-inline:22px}header{padding:20px 0}.header-note{font-size:10px}main section{grid-template-columns:1fr;gap:24px;padding:26px 0}.eyebrow{margin-bottom:12px;font-size:9px}h1{font-size:42px;letter-spacing:-1.7px;margin-bottom:10px}h1 em{display:inline}.intro>p:last-child{max-width:none;margin:0;font-size:12px}.note{height:124px;font-size:103px}.readout{font-size:8px}.strings{margin:20px 0}.tempo{height:135px}.tempo input{font-size:86px;width:185px}#tuning-status{margin-bottom:19px}footer{padding:10px 0}.hint{font-size:10px}.brand>span{font-size:29px}}@media(prefers-reduced-motion:reduce){#needle{transition:none}}@media(max-width:350px){.shell{padding-inline:16px}h1{font-size:37px}.header-note{display:none}.metro-options{gap:6px}.metro-options button{padding-inline:10px}.tempo input{width:160px;font-size:76px}}
/* Compact instrument controls; keep labels and numerals within their own boxes. */
.brand{min-width:0}.brand>span{white-space:nowrap}.brand small{letter-spacing:1px}.readout{flex-wrap:wrap;line-height:1.5}.note{display:flex;align-items:baseline;justify-content:center;gap:4px;height:auto;min-height:150px;line-height:1.1;padding:14px 0;font-variant-numeric:tabular-nums}.note small{font:24px/1 Arial,sans-serif;align-self:center;margin-top:30px}#tuning-status{line-height:1.5;min-height:42px;margin-bottom:12px}.strings{gap:5px}.strings button{display:flex;align-items:baseline;justify-content:center;gap:2px;line-height:1.2;padding:12px 2px;white-space:nowrap}.strings small{font-size:11px}.strings button.detected{background:var(--lime);color:var(--paper);border-color:var(--lime);box-shadow:0 0 0 3px #dbeaaf22}.strings button.detected small{color:var(--paper)}.strings button:first-child[aria-pressed=true]{background:transparent;color:var(--lime);border-color:var(--lime)}.target{left:48%;width:4%}.scale span{white-space:nowrap}.primary{line-height:1.4;gap:12px}.primary span{flex:none;line-height:1}.hint:empty{display:none}footer{justify-content:flex-end}#beats i{flex:none}.intro{min-width:0}h1{overflow-wrap:normal;letter-spacing:-.04em}h1 em{padding-right:.08em}.dial-layout{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:6px;align-items:center;margin:20px 0 4px}.dial-layout>button{border-radius:50%;width:38px;height:44px;font:26px/1 Arial,sans-serif;padding:0}.dial-wrap{position:relative;width:100%;max-width:260px;aspect-ratio:1;margin:auto}#dial{position:absolute;inset:0;border-radius:50%;touch-action:none;cursor:grab;--angle:-73.6deg}#dial:active{cursor:grabbing}#dial svg{width:100%;height:100%;display:block;overflow:visible}.dial-track,#dial-progress{fill:none;stroke-width:5;stroke-linecap:round}.dial-track{stroke:var(--line)}#dial-progress{stroke:var(--lime);stroke-dasharray:22.72 100}.dial-hand{position:absolute;inset:12%;border-radius:50%;transform:rotate(var(--angle));pointer-events:none}.dial-hand i{position:absolute;left:calc(50% - 3px);top:0;width:6px;height:14px;border-radius:4px;background:var(--lime)}.dial-value{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:68%;text-align:center;pointer-events:none}.dial-value input{width:100%;padding:0;border:0;background:none;color:var(--lime);font:clamp(44px,6vw,74px)/1.2 Georgia,serif;font-variant-numeric:tabular-nums;text-align:center;appearance:textfield;-moz-appearance:textfield;pointer-events:auto;min-height:64px}.dial-value input::-webkit-inner-spin-button{appearance:none}.dial-value>span{font-size:10px;letter-spacing:2px;color:var(--muted);display:block}#metro-status:not(:empty){min-height:20px}#meter-hint{min-height:18px}.metro-options{flex-wrap:wrap}.metro-options label{white-space:nowrap}@media(max-width:700px){main section{gap:20px;padding-top:25px}h1{font-size:40px;line-height:1.15}.note{min-height:130px}.dial-value input{font-size:64px}.dial-layout{margin-top:12px}.strings button{font-size:19px}.strings small{font-size:11px}}@media(max-width:350px){h1{font-size:36px}.dial-value input{font-size:52px}.brand small{font-size:6px;letter-spacing:.8px}.strings{gap:4px}.strings button{font-size:17px}.strings button:first-child{font-size:10px}.readout{font-size:8px}}
