:root{--bg:#111924;--panel:#18222f;--control:#212d3d;--border:#344356;--text:#f4f6f8;--muted:#9fadbf;--accent:#a82aa8;--accent-soft:#4a1d55;--brand-teal:#2fd3b5;--brand-coral:#f4795f;--danger:#f87171;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:15px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}p,h1{margin:0}button,input,.button{font:inherit;color:inherit}input{background:var(--control);border:1px solid var(--border);border-radius:8px;min-width:0;min-height:44px;padding:0 10px}button,.button{background:var(--control);border:1px solid var(--border);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:0 12px;text-decoration:none;display:inline-flex}button:disabled{opacity:.4;cursor:default}:focus-visible{outline:2px solid var(--brand-teal);outline-offset:1px}.button--primary{background:var(--accent);border-color:var(--accent);font-weight:600}.button--on{border-color:var(--accent)}.button--danger{color:var(--danger)}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row--between{flex-wrap:nowrap;justify-content:space-between}.stack{flex-direction:column;gap:10px;display:flex}.grow{flex:1;min-width:0}.push{margin-left:auto}.hint{color:var(--muted)}.hint strong{color:var(--text)}.hint--small{font-size:.85rem}.error{color:var(--danger)}.home{flex-direction:column;gap:14px;max-width:640px;margin:0 auto;padding:24px 16px;display:flex}.choreography-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.choreography-list li{background:var(--panel);border-radius:10px;align-items:center;gap:8px;padding:8px;display:flex}.choreography-list a{min-width:0;color:inherit;flex-direction:column;flex:1;padding:6px;text-decoration:none;display:flex}.choreography-list small{color:var(--muted)}.logo{-webkit-mask-composite:source-in;width:min(300px,80%);height:auto;margin:0 auto;display:block;-webkit-mask-image:linear-gradient(90deg,#0000,#000 7% 93%,#0000),linear-gradient(#0000,#000 6% 94%,#0000);mask-image:linear-gradient(90deg,#0000,#000 7% 93%,#0000),linear-gradient(#0000,#000 6% 94%,#0000);-webkit-mask-composite:source-in;mask-composite:intersect}.logo--small{width:150px}.home-title{text-align:center;line-height:0}.login{flex-direction:column;justify-content:center;gap:8px;min-height:100%;padding:20px 16px;display:flex}.login-form{width:100%;max-width:360px;margin:0 auto}.field{color:var(--muted);flex-direction:column;gap:4px;font-size:.9rem;display:flex}.field input{color:var(--text);font-size:16px}.card{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:12px}.account-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overlay{z-index:20;background:var(--bg);position:fixed;inset:0;overflow-y:auto}@media (orientation:landscape) and (height<=500px){.login{flex-direction:row;justify-content:center;align-items:center;gap:24px}.login .logo{flex-shrink:0;width:220px;margin:0}.login-form{margin:0}}.editor{min-height:100%;padding-bottom:env(safe-area-inset-bottom);flex-direction:column;display:flex}.editor-header{align-items:center;gap:8px;padding:6px 8px;display:flex}.title-input{background:0 0;border-color:#0000;width:100%;min-height:28px;padding:0 4px;font-weight:600}.save-status{color:var(--muted);padding-left:5px;font-size:.75rem;display:block}.save-status--offline,.save-status--conflict,.save-status--error{color:var(--danger)}.banner{background:#451a1a;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;display:flex}.stage{position:relative}.stage svg{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;width:100%;max-height:62dvh;display:block}.wings{fill:#ffffff0a;stroke:#ffffff40;stroke-width:.05px;stroke-dasharray:.3 .22}.stage-label--wing{fill:var(--muted);opacity:.8;font-size:.4px}.floor{fill:#1b2942;stroke:#7f1d1d;stroke-width:.1px}.stage--readonly .floor{stroke:var(--border)}.grid{stroke:#ffffff17;stroke-width:.04px}.grid--axis{stroke:#ffffff59;stroke-width:.07px}.tick,.stage-label,.dancer text{text-anchor:middle;pointer-events:none}.tick{fill:var(--muted);font-size:.45px}.stage-label{fill:var(--text);letter-spacing:.08px;font-size:.55px}.dancer{cursor:grab}.stage--readonly .dancer{cursor:default}.dancer text{font-size:.5px;font-weight:700}.dancer--off .dancer-dot{fill-opacity:.45;stroke:#fff;stroke-width:.07px;stroke-dasharray:.18 .12}.dancer text.leader-mark{fill:#fde047;font-size:.55px}.dancer-ring{fill:none;stroke:#0000;stroke-width:.13px}.dancer--selected .dancer-ring{stroke:#fde047}.dancer--partner .dancer-ring{stroke:#fde047;stroke-dasharray:.22 .16}.dancer--picking .dancer-ring{stroke:var(--accent);stroke-width:.2px}.trail circle{fill:none;stroke-width:.06px;opacity:.45}.trail line{stroke:#fff6;stroke-width:.07px}.arrow-head{fill:#fff9}.pair-line{stroke-width:.07px;stroke-dasharray:.25 .18;opacity:.5}.pair-line--active{opacity:1;stroke-width:.11px}.pair-line--cross{stroke:#f472b6}.pair-line--mirrorX{stroke:#38bdf8}.pair-line--mirrorY{stroke:#34d399}.pair-line--opposite{stroke:#fb923c}.pair-line--follow{stroke:#c4b5fd}.drag-origin{fill:#ffffff1f;stroke:#fff;stroke-width:.05px;stroke-dasharray:.16 .12}.coords{font-variant-numeric:tabular-nums;pointer-events:none;background:#000000d9;border-radius:8px;flex-direction:column;padding:6px 10px;font-size:.85rem;display:flex;position:absolute;top:4px}.coords b{color:#fde047;margin-right:8px}.coords--left{left:8px}.coords--right{right:8px}.context-bar{background:var(--panel);flex-direction:column;gap:8px;min-height:108px;padding:8px 12px;display:flex}.context-bar .row--between{flex-wrap:wrap}.context-bar .row--between>.hint{flex-basis:140px}.badge{border:1px dashed var(--muted);border-radius:10px;margin-left:8px;padding:1px 8px;font-size:.75rem;display:inline-block}.rules{flex-wrap:wrap}.context-bar--pairing{box-shadow:inset 0 2px 0 var(--accent)}.nudge{gap:4px;display:flex}.coordinate{color:var(--muted);align-items:center;gap:4px;display:flex}.coordinate input{width:68px;color:var(--text)}.chips{flex-wrap:wrap;gap:6px;display:flex}.chips--scroll{flex-wrap:nowrap;padding-bottom:4px;overflow-x:auto}.chip{white-space:nowrap;border-radius:22px;flex-direction:column;line-height:1.2}.chip small{color:var(--muted);font-size:.75rem}.chip--on{background:var(--accent-soft);border-color:var(--accent)}.chip--on small{color:var(--text)}.timeline{flex-direction:column;gap:8px;min-width:0;padding:10px 8px;display:flex}.transport{gap:4px}.transport button{padding:0 8px}.transport .clock{min-width:48px}.audio-tools{gap:6px}.audio-tools:empty{display:none}.lock--open{color:#fbbf24;border-color:#fbbf24}.panel-toggle{display:none}.button--play{min-width:52px}.clock{font-variant-numeric:tabular-nums;min-width:52px}.waveform{background:var(--panel);border-radius:8px;min-width:0;padding:4px 0;position:relative}.side-panel{border-top:1px solid var(--border);padding:10px 12px 24px}.tabs{gap:6px;margin-bottom:10px;display:flex}.tabs button{flex:1}.tabs [aria-selected=true]{border-color:var(--accent);background:var(--accent-soft)}.stepper{grid-template-columns:repeat(2,1fr) minmax(64px,auto) repeat(2,1fr);align-items:center;gap:4px;display:grid}.stepper>span{color:var(--muted);grid-column:1/-1}.stepper button{padding:0}.stepper output{text-align:center;font-variant-numeric:tabular-nums}.dancer-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.dancer-list li{border:1px solid #0000;border-radius:10px;padding:4px}.dancer-list li.is-selected{border-color:var(--accent)}.dancer-list .row{flex-wrap:nowrap;gap:6px}.dancer-list .colors{flex-wrap:wrap;margin-top:6px}.label-input{text-align:center;width:52px}.swatch{border-radius:50%;width:44px;padding:0}.swatch--on{outline:3px solid #fde047}@media (width>=900px) and (orientation:landscape) and (height>=501px){.editor{grid-template:"stage header""stage side"minmax(220px,1fr)"context side""timeline side"/minmax(0,1fr) 340px;height:100%;min-height:0;display:grid}.editor.editor--no-panel{grid-template:"stage"minmax(220px,1fr)"context""timeline"/minmax(0,1fr);position:relative}.editor--no-panel .editor-header{z-index:2;position:absolute;top:0;right:0}.editor--no-panel .editor-header .grow,.editor--no-panel .side-panel{display:none}.panel-toggle{display:inline-flex}.editor-header{border-left:1px solid var(--border);grid-area:header;gap:6px;padding:4px 8px}.editor--no-panel .editor-header{border-left:0}.banner{z-index:10;border-radius:8px;position:fixed;inset:60px 12px auto}.stage{grid-area:stage;min-height:0}.stage svg{height:100%;max-height:none;position:absolute;inset:0}.context-bar{flex-flow:wrap;grid-area:context;align-content:center;align-items:center;gap:6px 20px;height:108px;min-height:0;padding:4px 12px;overflow-y:auto}.timeline{grid-area:timeline;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"transport tools""wave wave""chips chips";gap:6px 16px;padding:6px 12px;display:grid}.transport{grid-area:transport}.audio-tools{grid-area:tools}.waveform{grid-area:wave}.chips--scroll{grid-area:chips}.side-panel{border-top:0;border-left:1px solid var(--border);grid-area:side;overflow-y:auto}}@media (orientation:landscape) and (height<=500px){.editor{grid-template:"stage header""stage context""stage timeline""stage side"1fr/minmax(0,64fr) minmax(0,36fr);display:grid}.editor-header{grid-area:header;gap:4px;padding:4px}.banner{z-index:10;border-radius:8px;position:fixed;inset:60px 12px auto}.stage{grid-area:stage;align-self:start;height:100dvh;position:sticky;top:0}.stage svg{height:100%;max-height:none;position:absolute;inset:0}.context-bar{grid-area:context;min-height:0;padding:6px}.timeline{grid-area:timeline;padding:6px}.side-panel{grid-area:side}}.editor.editor--expanded{z-index:5;background:var(--bg);flex-direction:column;height:auto;min-height:0;display:flex;position:fixed;inset:0}.editor--expanded .editor-header,.editor--expanded .context-bar,.editor--expanded .side-panel,.editor--expanded .audio-tools,.editor--expanded .waveform{display:none}.editor--expanded .stage{flex:1;align-self:stretch;height:auto;min-height:0;position:relative;top:0}.editor--expanded .stage svg{width:100%;height:100%;max-height:none;position:absolute;inset:0}.editor--expanded .timeline{flex-direction:column;gap:4px;padding:4px 8px;display:flex}.rotate-hint{text-align:center;color:var(--muted);font-size:.85rem;display:none}@media (orientation:portrait) and (width<=600px){.rotate-hint{display:block}}@media (orientation:landscape) and (height<=500px){.editor.editor--expanded{flex-direction:row}.editor--expanded .timeline{width:150px;overflow-y:auto}.editor--expanded .transport{justify-content:center}.editor--expanded .transport .push{margin-left:0}.editor--expanded .chips--scroll{flex-direction:column;flex-shrink:0;padding:0;overflow:visible}.editor--expanded .chip{min-height:44px}}
