:root{color-scheme:light;font-family:Inter,"Segoe UI",Arial,sans-serif;color:#111827;background:#f0f4fa;--text:#111827;--muted:#5f6b7e;--line:#dbe3ee;--accent:#075ee9;--purple:#6736e9;--stage:#151d2c}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-width:300px}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.57}
button:focus-visible,input:focus-visible,#frame:focus-visible{outline:3px solid #70a5ff;outline-offset:3px}
.topbar{height:76px;background:#fff;border-bottom:1px solid #d8e1ed;padding:0 32px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.identity,.connection,.screen-heading,.screen-foot,.badge,.profiles button{display:flex;align-items:center}
.identity{gap:16px;white-space:nowrap}
.identity strong{font-size:24px;letter-spacing:-.55px}
.product{border-left:1px solid #cbd4e0;padding-left:20px;color:var(--muted);font-size:17px}
.logo{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--accent)}
.logo::before{content:"";width:28px;height:23px;background:#fff;clip-path:polygon(3% 40%,97% 7%,76% 93%,52% 71%,39% 85%,34% 57%)}
.connection{gap:10px;font-size:16px;color:var(--muted)}
.connection i,.badge i{width:10px;height:10px;border-radius:50%;background:#7f8a9b;flex:none}
.connection.online{color:var(--text)}
.connection.online i{background:#16a66a}
main{max-width:1440px;margin:0 auto;padding:48px 52px 64px}
h1,h2,p{margin:0}
h1{font-size:clamp(31px,3.4vw,48px);line-height:1.14;letter-spacing:-.045em;margin-bottom:31px;font-weight:750}
h2{font-size:24px;line-height:1.25;letter-spacing:-.028em;font-weight:720}
.columns{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1.98fr);gap:24px}
.card,.access{border:1px solid var(--line);background:#fff;border-radius:18px;padding:22px}
.controls{padding:23px}
.profiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:25px 0 32px}
.profiles button{gap:10px;justify-content:flex-start;padding:11px 13px;min-height:57px;border:1px solid var(--line);background:white;border-radius:12px;color:var(--text);font-weight:650;white-space:nowrap}
.profiles button:hover{background:#f5f8fd}
.profiles button[aria-pressed="true"]{border-color:var(--accent);background:#eaf3ff;box-shadow:0 0 0 1px var(--accent)}
.profiles button[data-profile="B"][aria-pressed="true"]{border-color:var(--purple);background:#f1ebff;box-shadow:0 0 0 1px var(--purple)}
.letter{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:100%;color:white;background:var(--accent);font-size:17px}
[data-profile="B"] .letter{background:var(--purple)}
.form-area{padding-top:25px;border-top:1px solid var(--line)}
.form-area h2{margin-bottom:21px}
.message,.error{line-height:1.45;font-size:15px;margin:0 0 16px}
.message{color:var(--muted)}
.error{color:#9f182c;background:#fff1f3;border-radius:10px;padding:10px 12px}
form label{display:block;font-size:16px;margin-bottom:8px}
input{border:1px solid #bfc9d9;border-radius:10px;background:#fff;color:var(--text);padding:11px 14px;width:100%;min-height:48px}
input::placeholder{color:#687386}
.primary,.secondary{border:1px solid transparent;border-radius:10px;min-height:48px;padding:10px 15px;font-weight:680}
.primary{background:var(--accent);color:#fff;width:100%;margin-top:22px}
.primary:hover{background:#064fc7}
.secondary{background:#f2f6fd;border-color:var(--line);color:var(--text);white-space:nowrap}
.secondary:hover{background:#e5efff}
.text-button{border:0;background:transparent;color:#0755cd;font-weight:620;padding:6px 0;line-height:1.3;text-align:left}
.text-button:hover{text-decoration:underline}
.form-area > .text-button{display:block;margin-top:12px}
.delivery{background:#eef5ff;color:#124783;border-radius:10px;padding:11px 13px;line-height:1.35;margin:0 0 17px;overflow-wrap:anywhere}
.screen-heading,.screen-foot{justify-content:space-between;gap:12px}
.screen-heading{min-height:35px;margin:0 0 20px}
.badge{gap:9px;border-radius:999px;background:#eaf3ff;color:#0658db;padding:8px 13px;font-size:15px;font-weight:650;white-space:nowrap}
.badge span{max-width:min(16ch,25vw);overflow:hidden;text-overflow:ellipsis}
.badge i{background:var(--accent)}
.badge.b{background:#f2edff;color:#5826d2}
.badge.b i{background:var(--purple)}
.stage{position:relative;border-radius:13px;background:var(--stage);height:clamp(390px,33vw,530px);display:grid;place-items:center;overflow:hidden}
.stage:fullscreen{width:100vw;height:100vh;border-radius:0}
.empty{color:#c4ccd9;display:grid;justify-items:center;gap:18px;text-align:center;padding:20px;font-size:19px}
.phone{width:62px;height:93px;border:4px solid #aeb9ca;border-radius:15px;position:relative}
.phone::before,.phone::after{content:"";position:absolute;left:50%;transform:translateX(-50%);background:#aeb9ca}
.phone::before{width:17px;height:4px;border-radius:5px;top:8px}
.phone::after{width:9px;height:9px;border-radius:50%;bottom:7px}
#frame{position:absolute;inset:0;display:block;height:100%;width:100%;object-fit:contain;touch-action:none;user-select:none;cursor:crosshair}
.screen-foot{padding-top:13px;min-height:32px;color:var(--muted);font-size:15px}
.screen-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}
.remote-keys,.remote-keys form{display:flex;gap:9px;min-width:0}
.remote-keys{margin-top:13px}
.remote-keys form{flex:1}
.access{max-width:480px;margin:40px auto 0;padding:30px}
.access h1{font-size:34px;margin-bottom:24px}
.access .error{margin-top:16px;margin-bottom:0}
@media(max-width:1020px){main{padding:36px 26px 45px}.columns{grid-template-columns:minmax(300px,1fr) minmax(0,1.7fr);gap:16px}.card{padding:17px}.profiles{gap:8px}.profiles button{padding:9px;gap:7px}.letter{width:29px;height:29px}}
@media(max-width:720px){.topbar{padding:0 16px;height:64px;gap:8px}.identity{gap:8px}.identity strong{font-size:19px}.logo{width:34px;height:34px;border-radius:10px}.product{display:none}.connection{font-size:13px;gap:6px}main{padding:26px 14px 32px}.columns{grid-template-columns:minmax(0,1fr)}h1{margin-bottom:19px}.profiles{margin:18px 0}.form-area{padding-top:17px}.stage{height:min(115vw,520px);min-height:300px}.screen-heading{margin-bottom:14px}h2{font-size:21px}.screen-foot{font-size:13px}.empty{font-size:16px}}
@media(max-width:390px){.remote-keys{flex-wrap:wrap}.remote-keys form{width:100%;flex:none}.remote-keys form .secondary{padding-inline:9px}}
