:root{color-scheme:dark;--bg:#101820;--panel:#19232d;--line:#2d3b48;--text:#edf1ed;--muted:#a7b4bf;--gold:#f0c77b;--blue:#71b8f0;--green:#ace276}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 10% 0,#24313b 0,transparent 45%),var(--bg);color:var(--text);font:15px 'DM Sans',system-ui,sans-serif}main{max-width:1400px;margin:auto;padding:32px 40px}header{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:20px}.eyebrow{font-size:11px;letter-spacing:2.4px;color:var(--gold);font-weight:700;margin:0 0 10px}h1{font:800 40px 'Manrope',system-ui;margin:0;letter-spacing:-1.6px}.subtitle{color:var(--muted);margin:7px 0 0;font-size:14px}.header-actions{display:flex;gap:10px;align-items:center}button,.button,select,input{font:inherit}button,.button{border:1px solid var(--line);border-radius:9px;padding:10px 16px;background:#22303c;color:var(--text);cursor:pointer;text-align:center;text-decoration:none;transition:background .15s,border-color .15s}button:hover,.button:hover{background:#304252;border-color:#53687b}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.primary{background:var(--gold);color:#1b2329;font-weight:700;border-color:var(--gold)}.primary:hover{background:#ffdb9d}.secondary{background:transparent}.text-button{border:0;background:transparent;color:var(--gold);padding:6px 0;font-size:13px}.icon{font-size:12px;padding:12px}.stage{background:#111920;border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:0 14px 40px #0002}.stage-top,.stage-bottom{display:flex;align-items:center;justify-content:space-between;padding:13px 20px}.stage-top{font-size:12px;letter-spacing:.4px}.stage-top>div{display:flex;gap:26px;color:var(--muted)}.stage-bottom{font-size:12px;color:var(--muted);background:#16212a}.stage-bottom span:last-child{display:flex;align-items:center;gap:6px}i.blue,i.green{display:inline-block;width:8px;height:8px;border-radius:3px;background:var(--blue);margin-right:5px}i.green{background:var(--green);margin-left:10px}canvas{display:block;width:100%;height:360px}#handBadge{font-weight:700;display:flex;align-items:center}.transport{display:flex;align-items:center;gap:10px;padding:18px 0 26px}.transport .primary{min-width:105px}.transport input{flex:1;margin:0 10px}.transport span{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}input[type=range]{accent-color:var(--gold);width:100%;cursor:pointer}input[type=checkbox]{accent-color:var(--gold);width:19px;height:19px;cursor:pointer}input[role=switch]{appearance:none;width:42px;height:24px;border-radius:20px;background:#41505d;position:relative;flex-shrink:0}input[role=switch]:before{content:'';position:absolute;background:#e9ecea;width:18px;height:18px;border-radius:50%;top:3px;left:3px;transition:transform .15s}input[role=switch]:checked{background:#9c7a3f}input[role=switch]:checked:before{transform:translateX(18px)}.workspace{display:grid;grid-template-columns:.85fr 1.15fr;gap:20px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:24px}.panel-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:20px}h2{font:700 18px 'Manrope',system-ui;margin:0}h3{font-size:16px;margin:0 0 10px}.small{font-size:12px;color:var(--muted);line-height:1.6}fieldset{border:0;padding:0;margin:0 0 20px}legend,label{font-size:13px}legend{margin-bottom:9px}.segmented{display:flex;background:#101a23;border-radius:10px;padding:4px;gap:4px}.segmented button{flex:1;border:0;background:transparent;color:var(--muted);padding:9px}.segmented button.selected{background:#344454;color:white;box-shadow:0 2px 6px #0003}.segmented button.selected[data-hand=left]{color:var(--blue)}.segmented button.selected[data-hand=right]{color:var(--green)}.control-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.control-heading strong{color:var(--gold)}.speed-presets{display:flex;gap:8px;margin:9px 0 21px}.speed-presets button{padding:5px 10px;font-size:12px;flex:1;background:transparent}.speed-presets button.selected{border-color:var(--gold);color:var(--gold)}.toggle-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:18px 0 13px}.toggle-row label span{display:block;font-size:11px;color:var(--muted);margin-top:5px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}.two-col label,#sectionForm>label,.advanced-grid label{display:flex;flex-direction:column;gap:9px;color:#d8e0e6}select,input[type=number],input[type=text],input:not([type]){width:100%;border:1px solid #3d4d5c;border-radius:7px;background:#121d26;color:var(--text);padding:9px 10px;min-width:0}label.checkline{flex-direction:row;align-items:center;font-size:12px;line-height:1.5;padding-top:15px}.save-note{font-size:11px;color:#a4bfaa;margin-top:20px}.passage-list{height:332px;overflow:auto;scrollbar-color:#4e6072 transparent;display:flex;flex-direction:column;gap:8px;padding:1px 5px 1px 1px}.passage{display:flex;align-items:center;gap:14px;text-align:left;padding:13px;border-color:var(--line);background:#16202a;flex-shrink:0}.passage .number{font-size:13px;color:#92a3b2;display:grid;place-items:center;min-width:30px;height:30px;background:#24313d;border-radius:7px}.passage .description{flex:1;min-width:0}.passage strong{display:block;font-size:13px;overflow-wrap:anywhere}.passage small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.passage.selected{border-color:#b99354;background:#302b23}.passage.selected .number{color:var(--gold);background:#4a3b27}.passage .arrow{color:var(--gold)}.passage-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:16px}.passage-actions .secondary{font-size:12px;padding:8px 10px}.advanced{margin-top:20px}.advanced summary{cursor:pointer;font-size:13px;color:#c3cfd9}.advanced-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:24px}.advanced-grid p{font-size:13px;line-height:1.65;color:var(--muted)}.track-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;font-size:12px}.track-row select{width:150px}.advanced-grid a{color:var(--gold)}footer{display:flex;justify-content:space-between;color:#8394a3;font-size:11px;padding:25px 0 5px}#notice{font-size:13px;padding:11px 14px;border:1px solid #4c4c3d;border-radius:8px;background:#302d24;color:#f0d6a7;margin-bottom:16px}#notice:empty{display:none}dialog{color:var(--text);background:var(--panel);border:1px solid #536577;border-radius:14px;width:480px;padding:26px;max-width:94vw}dialog::backdrop{background:#050b13cc;backdrop-filter:blur(3px)}#sectionForm h2{margin-bottom:22px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.danger{color:#f2b3a6;background:transparent;margin-right:auto}.flash{color:var(--gold)!important}
@media(min-width:1500px){canvas{height:420px}}@media(max-width:900px){main{padding:24px 20px}.workspace{grid-template-columns:1fr}canvas{height:310px}.settings{order:1}.passages{order:0}.passage-list{height:230px}.header-actions{flex-wrap:wrap;justify-content:flex-end}.panel-heading .small{display:none}}@media(max-width:560px){main{padding:20px 12px}h1{font-size:30px}header{align-items:flex-start}.header-actions{gap:6px}.header-actions .button,.header-actions button{font-size:11px;padding:8px}.subtitle{font-size:12px}.stage-top,.stage-bottom{padding:10px;font-size:10px}.stage-top>div{gap:10px}.stage-bottom span:last-child{font-size:9px}canvas{height:265px}.transport{flex-wrap:wrap;padding-bottom:18px}.transport input{order:2;flex-basis:70%;margin-left:0}.transport span{order:3}.transport .primary{flex:1}.panel{padding:18px}.panel-heading{gap:6px}.panel-heading h2{font-size:17px}.advanced-grid{grid-template-columns:1fr;gap:25px}.two-col{gap:10px}footer{gap:20px;line-height:1.5}#passageTitle{max-width:58%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

.song-picker{display:flex;flex-direction:column;gap:5px;max-width:min(430px,85vw)}.song-picker select{width:100%;min-width:250px}.header-actions{align-items:center;flex-wrap:wrap}#catalogDialog{width:min(900px,94vw);max-height:90vh;overflow:auto;padding:25px;background:#17232d;color:#e9eee9;border:1px solid #58656b;border-radius:16px}#catalogDialog::backdrop{background:#050d13c9}.catalog-head,.catalog-search{display:flex;gap:20px;align-items:center;justify-content:space-between}.catalog-search label{display:flex;flex-direction:column;gap:6px}.catalog-search label:first-child{flex:1}.catalog-row{display:flex;gap:18px;align-items:center;justify-content:space-between;border-top:1px solid #35434c;padding:14px 0}.catalog-row h3{margin:0 0 6px;font-size:16px}.catalog-row p{margin:0;color:#aebdc6;font-size:12px}.catalog-row>div:last-child{display:flex;align-items:center;gap:16px;flex-shrink:0}.catalog-row a{color:#a9d6f7}@media(max-width:650px){.catalog-row{align-items:flex-start;flex-direction:column}.catalog-search{align-items:stretch;flex-direction:column}}
@media(max-width:950px){header{flex-direction:column;align-items:stretch;gap:14px}.song-picker{max-width:100%;flex:1;min-width:240px}.header-actions{justify-content:flex-start}header h1{max-width:none}}
