:root{color-scheme:dark;--bg:#000;--text:#fff;--muted:#9ca0a7;--line:#292929}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
body{overflow:hidden}.app-shell{width:100%;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;background:#000;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}
button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.46;cursor:default}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid #fff;outline-offset:3px}svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}
[hidden]{display:none!important}
.computer-header{position:relative;flex:0 0 82px;display:grid;grid-template-columns:68px 1fr 68px;align-items:center;gap:8px;width:100%;padding:10px 21px;background:#000}
.round-control{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;border:1px solid #373737;background:#242424;color:#fff;padding:0}
.round-control svg{width:28px;height:28px;stroke-width:2.5}.close-control svg{width:27px;height:27px}.mode-control{justify-self:end}
.computer-title{display:flex;align-items:center;justify-content:center;gap:11px;min-width:0;color:#fff;font-weight:720;font-size:23px;letter-spacing:-.02em;white-space:nowrap}
.computer-mark{width:29px;height:29px;flex:0 0 auto}.status{font-size:10px;line-height:1;font-weight:750;letter-spacing:.01em;border:1px solid #343434;color:#a1a1a1;border-radius:99px;padding:5px 6px;white-space:nowrap}
.status.on{color:#a4e6b5;border-color:#35533e}.status.ready{color:#e9cf92;border-color:#665632}
.browser-frame{display:flex;flex-direction:column;align-self:center;flex:0 1 auto;min-height:0;overflow:hidden;background:#fff;color:#1b1b1b;border-radius:8px;border:1px solid #414141;box-shadow:0 1px 12px #000;width:min(100%,430px);height:min(calc(100dvh - 207px - env(safe-area-inset-top) - env(safe-area-inset-bottom)),760px);transition:width .2s ease,height .2s ease}
.browser-frame.desktop-mode{width:min(100%,1440px);height:min(calc(100dvh - 220px - env(safe-area-inset-top) - env(safe-area-inset-bottom)),min(70vw,860px))}
.browser-chrome{z-index:2;position:relative;flex:0 0 auto;background:#e1e8f5;color:#23252a}
.tabbar{display:flex;gap:4px;align-items:end;height:35px;padding:3px 6px 0;background:#d0def3;min-width:0}
.tabs{flex:1;display:flex;gap:4px;align-items:end;overflow-x:auto;min-width:0;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}
.tab{display:flex;align-items:center;flex:0 0 146px;gap:4px;height:30px;min-width:0;max-width:190px;padding:0 5px 0 11px;border:1px solid #b4c6e4;border-bottom:0;border-radius:10px 10px 0 0;background:#bacce6;color:#323d4a}
.tab.active{background:#fff;border-color:#fff;box-shadow:none}
.tab-select{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:590;font-size:11px;text-align:left;border:0;background:none;color:inherit;padding:5px 0}
.tab-close{flex:0 0 22px;height:22px;border:0;border-radius:100%;background:none;color:inherit;font-size:18px;line-height:1;display:grid;place-items:center}
.tab-close:active{background:#d6dfeb}.tab-add{width:28px;height:27px;flex:0 0 28px;margin-bottom:2px;border:0;border-radius:50%;background:none;font-size:23px;color:#30343a}
.navbar{display:flex;align-items:center;gap:2px;min-width:0;padding:3px 5px;height:40px;background:#fff}
.nav-action{width:26px;height:31px;flex:0 0 26px;border:0;background:none;color:#4b5563;font-size:24px;line-height:1;padding:0}.reload-action{font-size:22px}
.address{display:flex;align-items:center;flex:1;min-width:0;height:32px;padding:0 4px 0 9px;gap:6px;border-radius:17px;background:#edf1f7;border:1px solid transparent}
.address:focus-within{border-color:#8ba7ca;background:#fff}.lock-icon{height:13px;width:13px;flex:0 0 auto;color:#646a75}
#url{height:100%;flex:1;min-width:0;width:100%;border:0;outline:0;background:none;color:#31343b;text-overflow:ellipsis;font-size:12px}#url::placeholder{color:#6f7682}
.go{height:26px;min-width:33px;padding:0 5px;background:#fff;color:#2b3036;border:1px solid #cdd3dd;border-radius:15px;font-size:10px;font-weight:740}
#stage{position:relative;flex:1;min-width:0;min-height:0;overflow:hidden;background:#fff;touch-action:none}
#screen{display:none;width:100%;height:100%;object-fit:contain;background:#fff;user-select:none;-webkit-user-drag:none}
#waiting{position:absolute;inset:0;display:grid;place-items:center;background:#101216;color:#aeb3c0;text-align:center;padding:20px;font-size:13px}
#waiting strong{display:block;font-size:19px;font-weight:700;color:#fff;letter-spacing:-.02em;margin-bottom:10px}#waiting span{display:block}
#touchInput{position:absolute;z-index:4;left:12px;top:12px;width:54px;height:36px;opacity:0;pointer-events:none;-webkit-appearance:none;appearance:none;border:0;border-radius:9px;padding:0 8px;margin:0;font-size:16px;color:#17191e;background:#fff;caret-color:#17191e;outline:0}
#touchInput.active{opacity:1;pointer-events:auto;box-shadow:0 0 0 2px #70a2eb;white-space:nowrap;overflow:hidden;text-overflow:clip}
#touchInput::-webkit-search-cancel-button{display:none}
.computer-footer{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;min-height:116px;flex:0 0 116px;padding:0 12px 11px;background:#000}
.footer-actions{display:flex;align-items:center;justify-content:center;gap:29px}
.tool-button{display:grid;place-items:center;width:64px;height:64px;background:#fff;color:#050505;border:0;border-radius:50%;padding:0}
.tool-button svg{width:28px;height:28px;stroke-width:2}.tool-button:active{transform:scale(.96)}
.connection-message{width:100%;min-height:15px;display:flex;align-items:center;justify-content:center;gap:9px;max-width:560px;color:#b2b2b2;font-size:11px}
#meta{display:none}#notice{text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;min-height:12px}
.offline-actions{display:flex;justify-content:center;gap:9px;max-height:35px}
.wake,.wake-now{border:1px solid #666;border-radius:22px;background:#1b1b1b;color:#fff;padding:5px 12px;font-size:12px;text-decoration:none}
@media(max-width:440px){
 .computer-header{flex-basis:76px;grid-template-columns:57px 1fr 57px;padding:8px 22px}
 .round-control{width:53px;height:53px}.round-control svg{width:25px;height:25px}
 .computer-title{gap:8px;font-size:21px}.computer-mark{width:26px;height:26px}.status{font-size:8px;padding:4px 5px}
 .browser-frame{border-radius:0;width:100%;height:min(calc(100dvh - 192px - env(safe-area-inset-top) - env(safe-area-inset-bottom)),760px)}
 .browser-frame.desktop-mode{height:min(calc(100dvh - 218px - env(safe-area-inset-top) - env(safe-area-inset-bottom)),62vw)}
 .computer-footer{flex:0 0 112px;min-height:112px;padding-bottom:9px}
 .tab{flex-basis:139px}.footer-actions{gap:26px}
}
@media(max-width:355px){.computer-title{font-size:18px;gap:5px}.status{display:none}.round-control{width:49px;height:49px}.footer-actions{gap:19px}}
@media(prefers-reduced-motion:reduce){.browser-frame{transition:none}.tool-button:active{transform:none}}

/* Computer V2: compact hardware-like chrome; browser owns the screen. */
.app-shell{justify-content:flex-start}
.computer-header{flex:0 0 60px;grid-template-columns:48px 1fr 48px;padding:6px 14px;gap:6px}
.round-control{width:42px;height:42px;background:#1d1d1d;border-color:#353535}
.round-control svg,.close-control svg{width:20px;height:20px}
.computer-title{font-size:18px;gap:7px;font-weight:680}
.computer-mark{width:22px;height:22px}
.status{font-size:9px;padding:4px 6px}
.browser-frame,.browser-frame.desktop-mode{flex:1 1 auto;align-self:stretch;width:100%;max-width:100%;height:auto;min-height:0;border:0;border-radius:0;box-shadow:none;transition:none}
.browser-chrome{flex:0 0 auto}
.tabbar{height:31px;padding:2px 6px 0}
.tab{height:27px;flex-basis:132px;border-radius:8px 8px 0 0}
.tab-add{height:24px;font-size:21px}
.navbar{height:35px;padding:2px 5px;gap:0}
.nav-action{width:24px;height:27px;flex-basis:24px;font-size:21px}
.address{height:28px;border-radius:14px}
.go{height:22px;min-width:29px;border-radius:11px;font-size:10px}
#stage{min-height:0}
#touchInput.active{box-shadow:none!important;border:0!important;border-radius:0!important;background:rgba(255,255,255,.97);outline:0!important;padding:0 3px;color:#17191e;caret-color:#17191e}
.computer-footer{flex:0 0 84px;min-height:84px;justify-content:center;gap:3px;padding:5px 12px 8px}
.footer-actions{gap:22px}
.tool-button{width:46px;height:46px}
.tool-button svg{width:22px;height:22px;stroke-width:1.9}
.connection-message{min-height:12px;font-size:10px}
.offline-actions{max-height:29px}
.wake,.wake-now{font-size:10px;padding:4px 10px}
@media(max-width:440px){
 .computer-header{flex:0 0 59px;grid-template-columns:44px 1fr 44px;padding:5px 13px}
 .round-control{width:41px;height:41px}
 .computer-title{font-size:18px;gap:6px}
 .computer-mark{width:22px;height:22px}
 .browser-frame,.browser-frame.desktop-mode{flex:1 1 auto;height:auto;width:100%;max-width:100%;border-radius:0}
 .computer-footer{flex:0 0 80px;min-height:80px;padding:5px 8px 7px}
 .tab{flex-basis:130px}
 .footer-actions{gap:22px}
}
@media(max-width:355px){.computer-title{font-size:16px}.status{display:none}.round-control{width:39px;height:39px}}
