:root{color-scheme:dark;--pink:#ef469b;--deep:#1d1c26;--line:#302e38;--muted:#898793}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;min-height:100vh;background:#050505;color:#eee;font-family:Arial,Helvetica,sans-serif;display:grid;place-items:center}button{font:inherit;color:inherit;border:0;cursor:pointer}.remote{position:relative;width:100%;max-width:430px;min-height:100vh;overflow:hidden;background:var(--deep);box-shadow:0 0 40px #000}
/* Main remote */.performance-screen{display:flex;flex-direction:column}.performance-header{height:92px;flex:0 0 92px;display:grid;place-items:center;position:relative;background:#1a1921;border-bottom:1px solid #272631;text-align:center}.performance-header h1{margin:0;font-size:28px;letter-spacing:-.04em}.performance-header p{margin:8px 0 0;color:#adabb6;font-size:19px}.device-badge{position:absolute;right:7px;top:20px;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--pink);box-shadow:0 0 17px rgba(239,70,155,.25);font-size:11px}.wave-panel{height:420px;flex:0 0 420px;position:relative;background:#111}.toy-line{position:absolute;z-index:1;top:16px;left:29px;display:flex;gap:6px;align-items:center;font-size:15px}.toy-line strong{font-weight:500}.toy-line #battery-indicator{color:#31bb62;font-size:11px}.toy-line #connection-status{margin-left:4px;color:#807e88;font-size:10px}.toy-line #connection-status[data-state="online"]{color:#54c77d}.toy-line #connection-status[data-state="offline"]{color:#ffc15c}.toy-line #connection-status[data-state="error"]{color:#ff6371}.wave-panel canvas{width:100%;height:100%;display:block;cursor:default}.connection-bar{height:71px;display:grid;justify-items:center;align-content:center;gap:11px;background:#21202a;border-top:1px solid #2b2933;border-bottom:1px solid #2b2933;color:#c7c5cc;font-size:18px}.connection-bar i{width:51px;height:5px;border-radius:8px;background:#888691}.editor-panel{position:relative;flex:1;min-height:630px;background:#1e1d27;overflow:hidden}.editor-panel #control-canvas{position:absolute;inset:0 83px 0 0;width:calc(100% - 83px);height:100%;display:block;touch-action:none;cursor:crosshair}.scale{position:absolute;z-index:1;left:0;top:64px;bottom:48px;width:62px;display:flex;flex-direction:column;justify-content:space-between;color:#565461;font-size:13px;pointer-events:none}.scale span{padding-left:25px}.scale span:before{content:"";position:absolute;left:0;width:19px;border-top:1px solid #34323d;transform:translateY(7px)}.editor-copy{position:absolute;z-index:1;left:25px;top:19px;color:#8c8995;font-size:11px;pointer-events:none}.editor-copy #loop-duration{display:block;margin-top:5px;color:#e160a5}.mode-rail{position:absolute;z-index:2;right:0;top:39px;bottom:28px;width:83px;border-left:1px solid #2c2b35;display:flex;flex-direction:column;justify-content:space-between}.mode{width:82px;background:transparent;color:#a19fa9;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px}.mode i{position:relative;width:48px;height:48px;border:3px solid currentColor;border-radius:50%;opacity:.8}.mode.selected{color:#f1eff4}.mode.selected i{color:#f1eff4}.icon-loop:after{content:"↻";position:absolute;inset:-4px;text-align:center;font-size:50px;line-height:47px}.icon-float:before,.icon-float:after{content:"";position:absolute;top:19px;width:7px;height:7px;border-radius:50%;background:currentColor}.icon-float:before{left:-6px}.icon-float:after{right:-6px}.icon-traditional:before{content:"↕";position:absolute;inset:2px;text-align:center;font-size:37px;line-height:37px}.icon-sync:before{content:"⌘";position:absolute;inset:-2px;text-align:center;font-size:48px;line-height:45px}.icon-record:before{content:"";position:absolute;inset:9px;border-radius:50%;background:currentColor}.lush-button{position:absolute;z-index:3;left:50%;bottom:28px;translate:-50%;width:101px;height:101px;border-radius:50%;background:var(--pink);border:2px solid #ff74ba;box-shadow:0 0 0 8px rgba(239,70,155,.09),0 0 25px 5px rgba(239,70,155,.36);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1;font-size:17px;transition:transform .15s,filter .15s,left .17s ease,top .17s ease,bottom .17s ease}.lush-button.following{transition:none}.lush-button:active{transform:scale(.93)}.lush-button.inactive{filter:grayscale(.45) brightness(.78);box-shadow:0 0 0 7px rgba(239,70,155,.04)}.waves{font-size:42px;height:34px;margin-top:-7px;font-weight:bold;line-height:1}#toast{position:absolute;z-index:5;bottom:24px;left:50%;translate:-50% 15px;opacity:0;background:#393640;color:white;padding:9px 13px;border-radius:16px;white-space:nowrap;font-size:12px;pointer-events:none;transition:.2s}#toast.show{opacity:1;translate:-50% 0}
/* Dedicated setup, accessible only by direct URL */.setup-screen{background:linear-gradient(150deg,#171717,#101010 47%,#1b1218);overflow-y:auto}.topbar{height:58px;background:#101010;display:grid;grid-template-columns:48px 1fr 48px;align-items:center}.icon-button{height:48px;background:transparent;color:#d0d0d0;font-size:35px;line-height:1}.back-link{display:grid;place-items:center;text-decoration:none;padding-bottom:7px}.top-spacer{display:block;width:48px;height:48px}.device-title{text-align:center;line-height:1;padding-top:3px;color:#dadada;font-size:14px}.device-title strong{font-size:15px}.device-title small{display:block;margin-top:5px;color:#a6a6a6;font-size:9px}.setup-intro{padding:34px 25px 23px}.eyebrow{color:#ff68af;font-size:10px;font-weight:bold;letter-spacing:.16em}.setup-intro h1{margin:10px 0 12px;font-size:28px;line-height:1.07;letter-spacing:-.04em}.setup-intro p{margin:0;max-width:315px;color:#aaa;font-size:12px;line-height:1.5}.setup-card{margin:0 16px;padding:17px;border:1px solid #3b3037;border-radius:16px;background:rgba(40,31,37,.76)}.step{display:flex;align-items:flex-start;gap:11px}.step>span{display:grid;flex:0 0 23px;height:23px;place-items:center;border-radius:50%;background:#5a2344;color:#ff9ccc;font-size:11px;font-weight:bold}.step strong,.step small{display:block}.step strong{font-size:12px}.step small{margin-top:3px;color:#aaa;font-size:10px;line-height:1.35}.setup-action{width:100%;margin:14px 0 19px;border-radius:7px;padding:10px;font-size:12px}.dialog-primary{background:var(--pink);color:#fff}.dialog-secondary{background:#333;color:#eee}.pairing-qr{width:180px;height:180px;display:block;margin:-4px auto 12px;border-radius:8px;background:#fff}.pairing-code{display:block;overflow-wrap:anywhere;color:#bbb;text-align:center;font-size:10px;margin:-5px 0 19px}.setup-status{margin:14px 0 0 34px;color:#909090;font-size:11px}.setup-status.connected{color:#77d894}.manual-pairing{margin:17px 16px 0;border:1px solid #383838;border-radius:12px;padding:12px;background:#1b1b1b;color:#aaa;font-size:11px}.manual-pairing summary{cursor:pointer}.manual-pairing textarea{width:100%;margin-top:12px;resize:vertical;border:1px solid #444;border-radius:7px;padding:8px;background:#111;color:#e7e7e7;font:11px/1.35 monospace}.manual-pairing .setup-action{margin:9px 0 0}.forget-button{margin:17px auto 28px;display:block;background:transparent;color:#a37b90;font-size:11px;text-decoration:underline}.setup-screen #toast{bottom:24px}@media(min-width:431px){body{background:radial-gradient(circle at top,#292929,#050505 70%)}.remote{min-height:780px}}
/* Phone viewport proportions match the supplied 720×1536 remote screen. */
.performance-screen{height:100dvh;min-height:0}.performance-screen .wave-panel{height:min(59vw,420px);flex:0 0 min(59vw,420px)}.performance-screen .connection-bar{height:min(58px,10vw);flex:0 0 min(58px,10vw)}.performance-screen .editor-panel{min-height:0}
/* Traditional replaces the recording pad with a vertical slider. */
.traditional-pad{display:none}.editor-panel.traditional #control-canvas,.editor-panel.traditional .scale,.editor-panel.traditional .editor-copy{display:none}.editor-panel.traditional .traditional-pad{display:block;position:absolute;inset:0 83px 0 0;touch-action:none}.traditional-pad #traditional-value{position:absolute;top:32px;left:50%;translate:-50%;color:#a2a0aa;font-size:18px}.slider-track{position:absolute;top:126px;bottom:72px;left:50%;translate:-50%;width:20px;border-radius:20px;background:#383741}.editor-panel.traditional .lush-button{box-shadow:0 0 0 7px rgba(239,70,155,.08),0 0 22px 4px rgba(239,70,155,.28)}
.performance-screen .mode-rail{justify-content:flex-start;gap:55px}
.stop-control{justify-self:center;display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;color:#b3b1ba;font-size:10px}.stop-control i{width:17px;height:17px;border:2px solid currentColor;border-radius:3px;position:relative}.stop-control i:after{content:"";position:absolute;inset:4px;background:currentColor}.stop-control:active{color:#ef469b}.performance-screen .lush-button{width:68px;height:68px;font-size:12px;pointer-events:none}.performance-screen .lush-button .waves{font-size:30px;height:26px}
/* Scale vertically for short Android browser viewports without clipping the mode rail. */
.performance-screen .performance-header{height:clamp(64px,10dvh,92px);flex-basis:clamp(64px,10dvh,92px)}
.performance-screen .wave-panel{height:clamp(165px,32dvh,min(59vw,420px));flex-basis:clamp(165px,32dvh,min(59vw,420px))}
.performance-screen .connection-bar{height:clamp(38px,6.4dvh,43px);flex-basis:clamp(38px,6.4dvh,43px)}
.performance-screen .mode-rail{top:clamp(18px,4dvh,39px);bottom:clamp(16px,3dvh,28px);gap:clamp(14px,6dvh,55px)}
.performance-screen .mode{width:83px;font-size:clamp(10px,1.7dvh,12px)}
.performance-screen .mode i{width:clamp(38px,5.2dvh,48px);height:clamp(38px,5.2dvh,48px)}
.performance-screen .lush-button{bottom:clamp(18px,3dvh,28px)}
.performance-screen .traditional-pad #traditional-value{top:clamp(18px,3.5dvh,32px)}
.performance-screen .slider-track{top:clamp(70px,13dvh,126px);bottom:clamp(52px,8dvh,72px)}
.performance-screen .mode .ui-icon{display:grid;place-items:center;width:clamp(38px,5.2dvh,48px);height:clamp(38px,5.2dvh,48px);border:0;border-radius:0;font-size:clamp(37px,5.2dvh,48px);line-height:1;opacity:1}
.performance-screen .mode .ui-icon:before{line-height:1}
.performance-screen .editor-panel:not(.traditional) .lush-button:not(.following){top:auto!important;bottom:max(42px,calc(env(safe-area-inset-bottom) + 26px))!important}
.performance-screen .device-badge{top:50%!important;right:max(7px,env(safe-area-inset-right));transform:translateY(-50%)!important}
.performance-screen .wave-panel{height:clamp(150px,min(40dvh,calc(100dvh - 292px)),420px);flex-basis:clamp(150px,min(40dvh,calc(100dvh - 292px)),420px)}
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
body{min-height:0;display:block}
.remote.performance-screen{height:100dvh;max-height:100dvh;min-height:0;overflow:hidden}
.performance-screen .editor-panel{flex:1 1 0;height:0;min-height:0}
.access-body{min-height:100dvh;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 20%,#35202f 0,#15141b 42%,#090909 100%)}
.access-screen{width:min(100% - 42px,360px);padding:38px 28px 30px;border:1px solid #44313e;border-radius:24px;background:rgba(29,28,38,.9);box-shadow:0 22px 60px rgba(0,0,0,.42);text-align:center}.access-mark{width:62px;height:62px;display:grid;place-items:center;margin:0 auto 18px;border-radius:50%;background:var(--pink);box-shadow:0 0 24px rgba(239,70,155,.45);font-size:37px;font-weight:bold}.access-eyebrow{margin:0;color:#f182bc;font-size:11px;font-weight:bold;letter-spacing:.18em}.access-screen h1{margin:9px 0 8px;font-size:29px;letter-spacing:-.04em}.access-screen>p:last-of-type{margin:0;color:#a9a7b1;font-size:14px;line-height:1.45}.access-form{display:grid;gap:10px;margin-top:28px;text-align:left}.access-form label{color:#c7c5cc;font-size:12px}.access-form input{width:100%;border:1px solid #484550;border-radius:10px;padding:13px;background:#121117;color:#fff;font:inherit;outline:none}.access-form input:focus{border-color:var(--pink);box-shadow:0 0 0 3px rgba(239,70,155,.16)}.access-form button{margin-top:4px;border-radius:10px;padding:13px;background:var(--pink);font-weight:bold}.access-form small{min-height:16px;color:#ff8eae;text-align:center;font-size:11px}
.performance-screen .lush-button{left:calc((100% - 83px) / 2)}.mode.stop-mode{color:#bf718f}.mode.stop-mode i{border-radius:12px}.mode.stop-mode i:after{content:"";position:absolute;inset:11px;border-radius:2px;background:currentColor}
