
:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#f8fafc;background:#0b1020}
*{box-sizing:border-box}
body{margin:0;padding:18px 12px 45px;max-width:850px;margin:auto}
h1{font-size:25px;margin:8px 0}
h2{font-size:17px;margin:2px 0 12px}
p,small{color:#aebbd1}
button,input,select{font:inherit}
button{background:#253450;color:white;border:1px solid #405271;border-radius:11px;padding:11px 13px;cursor:pointer}
button.primary{background:#fbbf24;color:#151515;border-color:#fbbf24;font-weight:700}
button:disabled{opacity:.35}
button.active{border-color:#fbbf24;color:#fbbf24}
.panel{border:1px solid #2c3b55;border-radius:17px;background:#141d30;padding:15px;margin-top:13px}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.row>*{min-width:0}
.spread{justify-content:space-between}
.tabs button{flex:1}
input,select{background:#0b1428;color:white;border:1px solid #4b5d7b;border-radius:10px;padding:10px;width:100%}
.muted{color:#9dafcc;font-size:13px}
.fretwrap{overflow-x:auto;padding:10px 0}
.fretboard{min-width:640px;display:grid;grid-template-columns:65px repeat(var(--fret-count,16),minmax(43px,1fr));gap:4px}
#practiceBoard .fretboard{grid-template-columns:58px repeat(var(--fret-count,16),minmax(34px,1fr))}
.fretlabel{text-align:center;color:#aebbd1;font-size:12px;padding:8px 0}
.stringlabel{font-size:12px;align-self:center}
.fret{position:relative;height:43px;border:1px solid #46536b;border-radius:7px;background:linear-gradient(transparent 47%,#7d90a8 48%,#7d90a8 52%,transparent 53%),#1b2940;padding:0;font-size:12px}
.fret.selected{background:#fbbf24;color:#0b1020;font-weight:800;border-color:#fff}
.fret.target{outline:3px solid #38d9a9;outline-offset:-3px}
.fret.zero{background:#25364f}
.chip{padding:8px 11px;background:#263853;border-radius:9px;font-size:13px}
.chip.current{background:#fbbf24;color:#111827;font-weight:800}
.hide{display:none!important}
.teacher-link-box{margin:16px 0;padding:14px;background:#1b2940;border:1px solid #405271;border-radius:12px}
.teacher-link-box>button{min-height:48px;width:100%}.teacher-link-box p{margin:10px 0 0;line-height:1.5}
.teacher-link-box label{display:block;margin:12px 0 8px;font-size:14px}.teacher-link-box textarea{font-size:16px;overflow-wrap:anywhere}
.big{font-size:25px;font-weight:850;color:#fbbf24}
.status{min-height:20px;font-size:13px;color:#91d7b9}
footer{font-size:12px;color:#9dafcc;margin:24px 0}
.listrow{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #283750;padding:9px 0;gap:10px}
.listrow strong{display:block}
.listrow small{display:block}
textarea{width:100%;min-height:70px;background:#0b1428;color:white;border:1px solid #405271;border-radius:10px;padding:10px}
.pill{font-size:11px;background:#263853;padding:4px 8px;border-radius:20px}
.chip{border:1px solid transparent;color:#fff}
.chip.picked{border-color:#fbbf24;background:#4b3b20}
.fieldgroup{background:#0b1428;border:1px solid #344968;border-radius:12px;padding:12px;margin:12px 0}
.fingerrow{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0}
.fingerrow button{min-width:44px}
.switchline{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:14px}
.switchline input{width:auto;accent-color:#fbbf24}
.editorhint{font-size:12px;color:#aebbd1;line-height:1.5}
.shiftflag{color:#fbbf24;font-weight:700}


.notice{background:#253450;border:1px solid #fbbf24;border-radius:12px;padding:12px;margin-top:12px;line-height:1.5}

button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #38d9a9;outline-offset:3px}

.fretboard{min-width:710px}
.fret{touch-action:manipulation}
.fretwrap{overscroll-behavior-x:contain}

@media(max-width:550px){.listrow{align-items:flex-start;flex-direction:column}
.listrow .row{width:100%}
.listrow .row button{flex:1}
}


.fret:disabled{opacity:1;cursor:default}
.fret.zero:disabled{opacity:.45}

.notice a{color:#fbbf24;font-weight:700}
.device-options{display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap;margin-top:8px}
.device-options .switchline{margin:4px 0;font-size:13px}
.tuner-strings{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:14px 0}
.tuner-strings button{padding:12px 4px}
.tuner-strings strong,.tuner-strings small{display:block}
.tuner-strings button.detected{outline:2px solid #38d9a9;outline-offset:2px}
.tuner-readout{text-align:center;background:#0b1428;border:1px solid #344968;border-radius:14px;padding:20px 16px;margin:14px 0}
.tuner-note{font-size:54px;line-height:1.4;font-weight:800;color:#fbbf24}
.tuner-meter{position:relative;height:28px;margin-top:22px;background:linear-gradient(90deg,#735427,#263853 42%,#263853 58%,#735427);border:1px solid #4b5d7b;border-radius:6px}
.tuner-band{position:absolute;left:45%;width:10%;height:100%;background:#38d9a966;border-left:1px solid #38d9a9;border-right:1px solid #38d9a9}
.tuner-needle{position:absolute;left:50%;top:-6px;width:4px;height:38px;background:#fbbf24;border-radius:3px;transform:translateX(-50%);transition:left .08s linear}
.tuner-scale{display:flex;justify-content:space-between;font-size:12px;color:#9dafcc;margin:8px 0}
.tuner-cents{font-size:23px;font-weight:700;margin:12px 0 6px}
.tuner-advice{min-height:24px;color:#fbbf24}
.in-tune{color:#38d9a9!important}
.tuner-needle.in-tune{background:#38d9a9}
@media(max-width:550px){.tabs button{flex-basis:42%}.tuner-strings{grid-template-columns:repeat(3,minmax(0,1fr))}.device-options #screenStatus{flex-basis:100%}}
.finger-cue{display:inline-flex;align-items:center;gap:12px;background:#253450;border:1px solid #fbbf24;border-radius:12px;padding:10px 14px;margin-top:12px}
.finger-number{display:grid;place-items:center;flex:none;width:42px;height:42px;background:#fbbf24;color:#151515;border-radius:50%;font-size:28px;font-weight:800}
.finger-cue strong{display:block;font-size:18px;color:#fbbf24;text-transform:capitalize}
.finger-cue small{display:block;margin-top:3px;font-size:12px}
.finger-cue button{display:block;margin-top:8px;font-size:13px;padding:7px 10px}
.fret-finger{position:absolute;right:2px;top:1px;width:17px;height:17px;line-height:17px;background:#0b1020;color:#fff;border-radius:50%;font-size:11px;font-weight:800}
.finger-legend{margin-top:0}
.finger-cue.suggested{border-style:dashed}
#fingerSuggestion{margin:8px 0 12px;line-height:1.7}
#fingerSuggestion button{font-size:12px;padding:5px 8px}
.metronome-box{background:#0b1428;border:1px solid #344968;border-radius:12px;padding:10px 12px;margin:8px 0 16px}
.metronome-box input[type=number]{width:76px;padding:8px}
.metronome-box .switchline{margin:8px 0;font-size:13px}
.metronome-box p{margin:4px 0 0;font-size:12px}
.beat-lights{display:flex;gap:6px}
.beat-lights span{display:grid;place-items:center;width:25px;height:25px;border:1px solid #405271;border-radius:50%;font-size:12px;color:#9dafcc}
.beat-lights span.current{background:#fbbf24;color:#151515;border-color:#fbbf24}
.beat-lights span.downbeat{background:#38d9a9;border-color:#38d9a9}

.teacher-tools{margin:12px 0;gap:10px}.teacher-tools input[type=number]{width:76px}.teacher-tools select{max-width:100%}#editor #done{font-weight:700;padding:14px 20px}

.teacher-import{display:inline-flex;align-items:center;gap:8px;padding:10px;border:1px solid #405271;border-radius:11px}.teacher-import input{max-width:220px}

#bpm{width:90px}#editor .teacher-actions{margin-top:18px;padding-top:12px;border-top:1px solid #344968}
