:root{--bg:#f7f3ea;--surface:#fff;--text:#1d2433;--muted:#6b7280;--line:#e5ded0;--navy:#1f2a44;--gold:#f4c95d;--chord:#b4441c;--nns:#2f5fa7;--danger:#b42318;--radius:14px;--tap:52px;--sec-intro:#8a6d3b;--sec-verse:#2f5fa7;--sec-prechorus:#0f7b6c;--sec-chorus:#b4441c;--sec-bridge:#7a3fb0;--sec-tag:#a16207;--sec-instrumental:#5b6472;--sec-outro:#475467;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html{background:var(--bg)}body{min-height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}h1,h2,h3{margin:0;line-height:1.2}.page{max-width:760px;padding:16px 16px calc(96px + env(safe-area-inset-bottom));flex-direction:column;gap:14px;margin:0 auto;display:flex}.page-head{min-height:var(--tap);align-items:center;gap:10px;display:flex}.page-head h1{flex:1;font-size:1.9rem}.row{align-items:center;gap:10px;display:flex}.row.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.center{text-align:center}.muted{color:var(--muted)}.small{font-size:.9rem}.hint{color:var(--muted);margin:4px 0 0;font-size:.9rem}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;gap:12px;padding:16px;display:flex}.card h2{font-size:1.2rem}.empty{text-align:center;background:var(--surface);border:2px dashed var(--line);border-radius:var(--radius);padding:28px 12px}.empty h2{margin-bottom:8px}.btn{min-height:var(--tap);border:1px solid var(--line);background:var(--surface);white-space:nowrap;border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-weight:600;display:inline-flex}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.45}.btn.primary{background:var(--navy);border-color:var(--navy);color:#fff}.btn.big{min-height:64px;font-size:1.15rem}.btn.full{width:100%}.btn.small{min-height:40px;padding:0 12px}.btn.danger{color:var(--danger)}.icon-btn{background:0 0;border:none;border-radius:12px;justify-content:center;align-items:center;min-width:48px;min-height:48px;display:inline-flex}.icon-btn:disabled{opacity:.3}.icon-btn.star{color:#c9c2b4}.icon-btn.star.on{color:#e0a100}.import-buttons{grid-template-columns:1fr 1fr;gap:10px;display:grid}.toast{background:#e8f5e9;border:1px solid #b7dfba;border-radius:12px;margin:0;padding:10px 14px}.input{min-height:var(--tap);border:1px solid var(--line);background:var(--surface);border-radius:12px;width:100%;padding:10px 12px;font-size:1rem}select.input{width:auto}.field select.input{width:100%}.field{flex-direction:column;gap:6px;display:flex}.field>span,.field-title{font-size:.95rem;font-weight:600}.field-grid{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.field-grid .span-2{grid-column:span 2}@media (width>=640px){.field-grid{grid-template-columns:repeat(4,1fr)}}.search{background:var(--surface);border:1px solid var(--line);min-height:var(--tap);color:var(--muted);border-radius:12px;align-items:center;gap:8px;padding:0 12px;display:flex}.search input{min-height:48px;color:var(--text);background:0 0;border:none;outline:none;flex:1;font-size:1rem}.paste-box{min-height:40vh;font-family:ui-monospace,Menlo,monospace;font-size:.95rem}.chordpro-input{white-space:pre;min-height:55vh;font-family:ui-monospace,Menlo,monospace;font-size:.95rem;line-height:1.45;overflow-x:auto}.notes-input{min-height:70px}.small-select{max-width:150px;min-height:44px}.toggle{min-height:var(--tap);align-items:center;gap:12px;font-weight:500;display:flex}.toggle input{width:26px;height:26px}input[type=range]{flex:1;height:32px}.chips{flex-wrap:wrap;gap:8px;display:flex}.chips.scroll-x{flex-wrap:nowrap;padding-bottom:2px;overflow-x:auto}.chip{border:1px solid var(--line);background:var(--surface);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;min-height:40px;padding:0 14px;display:inline-flex}.chip.on{background:var(--navy);border-color:var(--navy);color:#fff}.segmented{background:#ebe5d8;border-radius:12px;gap:4px;padding:4px;display:flex}.segmented button{background:0 0;border:none;border-radius:9px;flex:1;min-height:44px;font-weight:600}.segmented button.on{background:var(--surface);box-shadow:0 1px 3px #0000001f}.badge,.badge-guess{background:var(--gold);color:var(--navy);border-radius:999px;margin-left:6px;padding:2px 8px;font-size:.75rem;font-style:normal}.warn-box{color:#6b4e00;background:#fff7e0;border:1px solid #f0d28a;border-radius:12px;gap:10px;padding:12px 14px;display:flex}.warn-box ul{margin:0;padding-left:18px}.action-bar{bottom:calc(76px + env(safe-area-inset-bottom));background:linear-gradient(transparent, var(--bg) 30%);justify-content:flex-end;gap:10px;padding:10px 0;display:flex;position:sticky}.action-bar .btn{flex:1}.preview-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px 16px}.song-list,.setlist-items{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.song-row,.setlist-row{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);align-items:center;min-height:68px;display:flex}.song-row-main{text-align:left;background:0 0;border:none;flex-direction:column;flex:1;gap:2px;min-width:0;padding:12px 14px;display:flex}.song-title{font-size:1.1rem;font-weight:650}.song-sub,.song-tags{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;overflow:hidden}.song-tags{font-size:.82rem}.inline-icon{vertical-align:-2px;margin-right:6px}.added-mark{color:var(--muted);white-space:nowrap;padding:0 14px}.setlist-row.dragging{z-index:2;position:relative;box-shadow:0 8px 24px #0000002e}.drag-handle{min-width:44px;color:var(--muted);touch-action:none;background:0 0;border:none;align-self:stretch}.setlist-key select{max-width:92px;min-height:44px}.person-row{border:1px solid var(--line);border-radius:12px;align-items:center;gap:6px;padding:4px;display:flex}.person-row.on{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy)}.person-pick{text-align:left;background:0 0;border:none;flex-wrap:wrap;align-items:center;gap:10px;min-height:48px;display:flex}.dot{border-radius:50%;flex:none;width:14px;height:14px;display:inline-block}.tabbar{background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);z-index:10;display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar a{min-height:60px;color:var(--muted);flex-direction:column;flex:1;align-items:center;gap:2px;padding:8px 0 6px;font-size:.8rem;font-weight:600;text-decoration:none;display:flex}.tabbar a.active{color:var(--navy)}.sheet-backdrop{z-index:50;background:#00000059;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet-panel{background:var(--surface);color:var(--text);width:100%;max-width:640px;max-height:85dvh;padding-bottom:env(safe-area-inset-bottom);border-radius:20px 20px 0 0;flex-direction:column;animation:.18s ease-out slide-up;display:flex}@keyframes slide-up{0%{opacity:.6;transform:translateY(40px)}}.sheet-head{align-items:center;padding:8px 8px 0 18px;display:flex}.sheet-head h2{flex:1;font-size:1.2rem}.sheet-body{flex-direction:column;gap:14px;padding:8px 18px 20px;display:flex;overflow-y:auto}.panel-stack,.panel-section{flex-direction:column;gap:10px;display:flex}.panel-section h3{margin-top:6px;font-size:1rem}.option-list{flex-direction:column;gap:8px;display:flex}.option{min-height:var(--tap);text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:0 16px;font-size:1.05rem}.option.on{border-color:var(--navy);background:#eef1f7;font-weight:700}.option.danger{color:var(--danger)}.stepper{justify-content:center;align-items:center;gap:16px;font-size:1.2rem;font-weight:700;display:flex}.stepper .btn{min-width:72px;font-size:1.2rem}.key-grid{grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px;display:grid}.key-btn{border:1px solid var(--line);background:var(--surface);border-radius:12px;min-height:56px;font-size:1.2rem;font-weight:700}.key-btn.original{border-style:dashed;border-color:var(--muted)}.key-btn.on{background:var(--navy);color:#fff;border-color:var(--navy)}.person-key{align-items:center;gap:10px;min-height:44px;display:flex}.song-page{--page-bg:var(--bg);--lyric-size:calc(20px * var(--text-scale,1));background:var(--page-bg);min-height:100dvh}.song-page.stage{--page-bg:#000;--bg:#000;--surface:#141414;--text:#f4f4f4;--muted:#a3a3a3;--line:#2b2b2b;--chord:#ffc94d;--nns:#7fb2ff;--sec-intro:#d6b37a;--sec-verse:#7fb2ff;--sec-prechorus:#5fd3c0;--sec-chorus:#ff9f6b;--sec-bridge:#c89bff;--sec-tag:#f4c95d;--sec-instrumental:#b0b8c4;--sec-outro:#b0b8c4;color:var(--text)}.song-page.stage .option.on{background:#1d2433}.song-top{z-index:5;padding:6px 6px 6px 2px;padding-top:max(6px, env(safe-area-inset-top));margin-top:calc(-1 * env(safe-area-inset-top));background:var(--page-bg);border-bottom:1px solid var(--line);align-items:center;gap:4px;display:flex;position:sticky;top:0}.song-top-title{flex:1;min-width:0}.song-top-title h1{white-space:nowrap;text-overflow:ellipsis;font-size:1.15rem;overflow:hidden}.song-top-title p{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:.85rem;overflow:hidden}.setlist-nav{align-items:center;font-size:.9rem;font-weight:700;display:flex}.song-body{max-width:900px;padding:12px 16px calc(110px + env(safe-area-inset-bottom));margin:0 auto}.notes-box{text-align:left;color:#5c4500;background:#fff6d6;border:1px solid #f0d28a;border-radius:12px;align-items:flex-start;gap:8px;width:100%;margin-bottom:12px;padding:10px 12px;font-size:1rem;display:flex}.stage .notes-box{color:#ffe9a8;background:#2a2208;border-color:#5c4a12}.song-toolbar{z-index:10;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);justify-content:center;gap:4px;display:flex;position:fixed;bottom:0;left:0;right:0}.song-toolbar button{max-width:120px;min-height:60px;color:var(--text);background:0 0;border:none;border-radius:12px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;display:flex}.song-toolbar button b{font-size:1.25rem;line-height:1.1}.song-toolbar button small{color:var(--muted);font-size:.72rem;font-weight:600}.song-toolbar button.on{background:var(--navy);color:#fff}.song-toolbar button.on small{color:#dfe5f2}.end-card{margin-top:32px}.sheet{font-size:var(--lyric-size);line-height:1.35}.section{border-left:4px solid var(--sec-color,var(--line));margin:0 0 1.1em;padding-left:12px}.section-intro{--sec-color:var(--sec-intro)}.section-verse{--sec-color:var(--sec-verse)}.section-prechorus{--sec-color:var(--sec-prechorus)}.section-chorus{--sec-color:var(--sec-chorus)}.section-bridge{--sec-color:var(--sec-bridge)}.section-tag{--sec-color:var(--sec-tag)}.section-instrumental,.section-tab{--sec-color:var(--sec-instrumental)}.section-outro{--sec-color:var(--sec-outro)}.section-label{text-transform:uppercase;letter-spacing:.06em;color:var(--sec-color,var(--muted));margin-bottom:.3em;font-size:.72em}.repeat-mark{text-transform:none;font-weight:500}.line,.line-chords-only{flex-wrap:wrap;align-items:flex-end;margin:0;display:flex}.line-plain{margin:0 0 .15em}.line-gap{height:.6em}.line-note{color:var(--muted);margin:.2em 0;font-size:.85em;font-style:italic}.line-note:before{content:"♪ "}.seg{white-space:pre;flex-direction:column;display:inline-flex}.seg .chord{color:var(--chord);min-height:1.25em;padding-right:.45em;font-size:.9em;font-weight:700;line-height:1.25}.line .seg:not(.has-chord):before{content:" ";min-height:1.25em;font-size:.9em;line-height:1.25}.line-chords-only .seg .lyric{display:none}.line-chords-only .seg .chord{padding-right:1em}.line-chords-only .seg:not(.has-chord){display:none}.nns{color:var(--nns)}.nns sup{font-size:.65em}.nns-small{font-size:.78em;font-weight:600}.line-tab{margin:0;font-family:ui-monospace,Menlo,monospace;font-size:.72em;line-height:1.3;overflow-x:auto}.pdf-pages{flex-direction:column;gap:12px;display:flex}.pdf-page{background:#fff;border-radius:6px;width:100%;height:auto;box-shadow:0 1px 4px #00000026}.stage .pdf-page{filter:invert()hue-rotate(180deg)}.editor{flex-direction:column;gap:16px;display:flex}.warn-box svg{flex:none;margin-top:2px}.add-person{grid-template-columns:1fr auto;gap:10px;display:grid}.add-person .name{grid-column:span 2}.add-person select.input{width:100%}.import-buttons .paste-btn{grid-column:span 2}.site-option{flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;padding:10px 16px;display:flex}.site-option small{color:var(--muted);font-size:.85rem;font-weight:400}.steps{color:var(--muted);flex-direction:column;gap:6px;margin:0;padding-left:22px;display:flex}.paste-banner{border-radius:var(--radius);background:#fff6d6;border:1px solid #f0d28a;flex-wrap:wrap;align-items:center;gap:6px;padding:10px;display:flex}.paste-banner p{width:100%;margin:0 4px}.paste-banner .btn svg{flex-shrink:0}.setup-steps li{line-height:1.45}.setup-steps .copy-script{margin-top:8px}
