:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#e7edf5;background:#0b1118;font-synthesis:none;font-size:14px;--bg:#0b1118;--panel:#111a24;--panel2:#151f2b;--border:#243140;--muted:#8a9aad;--teal:#62dfc0;--teal-dark:#123f38;--red:#ff8790;--radius:16px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--teal);outline-offset:4px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:clamp(27px,3vw,37px);line-height:1.22;letter-spacing:-1.2px;font-weight:700}h2{font-size:17px;letter-spacing:-.35px}h3{font-size:14px}svg{width:19px;height:19px;vertical-align:middle;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button svg{pointer-events:none}.muted{color:var(--muted);line-height:1.65}.small{font-size:12px}.accent{color:var(--teal)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.9px;color:#81a39f;margin-bottom:12px}.button{min-height:42px;padding:11px 17px;border-radius:9px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:600;font-size:12px;line-height:1.3;transition:background .15s,transform .15s;white-space:nowrap}.button:active{transform:translateY(1px)}.primary{background:var(--teal);color:#092a23}.primary:hover{background:#8aecd5}.secondary{background:#17222e;color:#c8d5e3;border-color:var(--border)}.secondary:hover{background:#1f2d3b}.danger{background:#512832;color:#ffabb1;border-color:#713542}.text-button{padding:7px 0;border:0;background:none;color:#91a1b3;display:inline-flex;gap:8px;align-items:center;font-size:12px}.text-button:hover{color:#e7edf5}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid transparent;color:#94a6b9;background:transparent}.icon-button:hover{background:#1f2b38;color:#e6eff9;border-color:#2c3b4a}.icon-button.danger-icon:hover{color:var(--red);border-color:#61303b;background:#2c2029}.wide{width:100%}.brand-mark{width:49px;height:49px;border:1px solid #477c71;color:var(--teal);display:flex;justify-content:center;align-items:center;font-size:31px;font-weight:750;letter-spacing:-7px;border-radius:13px;line-height:1;background:#122921}.brand-mark span{font-size:21px;margin-top:-15px;letter-spacing:0}.brand-mark.small{width:37px;height:37px;font-size:25px;border-radius:10px;letter-spacing:-6px}.brand-mark.small span{font-size:17px}.brand{display:flex;align-items:center;gap:11px;font-size:20px;font-weight:700;letter-spacing:-.8px}.brand-light{font-weight:400;color:#b6c7d7}.brand small{font-size:7px;letter-spacing:2.3px;display:block;color:#64788c;font-weight:600;margin-top:5px}.status-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:var(--teal);box-shadow:0 0 0 4px #62dfc00b;flex-shrink:0}.status-dot.offline{background:#ca855a;box-shadow:0 0 0 4px #ca855a0b}.app-shell{display:grid;grid-template-columns:223px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:#0e161f;border-right:1px solid #1e2a37;padding:30px 18px 20px}.sidebar .brand{margin:0 10px 47px}.nav-label{color:#5d7185;font-size:8px;font-weight:700;letter-spacing:1.7px;margin:0 12px 15px}.navigation{display:flex;flex-direction:column;gap:7px}.nav-item{border:1px solid transparent;background:none;color:#94a5b7;display:flex;align-items:center;gap:12px;padding:12px;border-radius:9px;text-align:left;font-size:12px;font-weight:550}.nav-item svg{width:18px;height:18px}.nav-item.active{background:#162d2b;border-color:#24433c;color:var(--teal)}.nav-item:not(.active):hover{background:#151f2b;color:#d9e5f1}.nav-count{margin-left:auto;min-width:19px;border-radius:5px;font-size:10px;line-height:18px;text-align:center;background:#274a41}.sidebar-bottom{margin-top:auto}.device-label{border-top:1px solid var(--border);padding:20px 6px 12px;display:flex;align-items:center;gap:10px}.device-label>span:first-child{color:#8295a8}.device-label strong{font-size:11px;font-weight:600;display:block}.device-label small{color:#71869a;font-size:9px;display:block;margin-top:5px}.device-label .status-dot{margin-left:auto}.sidebar-bottom>.text-button{margin:10px 7px 0}.main-content{padding:0 36px;min-width:0;max-width:1650px}.topbar{min-height:74px;border-bottom:1px solid #1e2936;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:34px;font-size:10px}.breadcrumb{color:#687e92;display:flex;gap:12px}.breadcrumb strong{color:#b1c1d1;font-weight:500}.breadcrumb span{color:#435464}.connection-state{display:flex;gap:9px;align-items:center;color:#8a9ead}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-heading .muted{margin-top:11px;font-size:12px}.page-heading .button{align-self:center}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:31px}.stat{background:linear-gradient(110deg,#121c27,#101923);border:1px solid #263443;border-radius:12px;padding:20px 18px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;min-width:0}.stat-label{display:block;font-size:10px;color:#8497aa;margin-bottom:12px}.stat strong{font-size:24px;letter-spacing:-.75px;font-weight:650;white-space:nowrap}.stat strong small{font-size:10px;font-weight:400;color:#6e879b;letter-spacing:0}.stat-icon{width:31px;height:31px;border-radius:9px;display:flex;align-items:center;justify-content:center}.stat-icon svg{width:16px;height:16px}.teal{color:#6fe7cb;background:#1b3934}.blue{color:#8bbdff;background:#1b2f48}.purple{color:#bdadff;background:#2e2949}.amber{color:#ecc58d;background:#3b3226}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.section-heading h2{display:flex;align-items:center;gap:10px;font-size:15px}.count-badge{font-size:10px;border:1px solid #344252;background:#1b2734;color:#9dafc2;border-radius:5px;min-width:20px;line-height:19px;text-align:center}.sessions-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(223px,1fr));gap:17px}.session-card{border:1px solid #283747;background:#111c27;border-radius:13px;overflow:hidden;transition:border-color .15s}.session-card.selected{border-color:#5ec9b1;box-shadow:0 0 0 1px #5ec9b115}.session-card:hover{border-color:#425a6c}.session-card.selected:hover{border-color:#5ec9b1}.card-preview{height:149px;background-color:#0d151e;background-image:radial-gradient(#233544 1px,transparent 1px);background-size:12px 12px;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;border-bottom:1px solid #25313e;overflow:hidden}.card-preview img{height:126px;max-width:90%;image-rendering:pixelated;object-fit:contain;filter:saturate(.85);box-shadow:0 8px 20px #0005;border:1px solid #3c5263}.preview-placeholder{display:flex;align-items:center;flex-direction:column;gap:12px;color:#425d73}.preview-placeholder svg{width:36px;height:36px;stroke-width:1}.preview-placeholder small{font-size:9px;letter-spacing:1.5px;text-transform:uppercase}.preview-badge{position:absolute;top:11px;left:11px}.badge{display:inline-flex;align-items:center;gap:6px;min-height:22px;font-size:9px;font-weight:600;color:#9fafc1;border:1px solid #3a4858;background:#202d3a;border-radius:5px;padding:4px 7px;white-space:nowrap}.badge.running{color:#88e6cc;background:#163e33;border-color:#2a6751}.badge.running::before{content:"";width:4px;height:4px;background:#8ce2c7;border-radius:50%}.badge.starting{color:#edcb88;background:#3b3420;border-color:#6b5930}.badge.error{color:#ffabb0;background:#442630;border-color:#713f49}.session-card-body{padding:15px 15px 12px}.card-title-row{display:flex;gap:10px;align-items:center}.session-card h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;flex:1}.card-subtitle{font-size:9px;color:#7c94a9;margin-top:7px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.card-meta{display:flex;gap:11px;margin-top:15px;padding-bottom:14px;border-bottom:1px solid #243241;color:#94a7b8;font-size:9px}.card-meta span{display:flex;align-items:center;gap:4px}.card-meta svg{width:12px;height:12px}.card-error{font-size:10px;color:#ed929c;line-height:1.6;overflow-wrap:anywhere;margin-top:9px;max-height:48px;overflow:auto}.card-actions{display:flex;align-items:center;gap:7px;padding-top:11px}.card-actions .button{min-height:31px;padding:7px 10px;font-size:10px;flex:1;border-radius:6px;gap:6px}.card-actions svg{width:13px;height:13px}.card-actions .icon-button{height:29px;width:29px}.empty-state{margin:0 0 20px;border:1px dashed #2a3b4c;border-radius:14px;text-align:center;padding:49px 20px;background:#10192380}.empty-icon{display:inline-flex;align-items:center;justify-content:center;width:62px;height:62px;border-radius:20px;background:#182b32;color:#78b6ad;margin-bottom:20px}.empty-icon svg{width:29px;height:29px;stroke-width:1.3}.empty-state h3{font-size:17px;font-weight:550;margin-bottom:10px}.empty-state p{color:var(--muted);font-size:12px;line-height:1.8;margin-bottom:20px}.empty-state.compact{padding:22px}.empty-state.compact p{margin:0}.workspace{margin-top:29px;border:1px solid #2c3c4b;border-radius:15px;background:#111b26;overflow:hidden;scroll-margin-top:20px}.workspace-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 23px;border-bottom:1px solid #283542}.workspace-heading .eyebrow{font-size:8px;display:block;margin-bottom:7px}.workspace-heading h2{font-size:17px}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:0}.screen-area{background:radial-gradient(ellipse at center,#172c36 0,#0d1822 70%);min-height:500px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:28px 25px}.phone-frame{background:#101820;padding:13px 10px 8px;border:1px solid #425463;border-radius:19px;box-shadow:0 12px 45px #0004}.phone-speaker{height:3px;border-radius:3px;width:35px;background:#40505c;margin:0 auto 12px}.phone-chin{width:32px;height:3px;border-radius:3px;background:#344551;margin:11px auto 2px}.game-display{width:240px;height:320px;max-width:100%;background:#050a0e;position:relative;touch-action:none;overflow:hidden;user-select:none}.game-display img{width:100%;height:100%;object-fit:fill;image-rendering:pixelated;pointer-events:none}.frame-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#698494;gap:15px;font-size:11px;text-align:center;padding:15px}.frame-placeholder svg{width:32px;height:32px;stroke-width:1.2}.keyboard-hint{font-size:8px;color:#668092;line-height:1.8;margin-top:22px;text-align:center}.keyboard-hint span{margin:0 5px}kbd{font-family:inherit;font-size:8px;color:#a2b4c3;padding:2px 4px;background:#1c2b38;border:1px solid #364552;border-radius:3px}.controller-area{border-left:1px solid #283542;padding:22px}.controller-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:18px}.controller-heading h3{font-size:12px}.softkeys{display:grid;grid-template-columns:1fr 1fr;gap:52px;margin-bottom:12px}.key{border:1px solid #354656;border-bottom-color:#465a6d;background:#1a2835;border-radius:7px;color:#ccd9e5;display:flex;align-items:center;justify-content:center;gap:7px;min-height:37px;touch-action:none;user-select:none;-webkit-user-select:none;font-size:14px;font-weight:550;box-shadow:0 2px 0 #09121a}.key small{display:block;color:#728a9e;font-size:8px;font-weight:450}.key:hover{background:#233645;border-color:#4c6577}.key.pressed,.key:active{color:#8ff1d6;background:#214b42;border-color:#62dfc0;box-shadow:none;transform:translateY(1px)}.softkeys .key{font-size:10px}.direction-pad{display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:36px 36px 36px;gap:5px;margin:0 20px 18px}.direction-pad .up{grid-area:1/2}.direction-pad .left{grid-area:2/1}.direction-pad .fire{grid-area:2/2;font-size:11px;color:#7be6ca;background:#1b3a34;border-color:#386258}.direction-pad .right{grid-area:2/3}.direction-pad .down{grid-area:3/2}.number-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.number-pad .key{min-height:39px;flex-direction:column;gap:1px}.number-pad .key small{font-size:7px;letter-spacing:1px}.text-form{margin-top:20px}.text-form label{font-size:10px;font-weight:500;color:#a9bbc9;display:block;margin-bottom:8px}.input-action{position:relative}.input-action input{padding-right:38px!important}.input-action .icon-button{position:absolute;right:3px;top:3px;width:30px;height:30px}.input-action .icon-button svg{width:15px}.field-help{font-size:10px;color:#748a9e;line-height:1.7;margin-top:7px}.logs-heading{padding:14px 21px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #283542}.logs-heading h3{font-size:11px;display:flex;align-items:center;gap:9px;color:#c2d2df}.logs-heading svg{width:15px;height:15px}.session-logs{padding:16px 21px;margin:0;border-top:1px solid #22303e;background:#0d151e;color:#849db1;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;line-height:1.8;height:167px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.item-list{display:flex;flex-direction:column;gap:11px}.item-row{display:flex;align-items:center;gap:15px;background:#111c27;border:1px solid #283847;border-radius:11px;padding:17px}.item-icon{width:41px;height:41px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#79cbb9;background:#1b3533;flex-shrink:0}.item-main{flex:1;min-width:0}.item-main h3{font-size:13px;overflow-wrap:anywhere}.item-main p{font-size:10px;margin-top:7px;color:#7e95a9;overflow-wrap:anywhere}.item-actions{display:flex;gap:5px;align-items:center}.item-actions .button{font-size:10px;min-height:33px;padding:8px 10px}.upload-area{border:1px dashed #3c5b66;background:linear-gradient(100deg,#15282a80,#11212d80);padding:36px 20px;text-align:center;border-radius:13px;cursor:pointer;margin-bottom:28px}.upload-area>svg{width:28px;height:28px;color:#71ccb8;margin-bottom:17px;stroke-width:1.4}.upload-area h3{font-size:15px;margin-bottom:9px}.upload-area p{font-size:11px;color:#9ab1bd;margin-bottom:10px}.upload-area.dragging{background:#1b3d35;border-color:var(--teal)}.file-label{cursor:pointer}.notice{font-size:12px;line-height:1.75;background:#172d30;color:#b1d4cf;border:1px solid #2d4c4e;border-radius:10px;padding:14px 16px;margin-bottom:21px;overflow-wrap:anywhere}.notice code{font-size:11px;padding:1px 4px;background:#0b1f24;border-radius:3px}.notice.warning{color:#e5cda3;background:#322d20;border-color:#554b32}.notice.subtle{display:flex;gap:12px;align-items:center;background:#152330;border-color:#2b3f50;color:#9cb6c8}.notice.subtle svg{width:18px;height:18px;color:#7fa8b9}.system-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{border:1px solid #283847;border-radius:13px;padding:24px;background:#111c27}.panel h2{display:flex;align-items:center;gap:11px;font-size:15px;margin-bottom:24px}.panel h2 svg{color:#82b8b0;width:18px}.details-list{margin:0;display:grid;grid-template-columns:1fr auto;font-size:12px;gap:20px 15px}.details-list dt{color:#8ba0b1}.details-list dd{margin:0;color:#c9d8e3;text-align:right}.details-list .ok{color:#84d9bc}.details-list .unavailable{color:#edb585}.tips{padding-left:17px;margin:0;color:#9cb0c2;font-size:12px;line-height:1.8}.tips li{padding-left:3px;margin-bottom:15px}.page-footer{margin-top:35px;padding:22px 0;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #1e2b38;color:#536d82;font-size:9px}.page-footer>span:first-child{font-weight:650;color:#71899e}dialog{padding:0;border:1px solid #354858;border-radius:15px;background:#111c27;color:#e7edf5;max-width:470px;width:calc(100% - 28px);box-shadow:0 25px 80px #0007}dialog::backdrop{background:#02070dc2;backdrop-filter:blur(5px)}.dialog-heading{padding:23px 24px 19px;display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #293b4b;gap:15px}.dialog-heading h2{font-size:20px}.dialog-heading .eyebrow{font-size:8px;margin-bottom:8px}.dialog-heading .icon-button{margin:-5px -7px 0 0}.form-fields{padding:23px 24px;display:flex;flex-direction:column;gap:16px}label{font-size:11px;color:#a9bdcf;font-weight:550}label:not(.checkbox-label) input,label select{margin-top:8px}input:not([type=checkbox]),select{width:100%;background:#0d1721;border:1px solid #354758;min-height:39px;border-radius:7px;padding:10px 11px;color:#dae6f0;font-size:12px;transition:border-color .15s;min-width:0}input::placeholder{color:#5c758b}input:focus,select:focus{border-color:#61bda8;outline:none;box-shadow:0 0 0 2px #62dfc00a}input[type=checkbox]{accent-color:var(--teal);width:14px;height:14px;flex-shrink:0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-row>label{min-width:0}.checkbox-label{display:flex;align-items:center;gap:9px;font-weight:400}.form-fields>.field-help{margin-top:-10px}.dialog-actions{padding:17px 24px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #293b4b;background:#101923}.inline-error{font-size:11px;color:#f6a0a8;line-height:1.7;overflow-wrap:anywhere}.confirm-message{padding:22px 24px;font-size:13px}.toast-region{position:fixed;right:22px;bottom:22px;z-index:20;display:flex;flex-direction:column;gap:10px;max-width:min(420px,calc(100vw - 30px))}.toast{display:flex;gap:12px;align-items:flex-start;padding:15px 17px;border-radius:10px;border:1px solid #3d6a5a;background:#17362c;color:#bcf2de;box-shadow:0 10px 40px #0004;font-size:12px;line-height:1.6;animation:toast-in .2s ease-out}.toast.error{background:#3b242c;border-color:#78404e;color:#f8b4bd}.toast button{border:0;background:none;color:inherit;margin-left:auto;padding:0 0 0 8px;font-size:17px}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#0e1720}.auth-art{position:relative;min-height:100vh;background:radial-gradient(ellipse at center,#1b4b47 0,#102c2d 45%,#0d1a21 80%);overflow:hidden;display:flex;align-items:center;justify-content:center}.auth-art::before{content:"";position:absolute;inset:0;background-image:linear-gradient(#679e9510 1px,transparent 1px),linear-gradient(90deg,#679e9510 1px,transparent 1px);background-size:40px 40px}.orbit{border:1px solid #5ab79f20;border-radius:50%;position:absolute;left:50%;top:45%;transform:translate(-50%,-50%)}.orbit-a{width:510px;height:510px}.orbit-b{width:360px;height:360px}.auth-pixel{position:relative;transform:rotate(-8deg);font-weight:850;font-size:100px;letter-spacing:-8px;line-height:1.15;color:#72dbbd;text-shadow:4px 6px 0 #234f43,9px 12px 0 #10352f;top:-35px}.auth-pixel span{display:block;letter-spacing:-5px;margin-left:50px;color:#c2f0d8}.auth-art-caption{position:absolute;left:50px;bottom:55px;font-size:13px;letter-spacing:3px;line-height:2;color:#78a99f;font-weight:650}.auth-panel{align-self:center;justify-self:center;width:min(365px,calc(100% - 48px));padding:45px 0}.auth-panel>.brand-mark{margin-bottom:40px}.auth-panel .eyebrow{font-size:9px}.auth-panel h1{font-size:37px;line-height:1.25;letter-spacing:-1.2px}.auth-intro{font-size:12px;margin:18px 0 33px}.stack{display:flex;flex-direction:column;gap:10px}.stack input{margin-top:0!important;font-size:13px;min-height:45px}.stack .button{margin-top:12px;justify-content:space-between;padding:14px 17px;min-height:45px}.auth-footer{font-size:10px;color:#6f8a9b;margin-top:39px;display:flex;align-items:center;gap:10px}.auth-panel .notice{margin-top:20px}.is-loading{opacity:.55;pointer-events:none}@keyframes toast-in{from{transform:translateY(6px);opacity:0}to{transform:translateY(0);opacity:1}}@media(min-width:1450px){.main-content{padding-left:48px;padding-right:48px}.sessions-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr))}.card-preview{height:176px}.card-preview img{height:148px}}@media(max-width:1120px){.app-shell{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding:26px 12px 17px}.sidebar .brand{margin-left:5px;margin-right:0;font-size:18px;gap:9px}.brand small{font-size:6px}.brand-mark.small{width:33px;height:33px}.nav-label{font-size:7px;letter-spacing:1.3px;margin-left:10px}.main-content{padding:0 25px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:17px}.page-heading{align-items:flex-start}.page-heading .button{font-size:10px;padding:11px 12px}.workspace-grid{grid-template-columns:minmax(0,1fr) 251px}.controller-area{padding:18px}.screen-area{padding:25px 16px}.keyboard-hint{max-width:225px}.system-grid{grid-template-columns:1fr}}@media(max-width:780px){.app-shell{display:block}.sidebar{height:auto;position:relative;border-right:0;border-bottom:1px solid #263443;padding:18px 20px 0;display:grid;grid-template-columns:1fr auto;gap:18px 0}.sidebar .brand{margin:0;font-size:19px}.nav-label{display:none}.navigation{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;order:3}.nav-item{border-radius:7px 7px 0 0;border:0;border-bottom:2px solid transparent;justify-content:center;padding:12px 4px;gap:7px;font-size:10px}.nav-item.active{background:#172b2b;border-bottom-color:var(--teal)}.nav-item svg{width:15px;height:15px}.nav-count{display:none}.sidebar-bottom{margin:0;align-self:center}.sidebar-bottom .device-label{display:none}.sidebar-bottom>.text-button{font-size:0;margin:0;padding:7px}.sidebar-bottom>.text-button svg{width:18px;height:18px}.main-content{padding:0 20px}.topbar{min-height:56px;margin-bottom:26px;font-size:9px}.page-heading{margin-bottom:23px;gap:14px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:9px}.page-heading h1{font-size:29px}.page-heading .muted{font-size:11px;max-width:310px;margin-top:9px}.page-heading .button{min-height:37px;margin-top:22px}.page-heading .button svg{width:15px;height:15px}.stat strong{font-size:23px}.stats-grid{gap:10px;margin-bottom:27px}.section-heading h2{font-size:14px}.section-heading .small{font-size:9px}.sessions-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-preview{height:149px}.session-card-body{padding:13px 11px 10px}.session-card h3{font-size:12px}.card-meta{gap:8px;font-size:8px;flex-wrap:wrap}.card-meta svg{width:11px;height:11px}.card-actions{gap:5px}.card-actions .button{font-size:9px;padding:7px}.card-actions .icon-button{width:25px}.card-actions .button svg{width:11px}.workspace-heading{padding:17px}.workspace-grid{grid-template-columns:minmax(0,1fr) 240px}.controller-area{padding:16px}.screen-area{padding:22px 10px}.game-display{width:210px;height:280px}.phone-frame{padding:10px 8px 7px}.phone-speaker{margin-bottom:10px}.keyboard-hint{font-size:7px}.item-row{padding:15px 13px;gap:12px}.item-icon{width:35px;height:35px}.item-main h3{font-size:12px}.item-main p{font-size:9px}.item-actions .button{padding:7px 8px}.auth-screen{grid-template-columns:1fr}.auth-art{display:none}.auth-panel{padding:50px 0;max-width:365px}.page-footer{font-size:8px}}@media(max-width:550px){.main-content{padding:0 15px}.sidebar{padding-left:15px;padding-right:15px}.page-heading{flex-wrap:wrap;gap:15px}.page-heading .button{margin:0;align-self:auto}.page-heading h1{font-size:28px}.page-heading .muted{max-width:100%}.page-heading>div{flex:1;min-width:230px}.stat{padding:15px 13px;gap:6px;min-height:94px}.stat-icon{width:27px;height:27px}.stat-label{font-size:9px}.stat strong{font-size:22px}.stat strong small{font-size:9px}.stats-grid{margin-bottom:25px}.section-heading{margin-bottom:13px}.sessions-grid{gap:11px}.card-preview{height:137px}.card-preview img{height:113px}.badge{font-size:8px;padding:4px 6px;min-height:20px}.preview-badge{left:8px;top:8px}.card-title-row{gap:4px}.card-meta{margin-top:12px;padding-bottom:11px;gap:7px}.card-meta span:nth-child(2){display:none}.card-actions .button{padding:7px 6px;font-size:8px;gap:3px}.card-actions .button svg{width:10px;height:10px}.card-actions .icon-button{width:23px;height:26px}.card-actions .icon-button svg{width:13px;height:13px}.session-card-body{padding:12px 10px 9px}.workspace-grid{display:block}.screen-area{min-height:0;padding:24px 18px}.game-display{width:240px;height:320px}.keyboard-hint{font-size:8px;max-width:100%;margin-top:17px}.controller-area{border-left:0;border-top:1px solid #283542;padding:20px;display:grid;grid-template-columns:1fr 1.1fr;gap:0 23px;align-items:start}.controller-heading{grid-column:1/-1;margin-bottom:19px}.softkeys{grid-column:1;grid-row:2;gap:9px;margin:0}.softkeys .key{min-height:33px;font-size:9px}.softkeys .key small{display:none}.direction-pad{grid-column:1;grid-row:3;margin:12px 0 0;gap:4px;grid-template-rows:32px 32px 32px}.direction-pad .key{min-height:32px}.number-pad{grid-column:2;grid-row:2/4;gap:6px}.number-pad .key{min-height:35px;font-size:13px}.text-form{grid-column:1/-1;margin-top:21px}.logs-heading{padding:13px 17px}.session-logs{padding:13px 17px;font-size:9px}.item-row{flex-wrap:wrap;gap:11px}.item-main{flex:1;min-width:150px}.item-actions{margin-left:auto}.item-actions .button{font-size:9px}.upload-area{padding:29px 15px}.notice{font-size:11px}.panel{padding:20px}.details-list{font-size:11px}.tips{font-size:11px}.breadcrumb{gap:7px}.connection-state{gap:6px;font-size:8px}.topbar{margin-bottom:24px}.toast-region{right:15px;bottom:15px}.toast{font-size:11px}.dialog-heading{padding:20px}.form-fields{padding:20px;gap:15px}.dialog-actions{padding:16px 20px}.dialog-heading h2{font-size:19px}.form-row{gap:11px}.nav-item{font-size:9px;gap:6px}.nav-item svg{width:14px;height:14px}.empty-state{padding:36px 17px}.empty-state p{font-size:11px}.page-footer{gap:15px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Keep the workspace inside narrow phone viewports. */
.topbar,.breadcrumb,.section-heading,.stat>div{min-width:0}
.breadcrumb{overflow:hidden}
.breadcrumb strong{white-space:nowrap}
.connection-state,.stat-icon{flex-shrink:0}
.connection-state #connection-text{white-space:nowrap}
.section-heading>h2{min-width:0}
.section-heading>#session-capacity{max-width:50%;text-align:right;line-height:1.6}
.stat strong{display:block;white-space:normal;overflow-wrap:anywhere}
.sessions-grid,.session-card,.session-card-body,.card-actions{min-width:0}
.card-actions>.button{min-width:0}
.card-actions>.icon-button{flex-shrink:0}
@media(max-width:420px){
  .sessions-grid{grid-template-columns:minmax(0,1fr)}
  .card-preview{height:170px}
  .card-preview img{height:145px}
  .session-card-body{padding:15px}
  .session-card h3{font-size:14px}
  .card-subtitle{font-size:10px}
  .card-meta{font-size:10px;gap:14px}
  .card-meta span:nth-child(2){display:flex}
  .card-actions{gap:8px}
  .card-actions .button{min-height:36px;padding:9px 12px;font-size:11px;gap:7px}
  .card-actions .button svg{width:14px;height:14px}
  .card-actions .icon-button{width:36px;height:36px}
  .card-actions .icon-button svg{width:16px;height:16px}
  .stat strong{font-size:20px;line-height:1.3}
  .stat-label{line-height:1.5}
  .stat-icon{width:25px;height:25px}
  .breadcrumb{gap:5px;font-size:8px}
  .connection-state{font-size:8px;gap:6px}
  .topbar{gap:10px}
}

