:root{color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,sans-serif;background:#10141c;color:#edf3fa;font-size:16px;--accent:#8ce5c3;--line:#2b3443;--muted:#a0aec0}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,select,.import-button{background:#202936;color:inherit;border:1px solid #374357;border-radius:12px;min-height:46px;padding:10px 16px;font-size:.875rem;font-weight:550;cursor:pointer}button:hover,.import-button:hover{background:#2c3949}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,.import-button:focus-within{outline:2px solid var(--accent);outline-offset:3px}button[aria-pressed=true],button[aria-expanded=true]{background:#8ce5c3;color:#102a23;border-color:#8ce5c3}input,textarea{background:#111923;border:1px solid #3a4657;border-radius:12px;color:inherit;width:100%;padding:14px;min-height:50px}textarea{resize:none}#app{max-width:1800px;margin:auto;padding:0 32px}header{height:80px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:12px;font-weight:650}.mark{color:var(--accent);font-size:28px}.tag{color:var(--muted);font-size:.875rem;font-weight:400;margin-left:12px}#status{color:var(--muted);font-size:.875rem}#status.live{color:var(--accent)}#connection{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:80px;max-width:980px;margin:clamp(40px,12vh,140px) auto}.eyebrow{font-size:.875rem;letter-spacing:.13em;color:var(--accent);font-weight:600}h1{font-size:clamp(2.5rem,5vw,4.4rem);line-height:1.08;font-weight:600;letter-spacing:-.045em;margin:22px 0}.intro>p:last-child{color:var(--muted);line-height:1.8}form{padding:32px;background:#1a222e;border:1px solid #354153;border-radius:24px;box-shadow:0 22px 65px #0003}label{display:block;font-size:.875rem;margin:0 0 10px;font-weight:550}.hint{font-size:.875rem;color:var(--muted);line-height:1.6;margin:12px 0 24px}.primary{background:var(--accent);color:#102a23;width:100%;font-weight:700;margin-top:24px;min-height:52px}.primary:hover{background:#aff0d6}#message{color:#ffb6ba;font-size:.875rem;line-height:1.6;min-height:22px;margin-bottom:0}#note{font-size:.875rem;color:var(--muted);text-align:center;line-height:1.6;margin:32px auto}#session{position:relative;height:calc(100dvh - 80px);display:flex;flex-direction:column;min-height:300px}.session-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;color:var(--muted);font-size:.875rem}.session-top>div{display:flex;gap:8px}.quiet{background:transparent}#screen{flex:1;min-height:0;background:#050608;border:1px solid var(--line);border-radius:16px;overflow:auto}.dock{display:flex;justify-content:center;gap:8px;padding:12px 0 max(12px,env(safe-area-inset-bottom));flex-shrink:0}.dock-divider{border-left:1px solid var(--line);margin:6px}.panel{position:absolute;z-index:5;bottom:76px;right:0;width:min(560px,100%);max-height:calc(100% - 100px);overflow:auto;overscroll-behavior:contain;background:#1a2431;border:1px solid #445166;border-radius:22px;box-shadow:0 12px 60px #0009;padding:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}h2{font-size:1.125rem;font-weight:650;margin:0}.shortcut-tools{display:flex;gap:10px;align-items:center}.shortcut-tools input{min-width:0}.import-button{margin:0;text-align:center;flex-shrink:0;display:flex;align-items:center}#shortcut-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shortcut{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;padding:15px;min-width:0;overflow-wrap:anywhere}.shortcut small{font-size:.8125rem;color:var(--muted);font-weight:400}.import-help{color:var(--muted);font-size:.875rem;line-height:1.6;margin-top:20px}.import-help code{display:block;overflow-wrap:anywhere;user-select:all;color:var(--accent);background:#101923;padding:14px;border-radius:10px}.key-row{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.key-row button{flex:1;padding:10px;min-width:48px}#keyboard-panel .hint{margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#session:fullscreen{height:100dvh;background:#10141c;padding:0 12px}[hidden]{display:none!important}@media(max-width:700px){#app{padding:0 12px}header{height:64px}.tag{display:none}.brand{gap:8px}#connection{grid-template-columns:1fr;gap:24px;margin:34px auto;max-width:450px}.intro{padding:0 8px}h1{font-size:2.65rem;margin:16px 0}.intro>p:last-child{margin-bottom:0}form{padding:24px;border-radius:22px}#session{height:calc(100dvh - 64px)}.session-top{padding:9px 0;flex-wrap:wrap;gap:8px}.session-top>div{gap:6px}.session-top button,.session-top select{padding:8px 11px;min-height:42px}.dock{gap:5px;justify-content:space-between}.dock button{padding:10px 9px;font-size:.8125rem}.dock-divider{margin:6px 0}#screen{border-radius:12px}.panel{padding:18px;bottom:calc(72px + env(safe-area-inset-bottom));max-height:calc(100% - 80px);border-radius:20px}.shortcut-tools{flex-wrap:wrap}.import-button{width:100%;justify-content:center}#note{padding:0 15px}}@media(max-height:500px) and (orientation:landscape){header{display:none}#session{height:100dvh}.session-top{padding:5px 0}.session-top #resolution{display:none}.dock{padding:5px 0}.panel{bottom:58px;max-height:calc(100% - 60px)}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s ease}}

/* Keep a browser pointer even when the VNC cursor image is hidden. */
#screen canvas{cursor:default!important}
#touch-pointer{position:fixed;width:22px;height:22px;border:2px solid #fff;border-radius:50%;background:#8ce5c355;box-shadow:0 0 0 2px #102a23,0 2px 8px #0009;transform:translate(-50%,-50%);pointer-events:none;z-index:2}

.checkbox-row{display:flex;align-items:center;gap:10px;margin-top:20px;line-height:1.5}.checkbox-row input{width:20px;height:20px;min-height:20px;flex-shrink:0;accent-color:var(--accent)}.dock{flex-wrap:wrap}@media(max-width:380px){.dock{gap:4px}.dock button{padding:10px 7px}}

.session-top>div{flex-wrap:wrap}.session-top select{max-width:100%}

#device{width:100%;margin-bottom:22px}#phone-password-field{margin-top:20px}#phone-password-field .hint{margin-bottom:0}a{color:var(--accent)}#phone-setup ol{padding-left:22px}#phone-setup li{margin:12px 0}#phone-controls{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:10px}#session[data-device=phone] .desktop-only{display:none}#session[data-device=phone] #screen{border-color:#426557}#phone-controls button{flex:1;white-space:nowrap}#phone-controls button{min-width:70px}

#phone-keypad-overlay{position:fixed;z-index:2;overflow:hidden;pointer-events:none!important}#phone-keypad-overlay *{pointer-events:none!important}#phone-keypad-grid{position:absolute;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);place-items:center}.guide-key{display:flex;align-items:center;justify-content:center;width:70%;height:78%;max-width:68px;max-height:68px;border:1.5px dashed #8ce5c3cc;border-radius:50%;background:#132b2570;color:#e4fff3;font-size:clamp(14px,2.8vh,24px);font-weight:600;text-shadow:0 1px 4px #000;user-select:none}.guide-settings{width:min(360px,100%)}.guide-settings input[type=range]{min-height:32px;padding:0;accent-color:var(--accent);margin-bottom:16px}.guide-settings label{margin-bottom:5px}.guide-settings select{width:100%;margin-bottom:14px}#phone-guide-status{margin-bottom:0}

.guide-settings{position:static;width:100%;max-height:30dvh;flex-shrink:0;margin:0 0 10px;padding:14px 18px;overflow:auto;box-shadow:none}.guide-settings .panel-head{margin-bottom:8px}.guide-settings .hint{margin:6px 0 12px}.guide-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.guide-field{min-width:0}.guide-key{flex-direction:column;line-height:1.1;border:1px solid #dcece677;background:#111c1870;font-weight:400}.guide-key small{font-size:clamp(8px,1.2vh,11px);letter-spacing:.1em;color:#c8d7d0;margin-top:3px}#phone-guide-reset{margin-top:4px}@media(max-width:700px){.guide-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-settings{padding:12px}}
