/* Interactive headstock tuner — original MetronomeBase artwork and controls */
.studio-shell .studio-page-content.tuner-page{max-width:1450px;padding-top:7px}
.tuner-page .tuner-hero{margin:19px 0 24px}
.tuner-page .tuner-kicker{font-size:10px;letter-spacing:1.7px;text-transform:none;font-weight:800;color:#8276c8;margin:0 0 10px}
.tuner-page .tuner-hero h1{font:800 clamp(27px,3.6vw,39px)/1.14 Rubik,system-ui,sans-serif;letter-spacing:-1.4px;color:#202838;margin:0}
.tuner-page .tuner-hero p:not(.tuner-kicker){color:#7e8898;font-size:13px;line-height:1.75;max-width:680px;margin:12px 0 0}
.tuner-page .tuner-studio{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(310px,.94fr);gap:20px;align-items:start;min-width:0}
.tuner-page .headstock-panel,.tuner-page .tuner-options-panel,.tuner-page .tuner-mic-panel,.tuner-page .tuner-settings-panel{background:#fff;border:1px solid #e6ebf1;border-radius:19px;box-shadow:0 11px 33px rgb(20 34 54 / 4%);min-width:0}
.tuner-page .headstock-panel{padding:21px 24px 22px;overflow:hidden}
.tuner-page .headstock-top{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:8px}
.tuner-page .headstock-top h2{font:800 15px/1.35 Rubik,system-ui,sans-serif;letter-spacing:-.3px;color:#252d3c;margin:0}
.tuner-page .headstock-top span{font-size:10px;color:#8e97a6}
.tuner-page .headstock-caption{color:#8d97a4;font-size:11px;line-height:1.6;margin:9px 0 0}
.tuner-page .headstock-visual{position:relative;aspect-ratio:420 / 590;max-width:460px;margin:10px auto 0;background:radial-gradient(ellipse at 50% 35%,#f8f9fb 5%,#fff 75%);isolation:isolate}
.tuner-page #headstockSvg{display:block;width:100%;height:100%;overflow:visible}
.tuner-page .headstock-buttons{position:absolute;inset:0;pointer-events:none}
.tuner-page .headstock-note{position:absolute;top:var(--y);left:var(--x);width:54px;height:54px;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;z-index:2;pointer-events:auto;border:1px solid #dce3ed;border-radius:50%;background:#f1f3f7;color:#263246;box-shadow:0 3px 9px #19273c0d;cursor:pointer;transition:background .18s,color .18s,transform .18s,box-shadow .18s}
.tuner-page .headstock-note:hover{background:#e9eeff;transform:translate(-50%,-50%) scale(1.06);border-color:#b9afea}
.tuner-page .headstock-note:focus-visible{outline:3px solid #887ae7;outline-offset:3px}
.tuner-page .headstock-note[aria-pressed="true"]{background:#baf66f;border-color:#99d855;color:#172a27;box-shadow:0 0 0 4px #baf66f40,0 4px 12px #19273c17}
.tuner-page .headstock-note .pitch-name{font:800 19px/1.15 Rubik,system-ui,sans-serif;letter-spacing:-.5px}
.tuner-page .headstock-note .pitch-octave{font:600 9px/1.2 Rubik,system-ui,sans-serif;color:#818a9c}
.tuner-page .headstock-note[aria-pressed="true"] .pitch-octave{color:#41682d}
.tuner-page .headstock-note[data-side="left"]::after,.tuner-page .headstock-note[data-side="right"]::before{content:"";position:absolute;width:9px;height:1px;background:#b9c3cf;top:50%}
.tuner-page .headstock-note[data-side="left"]::after{right:-10px}
.tuner-page .headstock-note[data-side="right"]::before{left:-10px}
.tuner-page .chromatic-help{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:11px;min-height:330px;margin-top:20px;padding:35px;background:linear-gradient(135deg,#f7f9fb,#eef6eb);border:1px solid #e3ebe0;border-radius:15px;color:#42566e;text-align:center}
.tuner-page .chromatic-help[hidden]{display:none}
.tuner-page .chromatic-help strong{font-size:17px;letter-spacing:-.3px;color:#283c32}
.tuner-page .chromatic-help p{font-size:12px;line-height:1.7;max-width:290px;margin:0;color:#65748a}
.tuner-page .reference-hint{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;min-height:33px;margin-top:5px;color:#828b9b;font-size:11px;text-align:center}
.tuner-page .reference-hint strong{color:#38465c;font-weight:800}
.tuner-page .reference-controls{display:flex;justify-content:center;margin-top:9px}
.tuner-page #referenceButton{border:1px solid #e4e4fa;border-radius:10px;padding:10px 16px;background:#f4f1ff;color:#625ab0;font:800 11px Rubik,system-ui,sans-serif;cursor:pointer;min-height:39px}
.tuner-page #referenceButton:disabled{opacity:.45;cursor:not-allowed}
.tuner-page .tuner-side{display:grid;gap:16px;min-width:0}
.tuner-page .tuner-options-panel,.tuner-page .tuner-mic-panel,.tuner-page .tuner-settings-panel{padding:22px 23px}
.tuner-page .section-title{margin:0 0 17px;font:800 14px/1.35 Rubik,system-ui,sans-serif;color:#273043;letter-spacing:-.3px}
.tuner-page .tuner-side h3{margin:17px 0 10px;font-size:12px;font-weight:800;color:#3d485c}
.tuner-page .instrument-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.tuner-page .instrument-choice{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;border:0;padding:0;background:none;color:#596677;cursor:pointer;font:750 10px/1.3 Rubik,system-ui,sans-serif}
.tuner-page .instrument-thumb{width:100%;height:96px;display:grid;place-items:center;border:2px solid #e1e6ed;border-radius:15px;background:#f3f5f8;overflow:hidden;transition:background .15s,border-color .15s,box-shadow .15s}
.tuner-page .instrument-choice svg{display:block;width:100%;height:100%;max-width:84px;max-height:84px}
.tuner-page .instrument-choice[aria-pressed="true"] .instrument-thumb{border-color:#87be45;background:#edf9e3;box-shadow:0 0 0 2px #bbf47933}
.tuner-page .instrument-choice[aria-pressed="true"]{color:#244d2f}
.tuner-page .instrument-choice:hover .instrument-thumb{border-color:#b4c3d6}
.tuner-page .instrument-choice:focus-visible{outline:3px solid #8279e0;outline-offset:3px;border-radius:8px}
.tuner-page .tuner-bass-row{margin-top:14px;display:flex;align-items:center;gap:10px;justify-content:space-between;border-radius:11px;padding:9px 12px;background:#f7f9fc}
.tuner-page .tuner-bass-row[hidden]{display:none}
.tuner-page .tuner-bass-row label{font-size:11px;font-weight:800;color:#5e6879}
.tuner-page .tuner-bass-row select{padding:7px 8px;max-width:138px;border:1px solid #dfe5ef;border-radius:8px;background:#fff;color:#334055;font:700 11px Rubik,system-ui,sans-serif}
.tuner-page .tuner-chromatic{display:inline-flex;align-items:center;margin-top:12px;gap:6px;padding:6px 10px;background:#f7f8fb;border:1px solid #e6eaf2;border-radius:8px;color:#6c778b;font-size:10px;font-weight:700;cursor:pointer}
.tuner-page .tuner-chromatic[aria-pressed="true"]{background:#edf4e8;border-color:#a6d08e;color:#33603c}
.tuner-page .tuner-options-separator{border:0;border-top:1px solid #ecedf2;margin:21px 0 17px}
.tuner-page .tuning-list{border:1px solid #e6eaf0;border-radius:11px;overflow-y:auto;max-height:214px;background:#fff;scrollbar-color:#c8cfd9 transparent;overscroll-behavior:contain}
.tuner-page .tuning-choice{display:grid;grid-template-columns:20px minmax(0,1fr);gap:9px;width:100%;align-items:center;min-height:48px;padding:9px 12px;border:0;border-bottom:1px solid #eef0f4;background:#fff;text-align:left;cursor:pointer;font-family:Rubik,system-ui,sans-serif}
.tuner-page .tuning-choice:last-child{border-bottom:0}
.tuner-page .tuning-choice:hover{background:#f7f9fb}
.tuner-page .tuning-choice[aria-pressed="true"]{background:#f2f8ef}
.tuner-page .tuning-choice .tuning-mark{font-size:16px;color:#469159;font-weight:850}
.tuner-page .tuning-choice .tuning-copy{min-width:0}
.tuner-page .tuning-choice strong{display:block;color:#2c3749;font-size:11px;line-height:1.4}
.tuner-page .tuning-choice small{display:block;color:#9aa3b1;font-size:10px;letter-spacing:.5px;line-height:1.5;margin-top:1px;overflow-wrap:anywhere}
.tuner-page .tuner-loop-row{display:flex;align-items:center;gap:9px;margin:17px 0 0;color:#455368;font-size:11px;font-weight:750;cursor:pointer}
.tuner-page .tuner-loop-row input{width:16px;height:16px;accent-color:#6d9c3c}
.tuner-page .tuner-loop-row span{font-weight:400;color:#939cab;margin-left:auto;font-size:10px}
.tuner-page .tuner-mic-panel .mic-desc,.tuner-page .tuner-settings-panel .mic-desc{color:#8791a1;font-size:11px;line-height:1.6;margin:-7px 0 14px}
.tuner-page .tuner-mic-panel .mic-action{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.tuner-page .tuner-mic-panel #microphone{flex:0 0 auto;font:800 11px Rubik,system-ui,sans-serif;padding:12px 16px;min-height:42px;border-radius:10px}
.tuner-page .mic-privacy{font-size:10px;color:#9ba4b0;line-height:1.6;margin:14px 0 0}
.tuner-page .mic-readout{margin-top:16px;background:#f8f9fc;border:1px solid #edf0f4;border-radius:13px;padding:17px 15px 13px}
.tuner-page .mic-reading-line{display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap}
.tuner-page .mic-reading-line .field-label{font-size:10px;letter-spacing:1px}
.tuner-page #detectedNote{font-size:clamp(40px,4vw,56px);font-weight:850;letter-spacing:-2px;min-height:50px;line-height:1.15;margin:0;color:#29354a}
.tuner-page #centsValue{font-size:13px;color:#7c8696;margin:0;font-weight:800}
.tuner-page .mic-readout #meter{margin:17px auto 0;max-width:100%;height:10px}
.tuner-page .mic-readout .meter-labels{font-size:10px;margin:13px 0 0}
.tuner-page .mic-readout .target-label{font-size:10px;margin:16px 0 4px}
.tuner-page .mic-readout .frequency{font-size:10px;margin:3px 0;color:#9199a8;min-height:0;line-height:1.6}
.tuner-page .mic-readout .status{font-size:10px;padding:10px;margin-top:13px;line-height:1.5}
.tuner-page .tuner-settings-panel label{display:flex;justify-content:space-between;gap:9px;font-size:11px;font-weight:700;color:#667386}
.tuner-page .tuner-settings-panel input[type=range]{width:100%;margin:15px 0 6px;accent-color:#7f70e9}
.tuner-page .tuner-settings-panel .reference-limits{display:flex;justify-content:space-between;font-size:10px}
.tuner-page .tuner-settings-panel details{border-top:1px solid #e8ecf2;margin-top:20px;padding-top:14px}
.tuner-page .tuner-settings-panel summary{font-size:12px;font-weight:800;cursor:pointer;color:#2d3850}
.tuner-page .tuner-settings-panel ol{margin:14px 0;padding-left:19px;color:#7b8696;font-size:11px;line-height:1.75}
.tuner-page .tuner-settings-panel .low-note{font-size:10px;line-height:1.7;color:#888f9e;margin:13px 0 0}
.tuner-page .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:1050px){.tuner-page .tuner-studio{grid-template-columns:minmax(0,1fr)}.tuner-page .tuner-side{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.tuner-page .tuner-options-panel{grid-row:span 2}}
@media(max-width:690px){.tuner-page .tuner-studio,.tuner-page .tuner-side{grid-template-columns:minmax(0,1fr)}.tuner-page .headstock-panel{padding:18px 12px}.tuner-page .tuner-options-panel,.tuner-page .tuner-mic-panel,.tuner-page .tuner-settings-panel{padding:19px}.tuner-page .tuner-hero{margin-top:14px}.tuner-page .tuner-hero h1{font-size:clamp(25px,6.4vw,32px)}.tuner-page .headstock-note{width:46px;height:46px}.tuner-page .headstock-note .pitch-name{font-size:16px}.tuner-page .headstock-note .pitch-octave{font-size:8px}.tuner-page .instrument-thumb{height:77px}.tuner-page .instrument-choice{font-size:9px}}
@media(max-width:360px){.tuner-page .instrument-choices{gap:5px}.tuner-page .instrument-thumb{height:68px}.tuner-page .headstock-note{width:40px;height:40px}.tuner-page .headstock-note .pitch-name{font-size:14px}.tuner-page .headstock-note .pitch-octave{font-size:7px}}