/* Session actions wrap without squeezing touch targets. */
.card-actions{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:7px}
.card-actions>.button:nth-child(1),.card-actions>.button:nth-child(2){grid-column:1 / -1}
.card-actions>.proxy-switch-button{grid-column:1;min-height:34px}
.card-actions>.icon-button{grid-column:2;justify-self:end;align-self:center}
@media(max-width:420px){
  .card-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .card-actions>.button:nth-child(1),.card-actions>.button:nth-child(2){grid-column:auto}
  .card-actions>.proxy-switch-button{grid-column:1}
  .card-actions>.icon-button{grid-column:2;justify-self:end}
}

/* The native keyboard is optional; the Java keypad always remains available. */
.direct-keyboard-tools{min-width:0;border:1px solid #2d454e;background:#10242a;border-radius:10px;padding:12px;margin-bottom:18px}
.direct-toggle-label{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;color:#c2ded8;font-size:11px;line-height:1.6}
.direct-toggle-label>span:first-child{min-width:0}
.direct-toggle-label small{display:block;font-size:9px;font-weight:400;color:#7b9ca2;line-height:1.6;margin-top:3px}
.direct-toggle-label input{position:absolute;right:0;opacity:0;margin:0;width:35px;height:23px;cursor:pointer}
.toggle-track{width:34px;height:20px;flex-shrink:0;background:#31414c;border:1px solid #516673;border-radius:12px;transition:background .15s}
.toggle-track:after{content:"";display:block;width:14px;height:14px;background:#b6c6ce;border-radius:50%;margin:2px;transition:transform .15s}
.direct-toggle-label input:checked+.toggle-track{background:#28614f;border-color:#6bc9ac}
.direct-toggle-label input:checked+.toggle-track:after{transform:translateX(14px);background:#8cf1d0}
.direct-toggle-label input:focus-visible+.toggle-track{outline:2px solid var(--teal);outline-offset:4px}
.direct-keyboard-panel{border-top:1px solid #28464b;margin-top:12px;padding-top:12px}
.direct-keyboard-panel>label{display:block;line-height:1.6;font-size:10px;margin-bottom:7px;overflow-wrap:anywhere}
.direct-native-input{margin:0!important;min-width:0;width:100%;max-width:100%;font:inherit;font-size:16px!important;line-height:1.5;color:#e3eee9;background:#0b1921;border:1px solid #42646b;border-radius:7px;padding:9px 10px;resize:vertical}
.direct-native-input:focus{border-color:var(--teal);outline:none;box-shadow:0 0 0 2px #62dfc015}
.direct-native-input:disabled{opacity:.6}
.direct-keyboard-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:11px;flex-wrap:wrap}
.direct-keyboard-actions .button{font-size:10px;padding:8px 10px;min-height:35px}
.direct-keyboard-actions .text-button{font-size:9px}
.direct-keyboard-status{font-size:10px;line-height:1.7;margin-top:9px;color:#88cdb7;overflow-wrap:anywhere;min-height:17px}
.direct-keyboard-status.error{color:#f3a1ad}
@media(max-width:550px){
  .direct-keyboard-tools{grid-column:1/-1;grid-row:2;margin-bottom:18px}
  .softkeys{grid-row:3}
  .direction-pad{grid-row:4}
  .number-pad{grid-row:3/5}
  .direct-toggle-label{font-size:12px}
  .direct-toggle-label small{font-size:10px}
  .direct-keyboard-actions .button{min-height:40px;font-size:11px}
  .direct-keyboard-actions .text-button{min-height:40px;font-size:10px}
}

/* Inputs follow emulator pixel bounds; no fixed coordinates for any game. */
.game-inline-fields{position:absolute;inset:0;z-index:3;pointer-events:none}
.game-display.inline-keyboard-active{user-select:auto;-webkit-user-select:auto}
.game-inline-field{position:absolute!important;min-height:0!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;padding:1px 4px!important;resize:none!important;pointer-events:auto;touch-action:manipulation;user-select:text;-webkit-user-select:text;outline:none!important;box-shadow:none!important;line-height:1.05!important;font-size:13px!important;letter-spacing:0!important;color:#17252d!important;caret-color:#176a54;background:#fffffff5!important;border:1px solid #82998c!important;border-radius:2px!important}
.game-inline-field:focus{border-color:#2fb38c!important;outline:1px solid #3cc9a5!important;outline-offset:0;box-shadow:0 0 0 1px #0e503633!important}
.game-inline-field:disabled{background:#e1e6e0f2!important;color:#526459!important;opacity:1}
