:root{color-scheme:dark;font-family:Inter,system-ui,sans-serif;background:#090a12;color:#f7f5ff;font-size:17px}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% 0,#30204488,transparent 60%);min-height:100svh}a{color:#bfa3ed}button,input,select{font:inherit;border-radius:12px;border:1px solid #4e4164;color:inherit;background:#151222;min-height:48px;padding:10px 16px}button{cursor:pointer}button:hover{background:#29203d}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ba98f4;outline-offset:4px}button.primary{background:#7949df;border-color:#aa85ef;font-weight:650}button.danger{color:#f99abe;border-color:#783b58}input{width:100%;min-width:0}h1,h2,p{margin-top:0}h1{letter-spacing:-.04em}small,.muted{color:#b1a6c3}main{max-width:1160px;margin:auto;padding:40px 36px 64px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:40px}.brand{display:flex;gap:18px;align-items:center}.brand img{width:84px}.brand span{font-size:18px;color:#b1a6c3;letter-spacing:.08em}h1{font-size:38px;margin:0 0 8px}h2{font-size:22px}.tabs{display:flex;gap:12px;padding-bottom:24px;border-bottom:1px solid #393047;margin-bottom:28px}.tabs button[aria-selected=true]{background:#322247;border-color:#a983e4}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.card{border:1px solid #453751;border-radius:22px;background:#171322b0;padding:26px}.field{display:flex;flex-direction:column;gap:9px;margin-bottom:22px}.field:last-child{margin-bottom:0}.field label{color:#bdb1ce;font-size:15px}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.device{margin-bottom:16px}.device-head{display:flex;justify-content:space-between;align-items:center;gap:18px}.device-head h2{margin:0}.status{font-size:14px;color:#8cdbb7}.status.offline{color:#b5a4cb}.amount{color:#ed489d}.preview{border:1px solid #4e4164;border-radius:18px;padding:28px;background:#090a12;min-height:200px;text-align:center}.preview .people{color:#ec4899}.preview .message{font-size:24px;line-height:1.45}.preview small{display:block;margin-top:18px}.welcome{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.7fr);align-items:center;gap:8vw;min-height:80svh}.welcome h1{font-size:clamp(42px,5vw,80px)}.welcome p{font-size:clamp(18px,1.6vw,26px);color:#c2b8d1;line-height:1.65;max-width:620px}.qr-card{background:#fff;border-radius:24px;padding:30px;color:#241a34;text-align:center;max-width:420px}.qr-card canvas{width:100%;height:auto}.code{font-size:36px;font-variant-numeric:tabular-nums;letter-spacing:.14em;font-weight:700;margin-top:22px}.qr-card small{color:#6b5e7d}.badge{font-size:12px;border:1px solid #715589;border-radius:8px;padding:5px 9px;color:#d2b3ed}.pair-main{max-width:540px;padding-top:10vh}.pair-main .card{padding:30px}#notice{color:#edadd0;min-height:1.5em;margin-top:16px}button[disabled]{opacity:.5;cursor:default}[hidden]{display:none!important}.fallback{position:fixed;bottom:16px;left:24px;color:#9b8cae;font-size:13px}@media (max-width:1100px), (max-width:1366px) and (pointer:coarse){main{padding:24px 20px}.grid{grid-template-columns:1fr}header{margin-bottom:28px}.brand img{width:64px}.brand span{font-size:13px}.welcome{grid-template-columns:1fr;gap:30px;text-align:center}.welcome h1{font-size:42px}.qr-card{max-width:280px;justify-self:center;padding:20px}.code{font-size:28px}.device-head{align-items:flex-start}.actions button{flex:1}h1{font-size:29px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
header{flex-wrap:wrap}.device-head h2{min-width:0;overflow-wrap:anywhere}.brand{max-width:100%}

:root{--surface:#151222;--line:#39334e;--accent:#b794ff}main{max-width:1100px}.brand span{display:none}.card{border-color:var(--line);background:#151222;border-radius:18px;box-shadow:none}button,input,select{border-color:var(--line);background:#151222;border-radius:12px}.tabs button[aria-selected=true]{background:#322442;border-color:#8955e9}.tabs{border-color:var(--line)}button.primary{background:#30213f;border-color:#8955e9;color:#d9c8ef}.welcome-main{max-width:1600px;padding:32px 4vw}.welcome{grid-template-columns:minmax(0,1.15fr) minmax(280px,.8fr);min-height:78svh}.welcome h1{font-size:clamp(40px,5vw,76px)}.qr-card{width:100%;max-width:420px}.code{font-size:clamp(26px,3vw,44px);letter-spacing:.1em;white-space:nowrap}#fields select{width:100%}.device .field{margin-top:20px}#notice:empty{display:none}#preview{box-shadow:none}
html[data-ui-theme=light]{color-scheme:light;background:#f7f5ff;color:#231b36;--line:#d4cbe4;--surface:#fff}html[data-ui-theme=light] body{background:#f7f5ff}html[data-ui-theme=light] .card,html[data-ui-theme=light] button,html[data-ui-theme=light] input,html[data-ui-theme=light] select{background:#fff;color:#231b36}html[data-ui-theme=light] .muted,html[data-ui-theme=light] small,html[data-ui-theme=light] .field label{color:#615675}html[data-ui-theme=light] .tabs button[aria-selected=true]{background:#eee6fa;color:#563475}html[data-ui-theme=light] .tv-tour .ex-tour-card{background:#fff;color:#231b36;border-color:#d4cbe4}

/* Web controller: centered controls, original logo anchored left. */
.web-controller{text-align:center}.web-controller header{flex-wrap:nowrap;gap:16px}.web-controller #header-tools{display:flex;align-items:center;justify-content:flex-end;gap:14px}.web-controller header .brand{margin-right:auto}.web-controller #back{display:flex;align-items:center;justify-content:center;min-height:52px;min-width:110px;text-decoration:none}.web-controller button,.web-controller .button{font-weight:500;transition:background .18s,box-shadow .18s}.web-controller .button{border:1px solid var(--line);border-radius:12px;padding:12px 18px;background:var(--surface);color:inherit;text-decoration:none;min-height:48px;display:inline-flex;align-items:center;justify-content:center}.web-controller .help-icon{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:44px;height:44px;min-height:44px;padding:0;font-size:24px;font-weight:650;color:#d2b3ef}.web-controller h1{margin-bottom:24px}.web-controller .tabs,.web-controller .actions{justify-content:center}.web-controller label,.web-controller select{text-align:center}.web-controller select{text-align-last:center}.web-controller .actions button{flex:0 1 auto}.web-controller .device-head{justify-content:center;flex-direction:column;gap:8px}.auto-row{margin-top:24px;display:flex;align-items:center;justify-content:center;gap:16px}.auto-row input{width:22px;height:22px;min-height:22px;accent-color:#9361ed}.web-controller #save-state{display:block;margin-top:20px}.web-controller #fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.web-controller .field{margin:0}.web-controller #transition-hint{display:block;margin:18px 0 0}.web-controller #transition-hint:empty{display:none}.web-controller .grid{grid-template-columns:1.2fr 1fr}.web-controller .preview{min-height:250px;display:flex;flex-direction:column;justify-content:center}.web-controller #device-list{max-width:760px;margin:auto}.web-controller button:active,.web-controller .button:active{filter:brightness(1.12)}@media (max-width:1100px), (max-width:1366px) and (pointer:coarse){.web-controller .grid{grid-template-columns:1fr}}@media (max-width:1100px), (max-width:1366px) and (pointer:coarse){.web-controller header{gap:10px}.web-controller #header-tools{gap:10px}.web-controller #back{min-width:86px;min-height:48px;padding:10px}.web-controller .help-icon{width:40px;height:40px;min-height:40px}.web-controller #fields{grid-template-columns:1fr}.web-controller .actions{gap:12px}.web-controller .card{padding:22px}.web-controller .brand img{width:64px}}

.web-controller .people .one985-name-arrow{color:#f8f5ff}html[data-ui-theme=light] .web-controller .people .one985-name-arrow{color:#241a35}.web-controller .preview .people{display:flex;justify-content:center;gap:.25em}

/* Revision: compact explicit-save controls and device connection signals. */
.web-controller select{appearance:none;-webkit-appearance:none;background-image:none!important;text-align:center;text-align-last:center;padding:12px 16px}.web-controller #fields{grid-template-columns:1fr;gap:22px}.live-switch-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line);text-align:left}.live-switch-row>span:first-child{font-size:16px}.live-switch-row input[role=switch]{appearance:none;-webkit-appearance:none;flex:none;width:46px;height:26px;min-height:26px;padding:0;border:1px solid #635476;border-radius:99px;background:#332a40;position:relative;cursor:pointer;margin:0}.live-switch-row input[role=switch]::after{content:'';display:block;position:absolute;width:18px;height:18px;border-radius:50%;top:3px;left:3px;background:#ded4eb;transition:left .18s,background .18s}.live-switch-row input[role=switch]:checked{background:#7846c5;border-color:#b28be8}.live-switch-row input[role=switch]:checked::after{left:23px;background:#fff}.theme-toggle{display:flex;align-items:center;gap:9px;font-size:12px;color:#bcb0cd}.web-controller #fields{margin-top:24px}.web-controller .small{font-size:13px;line-height:1.5;margin-top:20px}.web-controller #save-settings{min-width:160px}.web-controller .device{position:relative;padding:30px 72px 30px 30px}.web-controller .device-head{min-height:44px}.web-controller .device-signal{position:absolute!important;top:18px;right:18px}.web-controller .device h2{padding-right:15px}.web-controller .preview p{overflow-wrap:anywhere}@media (max-width:1100px), (max-width:1366px) and (pointer:coarse){.web-controller .device{padding:24px 64px 24px 24px}.live-switch-row{gap:12px;flex-wrap:wrap;justify-content:center;text-align:center}.live-switch-row>span:first-child{flex:1 1 100%}.live-switch-row .theme-toggle{justify-content:center;flex-basis:100%}.web-controller #delete-hint{font-size:12px}}@media(prefers-reduced-motion:reduce){.live-switch-row input::after{transition:none}}

/* Fixed TV miniature and aligned controller actions. */
.web-controller .settings-card,.web-controller .preview-card{display:flex;flex-direction:column;min-width:0}.web-controller .save-actions{margin-top:auto;padding-top:24px}.web-controller .delete-actions{margin-top:auto;padding-top:24px}.web-controller .delete-actions p{margin:0 0 14px}.web-controller .preview-card>.actions{margin-top:24px}.web-controller #pause-hint{margin:12px 0 24px}.web-controller #draft-state:empty{display:none}.web-controller #preview{position:relative;aspect-ratio:16/9;width:100%;height:auto;min-height:0;padding:0;overflow:hidden;flex:none;display:block;background:#090a12}.web-controller #preview-frame{position:absolute;top:0;left:0;width:1920px;height:1080px;border:0;transform-origin:top left;pointer-events:none}.web-controller .live-switch-row{display:grid;grid-template-columns:minmax(0,1fr) auto 46px;gap:12px;flex-wrap:nowrap;text-align:left}.live-switch-row>span:first-child{grid-column:1}.live-switch-row>input{grid-column:3}.theme-icons{grid-column:2;display:flex;align-items:center;gap:10px;color:#bcb0cd;font-size:22px}.animation-disabled{opacity:.4}.web-controller .help-icon{border:1px solid #655177;background:transparent;width:44px;height:44px}.help-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}@media (max-width:1100px), (max-width:1366px) and (pointer:coarse){.web-controller .live-switch-row>span:first-child{font-size:14px}.theme-icons{font-size:18px;gap:5px}.web-controller .live-switch-row{gap:8px}.web-controller .delete-actions{margin-top:12px}}

html[data-ui-theme=light] .web-controller .help-icon{color:#65418c;border-color:#c6b4da}

/* One shared theme icon, settings order and temporary fullscreen controls. */
.one985-theme-icon{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.web-controller .dedication-switch-row label{text-align:left}.web-controller .dedication-switch-row select{grid-column:2/4;max-width:190px;min-width:110px}.web-controller .theme-field{grid-template-columns:1fr;justify-items:center;border-bottom:0;text-align:center;gap:12px}.web-controller .theme-field>span:first-child{font-size:17px;color:#b1a6c3}.web-controller .theme-field .theme-icons{grid-column:1;display:flex;gap:70px;grid-row:2}.web-controller .theme-field>input{grid-column:1;grid-row:2}.web-controller #preview-action{position:absolute;z-index:5;top:50%;left:50%;transform:translate(-50%,-50%);min-height:48px;padding:12px 24px;background:#171323e8;color:#fff;border:1px solid #b698d2;box-shadow:0 8px 32px #0005;white-space:nowrap}.web-controller #preview.expanded-preview,.web-controller #preview:fullscreen{position:fixed;inset:0;z-index:10000;width:100vw;height:100dvh;aspect-ratio:auto;margin:0;border:0;border-radius:0;background:#090a12}.web-controller #preview{cursor:pointer}.web-controller #preview:focus-visible{outline:2px solid #b794ff;outline-offset:3px}

/* Four switches in their agreed order; theme glyphs directly after its label. */
.web-controller #theme-label{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.web-controller #theme-label .theme-icons{display:inline-flex;gap:9px;font-size:21px;line-height:1;color:#bcb0cd}.web-controller .expanded-preview #preview-action{top:max(18px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));left:auto;transform:none}.web-controller #preview.inactive-preview{cursor:default;background:#0c0c15}.web-controller #preview-off{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;padding:24px;color:#aea3be;font-size:14px}.web-controller .inactive-preview:focus-visible{outline:none}

.live-address-actions{display:flex;justify-content:center;margin:0 0 20px}.live-address-dialog{position:fixed;inset:0;margin:auto;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:28px;border:1px solid var(--line,#39334e);border-radius:18px;background:var(--surface,#151222);color:#f7f5ff;text-align:center;box-sizing:border-box}.live-address-dialog::backdrop{background:#09081599}.live-address-dialog h2{font-size:20px;margin:0 0 18px}.live-address-dialog a{display:block;overflow-wrap:anywhere;color:#c4a5ee;font-size:16px;line-height:1.5}html[data-ui-theme=light] .live-address-dialog{color:#231b36;background:#fff}html[data-ui-theme=light] .live-address-dialog a{color:#65418c}

.live-switch-row input:disabled{opacity:.45;cursor:default}
/* The miniature's inner viewport and visible frame share the same 16:9 box. */
.web-controller #preview{border:0;outline:1px solid var(--line);outline-offset:-1px;aspect-ratio:16/9}
.web-controller #preview:focus-visible{outline:2px solid #b794ff;outline-offset:3px}
.web-controller #preview.expanded-preview,.web-controller #preview:fullscreen{outline:0;aspect-ratio:auto}

.web-controller .live-switch-row.control-disabled>span{opacity:.45}
.web-controller .field.control-disabled{opacity:.45}
.web-controller #save-settings:disabled{opacity:.45}

.web-controller .field.control-disabled select:disabled{opacity:1}

/* Phone screen cards: title, compact language and signal share one row. */
@media (max-width:1100px), (max-width:1366px) and (pointer:coarse){
 .web-controller .device{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;column-gap:10px;row-gap:20px;padding:20px;text-align:left}
 .web-controller .device-head{display:contents}
 .web-controller .device h2{grid-row:1;grid-column:1;align-self:center;text-align:left;padding:0;margin:0;font-size:17px;line-height:1.35;overflow-wrap:anywhere}
 .web-controller .device .device-signal{position:relative!important;inset:auto;grid-row:1;grid-column:2;align-self:center;justify-self:center}
 .web-controller .device .device-language{grid-row:1;grid-column:3;margin:0;align-self:center}
 .web-controller .device-language select{box-sizing:border-box;width:44px;height:44px;min-height:44px;padding:0;border-radius:12px;font-size:12px}
 .web-controller .device>.actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
 .web-controller .device>.actions button{width:100%;min-width:0;min-height:48px;padding:10px 8px;border-radius:12px;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
 .web-controller .device>.actions input{grid-column:1/-1;min-width:0}
}

@media (max-width:1100px), (max-width:1366px) and (pointer:coarse){.web-controller .device{grid-template-columns:minmax(0,1fr) 24px 44px}}

/* Native select focus persists after dismissing its popup; show the ring for keyboard use only. */
.web-controller .device-language select[data-pointer-focus]:focus{outline:none}

.pair-main .pair-back{display:inline-flex;align-items:center;justify-content:center;min-width:86px;min-height:48px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:inherit;text-decoration:none;font-weight:500}

.phone-pair-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(390px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);overflow:auto;padding:26px 22px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:inherit;text-align:center;font:inherit}
.phone-pair-dialog::backdrop{background:#09081599}
.phone-pair-dialog h2{font-size:24px;margin:0 0 24px}
.phone-pair-dialog .field{margin:0 0 20px}
.phone-pair-dialog label,.phone-pair-dialog input{text-align:center}
.phone-pair-dialog label{color:inherit}
.phone-pair-dialog button{display:block;margin:24px auto 0}
.phone-pair-dialog [role=status]{color:#edadd0;font-size:14px;line-height:1.5;margin:18px 0 0}
.phone-pair-dialog [role=status]:empty{display:none}

@media (min-width:1101px) and (pointer:fine), (min-width:1367px){.web-controller .device>.actions{align-items:center}.web-controller .device>.actions .device-language{margin:0;flex:0 0 44px}}

.web-controller #header-tools .help-icon{position:relative;box-sizing:border-box;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;flex:0 0 24px;padding:0!important}
.web-controller #header-tools .help-icon svg{width:16px!important;height:16px!important}
.web-controller #header-tools .help-icon::after{content:'';position:absolute;inset:-10px;border-radius:50%}
