:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#252932;background:#fff3e8;color-scheme:light;--orange:#ff680d;--muted:#8f8984;--line:#f0dfd0}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100dvh;background:radial-gradient(ellipse at 96% 4%,#ffd6b2,transparent 52%),radial-gradient(ellipse at 10% 95%,#ffe2c7,transparent 58%),#fff7f0}button,input,select{font:inherit}button{border:0;border-radius:12px;padding:12px 16px;cursor:pointer;font-size:13px;font-weight:600;color:white;background:linear-gradient(120deg,#ff8c18,#ff5d06);white-space:nowrap;box-shadow:0 5px 16px #fc6c0b18;transition:filter .15s,transform .15s}button:hover{filter:brightness(1.04)}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:default;transform:none}.quiet{background:#f1eeeb;color:#61646a;box-shadow:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ff9a45;outline-offset:3px}header{display:flex;align-items:center;gap:14px;padding:14px 28px;background:#ffffff80;border-bottom:1px solid #fff9;min-width:0}.brand-logo{width:49px;height:49px;border-radius:13px;box-shadow:0 5px 15px #ff7c1b20}h1,h2,h3,p{margin:0}h1{font-size:24px;letter-spacing:.4px}header p{font-size:11px;color:#89847f;margin-top:5px}.brand-caption{font-size:12px;color:#a49587;font-weight:400;margin-left:14px;letter-spacing:0}.header-actions{display:flex;align-items:center;gap:25px;margin-left:auto;font-size:12px;color:#6c655d}.header-actions a{color:inherit;text-decoration:none}.account-pill{display:flex;align-items:center;gap:8px}#badge{font-size:11px;color:#bd571e;border:1px solid #ffdac1;background:#fff9f2;border-radius:25px;padding:8px 12px;max-width:28%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#18a562;flex-shrink:0}main{display:grid;grid-template-columns:280px minmax(0,1fr) 76px;gap:16px;padding:16px 23px 10px;min-height:0;min-width:0;overflow:hidden}aside{overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#e6c6af transparent;padding-right:3px}.side-card{background:#ffffffd9;border:1px solid #fff;border-radius:20px;padding:21px;margin-bottom:15px;box-shadow:0 8px 24px #9d481b05}.side-card:last-child{margin-bottom:0}h2{font-size:16px;font-weight:650;display:flex;align-items:center;gap:9px}.section-icon{font-size:24px;color:var(--orange);line-height:1}.device-overview{display:flex;align-items:center;gap:12px;background:linear-gradient(120deg,#f9eee6,#fff6f0);border-radius:13px;margin:20px 0 16px;padding:14px 12px}.phone-symbol{font-size:43px;font-family:monospace;color:#f87313;border:2px solid #49372a;border-radius:7px;width:34px;height:60px;display:grid;place-items:center;background:linear-gradient(150deg,#ffc371,#ff7136);text-shadow:0 1px #fff;flex-shrink:0}.device-state{display:flex;align-items:center;gap:7px;color:#239d60;font-size:12px}h3{font-size:14px;font-weight:600;margin-top:7px;overflow-wrap:anywhere}#mode{font-size:10px;line-height:1.6;color:#95887d;margin-top:7px;overflow-wrap:anywhere}dl{display:grid;grid-template-columns:1fr auto;gap:14px;font-size:12px;margin:18px 0}dt{color:#9b938b}dd{margin:0;color:#565961;text-align:right}#network-latency{color:#239d60}.wide{width:100%;margin-top:12px}.capability{font-size:10px;color:#a29a92;margin:11px 0 0;text-align:center}.license-tag{display:inline-block;border-radius:8px;padding:6px 10px;background:#ffe4ba;color:#e16b13;font-weight:600;font-size:11px;margin-top:17px}.license-card p{font-size:12px;color:#6f6c67;line-height:1.7;margin:10px 0 7px}.side-card small{display:block;font-size:10px;color:#a99a8c;line-height:1.6}.usage-card>strong{display:block;font-size:26px;margin-top:15px;font-weight:600;color:#473c32}.usage-card p{font-size:11px;margin:7px 0;color:#9b8e81}.usage-track{height:6px;background:#f8e7dc;border-radius:8px;margin:13px 0}.usage-track span{display:block;width:28px;height:100%;border-radius:8px;background:linear-gradient(90deg,#ff9e26,#ff660b)}.steps{font-size:11px;line-height:2.2;color:#a09589;padding-left:18px;margin:14px 0 8px}.hint{font-size:10px;color:#a89b8d;line-height:1.7}.stage{min-width:0;min-height:0;display:flex;flex-direction:column;border:1px solid #ffffffeb;border-radius:22px;background:#fffaf3cc;box-shadow:0 14px 40px #a9541109;overflow:hidden;padding:16px}.toolbar{display:flex;align-items:center;gap:12px;flex:0 0 auto;margin-bottom:12px;min-width:0}.stage-heading{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.stage-heading>div{min-width:0}.stage-heading h2{font-size:16px;margin-bottom:5px}.stage-heading .section-icon{font-size:33px}#connection-title{display:block;font-size:10px;color:#9d9083;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.screen-resolution{font-size:10px;padding:8px 11px;background:#fffc;border-radius:25px;color:#8b8279;white-space:nowrap}.quality-label{font-size:10px;color:#9b8d7e;display:flex;align-items:center;gap:6px;white-space:nowrap}.quality-label select{font-size:11px;border:1px solid #eddacc;border-radius:25px;padding:7px 9px;color:#73583e;background:#fffaf4}.viewport{flex:1 1 0;min-width:0;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:16px;background:#f9ddbc url('./warm-landscape.svg') center/cover no-repeat;padding:14px 12px}canvas{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;touch-action:none;outline-color:#ff9334;border:5px solid #24221f;border-radius:20px;background:#111;box-shadow:0 13px 30px #70442435;flex-shrink:1}#empty{position:absolute;pointer-events:none;max-width:88%;border:1px solid #fff9;border-radius:17px;padding:21px 23px;text-align:center;color:#785739;background:#fff6eae8;backdrop-filter:blur(12px);font-size:14px;line-height:1.8;box-shadow:0 10px 40px #6a35191a}#empty small{font-size:11px;color:#a48a73}.remote-tools{min-height:0;display:flex;flex-direction:column;gap:12px;background:#ffffff59;padding:9px;border:1px solid #fff6;border-radius:20px;align-self:start;margin-top:13px}.tool{padding:15px 2px;background:#fffaf2;color:#454342;border-radius:16px;display:flex;flex-direction:column;align-items:center;gap:9px;font-size:11px;min-height:86px;box-shadow:none}.tool span{font-size:26px;font-weight:400;line-height:1}.tool-disconnect{background:linear-gradient(135deg,#ff9257,#ff692c);color:white}.remote-tools button:last-child span{color:#ff7b18}.inputbar{display:flex;gap:8px;flex:0 0 auto;min-width:0;margin-top:10px}.inputbar input{display:block;width:100%;min-width:0;flex:1;padding:12px 15px;border:1px solid #ece5df;border-radius:12px;background:#f0eeec;color:#443c35;font-size:12px}.inputbar input::placeholder{color:#aba39b}.inputbar input:focus{outline:2px solid #ff92302b;border-color:#ffae69}.inputbar button{font-size:11px;padding:10px 13px}.stage-hint{font-size:9px;color:#b4a393;margin:7px 2px 0;flex:0 0 auto}footer{display:flex;align-items:center;justify-content:center;gap:7px;padding:0 20px 9px;font-size:9px;color:#b6987c}footer .dot{width:5px;height:5px;background:#f9a249}footer a{color:#cd6a28;text-decoration:none;margin-left:10px}label{font-size:12px;color:#8d7c6e}#manual input{display:block;width:100%;border:1px solid #ead6c6;border-radius:8px;padding:9px;margin:7px 0 12px;background:#fffaf5;color:#534336}#status{font-size:11px;overflow-wrap:anywhere;color:#b67b47;margin:12px 0}#diagnostics dl{font-size:10px;gap:12px}#takeover-panel{flex:0 0 auto;display:flex;align-items:center;gap:12px;margin-bottom:10px;padding:12px;border:1px solid #ffc68d;border-radius:13px;background:#fff1dd}#takeover-panel p{font-size:12px;color:#a67642;line-height:1.6;flex:1}.image-panel{flex:0 0 auto;max-height:190px;overflow:auto;border:1px solid #efdfd0;border-radius:12px;background:#fff9f1;margin-top:9px;padding:8px 11px}.image-panel summary{font-size:10px;color:#b27e4e;cursor:pointer}.image-panel summary span{float:right;color:#b8a290;font-size:9px}.image-body{display:flex;gap:10px;padding-top:10px}.image-actions{flex:1;min-width:0}.image-buttons{display:flex;gap:6px;flex-wrap:wrap}.image-buttons button{font-size:10px;padding:7px 9px;border-radius:8px}#image-preview{width:75px;height:75px;object-fit:contain;background:#f0e6db;border-radius:8px}#image-progress{width:100%;height:5px;accent-color:#ff7b13;margin-top:9px}#image-status{font-size:10px;color:#ad815c;margin-top:5px;line-height:1.5}.drag-over{outline:2px dashed #ff8b29;background:#fff0de}.stage:fullscreen{padding:14px;background:#fff1df;border-radius:0}.stage:fullscreen .toolbar{padding:3px 8px}.stage:fullscreen .viewport{background-size:cover}[hidden]{display:none!important}@media(min-width:1500px){main{grid-template-columns:310px minmax(0,1fr) 83px;padding-left:28px;padding-right:28px;gap:19px}.side-card{padding:24px}.stage{padding:20px}.toolbar{margin-bottom:15px}}@media(max-width:1100px){main{grid-template-columns:240px minmax(0,1fr) 66px;padding:12px;gap:10px}.side-card{padding:17px}.brand-caption{display:none}.remote-tools{padding:7px;gap:8px}.tool{min-height:77px;font-size:10px}.header-actions{gap:14px}.inputbar button{padding:9px}.stage{padding:12px}.screen-resolution{display:none}}@media(max-width:800px){main{grid-template-columns:minmax(0,1fr) 58px;padding:8px;gap:7px}aside{display:none}header{padding:10px 14px;gap:10px}.brand-logo{width:39px;height:39px}h1{font-size:21px}header p{font-size:10px}.header-actions{display:none}#badge{margin-left:auto}.stage{border-radius:17px;padding:10px}.stage-heading h2{font-size:14px}.stage-heading .section-icon{font-size:27px}.remote-tools{padding:5px}.tool{min-height:69px;font-size:10px;border-radius:12px}.tool span{font-size:23px}.viewport{padding:10px 7px}canvas{border-width:3px;border-radius:14px}.inputbar{flex-wrap:wrap;gap:6px}.inputbar input{flex-basis:100%;padding:10px}.inputbar button{flex:1;font-size:10px}.stage-hint{display:none}.image-panel{max-height:160px}.image-panel summary span{display:none}footer{font-size:8px;padding:0 8px 6px}}@media(max-height:680px){header{padding-top:7px;padding-bottom:7px}.brand-logo{width:37px;height:37px}header p{display:none}main{padding-top:8px;padding-bottom:8px}.stage{padding:10px}.toolbar{margin-bottom:8px}.stage-hint,footer{display:none}.image-panel{margin-top:6px;padding:6px 9px}.inputbar{margin-top:7px}.remote-tools{gap:7px}.tool{min-height:68px;padding:11px 2px}.side-card{padding:17px;margin-bottom:10px}.help-card{display:none}}@media(prefers-reduced-motion:reduce){button{transition:none}}
.device-state[data-live="false"]{color:#c0884d}.device-state[data-live="false"] .dot{background:#eca54c}
@media(max-width:800px){body.diagnostics-open aside{display:block;position:fixed;z-index:10;right:75px;top:83px;bottom:65px;width:min(310px,calc(100vw - 90px));padding:10px;background:#fff4e8;border:1px solid #ffdcc0;border-radius:18px;box-shadow:0 15px 50px #8e512a30}}
/* Keep animated phone pixels on a simple compositor layer. */ canvas{contain:paint;will-change:transform;box-shadow:0 7px 16px #70442422}.viewport{isolation:isolate}@media(max-height:740px){.remote-tools{gap:6px;margin-top:0}.tool{min-height:60px;padding:9px 2px;gap:5px}.tool span{font-size:22px}}
#control-alert{flex:0 0 auto;border:1px solid #f5b99d;background:#fff0e8;color:#ad4d29;border-radius:12px;padding:12px 14px;margin-bottom:10px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}#control-build{white-space:nowrap;color:#b9804a}
.document-body{padding-top:10px}.document-panel #doc-name{font-size:12px;color:#816349;margin-bottom:10px;overflow-wrap:anywhere}.document-panel #doc-progress{width:100%;height:6px;accent-color:#ff7a16;margin-top:10px}.document-panel #doc-status,.document-panel #doc-received{font-size:11px;color:#ae7748;line-height:1.6;margin-top:7px;overflow-wrap:anywhere}.remote-tools{max-height:100%;overflow-y:auto;scrollbar-width:thin}
