:root{--bg: #f4f1ec;--surface: #fffdf9;--surface-2: #f8f5f0;--border: #e4ded4;--text: #24211d;--muted: #7a7268;--accent: #8a3b2b;--accent-ink: #ffffff;--accent-soft: #f3e4df;--ok: #2f6b45;--danger: #a3302a;--shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 4px 16px rgba(40, 30, 20, .06);--radius: 10px;--font-ui: "Inter", "Noto Sans Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;--font-serif-book: "Noto Serif", "Noto Serif Hebrew", Georgia, "Times New Roman", serif;--font-sans-book: "Noto Sans", "Noto Sans Hebrew", Arial, sans-serif;color-scheme:light}:root:not([data-theme=light]){--bg: #1b1916;--surface: #24211d;--surface-2: #2c2924;--border: #3a362f;--text: #eee8df;--muted: #a69d90;--accent: #e08b72;--accent-ink: #1b1916;--accent-soft: #3d2a24;--ok: #7fc296;--danger: #f08a80;--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;height:100%}body{font-family:var(--font-ui);font-size:14px;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}[hidden]{display:none!important}.muted{color:var(--muted);font-weight:400}#app{height:100vh;height:100dvh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:16px;padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:12px;margin-right:auto}.brand-mark{width:30px;height:30px;color:var(--accent);flex:none}.brand h1{margin:0;font-size:17px;font-weight:700;letter-spacing:-.01em}.brand-tld{color:var(--accent);font-weight:600}.tagline{margin:0;color:var(--muted);font-size:12.5px}.topbar-actions{display:flex;align-items:center;gap:12px}.status{color:var(--muted);font-size:13px;white-space:nowrap}.main-tabs{display:flex;gap:2px;padding:3px;margin:0 auto;background:var(--surface-2);border:1px solid var(--border);border-radius:10px}.main-tabs button{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:7px 16px;border-radius:7px;cursor:pointer;color:var(--muted);font-weight:500;white-space:nowrap}.main-tabs button:hover{color:var(--text)}.main-tabs button[aria-selected=true]{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.main-tabs svg{width:15px;height:15px}.main-tabs .tab-cta{color:var(--accent)}.main-tabs .tab-cta[aria-selected=true]{background:var(--accent);color:var(--accent-ink)}.main-tabs .narrow-only,.main-tabs .label-short{display:none}.brand{margin-right:0;flex:1}.topbar-actions{flex:1;justify-content:flex-end}.btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:8px 14px;cursor:pointer;font-weight:500;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s,opacity .15s}.btn svg{width:16px;height:16px}.btn:hover{background:var(--surface-2)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn-primary:hover{background:var(--accent);filter:brightness(1.08)}.btn-ghost{background:transparent;border-color:transparent;color:var(--muted)}.btn-ghost:hover{background:var(--surface-2);color:var(--text)}.btn.small{padding:5px 9px;font-size:12.5px}.btn.danger:hover{color:var(--danger)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input[type=text],input[type=search],select,textarea{width:100%;border:1px solid var(--border);border-radius:8px;background:var(--surface);padding:7px 10px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}textarea{resize:vertical}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(300px,380px) minmax(280px,340px) 1fr}.panel{display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid var(--border)}.panel:last-child{border-right:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px 10px}.panel-head h2{margin:0;font-size:14px;font-weight:600}.head-actions{display:flex;gap:4px}.library{background:var(--surface)}.library-filters{padding:0 16px 12px;display:grid;gap:8px;border-bottom:1px solid var(--border)}.search{position:relative}.search svg{position:absolute;left:10px;top:50%;width:16px;height:16px;transform:translateY(-50%);color:var(--muted)}.search input{padding-left:34px}.segmented{display:flex;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:2px}.segmented button{flex:1;border:0;background:transparent;padding:5px 8px;border-radius:6px;cursor:pointer;color:var(--muted)}.segmented button[aria-checked=true]{background:var(--surface);color:var(--text);box-shadow:var(--shadow);font-weight:500}.filter-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.filter-actions{display:flex;justify-content:space-between}.tag-chips{display:flex;gap:8px;overflow-x:auto;min-width:0;padding-bottom:2px;scrollbar-width:thin;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.tag-chips[hidden]{display:none}.tag-chip{flex:none;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 14px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:999px;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap;touch-action:manipulation}.tag-chip small{color:var(--muted);font-size:12px}.tag-chip[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}.tag-chip[aria-pressed=true] small{color:inherit}@media (hover: hover) and (pointer: fine){.tag-chips{gap:6px}.tag-chip{min-height:30px;padding:0 10px;font-size:12.5px}.tag-chip small{font-size:11px}}.song-tags{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 0}.song-tags[hidden]{display:none}.cm-titles .song-tags{justify-content:center}.song-tag{font-size:11.5px;padding:1px 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent)}.song-list,.book-list{list-style:none;margin:0;padding:6px 8px 16px;overflow-y:auto;flex:1;min-height:0}.song-row{display:flex;align-items:stretch;border-radius:8px}.song-row:hover{background:var(--surface-2)}.song-open{flex:1;min-width:0;text-align:start;border:0;background:none;cursor:pointer;padding:8px;display:grid;gap:1px}.song-row-title{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.song-row-meta{color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.unverified{text-decoration:underline dotted;text-underline-offset:2px}.song-row-first{color:var(--muted);font-size:12px;font-style:italic;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-list{color:var(--muted);padding:24px 12px;text-align:center;line-height:1.5}.empty-list svg{width:1.15em;height:1.15em;vertical-align:-.22em;color:var(--accent)}.empty-list.error{color:var(--danger)}.book-panel{background:var(--surface)}.pane-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0 10px}.pane-head h2{margin:0;font-size:15px;font-weight:600}.side-pane[data-pane=songs] .pane-head{padding:6px 8px}.print-card{background:var(--accent-soft);border-color:transparent}.print-summary{font-weight:600;color:var(--text);margin:0 0 10px}.print-btn{width:100%;justify-content:center;padding:11px 14px;font-size:14.5px}.print-card .hint-box{background:var(--surface)}.tab-badge{display:inline-block;min-width:18px;padding:0 5px;margin-inline-start:2px;border-radius:9px;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:600}.side-pane{flex:1;min-height:0;overflow-y:auto;padding:8px 16px 24px}.side-pane[data-pane=songs]{padding:4px 8px 16px;display:flex;flex-direction:column}.side-pane[hidden]{display:none}.pane-actions{display:flex;justify-content:flex-end;gap:4px;padding:0 4px 4px}.book-panel .book-list{padding:0;overflow:visible}.pane-title{font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:18px 0 8px;font-weight:600}.pane-title:first-child{margin-top:6px}.field em{font-style:normal;font-weight:400}.hint-box{background:var(--accent-soft);border-radius:8px;padding:9px 11px;font-size:12.5px;line-height:1.5;margin:0 0 10px}.seg-field{margin-bottom:10px}.template-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.template-option{display:grid;justify-items:center;gap:4px;padding:6px 4px;cursor:pointer;font-size:11.5px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--muted)}.template-option[aria-checked=true]{border-color:var(--accent);color:var(--text);box-shadow:0 0 0 2px var(--accent-soft)}.tpl-thumb{position:relative;width:38px;height:52px;background:#fff;border-radius:2px;box-shadow:0 0 0 1px #0000001f;overflow:hidden;display:block}.tpl-thumb i,.tpl-thumb b,.tpl-thumb s{position:absolute;display:block}.tpl-classic i{left:12px;right:12px;top:14px;height:9px;border-radius:50%;background:#ddd}.tpl-classic b{left:8px;right:8px;top:27px;height:4px;background:#333}.tpl-classic s{left:14px;right:14px;top:34px;height:1px;background:var(--book-accent)}.tpl-framed i{inset:3px;border:1.5px solid var(--book-accent)}.tpl-framed b{left:9px;right:9px;top:22px;height:4px;background:#333}.tpl-framed s{left:15px;right:15px;top:29px;height:2px;background:var(--book-accent)}.tpl-modern i{left:0;right:0;top:0;height:12px;background:var(--book-accent)}.tpl-modern b{left:5px;width:22px;top:30px;height:5px;background:#333}.tpl-modern s{left:5px;width:2px;top:28px;height:13px;background:var(--book-accent)}.tpl-minimal i{left:5px;width:24px;top:6px;height:5px;background:#333}.tpl-minimal b{left:5px;width:14px;top:14px;height:2px;background:#999}.tpl-minimal s{left:5px;width:8px;bottom:6px;height:8px;border-radius:50%;background:var(--book-accent)}.swatches{display:flex;flex-wrap:wrap;gap:8px}.swatch{width:26px;height:26px;border-radius:50%;border:2px solid var(--surface);cursor:pointer;box-shadow:0 0 0 1px var(--border);padding:0;position:relative;overflow:hidden}.swatch[aria-pressed=true]{box-shadow:0 0 0 2px var(--text)}.swatch.custom{background:conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.swatch.custom input{opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer}.logo-box{display:flex;align-items:center;gap:12px}.logo-preview{width:72px;height:72px;border-radius:8px;border:1px dashed var(--border);background:#fff;display:grid;place-items:center;overflow:hidden;font-size:11px;flex:none}.logo-preview img{max-width:100%;max-height:100%;object-fit:contain}.logo-actions{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.logo-actions label.btn{cursor:pointer}.share-card{border:1px solid var(--border);border-radius:10px;padding:12px;margin-bottom:12px;background:var(--surface-2)}.share-card h3{margin:0 0 4px;font-size:14px}.share-card p{margin:0 0 10px;font-size:12.5px;line-height:1.5}.link-row{display:flex;gap:6px;margin-bottom:6px}.link-row input{font-size:12px;color:var(--muted);font-family:ui-monospace,monospace}.small-note{font-size:12px;line-height:1.5}.link-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.tiny{font-size:11.5px!important;margin:8px 0 0!important}.qr-block{display:flex;gap:12px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}.qr-box{width:128px;height:128px;flex:none;background:#fff;border-radius:6px;display:grid;place-items:center;overflow:hidden}.qr-box svg{width:100%;height:100%;display:block}.qr-box .muted{padding:8px;font-size:11px;text-align:center;color:#666}.qr-side{display:grid;gap:6px;font-size:12.5px;line-height:1.45;justify-items:start}.book-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px;border-radius:8px;border-top:2px solid transparent;border-bottom:2px solid transparent}.book-row:hover{background:var(--surface-2)}.book-row.dragging{opacity:.4}.book-row.drop-before{border-top-color:var(--accent)}.book-row.drop-after{border-bottom-color:var(--accent)}.grip{color:var(--muted);cursor:grab;letter-spacing:-3px;font-size:12px;-webkit-user-select:none;user-select:none}.book-num{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px;min-width:20px;text-align:end}.book-title{flex:1 1 8em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.row-actions{display:flex;gap:2px;opacity:0;transition:opacity .15s}.book-row:hover .row-actions,.book-row:focus-within .row-actions{opacity:1}.row-actions button{border:0;background:none;cursor:pointer;color:var(--muted);padding:2px 6px;border-radius:6px}.row-actions button:hover:not(:disabled){background:var(--border);color:var(--text)}.row-actions button:disabled{opacity:.3;cursor:default}.settings{border-bottom:1px solid var(--border);padding:0 16px}.settings summary{cursor:pointer;padding:12px 0;font-weight:600;list-style:none;display:flex;justify-content:space-between}.settings summary:after{content:"▾";color:var(--muted);transition:transform .15s}.settings:not([open]) summary:after{transform:rotate(-90deg)}.settings[open]{padding-bottom:14px}.field{display:grid;gap:4px;margin-bottom:10px}.field>span,.range>span{font-size:12px;color:var(--muted);font-weight:500}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.range{display:grid;gap:2px;margin-bottom:8px}.range>span{display:flex;justify-content:space-between}.range output{color:var(--text);font-variant-numeric:tabular-nums}.range input{width:100%;accent-color:var(--accent)}.check{display:flex;align-items:center;gap:8px;padding:4px 0;cursor:pointer}.check input{accent-color:var(--accent);width:15px;height:15px}.preview-panel{background:var(--bg)}.zoom{display:flex;align-items:center;gap:2px}#zoomLabel{min-width:44px;text-align:center;color:var(--muted);font-size:12.5px;cursor:pointer;font-variant-numeric:tabular-nums}.preview-scroll{flex:1;overflow:auto;padding:8px 24px 40px}.pages-scaler{margin:0 auto}.pages{transform-origin:top left;display:flex;flex-direction:column;gap:24px;width:max-content}.empty-preview{height:100%;display:grid;place-content:center;justify-items:center;gap:8px;color:var(--muted);text-align:center}.empty-preview svg{width:48px;height:48px;opacity:.5}.page{position:relative;background:#fff;color:#111;box-shadow:0 2px 8px #0000001f,0 0 0 1px #0000000a;overflow:hidden;flex:none}.page-body{overflow:hidden}.page-foot,.page-head{position:absolute;left:0;right:0;padding:0 var(--page-pad, 14mm);display:flex;align-items:baseline;gap:6px;font-family:var(--book-font);font-size:8.5pt;color:#666;line-height:1}.page-foot{bottom:6mm}.page-head{top:5mm}.page-foot.center,.page-head.center{justify-content:center}.page-foot.right,.page-head.right{justify-content:flex-end}.page-foot.left,.page-head.left{justify-content:flex-start;flex-direction:row-reverse}.page-foot .rt{font-style:italic;color:#888}.page-foot.left .rt,.page-foot.right .rt{flex:1}.page-foot.left .rt{text-align:right}.page-foot .sep{color:#bbb}.pn{font-variant-numeric:tabular-nums;color:#555}.page.blank{box-shadow:0 2px 8px #0000001f,0 0 0 1px #0000000a}.book{font-family:var(--book-font);font-size:var(--book-font-size);line-height:var(--book-line-height);color:#111}.cols{display:grid;grid-template-columns:repeat(var(--cols),1fr);column-gap:var(--col-gap);height:100%}.cols .col+.col{border-inline-start:.3pt solid #ddd;padding-inline-start:calc(var(--col-gap) / 2);margin-inline-start:calc(var(--col-gap) / -2)}.song{padding-bottom:1.1em;break-inside:avoid}.song-title{font-size:1.32em;font-weight:700;line-height:1.2;margin:0 0 .1em;padding-bottom:.15em;border-bottom:.6pt solid color-mix(in srgb,var(--book-accent) 40%,#ccc)}.song-title .cont{font-weight:400;font-size:.7em;color:#777}.song-meta{font-size:.82em;font-style:italic;color:#6b6259;margin-bottom:.35em}.song[dir=rtl] .song-meta{font-style:normal}.song .lyrics{padding-top:.3em}.line{text-align:start;white-space:pre-wrap;overflow-wrap:anywhere;padding-inline-start:1.2em;text-indent:-1.2em}.song[dir=rtl] .line{text-align:right}.song[dir=ltr] .line{text-align:left}.line.gap{height:.6em}.cover-page{padding:0!important}.cover-page .page-body{height:100%!important}.cover{height:100%;position:relative;display:flex;flex-direction:column}.cover-title{font-size:34pt;font-weight:700;line-height:1.1;margin:0;letter-spacing:-.01em}.cover-subtitle{font-size:15pt;font-style:italic;color:#4a4239}.cover-notes{font-size:11pt;color:#555;line-height:1.5}.cover-header{font-size:10pt;letter-spacing:.14em;text-transform:uppercase;color:var(--book-accent)}.cover-header:lang(he),.cover-header[dir=rtl]{letter-spacing:0}.cover-footer{font-size:9.5pt;color:#777}.cover-logo{display:block;height:auto;object-fit:contain}.cover-rule{width:30mm;height:0;border-top:1pt solid var(--book-accent)}.cover-classic{align-items:center;text-align:center;padding:16mm 14mm 14mm}.cover-classic .cover-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6mm}.cover-classic .cover-notes{margin-top:6mm}.cover-frame{align-items:center;text-align:center;margin:10mm;padding:12mm 10mm;height:calc(100% - 20mm);border:1.2pt solid var(--book-accent);outline:.5pt solid var(--book-accent);outline-offset:-3mm}.cover-frame .cover-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5mm}.cover-ornament{color:var(--book-accent);font-size:12pt}.cover-frame .cover-notes{margin-top:4mm}.cover-modern{text-align:start}.cover-modern .cover-band{background:var(--book-accent);padding:12mm 14mm 10mm}.cover-modern .cover-band .cover-header{color:#fff;opacity:.92}.cover-modern-logo{padding:14mm 14mm 0}.cover-modern-body{flex:1;display:flex;flex-direction:column;justify-content:center;gap:4mm;padding:0 14mm;position:relative}.cover-bar{width:18mm;height:2.5pt;background:var(--book-accent);margin-bottom:2mm}.cover-modern .cover-title{font-size:40pt}.cover-modern .cover-subtitle{font-style:normal;color:#555}.cover-modern-foot{padding:0 14mm 14mm;display:grid;gap:3mm;border-top:0}.cover-minimal{justify-content:space-between;padding:22mm 16mm 16mm;text-align:start}.cover-minimal .cover-title{font-size:38pt;margin:4mm 0 3mm}.cover-minimal .cover-subtitle{font-style:normal;color:#666}.cover-minimal-foot{display:grid;gap:4mm;justify-items:start;border-top:.6pt solid var(--book-accent);padding-top:6mm}.pages.booklet{gap:40px}.sheet{display:flex;position:relative;background:#fff;box-shadow:0 2px 10px #00000026}.sheet:before{content:attr(data-label);position:absolute;top:-22px;left:0;font:500 12px var(--font-ui);color:var(--muted)}.sheet:after{content:"";position:absolute;top:0;bottom:0;left:50%;border-left:1px dashed rgba(0,0,0,.15)}.sheet .page{box-shadow:none}.index-heading{font-size:20pt;margin:0 0 6mm;text-align:center;font-weight:700}.index-list{list-style:none;margin:0;padding:0;column-count:2;column-gap:10mm;font-size:.95em}.index-item{display:flex;align-items:baseline;gap:4px;break-inside:avoid;padding:.05em 0}.index-title{flex:none;max-width:85%}.index-dots{flex:1;border-bottom:1pt dotted #aaa;transform:translateY(-.25em);min-width:8px}.index-page{flex:none;font-variant-numeric:tabular-nums}.song-dialog{width:min(560px,calc(100vw - 32px));max-height:min(80vh,760px);padding:0;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 20px 60px #00000040}.song-dialog::backdrop{background:#140f0a73}.song-dialog form{display:flex;flex-direction:column;max-height:inherit}.song-dialog header{display:flex;justify-content:space-between;gap:12px;padding:18px 20px 8px}.song-dialog h3{margin:0;font-size:19px}.song-dialog header p{margin:4px 0 0;font-size:13px}.song-dialog pre{margin:0;padding:8px 20px 16px;overflow:auto;flex:1;font-family:var(--font-serif-book);font-size:15px;line-height:1.55;white-space:pre-wrap}.song-dialog footer{display:flex;justify-content:space-between;gap:8px;padding:12px 20px;border-top:1px solid var(--border)}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--text);color:var(--bg);padding:9px 16px;border-radius:999px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:50;width:max-content;max-width:calc(100vw - 32px);text-align:center}.toast.show{opacity:1;transform:translate(-50%)}@media (max-width: 1100px){.workspace{grid-template-columns:1fr}.topbar{flex-wrap:wrap}.main-tabs{order:3;width:100%;overflow-x:auto;scrollbar-width:none}.main-tabs button{flex:1 0 auto;padding:7px 10px;justify-content:center}.main-tabs .narrow-only{display:inline-flex}.panel{display:none;border-right:0}.panel.active{display:flex}.row-actions{opacity:1}}@media (max-width: 640px){.topbar{flex-wrap:wrap;padding:10px 16px;gap:10px}.tagline,.status{display:none}.main-tabs{padding:2px;gap:0}.main-tabs button{padding:7px 5px;font-size:12.5px;gap:3px}.main-tabs svg{display:none}.main-tabs .label-long{display:none}.main-tabs .label-short{display:inline}.brand h1{white-space:nowrap;font-size:19px}.preview-scroll{padding:8px 16px 32px}.brand{flex:1 1 0}.filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px}.filter-actions>*{justify-self:start}}@media (max-width: 479px){.brand-tld{display:none}}@media (max-width: 359px){.brand h1{font-size:17px}.topbar .brand{gap:6px}.topbar .brand-mark{width:22px;height:22px}.topbar .mode-toggle button{padding:6px;font-size:13px}}@media print{html,body,#app{height:auto;background:#fff}.topbar,.library,.book-panel,.panel-head,.empty-preview,.toast,.song-dialog{display:none!important}.workspace{display:block}.preview-panel{display:block!important;background:#fff}.preview-scroll{overflow:visible;padding:0}.pages-scaler{width:auto!important;height:auto!important}.pages{transform:none!important;gap:0;display:block}.page{box-shadow:none;break-after:page;page-break-after:always;margin:0}.page:last-child{break-after:auto;page-break-after:auto}.sheet{box-shadow:none;break-after:page;page-break-after:always}.sheet:last-child{break-after:auto;page-break-after:auto}.sheet .page{break-after:auto;page-break-after:auto}.sheet:before,.sheet:after{display:none}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}body.reader-mode{background:#faf8f4;color:#1d1a16;height:auto}body.reader-mode #app{height:auto;display:block}.reader{max-width:680px;margin:0 auto;padding:0 18px 60px;font-family:var(--font-serif-book)}.reader-cover{text-align:center;padding:48px 0 28px;border-bottom:2px solid var(--book-accent)}.reader-header{font:600 12px var(--font-ui);letter-spacing:.14em;text-transform:uppercase;color:var(--book-accent);margin-bottom:10px}.reader-cover h1{font-size:clamp(30px,8vw,44px);margin:0;line-height:1.1}.reader-subtitle{font-size:19px;font-style:italic;color:#555;margin:10px 0 0}.reader-notes{color:#666;margin:12px 0 0;font-size:15px}.reader-bar{position:sticky;top:0;z-index:5;display:flex;gap:8px;padding:10px 0;background:#faf8f4;border-bottom:1px solid #e6e0d6}.reader-bar input{flex:1;border:1px solid #ddd5c8;border-radius:999px;padding:9px 14px;font:15px var(--font-ui);background:#fff;color:#1d1a16}.reader-bar button{border:1px solid #ddd5c8;background:#fff;border-radius:999px;width:44px;font:600 14px var(--font-ui);color:#1d1a16;cursor:pointer}.reader-toc{margin:18px 0}.reader-toc summary{font:600 14px var(--font-ui);cursor:pointer;padding:6px 0;color:var(--book-accent)}.reader-toc ol{columns:2;column-gap:24px;padding-inline-start:22px;margin:8px 0 0;font-size:15px;line-height:1.9}.reader-toc a{color:inherit;text-decoration:none}@media (max-width: 520px){.reader-toc ol{columns:1}}.reader-song{padding:26px 0;border-top:1px solid #e6e0d6;font-size:var(--reader-size)}.reader-song h2{font-size:1.35em;margin:0;line-height:1.25}.reader-num{color:var(--book-accent);font-size:.7em;vertical-align:middle;margin-inline-end:4px;font-family:var(--font-ui)}.reader-artist{margin:4px 0 0;color:#777;font-size:.78em;font-style:italic}.reader-lyrics{white-space:pre-wrap;line-height:1.6;margin-top:12px}.reader-song[dir=rtl] .reader-lyrics,.reader-song[dir=rtl] h2{text-align:right}.reader-top{display:inline-block;margin-top:14px;font:13px var(--font-ui);color:#999;text-decoration:none}.reader-foot{text-align:center;padding-top:30px;border-top:2px solid var(--book-accent);font:14px var(--font-ui);color:#777}.reader-foot a{color:var(--book-accent)}.dialog-links{display:flex;flex-wrap:wrap;gap:2px}.suggest-dialog{width:min(600px,calc(100vw - 24px));max-height:min(90vh,900px);padding:0;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 20px 60px #00000040;font-family:var(--font-ui)}.suggest-dialog::backdrop{background:#140f0a73}.sg-body{padding:18px 20px 16px}.sg-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.sg-head h3{margin:0;font-size:18px}.sg-head p{margin:3px 0 0;font-size:13px}.sg-choices{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.sg-choice{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;cursor:pointer;font-size:13px;border:1px solid var(--border);border-radius:999px;background:var(--surface-2)}.sg-choice:has(input:checked){border-color:var(--accent);background:var(--accent-soft);color:var(--text);font-weight:500}.sg-choice input{accent-color:var(--accent);margin:0}.sg-editor input,.sg-editor textarea{margin-bottom:10px}.sg-lyrics{font-family:var(--font-serif-book);font-size:14px;line-height:1.5}.sg-hint{font-size:12.5px;color:var(--muted);margin:0 0 6px;word-break:break-all}.sg-row{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}@media (max-width: 520px){.sg-row{grid-template-columns:1fr}}.sg-more{margin:4px 0 6px;font-size:13px}.sg-more summary{cursor:pointer;color:var(--muted);padding:4px 0 8px}.sg-as{margin:4px 0 8px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}.sg-as b{color:var(--text);font-weight:600}.sg-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.sg-error{color:var(--danger);font-size:13px;min-height:1em;margin:4px 0}.sg-foot{display:flex;justify-content:flex-end;gap:8px}.sg-thanks{text-align:center;padding:24px 8px 8px}.sg-thanks h3{margin:8px 0 4px}.sg-thanks p{color:var(--muted);margin:0 0 18px}.sg-check{width:48px;height:48px;margin:0 auto;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:24px}.reader-song-foot{display:flex;flex-wrap:wrap;gap:16px;margin-top:14px}.reader-song-foot .reader-top{margin-top:0}.reader-foot p a{color:var(--book-accent)}.admin-body{height:auto;min-height:100vh}.admin-login{min-height:100vh;display:grid;place-items:center;padding:16px}.login-card{width:min(360px,100%);display:grid;gap:10px;justify-items:stretch;text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:28px 24px;box-shadow:var(--shadow)}.login-card .brand-mark{width:36px;height:36px;color:var(--accent);justify-self:center}.login-card h1{margin:0 0 8px;font-size:20px}.login-card .field{text-align:start}.back-link{font-size:13px;margin-top:4px}.admin-app{min-height:100vh;display:flex;flex-direction:column}.admin-main{width:min(900px,100%);margin:0 auto;padding:18px 16px 60px}.admin-intro{color:var(--muted);margin:0 0 14px;font-size:13.5px}.admin-list{display:grid;gap:12px}.sub-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px 16px;display:grid;gap:8px;transition:opacity .25s,transform .25s}.sub-card.leaving{opacity:0;transform:translate(20px)}.sub-card.inactive{opacity:.6}.sub-card header{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sub-card h3{margin:0;font-size:15.5px}.sub-card .muted{font-size:12.5px}.kind{font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--surface-2);border:1px solid var(--border);color:var(--muted);white-space:nowrap}.kind-new{background:var(--accent-soft);color:var(--accent);border-color:transparent}.kind-report{color:var(--danger)}.sub-card blockquote{margin:0;padding:8px 12px;border-inline-start:3px solid var(--accent);background:var(--surface-2);border-radius:6px;white-space:pre-wrap;font-size:13.5px}.diff{white-space:pre-wrap;font-family:var(--font-serif-book);font-size:14px;line-height:1.55;background:var(--surface-2);border-radius:8px;padding:10px 12px;max-height:340px;overflow:auto}.diff del{background:#c83c3233;color:inherit;text-decoration:line-through;text-decoration-color:#c83c32b3}.diff ins{background:#3ca05a40;color:inherit;text-decoration:none}.cmp{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:13px}.cmp>div{display:grid;gap:2px;min-width:0;word-break:break-all;background:var(--surface-2);padding:8px 10px;border-radius:8px}.cmp b{font-size:11.5px;color:var(--muted);font-weight:600}.edit-before summary{cursor:pointer;font-size:13px;color:var(--muted);padding:2px 0 8px}.edit-before textarea{font-family:var(--font-serif-book)}.lyrics-pre{white-space:pre-wrap;font-family:var(--font-serif-book);background:var(--surface-2);border-radius:8px;padding:10px 12px;margin:0;max-height:240px;overflow:auto}.needs{color:var(--danger);font-style:normal;font-weight:500}.card-actions{display:flex;justify-content:flex-end;gap:8px}.card-status{font-size:12.5px;font-weight:600;justify-self:end}.card-status.approved{color:var(--ok)}.card-status.rejected{color:var(--danger)}.clip{font-size:13px;color:var(--muted)}.empty-state{text-align:center;color:var(--muted);padding:40px 0}.empty-state.error{color:var(--danger)}@media (max-width: 1100px){.admin-app .main-tabs .narrow-only{display:none}}@media (max-width: 640px){.cmp{grid-template-columns:1fr}.admin-app .topbar-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}}.login-card .btn{justify-content:center}.chordline{text-indent:0;padding-inline-start:0;white-space:normal;line-height:1.15;margin-bottom:.2em}.chordline .cs{display:inline-flex;flex-direction:column;vertical-align:bottom}.chordline .ch{font-family:var(--font-ui);font-weight:700;font-size:.82em;color:var(--book-accent, #8a3b2b);line-height:1.1;padding-inline-end:.35em;white-space:nowrap;unicode-bidi:isolate}.chordline .ct{white-space:pre}.chordline.chords-only .cs{margin-inline-end:.6em}.chord-comment{font-style:italic;color:#777;font-size:.9em}.song.has-chords .lyrics{padding-top:.2em}.chord-tag{display:inline-block;font-size:10.5px;font-weight:600;padding:0 6px;border-radius:999px;background:var(--accent-soft);color:var(--accent);margin-inline-start:4px;vertical-align:1px}.chords-filter{font-size:12.5px;color:var(--muted);padding:0 4px}.key-ctl{display:inline-flex;align-items:center;gap:1px;border:1px solid var(--border);border-radius:999px;padding:0 2px;flex:none}.key-ctl button{border:0;background:none;color:var(--muted);cursor:pointer;width:20px;height:20px;border-radius:50%;font-size:13px;line-height:1}.key-ctl button:hover{background:var(--surface-2);color:var(--text)}.key-val{min-width:22px;text-align:center;font-size:11.5px;font-weight:600;color:var(--accent);cursor:pointer;font-variant-numeric:tabular-nums}.filter-actions{flex-wrap:wrap;align-items:center}.reader-bar .chords-btn{width:auto;padding:0 12px}.reader-bar .chords-btn[aria-pressed=true]{background:var(--book-accent);color:#fff;border-color:var(--book-accent)}.reader-key-row{margin-top:8px}.reader-key{display:inline-flex;align-items:center;gap:4px;font:600 12.5px var(--font-ui);color:var(--book-accent);border:1px solid #ddd5c8;border-radius:999px;padding:2px;background:#fff}.reader-key button{border:0;background:none;width:28px;height:28px;border-radius:50%;font-size:16px;color:#1d1a16;cursor:pointer}.reader-key span{min-width:48px;text-align:center}.reader-capo{margin-left:8px;font:600 12.5px var(--font-ui);color:#6b6359}.reader-chords{margin-top:12px;line-height:1.4;--book-accent: inherit}.reader-song[dir=rtl] .reader-chords{text-align:right}.sg-chords{font-family:ui-monospace,Consolas,monospace;font-size:13px}.songs-tool{display:grid;grid-template-columns:260px 1fr;gap:14px;align-items:start}.songs-pick{position:sticky;top:10px;display:grid;gap:8px}.song-results{list-style:none;margin:0;padding:0;max-height:70vh;overflow:auto;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.song-results button{width:100%;text-align:start;border:0;background:none;padding:7px 10px;cursor:pointer;display:grid;gap:1px;border-bottom:1px solid var(--border)}.song-results button:hover{background:var(--surface-2)}.song-results small{color:var(--muted);font-size:11.5px}.song-results small b{color:var(--accent);font-weight:600}.song-results .muted{padding:10px}.song-editor{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px 16px}.song-editor h2{margin:0 0 10px;font-size:18px}.song-form{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.song-form .wide,.editor-actions,.chord-preview-wrap{grid-column:1 / -1}.editor-actions{display:flex;justify-content:space-between;margin:4px 0 12px}.chord-preview-wrap{display:grid;gap:6px}.chord-preview-wrap>b{font-size:12px;color:var(--muted)}.chord-preview{background:#fff;color:#111;border-radius:8px;padding:12px 14px;font-size:14px;line-height:1.4;--book-font: var(--font-serif-book);--book-accent: #8a3b2b;max-height:420px;overflow:auto}.chord-preview[dir=rtl] .line{text-align:right}.import-tool{display:grid;gap:12px}.import-tool h3{margin:0}.import-tool p{margin:0;font-size:13px}.import-table-wrap{max-height:50vh;overflow:auto;border:1px solid var(--border);border-radius:8px}.import-table{width:100%;border-collapse:collapse;font-size:13px}.import-table th{position:sticky;top:0;background:var(--surface-2);text-align:start;padding:6px 8px;font-size:12px;color:var(--muted)}.import-table td{padding:6px 8px;border-top:1px solid var(--border);vertical-align:top}.import-table td small{display:block;color:var(--muted)}.import-table tr.skip{opacity:.45}@media (max-width: 760px){.songs-tool,.song-form{grid-template-columns:1fr}.songs-pick{position:static}}.song-count{font-size:12px;padding:0 2px}.mode-toggle{flex:none}.mode-toggle button{padding:6px 14px;font-weight:500}.mode-toggle button[aria-checked=true]{background:var(--accent);color:var(--accent-ink);box-shadow:none}body[data-mode=chords] .main-tabs,body[data-mode=chords] .topbar-actions{display:none}body[data-mode=chords] .brand{flex:0 1 auto}.chords-app{flex:1;min-height:0;display:grid;grid-template-columns:minmax(280px,340px) 1fr}.chords-app[hidden]{display:none}.cm-list{display:flex;flex-direction:column;min-height:0;background:var(--surface);border-right:1px solid var(--border)}.cm-list-head{padding:12px 12px 10px;display:grid;gap:8px;border-bottom:1px solid var(--border)}.cm-items{list-style:none;margin:0;padding:6px 8px 24px;overflow-y:auto;flex:1}.cm-item{display:flex;align-items:center;border-radius:8px;cursor:pointer;-webkit-tap-highlight-color:transparent}.cm-item:hover{background:var(--surface-2)}.cm-item:active:not(:has(.save-btn:active)){background:var(--surface-2)}.cm-open:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:8px}.cm-item.current{background:var(--accent-soft)}.cm-open{flex:1;min-width:0;border:0;background:none;text-align:start;cursor:pointer;padding:8px;display:grid;gap:1px}.cm-go{flex:none;display:grid;place-items:center;width:20px;margin-inline-end:4px;color:var(--muted);opacity:.7}.cm-go svg{width:18px;height:18px}.cm-item:hover .cm-go,.cm-item.current .cm-go{color:var(--accent);opacity:1}[dir=rtl] .cm-go svg{transform:scaleX(-1)}.cm-title{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cm-meta{color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cm-song{overflow-y:auto;min-height:0;background:var(--bg)}.cm-song-inner{max-width:860px;margin:0 auto;padding:18px 24px 60px}.cm-head{display:flex;align-items:center;gap:8px}.cm-titles{flex:1;min-width:0;text-align:center}.cm-titles h2{margin:0;font-size:24px;line-height:1.2}.cm-titles p{margin:3px 0 0;font-size:13px}.cm-pos{color:var(--muted);font-size:12px!important}.cm-nav{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:22px;line-height:1;cursor:pointer}.cm-nav:disabled{opacity:.3;cursor:default}.cm-back{display:none}.cm-tools{display:flex;flex-direction:column;align-items:center;gap:8px;margin:10px 0 12px}.cm-group{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;max-width:100%}.cm-music{gap:8px}.cm-key{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:3px}.cm-key button{width:44px;height:44px;border-radius:50%;border:0;background:var(--surface-2);color:var(--text);font-size:18px;cursor:pointer}.cm-key .cm-reset{background:none;font-size:15px;color:var(--muted)}.cm-key span{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:44px;padding:0 2px;line-height:1.1;text-align:center;white-space:nowrap}.cm-key b{font-size:16px;color:var(--accent)}.cm-key small{color:var(--muted);font-size:11.5px}.cm-ibtn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:44px;height:44px;padding:0 10px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);cursor:pointer;text-decoration:none}.cm-ibtn svg{flex:none;width:22px;height:22px}.cm-ibtn:hover{background:var(--surface-2)}.cm-ibtn:has(:focus-visible){outline:2px solid var(--accent);outline-offset:2px}.cm-toggle input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.cm-ibtn.cm-add.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.cm-toggle{gap:6px;padding:0 14px 0 10px;border:1.5px solid var(--accent);color:var(--accent);font-weight:700;font-size:14px}.cm-toggle:has(input:checked){background:var(--accent);color:var(--accent-ink)}.cm-toggle:hover:has(input:checked){background:var(--accent);filter:brightness(1.08)}.chords-off .cm-if-chords{display:none!important}.cm-inst{padding:0;color:var(--muted)}.cm-inst svg{position:absolute;inset-inline-start:10px;top:50%;transform:translateY(-50%);pointer-events:none}.cm-inst select{width:auto;height:100%;border:0;border-radius:inherit;padding:0 6px 0 36px;background:transparent;color:var(--text);font-size:14px;cursor:pointer}.cm-inst select:focus{box-shadow:none}.cm-size{display:inline-flex;gap:4px}.cm-size button{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;padding:5px 9px;cursor:pointer;font-weight:600;font-size:12.5px}.cm-actions .cm-logo:first-of-type{margin-inline-start:8px}@media (min-width: 901px){.cm-tools{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:10px 20px;margin:16px 0 14px}}@media (hover: hover) and (pointer: fine){.cm-key button{width:32px;height:32px}.cm-ibtn{min-width:40px;height:40px}}.cm-diagrams{display:flex;gap:6px;overflow-x:auto;padding:10px;margin-bottom:14px;background:#fff;border-radius:12px;border:1px solid var(--border);scrollbar-width:thin}.dg{flex:none;width:74px;height:auto;color:#222}.dg-piano{width:126px}.dg-name{font:700 10px var(--font-ui);text-anchor:middle;fill:#222}.dg-fret{font:8px var(--font-ui);fill:#666}.dg-mark{font:9px var(--font-ui);text-anchor:middle;fill:#888}.dg-line{stroke:#999;stroke-width:.8}.dg-nut{fill:#333}.dg-dot{fill:#8a3b2b}.dg-open{fill:none;stroke:#555;stroke-width:1}.dg-white{fill:#fff;stroke:#999;stroke-width:.6}.dg-black{fill:#333}.dg-key-on{stroke:#999;stroke-width:.6}.dg-root{fill:#8a3b2b}.dg-tone{fill:#d99a85}.dg-bass{fill:#6b7a99}.dg-missing{display:grid;place-content:center;text-align:center;min-height:80px;border:1px dashed #ddd;border-radius:6px;font:11px var(--font-ui);color:#888}.dg-missing .dg-name{font-weight:700;color:#222}.cm-body{--book-font: var(--font-serif-book);--book-accent: #8a3b2b;background:#fff;color:#111;border-radius:12px;padding:20px 22px;font-size:var(--cm-size, 17px);line-height:1.45;box-shadow:var(--shadow)}.cm-body[dir=rtl] .line,.cm-body[dir=rtl] .cm-plain{text-align:right}.cm-body .chordline{margin-bottom:.35em}.cm-plain{white-space:pre-wrap}.cm-nochords{font:13px var(--font-ui);color:#777;margin:0 0 12px}.cm-swipe-hint{display:none}.cm-song.slide-left .cm-song-inner{animation:cmLeft .22s ease-out}.cm-song.slide-right .cm-song-inner{animation:cmRight .22s ease-out}@keyframes cmLeft{0%{transform:translate(40px);opacity:.3}to{transform:none;opacity:1}}@keyframes cmRight{0%{transform:translate(-40px);opacity:.3}to{transform:none;opacity:1}}.chords-app{position:relative;overflow:hidden;background:var(--surface-2)}.cm-song{touch-action:pan-y pinch-zoom}.cm-list{position:relative;z-index:4}.cm-peek{position:absolute;inset:0;grid-column:-2 / -1;grid-row:1 / 2;z-index:3;overflow:hidden;background:var(--bg);pointer-events:none;visibility:hidden;transform:translate3d(100%,0,0)}.cm-peek[data-dir="-1"]{transform:translate3d(-100%,0,0)}.cm-peek.swiping{visibility:visible;will-change:transform}.cm-song.swiping{will-change:transform;box-shadow:0 0 24px #0000002e}@media (max-width: 900px){.chords-app{grid-template-columns:1fr}.chords-app .cm-song,.chords-app.song-open .cm-list{display:none}.chords-app.song-open .cm-song{display:block}.cm-back{display:inline-flex}.cm-song-inner{padding:12px 14px 50px}.cm-head{flex-wrap:wrap}.cm-back{order:-1;width:100%;justify-content:flex-start}.cm-titles h2{font-size:20px}.cm-body{padding:14px;border-radius:10px}.cm-swipe-hint{display:block;text-align:center;color:var(--muted);font-size:12px;margin-top:14px}.mode-toggle button{padding:6px 10px}}@media (max-width: 640px){.mode-toggle{order:2;margin-left:auto}}.cm-capo{display:block;font-size:10.5px;line-height:1;margin-top:1px}.cm-key small.cm-capo{font-size:10px}.cm-key small.cm-steps{color:var(--muted);font-size:12px;font-weight:600}html{-webkit-tap-highlight-color:transparent}button,a,label,select,summary{touch-action:manipulation}button,.cm-tools,.cm-head,.cm-autoscroll,.reader-bar,.tuner-dialog{-webkit-user-select:none;user-select:none}.credit{flex:none;text-align:center;font-size:11px;color:var(--muted);padding:4px 8px calc(4px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--border);background:var(--surface)}.credit a{color:inherit;font-weight:600;text-decoration:none}.credit a:hover{color:var(--accent);text-decoration:underline}.reader-foot .credit{border:0;background:none;padding:14px 0 0;font-size:11.5px}.reader-foot .credit a{color:#777}@media print{.credit{display:none!important}}.cm-list-bar{display:flex;align-items:center;gap:6px;font-size:12.5px}.cm-list-bar .muted{flex:1;min-width:0}.cm-autoscroll{position:sticky;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:2;width:max-content;margin:18px auto 0;display:flex;align-items:center;gap:4px;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:999px;box-shadow:var(--shadow)}.cm-autoscroll button{border:0;background:none;color:var(--text);cursor:pointer;border-radius:999px}.cm-play{padding:7px 14px;font-weight:600;font-size:13px}.cm-autoscroll.on .cm-play{background:var(--accent);color:var(--accent-ink)}.cm-speed{display:inline-flex;align-items:center;gap:2px;font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}.cm-speed button{width:30px;height:30px;font-size:18px;background:var(--surface-2)}.cm-speed span{min-width:58px;text-align:center}.cm-dock-back{display:none;align-items:center;gap:2px;padding:7px 12px 7px 8px;font-weight:600;font-size:13px;border-inline-end:1px solid var(--border)!important;border-radius:999px 0 0 999px!important}.cm-dock-back svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2}@media (max-width: 900px){.cm-dock-back{display:inline-flex}.cm-play,.cm-dock-back{min-height:40px}}.cm-body{position:relative}.cm-body .ch{cursor:pointer}.cm-body .ch.cm-ch-on{text-decoration:underline 2px;text-underline-offset:3px}.cm-pop{position:absolute;z-index:1;padding:8px 10px;background:#fff;color:#222;border:1px solid var(--border);border-radius:12px;box-shadow:0 6px 24px #00000038;font:12px var(--font-ui);line-height:1.2}.cm-pop .dg{display:block;width:104px}.cm-pop .dg-piano{width:168px}.cm-pop .dg-missing{width:104px}.tuner-dialog{border:0;border-radius:20px;padding:14px 14px 12px;width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;background:radial-gradient(120% 70% at 50% 0%,#2b2622,#171513 70%);color:#f3ede4;box-shadow:0 20px 60px #00000080}.tuner-dialog::backdrop{background:#0000008c}.tn-head{display:flex;align-items:center;gap:10px}.tn-head h3{margin:0;font-size:17px;letter-spacing:.02em}.tn-head .segmented{flex:1;background:#ffffff0f;border-color:#ffffff1a}.tn-head .segmented button{color:#b9afa2}.tn-head .segmented button[aria-checked=true]{background:#e08b72;color:#1b1916}.tn-close{border:0;background:#ffffff14;color:#f3ede4;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:14px}.tn-panel{position:relative;margin-top:12px;border-radius:16px;padding:6px 8px 10px;background:linear-gradient(#0f0e0d,#1d1a17);box-shadow:inset 0 2px 10px #0009;transition:box-shadow .25s}.tn-panel.ok{box-shadow:inset 0 2px 10px #0009,0 0 0 2px #4caf50,0 0 24px #4caf5059}.tn-gauge{display:block;width:100%;height:auto}.tn-ticks line{stroke:#6d655b;stroke-width:1.5;stroke-linecap:round}.tn-ticks line.major{stroke:#b9afa2;stroke-width:2.5}.tn-zone{fill:none;stroke:#4caf50;stroke-width:6;stroke-linecap:round;opacity:.55}.tn-panel.ok .tn-zone{opacity:1}.tn-sign{fill:#8c8378;font:600 18px var(--font-ui);text-anchor:middle}.tn-needle{transform-origin:120px 118px;transition:transform .15s ease-out}.tn-needle line{stroke:#e08b72;stroke-width:3;stroke-linecap:round}.tn-needle circle{fill:#e08b72}.tn-panel.ok .tn-needle line{stroke:#66bb6a}.tn-panel.ok .tn-needle circle{fill:#66bb6a}.tn-note{position:absolute;left:0;right:0;top:52%;transform:translateY(-50%);text-align:center;font:700 46px/1 var(--font-ui);color:#6d655b;pointer-events:none;transition:color .2s;text-shadow:0 0 6px #0f0e0d,0 0 12px #0f0e0d}.tn-panel.hearing .tn-note{color:#f3ede4}.tn-panel.ok .tn-note{color:#81c784}.tn-note small{font-size:18px;margin-left:2px;opacity:.7}.tn-info{margin:2px 0 0;text-align:center;min-height:1.3em;font-size:13px;color:#b9afa2}.tn-panel.ok .tn-info{color:#81c784;font-weight:600}.tn-start{width:100%;margin-top:10px}.tn-neck{margin:6px auto 0;max-width:300px}.tn-headstock{display:block;width:100%;height:auto;filter:drop-shadow(0 8px 14px rgba(0,0,0,.5))}.tn-string path{stroke:#d9d4cb;transition:stroke .15s}.tn-string path.wound{stroke:#c9b07a;stroke-dasharray:1.2 .6}.tn-string.near path{stroke:#ffb59e;filter:drop-shadow(0 0 3px rgba(224,139,114,.9))}.tn-string.ok path{stroke:#9be59f;filter:drop-shadow(0 0 4px rgba(102,187,106,.9))}.tn-string.near,.tn-string.pluck{animation:tnShake .07s linear infinite alternate}@keyframes tnShake{0%{transform:translate(-.6px)}to{transform:translate(.6px)}}.tn-peg{cursor:pointer;outline:none}.tn-shaft{fill:url(#tnChrome)}.tn-post{fill:url(#tnChrome);stroke:#555;stroke-width:.6}.tn-key{fill:url(#tnChrome);stroke:#6a6e75;stroke-width:1;transition:transform .1s;transform-box:fill-box;transform-origin:center}.tn-key-label{font:700 13px var(--font-ui);fill:#2a2622;text-anchor:middle;pointer-events:none}.tn-oct{font-size:8px;font-weight:600;fill:#555}.tn-peg:hover .tn-key,.tn-peg:focus-visible .tn-key{stroke:#e08b72;stroke-width:2}.tn-peg:active .tn-key{transform:scale(.92)}.tn-label{margin:8px 0 0;text-align:center;font-size:11.5px;color:#8c8378}@media (prefers-reduced-motion: reduce){.tn-string.near,.tn-string.pluck{animation:none}}.list-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:0 8px 8px;border-bottom:1px solid var(--border)}.list-pick{display:flex;align-items:center;gap:6px;flex:1 1 100%;min-width:0;font-size:13px;color:var(--muted)}.list-pick select,.cm-list-bar select{flex:1;min-width:0;width:auto;min-height:44px;padding:8px 10px;font-size:14px}.list-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;flex:1 1 100%}.list-actions .btn,.dialog-list-actions .btn,.cm-list-bar .btn,.list-picker .btn{min-height:44px;justify-content:center}.list-actions .btn{padding:8px 4px;min-width:0}.song-dialog footer{flex-wrap:wrap}.dialog-list-actions{display:flex;align-items:center;gap:6px;flex:1 1 100%;min-width:0}.dialog-list-actions .btn-primary{flex:1}.dialog-list-actions .btn-primary{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cm-list-name{display:inline-block;max-width:9em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}.cm-list{min-width:0}.cm-list-head{grid-template-columns:minmax(0,1fr)}.cm-list-head>*{min-width:0}.cm-list-bar{flex-wrap:wrap}.cm-list-bar .muted{flex:1 1 100%}.cm-list-bar [data-save],.cm-list-bar [data-take]{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis}.cm-list-bar [data-drop]{min-width:44px}.cm-manage{flex:none;gap:4px}.cm-manage svg{width:16px;height:16px}.dialog-list-actions #dialogLists{flex:1;min-width:0}.list-picker{width:min(420px,calc(100vw - 24px));max-width:none;padding:0;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 20px 60px #00000040;font-family:var(--font-ui)}.list-picker::backdrop{background:#140f0a73}.list-picker header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 12px 0 18px}.list-picker header .btn{min-width:44px}.list-picker h3{margin:0;font-size:17px}.list-picker-song{display:grid;gap:1px;margin:2px 18px 8px;font-size:13px;overflow-wrap:anywhere}.list-picker-items{list-style:none;margin:0;padding:4px 18px;max-height:50vh;overflow:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:2px}.list-picker-items>li,.list-picker-items .check{min-width:0}.list-picker-items .check{display:flex;align-items:center;gap:10px;min-height:48px;cursor:pointer}.list-picker-items .check input{width:22px;height:22px;flex:none;accent-color:var(--accent)}.list-picker-items .check span[dir]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-picker-now{flex:none;padding:1px 7px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:600}.list-picker-new{display:flex;gap:8px;padding:8px 18px 0}.list-picker-new input{flex:1;min-width:0;min-height:44px;font-size:16px}.list-picker-new .btn{flex:none}.list-manager-items>li{display:flex;align-items:center;gap:2px;border-radius:8px}.list-manager-items>li.now{background:var(--accent-soft)}.list-manager-pick{flex:1;min-width:0;min-height:48px;display:flex;align-items:center;gap:8px;padding:0 8px;border:0;background:none;color:var(--text);font:inherit;text-align:start;cursor:pointer}.list-manager-pick span[dir]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.list-manager-items .btn{flex:none;padding-inline:8px}.list-manager-items .btn:disabled{opacity:.35;cursor:default}.list-picker footer{display:flex;flex-direction:column-reverse;gap:8px;padding:12px 18px;border-top:1px solid var(--border);margin-top:12px}@media (max-width: 640px){.list-picker{width:100%;margin:auto 0 0;max-height:85dvh;overflow:auto;border-radius:16px 16px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}}.save-btn{position:relative;flex:none;align-self:center;display:inline-grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer}.save-btn svg{width:20px;height:20px}.save-btn.on{color:var(--accent)}.save-btn:hover{background:var(--surface-2)}.save-n,.cm-save .save-n{position:absolute;top:3px;inset-inline-end:3px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:10.5px;font-weight:700;line-height:16px;text-align:center}.cm-save.on,.dialog-list-actions #dialogLists.on{color:var(--accent)}@media (min-width: 641px){.list-pick{flex:1 1 180px;font-size:12.5px}.list-pick select,.cm-list-bar select{min-height:0;padding:5px 8px;font-size:12.5px}.list-actions{display:flex;flex-wrap:wrap;gap:2px;flex:none}.list-actions .btn,.dialog-list-actions .btn,.cm-list-bar .btn,.list-picker .btn{min-height:0}.list-actions .btn{padding:5px 9px}.song-dialog footer{flex-wrap:nowrap}.dialog-list-actions,.dialog-list-actions .btn-primary{flex:none}.dialog-list-actions .btn-primary{max-width:260px}.cm-list-bar{flex-wrap:nowrap}.cm-list-bar .muted{flex:1}.cm-list-bar [data-save],.cm-list-bar [data-take]{flex:none}.cm-list-bar [data-drop],.list-picker header .btn{min-width:0}.list-picker-items .check,.list-manager-pick{min-height:32px}.dialog-list-actions #dialogLists{flex:none}.list-picker footer{flex-direction:row;justify-content:flex-end}}@media print{.list-picker{display:none!important}}.net-status{display:inline-flex;align-items:center;gap:10px;margin-inline-start:10px;vertical-align:middle}.offline-badge,.install-btn{position:relative;display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;line-height:16px;cursor:pointer}.offline-badge:after,.install-btn:after{content:"";position:absolute;inset:-11px -5px}.offline-badge{border:0;background:var(--accent-soft);color:var(--accent)}.offline-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.install-btn{border:1px solid var(--border);background:var(--surface-2);color:var(--text)}.install-btn:active,.install-btn:hover{border-color:var(--accent);color:var(--accent)}.reader-foot .install-btn{background:none}.update-bar{position:fixed;left:12px;right:12px;bottom:calc(64px + env(safe-area-inset-bottom,0px));z-index:51;display:flex;align-items:center;gap:6px;margin:0 auto;max-width:480px;padding:4px 4px 4px 16px;border-radius:26px;font-size:14px;line-height:1.3;background:var(--text);color:var(--bg);box-shadow:var(--shadow)}.update-bar span{flex:1;min-width:0;padding:6px 0}.update-bar button{flex:none;border:0;border-radius:999px;cursor:pointer;font-weight:600;min-height:44px}.update-reload{padding:0 18px;background:var(--accent);color:var(--accent-ink)}.update-close{width:44px;background:none;color:inherit;opacity:.75;font-size:16px}.sg-offline-note{margin:0 0 12px;padding:10px 12px;border-radius:8px;font-size:14px;line-height:1.4;background:var(--accent-soft);color:var(--text)}@media (min-width: 700px){.update-bar{left:50%;right:auto;transform:translate(-50%);width:max-content;max-width:calc(100vw - 24px);font-size:13px}}@media print{.update-bar,.net-status{display:none!important}}.cm-key button:disabled{opacity:.35;cursor:default}.account-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;height:44px;padding:0 12px;border-radius:999px;cursor:pointer;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font-weight:600;font-size:13px}.account-btn svg{width:18px;height:18px;flex:none}.account-btn:hover,.account-btn:focus-visible{border-color:var(--accent);color:var(--accent)}.account-btn.signed-in{padding:0;width:44px;border:0;background:none}.acct-avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-size:15px;font-weight:700}.account-btn.sync-error .acct-avatar{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--danger)}@media (max-width: 640px){.brand{min-width:0;gap:8px}.brand-mark{width:26px;height:26px}.topbar-actions{display:none}.brand>div{min-width:0}.brand h1{overflow:hidden;text-overflow:ellipsis}.account-btn{order:2}.account-btn:not(.signed-in){padding:0 10px}}@media (max-width: 400px){.topbar{padding:10px 12px;gap:8px}.mode-toggle button{padding:6px 9px}.account-btn:not(.signed-in) span{display:none}.account-btn:not(.signed-in){width:44px;padding:0}}.account-dialog .acct-body{padding:4px 18px 8px;display:grid;gap:12px}.account-dialog .acct-body>p{margin:0;line-height:1.45;font-size:14px}.acct-google,.acct-wide{justify-content:center;width:100%;min-height:48px;font-size:15px}.acct-google{background:var(--surface);color:var(--text)}.acct-google svg{width:20px;height:20px}.acct-google.disabled{opacity:.45;pointer-events:none}.acct-or{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}.acct-or:before,.acct-or:after{content:"";flex:1;border-top:1px solid var(--border)}.acct-field{display:grid;gap:6px;font-weight:600;font-size:13px}.acct-field input{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);font-size:16px;font-weight:400}.acct-field input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}.acct-code{letter-spacing:8px;font-size:22px!important;text-align:center;font-variant-numeric:tabular-nums}.acct-row{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.acct-row .btn{min-height:44px}.acct-error{color:var(--danger);font-weight:500}.acct-error:empty{display:none}.acct-note{font-size:12.5px!important}.acct-note a{color:var(--accent);white-space:nowrap}.acct-who{overflow-wrap:anywhere}.acct-sync{display:flex;align-items:center;gap:8px}.acct-dot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--muted)}.acct-dot.ok{background:var(--ok)}.acct-dot.bad{background:var(--danger)}.acct-dot.busy{background:var(--accent);animation:acct-pulse 1s ease-in-out infinite alternate}@keyframes acct-pulse{to{opacity:.3}}@media (prefers-reduced-motion: reduce){.acct-dot.busy{animation:none}}.account-dialog footer .btn{min-height:44px;justify-content:center}@media (min-width: 641px){.account-dialog footer .btn{min-height:0}}@media (hover: hover) and (pointer: fine) and (min-width: 641px){.account-btn{height:36px;min-width:36px}.account-btn.signed-in{width:36px}.acct-avatar{width:30px;height:30px;font-size:13px}}@media print{.account-btn,.account-dialog{display:none!important}}.legal-body{height:auto;min-height:100%;display:flex;flex-direction:column;font-size:16px;line-height:1.6}.legal-bar{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--border)}.legal-brand{display:inline-flex;align-items:center;gap:8px;color:var(--accent);font-weight:700;font-size:17px;text-decoration:none}.legal-brand .brand-mark{width:22px;height:22px}.legal-back{color:var(--muted);font-size:14px;text-decoration:none;padding:8px 0}.legal-back:hover{color:var(--accent)}.legal{flex:1;width:100%;max-width:680px;margin:0 auto;padding:24px 16px 40px;overflow-wrap:break-word}.legal h1{font-size:28px;line-height:1.2;margin:0 0 4px;letter-spacing:-.01em}.legal-date{color:var(--muted);font-size:14px;margin:0 0 20px}.legal h2{font-size:18px;line-height:1.3;margin:32px 0 8px}.legal p{margin:0 0 12px}.legal ul{margin:0 0 12px;padding-left:20px}.legal li{margin-bottom:8px}.legal a{color:var(--accent)}.legal code{font-size:14px;background:var(--surface-2);border:1px solid var(--border);border-radius:4px;padding:1px 5px}.legal-card{background:var(--accent-soft);border-radius:var(--radius);padding:16px 16px 6px}.legal-card h2{margin-top:0}.legal-list{margin:0 0 12px}.legal-list dt{font-weight:600}.legal-list dd{margin:0 0 12px}.legal-body .credit{font-size:12px;padding:12px 16px}.credit .sep{margin:0 4px}@media (min-width: 720px){.legal{padding-top:40px}.legal h1{font-size:34px}}.theme-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border-radius:999px;cursor:pointer;border:1px solid var(--border);background:var(--surface-2);color:var(--text)}.theme-btn svg{width:18px;height:18px}.theme-btn:hover,.theme-btn:focus-visible{border-color:var(--accent);color:var(--accent)}.credit .theme-btn{position:relative;width:24px;height:24px;margin-inline-start:10px;vertical-align:middle;border:0;background:none;color:var(--muted)}.credit .theme-btn svg{width:16px;height:16px}.credit .theme-btn:after{content:"";position:absolute;inset:-10px}@media (hover: hover) and (pointer: fine) and (min-width: 641px){.theme-btn{width:36px;height:36px}}@media print{.theme-btn{display:none!important}}.br-filters{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.br-filters::-webkit-scrollbar{display:none}.br-filter,.br-genre,.br-chip{flex:none;display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:0 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);cursor:pointer;white-space:nowrap}.br-filter[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}.br-genre small,.br-chip small{color:var(--muted);font-size:12px}.br-page{flex:1;min-height:0;overflow-y:auto;padding:2px 12px 28px}.br-sec{margin-top:18px}.br-sec-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.br-sec-head h3{margin:0;font-size:16px;font-weight:700;letter-spacing:-.01em}.br-more{border:0;background:none;color:var(--accent);font-weight:600;min-height:40px;padding:0 2px;cursor:pointer}.br-lists{display:flex;gap:10px;overflow-x:auto;margin:0 -12px;padding:0 12px 4px;scroll-snap-type:x proximity;scrollbar-width:none}.br-lists::-webkit-scrollbar{display:none}.br-list{flex:none;width:148px;min-height:88px;padding:12px;scroll-snap-align:start;display:flex;flex-direction:column;justify-content:space-between;gap:8px;text-align:start;border:1px solid var(--border);border-radius:14px;cursor:pointer;color:var(--text);background:linear-gradient(140deg,var(--accent-soft),var(--surface-2) 75%)}.br-list.current{border-color:var(--accent)}.br-list-name{font-weight:600;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.br-list-n{color:var(--muted);font-size:12px}.br-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.br-tile{--mark: #e08b72;min-width:0;min-height:64px;padding:10px 12px 10px 14px;text-align:start;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;gap:4px;border:1px solid var(--border);border-inline-start:4px solid var(--mark);border-radius:12px;background:var(--surface-2);color:var(--text)}.br-tile:nth-child(6n+2){--mark: #d4ae55}.br-tile:nth-child(6n+3){--mark: #6fb39d}.br-tile:nth-child(6n+4){--mark: #829bd6}.br-tile:nth-child(6n+5){--mark: #bf86cc}.br-tile:nth-child(6n+6){--mark: #d98e5f}.br-tile-name{font-weight:600;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.br-tile-n{color:var(--muted);font-size:12px}.br-artists{display:grid}.br-artist{display:flex;align-items:center;gap:12px;min-height:52px;padding:6px 4px;text-align:start;border:0;border-radius:10px;background:none;color:var(--text);cursor:pointer}.br-avatar{flex:none;display:grid;place-content:center;width:38px;height:38px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-weight:700;font-size:13px}.br-artist-name{flex:1;min-width:0;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.br-artist-n{color:var(--muted);font-size:12.5px}.br-genres{display:flex;flex-wrap:wrap;gap:8px}.cm-list-bar.br-bar{flex-wrap:nowrap}.br-back{flex:none;min-height:40px;padding-inline:8px;color:var(--accent);font-weight:600}.br-col-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.br-col-title small{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em;margin-inline-end:2px}.br-col-n{flex:none!important}.br-found{display:flex;gap:6px;overflow-x:auto;min-width:0;scrollbar-width:none}.br-found::-webkit-scrollbar{display:none}@media (hover: hover){.br-tile:hover,.br-list:hover{border-color:var(--accent)}.br-artist:hover{background:var(--surface-2)}.br-genre:hover,.br-chip:hover,.br-filter:hover{border-color:var(--accent)}}@media (hover: hover) and (pointer: fine){.br-filter,.br-genre,.br-chip{min-height:30px;padding:0 11px;font-size:12.5px}.br-more,.br-back{min-height:30px}.br-artist{min-height:44px}.br-avatar{width:32px;height:32px;font-size:12px}}
