:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#1a2c42;background:#f3f6fa;font-synthesis:none;--ink:#142a45;--blue:#245ce1;--muted:#64748b;--line:#e3e9f1;--green:#0c7758;--red:#bb3447}*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.6}button,input,textarea,select{font:inherit}button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{border:0;border-radius:9px;cursor:pointer;transition:background .15s,transform .15s;font-weight:600;min-height:42px;padding:10px 17px;background:var(--blue);color:white}button:hover{filter:brightness(.94)}button:disabled{opacity:.5;cursor:not-allowed}button.secondary{background:#eef2f8;color:#263c57}button.outline{border:1px solid #cad5e2;color:#28435f;background:white}button.danger{background:#fff0f2;color:var(--red)}button.small{font-size:14px;min-height:34px;padding:6px 11px}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;background:white;color:var(--ink);padding:11px 12px;min-height:44px}textarea{resize:vertical;min-height:85px}input:focus,select:focus,textarea:focus{outline:3px solid #245ce120;border-color:var(--blue)}:focus-visible{outline:3px solid #a6beff;outline-offset:2px}label{display:block;font-size:14px;font-weight:600;margin:15px 0 6px}input[type=checkbox]{width:18px;min-height:18px;margin:0;accent-color:var(--blue)}.check{display:flex;align-items:center;gap:10px;font-weight:400}.hint,.muted{color:var(--muted)}.hint{font-size:13px;margin:7px 0 0}.error{color:var(--red);font-size:14px}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:700;text-transform:uppercase}.brand{display:flex;gap:12px;align-items:center;font-size:19px;font-weight:700;letter-spacing:.5px}.brand img{width:37px;height:37px}.brand small{display:block;font-size:11px;letter-spacing:2px;font-weight:500;opacity:.6}.auth{min-height:100vh;display:grid;grid-template-columns:minmax(320px,1fr) minmax(420px,1fr)}.auth-art{color:white;background:linear-gradient(150deg,#10263f,#193758);padding:60px 12%;display:flex;flex-direction:column;justify-content:space-between}.auth-art h1{font-size:44px;line-height:1.35;max-width:430px;letter-spacing:-1px;margin:50px 0 18px}.auth-art p{max-width:400px;color:#bed0e2;font-size:16px}.auth-art .accent{color:#83e4c3}.principles{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:20px;font-size:14px;color:#bfd3e6}.principles span:before{content:'✓';color:#83e4c3;margin-right:6px}.auth-form{display:flex;align-items:center;justify-content:center;padding:48px 28px;background:white}.auth-box{max-width:380px;width:100%}.auth-box h2{font-size:28px;margin:0 0 8px}.auth-box button[type=submit]{width:100%;margin-top:24px}.auth-box .foot{margin-top:25px;font-size:13px;color:var(--muted)}.shell{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;padding:30px 20px;background:var(--ink);color:white;display:flex;flex-direction:column}.nav button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;color:#b6c9dd;background:transparent;margin:5px 0;font-weight:500;padding:12px 15px}.nav button.selected{background:#294664;color:white}.content{grid-column:2;min-width:0}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:16px}.main{max-width:1350px;margin:auto;padding:34px 40px 48px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.page-title h1{font-size:28px;line-height:1.3;margin:0 0 8px;letter-spacing:-.6px}.page-title p{margin:0;color:var(--muted);font-size:14px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:0 0 24px}.metric{background:white;border:1px solid var(--line);border-radius:12px;padding:20px 23px;position:relative}.metric .value{font-size:32px;font-weight:700;line-height:1.5}.metric .name{font-size:13px;color:var(--muted)}.metric .metric-icon{position:absolute;right:23px;top:25px;border-radius:11px;background:#eff4ff;color:#4978d5;width:43px;height:43px;display:grid;place-items:center;font-size:21px}.panel{background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:24px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px;border-bottom:1px solid var(--line)}.panel-head h2{font-size:17px;margin:0}.panel-body{padding:24px}.empty{padding:60px 24px;text-align:center}.empty-icon{width:66px;height:66px;background:#f0f5fd;color:#547baa;border-radius:18px;font-size:32px;display:grid;place-items:center;margin:0 auto 17px}.empty h3{font-size:19px;margin:10px 0}.empty p{font-size:14px;color:var(--muted);max-width:430px;margin:0 auto 23px}.notice{border-left:3px solid #73c9af;background:#edf8f4;padding:16px 20px;border-radius:0 9px 9px 0;color:#2e6353;display:flex;gap:14px;font-size:14px;margin:0 0 25px}.notice strong{display:block;color:#205140;margin-bottom:3px}.notice.warn{background:#fff8e8;border-color:#f3c46a;color:#86621f}.notice.warn strong{color:#755513}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:12px;color:#748198;font-weight:500;background:#fafbfd;padding:13px 24px}td{padding:17px 24px;border-top:1px solid #eff2f6;font-size:14px}td .sub{display:block;font-size:12px;color:var(--muted);max-width:250px;white-space:normal;word-break:break-word}td .primary{font-weight:600}.badge{display:inline-block;padding:3px 9px;border-radius:6px;font-size:12px;background:#eef2f7;color:#607088;font-weight:500}.badge.active,.badge.bound{color:#087453;background:#e6f7ee}.badge.pending{color:#99650a;background:#fff3d7}.badge.revoked,.badge.declined{color:#a94a54;background:#fff0f2}.two-col{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr);gap:24px}.session-banner{background:#edf8f4;border:1px solid #b9e1d3;border-radius:10px;padding:17px 20px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.session-banner.pending{background:#fff8e8;border-color:#f2dda4}.session-banner p{margin:4px 0 0;font-size:13px;color:#5c716c}.messages{height:330px;overflow:auto;padding:20px 24px;background:#fafbfd}.bubble{max-width:85%;padding:10px 14px;border:1px solid #e4eaf2;background:white;border-radius:10px;margin:0 0 12px;width:fit-content;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.bubble.operator{margin-left:auto;background:#edf3ff;border-color:#dbe6ff}.bubble small{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.composer{display:flex;padding:15px;gap:10px;border-top:1px solid var(--line)}.composer input{min-width:0}.timeline{padding:7px 0}.event{display:grid;grid-template-columns:160px 1fr;gap:20px;border-bottom:1px solid var(--line);padding:16px 24px;font-size:14px}.event:last-child{border:0}.event time{color:var(--muted);font-size:12px}.event strong{font-weight:600}.event p{font-size:12px;color:var(--muted);margin:3px 0 0;overflow-wrap:anywhere}.endpoint{background:#f5f7fb;border-radius:7px;padding:10px 12px;overflow-wrap:anywhere;font-family:Consolas,monospace;font-size:14px}dialog{border:0;border-radius:15px;padding:0;width:min(520px,calc(100% - 32px));color:var(--ink);box-shadow:0 25px 70px #07162d40}
dialog:has(.v7-image-block){width:min(780px,calc(100% - 32px))}\ndialog::backdrop{background:#10213d80;backdrop-filter:blur(3px)}.modal-head{padding:23px 26px 0;display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:21px;margin:0}.modal-head button{font-size:22px;color:var(--muted);background:transparent;padding:3px 10px;min-height:30px}.modal-body{padding:15px 26px 25px}.modal-body p{font-size:14px;color:var(--muted)}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#17314c;color:white;border-radius:10px;padding:13px 24px;box-shadow:0 8px 25px #132e4230;z-index:99;max-width:calc(100% - 32px);display:none}#toast.show{display:block}.loading{padding:100px 30px;text-align:center;color:var(--muted)}.hidden{display:none!important}@media(max-width:1050px){.main{padding:28px 25px}.topbar{padding:0 25px}.sidebar{width:200px;padding:28px 15px}.shell{grid-template-columns:200px 1fr}.two-col{grid-template-columns:1fr}.auth-art{padding:45px 10%}.auth-art h1{font-size:35px}}@media(max-width:720px){.auth{grid-template-columns:1fr}.auth-art{padding:25px}.auth-art h1{font-size:27px;margin:25px 0 10px}.auth-art .principles,.auth-art .eyebrow{display:none}.auth-form{padding:30px 24px}.shell{display:block}.sidebar{position:static;width:100%;padding:16px 18px;display:block}.nav{display:flex;overflow:auto;margin-top:15px;gap:7px}.nav button{width:auto;white-space:nowrap;margin:0;padding:9px 12px;font-size:13px;min-height:37px}.topbar{height:60px;padding:0 20px}.main{padding:23px 16px}.page-title{align-items:flex-start;flex-direction:column}.page-title h1{font-size:25px}.metrics{gap:8px}.metric{padding:15px}.metric .value{font-size:26px}.metric .metric-icon{display:none}.metric .name{font-size:12px}.panel-head{padding:16px}.panel-body{padding:18px}.event{grid-template-columns:1fr;gap:4px;padding:15px 18px}.session-banner{align-items:flex-start;flex-direction:column}th,td{padding:13px 16px}.empty{padding:40px 20px}.messages{height:300px}}
:root .composer button{flex-shrink:0;white-space:nowrap}.two-col>.notice{align-self:start}

.screen-stage{background:#101b2e;min-height:280px;display:flex;align-items:center;justify-content:center;padding:20px;color:#cad7e9;text-align:center}.screen-stage img{max-width:100%;max-height:650px;object-fit:contain;border-radius:6px}.screen-panel #screen-status{font-size:14px;color:#237452}.screen-panel #screen-metrics{font-size:12px;color:#526983;font-variant-numeric:tabular-nums}.screen-panel .panel-body{padding:14px 22px}.screen-panel{overflow:hidden}

.control-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 22px;background:#eef8f4;border-bottom:1px solid #d6e9e1}.control-toolbar p{font-size:13px;margin:4px 0 0;color:#376655}.screen-stage img.control-ready{cursor:crosshair;touch-action:none;user-select:none}.control-gesture{user-select:none}@media(max-width:720px){.control-toolbar{align-items:flex-start;flex-direction:column}}
.screen-stage{gap:18px;align-items:flex-start}.screen-display{min-width:0;display:flex;align-items:center;justify-content:center}.phone-shortcuts{display:flex;flex-direction:column;gap:8px;flex:0 0 66px;position:sticky;top:20px}.phone-shortcuts button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:62px;padding:8px 4px;background:#24354d;border:1px solid #3b4b62;border-radius:10px;color:#edf5ff;font-size:12px;white-space:nowrap}.phone-shortcuts button span{font-size:25px;line-height:1}.phone-shortcuts button:hover:not(:disabled){background:#354e70;border-color:#82b5ff}.phone-shortcuts button:disabled{opacity:.4;cursor:not-allowed}.phone-shortcuts .shortcut-stop{background:#432a39;border-color:#724353;color:#ffbdca;font-size:11px}.screen-panel:fullscreen{overflow:auto;background:#101b2e}.screen-panel:fullscreen .screen-stage{min-height:calc(100vh - 190px)}.screen-panel:fullscreen .screen-stage img{max-height:calc(100vh - 230px)}@media(max-width:520px){.screen-stage{padding:12px;gap:10px}.phone-shortcuts{flex-basis:54px;gap:6px}.phone-shortcuts button{min-height:53px;font-size:11px}.phone-shortcuts button span{font-size:22px}}

/* Compact assistance request: one mode, all options shown directly. */
.request-options-title{margin:15px 0 4px;font-weight:600;color:var(--ink)}
.request-options-fields .check>span{display:flex;flex-direction:column;line-height:1.4}
.request-options-fields .check strong{font-size:14px;color:var(--ink)}
.request-options-fields .check small{font-size:12px;color:var(--muted);font-weight:400}
.language-switch{position:fixed;right:14px;bottom:14px;z-index:10000;width:auto;min-width:48px;padding:9px 13px;border:1px solid #cad5e4;border-radius:999px;background:rgba(255,255,255,.96);color:#284265;font:700 13px/1 system-ui,sans-serif;box-shadow:0 8px 24px rgba(20,42,69,.14);cursor:pointer;backdrop-filter:blur(10px)}
.language-switch:hover{background:#f4f7ff;border-color:#8ea9dd}
.language-switch:focus-visible{outline:3px solid rgba(36,92,225,.25);outline-offset:2px}
#toast a{color:#9fd0ff;font-weight:600;margin-left:12px;white-space:nowrap}
/* 「连接 Android 手机」弹窗：服务地址可编辑（七十四） */
.endpoint-row{display:flex;gap:8px;align-items:stretch}.endpoint-row .endpoint-input{flex:1;min-width:0;background:#f5f7fb;font-family:Consolas,monospace;font-size:14px}
/* 0.7.104 服务运行日志面板：桌面 exe 无黑窗口，console 输出改在「使用与设置」页查看 */
.server-log-panel .panel-body{display:block}
.log-toolbar{display:flex;align-items:center;gap:10px;margin:4px 0 10px;flex-wrap:wrap}
.log-toolbar .check{margin:0;font-size:13px;gap:6px}
.log-viewer{background:#0b1220;color:#d5dcea;border-radius:10px;padding:10px 12px;font-family:Consolas,'Courier New',monospace;font-size:12px;line-height:1.65;height:320px;overflow:auto}
.log-viewer .log-line{white-space:pre-wrap;word-break:break-all}
.log-viewer .log-time{color:#5b7bb7;margin-right:8px;user-select:none}
.log-viewer .log-line.warn{color:#e8c35a}
.log-viewer .log-line.error{color:#ff8a8a}
.log-viewer .log-empty{color:#7e8ba3}

/* ===== 深色模式（八十，0.7.115+ 真实调色板·中性灰）=====
   页面底 = #26282c，卡片/面板 = #2f3237，内嵌面 = #363a41，边线 = #4a4f57，文字 = #dfe2e6 / #a6adb6（中性灰调，语义色仅轻微着色）。
   做法：浅色规则全部原样保留，以下为 html[data-theme=dark] 前缀的覆盖段（由 styles/workspace/remote/v7skin 四份 CSS 生成，保持原加载顺序，可重跑 scripts/gen-dark.ps1 再生成）。
   投屏 / 摄像头 / 照片等媒体不经过任何滤镜，保持真实色彩；
   手机模型（phone-frame / phone-glass / phone-wallpaper）与无障碍阅读列表（reader-*）代表手机端内容观感，保持原样不进入深色；
   颜色令牌（--ink / --v7-* / --remote-* / --jy-*）由下方 token 块统一覆盖，dialog 的 UA 默认白底单独补了一条。 */

html[data-theme=dark]{color-scheme:dark;--ink:#dfe2e6;--blue:#6f92e0;--muted:#a6adb6;--line:#4a4f57;--green:#5ecf9d;--red:#f098a1;--v7-text2:#a6adb6;--v7-text3:#82898f;--v7-accent:#6f92e0;--v7-accent-light:#3d4249;--v7-green:#5ecf9d;--v7-green-light:#243831;--v7-red:#f098a1;--v7-red-light:#3a2e33;--v7-orange:#dfab5f;--v7-orange-light:#3a362b;--v7-purple:#bca9f2;--v7-purple-light:#343040;--v7-border:#4a4f57;--v7-border2:#585e68;--v7-fill:#363a41;--remote-ink:#dfe2e6;--remote-line:#4a4f57;--remote-muted:#a6adb6;--jy-blue:#7ba3e8;--jy-blue-soft:#3d4249;--jy-border:#4a4f57;--jy-card:#2f3237;--jy-muted:#a6adb6}
html[data-theme=dark] dialog{background:#2f3237}
html[data-theme=dark] .remote-workspace{--remote-line:#4a4f57;--remote-ink:#dfe2e6;--remote-muted:#a6adb6}
html[data-theme=dark] .apk-page{--jy-card:#2f3237;--jy-border:#4a4f57;--jy-muted:#a6adb6;--jy-blue:#7ba3e8;--jy-blue-soft:#3d4249}
html[data-theme=dark]{color:#dfe2e6;background:#26282c}
html[data-theme=dark] button.secondary{background:#363a41;color:#abbed5}
html[data-theme=dark] button.outline{border:1px solid #4a4f57;color:#abc0d6;background:#2f3237}
html[data-theme=dark] button.danger{background:#3a2e33}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{border:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .auth-form{background:#2f3237}
html[data-theme=dark] .topbar{background:#2f3237}
html[data-theme=dark] .metric{background:#2f3237}
html[data-theme=dark] .metric .metric-icon{background:#222b3f;color:#8fabf0}
html[data-theme=dark] .panel{background:#2f3237}
html[data-theme=dark] .empty-icon{background:#232d3d;color:#8fabf0}
html[data-theme=dark] .notice{border-left:3px solid #414a47;background:#243831;color:#5ecf9d}
html[data-theme=dark] .notice strong{color:#5ecf9d}
html[data-theme=dark] .notice.warn{background:#3a362b;border-color:#4b4843;color:#dfab5f}
html[data-theme=dark] .notice.warn strong{color:#dfab5f}
html[data-theme=dark] th{background:#2f3237}
html[data-theme=dark] td{border-top:1px solid #494d52}
html[data-theme=dark] .badge{background:#26282c;color:#bdc4ce}
html[data-theme=dark] .badge.active,html[data-theme=dark] .badge.bound{color:#5ecf9d;background:#243831}
html[data-theme=dark] .badge.pending{color:#dfab5f;background:#3a362b}
html[data-theme=dark] .badge.revoked,html[data-theme=dark] .badge.declined{color:#f098a1;background:#3a2e33}
html[data-theme=dark] .session-banner{background:#243831;border:1px solid #2f4540}
html[data-theme=dark] .session-banner.pending{background:#3a362b;border-color:#4e4c45}
html[data-theme=dark] .session-banner p{color:#bfc9c7}
html[data-theme=dark] .messages{background:#2f3237}
html[data-theme=dark] .bubble{border:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .bubble.operator{background:#222c3f;border-color:#494b52}
html[data-theme=dark] .endpoint{background:#363a41}
html[data-theme=dark] .screen-panel #screen-status{color:#5ecf9d}
html[data-theme=dark] .screen-panel #screen-metrics{color:#a6adb6}
html[data-theme=dark] .control-toolbar{background:#243831;border-bottom:1px solid #47504d}
html[data-theme=dark] .control-toolbar p{color:#5ecf9d}
html[data-theme=dark] .phone-shortcuts button:hover:not(:disabled){border-color:#44484d}
html[data-theme=dark] .language-switch{border:1px solid #474a50;background:rgba(30,48,73,.96);color:#aabdd8}
html[data-theme=dark] .language-switch:hover{background:#222a3f;border-color:#43464c}
html[data-theme=dark] .endpoint-row .endpoint-input{background:#363a41}
html[data-theme=dark] .workspace-shell{background:#26282c}
html[data-theme=dark] .workspace-shell .sidebar{background:#26282c;color:#bcc2cb;border-right:1px solid #4a4f57;scrollbar-color:#484a51 transparent}
html[data-theme=dark] .china-clock{color:#a6adb6}
html[data-theme=dark] .country-badge{background:#3a362b;color:#a6adb6}
html[data-theme=dark] .china-clock time{color:#a6adb6}
html[data-theme=dark] .global-search{background:#26282c;border:1px solid #4a4f57;color:#a6adb6}
html[data-theme=dark] .global-search:focus-within{border-color:#46484e}
html[data-theme=dark] .status-pill,html[data-theme=dark] .account-pill{border:1px solid #4a4f57;background:#2f3237;color:#a6adb6}
html[data-theme=dark] .online-pill{color:#5ecf9d;background:#243831}
html[data-theme=dark] .online-pill i,html[data-theme=dark] .online-dot{background:#396052}
html[data-theme=dark] .account-pill strong{color:#a6adb6}
html[data-theme=dark] .account-pill>span{color:#5ecf9d}
html[data-theme=dark] .workspace-brand{background:#2f3237;border:1px solid #4a4f57}
html[data-theme=dark] .workspace-brand strong{color:#b3bcce}
html[data-theme=dark] .workspace-brand small{color:#a6adb6}
html[data-theme=dark] .version-tag{color:#a6adb6;border:1px solid #4a4f57}
html[data-theme=dark] .workspace-shell .nav button,html[data-theme=dark] .nav-download{background:linear-gradient(100deg,#2f3237,#2f3237);color:#a6adb6;border:1px solid #4a4f57}
html[data-theme=dark] .workspace-shell .nav button.selected{color:#b1bdd8;background:#232a3e;border-color:#484b52}
html[data-theme=dark] .workspace-shell .nav button:hover,html[data-theme=dark] .nav-download:hover{background:#363a41}
html[data-theme=dark] .workspace-shell .nav .ui-icon{color:#a6adb6}
html[data-theme=dark] .workspace-shell .nav button.selected .ui-icon{color:#8fabf0}
html[data-theme=dark] .device-groups{background:#2f3237;border:1px solid #4a4f57}
html[data-theme=dark] .group-heading>span{color:#bac3cf}
html[data-theme=dark] .icon-button{background:#26282c;color:#a6adb6;border:1px solid #4a4f57}
html[data-theme=dark] .icon-button:hover{background:#363a41}
html[data-theme=dark] .group-heading .icon-button{background:#26282c}
html[data-theme=dark] .group-current{color:#a6adb6}
html[data-theme=dark] .group-list button{color:#a6adb6;background:#2f3237;border:1px solid #4a4f57}
html[data-theme=dark] .group-list button.selected{background:#3d4249;border-color:#484b51;color:#a6adb6}
html[data-theme=dark] .group-list button b{color:#a6adb6;background:#363a41}
html[data-theme=dark] .group-dot{background:#393b3f}
html[data-theme=dark] .group-dot.tone-1{background:#3f3c39}
html[data-theme=dark] .group-dot.tone-2{background:#425750}
html[data-theme=dark] .group-dot.tone-3{background:#3a393f}
html[data-theme=dark] .group-note{color:#a6adb6}
html[data-theme=dark] .sidebar-footer{border-top:1px solid #4a4f57}
html[data-theme=dark] .sidebar-footer>span{color:#a6adb6}
html[data-theme=dark] .sidebar-footer button{border:1px solid #4a4f57;color:#a6adb6;background:#26282c}
html[data-theme=dark] .workspace-metrics .metric{border:1px solid #4a4f57;background:linear-gradient(130deg,#2f3237,#2f3237)}
html[data-theme=dark] .workspace-metrics .metric:hover{border-color:#585e68;background:#2f3237}
html[data-theme=dark] .workspace-metrics .metric-icon{background:#363a41;border:1px solid #4a4f57;color:#a6adb6}
html[data-theme=dark] .workspace-metrics .metric-icon.mint{background:#243831;color:#5ecf9d;border-color:#4a4f57}
html[data-theme=dark] .workspace-metrics .name{color:#a6adb6}
html[data-theme=dark] .workspace-metrics .value{color:#a6adb6}
html[data-theme=dark] .workspace-metrics .value.green-text{color:#5ecf9d}
html[data-theme=dark] .workspace-metrics .value small{color:#a6adb6}
html[data-theme=dark] .workspace-title-row h1{color:#a6adb6}
html[data-theme=dark] .workspace-title-row>div>span{color:#a6adb6}
html[data-theme=dark] .view-switch .selected{background:#3d4249;border-color:#585e68;color:#a6adb6}
html[data-theme=dark] .add-device{background:#363a41;color:#8fabf0;border:1px solid #4a4f57}
html[data-theme=dark] .select-all{background:#2f3237;border:1px solid #4a4f57;color:#a6adb6}
html[data-theme=dark] .select-all b{color:#a6adb6}
html[data-theme=dark] .select-all input[type=checkbox],html[data-theme=dark] .device-card-top input[type=checkbox]{border-color:#474a50}
html[data-theme=dark] .group-move{background:#2f3237;border:1px solid #4a4f57;color:#a6adb6}
html[data-theme=dark] .toolbar-divider{background:#3f4146}
html[data-theme=dark] .filter-chip{background:#2f3237;color:#a6adb6;border:1px solid #4a4f57}
html[data-theme=dark] .filter-chip.selected{border-color:#42434a}
html[data-theme=dark] .filter-chip.selected .online-dot{background:#243d36}
html[data-theme=dark] .device-toolbar input[type=date]{color:#a6adb6;border-color:#4a4f57;background:#2f3237}
html[data-theme=dark] .clear-filter{color:#a6adb6}
html[data-theme=dark] .device-card{border:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .device-card:before{background:#393b3f}
html[data-theme=dark] .device-card.is-online:before{background:linear-gradient(90deg,#393d3f,#243831)}
html[data-theme=dark] .device-card.is-selected{border-color:#44474d}
html[data-theme=dark] .device-card-top{border-bottom:1px solid #494b53}
html[data-theme=dark] .device-status{color:#a6adb6;background:#363a41}
html[data-theme=dark] .device-status i{background:#393b3f}
html[data-theme=dark] .device-status.online{background:#243831;color:#5ecf9d;border:1px solid #4a4f57}
html[data-theme=dark] .device-status.online i{background:#39604c}
html[data-theme=dark] .device-status.revoked{background:#3a2e33;color:#f098a1}
html[data-theme=dark] .device-id{color:#a6adb6}
html[data-theme=dark] .device-id .ui-icon{color:#a6adb6}
html[data-theme=dark] .card-mini{background:#363a41;color:#a6adb6;border:1px solid #4a4f57}
html[data-theme=dark] .favorite-button{background:#3a2e33;color:#f098a1;border:1px solid #52484b}
html[data-theme=dark] .favorite-button.is-favorite{background:#3a362b;border-color:#4e4c45;color:#dfab5f}
html[data-theme=dark] .favorite-button.is-favorite .ui-icon{fill:#3e3823}
html[data-theme=dark] .device-name-line h2{color:#a6adb6}
html[data-theme=dark] .device-name-line>span{color:#a6adb6}
html[data-theme=dark] .device-specs>span{border:1px solid #4a4f57;background:#2f3237;color:#a6adb6}
html[data-theme=dark] .device-specs small{color:#a6adb6}
html[data-theme=dark] .device-details dt{color:#a6adb6}
html[data-theme=dark] .device-details dd{color:#a6adb6}
html[data-theme=dark] .device-details>div:first-child dd{color:#a6adb6}
html[data-theme=dark] .detail-pill{background:#3f4046;color:#a6adb6;border:1px solid #4a4f57}
html[data-theme=dark] .detail-pill.green{background:#243831;border-color:#4a4f57;color:#5ecf9d}
html[data-theme=dark] .detail-pill.amber{background:#3a362b;border-color:#514e48;color:#dfab5f}
html[data-theme=dark] .detail-pill.low-battery{background:#3a2e33;border-color:#524948;color:#f098a1}
html[data-theme=dark] .inline-edit{color:#a6adb6}
html[data-theme=dark] .inline-edit:hover{color:#8fabf0}
html[data-theme=dark] .device-card-bottom{border-top:1px solid #4a4f57}
html[data-theme=dark] .device-primary{background:#363a41;color:#8fabf0;border:1px solid #4a4f57}
html[data-theme=dark] .device-card-bottom .secondary.small{background:#363a41;color:#a6adb6;border:1px solid #4a4f57}
html[data-theme=dark] .workspace-empty{color:#a6adb6}
html[data-theme=dark] .workspace-empty>.ui-icon{color:#a6adb6}
html[data-theme=dark] .workspace-empty h2{color:#a6adb6}
html[data-theme=dark] .workspace-empty button{background:#363a41;color:#8fabf0;border:1px solid #484b52}
html[data-theme=dark] .device-pagination{border-top:1px solid #4a4f57;color:#a6adb6}
html[data-theme=dark] .device-pagination button{background:#363a41;color:#a6adb6}
html[data-theme=dark] .device-pagination>div>span{background:#363a41;border:1px solid #4a4f57;color:#a6adb6}
html[data-theme=dark] .device-pagination small{color:#a6adb6}
html[data-theme=dark] .workspace-footnote{color:#a6adb6}
html[data-theme=dark] .workspace-shell .page-title h1{color:#a6adb6}
html[data-theme=dark] .workspace-shell .page-title p{color:#a6adb6}
html[data-theme=dark] .workspace-shell .panel{border-color:#4a4f57}
html[data-theme=dark] .workspace-shell .panel-head h2{color:#a6adb6}
html[data-theme=dark] .workspace-shell .screen-panel .panel-head{background:#2f3237}
html[data-theme=dark] .workspace-shell .screen-panel .control-toolbar{background:#243831}
html[data-theme=dark] .auth-art{background:linear-gradient(150deg,#363a41,#272f3a);color:#a6adb6}
html[data-theme=dark] .auth-art p,html[data-theme=dark] .auth-art .principles{color:#a6adb6}
html[data-theme=dark] .auth-art .accent{color:#8fabf0}
html[data-theme=dark] .auth-art .brand{color:#a6adb6}
html[data-theme=dark] .auth-art .principles span:before{color:#a6adb6}
html[data-theme=dark] .auth-box h2{color:#a6adb6}
html[data-theme=dark] .workspace-shell .sidebar{border-bottom:1px solid #4a4f57}
html[data-theme=dark] .auth-art h1{color:#a6adb6}
html[data-theme=dark] .install-page{background:#2f3237;border:1px solid #4a4f57;color:#aabdd6}
html[data-theme=dark] .install-page h1{color:#dfe2e6}
html[data-theme=dark] .install-subtitle{color:#a6adb6}
html[data-theme=dark] .workspace-topbar{border-bottom-color:#46494e}
html[data-theme=dark] .global-search{background:#2f3237;border-color:#45494e}
html[data-theme=dark] .global-search input{color:#dfe2e6}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#bbc3cd}
html[data-theme=dark] .workspace-brand strong,html[data-theme=dark] .workspace-title-row h1,html[data-theme=dark] .workspace-shell .page-title h1,html[data-theme=dark] .workspace-shell .panel-head h2,html[data-theme=dark] .device-name-line h2{color:#dfe2e6}
html[data-theme=dark] .workspace-shell .nav button,html[data-theme=dark] .nav-download{color:#b2bed0}
html[data-theme=dark] .workspace-shell .nav button.selected{color:#8fabf0;background:#3d4249;border-color:#45474d}
html[data-theme=dark] .group-heading > span{color:#aabdd5}
html[data-theme=dark] .group-list button{color:#b2bed0}
html[data-theme=dark] .group-list button.selected{color:#8fabf0;background:#3d4249;border-color:#45474d}
html[data-theme=dark] .group-list button b{color:#b4c0d1;background:#282e39}
html[data-theme=dark] .group-current,html[data-theme=dark] .group-note,html[data-theme=dark] .sidebar-footer > span{color:#a6adb6}
html[data-theme=dark] .sidebar-footer button{color:#b2bed0}
html[data-theme=dark] .workspace-metrics .name{color:#b7c0ce}
html[data-theme=dark] .workspace-metrics .value{color:#dfe2e6}
html[data-theme=dark] .workspace-metrics .metric-icon{color:#b1c0d7;background:#363a41}
html[data-theme=dark] .workspace-title-row > div > span,html[data-theme=dark] .workspace-shell .page-title p{color:#a6adb6}
html[data-theme=dark] .icon-button,html[data-theme=dark] .view-switch .selected{color:#afbed7;border-color:#45494e}
html[data-theme=dark] .view-switch .selected{background:#3d4249;border-color:#43464c}
html[data-theme=dark] .group-move,html[data-theme=dark] .filter-chip,html[data-theme=dark] .select-all{color:#b2bed0}
html[data-theme=dark] .device-toolbar input[type=date]{color:#b5bfcf}
html[data-theme=dark] .clear-filter{color:#8fabf0}
html[data-theme=dark] .device-card-top{border-bottom-color:#484c51}
html[data-theme=dark] .device-card:before{background:#424b57}
html[data-theme=dark] .device-name-line > span{color:#a6adb6}
html[data-theme=dark] .device-status.online{background:#26463c;border-color:#444d48}
html[data-theme=dark] .device-id{color:#afbed5}
html[data-theme=dark] .card-mini{color:#abbdda;background:#363a41;border-color:#46494f}
html[data-theme=dark] .card-mini.card-delete{color:#f098a1;background:#3a2e33;border-color:#585e68}
html[data-theme=dark] .card-mini.card-delete:hover{background:#463038;border-color:#4a4144}
html[data-theme=dark] .device-specs > span{color:#a6adb6;background:#363a41}
html[data-theme=dark] .device-details dd{color:#aabdd6}
html[data-theme=dark] .device-details > div:first-child dd{color:#aabdd6}
html[data-theme=dark] .inline-edit{color:#8fabf0}
html[data-theme=dark] .detail-pill{color:#a6adb6}
html[data-theme=dark] .detail-pill.green{color:#5ecf9d;background:#26463c;border-color:#444d48}
html[data-theme=dark] .detail-pill.amber{color:#dfab5f;background:#3a362b;border-color:#4c4943}
html[data-theme=dark] .device-card-bottom{border-top-color:#484c51}
html[data-theme=dark] .device-card-bottom .secondary.small{color:#a6adb6;border-color:#46494f;background:#363a41}
html[data-theme=dark] .device-pagination,html[data-theme=dark] .device-pagination small,html[data-theme=dark] .workspace-footnote{color:#a6adb6}
html[data-theme=dark] .device-pagination > div > span{color:#8fabf0;border-color:#585e68}
html[data-theme=dark] .workspace-empty h2,html[data-theme=dark] .workspace-shell .panel-head h2{color:#aabdd6}
html[data-theme=dark] .workspace-empty p,html[data-theme=dark] .workspace-empty button{color:#a6adb6}
html[data-theme=dark] .monitor-note{color:#bcc2cb}
html[data-theme=dark] .monitor-heading{color:#b3bcce}
html[data-theme=dark] .monitor-cmd{border:1px solid #46494f;background:#363a41;color:#abbdda}
html[data-theme=dark] .monitor-cmd:hover{background:#363a41}
html[data-theme=dark] .monitor-events{border:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .monitor-event time{color:#a6adb6}
html[data-theme=dark] .monitor-event strong{color:#b1bdd8}
html[data-theme=dark] .monitor-event code{color:#b3bcce}
html[data-theme=dark] .monitor-event span{color:#a6adb6}
html[data-theme=dark] .monitor-empty{color:#a6adb6}
html[data-theme=dark] .monitor-command strong{color:#b3bcce}
html[data-theme=dark] .monitor-command time{color:#a6adb6}
html[data-theme=dark] .monitor-command-result{color:#bcc2cb}
html[data-theme=dark] .monitor-command-result .monitor-thumb{border:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .monitor-command-result .monitor-media{color:#8fabf0}
html[data-theme=dark] .monitor-form label{color:#b7c0ce}
html[data-theme=dark] .monitor-form input,html[data-theme=dark] .monitor-form select{border:1px solid #4a4f57;background:#2f3237;color:#b0bed1}
html[data-theme=dark] .monitor-form textarea{border:1px solid #4a4f57;background:#2f3237;color:#b0bed1}
html[data-theme=dark] .monitor-inject-apps{border:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .monitor-inject-apps .check{color:#b7c0ce}
html[data-theme=dark] .monitor-empty-inline{color:#a6adb6}
html[data-theme=dark] .monitor-command-result .monitor-table th,html[data-theme=dark] .monitor-command-result .monitor-table td{border:1px solid #4a4f57}
html[data-theme=dark] .monitor-command-result .monitor-table th{background:#363a41;color:#b7c0ce}
html[data-theme=dark] .monitor-command-result .monitor-table td{color:#bcc2cb}
html[data-theme=dark] .apk-btn.ghost{color:#b1c0d7}
html[data-theme=dark] .apk-input{border:1px solid #4a4f57;background:#2f3237;color:#dfe2e6}
html[data-theme=dark] .apk-page .build-card:before{background:#3e485b}
html[data-theme=dark] .apk-page .build-card:has(.badge.green):before{background:#3b5e4f}
html[data-theme=dark] .apk-page .build-app-icon{color:#adbdd8;background:#363a41}
html[data-theme=dark] .apk-page .badge{background:#3f4046}
html[data-theme=dark] .apk-page .badge.green{background:#243831;border-color:#464f49;color:#5ecf9d}
html[data-theme=dark] .apk-page .badge.red{background:#3a2e33;border-color:#504748;color:#f098a1}
html[data-theme=dark] .apk-page .badge.blue{border-color:#484b51;color:#8fabf0}
html[data-theme=dark] .apk-page .build-version,html[data-theme=dark] .apk-page .build-enrolled,html[data-theme=dark] .apk-page .build-enrollment{background:#363a41}
html[data-theme=dark] .apk-page .build-row-details{background:#363a41}
html[data-theme=dark] .apk-page .build-row-details>summary{color:#dfe2e6}
html[data-theme=dark] .apk-page .build-row-details>summary:hover{background:#3f4246}
html[data-theme=dark] .apk-page .build-row-details>summary>b{color:#8fabf0}
html[data-theme=dark] [data-apk-panel] .field label{color:#dfe2e6}
html[data-theme=dark] [data-apk-panel] .field small{color:#a0a7b0}
html[data-theme=dark] [data-apk-panel] .field input{border:1px solid #4a4f57;background:#2f3237;color:#dfe2e6}
html[data-theme=dark] [data-apk-panel] .field select{border:1px solid #4a4f57;background:#2f3237;color:#dfe2e6}
html[data-theme=dark] [data-apk-panel] .studio-apk-preview{border:1px dashed #4a4f57;background:#26282c}
html[data-theme=dark] [data-apk-panel] .studio-apk-preview .preview-icon{background:#363a41;color:#abc4e3}
html[data-theme=dark] [data-apk-panel] .studio-apk-preview small{color:#a0a7b0}
html[data-theme=dark] [data-apk-panel] .apk-latest-info{border:1px solid #4a4f57;background:#26282c}
html[data-theme=dark] [data-apk-panel] .apk-latest-info div{border-bottom:1px solid #494c52}
html[data-theme=dark] [data-apk-panel] .apk-latest-info span{color:#a0a7b0}
html[data-theme=dark] .remote-mode .workspace-shell{background:#363a41}
html[data-theme=dark] .remote-layout{color:#a6adb6;background:#2f3237}
html[data-theme=dark] .remote-tag{border:1px solid #585e68;background:#363a41;color:#a6adb6}
html[data-theme=dark] .remote-tag.green{color:#5ecf9d;background:#243831;border-color:#434c49}
html[data-theme=dark] .remote-tag.amber{color:#dfab5f;background:#3a362b;border-color:#6b5a2b}
html[data-theme=dark] .remote-tag.violet{color:#bca9f2;background:#343040;border-color:#454160}
html[data-theme=dark] .phone-unit{background:linear-gradient(150deg,#2f3237,#363a41);border:1px solid #4a4f57}
html[data-theme=dark] .phone-title{color:#dfe2e6}
html[data-theme=dark] .phone-title .ui-icon{color:#a6adb6}
html[data-theme=dark] .phone-mode{background:#363a41;color:#8fabf0;border:1px solid #4a4f57}
html[data-theme=dark] .screen-tab{border:1px solid #4a4f57;background:#363a41;color:#b7c4d6}
/* 0.7.138 深色主题选中态：上方规则（0,2,1）优先级压过 remote.css 的 .screen-tab.selected（0,2,0），
   链路 tab（截图/视频）选中后仍显示未选中配色（真机反馈「截图投屏已开始但截图 tab 没有高亮」；
   清晰度侧栏选择器为三级不受影响）——补同前缀的 selected 覆盖，蓝色实底高亮在深色下保持可见 */
html[data-theme=dark] .screen-tab.selected{background:#245ce1;border-color:#245ce1;color:#fff}
html[data-theme=dark] .screen-tab.selected[data-switching]::after{border-color:rgba(74,79,84,.35);border-top-color:#4a4f54}
html[data-theme=dark] .shot-fps{border:1px solid #4a4f57;background:#2f3237;color:#dfe2e6}
html[data-theme=dark] .phone-indicator{background:#3f4246}
html[data-theme=dark] .phone-indicator:after{background:#2f3237}
html[data-theme=dark] .phone-placeholder strong{border:1px solid #4a4f5420}
html[data-theme=dark] .phone-placeholder .screen-start{border:1px solid #4a4f5430}
html[data-theme=dark] .remote-mode .remote-screen #control-status{color:#5ecf9d}
html[data-theme=dark] .remote-screen .phone-shortcuts{background:#2f3237c9;border:1px solid #4a4f57}
html[data-theme=dark] .remote-screen .phone-shortcuts button{background:#242c3d;color:#8fabf0;border:1px solid #585e68}
html[data-theme=dark] .remote-screen .phone-shortcuts button:hover:not(:disabled){background:#222d3f;border-color:#43474c}
html[data-theme=dark] .remote-screen .phone-shortcuts button.shortcut-stop{background:#3a2e33;color:#f098a1;border-color:#585e68}
html[data-theme=dark] .screen-connection{color:#a6adb6}
html[data-theme=dark] .screen-connection > i{background:#424b57}
html[data-theme=dark] .remote-mode .remote-screen #screen-status{color:#5ecf9d}
html[data-theme=dark] .screen-recovery{border:1px solid #6b5a2b;background:#3a362b;color:#dfab5f}
html[data-theme=dark] .remote-composer input{border-color:#585e68;background:#2f3237d9}
html[data-theme=dark] .remote-mode .remote-session-banner{border-color:#464f4e;background:#243831}
html[data-theme=dark] .remote-session-banner p{color:#5ecf9d}
html[data-theme=dark] .remote-session-banner > .ui-icon{color:#5ecf9d}
html[data-theme=dark] .remote-mode .remote-session-banner.pending{background:#3a362b;border-color:#4e4c46}
html[data-theme=dark] .remote-quick{scrollbar-color:#585e68 transparent}
html[data-theme=dark] .remote-quick section{background:#2f3237b3;border:1px solid #4a4f57}
html[data-theme=dark] .remote-quick h3{color:#b9c5d1}
html[data-theme=dark] .remote-tool{color:#8fabf0;background:linear-gradient(#363a41,#363a41);border:1px solid #4a4f57}
html[data-theme=dark] .remote-tool.stop{background:#243831;color:#5ecf9d;border-color:#454e49}
html[data-theme=dark] .remote-tool.danger{background:#3a2e33;color:#f098a1;border-color:#585e68}
html[data-theme=dark] .device-tool-hint{color:#a6adb6}
html[data-theme=dark] .camera-panel{border:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .camera-panel small{color:#a6adb6}
html[data-theme=dark] .quick-footer{color:#bdc6d0}
html[data-theme=dark] .remote-inspector{background:#2f3237be;border:1px solid #4a4f57}
html[data-theme=dark] .remote-tabs{background:#2f3237;border-bottom:1px solid #484c51}
html[data-theme=dark] .remote-tabs button{color:#a6adb6;background:#363a41;border:1px solid #4a4f57}
html[data-theme=dark] .remote-tabs button.selected{border-color:#44474d;background:#3d4249;color:#8fabf0}
html[data-theme=dark] .remote-panes{scrollbar-color:#585e68 transparent;background:radial-gradient(ellipse at 100% 0,#22273f6b,transparent 60%)}
html[data-theme=dark] .remote-pane-heading small{color:#a6adb6}
html[data-theme=dark] .remote-pane-heading h2{color:#dfe2e6}
html[data-theme=dark] .remote-description{color:#a6adb6}
html[data-theme=dark] .remote-add{border:1px solid #585e68;background:#242e3d;color:#8fabf0}
html[data-theme=dark] .remote-empty > .ui-icon{background:#363a41;color:#a6adb6}
html[data-theme=dark] .remote-empty h3{color:#8fabf0}
html[data-theme=dark] .remote-empty p{color:#a6adb6}
html[data-theme=dark] .remote-pane-footer{border-top:1px solid #484c51;color:#a6adb6}
html[data-theme=dark] .remote-section-label{color:#8fabf0}
html[data-theme=dark] .toolbox-grid .remote-tool{background:#2f3237;border-color:#585e68}
html[data-theme=dark] .toolbox-grid .remote-tool{background:linear-gradient(130deg,#363a41,#2f3237);border-color:#585e68}
html[data-theme=dark] .toolbox-grid .remote-tool .ui-icon{background:#2f3237;border:1px solid #484b51}
html[data-theme=dark] .toolbox-grid .remote-tool.planned{background:#363a41;color:#a6adb6}
html[data-theme=dark] .toolbox-keyguard-select{color:#8fabf0;background:linear-gradient(#363a41,#363a41);border:1px solid #4a4f57}
html[data-theme=dark] .toolbox-grid .remote-tool.mock.safe .ui-icon{color:#5ecf9d;border-color:#464f4b;background:#243831}
html[data-theme=dark] .toolbox-grid .remote-tool.mock.danger{color:#8fabf0;background:linear-gradient(130deg,#363a41,#2f3237);border-color:#585e68}
html[data-theme=dark] .toolbox-grid .remote-tool.mock.danger .ui-icon{color:#f098a1;border-color:#504749;background:#3a2e33}
html[data-theme=dark] .toolbox-safety{border:1px solid #4a4f57;background:#363a41;color:#bec5ce}
html[data-theme=dark] .permission-row{border:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .permission-row strong{color:#dfe2e6}
html[data-theme=dark] .permission-row small{color:#a6adb6}
html[data-theme=dark] .permission-icon{background:#343040;color:#bca9f2}
html[data-theme=dark] .remote-callout{color:#bac6d0;background:#283339;border:1px solid #4a4f57}
html[data-theme=dark] .test-sms-form{border:1px solid #4a4f57;background:linear-gradient(145deg,#2f3237,#363a41)}
html[data-theme=dark] .test-sms-form label{color:#8fabf0}
html[data-theme=dark] .test-sms-form input,html[data-theme=dark] .test-sms-form select,html[data-theme=dark] .test-sms-form textarea{background:#2f3237}
html[data-theme=dark] .remote-photo-grid figure{border:1px solid #4a4f57;background:#363a41}
html[data-theme=dark] .remote-photo-grid img{background:#363a41}
html[data-theme=dark] .remote-photo-grid figcaption small{color:#a6adb6}
html[data-theme=dark] .remote-photo-pending{background:#363a41}
html[data-theme=dark] .remote-photo-grid figure > img{background:#363a41}
html[data-theme=dark] .remote-photo-pager small{color:#bec4ce}
html[data-theme=dark] .remote-photo-actions > a,html[data-theme=dark] .remote-photo-actions > button{border:1px solid #4a4f57;background:#363a41;color:#a6adb6}
html[data-theme=dark] .remote-app{border:1px solid #585e68;background:#2f3237}
html[data-theme=dark] .remote-app > span:first-child{background:linear-gradient(145deg,#22293f,#2f223f);color:#a6adb6}
html[data-theme=dark] .remote-app strong{color:#dfe2e6}
html[data-theme=dark] .remote-app small{color:#a6adb6}
html[data-theme=dark] .remote-app-install{border-color:#585e68;background:linear-gradient(135deg,#363a41,#2f3237)}
html[data-theme=dark] .remote-app-install > span:first-child{color:#8fabf0;background:#2f3237}
html[data-theme=dark] .remote-app-install > button{border:1px solid #585e68}
html[data-theme=dark] .remote-app-install > button:disabled{background:#3f4246;border-color:#4a4f57;color:#a6adb6}
html[data-theme=dark] .remote-app-self{border-color:#464f47;background:linear-gradient(135deg,#243831,#243831)}
html[data-theme=dark] .remote-app-self > span:first-child{color:#5ecf9d;background:#2f3237}
html[data-theme=dark] .remote-app-action{border:1px solid #585e68}
html[data-theme=dark] .remote-app-action.danger{border-color:#4d4444}
html[data-theme=dark] .remote-app-action:disabled{background:#3f4246;border-color:#4a4f57;color:#a6adb6}
html[data-theme=dark] .remote-app-placeholder{color:#a6adb6}
html[data-theme=dark] .remote-file{background:#2f3237;border:1px solid #585e68}
html[data-theme=dark] .remote-file small{color:#a6adb6}
html[data-theme=dark] .remote-file a,html[data-theme=dark] .remote-file button{color:#a6adb6;background:#363a41;border:1px solid #4a4f57}
html[data-theme=dark] .bank-template-suggest button{color:#8fabf0;background:linear-gradient(#363a41,#363a41);border:1px solid #4a4f57}
html[data-theme=dark] .bank-template-suggest button:hover{border-color:#44424b}
html[data-theme=dark] .bank-template-suggest small{color:#a6adb6}
html[data-theme=dark] .bank-template-empty{color:#a6adb6}
html[data-theme=dark] .bank-template-suggest button.selected{color:#bbafdc;background:linear-gradient(#343040,#2d223f);border-color:#44424b}
html[data-theme=dark] .bank-template-selected{color:#bbafdc}
html[data-theme=dark] .remote-file.bank-template-row-selected{border-color:#44424b;background:linear-gradient(#2f3237,#343040)}
html[data-theme=dark] .activity-entry{border-bottom:1px solid #4a4f57}
html[data-theme=dark] .activity-entry > span{background:#26313b;color:#a6adb6}
html[data-theme=dark] .activity-entry strong{color:#8fabf0}
html[data-theme=dark] .activity-entry p{color:#a6adb6}
html[data-theme=dark] #remote-note-form{border:1px solid #585e68;background:#363a41}
html[data-theme=dark] .remote-note{background:#2f3237;border:1px solid #4a4f57;border-left:3px solid #44424b}
html[data-theme=dark] .remote-note footer button{color:#cac0cd}
html[data-theme=dark] .inspector-status{border-top:1px solid #4a4f57;background:#2f3237;color:#a6adb6}
html[data-theme=dark] .remote-screen:fullscreen{background:#363a41}
html[data-theme=dark] .remote-mode .workspace-shell{background-color:#26323b;background-image:linear-gradient(30deg,#27323a55 12%,transparent 12.5%,transparent 87%,#27323a55 87.5%),linear-gradient(150deg,#27323a55 12%,transparent 12.5%,transparent 87%,#27323a55 87.5%)}
html[data-theme=dark] .phone-unit{border-color:#4a4f57;background:#2f3237}
html[data-theme=dark] .phone-enabled{background:#243831;border:1px solid #585e68;color:#5ecf9d}
html[data-theme=dark] .phone-title-action,html[data-theme=dark] .phone-popout{border:1px solid #4a4f57;background:#363a41;color:#b7c4d6}
html[data-theme=dark] .remote-composer label{color:#8fabf0}
html[data-theme=dark] .remote-composer input{background:#2f3237}
html[data-theme=dark] .remote-screen .phone-shortcuts button{background:#363a41}
html[data-theme=dark] .remote-quick section,html[data-theme=dark] .remote-quick [data-device-tools-session]{border:1px solid #4a4f57;background:#2f3237d9}
html[data-theme=dark] .remote-quick h3{border-bottom:1px solid #484d52;color:#a6adb6}
html[data-theme=dark] .remote-tool{background:linear-gradient(#363a41,#363a41);color:#8fabf0}
html[data-theme=dark] .remote-tool.stop{background:#243831;border-color:#454e4a;color:#5ecf9d}
html[data-theme=dark] .remote-tool.danger{background:#3a2e33;border-color:#585e68;color:#ddb0b7}
html[data-theme=dark] .remote-inspector{border-color:#4a4f57;background:#2f3237ed}
html[data-theme=dark] .remote-tabs{border-bottom:10px solid #494e53;background:#2f3237}
html[data-theme=dark] .remote-tabs button{background:#363a41;border-color:#4a4f57;color:#b9c3d2}
html[data-theme=dark] .remote-tabs button.selected{color:#8fabf0;background:#363a41;border-color:#585e68}
html[data-theme=dark] .remote-panes{background:#2f3237}
html[data-theme=dark] .assist-console{color:#dfe2e6}
html[data-theme=dark] .assist-console-head{border-bottom:1px solid #484c51;background:#2f3237}
html[data-theme=dark] .assist-console-head > strong{color:#acbed3}
html[data-theme=dark] .assist-console-head button{border:1px solid #4a4f57;background:#2f3237;color:#bec5ce}
html[data-theme=dark] .assist-console-head button.selected,html[data-theme=dark] .assist-console-head button:nth-child(2){border-color:#44414a}
html[data-theme=dark] .assist-board,html[data-theme=dark] .assist-neural{border-bottom:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .assist-board > header,html[data-theme=dark] .assist-neural > header{border-bottom:1px solid #4a4f57;background:linear-gradient(90deg,#2b223f,#2f3237)}
html[data-theme=dark] .assist-kicker{border:1px solid #4a4660;background:#2b223f;color:#bca9f2}
html[data-theme=dark] .assist-card{border:1px solid #4b4852;background:#2f3237}
html[data-theme=dark] .assist-card > div{border:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .assist-card small{color:#a6adb6}
html[data-theme=dark] .assist-card b{color:#5ecf9d}
html[data-theme=dark] .assist-card > button{border:1px solid #4a4f57;background:#2f3237;color:#bcc5cf}
html[data-theme=dark] .assist-card.compact p{color:#a0a7b0}
html[data-theme=dark] .assist-neural{background:linear-gradient(100deg,#2f3237,#2f3237)}
html[data-theme=dark] .assist-chips button{border:1px solid #4a4f57;background:#2f3237;color:#a0a7b0}
html[data-theme=dark] .assist-answer{border:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .assist-answer small{color:#bca9f2}
html[data-theme=dark] .assist-answer p{color:#a0a7b0}
html[data-theme=dark] .assist-command{border-top:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .assist-command textarea{border-color:#4a4f57}
html[data-theme=dark] .assist-command .assist-stop{background:#3a2e33;color:#f098a1;border:1px solid #4a3940}
html[data-theme=dark] .assist-console > footer{color:#a6adb6}
html[data-theme=dark] .phone-unit{border:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .phone-title{border-bottom:1px solid #474c51;background:#2f3237}
html[data-theme=dark] .monitor-toolbox{background:#2f3237}
html[data-theme=dark] .speed-test-panel{border:1px solid #4a4f57;background:linear-gradient(135deg,#363a41,#2f3237)}
html[data-theme=dark] .speed-test-head strong{color:#a9bfd9}
html[data-theme=dark] .speed-test-head small{color:#a6adb6}
html[data-theme=dark] .speed-test-result > div{border:1px solid #4a4f57;background:#2f3237}
html[data-theme=dark] .speed-test-result small{color:#a6adb6}
html[data-theme=dark] .speed-test-result strong{color:#8fabf0}
html[data-theme=dark]{background:#26282c}
html[data-theme=dark] body{background:#26282c;color:#dfe2e6}
html[data-theme=dark] *{scrollbar-color:#4a4f57 transparent}
html[data-theme=dark] *::-webkit-scrollbar-thumb{background:#3f4146}
html[data-theme=dark] a{color:#8fabf0}
html[data-theme=dark] button.secondary{background:#2f3237;border:1px solid #4a4f57;color:#dfe2e6}
html[data-theme=dark] button.secondary:hover{background:#363a41}
html[data-theme=dark] button.outline{border:1px solid #4a4f57;color:#dfe2e6;background:#2f3237}
html[data-theme=dark] button.danger{background:#3a2e33;color:#f098a1}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{border-color:#4a4f57;color:#dfe2e6}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#82898f}
html[data-theme=dark] input:focus,html[data-theme=dark] select:focus,html[data-theme=dark] textarea:focus{border-color:#4a4f57}
html[data-theme=dark] .hint,html[data-theme=dark] .muted{color:#a0a7b0}
html[data-theme=dark] .error{color:#f098a1}
html[data-theme=dark] .auth-art{background:#363a41;color:#dfe2e6}
html[data-theme=dark] .auth-art h1{color:#dfe2e6}
html[data-theme=dark] .auth-art p{color:#a0a7b0}
html[data-theme=dark] .principles{color:#a0a7b0}
html[data-theme=dark] .principles span:before{color:#8fabf0}
html[data-theme=dark] .auth-box h2{color:#dfe2e6}
html[data-theme=dark] .language-switch{border-color:#4a4f57;color:#dfe2e6}
html[data-theme=dark] .language-switch:hover{background:#363a41;border-color:#4a4f57}
html[data-theme=dark] .panel{border-color:#4a4f57}
html[data-theme=dark] .panel-head{border-bottom-color:#4a4f57}
html[data-theme=dark] .panel-head h2{color:#dfe2e6}
html[data-theme=dark] th{background:#363a41;color:#a0a7b0}
html[data-theme=dark] td{border-top-color:#4a4f57}
html[data-theme=dark] .badge{background:#363a41;color:#a0a7b0}
html[data-theme=dark] .page-title h1{color:#dfe2e6}
html[data-theme=dark] .page-title p{color:#a0a7b0}
html[data-theme=dark] .metric{border-color:#4a4f57}
html[data-theme=dark] .metric .value{color:#dfe2e6}
html[data-theme=dark] .metric .name{color:#a0a7b0}
html[data-theme=dark] .metric .metric-icon{background:#363a41;color:#8fabf0}
html[data-theme=dark] .empty-icon{background:#363a41;color:#8fabf0}
html[data-theme=dark] .notice{background:#243831;border-color:#47504d;color:#5ecf9d}
html[data-theme=dark] .notice.warn{background:#3a362b;border-color:#4f4c46;color:#dfab5f}
html[data-theme=dark] .session-banner{background:#243831}
html[data-theme=dark] .session-banner.pending{background:#3a362b}
html[data-theme=dark] .messages{background:#303336}
html[data-theme=dark] .bubble{border-color:#4a4f57}
html[data-theme=dark] .bubble.operator{background:#3d4249}
html[data-theme=dark] .workspace-topbar{background:#2f3237;border-bottom:1px solid #4a4f57}
html[data-theme=dark] .china-clock{color:#a0a7b0}
html[data-theme=dark] .china-clock time{color:#dfe2e6}
html[data-theme=dark] .country-badge{background:#3d4249;color:#8fabf0}
html[data-theme=dark] .global-search{background:#2f3237;border-color:#4a4f57;color:#a0a7b0}
html[data-theme=dark] .global-search:focus-within{border-color:#4a4f57}
html[data-theme=dark] .status-pill,html[data-theme=dark] .account-pill{background:#2f3237;border-color:#4a4f57;color:#a0a7b0}
html[data-theme=dark] .account-pill strong{color:#dfe2e6}
html[data-theme=dark] .workspace-shell .sidebar{background:#303336;border-right:1px solid #4a4f57;color:#a0a7b0}
html[data-theme=dark] .workspace-brand{background:#2f3237;border-color:#4a4f57}
html[data-theme=dark] .workspace-brand strong{color:#dfe2e6}
html[data-theme=dark] .workspace-brand small{color:#a0a7b0}
html[data-theme=dark] .version-tag{border-color:#4a4f57;color:#a0a7b0}
html[data-theme=dark] .workspace-shell .nav button,html[data-theme=dark] .nav-download{color:#a0a7b0}
html[data-theme=dark] .workspace-shell .nav .ui-icon{color:#82898f}
html[data-theme=dark] .workspace-shell .nav button.selected{color:#8fabf0;background:#3d4249}
html[data-theme=dark] .group-heading>span{color:#82898f}
html[data-theme=dark] .group-list button{color:#a0a7b0}
html[data-theme=dark] .group-list button.selected{color:#8fabf0;background:#3d4249}
html[data-theme=dark] .group-list button b{background:#363a41;color:#a0a7b0}
html[data-theme=dark] .group-current,html[data-theme=dark] .group-note,html[data-theme=dark] .sidebar-footer>span{color:#82898f}
html[data-theme=dark] .sidebar-footer button{color:#a0a7b0}
html[data-theme=dark] .device-groups{background:#2f3237;border-color:#4a4f57}
html[data-theme=dark] .workspace-metrics .metric{background:#2f3237;border-color:#4a4f57}
html[data-theme=dark] .workspace-metrics .name{color:#a0a7b0}
html[data-theme=dark] .workspace-metrics .value small{color:#82898f}
html[data-theme=dark] .workspace-metrics .metric-icon{background:#363a41;color:#8fabf0}
html[data-theme=dark] .workspace-metrics .metric-icon.mint{background:#243831;color:#5ecf9d}
html[data-theme=dark] .workspace-title-row h1{color:#dfe2e6}
html[data-theme=dark] .workspace-title-row>div>span{color:#82898f}
html[data-theme=dark] .icon-button{background:#2f3237;border-color:#4a4f57;color:#a0a7b0}
html[data-theme=dark] .view-switch .selected{background:#3d4249;border-color:#4a4f57;color:#8fabf0}
html[data-theme=dark] .group-move{background:#2f3237;border:1px solid #4a4f57;color:#a0a7b0}
html[data-theme=dark] .select-all{background:#2f3237;border-color:#4a4f57;color:#a0a7b0}
html[data-theme=dark] .toolbar-divider{background:#3f4246}
html[data-theme=dark] .filter-chip{background:#2f3237;border-color:#4a4f57;color:#a0a7b0}
html[data-theme=dark] .filter-chip:hover{background:#363a41}
html[data-theme=dark] .filter-chip.selected{background:#3d4249;border-color:#4a4f57;color:#8fabf0}
html[data-theme=dark] .device-toolbar input[type=date]{border-color:#4a4f57;color:#dfe2e6;background:#2f3237}
html[data-theme=dark] .device-card{background:#2f3237;border-color:#4a4f57}
html[data-theme=dark] .device-card:before{background:#3f4246}
html[data-theme=dark] .device-card.is-selected{border-color:#4a4f57}
html[data-theme=dark] .device-card-top{border-bottom-color:#4a4f57}
html[data-theme=dark] .device-status{background:#363a41;color:#a0a7b0}
html[data-theme=dark] .device-status.online{background:#243831;color:#5ecf9d}
html[data-theme=dark] .device-name-line h2{color:#dfe2e6}
html[data-theme=dark] .device-name-line>span{color:#82898f}
html[data-theme=dark] .device-id{color:#a0a7b0}
html[data-theme=dark] .device-id .ui-icon{color:#82898f}
html[data-theme=dark] .card-mini{background:#2f3237;border-color:#4a4f57;color:#8fabf0}
html[data-theme=dark] .card-mini:hover{background:#363a41}
html[data-theme=dark] .card-mini.card-delete{color:#f098a1;background:#3a2e33}
html[data-theme=dark] .card-mini.card-delete:hover{background:#39282a}
html[data-theme=dark] .device-specs>span{background:#363a41;color:#dfe2e6}
html[data-theme=dark] .device-specs small{color:#82898f}
html[data-theme=dark] .device-details dt{color:#a0a7b0}
html[data-theme=dark] .device-details dd{color:#dfe2e6}
html[data-theme=dark] .detail-pill{color:#a0a7b0}
html[data-theme=dark] .detail-pill.green{color:#5ecf9d;background:#243831}
html[data-theme=dark] .detail-pill.amber{color:#dfab5f;background:#3a362b}
html[data-theme=dark] .low-battery{color:#f098a1}
html[data-theme=dark] .device-card-bottom{border-top-color:#4a4f57}
html[data-theme=dark] .device-card-bottom .secondary.small{background:#2f3237;border-color:#4a4f57;color:#a0a7b0}
html[data-theme=dark] .device-pagination,html[data-theme=dark] .device-pagination small,html[data-theme=dark] .workspace-footnote{color:#82898f}
html[data-theme=dark] .device-pagination>div>span{color:#8fabf0;border-color:#4a4f57}
html[data-theme=dark] .workspace-empty h2{color:#dfe2e6}
html[data-theme=dark] .workspace-empty p,html[data-theme=dark] .workspace-empty button{color:#a0a7b0}
html[data-theme=dark] .workspace-shell .page-title p{color:#a0a7b0}
html[data-theme=dark] .new-group{color:#8fabf0}
html[data-theme=dark] .install-page{border-color:#4a4f57;color:#dfe2e6}
html[data-theme=dark] .install-subtitle{color:#a0a7b0}
html[data-theme=dark] .monitor-note{color:#a0a7b0}
html[data-theme=dark] .monitor-heading{color:#dfe2e6}
html[data-theme=dark] .monitor-cmd{background:#2f3237;border-color:#4a4f57;color:#8fabf0}
html[data-theme=dark] .monitor-events{border-color:#4a4f57}
html[data-theme=dark] .monitor-event strong{color:#8fabf0}
html[data-theme=dark] .monitor-event time{color:#82898f}
html[data-theme=dark] .monitor-table th{background:#363a41;color:#a0a7b0}
html[data-theme=dark] .remote-mode .workspace-shell{background:#26282c}
html[data-theme=dark] .remote-layout{background:#2f3237;border-color:#4a4f57;color:#dfe2e6}
html[data-theme=dark] .remote-tag{background:#363a41;border-color:#4a4f57;color:#a0a7b0}
html[data-theme=dark] .remote-tag.green{color:#5ecf9d;background:#243831}
html[data-theme=dark] .remote-tag.amber{color:#dfab5f;background:#3a362b}
html[data-theme=dark] .remote-tag.violet{color:#bca9f2;background:#343040}
html[data-theme=dark] .phone-unit{background:#2f3237;border-color:#4a4f57}
html[data-theme=dark] .phone-title .ui-icon{color:#82898f}
html[data-theme=dark] .phone-mode{background:#363a41;color:#a0a7b0;border-color:#4a4f57}
html[data-theme=dark] .remote-tabs{background:#2f3237;border-bottom:1px solid #4a4f57}
html[data-theme=dark] .remote-tabs button{background:#363a41;border-color:#4a4f57;color:#a0a7b0}
html[data-theme=dark] .remote-tabs button.selected{background:#3d4249;border-color:#4a4f57;color:#8fabf0}
html[data-theme=dark] .remote-pane-heading small{color:#82898f}
html[data-theme=dark] .remote-add{background:#2f3237;border-color:#4a4f57;color:#8fabf0}
html[data-theme=dark] .remote-pane-footer{color:#82898f;border-top-color:#4a4f57}
html[data-theme=dark] .remote-quick section{background:#2f3237;border-color:#4a4f57}
html[data-theme=dark] .remote-quick h3{color:#a0a7b0;border-bottom-color:#4a4f57}
html[data-theme=dark] .toolbox-grid .remote-tool{background:#2f3237;border-color:#4a4f57}
html[data-theme=dark] .remote-note{border-color:#4a4f57;border-left-color:#47444d}
html[data-theme=dark] .remote-note footer{color:#82898f}
html[data-theme=dark] .assist-card{border-color:#4a4f57}
html[data-theme=dark] .assist-card>div{border-color:#4a4f57;background:#363a41}
html[data-theme=dark] .assist-card>button{border-color:#4a4f57;color:#a0a7b0}
html[data-theme=dark] .screen-stage{background:#363a41;color:#a0a7b0}
html[data-theme=dark] .control-toolbar{background:#363a41;border-bottom-color:#4a4f57}
html[data-theme=dark] .control-toolbar p{color:#a0a7b0}
html[data-theme=dark] .phone-shortcuts button{background:#2f3237;border-color:#4a4f57;color:#a0a7b0}
html[data-theme=dark] .phone-shortcuts button:hover:not(:disabled){background:#363a41;border-color:#4a4f57}
html[data-theme=dark] .phone-shortcuts .shortcut-stop{background:#3a2e33;color:#f098a1}
/* 远程中继手动开关（八十九）：设置页「连接服务 / 断开服务」区块 */
.relay-service-switch{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px solid rgba(127,145,166,.45);border-radius:12px;margin:12px 0}
.relay-service-switch .modal-actions{margin:0;justify-content:flex-start}

/* 0.7.159 设备状态「锁屏」徽标（在线但锁着屏；心跳约 2 秒刷新，离线回落「离线」） */
.device-status.locked { background:#fdf1df; color:#b97a1a; border:1px solid #f2ddb5; }
.device-status.locked i { background:#e8b45c; }
html[data-theme=dark] .device-status.locked { background:#3a3222; color:#e0bb6d; border:1px solid #4a4f57; }
html[data-theme=dark] .device-status.locked i { background:#6d5a2c; }
/* 快捷状态栏「一键解锁」内嵌面板：深色模式（沿用 remote.css 浅色布局，仅换调色板） */
html[data-theme=dark] .device-unlock { border:1px solid #4a4f57; background:linear-gradient(160deg,#2f3237,#2b2e33); }
html[data-theme=dark] .device-unlock-head { border-bottom:1px solid #484d51; color:#b9c5d1; }
html[data-theme=dark] .device-unlock-head .ui-icon { color:#8fabf0; }
html[data-theme=dark] .device-unlock-input { color:#dfe2e6; background:#26282c; border:1px solid #4a4f57; }
html[data-theme=dark] .device-unlock-input::placeholder { color:#82898f; }
html[data-theme=dark] .device-unlock-input:focus { border-color:#6f92e0; }
html[data-theme=dark] .device-unlock-input:disabled { background:#363a41; color:#82898f; }
html[data-theme=dark] .device-unlock .device-unlock-btn { color:#a6adb6; background:#363a41; border:1px solid #4a4f57; }
html[data-theme=dark] .device-unlock .device-unlock-btn.primary { color:#8fabf0; background:#3d4249; border-color:#585e68; }
html[data-theme=dark] .device-unlock .device-unlock-btn.warn { color:#dfab5f; background:#3b3420; border-color:#6b5a2b; }
html[data-theme=dark] .device-unlock-note { color:#a6adb6; }
