:root{--bg: #1b1512;--bg-2: #241c18;--card: #2a211c;--line: #3d322b;--text: #f3e9dc;--muted: #b3a493;--accent: #e2a24a;--accent-ink: #1b1512;--tone: #c9b8a3;--good: #7fc28a;--bad: #e0705a;--wood-1: #4a2f22;--wood-2: #33201a;--fret: #c8c2b8;--nut: #efe6d2;--string: #e5d8c0;--inlay: #6b5143;--radius: 14px;--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;--display: "Fraunces", Georgia, serif;--mono: "JetBrains Mono", ui-monospace, Menlo, monospace;color-scheme:dark}@media(prefers-color-scheme:light){:root{--bg: #f6efe4;--bg-2: #efe5d6;--card: #fffaf2;--line: #e2d4c1;--text: #2a1f18;--muted: #7a6a5a;--accent: #b8661c;--accent-ink: #fffaf2;--tone: #5b4a3c;--inlay: #7a5a47;color-scheme:light}}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font:15px/1.5 var(--font);-webkit-text-size-adjust:100%}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}a{color:var(--accent)}h1,h2,h3{font-family:var(--display);font-weight:650;letter-spacing:-.01em;margin:0}h1{font-size:1.7rem}h2{font-size:1.25rem}h3{font-size:1.02rem;margin-bottom:.6rem}code{font-family:var(--mono);font-size:.9em;background:var(--bg-2);padding:1px 5px;border-radius:5px}.app{min-height:100dvh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(env(safe-area-inset-top) + 10px) 16px 10px;background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:8px;font-family:var(--display);font-weight:650;font-size:1.05rem}main{flex:1;width:100%;max-width:1100px;margin:0 auto;padding:16px 16px calc(96px + env(safe-area-inset-bottom))}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:10;display:grid;grid-template-columns:repeat(5,1fr);background:color-mix(in srgb,var(--bg-2) 94%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.tabbar a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 0 8px;color:var(--muted);text-decoration:none;font-size:.72rem;font-weight:500}.tabbar a.on{color:var(--accent)}@media(min-width:900px){.tabbar{position:sticky;top:57px;bottom:auto;display:flex;justify-content:center;gap:4px;border-top:0;border-bottom:1px solid var(--line)}.tabbar a{flex-direction:row;gap:8px;padding:10px 16px;font-size:.9rem}main{padding-bottom:40px}}.page{display:flex;flex-direction:column;gap:14px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.row{display:flex;align-items:center;gap:8px}.row.wrap{flex-wrap:wrap}.muted{color:var(--muted)}.hint{color:var(--muted);font-size:.85rem;margin:0}.error{color:var(--bad);margin:6px 0 0}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px}.block{display:flex;flex-direction:column;gap:10px}.block h3{margin:0}.btn{border:1px solid var(--line);background:var(--bg-2);border-radius:10px;padding:9px 14px;min-height:40px;font-weight:500;transition:transform .12s ease,background .15s ease}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.45;cursor:default}.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:transparent;font-weight:600}.btn.ghost{background:transparent}.btn.danger{color:var(--bad)}.btn.small{padding:5px 10px;min-height:34px;font-size:.88rem}.btn.on{background:var(--accent);color:var(--accent-ink)}.btn.rec{color:var(--bad);border-color:var(--bad)}.icon-btn{background:none;border:0;color:var(--text);padding:6px;border-radius:8px;display:grid;place-items:center}.link{background:none;border:0;color:var(--accent);padding:2px 0;font-size:.82rem;text-decoration:underline}.seg{display:inline-flex;background:var(--bg-2);border:1px solid var(--line);border-radius:11px;padding:3px;gap:2px}.seg button{border:0;background:transparent;padding:7px 12px;border-radius:8px;color:var(--muted);font-weight:500;white-space:nowrap}.seg button.on{background:var(--card);color:var(--text);box-shadow:0 1px 3px #00000040}.seg.small button{padding:4px 9px;font-size:.82rem}.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}.chip{flex:none;border:1px solid var(--line);background:var(--bg-2);border-radius:999px;padding:6px 12px;min-width:44px;font-weight:600}.chip.soft{font-weight:500}.chip.on{background:var(--accent);color:var(--accent-ink);border-color:transparent}.controls{display:flex;flex-direction:column;gap:8px}input:not([type=checkbox]),select,textarea{background:var(--bg-2);border:1px solid var(--line);border-radius:10px;padding:9px 11px;min-height:40px;width:100%;font-size:16px}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}select{width:auto}textarea{resize:vertical;line-height:1.5}textarea.mono{font-family:var(--mono);font-size:14px;white-space:pre;overflow-x:auto}.search{max-width:260px}.search.wide{max-width:none}.field{display:flex;flex-direction:column;gap:4px;font-size:.82rem;color:var(--muted);font-weight:500}.field input,.field textarea{color:var(--text);font-weight:400}.field.grow{flex:1 1 180px}.toggle{display:flex;align-items:center;gap:8px;font-size:.92rem;margin-top:8px}.toggle input{width:18px;height:18px;accent-color:var(--accent)}.pill{display:inline-flex;align-items:center;gap:4px;background:var(--bg-2);border:1px solid var(--line);border-radius:999px;padding:2px 9px;font-size:.82rem}.pill small{color:var(--muted)}.pill.chord{font-family:var(--mono);color:var(--accent)}.pill.removable{cursor:pointer}.tags{display:flex;flex-wrap:wrap;gap:5px}.fretboard-scroll{overflow-x:auto;margin:0 -16px;padding:4px 16px;scrollbar-width:thin}.fretboard{display:block;min-width:760px;width:100%;height:auto;user-select:none;-webkit-user-select:none}.cell{cursor:pointer}.cell:hover rect{fill:#ffffff0d}.fret-num{fill:var(--muted);font:600 12px var(--font)}.string-label{fill:var(--muted);font:600 10px var(--font)}.mark circle{stroke-width:2}.mark text{font:700 11px var(--font);pointer-events:none}.mark-tone circle{fill:#f3e9dc;stroke:#f3e9dc}.mark-tone text{fill:#33201a}.mark-root circle,.mark-active circle{fill:var(--accent);stroke:#fff4e0}.mark-root text,.mark-active text{fill:#1b1512}.mark-ghost circle{fill:#e2a24a40;stroke:var(--accent);stroke-dasharray:3 3}.mark-ghost text{fill:#f3e9dc}.mark-wrong circle{fill:var(--bad);stroke:#fff}.mark-wrong text{fill:#fff}.mark{animation:pop .16s ease-out;transform-box:fill-box;transform-origin:center}@keyframes pop{0%{transform:scale(.6);opacity:0}}.note-info{display:flex;flex-direction:column;gap:4px}.note-info p{margin:0}.big-note{font-family:var(--display);font-size:2.6rem;font-weight:650;line-height:1.05;display:flex;align-items:baseline;gap:10px}.big-note .alt{font-family:var(--mono);font-size:1rem;color:var(--muted)}.big-note sub{font-size:1rem;color:var(--muted)}.quiz{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.quiz p{margin:0}.quiz-q{font-size:1.15rem;flex:1 1 220px}.chord-head{display:flex;flex-direction:column;gap:6px}.formula{display:flex;gap:6px;flex-wrap:wrap;margin:0}.voicings{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.voicing{margin:0;display:flex;flex-direction:column;align-items:center;gap:6px}.voicing figcaption{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:.82rem;color:var(--muted);text-align:center}.voicing .tab{font-family:var(--mono);color:var(--text)}.chord-diagram{display:block;height:auto}.chord-diagram.clickable{cursor:pointer}.cd-title{fill:var(--text);font:700 13px var(--mono)}.cd-grid{stroke:var(--muted);stroke-width:1}.cd-nut{fill:var(--text)}.cd-base{fill:var(--muted);font:600 10px var(--font)}.cd-dot{fill:var(--accent)}.cd-open{fill:none;stroke:var(--text);stroke-width:1.5}.cd-mute{fill:var(--muted);font:600 13px var(--font)}.cd-note{fill:var(--muted);font:600 8.5px var(--font)}.chord-strip{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px}.chord-strip .mini{margin:0;flex:none;display:flex;flex-direction:column;align-items:center;background:var(--bg-2);border:1px solid var(--line);border-radius:12px;padding:6px 6px 4px}.tuner .a4{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.9rem}.tuner .a4 input{width:76px}.gauge{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;transition:border-color .2s}.gauge.in-tune{border-color:var(--good)}.gauge-svg{width:100%;max-width:360px}.tick{stroke:var(--muted);stroke-width:2;stroke-linecap:round}.tick.center{stroke:var(--good);stroke-width:3}.needle{stroke:var(--accent);stroke-width:3.5;stroke-linecap:round}.in-tune .needle{stroke:var(--good)}.hub{fill:var(--text)}.tuner-note{display:flex;flex-direction:column;align-items:center;min-height:104px;justify-content:center}.tuner-note .big-note{font-size:3.4rem}.cents{font-weight:600}.in-tune .cents{color:var(--good)}.sub{margin-top:6px}.strings-ref{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.string-btn{display:flex;flex-direction:column;align-items:center;gap:1px;padding:10px 0;border-radius:12px;border:1px solid var(--line);background:var(--card)}.string-btn strong{font-family:var(--display);font-size:1.3rem}.string-btn small,.string-btn .sn{color:var(--muted);font-size:.72rem}.string-btn.near{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}@media(max-width:420px){.strings-ref{grid-template-columns:repeat(3,1fr)}}.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.list-item{width:100%;text-align:left;display:flex;flex-direction:column;gap:4px}.list-item:hover{border-color:var(--accent)}.date{font-size:.78rem;color:var(--accent);font-weight:600;text-transform:uppercase;letter-spacing:.04em}.clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.9rem}.empty{text-align:center;padding:28px 16px}.empty p{margin:4px 0}.title-input{font-family:var(--display);font-size:1.4rem!important;font-weight:650;background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;padding-left:0!important}.links{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}.links li a{margin-right:10px;word-break:break-all}.files{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}.file{background:var(--bg-2);border:1px solid var(--line);border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:6px}.file img,.file video{width:100%;border-radius:8px;display:block;max-height:220px;object-fit:cover}.file audio{width:100%}.file-foot{display:flex;justify-content:space-between;gap:8px;font-size:.8rem}.file-foot .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pre-wrap{white-space:pre-wrap;margin:0}.song-title{font-size:2rem}.toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:.88rem;color:var(--muted)}.toolbar .val{min-width:28px;text-align:center;font-family:var(--mono);color:var(--text)}.toolbar .sep{width:1px;height:22px;background:var(--line);margin:0 4px}.sheet{font-family:var(--mono);line-height:1.45;overflow-x:auto;padding:6px 0 24px}.sheet-line{min-height:1.45em}.sheet-line.pre{white-space:pre}.sheet-line.inline{display:flex;flex-wrap:wrap;align-items:flex-end}.seg-pair{display:inline-flex;flex-direction:column;white-space:pre}.ch{color:var(--accent);font-weight:600}.seg-pair .ch{font-size:.85em;padding-right:.4em}.sheet-section{font-family:var(--font);font-weight:700;text-transform:uppercase;letter-spacing:.08em;font-size:.72em;color:var(--muted);margin:1.1em 0 .2em}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#00000080;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s ease-out}.panel{width:100%;max-width:520px;border-radius:18px 18px 0 0;padding:18px 16px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px;animation:up .22s cubic-bezier(.2,.8,.2,1)}.panel h3{margin:10px 0 0}.panel p{margin:0}@media(min-width:640px){.sheet-backdrop{align-items:center}.panel{border-radius:18px}}@keyframes fade{0%{opacity:0}}@keyframes up{0%{transform:translateY(24px);opacity:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.login{min-height:100dvh;display:grid;place-items:center;padding:16px}.login-card{width:100%;max-width:380px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:28px 20px}.login-card p{margin:0}.login-form{width:100%;display:flex;flex-direction:column;gap:12px;text-align:left}.meter{width:100%;max-width:280px;height:6px;border-radius:999px;background:var(--bg-2);overflow:hidden}.meter-fill{height:100%;background:var(--accent);transition:width 80ms linear}
