:root{--ivory:#f7f6f3;--paper:#fff;--ink:#1c1c1e;--ink-soft:#6e6e73;--burgundy:#2c7a74;--olive:#2c7a74;--rule:#1c1c1e1f;--warn:#7a5a16;--ok:#2c7a74;--serif:-apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--sans:-apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--mono:ui-monospace, "SF Mono", Menlo, Consolas, monospace;--tap:44px}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--ivory);color:var(--ink);font-family:var(--sans);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit;color:inherit}a{color:var(--burgundy)}code{font-family:var(--mono);font-size:.9em}.splash{height:100dvh;font-family:var(--serif);place-items:center;font-size:28px;display:grid}.muted{color:var(--ink-soft)}.small{font-size:.85rem}.pad{padding:16px}.warn{color:var(--warn);font-weight:600}.ok{color:var(--ok);font-weight:600}.btn{min-height:var(--tap);min-width:var(--tap);border:1px solid var(--rule);background:var(--paper);cursor:pointer;touch-action:manipulation;border-radius:10px;padding:0 14px}.btn:disabled{opacity:.4;cursor:default}.btn.primary{background:var(--burgundy);color:#fff;border-color:var(--burgundy)}.btn.danger{color:var(--warn);border-color:#7a5a1666}.btn.ghost{background:0 0;border-color:#0000;font-size:1.2rem}.btn.small{min-width:34px;min-height:34px;padding:0 10px;font-size:.9rem}.btn.big{min-width:64px;min-height:56px;font-size:1.15rem;font-weight:600}.btn.pill{border-radius:999px;font-weight:600}.btn.hold{position:relative;overflow:hidden}.btn.hold.holding{background:linear-gradient(90deg, var(--rule) 0%, var(--paper) 100%)}.chip{border:1px solid var(--rule);background:var(--paper);cursor:pointer;border-radius:999px;min-height:40px;padding:0 14px;font-weight:700}.chip.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}.chip.off{font-weight:500}.screen{min-height:100dvh;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.topbar{padding:calc(env(safe-area-inset-top) + 10px) 16px 10px;border-bottom:1px solid var(--rule);background:var(--paper);flex-wrap:wrap;align-items:center;gap:12px;display:flex}.topbar h2{font-family:var(--serif);flex:1;margin:0;font-weight:600}.banner{color:var(--ink);background:#7a5a161a;border:0;border-radius:10px;margin:8px 16px;padding:10px 14px}.banner.subtle{color:inherit;background:#7f7f7f1f;border-color:#0000}.banner-x{float:right;opacity:.6}.empty-state{padding:24px}.lib-head{padding:calc(env(safe-area-inset-top) + 18px) 20px 14px;border-bottom:1px solid var(--rule);justify-content:space-between;align-items:flex-end;gap:12px;display:flex}.brand h1{letter-spacing:-.01em;margin:2px 0 0;font-size:1.8rem;font-weight:700}.lib-nav{gap:8px;display:flex}.lib-tools{gap:10px;padding:14px 20px;display:grid}.search{min-height:var(--tap);border:1px solid var(--rule);background:#fff;border-radius:10px;width:100%;padding:0 14px}.seg-control{border:1px solid var(--rule);border-radius:10px;gap:0;width:fit-content;max-width:100%;display:flex;overflow:hidden}.seg-control button{background:var(--paper);cursor:pointer;border:0;min-height:40px;padding:0 14px}.seg-control button.on{background:var(--olive);color:#fff}.lib-actions{flex-wrap:wrap;gap:8px;display:flex}.song-list{margin:0;padding:0 12px 40px;list-style:none}.song-list.compact{max-height:40vh;padding:0;overflow:auto}.song-row{text-align:left;border:0;border-bottom:1px solid var(--rule);cursor:pointer;background:0 0;grid-template-columns:1fr auto;grid-template-areas:"t b""a b";gap:2px 12px;width:100%;min-height:60px;padding:12px 10px;display:grid}.song-row:disabled{opacity:.4}.song-title{grid-area:t;font-size:1.1rem;font-weight:600}.song-artist{color:var(--ink-soft);grid-area:a;font-size:.9rem}.badge{border:1px solid var(--rule);white-space:nowrap;border-radius:999px;grid-area:b;align-self:center;padding:4px 10px;font-size:.78rem}.badge-confirmed{border-color:var(--olive);color:var(--olive)}.badge-link-only{border-style:dashed}.badge-needs-review,.badge-draft{border-color:var(--burgundy);color:var(--burgundy)}.form-screen .form-col{align-content:start;gap:12px;padding:16px 20px;display:grid}.form-col.narrow{max-width:760px}.form-grid{grid-template-columns:minmax(0,1fr);display:grid}@media (width>=900px){.form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}label{gap:6px;font-size:.95rem;font-weight:600;display:grid}label.toggle{min-height:var(--tap);align-items:center;gap:10px;font-weight:500;display:flex}label.toggle input{width:22px;height:22px}input:not([type]),input[type=text],input[type=search],input[type=date],textarea,select{min-height:var(--tap);border:1px solid var(--rule);background:#fff;border-radius:10px;padding:8px 12px;font-size:16px;font-weight:400}textarea{resize:vertical;width:100%}textarea.mono{font-family:var(--mono);font-size:15px;line-height:1.35}.inline-form{flex-wrap:wrap;gap:8px;display:flex}.inline-form input{flex:1;min-width:140px}.preview{background:var(--r-bg);color:var(--r-text);border-left:1px solid var(--rule);min-height:50vh}.preview-chart{padding:4px 0 24px}.detected{color:var(--ink-soft);font-size:.9rem}.warnings{background:#7a5a161a;border-radius:10px;margin:0;padding:10px 14px 10px 28px;font-size:.9rem}.preview-table{border-collapse:collapse;width:100%;font-size:.95rem}.preview-table th,.preview-table td{text-align:left;border-bottom:1px solid var(--rule);vertical-align:top;padding:8px 6px}.preview-table tr.bad{opacity:.55}.preview-table input{width:22px;height:22px}.confirm-box{border:1px solid var(--rule);background:var(--paper);border-radius:10px;gap:8px;padding:12px;display:grid}.set-entries{gap:8px;padding-left:24px;display:grid}.set-entries li{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.set-song{min-width:160px;font-family:var(--serif);flex:1;font-size:1.05rem;font-weight:600}.add-songs{gap:8px;display:grid}.screen.reader{background:var(--r-bg);height:100dvh;min-height:0;color:var(--r-text);flex-direction:column;display:flex}.reader-bar{padding:calc(env(safe-area-inset-top) + 2px) 8px 0;background:var(--r-bg);z-index:2}.reader .btn{color:var(--r-text);border-color:var(--r-hair);background:0 0}.reader .btn.primary{background:var(--r-accent);color:var(--r-bg);border-color:var(--r-accent)}.reader-bar-row{align-items:center;gap:2px;min-height:52px;display:flex}.reader-title{flex:1;min-width:0;padding:0 6px}.reader-title .t{letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis;font-size:1.15rem;font-weight:600;overflow:hidden}.reader-title .a{color:var(--r-sub);white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;overflow:hidden}.icon-btn{min-width:var(--tap);min-height:var(--tap);color:var(--r-text);cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:12px;justify-content:center;align-items:center;padding:0 6px;display:inline-flex}.icon-btn:disabled{opacity:.3}.icon-btn.accent,.text-btn.accent{color:var(--r-accent)}.icon-btn .aa{font-size:1.05rem;font-weight:600}.text-btn{min-height:var(--tap);color:var(--r-text);cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:10px;padding:0 10px;font-size:1.05rem}.text-btn.strong{font-weight:600}.text-btn{white-space:nowrap}.sheet .text-btn{color:var(--ink)}.text-btn:disabled{opacity:.35}.text-btn.hold.holding{background:var(--r-fill)}.reader-info{align-items:center;gap:6px;min-height:48px;padding:0 6px 6px;display:flex}.info-btn{min-height:var(--tap);color:var(--r-text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;flex-direction:column;align-items:flex-start;padding:0 10px;display:flex}.info-strong{font-size:1rem;font-weight:700;line-height:1.2}.info-sub{color:var(--r-sub);font-size:.8rem;line-height:1.2}.seg-text{gap:2px;margin-left:8px;display:flex}.seg-text button{min-height:var(--tap);color:var(--r-sub);cursor:pointer;background:0 0;border:0;padding:0 10px;font-size:.95rem}.seg-text button.on{color:var(--r-text);box-shadow:inset 0 -2px 0 var(--r-accent);font-weight:600}.seg-text button:disabled{opacity:.4}.spacer{flex:1}.save{color:var(--r-sub);padding:0 6px;font-size:.8rem}.save-failed{color:var(--r-text);font-weight:600;text-decoration:underline}.edit-bar{gap:6px;padding:2px 6px 8px;display:grid}.edit-hint{color:var(--r-sub);font-size:.9rem}.palette{flex-wrap:wrap;gap:6px;display:flex}.reader .chip{background:var(--r-fill);color:var(--r-text);border-color:#0000}.reader .chip.on{background:var(--r-accent);color:var(--r-bg)}.strip{height:112px;box-shadow:0 1px 0 var(--r-hair), 0 -1px 0 var(--r-hair);align-items:center;gap:4px;padding:0 4px 0 12px;display:flex}.strip-closed{height:44px;padding-left:16px}.strip-modes{flex-direction:column;flex-shrink:0;gap:2px;display:flex}.strip-modes button{min-width:72px;min-height:40px;color:var(--r-sub);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;padding:0 10px;font-size:.85rem}.strip-modes button.on{color:var(--r-text);background:var(--r-fill);font-weight:600}.strip-row{-webkit-overflow-scrolling:touch;scrollbar-width:none;flex:1;align-items:center;gap:2px;min-width:0;display:flex;overflow-x:auto}.strip-row::-webkit-scrollbar{display:none}.strip-item{color:var(--r-text);cursor:pointer;background:0 0;border:0;border-radius:10px;flex-direction:column;flex-shrink:0;align-items:center;gap:0;min-width:68px;padding:2px 6px;display:flex}.strip-item-name{color:var(--r-chord);font-size:1rem;font-weight:700;line-height:1.2}.no-diagram{width:60px;height:67px;color:var(--r-sub);text-align:center;place-items:center;font-size:.72rem;display:grid}.strip-names{flex:1;gap:18px;display:flex;overflow:hidden}.strip-name{color:var(--r-chord);font-size:1rem;font-weight:700}.strip-empty{padding-left:8px}.diagram .d-grid{stroke:var(--r-sub);stroke-width:1.4px;opacity:.8}.diagram .d-nut,.diagram .d-dot{fill:var(--r-text)}.diagram .d-open{fill:none;stroke:var(--r-text);stroke-width:2.2px}.diagram .d-mute{fill:var(--r-sub);text-anchor:middle;font-size:15px;font-weight:600}.diagram .d-base{fill:var(--r-sub);font-size:13px;font-weight:600}.notes-strip{cursor:pointer;align-items:center;height:36px;padding:0 18px;display:flex}.notes-text{color:var(--r-cue);white-space:nowrap;text-overflow:ellipsis;font-size:.95rem;font-style:italic;overflow:hidden}.reader-scroll{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;min-height:0;padding:6px max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));flex:1;position:relative;overflow-y:auto}.scroll-tail{height:60vh}.read-line{background:var(--r-accent);opacity:.6;pointer-events:none;border-radius:0 3px 3px 0;width:4px;height:36px;position:absolute;top:calc(33% + 40px);left:0}.count-in{z-index:4;background:var(--paper);width:120px;height:120px;color:var(--r-accent);border-radius:60px;place-items:center;display:grid;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);box-shadow:0 12px 40px #0000002e}.count-num{font-variant-numeric:tabular-nums;font-size:60px;font-weight:700;line-height:1}.transport{padding:6px 12px calc(env(safe-area-inset-bottom) + 6px) 14px;min-height:68px;box-shadow:0 -1px 0 var(--r-hair);background:var(--r-bg);align-items:center;gap:2px;display:flex}.run-btn{background:var(--r-accent);min-width:112px;height:52px;color:var(--r-bg);cursor:pointer;touch-action:manipulation;border:0;border-radius:26px;justify-content:center;align-items:center;gap:9px;padding:0 18px;font-size:1.05rem;font-weight:600;display:inline-flex}.run-btn.paused{background:var(--r-text)}.tempo-btn{min-height:var(--tap);color:var(--r-text);cursor:pointer;background:0 0;border:0;align-items:baseline;gap:5px;margin-left:6px;padding:0 12px;display:inline-flex}.tempo-btn .bpm{font-variant-numeric:tabular-nums;font-size:1.35rem;font-weight:600}.tempo-btn .unit,.big-bpm .unit{color:var(--r-sub);font-size:.8rem}.pace{align-items:center;display:inline-flex}.pace-val{text-align:center;min-width:44px;color:var(--r-sub);font-variant-numeric:tabular-nums;font-size:.95rem}.pop-scrim{z-index:8;background:0 0;border:0;position:fixed;inset:0}.popover{z-index:9;background:var(--paper);color:var(--ink);border-radius:18px;gap:12px;padding:18px;display:grid;position:fixed;box-shadow:0 12px 40px #0000002e}.reader .popover{background:var(--r-bg);color:var(--r-text);box-shadow:0 12px 40px #0000004d, 0 0 0 1px var(--r-hair)}.tempo-pop{left:14px;bottom:calc(env(safe-area-inset-bottom) + 80px);width:300px}.diagram-pop{text-align:center;justify-items:center;width:260px;top:24%;left:50%;transform:translate(-50%)}.diagram-pop-name{color:var(--r-chord);font-size:2rem;font-weight:700;line-height:1}.pop-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.pop-row.between{justify-content:space-between}.round-btn{background:var(--r-fill);width:48px;height:48px;color:var(--r-text);cursor:pointer;border:0;border-radius:24px;place-items:center;display:grid}.big-bpm{letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:2.6rem;font-weight:600;line-height:1}.tap-btn{background:var(--r-fill);height:60px;color:var(--r-text);cursor:pointer;touch-action:manipulation;border:0;border-radius:14px;font-size:1.05rem;font-weight:600}.scope{gap:8px;padding-top:6px;display:grid}.swatches{gap:12px;display:flex}.swatch{cursor:pointer;border:0;border-radius:18px;width:36px;height:36px}.swatch.on{box-shadow:0 0 0 3px var(--paper), 0 0 0 5px var(--ink)}.suggestion{grid-template-columns:28px 1fr;grid-template-areas:"c m""c s";align-items:center}.suggestion input{grid-area:c;width:22px;height:22px}.suggestion .row-main{grid-area:m}.suggestion .row-sub{grid-area:s}.dim-overlay{pointer-events:none;z-index:5;background:#000;transition:opacity .15s;position:fixed;inset:0}.chart{font-family:var(--sans);font-size:var(--r-lyric-px);color:var(--r-text);overflow-wrap:anywhere}.chart.editing{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.section{margin-bottom:var(--r-section-gap)}.section-label{font-size:calc(var(--r-lyric-px) * .5);text-transform:uppercase;letter-spacing:.12em;color:var(--r-sub);margin:6px 0 2px;font-weight:600}.editing .section-label{cursor:pointer;padding:6px 0;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.section-label.unlabeled{text-transform:none;letter-spacing:0;font-style:italic;font-weight:500}.line{margin:0 0 var(--r-line-gap);white-space:pre-wrap}.line.lyric{line-height:1.3}.line.lyric.has-chords{line-height:calc(var(--r-lyric-px) * 1.25 + var(--r-chord-px) * 2.6);margin-top:calc(var(--r-chord-px) * -.6);margin-bottom:calc(var(--r-line-gap) - var(--r-chord-px) * 1.1)}.section-label+.line.lyric.has-chords,.section>.line.lyric.has-chords:first-child{margin-top:calc(var(--r-chord-px) * .2)}.anchor{display:inline;position:relative}.chord-group{white-space:nowrap;line-height:1.15;font-size:var(--r-chord-px);pointer-events:none;gap:.45em;display:inline-flex;position:absolute;bottom:100%;left:0}.chord{color:var(--r-chord);font-weight:var(--r-chord-weight);letter-spacing:.01em;pointer-events:auto;cursor:pointer}.chart.editing .chord{outline:1px dashed color-mix(in srgb, var(--r-chord) 45%, transparent);cursor:pointer;border-radius:8px;margin:-6px;padding:6px}.chart.editing .chord.selected{outline:3px solid var(--r-chord);background:color-mix(in srgb, var(--r-chord) 18%, transparent);touch-action:none}.chord.flagged{text-underline-offset:3px;-webkit-text-decoration:underline dashed;text-decoration:underline dashed}.flag-mark{vertical-align:super;margin-left:1px;font-size:.75em}.line.chords-only{font-size:var(--r-chord-px);flex-wrap:wrap;gap:.4em 1.1em;padding:2px 0;line-height:1.3;display:flex}.chart.editing .line.chords-only{min-height:var(--tap);align-items:center}.line.cue{color:var(--r-cue);font-size:.85em;font-style:italic;font-weight:500}.cue-mark{font-style:normal}.line.tab,.line.raw{font-family:var(--mono);white-space:pre;margin:0 0 2px;font-size:.7em;overflow-x:auto}.line.raw{opacity:.7}.line.spacer{height:calc(var(--r-lyric-px) * .6)}.chart.editing .line.spacer{height:var(--tap);outline:1px dotted color-mix(in srgb, var(--r-text) 25%, transparent)}.chart.editing .line.lyric{cursor:text;border-radius:6px}.chart.editing .line.lyric.placing{cursor:crosshair;background:color-mix(in srgb, var(--r-chord) 6%, transparent)}.seg.empty{min-width:40%;display:inline-block}.chart.editing .seg.empty{outline:1px dotted color-mix(in srgb, var(--r-text) 30%, transparent)}.add-section{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.sheet{z-index:10;background:var(--paper);max-height:62dvh;color:var(--ink);padding-bottom:env(safe-area-inset-bottom);border-top-left-radius:18px;border-top-right-radius:18px;flex-direction:column;max-width:820px;margin:0 auto;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -8px 30px #0000002e}.sheet.compact{max-height:50dvh}.sheet .btn{background:var(--paper);color:var(--ink);border-color:var(--rule)}.sheet .btn.primary{background:var(--burgundy);color:#fff;border-color:var(--burgundy)}.sheet .chip{color:var(--ink);border-color:var(--rule);background:#fff}.sheet .chip.on{background:var(--ink);color:var(--paper)}.sheet-head{justify-content:space-between;align-items:center;padding:8px 8px 0 18px;display:flex}.sheet-title{font-size:1.15rem;font-weight:600}.sheet-body{gap:12px;padding:4px 18px 16px;display:grid;overflow-y:auto}.sheet-group{gap:8px;display:grid}.group-label{text-transform:uppercase;letter-spacing:.06em;color:var(--ink-soft);font-size:.8rem;font-weight:800}.sheet-actions{flex-wrap:wrap;gap:8px;display:flex}.stepper{flex-wrap:wrap;gap:10px;display:flex}.ctx{font-family:var(--mono);white-space:pre-wrap;background:#fff;border-radius:8px;padding:6px 10px;font-size:.95rem}.list{gap:6px;display:grid}.row{text-align:left;border:1px solid var(--rule);cursor:pointer;background:#fff;border-radius:10px;gap:2px;min-height:56px;padding:10px 14px;display:grid}.row.current{border-color:var(--burgundy);border-width:2px}.row{border-color:var(--rule)}.row:disabled{opacity:.45}.row-main{font-weight:700}.row-sub{color:var(--ink-soft);font-size:.85rem}.keyline{margin:0;font-size:1.05rem}.note-input{width:100%}.preset-row{flex-wrap:wrap;gap:8px;display:flex}.preset{cursor:pointer;border:2px solid #0000;border-radius:12px;min-height:56px;padding:0 16px;font-weight:600}.preset.on{border-color:var(--burgundy);box-shadow:0 0 0 2px var(--paper) inset}.slider{grid-template-columns:130px 1fr 56px;align-items:center;font-weight:500}.slider input{width:100%;height:var(--tap)}.slider .val{text-align:right;font-variant-numeric:tabular-nums;color:var(--ink-soft)}.colors{flex-wrap:wrap;gap:14px;display:flex}.color{align-items:center;gap:8px;font-weight:500;display:flex}.color input{border:1px solid var(--rule);background:#fff;border-radius:10px;width:44px;height:44px;padding:2px}@media (width<=600px){.reader-bar-row .btn{padding:0 10px}.slider{grid-template-columns:100px 1fr 48px}}
