:root{--bg: #0f1115;--panel: #181b22;--panel-2: #222631;--border: #2c313d;--text: #e8eaf0;--muted: #9aa3b2;--chord: #f5b942;--accent: #4f8cff;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}button,select,input{font:inherit;color:inherit}button,select{background:var(--panel-2);border:1px solid var(--border);border-radius:8px;padding:.35rem .7rem;cursor:pointer;min-height:2.25rem}button:hover{border-color:var(--muted)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.spacer{flex:1}.mono{font-variant-numeric:tabular-nums}.app{display:grid;grid-template-rows:auto 1fr auto;height:100%}.topbar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem .75rem;background:var(--panel);border-bottom:1px solid var(--border)}.song-select{font-weight:600;max-width:60vw}.group{display:inline-flex;align-items:center;gap:.25rem}.key{min-width:3.5rem;font-weight:700;color:var(--chord)}.key small{color:var(--muted);font-weight:400}.viewing-as{display:inline-flex;align-items:center;gap:.4rem;color:var(--muted);font-size:.85rem}.segmented{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}.segmented button{border:0;border-radius:0;background:transparent}.segmented button.on{background:var(--accent);color:#fff}.segmented.small button{min-height:1.8rem;padding:.15rem .5rem;font-size:.85em}.main{display:flex;min-height:0}.song-scroll{flex:1;overflow-y:auto;position:relative;padding:1rem 1rem 70vh;outline:none}.song{max-width:900px;margin:0 auto;font-size:calc(1.15rem * var(--scale, 1));line-height:1.35}.song-head h1{margin:0 0 .25rem;font-size:1.6em}.meta{display:flex;flex-wrap:wrap;gap:.4rem 1rem;color:var(--muted);font-size:.8em}.section{border-left:4px solid var(--sec);margin:1.25rem 0;padding:.3rem 0 .5rem .8rem;border-radius:0 6px 6px 0;transition:background .3s}.section.active{background:color-mix(in srgb,var(--sec) 12%,transparent)}.section-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.35rem}.section-label{all:unset;cursor:pointer;color:var(--sec);font-weight:800;font-size:.85em;letter-spacing:.06em;text-transform:uppercase}.badge{font-size:.7em;padding:.1em .55em;border-radius:999px;background:var(--panel-2);color:var(--muted)}.badge.cue{background:color-mix(in srgb,var(--sec) 28%,transparent);color:var(--text)}.add-note{min-height:0;padding:.05rem .5rem;font-size:.7em;color:var(--muted);background:transparent;border-style:dashed}.line{display:flex;flex-wrap:wrap}.seg{display:inline-flex;flex-direction:column;white-space:pre}.chord{color:var(--chord);font-weight:700;font-size:.9em;height:1.3em;line-height:1.3;padding-right:.4em}.line.no-chords .chord{display:none}.lyric-only{white-space:pre-wrap;line-height:1.55}.comment{color:var(--muted);font-style:italic;font-size:.85em}.empty{height:.8em}.notes{display:flex;flex-direction:column;gap:.45rem;margin:.25rem 0 .6rem;max-width:520px}.note{background:#fde68a;color:#3b2f00;padding:.45rem .65rem;border-radius:4px;box-shadow:0 3px 8px #0006;font-size:max(.8em,.85rem);transform:rotate(-.4deg)}.note.private{background:#ddd6fe;color:#2e1065}.note-meta{display:flex;justify-content:space-between;gap:.5rem;font-size:.85em;opacity:.75;margin-bottom:.15rem}.note-text{white-space:pre-wrap}.note button{background:#00000014;border-color:#0003;color:inherit}.note-buttons button{min-height:0;padding:0 .4rem;margin-left:.25rem}.note.editor{transform:none}.note textarea{width:100%;font:inherit;background:#fff9;border:1px solid rgba(0,0,0,.2);border-radius:4px;padding:.35rem;color:inherit;resize:vertical}.note-actions{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.35rem;align-items:center}.note .segmented button.on{background:#000000bf}.section-map{width:230px;flex-shrink:0;overflow-y:auto;border-right:1px solid var(--border);background:var(--panel);padding:.5rem;display:flex;flex-direction:column;gap:.3rem}.map-row{display:grid;grid-template-columns:1fr auto;gap:.1rem .5rem;text-align:left;border-left:4px solid var(--sec);background:var(--panel-2);padding:.4rem .55rem}.map-row.active{background:color-mix(in srgb,var(--sec) 30%,var(--panel-2));border-color:var(--sec)}.map-label{font-weight:700;color:var(--sec)}.map-bars{font-variant-numeric:tabular-nums;color:var(--muted)}.map-cue{grid-column:1 / -1;font-size:.8em;color:var(--muted)}.map-row.active .map-cue{color:var(--text)}.player{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;padding:.6rem .75rem .5rem;background:var(--panel);border-top:1px solid var(--border)}.play{width:3rem;height:3rem;border-radius:50%;background:var(--accent);border:0;color:#fff;font-size:1.2rem}.beats{display:inline-flex;gap:.3rem}.beat{width:.9rem;height:.9rem;border-radius:50%;background:var(--panel-2);border:1px solid var(--border)}.beat.on{background:var(--chord)}.beat.one.on{background:#ef4444}.status{font-variant-numeric:tabular-nums;min-width:12rem}.check{display:inline-flex;align-items:center;gap:.35rem;color:var(--muted);font-size:.9rem}.progress{position:absolute;top:-1px;left:0;right:0;height:3px}.progress div{height:100%;background:var(--accent)}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;justify-content:flex-end;z-index:10}.drawer{width:min(380px,100%);height:100%;overflow-y:auto;background:var(--panel);border-left:1px solid var(--border);padding:1rem;display:flex;flex-direction:column;gap:.6rem}.drawer header{display:flex;justify-content:space-between;align-items:center}.drawer h2{margin:0}.drawer h3{margin:.8rem 0 0;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.field{display:flex;flex-direction:column;gap:.25rem;font-size:.9rem}.field input:not([type=range]){background:var(--panel-2);border:1px solid var(--border);border-radius:8px;padding:.4rem .6rem}.hint{margin:0;font-size:.8rem;color:var(--muted)}.colors{display:grid;grid-template-columns:1fr 1fr;gap:.35rem}.color-row{display:flex;align-items:center;gap:.5rem;text-transform:capitalize;font-weight:600}.color-row input{width:2rem;height:2rem;padding:0;border:0;background:none}@media(max-width:760px){.main{flex-direction:column}.section-map{width:auto;flex-direction:row;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid var(--border);flex-shrink:0}.map-row{flex-shrink:0;min-width:8rem}.map-cue{display:none}.viewing-as>span{display:none}.status{min-width:0}}.center-page{min-height:100%;display:grid;place-items:center;padding:1rem}.card{width:min(400px,100%);background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:1.25rem;display:flex;flex-direction:column;gap:.75rem}.card h1{margin:0;font-size:1.4rem}.card .segmented button{flex:1}.field select{width:100%}.form-message{margin:0;color:#fca5a5;font-size:.9rem}.offline{font-size:.8rem;padding:.15rem .6rem;border-radius:999px;background:#78350f;color:#fde68a}.me .hint{font-size:.8em}.banner{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.4rem .75rem;background:#7f1d1d;color:#fee2e2;font-size:.9rem}.app:has(.banner){grid-template-rows:auto auto 1fr auto}.code{font-family:ui-monospace,monospace;font-size:1.1em;letter-spacing:.1em;color:var(--text)}.members{margin:0;padding-left:1.1rem;font-size:.9rem}.orphans{margin-top:1rem}.editor-modal{margin:auto;width:min(900px,100%);height:min(90vh,100%);background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:1rem;display:flex;flex-direction:column;gap:.6rem}.editor-modal header{display:flex;align-items:baseline;gap:1rem}.editor-modal h2{margin:0}.editor-modal textarea{flex:1;min-height:0;resize:none;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:.75rem;font:.95rem/1.45 ui-monospace,SFMono-Regular,Menlo,monospace}.editor-modal footer{display:flex;gap:.5rem}button.danger{color:#fca5a5;border-color:#7f1d1d}.live{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem}.live-dot{width:.6rem;height:.6rem;border-radius:50%;background:#ef4444;animation:pulse 1.5s infinite}.live-dot.following{background:#22c55e}@keyframes pulse{50%{opacity:.35}}.follow-bar{min-height:3.6rem;font-size:.95rem}.follow-bar .hint{font-size:.8rem}.topbar{padding-top:max(.5rem,env(safe-area-inset-top));padding-left:max(.75rem,env(safe-area-inset-left));padding-right:max(.75rem,env(safe-area-inset-right))}.player{padding-bottom:max(.5rem,env(safe-area-inset-bottom))}
