:root{--bg:#f7f6f3;--surface:#fff;--surface-2:#efede8;--text:#1d1c1a;--muted:#6f6b64;--border:#e2dfd8;--accent:#3a5bd9;--accent-text:#fff;--chord:#c2410c;--chorus-bar:#3a5bd9;--danger:#c0352b;--shadow:0 8px 30px #0000001f;--radius:10px;--tabbar-h:64px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#111214;--surface:#1a1b1e;--surface-2:#26272b;--text:#ecebe8;--muted:#9b9a96;--border:#2f3034;--accent:#7b96ff;--accent-text:#0d0f17;--chord:#ffb366;--chorus-bar:#7b96ff;--danger:#ff6b5e;--shadow:0 8px 30px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark],:root[data-app-theme=dark]{--bg:#111214;--surface:#1a1b1e;--surface-2:#26272b;--text:#ecebe8;--muted:#9b9a96;--border:#2f3034;--accent:#7b96ff;--accent-text:#0d0f17;--chord:#ffb366;--chorus-bar:#7b96ff;--danger:#ff6b5e;--shadow:0 8px 30px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-app-theme=light]{--bg:#f7f6f3;--surface:#fff;--surface-2:#efede8;--text:#1d1c1a;--muted:#6f6b64;--border:#e2dfd8;--accent:#3a5bd9;--accent-text:#fff;--chord:#c2410c;--chorus-bar:#3a5bd9;--danger:#c0352b;--shadow:0 8px 30px #0000001f;--radius:10px;--tabbar-h:64px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px}a{color:inherit;text-decoration:none}h2,h3,h4{margin:0}button,select,input,textarea{font:inherit;color:inherit}button,select{background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:8px;min-height:36px;padding:7px 12px}button:hover:not(:disabled){background:var(--surface-2)}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent);font-weight:600}button.primary:hover:not(:disabled){filter:brightness(1.08);background:var(--accent)}button.danger{color:var(--danger)}button.full{width:100%;margin-top:12px}input,textarea{background:var(--surface);border:1px solid var(--border);border-radius:8px;min-width:0;padding:8px 10px}input:focus,textarea:focus,select:focus{outline:2px solid var(--accent);outline-offset:-1px}input[type=range]{accent-color:var(--accent);background:0 0;border:0;padding:0}kbd{border:1px solid var(--border);border-bottom-width:2px;border-radius:4px;padding:0 5px;font-family:ui-monospace,monospace;font-size:.85em}.muted{color:var(--muted);font-size:.9em}.grow{flex:1;min-width:0}.loading,.empty{text-align:center;color:var(--muted);padding:48px 16px}.empty a{color:var(--accent)}.shell{height:100%;display:flex}.tabs{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;flex:none;gap:4px;width:210px;padding:16px 10px;display:flex}.brand{letter-spacing:-.01em;padding:6px 12px 18px;font-size:1.2rem;font-weight:800}.tabs a{color:var(--muted);border-radius:8px;align-items:center;gap:10px;padding:10px 12px;font-weight:500;display:flex}.tabs a:hover{background:var(--surface-2)}.tabs a.on{background:var(--surface-2);color:var(--text)}.tabs .ti{text-align:center;width:20px}.content{flex:1;min-width:0;overflow-y:auto}@media (width<=720px){.shell{flex-direction:column-reverse}.tabs{border-right:0;border-top:1px solid var(--border);width:100%;padding:4px 4px calc(4px + env(safe-area-inset-bottom));flex-direction:row;justify-content:space-around}.brand{display:none}.tabs a{flex-direction:column;flex:1;gap:2px;padding:6px 16px;font-size:.75rem}.tabs .ti{font-size:1.25rem}.tabs a.on{color:var(--accent);background:0 0}}.page{max-width:880px;padding:20px 16px 40px;padding-top:calc(20px + env(safe-area-inset-top));margin:0 auto}.page.narrow{max-width:640px}.page-head{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px;display:flex}.page-head h2{letter-spacing:-.02em;font-size:1.6rem}.page-head .actions{gap:8px;margin-left:auto;display:flex}.count{color:var(--muted);vertical-align:middle;font-size:.9rem;font-weight:500}.filters{gap:8px;margin-bottom:10px;display:flex}.search{flex:1;width:100%;padding:10px 12px;font-size:1rem}.chips{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.chip{border-radius:999px;min-height:30px;padding:4px 12px;font-size:.85rem}.chip.on{background:var(--text);color:var(--bg);border-color:var(--text)}.btn-row{flex-wrap:wrap;gap:8px;margin-bottom:14px;display:flex}.list-head{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:18px 4px 6px;font-size:.8rem}.list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin:0;padding:0;list-style:none;overflow:hidden}.list li+li{border-top:1px solid var(--border)}.row{text-align:left;background:0 0;border:0;border-radius:0;align-items:center;gap:10px;width:100%;min-height:56px;padding:12px 14px;display:flex}a.row:hover,button.row:hover{background:var(--surface-2)}.row-main{flex:1;min-width:0}.row-title{white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.row-sub{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:.85rem;overflow:hidden}.key-badge{color:var(--chord);background:var(--surface-2);text-align:center;border-radius:6px;min-width:38px;padding:2px 8px;font-size:.9rem;font-weight:700}.chev{color:var(--muted);font-size:1.4rem}.added{color:var(--accent);font-weight:700}.plus{color:var(--muted);font-size:1.3rem}.picker{max-height:55vh;margin-top:10px;overflow-y:auto}.set-items .row{gap:8px;padding:8px 10px}.set-items .num{color:var(--muted);font-variant-numeric:tabular-nums;text-align:right;width:20px}.set-items .handle{color:var(--muted);cursor:grab;-webkit-user-select:none;user-select:none;letter-spacing:-3px}.set-items li.drag-over{box-shadow:inset 0 2px 0 var(--accent)}.key-select{min-height:32px;color:var(--chord);padding:4px 6px;font-weight:700}.reorder{flex-direction:column;display:flex}.reorder button{border-radius:4px;min-height:18px;padding:0 6px;font-size:.6rem}@media (width<=520px){.set-items .handle{display:none}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:14px;padding:16px}.card h3{margin-bottom:12px;font-size:1rem}.card p{margin:0 0 12px}.field{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex}.field input[type=range]{width:200px;max-width:100%}.field.check input{width:20px;height:20px;accent-color:var(--accent)}.help{margin:0;padding-left:18px;line-height:1.8}.seg-ctl{background:var(--surface-2);border-radius:9px;gap:2px;padding:2px;display:inline-flex}.seg-ctl button{min-height:30px;color:var(--muted);background:0 0;border:0;border-radius:7px;padding:5px 10px;font-size:.9rem}.seg-ctl button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #00000026}.modal-bg{z-index:50;background:#00000073;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal{background:var(--surface);width:100%;max-width:480px;max-height:90vh;box-shadow:var(--shadow);border-radius:14px;flex-direction:column;display:flex}.modal-head{justify-content:space-between;align-items:center;padding:12px 12px 0 18px;display:flex}.modal-body{padding:12px 18px 18px;overflow-y:auto}.modal .list{margin-top:12px}.inline-form{gap:8px;display:flex}.inline-form input{flex:1}.stack-form{flex-direction:column;gap:12px;display:flex}.stack-form label{color:var(--muted);flex-direction:column;gap:4px;font-size:.85rem;display:flex}.stack-form input{color:var(--text);font-size:1rem}@media (width<=520px){.modal-bg{align-items:flex-end;padding:0}.modal{padding-bottom:env(safe-area-inset-bottom);border-radius:14px 14px 0 0}}.viewer,.editor{flex-direction:column;height:100%;display:flex}.toolbar{padding:6px 8px;padding-top:calc(6px + env(safe-area-inset-top));background:var(--surface);border-bottom:1px solid var(--border);z-index:10;flex:none;align-items:center;gap:6px;display:flex;position:relative}.icon-btn{background:0 0;border:0;min-width:38px;padding:4px 8px;font-size:1.15rem}.icon-btn.active{color:var(--accent)}.toolbar>.icon-btn:first-child{padding-top:0;font-size:1.8rem;line-height:1}.tb-title{flex:1;min-width:0}.tb-song{white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden}.tb-pos{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:.75rem;overflow:hidden}.tb-group{align-items:center;gap:2px;display:flex}.tb-group button{min-width:34px;padding:4px 10px}.tb-group select{color:var(--chord);padding:4px 6px;font-weight:700}.tb-lbl{color:var(--muted);margin-right:4px;font-size:.8rem}.tb-val{text-align:center;min-width:34px;font-weight:700}.menu-wrap{position:relative}.menu{background:var(--surface);border:1px solid var(--border);width:270px;box-shadow:var(--shadow);border-radius:12px;flex-direction:column;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);right:0}.menu>button{text-align:left;background:0 0;border:0;padding:10px}.menu-row{justify-content:space-between;align-items:center;gap:8px;padding:6px 10px;display:flex}.menu-row input[type=range]{width:120px}.show-sm,.show-md{display:none!important}@media (width<=900px){.hide-md{display:none!important}.show-md{display:flex!important}}@media (width<=600px){.hide-sm{display:none!important}.show-sm{display:flex!important}}.song-scroll{-webkit-overflow-scrolling:touch;padding:20px 20px calc(80px + env(safe-area-inset-bottom));flex:1;overflow-y:auto}.sheet{max-width:900px;margin:0 auto;line-height:1.35}.sheet-head{margin-bottom:1.2em}.sheet-head h1{letter-spacing:-.02em;margin:0;font-size:1.6em;line-height:1.15}.sheet-artist{color:var(--muted);margin-top:2px;font-size:.95em}.sheet-meta{color:var(--muted);flex-wrap:wrap;gap:4px 16px;margin-top:8px;font-size:.8em;display:flex}.sheet-meta b{color:var(--chord)}.sheet-foot{color:var(--muted);margin-top:2em;font-size:.7em}.sheet.two-col .sheet-body{columns:2;column-gap:48px}@media (width<=900px){.sheet.two-col .sheet-body{columns:1}}.sec{break-inside:avoid;margin-bottom:1.1em}.sec-label{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:.25em;font-size:.72em;font-weight:800}.sec-chorus{border-left:3px solid var(--chorus-bar);padding-left:.8em}.sec-chorus .sec-label{color:var(--chorus-bar)}.sec-bridge{border-left:3px dashed var(--border);padding-left:.8em}.line{white-space:pre-wrap}.line.with-chords{white-space:pre;flex-wrap:wrap;align-items:flex-end;margin-top:.15em;display:flex}.word{align-items:flex-end;display:inline-flex}.piece{flex-direction:column;display:inline-flex}.chord{color:var(--chord);white-space:pre;padding-right:.45em;font-size:.88em;font-weight:700;line-height:1.2}.lyric{white-space:pre}.hyph{color:var(--muted)}.chord-only{flex-wrap:wrap;gap:.2em 1.2em;margin:.2em 0;display:flex}.chord-only .chord{padding:0}.line-empty{height:.8em}.line-comment{color:var(--muted);background:var(--surface-2);border-radius:5px;margin:.2em 0;padding:1px 8px;font-size:.85em;font-style:italic;display:inline-block}.line-tab{margin:0;font-family:ui-monospace,Menlo,monospace;font-size:.8em;overflow-x:auto}.orig-key{text-align:center;color:var(--muted);margin-top:24px;font-size:.8rem}.set-nav{justify-content:space-between;gap:12px;max-width:900px;margin:32px auto 0;display:flex}.set-nav button{flex:1;padding:12px}.set-nav button:last-child{text-align:right}.editor-meta{flex-wrap:wrap;gap:8px;padding:10px 12px 0;display:flex}.editor-meta label{color:var(--muted);flex-direction:column;flex:180px;gap:2px;font-size:.75rem;display:flex}.editor-meta label.sm{flex:0 90px}.editor-meta input,.editor-meta select{color:var(--text);min-height:36px;padding:6px 8px;font-size:.95rem}.editor-tools{flex:none;gap:6px;padding:10px 12px;display:flex;overflow-x:auto}.editor-tools button{white-space:nowrap;min-height:32px;padding:5px 10px;font-size:.85rem}.editor-panes{border-top:1px solid var(--border);flex:1;grid-template-columns:1fr 1fr;min-height:0;display:grid}.editor-text{resize:none;border:0;border-right:1px solid var(--border);border-radius:0;height:100%;padding:14px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;line-height:1.55}.editor-preview{padding:16px;overflow-y:auto}@media (width<=900px){.editor-panes{grid-template-columns:1fr}.editor-panes.tab-edit .editor-preview,.editor-panes.tab-preview .editor-text{display:none}}@media print{.toolbar,.set-nav,.orig-key,.tabs{display:none!important}.song-scroll{padding:0;overflow:visible}body,:root{--bg:#fff;--text:#000;--chord:#000;--muted:#444;background:#fff}}.dialog-msg{color:var(--text);margin:0;font-size:1rem;line-height:1.5}.dialog-actions{justify-content:flex-end;gap:8px;display:flex}button.danger-solid{background:var(--danger);border-color:var(--danger);color:#fff;font-weight:600}.toasts{z-index:60;left:50%;bottom:calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom,0px));pointer-events:none;flex-direction:column;align-items:center;gap:8px;width:max-content;max-width:calc(100% - 32px);display:flex;position:fixed;transform:translate(-50%)}.toast{background:var(--text);color:var(--bg);box-shadow:var(--shadow);text-align:center;border-radius:10px;padding:10px 16px;font-size:.9rem}.small{font-size:.82rem}.warn{color:var(--chord);margin:8px 12px 0}button.link{min-height:0;color:var(--accent);background:0 0;border:0;padding:0;text-decoration:underline}.web-import .chips a.chip{border:1px solid var(--border);background:var(--surface);align-items:center;display:inline-flex}.web-import .chips a.chip:hover{background:var(--surface-2)}.wi-body{flex:1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:0;display:grid}.wi-left{border-right:1px solid var(--border);flex-direction:column;gap:18px;min-width:0;padding:16px;display:flex;overflow-y:auto}.wi-right{flex-direction:column;min-width:0;min-height:0;padding-top:16px;display:flex}.wi-right>h3{padding:0 16px}.wi-step{flex-direction:column;gap:8px;display:flex}.wi-step.grow-step{flex:1;min-height:280px}.wi-step h3,.wi-right>h3{align-items:center;gap:8px;font-size:1rem;display:flex}.wi-step p{margin:0}.step{background:var(--accent);width:22px;height:22px;color:var(--accent-text);border-radius:50%;flex:none;place-items:center;font-size:.75rem;font-weight:700;display:inline-grid}.wi-paste{resize:vertical;white-space:pre;flex:1;min-height:220px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;line-height:1.5;overflow:auto}.tidy-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.wi-meta{padding-top:8px}.wi-preview{border-top:1px solid var(--border);flex:1;margin-top:12px;padding:16px;overflow-y:auto}.wi-empty{border:1px dashed var(--border);border-radius:var(--radius);color:var(--muted);text-align:center;margin:12px 16px;padding:32px 20px;line-height:1.5}@media (width<=900px){.web-import{height:auto;min-height:100%}.wi-body{display:block}.wi-left{border-right:0;overflow:visible}.wi-preview{overflow:visible}.web-import,.web-import .wi-body{overflow-y:auto}}.wi-link{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px}.warn.flush{margin:0}.bookmarklet{background:var(--accent);color:var(--accent-text);cursor:grab;border-radius:8px;padding:8px 14px;font-weight:600;display:inline-block}.results{max-height:340px;overflow-y:auto}.results .row{min-height:52px;padding:8px 10px}.select-bar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px;padding:8px 10px;display:flex}.select-bar span{min-width:120px;color:var(--muted);flex:1;font-size:.9rem}.check{border:2px solid var(--border);border-radius:6px;flex:none;place-items:center;width:22px;height:22px;font-size:.8rem;font-weight:800;display:grid}.row.picked{background:var(--surface-2)}.row.picked .check{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.pdf-choices{grid-template-columns:1fr 1fr;gap:10px;display:grid}.pdf-choice{text-align:left;border-radius:var(--radius);flex-direction:column;align-items:flex-start;gap:2px;padding:14px;display:flex}.pdf-choice b{font-size:1rem}
