:root{--bg:#fbf7f2;--surface:#fff;--surface-2:#f3ece3;--text:#2a211c;--muted:#7b6d63;--border:#e4d9cc;--primary:#7a3b1d;--primary-text:#fff;--accent:#2f6fd6;--green:#1f9d55;--amber:#d48806;--red:#d64545;--grey:#9aa0a6;--shadow:0 1px 2px #3c23140f, 0 4px 16px #3c23140f;--radius:14px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#1b1714;--surface:#26201c;--surface-2:#322a24;--text:#f2ebe4;--muted:#b3a597;--border:#3d332c;--primary:#c9784b;--primary-text:#1b1714;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.4}button,select,input{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}h1{margin:0;font-size:1.15rem;font-weight:650}h2{margin:0 0 .4rem;font-size:1.05rem}.muted{color:var(--muted)}.error{color:var(--red)}.good{color:var(--green)}.pad{padding:16px}.page{min-height:100%}.topbar{z-index:5;padding:calc(8px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));background:var(--bg);border-bottom:1px solid var(--border);align-items:center;gap:8px;display:flex;position:sticky;top:0}.topbar .title{flex-direction:column;flex:1;min-width:0;display:flex}.topbar .title h1{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.topbar .title .muted{font-size:.8rem}.topbar>h1{flex:1}.brand{flex:1;align-items:center;gap:10px;display:flex}.brand img{border-radius:8px}.library{max-width:760px;padding:16px max(16px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom));flex-direction:column;gap:16px;margin:0 auto;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.card>p{margin:0 0 12px}.section-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.section-head h2{margin:0}.form-row{flex-wrap:wrap;gap:10px;margin-bottom:12px;display:flex}.form-row label{color:var(--muted);flex-direction:column;flex:140px;gap:4px;font-size:.8rem;display:flex}select{appearance:none;background:var(--surface-2);border:1px solid var(--border);color:var(--text);border-radius:10px;padding:10px 12px;font-size:.95rem}.list{margin:0;padding:0;list-style:none}.list li{border-top:1px solid var(--border);align-items:center;display:flex}.list li:first-child{border-top:none}.list-item{text-align:left;background:0 0;border:none;flex-direction:column;flex:1;align-items:flex-start;min-width:0;padding:12px 4px;display:flex}.list-item .muted{font-size:.85rem}.btn{border:1px solid var(--border);background:var(--surface-2);border-radius:999px;padding:10px 18px;font-weight:600}.btn-primary{background:var(--primary);border-color:var(--primary);color:var(--primary-text)}.icon-btn{background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;min-width:44px;height:44px;font-size:1.5rem;line-height:1;display:inline-flex}.icon-btn.small{background:var(--surface-2);min-width:36px;height:36px;font-size:1.1rem}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:7px 14px;font-size:.9rem}.chip-on{background:var(--primary);border-color:var(--primary);color:var(--primary-text)}.row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.player{flex-direction:column;height:100%;display:flex;overflow:hidden}.score-scroller{-webkit-overflow-scrolling:touch;min-height:0;padding:8px max(8px, env(safe-area-inset-left));flex:1;position:relative;overflow-y:auto}.score{border-radius:var(--radius);box-shadow:var(--shadow);background:#fff;min-height:200px;padding:4px 0 24px;overflow:hidden}.loading{color:var(--muted);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.toast{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;margin:0 12px 6px;padding:10px 14px;font-weight:500}.toast-wrong{border-color:var(--red);background:color-mix(in srgb, var(--red) 12%, var(--surface))}.toast-error{border-color:var(--red);color:var(--red)}.controls{border-top:1px solid var(--border);background:var(--surface);padding:10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));flex-direction:column;gap:10px;display:flex}.segmented{background:var(--surface-2);border-radius:12px;grid-template-columns:repeat(3,1fr);padding:3px;display:grid}.segmented button{color:var(--muted);background:0 0;border:none;border-radius:10px;padding:8px 4px;font-weight:600}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000001f}.play-btn{background:var(--primary);min-height:48px;color:var(--primary-text);border:none;border-radius:999px;flex:180px;font-size:1.05rem;font-weight:700}.play-btn.stop{background:var(--text);color:var(--bg)}.from{align-items:center;gap:6px;display:flex}.from strong{text-align:center;min-width:1.6em}.tempo{align-items:center;gap:6px;display:flex}.tempo .icon-btn{background:var(--surface-2);font-size:1.3rem}.tempo-slider{flex-direction:column;flex:1;gap:2px;display:flex}.tempo-value{font-variant-numeric:tabular-nums;font-weight:700}.tempo-value small{color:var(--muted);font-weight:400}input[type=range]{width:100%;accent-color:var(--primary)}.hint{margin:0;font-size:.85rem}.tuner{grid-template-columns:auto 1fr auto;align-items:center;gap:12px;display:grid}.tuner-note{font-variant-numeric:tabular-nums;min-width:92px}.tuner-heard{font-size:1.4rem;font-weight:700}.tuner-target{color:var(--muted);margin-left:6px}.tuner-scale{background:var(--surface-2);border-radius:9px;height:18px;position:relative;overflow:hidden}.tuner-zone{background:color-mix(in srgb, var(--green) 18%, transparent);position:absolute;inset:0 35%}.tuner-center{background:var(--muted);width:2px;margin-left:-1px;position:absolute;top:0;bottom:0;left:50%}.tuner-needle{background:var(--red);border-radius:3px;width:6px;margin-left:-3px;transition:left 60ms linear;position:absolute;top:2px;bottom:2px}.tuner-needle.good{background:var(--green)}.tuner-needle.ok{background:var(--amber)}.tuner-cents{text-align:right;min-width:92px;color:var(--muted);font-variant-numeric:tabular-nums;font-size:.9rem}.sheet-backdrop{z-index:20;background:#140c0866;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:min(560px,100%);max-height:90%;padding:20px 20px calc(20px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;flex-direction:column;gap:12px;display:flex;overflow-y:auto}@media (width>=700px){.sheet-backdrop{align-items:center}.sheet{border-radius:20px}}.sheet p{margin:0}.results-head{align-items:center;gap:16px;display:flex}.results-head h2{margin:0;font-size:1.3rem}.score-ring{--p:0;background:conic-gradient(var(--green) calc(var(--p) * 1%), var(--surface-2) 0);border-radius:50%;flex:none;place-items:center;width:84px;height:84px;display:grid;position:relative}.score-ring:before{content:"";background:var(--surface);border-radius:50%;position:absolute;inset:8px}.score-ring span{font-size:1.2rem;font-weight:800;position:relative}.stats{grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;display:grid}.stat{background:var(--surface-2);border-left:4px solid var(--grey);border-radius:12px;flex-direction:column;padding:8px 10px;display:flex}.stat strong{font-size:1.3rem}.stat span{color:var(--muted);font-size:.8rem}.stat-green{border-left-color:var(--green)}.stat-amber{border-left-color:var(--amber)}.stat-red{border-left-color:var(--red)}.trouble p{margin-bottom:6px}.sheet-actions{justify-content:flex-end;gap:10px;margin-top:4px;display:flex}.setting{border-top:1px solid var(--border);flex-direction:column;gap:6px;padding:10px 0;display:flex}.setting:first-of-type{border-top:none}.setting small{font-size:.8rem;display:block}@media (width>=1000px) and (orientation:landscape){.player{grid-template-rows:auto auto 1fr;grid-template-columns:1fr 360px;display:grid}.player .topbar{grid-column:1/-1}.score-scroller{grid-area:2/1/4}.toast{grid-area:2/2;margin:12px 12px 0}.controls{border-top:none;border-left:1px solid var(--border);grid-area:3/2;justify-content:flex-start}}
