:root{--bg:#f6f5f2;--surface:#fff;--surface-2:#efede8;--text:#1c1d21;--muted:#6b6d75;--border:#dddad3;--accent:#c2410c;--accent-text:#fff;--ok:#15803d;--ok-soft:#dcfce7;--bad:#b91c1c;--bad-soft:#fee2e2;--radius:14px;--header-h:56px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#14161a;--surface:#1d2026;--surface-2:#272a31;--text:#ececef;--muted:#9a9ca5;--border:#33363e;--accent:#fb923c;--accent-text:#1c1d21;--ok:#4ade80;--ok-soft:#163322;--bad:#f87171;--bad-soft:#3a1a1a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}a{color:inherit}h1{margin:0 0 4px;font-size:24px}h2{margin:24px 0 12px;font-size:17px}.muted{color:var(--muted)}.small{font-size:13px}.eyebrow{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-size:11px}.app-header{z-index:20;height:var(--header-h);background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:16px;padding:0 16px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:8px;font-weight:700;text-decoration:none;display:flex}.app-header nav{gap:4px;margin-left:auto;display:flex;overflow-x:auto}.app-header nav a{color:var(--muted);white-space:nowrap;border-radius:8px;padding:6px 10px;text-decoration:none}.app-header nav a.active{color:var(--text);background:var(--surface-2);font-weight:600}.page{width:100%;max-width:960px;margin:0 auto;padding:16px}.page.narrow{max-width:620px}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}button,select,input,textarea{font:inherit;color:inherit}.button{border:1px solid var(--border);background:var(--surface-2);cursor:pointer;white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:6px;min-height:40px;padding:8px 12px;text-decoration:none;display:inline-flex}.button:disabled{opacity:.5;cursor:default}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}.button.subtle{background:0 0}.button.danger{color:var(--bad)}.button.toggle[aria-pressed=true],.button.mic-on{background:var(--ok-soft);border-color:var(--ok);color:var(--ok)}.button.mic-on{animation:2s ease-in-out infinite pulse}@keyframes pulse{50%{box-shadow:0 0 0 4px var(--ok-soft)}}select,input:not([type=checkbox],[type=range],[type=file]),textarea{border:1px solid var(--border);background:var(--surface);border-radius:10px;width:100%;min-height:40px;padding:8px 10px}input[type=range]{accent-color:var(--accent);width:100%}.check{white-space:nowrap;align-items:center;gap:8px;display:inline-flex}.segmented{background:var(--surface-2);border-radius:12px;padding:3px;display:inline-flex}.segmented button{cursor:pointer;background:0 0;border:0;border-radius:9px;padding:7px 14px}.segmented button[aria-selected=true]{background:var(--surface);font-weight:600;box-shadow:0 1px 2px #0000001f}.notice{background:var(--surface-2);border-radius:10px;margin:8px 0;padding:10px 12px}.notice.error{background:var(--bad-soft);color:var(--bad)}.notice.ok{background:var(--ok-soft);color:var(--ok)}.form{gap:14px;display:grid}.form h2{margin:0}.form label:not(.check,.file-drop,.button){gap:4px;font-size:14px;display:grid}.form-row{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;display:grid}.file-drop{border:2px dashed var(--border);border-radius:var(--radius);text-align:center;cursor:pointer;justify-items:center;gap:4px;padding:24px 16px;display:grid;position:relative}.file-drop input{opacity:0;cursor:pointer;position:absolute;inset:0}.actions{align-items:center;gap:6px;display:flex}.search{max-width:280px}.cards{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.piece-card{gap:4px;height:100%;text-decoration:none;transition:border-color .15s;display:grid}.piece-card:hover{border-color:var(--accent)}.piece-card strong{font-size:17px}.note-snippet{color:var(--muted);-webkit-line-clamp:2;white-space:pre-line;-webkit-box-orient:vertical;margin:4px 0 0;font-size:13px;display:-webkit-box;overflow:hidden}.card-meta{color:var(--muted);margin-top:auto;padding-top:8px;font-size:12px}.empty{justify-items:start;gap:8px;display:grid}.teacher-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.teacher-row-main{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.video-slot{grid-template-columns:1fr auto auto;align-items:center;gap:12px;display:grid}.video-slot-info{display:grid}.video-slot-preview{background:#000;border-radius:8px;width:160px}.button.disabled{opacity:.6;pointer-events:none}@media (width<=640px){.video-slot{grid-template-columns:1fr}}.tuner{grid-template-columns:120px 1fr;align-items:center;gap:16px;display:grid}.tuner-note{text-align:center;font-size:44px;font-weight:700;line-height:1.1;display:grid}.tuner-note small{font-size:13px;font-weight:400}.tuner-small{grid-template-columns:80px 1fr;margin:12px 0}.tuner-small .tuner-note{font-size:28px}.tuner-meters{gap:10px;display:grid}.meter-row{grid-template-columns:58px 1fr 52px;align-items:center;gap:10px;display:grid}.meter-label,.meter-value{color:var(--muted);font-size:12px}.meter-value{text-align:right;font-variant-numeric:tabular-nums}.meter,.cents-scale{background:var(--surface-2);border-radius:5px;height:10px;position:relative;overflow:hidden}.meter .fill{background:var(--ok);border-radius:5px;height:100%}.cents-center{background:var(--text);opacity:.4;width:2px;position:absolute;top:0;bottom:0;left:50%}.cents-needle{background:var(--accent);border-radius:3px;width:6px;margin-left:-3px;transition:left 80ms linear;position:absolute;top:0;bottom:0}.cents-needle.in-tune{background:var(--ok)}.sliders{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px 20px;margin:16px 0;display:grid}.slider{gap:2px;display:grid}.slider-head{justify-content:space-between;font-size:14px;display:flex}summary{cursor:pointer;font-weight:600}.settings-page .card+.card{margin-top:12px}.practice{height:calc(100dvh - var(--header-h));overflow-y:auto}.practice h1 small{font-size:15px;font-weight:400}.practice-head{padding-bottom:0}.back{color:var(--muted);font-size:14px;text-decoration:none}.teacher-note{border-left:3px solid var(--accent);background:var(--surface);border-radius:0 10px 10px 0;margin:8px 0 0;padding:10px 12px}.teacher-note p{white-space:pre-line;margin:2px 0 0}.practice-bar{z-index:10;border-bottom:1px solid var(--border);background:var(--bg);position:sticky;top:0}.toolbar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.toolbar select{width:auto}.tempo{min-width:140px;color:var(--muted);font-size:12px;display:grid}.practice-bar .page{padding-block:8px}.hint{grid-template-columns:minmax(150px,auto) 1fr;align-items:center;gap:4px 16px;display:grid}.hint-target{border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);justify-items:start;padding:10px 14px;display:grid}.hint-name{font-size:34px;line-height:1.1}.hint .feedback{grid-column:1/-1;min-height:1.5em;margin:0;font-weight:600}.feedback.hit{color:var(--ok)}.feedback.miss{color:var(--bad)}.flash-ok{animation:.6s ease-out flash-ok}.flash-bad{animation:.6s ease-out flash-bad}@keyframes flash-ok{0%{background:var(--ok-soft);box-shadow:0 0 0 3px var(--ok)}}@keyframes flash-bad{0%{background:var(--bad-soft);box-shadow:0 0 0 3px var(--bad)}}.tones{gap:4px;margin-top:4px;display:flex}.tone{border:1px solid var(--border);color:var(--muted);border-radius:999px;padding:1px 8px;font-size:13px;font-weight:600}.tone.present{background:var(--ok);border-color:var(--ok);color:var(--surface)}.fretboard{width:100%;max-width:320px;height:auto}.fretboard .string,.fretboard .fret{stroke:var(--muted)}.fretboard .fret{stroke-width:1.5px}.fretboard .nut{stroke:var(--text);stroke-width:5px}.fretboard .inlay{fill:var(--surface-2)}.fretboard .fret-number{fill:var(--muted);text-anchor:middle;font-size:11px}.fretboard .marker circle{fill:var(--accent)}.fretboard .marker.open{fill:none;stroke:var(--accent);stroke-width:2.5px}.fretboard .marker.present circle,.fretboard .marker.open.present{fill:var(--ok);stroke:var(--ok)}.fretboard .marker.open.present{fill:none}.fretboard .marker text{fill:var(--accent-text);text-anchor:middle;font-size:11px;font-weight:700}.finished{border-radius:var(--radius);background:var(--ok-soft);flex-wrap:wrap;align-items:center;gap:8px 16px;padding:14px;display:flex}.finished strong{font-size:20px}.progress{background:var(--surface-2);border-radius:6px;height:22px;margin:8px 0 0;font-size:12px;position:relative;overflow:hidden}.progress-fill{background:var(--ok-soft);transition:width .2s;position:absolute;inset:0 auto 0 0}.progress span{font-variant-numeric:tabular-nums;padding:0 8px;line-height:22px;position:relative}.score-wrap{position:relative}.score{color:#000;background:#fff;border-radius:6px;max-width:1100px;margin:12px auto}.score .at-cursor-bar{background:#fb923c26}.score .at-cursor-beat{background:var(--accent);width:3px}.score .at-selection div{background:#fb923c33}.score .at-highlight *{fill:#c2410c;stroke:#c2410c}.tuner-controls{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.tuner-controls select{flex:200px;width:auto}.instrument-tuner{gap:16px;display:grid}.tuner-readout{text-align:center;justify-items:center;display:grid}.tuner-target{font-size:56px;line-height:1.1}.gauge{width:100%;max-width:320px;height:auto}.gauge-track{fill:none;stroke:var(--surface-2);stroke-width:14px;stroke-linecap:round}.gauge-zone{fill:none;stroke:var(--ok);stroke-width:14px;opacity:.35}.gauge.in-tune .gauge-zone{opacity:1}.gauge-tick{stroke:var(--muted);stroke-width:1.5px}.gauge-needle{stroke:var(--accent);stroke-width:4px;stroke-linecap:round}.gauge-hub{fill:var(--accent)}.gauge.in-tune .gauge-needle{stroke:var(--ok)}.gauge.in-tune .gauge-hub{fill:var(--ok)}.tuner-cents{font-variant-numeric:tabular-nums;min-height:1.5em;font-size:20px}.tuner-guidance{min-height:1.5em;margin:4px 0 0;font-weight:600}.tuner-guidance.ok{color:var(--ok)}.tuner-guidance.off{color:var(--accent)}.string-chips{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.chip{border:1px solid var(--border);background:var(--surface);cursor:pointer;font-variant-numeric:tabular-nums;border-radius:999px;align-items:center;gap:4px;min-height:36px;padding:4px 12px;display:inline-flex}.chip.detected{border-color:var(--accent)}.chip.active{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}.chip.tuned:not(.active){color:var(--ok);border-color:var(--ok)}.tuner-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}@media (width<=640px){.app-header{gap:8px}.brand{font-size:0}.hint{grid-template-columns:auto 1fr;gap:4px 10px}.hint-target{padding:6px 10px}.hint-name{font-size:24px}.hint-target .muted{font-size:12px}.practice-bar .notice{padding:6px 10px;font-size:13px}.practice-head .teacher-note{font-size:14px}.tuner{grid-template-columns:1fr}}
