:root{--bg:#f4f5f8;--surface:#fff;--text:#161a23;--muted:#5d6678;--border:#dde1e9;--accent:#b45309;--accent-soft:#fdebd0;--on-accent:#fff;--error-bg:#fdecec;--error-text:#a12626;--success-bg:#e8f7ee;--success-text:#1f6b3a;--playing:#1f9d55;--stop:#d33a3a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0e1117;--surface:#171b24;--text:#e7eaf0;--muted:#8f98aa;--border:#2a3140;--accent:#f5a524;--accent-soft:#4a3410;--on-accent:#12141a;--error-bg:#3d1d1d;--error-text:#ffb4b4;--success-bg:#183324;--success-text:#9be0b5;--playing:#2fa866;--stop:#e0524a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#0e1117;--surface:#171b24;--text:#e7eaf0;--muted:#8f98aa;--border:#2a3140;--accent:#f5a524;--accent-soft:#4a3410;--on-accent:#12141a;--error-bg:#3d1d1d;--error-text:#ffb4b4;--success-bg:#183324;--success-text:#9be0b5;--playing:#2fa866;--stop:#e0524a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-accent=violet]{--accent:#5b4fe0;--accent-soft:#dcd8ff}:root[data-accent=blue]{--accent:#2563eb;--accent-soft:#dbe6ff}:root[data-accent=teal]{--accent:#0b7a6f;--accent-soft:#cdeee9}:root[data-accent=rose]{--accent:#c8325f;--accent-soft:#fbd9e4}@media (prefers-color-scheme:dark){:root:not([data-theme=light])[data-accent=violet]{--accent:#8f86ff;--accent-soft:#332f63}:root:not([data-theme=light])[data-accent=blue]{--accent:#6b9bff;--accent-soft:#21335a}:root:not([data-theme=light])[data-accent=teal]{--accent:#3cc9b4;--accent-soft:#173f3a}:root:not([data-theme=light])[data-accent=rose]{--accent:#f27aa0;--accent-soft:#552238}}:root[data-theme=dark][data-accent=violet]{--accent:#8f86ff;--accent-soft:#332f63}:root[data-theme=dark][data-accent=blue]{--accent:#6b9bff;--accent-soft:#21335a}:root[data-theme=dark][data-accent=teal]{--accent:#3cc9b4;--accent-soft:#173f3a}:root[data-theme=dark][data-accent=rose]{--accent:#f27aa0;--accent-soft:#552238}:root[data-accent=custom]{--accent-soft:color-mix(in srgb, var(--accent) 22%, var(--surface))}*{box-sizing:border-box}body{cursor:var(--cursor-default,auto);-webkit-user-select:none;user-select:none;background:var(--bg);min-height:100vh;color:var(--text);-webkit-tap-highlight-color:transparent;flex-direction:column;margin:0;line-height:1.5;display:flex}::selection{background:color-mix(in srgb, var(--accent) 35%, transparent);color:var(--text)}html{scrollbar-color:color-mix(in srgb, var(--muted) 45%, transparent) transparent;scrollbar-width:thin}*{scrollbar-color:inherit;scrollbar-width:inherit}.header{z-index:50;background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:8px 12px;display:flex;position:sticky;top:0}.brand-name{display:none}body.signed-out .brand-name{display:inline}@media (width>=480px){.brand-name{display:inline}}@media (width>=641px){.header{gap:8px 24px;padding:12px 24px}}.brand{color:var(--text);align-items:center;gap:8px;font-size:1.1rem;font-weight:700;text-decoration:none;display:inline-flex}.nav{flex:1;align-items:center;gap:4px;min-width:0;display:flex}.nav-group{position:relative}.nav-group-label{color:var(--muted);background:0 0;border:0;border-radius:8px;align-items:center;gap:4px;padding:6px 10px;display:inline-flex}.nav-group-label .chevron{width:15px;height:15px;transition:transform .15s}.nav-group:hover .nav-group-label,.nav-group:focus-within .nav-group-label{background:color-mix(in srgb, var(--accent) 12%, transparent);color:var(--text)}.nav-group:hover .chevron,.nav-group:focus-within .chevron{transform:rotate(180deg)}.nav-group:has(a.active) .nav-group-label{color:var(--accent);box-shadow:inset 0 -2px 0 var(--accent);border-radius:8px 8px 0 0;font-weight:600}.nav-group-links{z-index:10;background:var(--surface);border:1px solid var(--border);border-top:3px solid var(--accent);border-radius:10px;flex-direction:column;gap:2px;min-width:200px;margin-top:6px;padding:4px;display:none;position:absolute;top:100%;left:0;box-shadow:0 8px 24px #0000002e}.nav-group-links:before{content:"";height:8px;position:absolute;inset:-8px 0 auto}.nav-group:hover .nav-group-links,.nav-group:focus-within .nav-group-links,.nav-group.open .nav-group-links{display:flex}.nav a{color:var(--muted);white-space:nowrap;border-radius:7px;align-items:center;gap:8px;padding:7px 10px;text-decoration:none;display:flex}.nav a svg.icon{color:var(--accent)}.nav a:hover{background:color-mix(in srgb, var(--accent) 10%, transparent);color:var(--text)}.nav a.active{background:color-mix(in srgb, var(--accent) 18%, transparent);color:var(--text);box-shadow:inset 3px 0 0 var(--accent);font-weight:600}svg.icon{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:17px;height:17px}.header-actions{align-items:center;gap:12px;min-width:0;margin-left:auto;display:flex}.user-menu{align-items:center;gap:10px;min-width:0;display:flex}.user-menu a{color:var(--muted);text-decoration:none}.user-menu a:hover{color:var(--text)}.user-menu a.button{background:var(--accent);color:var(--on-accent);border-radius:8px;padding:5px 12px}.account-menu{position:relative}.avatar-link{border-radius:50%;display:block}.avatar-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}svg.avatar{width:32px;height:32px;display:block}.avatar-bg{fill:var(--accent-soft)}.avatar-fg{fill:var(--accent)}.account-menu:hover .avatar-link,.account-menu:focus-within .avatar-link{box-shadow:0 0 0 3px var(--accent-soft)}.account-menu-links{z-index:10;background:var(--surface);border:1px solid var(--border);border-radius:10px;flex-direction:column;gap:2px;width:240px;margin-top:8px;padding:4px;display:none;position:absolute;top:100%;right:0;box-shadow:0 8px 24px #0000002e}.account-menu-links:before{content:"";height:10px;position:absolute;inset:-10px 0 auto}.account-menu:hover .account-menu-links,.account-menu:focus-within .account-menu-links{display:flex}.account-menu-email{color:var(--muted);flex-direction:column;padding:6px 10px 8px;font-size:.85rem;display:flex}.account-menu-email strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;overflow:hidden}.account-menu-links hr{border:0;border-top:1px solid var(--border);width:100%;margin:2px 0}.user-menu .account-menu-links a,.account-menu-links button{color:var(--muted);text-align:left;background:0 0;border:0;border-radius:7px;align-items:center;gap:8px;padding:7px 10px;display:flex}.user-menu .account-menu-links a:hover,.account-menu-links button:hover{background:var(--bg);color:var(--text)}.shell{flex:1;align-items:flex-start;display:flex}.sidebar{display:none}@media (width>=1024px){.sidebar{top:var(--header-height,60px);box-sizing:border-box;width:248px;height:calc(100vh - var(--header-height,60px));border-right:1px solid var(--border);background:var(--surface);flex:none;padding:16px 10px;display:block;position:sticky;overflow-y:auto}body.signed-out .sidebar{display:none}.shell>.container{min-width:0}.sidebar .nav{flex-direction:column;align-items:stretch;gap:14px}.sidebar .nav-group-label{width:100%;color:var(--muted);letter-spacing:.06em;text-transform:uppercase;cursor:var(--cursor-pointer,pointer);justify-content:space-between;padding:4px 10px;font-size:.75rem;font-weight:600}.sidebar .nav-group-label,.sidebar .nav-group:hover .nav-group-label,.sidebar .nav-group:focus-within .nav-group-label{color:var(--accent);background:0 0}.sidebar .nav a svg.icon{color:var(--text)}.sidebar .nav-group:hover .chevron,.sidebar .nav-group:focus-within .chevron{transform:none}.sidebar .nav-group.collapsed .chevron{transform:rotate(-90deg)}.sidebar .nav-group:has(a.active) .nav-group-label{box-shadow:none;border-radius:8px}.sidebar .nav-group-links,.sidebar .nav-group.open .nav-group-links{border:0;border-left:1px solid var(--border);min-width:0;box-shadow:none;background:0 0;border-radius:0;margin:2px 0 0 10px;padding:0 0 0 4px;display:flex;position:static}.sidebar .nav-group-links:before,.sidebar .nav-group.collapsed .nav-group-links{display:none}.sidebar .nav a.active{box-shadow:none;border-radius:7px}.sidebar .nav a{white-space:normal}}body.signed-out .nav{display:none}.container{flex:1;width:100%;max-width:960px;min-height:100svh;margin:0 auto;padding:24px 16px 64px}.footer{background:var(--surface);border-top:1px solid var(--border);padding:24px 24px 16px}.footer-content{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;max-width:960px;margin:0 auto;display:flex}.footer-brand{font-weight:700}.footer-links{flex-wrap:wrap;gap:4px;display:flex}.footer-links a{border:1px solid var(--border);color:var(--text);border-radius:8px;align-items:center;gap:6px;padding:6px 12px;text-decoration:none;display:inline-flex}.footer-links a:hover{border-color:var(--accent);color:var(--accent)}.footer-copyright{border-top:1px solid var(--border);max-width:960px;margin:16px auto 0;padding-top:12px;font-size:.85rem}h1{margin:0 0 4px}h2{margin:32px 0 8px}.page-note{border-left:3px solid var(--border);color:var(--muted);margin:40px 0 0;padding:2px 0 2px 14px;font-size:.9rem}.lead,.muted{color:var(--muted)}.mono{white-space:nowrap;font-family:ui-monospace,monospace}.toolbar{flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0;display:flex}label{align-items:center;gap:6px;display:inline-flex}select,input,textarea{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;padding:6px 8px}select.native-select{opacity:0;pointer-events:none;border:0;width:1px;height:1px;padding:0;position:absolute}.custom-select{border:1px solid color-mix(in srgb, var(--accent) 35%, var(--border));background:color-mix(in srgb, var(--accent-soft) 30%, var(--surface));max-width:100%;color:var(--text);text-align:left;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:6px 8px 6px 10px;transition:border-color .15s,background-color .15s;display:inline-flex}.custom-select:hover:not(:disabled),.custom-select[aria-expanded=true]{border-color:var(--accent);background:color-mix(in srgb, var(--accent-soft) 55%, var(--surface))}.custom-select:focus-visible{border-color:var(--accent);outline:3px solid color-mix(in srgb, var(--accent) 30%, transparent);outline-offset:0}.custom-select:disabled{opacity:.6;cursor:var(--cursor-default,default)}.custom-select-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.custom-select-chevron{width:16px;height:16px;color:var(--accent);flex-shrink:0;transition:transform .15s}.custom-select[aria-expanded=true] .custom-select-chevron{transform:rotate(180deg)}.custom-select-list{z-index:1000;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:10px;margin:0;padding:4px;position:fixed;inset:auto;overflow-y:auto;box-shadow:0 10px 30px #0000004d}.custom-select-group{color:var(--accent);letter-spacing:.04em;text-transform:uppercase;padding:8px 10px 4px;font-size:.75rem;font-weight:700}.custom-select-option{white-space:nowrap;cursor:var(--cursor-pointer,pointer);border-radius:6px;padding:6px 10px}.custom-select-group~.custom-select-option{padding-left:16px}.custom-select-option.active{background:color-mix(in srgb, var(--accent-soft) 70%, var(--surface))}.custom-select-option.selected{color:var(--accent);font-weight:600}.custom-select-option[aria-disabled]{opacity:.45;cursor:var(--cursor-default,default)}button{font:inherit;border:1px solid var(--accent);background:var(--accent);color:var(--on-accent);cursor:var(--cursor-pointer,pointer);border-radius:8px;padding:6px 14px}button:disabled{opacity:.6;cursor:var(--cursor-default,default)}button[hidden],a[hidden]{display:none!important}input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text}a[href],summary,select,label[for],input[type=checkbox],input[type=radio],input[type=range]{cursor:var(--cursor-pointer,pointer)}:where(a[href]:not(.button)){color:var(--accent)}:where(button,a.button,select,.chip):active{filter:brightness(.95)}:where(a[href]:not(.button)):hover{text-underline-offset:3px;text-decoration:underline}a.button{border:1px solid var(--accent);background:var(--accent);color:var(--on-accent);border-radius:8px;padding:8px 18px;text-decoration:none;display:inline-block}a.button.secondary,button.secondary{color:var(--accent);background:0 0}button svg.icon,a svg.icon,.feedback svg.icon{vertical-align:-3px}svg.icon+span,span+svg.icon{margin-left:6px}button.round svg.icon{vertical-align:middle;width:20px;height:20px}kbd svg.icon{vertical-align:-1px;width:12px;height:12px}.chord-body .remove svg.icon,.options-dialog-close svg.icon{vertical-align:middle;width:14px;height:14px}.options-dialog-close svg.icon{width:20px;height:20px}button.icon{color:var(--accent);background:0 0;padding:2px 10px}button.replay-bare{box-shadow:none;color:var(--muted);background:0 0;border-color:#0000}button.replay-bare:hover:not(:disabled){color:var(--text);background:0 0}button.skip-bare{box-shadow:none;color:var(--muted);background:0 0;border-color:#0000}button.skip-bare:hover:not(:disabled){color:var(--text);background:0 0}button.skip-bare svg.icon,button.replay-bare .label-stack{display:none}.piano{-webkit-user-select:none;user-select:none;padding-bottom:8px;display:flex;overflow-x:auto}.slot{flex:none;position:relative}.key{border-radius:0 0 6px 6px;padding:0}.key.white{color:#8a8a9c;background:#fff;border:1px solid #b9b9c6;justify-content:center;align-items:flex-end;width:44px;height:170px;padding-bottom:8px;font-size:11px;display:flex}.key.black{z-index:1;background:#23232d;border:1px solid #23232d;width:28px;height:105px;position:absolute;top:0;right:-14px}.key.white.highlighted{background:color-mix(in srgb, var(--accent) 25%, #fff)}.key.black.highlighted{background:color-mix(in srgb, var(--accent) 70%, #23232d)}.key.selected,.key.white.selected{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.result .chord-name{color:var(--accent);font-size:1.3rem}.result{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-wrap:wrap;align-items:baseline;gap:12px;margin-top:16px;padding:16px;display:flex}.chord-symbol{color:var(--accent);font-size:2rem;font-weight:700}.table{border-collapse:collapse;background:var(--surface);border:1px solid var(--border);border-radius:12px;width:100%;margin-top:16px;overflow:hidden}.table th,.table td{text-align:left;border-bottom:1px solid var(--border);vertical-align:middle;padding:8px 12px}.table th{color:var(--muted);font-size:.85rem;font-weight:600}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{background:var(--accent-soft);color:var(--text);border-color:#0000;border-radius:999px;padding:2px 10px}.chip:hover{border-color:var(--accent)}.tabs{background:var(--surface);border:1px solid var(--border);border-radius:10px;flex-wrap:wrap;gap:4px;margin:16px 0 8px;padding:4px;display:inline-flex}.tab{color:var(--muted);background:0 0;border-color:#0000}.tab.active{background:var(--accent);color:var(--on-accent)}.tab.active .muted{color:inherit;opacity:.8}.tabs.small{margin-top:12px}.tabs.small .tab{padding:4px 12px;font-size:.9rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin:16px 0 0;padding:16px}fieldset.card legend{padding:0 6px;font-weight:600}.check{cursor:var(--cursor-pointer,pointer);gap:8px}.check input{margin:0}.select-all{margin-bottom:8px;font-weight:600}.shape-kinds{flex-direction:column;gap:8px;display:flex}.shape-kinds .check{align-items:flex-start}.check-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px 16px;display:grid}.settings{border-top:1px solid var(--border);flex-wrap:wrap;gap:8px 24px;margin-top:12px;padding-top:12px;display:flex}.score{margin-left:auto;font-weight:600}.options-toggle{border-color:var(--border);width:36px;height:36px;color:var(--muted);background:0 0;border-radius:50%;justify-content:center;align-items:center;padding:0;display:inline-flex}.options-toggle:hover{border-color:var(--accent);color:var(--accent)}.options-toggle.attention{border-color:var(--error-text);color:var(--error-text);box-shadow:0 0 0 3px var(--error-bg)}.options-toggle svg.icon{width:20px;height:20px}.options-dialog{border:1px solid var(--border);background:var(--surface);width:min(560px,100vw - 32px);max-height:calc(100dvh - 48px);color:var(--text);text-align:left;border-radius:14px;padding:0 20px 20px;box-shadow:0 16px 48px #00000059}.options-dialog::backdrop{background:#00000073}.options-dialog-header{z-index:1;background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;margin:0 -20px 12px;padding:14px 20px 10px;display:flex;position:sticky;top:0}.options-dialog-header h2{margin:0;font-size:1.1rem}.options-dialog-close{color:var(--muted);background:0 0;border:0;padding:0 10px;font-size:1.5rem;line-height:1}.options-dialog-close:hover{color:var(--text)}.confirm-dialog{width:min(420px,100vw - 32px);padding:20px}.confirm-dialog h2{margin:0 0 8px;font-size:1.15rem}.confirm-dialog p{color:var(--muted);margin:0}.confirm-actions{justify-content:flex-end;gap:8px;margin-top:20px;display:flex}.options-dialog fieldset{border:0;margin:0;padding:0}.answers{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;display:grid}.answer{color:var(--text);border-color:var(--border);background:0 0}.answer:hover:not(:disabled){border-color:var(--accent)}.answer:disabled{opacity:.55}.answer.correct{opacity:1;background:var(--success-bg);border-color:var(--success-text);color:var(--success-text)}.answer.wrong{opacity:1;background:var(--error-bg);border-color:var(--error-text);color:var(--error-text)}.sing-prompt{margin:16px 0 8px;font-size:1.15rem;font-weight:600}.sing-prompt.muted{font-weight:400}.sing-steps{flex-wrap:wrap;gap:8px;min-height:44px;display:flex}.sing-step{border:2px solid var(--border);min-width:44px;color:var(--muted);text-align:center;border-radius:10px;padding:8px 14px;font-size:1.1rem;font-weight:600}.sing-step.active{border-color:var(--accent);color:var(--text)}.sing-step.done{border-color:var(--success-text);background:var(--success-bg);color:var(--success-text)}.sing-step.missed{border-color:var(--error-text);background:var(--error-bg);color:var(--error-text)}.sing-live{align-items:center;gap:20px;margin-top:16px;display:flex}.sing-heard{min-width:64px;color:var(--muted);text-align:center;font-size:2rem;font-weight:700}.sing-live .tuner-meter{flex:1}.answer-piano .piano{justify-content:flex-start}.answer-piano .key:disabled{opacity:1}.answer-piano .key.white:disabled:not(.correct):not(.wrong){background:color-mix(in srgb, var(--muted) 14%, #fff)}.answer-piano .key.black:disabled:not(.correct):not(.wrong){background:color-mix(in srgb, var(--muted) 30%, #23232d)}.key.correct,.key.white.correct{background:var(--success-text);border-color:var(--success-text);color:var(--success-bg)}.key.wrong,.key.white.wrong{background:var(--error-text);border-color:var(--error-text);color:var(--error-bg)}.feedback{border-radius:8px;margin-top:12px;padding:10px 14px}.feedback.success{background:var(--success-bg);color:var(--success-text)}.feedback.error{background:var(--error-bg);color:var(--error-text)}.feedback.blocker{background:var(--error-bg);border-left:4px solid var(--error-text);color:var(--error-text);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;display:flex}.timeline{flex-direction:column;gap:10px;margin-top:8px;display:flex}.ruler{height:22px;position:relative}.bar-number{border-left:1px solid var(--muted);color:var(--muted);padding-left:5px;font-size:.8rem;font-weight:600;position:absolute;top:0;bottom:0}.track{background-color:var(--bg);background-image:repeating-linear-gradient(to right, var(--muted) 0 1px, transparent 1px calc(100% / var(--bars))), repeating-linear-gradient(to right, var(--border) 0 1px, transparent 1px calc(100% / var(--beats)));border-radius:8px;height:96px;position:relative}.timeline-empty{color:var(--muted);pointer-events:none;align-items:center;padding-left:16px;display:flex;position:absolute;inset:0}.progression-chord{padding:4px 3px;position:absolute;top:0;bottom:0}.progression-chord.continues{padding-right:0}.progression-chord.continued{padding-left:0}.progression-chord.continues .chord-body{border-right-style:dashed;border-top-right-radius:0;border-bottom-right-radius:0}.progression-chord.continued .chord-body{border-left-style:dashed;border-top-left-radius:0;border-bottom-left-radius:0}.progression-chord.dragging{opacity:.4}.chord-body:active,#palette .chip:active{cursor:var(--cursor-grabbing,grabbing)}.chord-body{white-space:nowrap;background:var(--surface);border:2px solid var(--border);height:100%;cursor:var(--cursor-grab,grab);border-radius:8px;flex-direction:column;justify-content:center;align-items:center;transition:border-color .1s,background-color .1s;display:flex;position:relative;overflow:hidden}.progression-chord.playing .chord-body{border-color:var(--accent);background:var(--accent-soft)}.chord-body .symbol{font-size:1.35rem;font-weight:700;line-height:1.2}.chord-body .numeral{color:var(--muted);font-size:.75rem}.variant-nav{color:var(--muted);font-variant-numeric:tabular-nums;cursor:var(--cursor-default,default);align-items:center;font-size:.75rem;display:flex}.variant-nav button.icon{color:var(--muted);background:0 0;border:0;padding:0 4px}.variant-nav button.icon:hover:not(:disabled){color:var(--accent)}.variant-nav button:disabled{opacity:.3}.variant-nav svg.icon{width:14px;height:14px}.chord-body .remove{width:18px;height:18px;color:var(--muted);background:0 0;border:none;border-radius:50%;padding:0;font-size:13px;line-height:1;position:absolute;top:2px;right:12px}.chord-body .remove:hover{color:var(--error-text);background:var(--error-bg)}.resize-handle{width:10px;cursor:var(--cursor-resize,ew-resize);touch-action:none;position:absolute;top:0;bottom:0;right:0}@media (pointer:coarse){.resize-handle{width:22px}.resize-handle:after{background:var(--accent)}}@media (hover:none){.keyboard-hint{display:none}}.resize-handle:after{content:"";background:var(--border);border-radius:2px;width:3px;position:absolute;top:35%;bottom:35%;right:3px}.chord-body:hover .resize-handle:after{background:var(--accent)}.drop-marker{background:var(--accent);pointer-events:none;border-radius:2px;width:3px;margin-left:-1.5px;position:absolute;top:0;bottom:0}#palette .chip{cursor:var(--cursor-grab,grab)}.chip:disabled{opacity:.45}input[type=range]{appearance:none;height:20px;cursor:var(--cursor-pointer,pointer);background:0 0;border:0;padding:0}input[type=range]::-webkit-slider-runnable-track{background:var(--border);border-radius:2px;height:4px}input[type=range]::-moz-range-track{background:var(--border);border-radius:2px;height:4px}input[type=range]::-moz-range-progress{background:var(--accent);border-radius:2px;height:4px}input[type=range]::-webkit-slider-thumb{appearance:none;border:2px solid var(--surface);background:var(--accent);width:16px;height:16px;box-shadow:0 0 0 1px var(--accent);border-radius:50%;margin-top:-6px;transition:transform .1s}input[type=range]::-moz-range-thumb{border:2px solid var(--surface);background:var(--accent);width:12px;height:12px;box-shadow:0 0 0 1px var(--accent);border-radius:50%}input[type=range]:hover::-webkit-slider-thumb{transform:scale(1.15)}input[type=range]:active::-webkit-slider-thumb{transform:scale(1.15)}input[type=range]:focus-visible{outline:none}input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent)}input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent)}input[type=number]{appearance:textfield}input[type=number]::-webkit-inner-spin-button{appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}input:not([type=range]):not([type=checkbox]):not([type=radio]):focus-visible,textarea:focus-visible{border-color:var(--accent);outline:3px solid color-mix(in srgb, var(--accent) 30%, transparent);outline-offset:0}input.invalid,textarea.invalid{border-color:var(--error-text)}.field-error{color:var(--error-text);font-size:.85rem}input:-webkit-autofill{-webkit-text-fill-color:var(--text);box-shadow:0 0 0 100px var(--surface) inset;caret-color:var(--text)}input[type=checkbox]{appearance:none;border:1.5px solid color-mix(in srgb, var(--muted) 70%, transparent);background:var(--surface);width:18px;height:18px;cursor:var(--cursor-pointer,pointer);border-radius:5px;flex-shrink:0;place-content:center;margin:0;padding:0;transition:background-color .1s,border-color .1s;display:inline-grid}input[type=checkbox]:after{content:"";border:solid var(--on-accent);border-width:0 0 2px 2px;width:10px;height:6px;margin-top:-2px;transition:transform .1s;transform:rotate(-45deg)scale(0)}input[type=checkbox]:hover{border-color:var(--accent)}input[type=checkbox]:checked{border-color:var(--accent);background:var(--accent)}input[type=checkbox]:checked:after{transform:rotate(-45deg)scale(1)}input[type=checkbox]:indeterminate{border-color:var(--accent);background:var(--accent)}input[type=checkbox]:indeterminate:after{border-width:0 0 2px;width:8px;height:0;margin-top:0;transform:none}input[type=checkbox]:focus-visible{outline:3px solid color-mix(in srgb, var(--accent) 35%, transparent);outline-offset:1px}input[type=checkbox]:disabled{opacity:.5;cursor:var(--cursor-default,default)}.tooltip{z-index:1001;border:1px solid var(--accent);background:var(--accent);max-width:260px;color:var(--on-accent);pointer-events:none;opacity:0;border-radius:6px;margin:0;padding:5px 9px;font-size:.8rem;line-height:1.35;transition:opacity .12s;position:fixed;inset:auto}.tooltip.visible{opacity:1}input.native-color{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.color-swatch{border:2px solid var(--surface);width:18px;height:18px;box-shadow:0 0 0 1px var(--border);vertical-align:-4px;border-radius:50%;margin-right:6px;padding:0}.color-swatch:hover{box-shadow:0 0 0 1px var(--accent)}.color-panel{z-index:1000;border:1px solid var(--border);background:var(--surface);width:220px;color:var(--text);border-radius:12px;flex-direction:column;gap:12px;margin:0;padding:12px;display:flex;position:fixed;inset:auto;box-shadow:0 10px 30px #0000004d}.color-area{background:linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--hue));height:140px;cursor:var(--cursor-crosshair,crosshair);touch-action:none;border-radius:8px;position:relative}.color-area:focus-visible{outline:3px solid color-mix(in srgb, var(--accent) 35%, transparent)}.color-area-thumb{pointer-events:none;border:2px solid #fff;border-radius:50%;width:14px;height:14px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0006}.color-hue{width:100%}.color-hue::-webkit-slider-runnable-track{background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);height:10px;margin:0}.color-hue::-moz-range-track{background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);height:10px}.color-hue::-moz-range-progress{background:0 0}.color-hue::-webkit-slider-thumb{background:0 0;border-color:#fff;margin-top:-3px;box-shadow:0 0 0 1px #0006}.color-hue::-moz-range-thumb{background:0 0;border-color:#fff;box-shadow:0 0 0 1px #0006}.color-hex{color:var(--muted);align-items:center;gap:8px;font-size:.85rem;display:flex}.color-hex input{flex:1;min-width:0;font-family:ui-monospace,monospace}.form{flex-direction:column;gap:12px;max-width:520px;margin-top:16px;display:flex}.form label{flex-direction:column;align-items:stretch}.form button{align-self:flex-start}.alert{border-radius:8px;padding:10px 14px}.alert.error{background:var(--error-bg);color:var(--error-text)}.alert.success{background:var(--success-bg);color:var(--success-text)}.alert.info{background:var(--accent-soft);color:var(--text)}.custom-editor h2{margin-top:0}.custom-root{flex-wrap:wrap;align-items:center;gap:8px 12px;margin:16px 0 12px;display:flex}.custom-name{color:var(--muted);flex-direction:column;align-items:flex-start;gap:4px;font-size:.85rem;display:flex}.custom-name-row{align-items:center;gap:12px;display:flex}.custom-name input{width:min(320px,100%)}.custom-name-row .mono{color:var(--accent);font-size:1rem}#custom-intervals{min-height:1.4em;margin:8px 0;font-size:.85rem}.custom-check{flex-direction:column;gap:6px;margin-bottom:12px;display:flex}.custom-fields{border:0;min-width:0;margin:0;padding:0}.custom-fields:disabled{opacity:.5}.custom-fields:disabled .key{cursor:var(--cursor-default,default)}.key.root{box-shadow:inset 0 0 0 3px var(--text)}.auth-card{max-width:420px;margin:32px auto 0;padding:24px}.auth-card h1{margin-top:0}.auth-card a:not(.button){color:var(--accent)}.auth-card .form button{align-self:stretch}.auth-icon{background:var(--accent-soft);color:var(--accent);border-radius:14px;margin-bottom:12px;padding:12px;display:inline-flex}.auth-icon.success{background:var(--success-bg);color:var(--success-text)}.auth-icon svg.icon{width:28px;height:28px}.auth-card .hero-actions{justify-content:flex-start}.forgot-link{align-self:flex-end;margin-top:-6px;font-size:.9em}.password-field{display:flex;position:relative}.password-field input{flex:1;min-width:0;padding-right:40px}.form .password-field button.password-toggle,.password-field button.password-toggle{box-shadow:none;color:var(--muted);background:0 0;border:0;align-self:auto;padding:0 10px;position:absolute;top:0;bottom:0;right:0}.password-field button.password-toggle:hover:not(:disabled){color:var(--text);background:0 0}.password-field button.password-toggle svg.icon{vertical-align:middle;width:18px;height:18px}.resend{flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px;display:flex}.hint{color:var(--muted);font-size:.85em}.hero{text-align:center;max-width:640px;margin:24px auto 40px}.hero-logo{margin-bottom:12px}.hero h1{font-size:clamp(1.8rem,5vw,2.6rem);line-height:1.15}.hero .lead{font-size:1.1rem;line-height:1.6}.hero-actions{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:20px;display:flex}.features{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;display:grid}.feature{color:var(--text);margin:0;text-decoration:none;transition:border-color .15s,transform .15s}.feature:hover{border-color:var(--accent);transform:translateY(-2px)}.feature h2{margin:12px 0 6px;font-size:1.1rem}.feature p{margin:0;line-height:1.5}.feature-icon{background:var(--accent-soft);color:var(--accent);border-radius:10px;padding:8px;display:inline-flex}.feature-icon svg.icon{width:22px;height:22px}.achievements-teaser{color:var(--text);flex-wrap:wrap;align-items:center;gap:16px 24px;margin-bottom:16px;text-decoration:none;transition:border-color .15s,transform .15s;display:flex}.achievements-teaser:hover{border-color:var(--accent);transform:translateY(-2px)}.teaser-icons{grid-template-columns:repeat(5,32px);gap:6px;display:grid}.teaser-icons span{background:var(--border);width:32px;height:32px;color:var(--muted);border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.teaser-icons span.done{background:var(--accent-soft);color:var(--accent)}.teaser-icons svg.icon{width:16px;height:16px}.teaser-text{flex:1;min-width:220px}.teaser-text h2{align-items:center;gap:8px;margin:0 0 6px;font-size:1.1rem;display:flex}.teaser-text p{margin:0;line-height:1.5}.teaser-progress{color:var(--accent);font-weight:600;margin-top:6px!important}.teaser-progress:empty{display:none}.chapters{grid-template-columns:220px minmax(0,1fr);align-items:start;gap:24px;margin-top:20px;display:grid}.chapter-list{flex-direction:column;gap:2px;display:flex;position:sticky;top:72px}.chapter-list a{color:var(--muted);border-radius:8px;align-items:center;gap:10px;padding:8px 10px;text-decoration:none;display:flex}.chapter-list a:hover{background:var(--surface);color:var(--text)}.chapter-list a.active{background:var(--accent-soft);color:var(--text);font-weight:600}.chapter-number{background:var(--bg);border:1px solid var(--border);border-radius:50%;flex:none;justify-content:center;align-items:center;width:22px;height:22px;font-size:.75rem;font-weight:600;display:inline-flex}.chapter-number svg.icon{stroke-width:2.6px;width:13px;height:13px}.chapter-list a.read .chapter-number{background:var(--success-bg);color:var(--success-text);border-color:#0000}.chapter-progress{color:var(--muted);padding:0 10px 6px;font-size:.8rem}.mark-read{margin-top:28px}.mark-read.done{background:var(--success-bg);color:var(--success-text);border-color:#0000}.chapter-list a.active .chapter-number{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.chapter{margin:0;padding:24px 28px;line-height:1.65}.chapter h2{margin-top:0}.chapter p{max-width:70ch}.chapter .table{margin:16px 0 4px}.table.compact{width:auto}.formula{border-left:3px solid var(--accent);background:var(--bg);border-radius:0 8px 8px 0;margin:16px 0;padding:12px 16px;font-family:Georgia,Times New Roman,serif;font-size:1.2rem}.caption{color:var(--muted);font-size:.85rem}.play-examples{flex-wrap:wrap;gap:8px;margin:12px 0 16px;display:flex}.chapter-pager{border-top:1px solid var(--border);justify-content:space-between;gap:12px;margin-top:28px;padding-top:16px;display:flex}.chapter-pager a{color:var(--accent);text-decoration:none}.chapter-pager a:hover{text-decoration:underline}.settings-section h3{margin:24px 0 8px;font-size:1rem}.settings-section h2+div>h3:first-child{margin-top:0}.choices{flex-wrap:wrap;gap:8px;display:flex}.choice{cursor:var(--cursor-pointer,pointer)}.choice input{opacity:0;pointer-events:none;position:absolute}.choice span{border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:6px 14px}.choice:hover span{border-color:var(--accent)}.choice input:checked+span{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.choice.disabled{cursor:var(--cursor-default,default)}.choice.disabled span{opacity:.45}.choice.disabled:hover span{border-color:var(--border)}.color-swatch:disabled{cursor:var(--cursor-default,default)}.choice input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}.profile{align-items:center;gap:16px;display:flex}.profile svg.avatar{width:64px;height:64px}.profile-email{overflow-wrap:anywhere;font-weight:600}.danger-title{color:var(--error-text)}button.danger{border-color:var(--error-text);background:var(--error-text);color:var(--surface)}.table td.actions{text-align:right}@media (width<=760px){.chapters{grid-template-columns:minmax(0,1fr);gap:12px}.chapter-list{flex-flow:wrap;gap:6px;position:static}.chapter-progress{flex-basis:100%;padding:0}.chapter-list a{border:1px solid var(--border);border-radius:999px;gap:6px;padding:4px 10px 4px 4px;font-size:.85rem}.chapter-list a.active{border-color:var(--accent)}.chapter-number{width:20px;height:20px}.chapter{padding:18px 16px}.chapter .table{display:block;overflow-x:auto}}kbd{border:1px solid var(--border);background:var(--surface);border-bottom-width:2px;border-radius:5px;padding:1px 6px;font:.85em ui-monospace,monospace}.metronome{flex-direction:column;align-items:stretch;gap:14px;display:flex}.metronome-pane{flex-direction:column;align-items:center;gap:12px;width:100%;margin:0;padding:16px 20px;display:flex}.metronome-pane .fold{width:100%}.metronome-pane .fold summary{justify-content:center}.metronome-pane .fold summary h3{color:var(--muted);margin:0;font-size:.85rem;font-weight:500}.metronome-pane .fold-body{flex-direction:column;align-items:center;gap:10px;margin-top:10px;display:flex}.metronome-pane .fold-body .chips{justify-content:center}@media (width>=860px){.metronome{grid-template-columns:1fr 1fr;align-items:start;gap:16px;display:grid}.metronome-actions{grid-column:1/-1}}.beats-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;display:flex}#accent-reset{color:var(--muted);box-shadow:none;background:0 0;border:0;place-items:center;padding:4px;display:inline-grid}#accent-reset:hover{color:var(--text);background:0 0}#accent-reset svg.icon{width:16px;height:16px}#time-signatures .chip{font-variant-numeric:tabular-nums;min-width:3em}.tempo-presets{flex-wrap:wrap;justify-content:center;gap:6px;max-width:360px;display:flex}.tempo-presets .chip{font-variant-numeric:tabular-nums;min-width:3.2em}.tempo{align-items:center;gap:24px;display:flex}button.round{border-radius:50%;width:44px;height:44px;padding:0;font-size:1.4rem;line-height:1}.pulse{border:3px solid var(--accent-soft);background:var(--bg);border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:150px;height:150px;display:flex}.pulse.hit{animation:.25s ease-out pulse-hit}.pulse.hit-accent{animation:.3s ease-out pulse-accent}@keyframes pulse-hit{0%{border-color:var(--accent);transform:scale(1.04)}to{border-color:var(--accent-soft);transform:scale(1)}}@keyframes pulse-accent{0%{border-color:var(--accent);background:var(--accent-soft);transform:scale(1.08)}to{border-color:var(--accent-soft);background:var(--bg);transform:scale(1)}}@media (prefers-reduced-motion:reduce){.pulse.hit,.pulse.hit-accent{animation-duration:10ms}}input.bpm{width:3.4ch;color:var(--text);font:inherit;font-variant-numeric:tabular-nums;text-align:center;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;padding:0;font-size:3rem;font-weight:700;line-height:1}input.bpm:hover{border-bottom-color:var(--border)}input.bpm:focus{border-bottom-color:var(--accent);outline:none}.bpm-unit{color:var(--muted);letter-spacing:.1em;font-size:.8rem}.tempo-name{color:var(--muted);font-style:italic}.metronome input[type=range]{width:min(420px,100%)}.beats{flex-wrap:wrap;justify-content:center;gap:10px;margin:6px 0;display:flex}.beat{border:2px solid var(--accent);width:40px;height:40px;color:var(--accent);background:0 0;border-radius:50%;padding:0;font-weight:600;transition:transform 80ms,background 80ms}.beat.accent{background:var(--accent-soft)}.beat.mute{opacity:.45;border-style:dashed}.beat.current{background:var(--accent);color:var(--on-accent);transform:scale(1.15)}.metronome-actions{gap:10px;display:flex}button.start{min-width:130px;padding:10px 22px;font-size:1.05rem}button.play-button{background:var(--playing);border-color:var(--playing);color:#fff}button.sounding,button.sounding:hover,button.start.playing{background:var(--stop);border-color:var(--stop);color:#fff}button.sounding:has(.sounding-icon) svg.icon:not(.sounding-icon){display:none}.label-stack{display:inline-grid}.label-stack>span{grid-area:1/1}.label-alt{visibility:hidden}.metronome-settings{flex-wrap:wrap;align-items:flex-end;gap:16px 24px;display:flex}.metronome-settings label{flex-direction:column;align-items:flex-start}.metronome-settings label:has(.volume-control){align-self:stretch}.metronome-settings label .volume-control{flex:1}.metronome-settings label .volume-control input[type=range]{flex:1;height:auto;min-height:100px}.sound-picker{flex-direction:column;flex-basis:100%;gap:6px;display:flex}.chip.selected{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.chord-detail:not(:empty){margin:12px 0}.chord-diagrams{flex-wrap:wrap;gap:4px 12px;display:flex}#shapes-section .fold{border-top:1px solid var(--border);margin-top:16px;padding-top:8px}.chord-diagram{text-align:center;margin:0}.chord-diagram figcaption{min-height:1.4em;font-weight:700}.chord-diagram svg,.fretboard{display:block;overflow:visible}.chord-diagram .grid line,.fretboard .grid line{stroke:var(--muted);stroke-width:1px}.chord-diagram .grid line.nut,.fretboard .grid line.nut{stroke:var(--text);stroke-width:4px}.chord-diagram .dot{fill:var(--text)}.chord-diagram .open{fill:none;stroke:var(--text);stroke-width:1.5px}.chord-diagram .dot.root{fill:var(--accent)}.chord-diagram .open.root{stroke:var(--accent)}.chord-diagram .mark,.chord-diagram .position{fill:var(--muted);text-anchor:middle;font-size:12px}.fretboard-scroll{padding:4px 0 8px;overflow-x:auto}.fretboard .fret-number{fill:var(--muted);text-anchor:middle;font-size:11px}.fretboard .note circle{fill:var(--accent-soft);stroke:var(--accent)}.fretboard .note text{fill:var(--text);text-anchor:middle;font-size:9px;font-weight:600}.fretboard .note.root circle{fill:var(--accent)}.fretboard .note.root text{fill:var(--on-accent)}.fretboard .fret-hit{fill:#0000;cursor:var(--cursor-pointer,pointer)}.fretboard .fret-hit:hover{fill:var(--accent-soft)}.fretboard .note{pointer-events:none}.fretboard .muted-string{fill:var(--muted);text-anchor:middle;pointer-events:none;font-size:13px}.cof-wrap{flex-direction:column;align-items:center;gap:12px;margin:20px 0 8px;display:flex}.circle-of-fifths{width:100%;max-width:440px;height:auto}.cof-cell{cursor:var(--cursor-pointer,pointer)}.cof-cell path{fill:var(--surface);stroke:var(--text);stroke-width:2px;transition:filter .15s}.cof-cell:hover path,.cof-cell:focus-visible path{filter:brightness(.92);fill:var(--accent-soft)}.cof-cell.on:hover path,.cof-cell.on:focus-visible path{filter:brightness(1.12)}.cof-cell:focus-visible{outline:none}.cof-cell text{fill:var(--text);text-anchor:middle;dominant-baseline:central;pointer-events:none;font-weight:700}.cof-cell text.major{font-size:30px}.cof-cell text.minor{font-size:19px}.cof-cell.on text{fill:var(--on-accent)}.cof-inner,.cof-center{fill:var(--surface);stroke:var(--text);stroke-width:2px}.cof-numeral{fill:var(--muted);text-anchor:middle;dominant-baseline:central;font-family:Georgia,Times New Roman,serif;font-size:20px;font-weight:700}.cof-key{fill:var(--text);text-anchor:middle;font-size:22px;font-weight:700}.cof-key-sub{fill:var(--muted);text-anchor:middle;font-size:13px}.cof-chords{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.tuner{text-align:center;flex-direction:column;align-items:center;gap:14px;display:flex}.tuner-note{align-items:baseline;gap:2px;min-height:96px;font-weight:800;line-height:1;display:flex}.tuner-name{font-size:88px}.tuner-octave{color:var(--muted);font-size:28px}.tuner-meter{width:min(100%,460px);height:64px;position:relative}.tuner-scale{height:18px;color:var(--muted);font-size:.75rem;position:absolute;inset:0 0 auto}.tuner-scale span{position:absolute;transform:translate(-50%)}.tuner-meter:before{content:"";background:repeating-linear-gradient(to right, var(--border) 0 1px, transparent 1px 5%), var(--bg);border-radius:6px;position:absolute;inset:26px 0 12px}.tuner-zone{background:color-mix(in srgb, var(--success-text) 30%, transparent);border-radius:4px;width:10%;position:absolute;top:26px;bottom:12px;left:45%}.tuner-needle{background:var(--error-text);border-radius:2px;width:4px;margin-left:-2px;transition:left .12s ease-out,background .12s;position:absolute;top:20px;bottom:6px;left:50%}.tuner-needle.in-tune{background:var(--success-text)}.tuner-status{min-height:1.5em;color:var(--muted);font-weight:600}.tuner-status.in-tune{color:var(--success-text)}.tuner-frequency{min-height:1.3em;color:var(--muted);font-size:.85rem}.tuner-favorites{flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px;display:flex}.tuner-favorites[hidden]{display:none}.tuner-favorites svg.icon{fill:var(--accent);color:var(--accent)}.tuner-layout{align-items:start;gap:16px;display:grid}@media (width>=760px){.tuner-layout{grid-template-columns:280px minmax(0,1fr)}}.tuner-layout>.tuner{margin:0}.tuning-tree{flex-direction:column;gap:8px;margin:0;padding:12px 10px;display:flex}.tree-group-label{width:100%;color:var(--accent);letter-spacing:.06em;text-transform:uppercase;background:0 0;border:0;justify-content:space-between;align-items:center;padding:4px 10px;font-size:.75rem;font-weight:600;display:flex}.tree-group-label .chevron{width:15px;height:15px;transition:transform .15s}.tree-group.collapsed .chevron{transform:rotate(-90deg)}.tree-items{border-left:1px solid var(--border);flex-direction:column;gap:2px;margin:2px 0 0 10px;padding-left:4px;display:flex}.tree-group.collapsed .tree-items{display:none}.tree-row{align-items:center;gap:2px;display:flex}.tree-row .tree-item{flex:1;min-width:0}.tree-star{color:var(--muted);opacity:0;background:0 0;border:0;flex:none;padding:6px;line-height:0}.tree-row:hover .tree-star,.tree-star:focus-visible,.tree-star[aria-pressed=true]{opacity:1}.tree-star[aria-pressed=true]{color:var(--accent)}.tree-star[aria-pressed=true] svg.icon{fill:currentColor}@media (hover:none){.tree-star{opacity:.55}}.tree-item{color:var(--muted);text-align:left;background:0 0;border:0;border-radius:7px;padding:6px 10px;font-weight:400}.tree-item:hover{background:color-mix(in srgb, var(--accent) 10%, transparent);color:var(--text)}.tree-item.active{background:color-mix(in srgb, var(--accent) 18%, transparent);color:var(--text);font-weight:600}.tuner-strings{justify-content:center;gap:8px;display:flex}.tuner-strings[hidden]{display:none}.tuner-string{border-color:var(--border);width:46px;color:var(--text);background:0 0;border-radius:10px;flex-direction:column;align-items:center;padding:6px 0;font-weight:700;line-height:1.1;display:flex}.tuner-string small{color:var(--muted);font-size:.7rem;font-weight:400}.tuner-string.active{border-color:var(--accent);background:var(--accent-soft)}.tuner-string.tuned{border-color:var(--success-text);color:var(--success-text)}.tuner-string.tuned small:before{content:"✓ "}.tuner-progress{min-height:1.2em;margin-top:6px;font-size:.85rem}.tuner-actions{align-items:center;gap:12px;display:flex}.page-title{justify-content:space-between;align-items:center;gap:12px;margin-bottom:4px;display:flex}.page-title h1{margin:0}.page-title-buttons{align-items:center;gap:8px;display:flex}.help-steps{flex-direction:column;gap:8px;margin:0;padding-left:22px;display:flex}.help-steps li::marker{color:var(--accent);font-weight:600}.help-dialog p{margin:0 0 12px}.key-button{border:1px solid var(--border);background:var(--surface);width:30px;height:30px;color:var(--muted);border-radius:50%;place-items:center;padding:0;display:grid}.key-button:hover{color:var(--accent);border-color:var(--accent)}.achievements-pill{border:1px solid color-mix(in srgb, var(--accent) 40%, var(--border));background:color-mix(in srgb, var(--accent-soft) 35%, var(--surface));height:30px;color:var(--text);border-radius:15px;align-items:center;gap:5px;padding:0 10px;font-size:.85rem;text-decoration:none;display:inline-flex}.achievements-pill:hover{border-color:var(--accent)}.achievements-pill svg.icon{width:16px;height:16px;color:var(--accent)}.achievements-pill svg.icon+span{margin-left:0}.achievements-pill.complete{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.achievements-pill.complete svg.icon{color:var(--on-accent)}.now-playing{position:relative}.now-playing:not(.playing) .now-playing-button{opacity:.5;cursor:var(--cursor-default,default)}.now-playing.playing .now-playing-button{color:var(--error-text);border-color:var(--error-text);background:var(--error-bg)}.now-playing-menu{z-index:20;padding-top:6px;display:none;position:absolute;top:100%;right:0}.now-playing:hover .now-playing-menu,.now-playing:focus-within .now-playing-menu{display:block}.now-playing-panel{background:var(--surface);border:1px solid var(--border);border-radius:8px;min-width:220px;padding:6px;box-shadow:0 6px 20px #00000040}.now-playing-volume{border-bottom:1px solid var(--border);padding:6px 8px 8px}.now-playing-volume .volume-control{display:flex}.now-playing-volume .volume-control input[type=range]{flex:1;min-width:0}.now-playing-list{margin:0;padding:0;list-style:none}.now-playing-list li{white-space:nowrap;justify-content:space-between;align-items:center;gap:12px;padding:6px 8px;font-size:.9rem;display:flex}.now-playing-actions{gap:6px;display:flex}.now-playing-list a.key-button{place-items:center;text-decoration:none;display:inline-grid}.now-playing-list a.key-button:hover{color:var(--accent);border-color:var(--accent)}.now-playing-list button.key-button:hover{color:var(--error-text);border-color:var(--error-text)}.reset-defaults{align-self:flex-start}.achievements{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-top:16px;display:grid}.achievement{align-items:flex-start;gap:14px;margin:0;padding:16px;display:flex}.achievement-icon{background:var(--accent-soft);width:44px;height:44px;color:var(--accent);border-radius:50%;flex:none;place-items:center;display:grid}.achievement-icon svg.icon{width:22px;height:22px}.achievement.locked .achievement-icon{background:var(--bg);color:var(--muted)}.achievement.locked strong{color:var(--muted)}.achievement-text{flex-direction:column;gap:3px;min-width:0;display:flex}.achievement-date{color:var(--success-text)}.achievement-progress{background:var(--bg);border-radius:3px;height:6px;margin-top:6px;overflow:hidden}.achievement-progress div{background:var(--accent);border-radius:3px;height:100%}.tuner-input{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.input-level{background:var(--border);border-radius:4px;flex:none;align-self:stretch;align-items:flex-end;width:8px;min-height:40px;display:flex;overflow:hidden}.input-level div{background:var(--success-text);width:100%;height:0;transition:height 60ms linear}.mic-help{border-left:4px solid var(--error-text);background:var(--error-bg);color:var(--error-text);text-align:left;border-radius:8px;margin-top:16px;padding:12px 16px}.mic-help ol{margin:8px 0 12px;padding-left:20px}.achievement-group+.achievement-group{margin-top:32px}.achievement-group h2 .muted{font-size:1rem;font-weight:400}.reward{border:1px dashed var(--border);color:var(--muted);border-radius:12px;align-items:center;gap:12px;margin-bottom:16px;padding:10px 14px;display:flex}.reward span:last-child{flex-direction:column;display:flex}.reward strong{color:var(--text)}.reward.earned{border-style:solid;border-color:var(--accent);background:color-mix(in srgb, var(--accent-soft) 50%, var(--surface))}.reward.earned .achievement-icon{color:var(--accent)}.locked-note{color:var(--muted);align-items:flex-start;gap:8px;margin:8px 0 12px;font-size:.9rem;display:flex}.locked-note svg.icon{flex-shrink:0;width:16px;height:16px;margin-top:3px}.locked-note svg.icon+span{margin-left:0}.locked-note a.locked-link{color:var(--accent);white-space:nowrap;font-weight:600;text-decoration:none}.locked-note a.locked-link:hover{text-decoration:underline}.locked-note a.locked-link svg.icon{vertical-align:-2px;width:14px;height:14px;margin:0 0 0 4px;position:static}.notice-toasts{z-index:100;pointer-events:none;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.notice-toast{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:999px;padding:8px 16px;transition:opacity .3s;animation:.2s ease-out toast-in;box-shadow:0 8px 24px #0000002e}.notice-toast.leaving{opacity:0}@media (prefers-reduced-motion:reduce){.notice-toast{transition:none;animation:none}}.achievement-toasts{z-index:100;flex-direction:column;gap:8px;display:flex;position:fixed;bottom:16px;right:16px}.achievement-toast{border:1px solid var(--accent);background:var(--surface);color:var(--text);border-radius:12px;align-items:center;gap:12px;padding:10px 16px 10px 10px;text-decoration:none;transition:opacity .4s,transform .4s;animation:.3s ease-out toast-in;display:flex;box-shadow:0 8px 24px #0000002e}.achievement-toast span:last-child{flex-direction:column;display:flex}.achievement-toast small{color:var(--muted)}.achievement-toast.leaving{opacity:0;transform:translateY(8px)}@keyframes toast-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.achievement-toast{transition:none;animation:none}}.shape-card{cursor:var(--cursor-pointer,pointer);border-radius:10px;flex-direction:column;align-items:center;padding:6px 8px;display:flex}.shape-card:hover{background:var(--bg)}.shape-nav{color:var(--muted);font-variant-numeric:tabular-nums;align-items:center;gap:2px;font-size:.8rem;display:flex}.shape-nav button.icon{border:0;padding:2px 6px}.shape-nav button:disabled{opacity:.3}.shape-kind{color:var(--muted);font-size:.75rem}.piano-diagram svg{margin-top:8px}.piano-diagram .white{fill:#fff;stroke:var(--muted);stroke-width:1px}.piano-diagram .black{fill:#2a2a33;stroke:#2a2a33}.piano-diagram .black.on{fill:color-mix(in srgb, var(--accent) 80%, #2a2a33);stroke:color-mix(in srgb, var(--accent) 80%, #2a2a33)}.piano-diagram .white.on{fill:color-mix(in srgb, var(--accent) 35%, #fff)}.piano-diagram .on.root{fill:var(--accent);stroke:var(--accent)}.player-bar{flex-wrap:wrap;align-items:center;gap:10px 20px;display:flex}.player-group{align-items:center;gap:8px;display:flex}.player-group.arpeggio-on #rhythm,.player-group.arpeggio-on #rhythm+.custom-select{display:none}.fold summary:has(.switch) h3{margin-block:16px;line-height:1}.switch{width:34px;height:20px;cursor:var(--cursor-pointer,pointer);flex:none;display:inline-block;position:relative}.switch input{opacity:0;cursor:var(--cursor-pointer,pointer);margin:0;position:absolute;inset:0}.switch-track{border:1px solid var(--border);background:var(--surface);pointer-events:none;border-radius:10px;transition:background .15s,border-color .15s;position:absolute;inset:0}.switch-track:after{content:"";background:var(--muted);border-radius:50%;width:14px;height:14px;transition:transform .15s,background .15s;position:absolute;top:2px;left:2px}.switch input:checked+.switch-track{border-color:var(--accent);background:var(--accent-soft)}.switch input:checked+.switch-track:after{background:var(--accent);transform:translate(14px)}.switch input:focus-visible+.switch-track{outline:2px solid var(--accent);outline-offset:2px}.arpeggio-settings{flex-wrap:wrap;gap:12px 20px;display:flex}.player-actions{margin-left:auto}.icon-button,.toggle-button{place-items:center;width:36px;height:36px;padding:0;display:inline-grid}.toggle-button{border:1px solid var(--border);color:var(--muted);cursor:var(--cursor-pointer,pointer);border-radius:8px;position:relative}.toggle-button input{opacity:0;pointer-events:none;position:absolute}.toggle-button:has(input:checked){border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.toggle-button:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}@media (width<=560px){.player-actions{order:1}.player-group:nth-child(2){flex-basis:100%;order:2;min-width:0}.player-group:nth-child(2) .custom-select{flex:0 auto;min-width:0}}.global-key{align-items:center;gap:6px;margin-left:auto;display:flex}.global-key:not([hidden])+.header-actions{margin-left:12px}.tempo-readout{color:var(--muted)}.global-key[hidden]{display:none}.key-summary{border:1px solid var(--border);background:var(--surface);color:var(--text);white-space:nowrap;border-radius:8px;align-items:center;gap:8px;padding:5px 12px;font-size:.9rem;font-weight:600;display:flex}.key-summary:hover{border-color:var(--accent)}.key-summary-detail{color:var(--muted);font-variant-numeric:tabular-nums;font-weight:400}.key-summary-detail:before{content:"·";margin-right:8px}.key-dialog p{margin-top:0}.key-fields{flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:16px;display:flex}.key-fields label{color:var(--muted);flex-direction:column;align-items:flex-start;gap:4px;font-size:.85rem;display:flex}.key-dialog .fold h3{margin:0;font-size:.9rem}.key-dialog .fold-body{margin-top:8px}.key-dialog #global-related{margin-bottom:16px}.unit-input{border:1px solid var(--border);color:var(--muted);border-radius:8px;align-items:center;gap:4px;padding:6px 10px;font-size:.8rem;display:flex}.unit-input input{width:3.2ch;color:var(--text);font:inherit;font-variant-numeric:tabular-nums;text-align:right;background:0 0;border:0;padding:0;font-size:.95rem;font-weight:600}.unit-input input:focus{outline:none}.unit-input:focus-within{border-color:var(--accent)}@media (width<=760px){.header{flex-wrap:wrap}.global-key{flex-basis:100%;order:1;margin-left:0;padding-top:2px}.global-key:not([hidden])+.header-actions{margin-left:auto}}.fold summary{cursor:var(--cursor-pointer,pointer);align-items:center;gap:8px;list-style:none;display:flex}.fold summary::-webkit-details-marker{display:none}.fold summary h2,.fold summary h3{margin:20px 0 12px}.fold summary svg.icon{color:var(--muted);transition:transform .15s}.fold:not([open]) summary svg.icon{transform:rotate(-90deg)}.fold summary:hover h2,.fold summary:hover h3{color:var(--accent)}.fold-note{color:var(--muted);font-size:.95rem}.fold summary h2+.fold-note,.fold summary h3+.fold-note{margin:20px 0 12px}#palette{margin-top:16px}.stat-tiles{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:16px;display:grid}.stat-tile{grid-template-columns:auto 1fr;align-items:center;column-gap:12px;margin:0;padding:14px 16px;display:grid}.stat-icon{background:var(--accent-soft);width:40px;height:40px;color:var(--accent);border-radius:50%;grid-row:span 2;place-items:center;display:grid}.stat-tile strong{font-variant-numeric:tabular-nums;font-size:1.4rem;line-height:1.2}.stat-tile .muted{font-size:.85rem}.exercise-cards{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;display:grid}.exercise-card{flex-direction:column;gap:8px;margin:0;padding:16px;display:flex}.exercise-card header{justify-content:space-between;align-items:center;gap:8px;display:flex}.exercise-card h3,.exercise-card p{margin:0}.exercise-card>.muted{font-size:.9rem}.exercise-stats{font-variant-numeric:tabular-nums;font-size:.9rem}.weak-items{flex-wrap:wrap;gap:6px;font-size:.85rem;display:flex}.weak-item{background:var(--error-bg);color:var(--error-text);border-radius:999px;padding:1px 8px}.weak-item .muted{color:inherit;opacity:.75}.practice-button{align-self:flex-start;margin-top:auto}.star-button{width:34px;height:34px;color:var(--muted);background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:grid}.star-button:hover{color:var(--accent)}.star-button.starred{color:#e0a526}.star-button.starred svg.icon{fill:currentColor}.instrument-picker{flex-direction:column;gap:10px;margin-bottom:12px;display:flex}.instrument-group{flex-direction:column;gap:6px;display:flex}.instrument-group-name{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:.75rem;font-weight:600}.instrument-picker .choice span{padding:4px 12px;font-size:.9rem}.instrument-picker.loading .choice input:checked+span{opacity:.6;animation:.9s ease-in-out infinite alternate pulse}@keyframes pulse{to{opacity:1}}.instrument-lock .locked-note{margin:0}.ear-sound{flex-direction:column;gap:6px;display:flex}.my-progressions{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:12px;padding-bottom:12px;display:flex}.preset.mine{border-color:var(--accent)}.row-actions{white-space:nowrap;justify-content:flex-end;gap:6px;display:flex}.prompt-fields{border:0;margin:0 0 8px;padding:0}.prompt-fields label{flex-direction:column;gap:4px;display:flex}.mood-filter{flex-wrap:wrap;gap:4px;margin-bottom:10px;display:flex}.mood{border:1px solid var(--border);color:var(--muted);background:0 0;border-radius:999px;padding:3px 10px;font-size:.85rem}.mood:hover{border-color:var(--accent);color:var(--accent)}.mood.active{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.chip.preset.other-key{opacity:.5}.chip.preset.other-key:hover{opacity:.85}.dialog-actions{flex-wrap:wrap;gap:8px;margin-top:16px;display:flex}.dialog-actions .muted{margin-left:4px;font-size:.85rem}.accent-swatch{vertical-align:-1px;border-radius:50%;width:12px;height:12px;margin-right:6px;display:inline-block}.volume-control{color:var(--muted);align-items:center;gap:8px;display:inline-flex}.volume-control input[type=range]{width:180px}.volume-icon svg.icon{width:18px;height:18px;display:block}.volume-value{text-align:right;min-width:4.5ch;font-size:.85rem}.volume-control.vertical{flex-direction:column-reverse;justify-content:flex-end;gap:10px}.volume-control.vertical input[type=range]{writing-mode:vertical-lr;direction:rtl;width:24px;height:160px}.volume-control.vertical input[type=range]::-webkit-slider-runnable-track{width:4px;height:100%}.volume-control.vertical input[type=range]::-webkit-slider-thumb{margin-top:0;margin-left:-6px}.volume-control.vertical input[type=range]::-moz-range-track{width:4px;height:100%}.volume-control.vertical input[type=range]::-moz-range-progress{width:4px}.volume-control.vertical .volume-value{text-align:center}.key-tabs{margin:0 0 12px}.key-panels{display:grid}.key-panel{grid-area:1/1;min-width:0}.key-panel.inactive{visibility:hidden}.key-dialog-body{gap:20px;display:flex}.key-dialog-main{flex:1;min-width:0}.key-side{border-left:1px solid var(--border);flex-direction:column;align-items:center;gap:12px;padding-left:20px;display:flex}.key-side>.volume-control{flex:1}.key-side-title{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:.75rem;font-weight:600}.key-side>.volume-control input[type=range]{flex:1;height:auto;min-height:120px}.accent-swatch[data-swatch=amber]{background:#b45309}.accent-swatch[data-swatch=violet]{background:#5b4fe0}.accent-swatch[data-swatch=blue]{background:#2563eb}.accent-swatch[data-swatch=teal]{background:#0b7a6f}.accent-swatch[data-swatch=rose]{background:#c8325f}.arpeggio-grid{grid-template-columns:1.5em repeat(var(--steps,8), minmax(0, 36px));place-items:center;gap:4px;padding-bottom:4px;display:grid;overflow-x:auto}.arpeggio-cell{border:1px solid var(--border);background:var(--surface);border-radius:6px;width:100%;height:24px;padding:0}.arpeggio-cell:hover:not(:disabled){border-color:var(--accent)}.arpeggio-cell.on{border-color:var(--accent);background:var(--accent)}.arpeggio-row-label,.arpeggio-step-label{font-variant-numeric:tabular-nums;font-size:.8rem}.exercise-learn{align-items:center;gap:6px;font-size:.95rem;display:inline-flex}.exercise-learn svg.icon{width:16px;height:16px}.exercise-card .exercise-learn{margin-bottom:12px}.achievement[data-no-instrument]{cursor:var(--cursor-pointer,pointer)}
