:root{font-family:Inter,Segoe UI,Arial,sans-serif;font-size:16px;color:#202b35;background:#f3f5f8;--accent:#df382c;--ink:#172531;--muted:#657482;--border:#dfe5eb}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border-radius:9px;padding:12px 16px;font-size:.9rem;font-weight:650;border:1px solid transparent;transition:background .15s}button:disabled{opacity:.42;cursor:not-allowed}[hidden]{display:none!important}.topbar{display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--border);height:96px;padding:0 max(28px,calc((100vw - 1320px)/2))}.brand{display:flex;align-items:center;gap:24px;text-decoration:none;color:var(--ink)}.brand img{width:142px;height:54px;object-fit:contain}.brand>span{font-size:.8rem;letter-spacing:.2em;border-left:1px solid var(--border);padding-left:24px;font-weight:650}.server-state{display:flex;align-items:center;gap:9px;font-size:.875rem;color:var(--muted)}.server-state i{display:block;width:8px;height:8px;background:#acb7bf;border-radius:50%}.server-state i.ready{background:#25a072}.server-state i.error{background:var(--accent)}main{max-width:1376px;padding:0 28px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:40px 0 30px}.eyebrow{font-size:.75rem;font-weight:750;letter-spacing:.14em;color:#687b8b}h1{font-size:clamp(1.9rem,3vw,2.6rem);font-weight:650;letter-spacing:-.045em;margin:10px 0 12px}.intro p{margin:0;color:var(--muted);line-height:1.65}.version{color:#7a8791;font-size:.8rem;background:#e8edf2;padding:7px 12px;border-radius:6px;white-space:nowrap}.card,.setup{background:#fff;border:1px solid var(--border);border-radius:14px;padding:25px}.identity-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:22px}.card-title{display:flex;justify-content:space-between;gap:12px;align-items:center}.card-title>span:last-child{font-size:.875rem;color:var(--muted)}.identity-number{font:650 clamp(2rem,3.7vw,3rem)/1.3 ui-monospace,Consolas,monospace;letter-spacing:.06em;margin:16px 0;color:var(--ink)}.identity-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--muted);font-size:.875rem}.plain{background:transparent;color:#4f6476;padding:7px 0;border:0}.plain:hover:not(:disabled){color:var(--accent)}h2{font-size:1.06rem;margin:0 0 17px;font-weight:650}.connect h2{margin-bottom:20px}label{display:block;font-size:.875rem;font-weight:550;margin-bottom:9px;color:#4b5e6e}input,textarea{border:1px solid #cfd9e2;background:#fcfdfe;border-radius:9px;padding:12px;outline:none;color:var(--ink);min-width:0;width:100%}input:focus,textarea:focus{border-color:#7d96ac;box-shadow:0 0 0 3px #e9f0f6}.input-line{display:flex;gap:10px}.input-line input{flex:1;min-width:90px}.input-line button{white-space:nowrap}.primary{background:var(--accent);color:#fff}.primary:hover:not(:disabled){background:#c42c22}.secondary{background:#fff;border:1px solid #d5dfe7;color:#314e63}.secondary:hover:not(:disabled){background:#f3f6f9}.full{width:100%;margin-bottom:10px}.hint{font-size:.8rem;line-height:1.7;color:#758492;margin:12px 0 0}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 304px;gap:22px}.viewer,.controls{background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden}.viewer-heading{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;gap:12px}.viewer-heading h2{margin:7px 0 0;font-size:1.05rem}.pill{background:#eef2f6;color:#6b7d8c;padding:6px 9px;font-size:.75rem;border-radius:5px;white-space:nowrap}.pill.live{background:#e5f5ee;color:#1d7755}.screen-stage{position:relative;background:#152631;height:560px;display:flex;justify-content:center;align-items:center;padding:20px;overflow:hidden}.placeholder{text-align:center;color:#bdcbd5;max-width:420px;padding:22px}.placeholder h3{font-size:1.4rem;letter-spacing:-.025em;color:#f2f6f9;font-weight:550;margin:25px 0 14px}.placeholder p{font-size:.94rem;line-height:1.8;color:#8fa3b3}.screen-icon{height:56px;width:80px;border:2px solid #6b879b;border-radius:8px;margin:0 auto;position:relative;padding:8px}.screen-icon span{display:block;width:100%;height:100%;background:#243e50;border-radius:3px}.screen-icon:after{content:'';width:30px;border-bottom:2px solid #6b879b;position:absolute;bottom:-9px;left:23px}#remote-screen{max-height:100%;max-width:100%;object-fit:contain;display:block;touch-action:none;user-select:none;border-radius:3px;box-shadow:0 10px 35px #0005;cursor:crosshair}.stale{position:absolute;bottom:30px;background:#0f1b27e8;color:#e5edf5;padding:10px 18px;border:1px solid #506272;border-radius:8px;font-size:.875rem}.frame-footer{padding:14px 24px;display:flex;justify-content:space-between;gap:12px;color:#7b8b97;font-size:.8rem}.controls{padding:24px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.section-title h2{margin:0}.control-description{font-size:.875rem;line-height:1.7;color:var(--muted);margin:18px 0 22px}.divider{border-top:1px solid var(--border);margin:21px 0}.small-title{font-size:.875rem;font-weight:600;margin:0 0 13px;color:#546a7b}.nav-controls{display:flex;gap:8px;margin-bottom:22px}.nav-controls button{flex:1;background:#f8fafb;border-color:#e0e6eb;padding:12px 4px;color:#4f697c;font-size:.75rem;font-weight:500;display:flex;flex-direction:column;align-items:center;gap:7px}.nav-controls button span{font-size:1.6rem;line-height:1.5rem}textarea{resize:vertical;min-height:80px;margin-bottom:10px}.danger{color:#b5322a;border:1px solid #eacbc8;background:#fff7f6}.danger:hover:not(:disabled){background:#fceae8}#command-result{font-size:.8rem;line-height:1.7;color:#426854;min-height:22px}.message{border-radius:9px;padding:13px 18px;background:#e8f2fa;color:#335b78;border:1px solid #d3e4f0;margin-bottom:20px;font-size:.9rem;line-height:1.6}.message.error{background:#fff0ed;color:#aa3c31;border-color:#f0d4ce}.setup{display:flex;gap:30px;align-items:center;justify-content:space-between;margin-bottom:22px}.setup>div{max-width:520px}.setup p{line-height:1.7;color:var(--muted);font-size:.9rem;margin:0}.setup form{width:min(450px,100%);flex-shrink:0}.requests:empty{display:none}.request-card{display:flex;align-items:center;justify-content:space-between;gap:22px;background:#fff;border:1px solid #e5a69c;border-left:4px solid var(--accent);border-radius:12px;margin-bottom:22px;padding:22px 24px;box-shadow:0 5px 20px #70241a08}.request-card h2{margin:0 0 8px}.request-card p{font-size:.875rem;color:var(--muted);line-height:1.7;margin:0}.request-actions{display:flex;gap:10px;flex-shrink:0}.outgoing{border:1px solid #d5e1eb;background:#eaf1f7;border-radius:10px;padding:14px 20px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#456076;font-size:.9rem}footer{display:flex;justify-content:space-between;gap:20px;padding:28px 0;color:#8795a0;font-size:.75rem;letter-spacing:.06em}footer span:last-child{letter-spacing:0}
@media(max-width:980px){.workspace{grid-template-columns:minmax(0,1fr) 270px}.card,.controls{padding:20px}.identity-bottom{align-items:flex-start;flex-direction:column;gap:3px}.setup{align-items:stretch;flex-direction:column;gap:20px}.setup form{width:100%;max-width:650px}.request-card{flex-direction:column;align-items:stretch}.request-actions button{flex:1}}
@media(max-width:720px){.topbar{padding:0 20px;height:80px}.brand{gap:13px}.brand img{width:110px;height:42px}.brand>span{font-size:.65rem;padding-left:13px}.server-state{font-size:.75rem}.server-state i{width:6px;height:6px}main{padding:0 18px}.intro{padding:28px 0 24px}.intro p{font-size:.9rem}.version{display:none}.identity-grid{grid-template-columns:1fr;gap:14px}.identity-number{font-size:2.7rem;margin:13px 0}.identity-bottom{flex-direction:row;align-items:center;gap:10px;font-size:.8rem}.identity-bottom .plain{font-size:.8rem}.workspace{grid-template-columns:1fr;gap:16px}.screen-stage{height:510px;padding:16px}.viewer-heading{padding:18px}.viewer-heading h2{font-size:.94rem}.frame-footer{padding:13px 18px;font-size:.75rem}.controls{padding:22px}.nav-controls button{font-size:.875rem;padding:13px 5px}.setup{padding:22px}.input-line button{padding:12px;font-size:.8rem}.card h2{font-size:1rem}.request-card{padding:20px}.request-actions{flex-direction:column}.outgoing{align-items:flex-start;flex-direction:column}footer{font-size:.7rem}.placeholder h3{font-size:1.2rem}}
@media(max-width:380px){.brand>span{display:none}.identity-number{font-size:clamp(1.5rem,9vw,2.2rem);letter-spacing:.015em}.identity-bottom{flex-direction:column;align-items:flex-start}.input-line{flex-direction:column}.screen-stage{height:450px}}

.files-panel{margin-top:22px}.files-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.files-heading h2{font-size:1.4rem;letter-spacing:-.025em;margin:12px 0}.files-heading p{font-size:.875rem;color:var(--muted);line-height:1.7}.file-toolbar,.file-location,.file-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.file-toolbar{justify-content:space-between;padding:20px 0;border-bottom:1px solid var(--border)}.file-location{min-width:0;max-width:100%}#file-path{font-family:ui-monospace,monospace;font-size:.875rem;overflow-wrap:anywhere;flex:1}.file-row{display:flex;gap:18px;align-items:center;border-bottom:1px solid #edf1f5;padding:12px 0;min-width:0}.file-name{text-align:left;overflow-wrap:anywhere;min-width:0;flex:1;font-size:.9rem}.file-name:disabled{opacity:1;color:var(--ink);cursor:default}.file-size{font-size:.8rem;color:var(--muted);white-space:nowrap}.file-row-actions{display:flex;gap:8px}.file-row-actions button{font-size:.8rem;padding:8px 11px}.file-tools{padding-top:20px;align-items:flex-end}.file-tools>div{flex:1;min-width:220px}.upload-label{margin:0;font-size:.875rem;background:#e9f1f7;color:#355b75;padding:10px 14px;border-radius:8px;max-width:100%;line-height:1.7}.upload-label input{font-size:.8rem;border:0;padding:5px 0;background:none;max-width:245px;display:block}.file-status{font-size:.875rem;color:#37735b;line-height:1.7;min-height:24px}.file-status.error{color:#ac382e}@media(max-width:720px){.files-heading{align-items:flex-start;flex-direction:column;gap:10px}.file-row{flex-wrap:wrap;gap:8px}.file-name{flex-basis:70%}.file-row-actions{width:100%;justify-content:flex-end}.file-tools>div{min-width:100%}.file-toolbar{align-items:stretch;flex-direction:column}.file-location{flex-wrap:nowrap}}
.download-app{display:inline-block;color:#bd3127;border:1px solid #e9c4bf;background:#fff6f4;padding:12px 16px;border-radius:9px;text-decoration:none;font-size:.875rem;font-weight:600;white-space:nowrap}@media(max-width:720px){.intro{align-items:flex-start;flex-direction:column;gap:18px}.download-app{font-size:.875rem}}
