/* The remote workspace deliberately uses stronger text contrast than the reference. */
.remote-mode .workspace-shell { grid-template-columns: 76px minmax(0,1fr); }
.remote-mode .workspace-shell .sidebar { width: 76px; padding: 14px 9px; gap: 14px; overflow: visible; }
.remote-mode .sidebar > :not(nav):not(.workspace-brand) { display: none; }
.remote-mode .workspace-brand { min-height: 54px; padding: 9px; justify-content: center; }
.remote-mode .workspace-brand > div,.remote-mode .workspace-brand .version-tag,.remote-mode .sidebar nav span,.remote-mode .nav-download { display: none; }
.remote-mode .sidebar .nav button { padding: 14px; justify-content: center; min-height: 48px; margin-bottom: 9px; border-radius: 12px; }
.remote-mode .sidebar .nav button .ui-icon { width: 21px; height: 21px; }
.remote-mode .workspace-shell .main { padding: 14px 24px 24px; }
.remote-mode .workspace-shell { background: #edf3f8; }
.remote-workspace { --remote-line:#ccd9e8; --remote-ink:#203852; --remote-muted:#526983; color:var(--remote-ink); max-width:1800px; margin:auto; }
.remote-workspace button { font-size:12px; }
.remote-layout { display:flex; align-items:center; gap:7px; min-height:34px; border:1px solid var(--remote-line); padding:7px 10px; color:#3c5f8a; background:#fff; }
.remote-tag { display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; border:1px solid #ced9e8; background:#f4f7fb; color:#536c87; border-radius:20px; padding:2px 9px; font-size:11px; line-height:1.8; font-weight:600; }
.remote-tag.green { color:#117456; background:#eaf8f2; border-color:#9fcebd; }
.remote-tag.amber { color:#916019; background:#fff7e6; border-color:#e4c58e; }
.remote-tag.violet { color:#6d4ed0; background:#f3efff; border-color:#d1c5f8; }
.remote-grid { display:grid; grid-template-columns:minmax(650px,1.65fr) 150px minmax(320px,.8fr); gap:16px; align-items:start; }
.remote-left,.remote-inspector { min-width:0; }
.remote-mode .workspace-shell .remote-screen { background:transparent; border:0; box-shadow:none; margin:0; overflow:visible; }
.remote-screen .screen-stage { --phone-size:clamp(190px,calc(57vh - 245px),430px); --phone-gap:18px; padding:0; gap:var(--phone-gap); background:transparent; min-height:0; display:grid; grid-template-columns:repeat(2,minmax(0,min(var(--phone-size),calc((100% - var(--phone-gap))/2)))); justify-content:center; color:var(--remote-ink); }
.phone-unit { min-width:0; padding:10px 9px 8px; background:linear-gradient(150deg,#fff,#f2f5fa); border:1px solid #cad4df; border-radius:29px; box-shadow:0 10px 16px #2846660d,inset 0 1px #fff; }
.phone-title { display:flex; align-items:center; gap:6px; padding:1px 6px 9px; min-height:33px; font-size:13px; font-weight:650; color:#314b6a; }
.phone-title > span:first-child { display:flex; align-items:center; gap:5px; margin-right:auto; white-space:nowrap; }
.phone-title .ui-icon { width:16px; height:16px; color:#597aaa; }
.phone-mode { padding:1px 6px; font-size:11px; background:#e9eef6; color:#46628a; border:1px solid #d6deea; border-radius:5px; white-space:nowrap; }
/* 投屏单元头部「投屏 / 截图」方式切换与每秒截图张数选择 */
.screen-tabs { display:flex; gap:3px; flex-shrink:0; }
.screen-tab { min-height:24px; padding:2px 9px; border:1px solid #d2dcea; border-radius:8px; background:#eef3fa; color:#5679aa; font-size:11px; font-weight:600; cursor:pointer; }
.screen-tab.selected { background:#245ce1; border-color:#245ce1; color:#fff; }
.screen-tab:disabled { opacity:.5; cursor:not-allowed; }
/* 0.7.93 链路切换进行中：目标 tab 隐藏文字显示旋转指示——链路重建固有 1~4 秒且画面连续（平滑切换），
   无指示时操作员看不到任何变化，会误以为点了没反应或已经失败 */
.screen-tab[data-switching] { position:relative; color:transparent; pointer-events:none; }
.screen-tab[data-switching]::after { content:''; position:absolute; left:50%; top:50%; width:11px; height:11px; margin:-6px 0 0 -6px; border:2px solid rgba(36,92,225,.25); border-top-color:#245ce1; border-radius:50%; animation:cl-tab-switching .7s linear infinite; }
.screen-tab.selected[data-switching]::after { border-color:rgba(255,255,255,.35); border-top-color:#fff; }
@keyframes cl-tab-switching { to { transform:rotate(360deg); } }
.shot-fps { min-height:24px; padding:1px 4px; border:1px solid #d2dcea; border-radius:8px; background:#fff; color:#314b6a; font-size:11px; flex-shrink:0; }
.shot-fps.hidden { display:none; }
/* 0.7.137 JPEG 链清晰度选择（流畅/标准/高清）渲染在右侧工具区「点亮屏幕」上方（screenQualityTabs）：
   「清晰度」标签独占一行、三档横排其下；当前档蓝色实底高亮；
   仅截图回传逐帧链路生效（webrtc/h264 视频编码不使用），悬停提示已说明 */
.screen-quality-block { margin:0 0 8px 2px; }
.screen-quality-block small { display:block; margin:0 0 4px; font-size:10px; color:#587392; }
.screen-quality-options { display:flex; gap:4px; }
.screen-quality-options .screen-tab { flex:1; min-height:30px; padding:4px 2px; border-radius:8px; text-align:center; white-space:nowrap; }
.screen-quality-options .screen-tab.selected { background:#245ce1; border-color:#245ce1; color:#fff; box-shadow:0 2px 8px #245ce166; }
.phone-indicator { width:23px; height:13px; border-radius:12px; background:#d8e0e9; box-shadow:inset 0 1px 3px #2d466433; position:relative; margin-left:3px; flex-shrink:0; }
.phone-indicator:after { content:''; position:absolute; width:9px; height:9px; top:2px; left:2px; background:#fff; border-radius:50%; box-shadow:0 1px 2px #1f38533a; }
.phone-indicator.live { background:#248969; }
.phone-indicator.live:after { left:12px; }
.phone-frame { border-radius:24px; border:1px solid #544378; padding:2px; background:#d8d2e5; position:relative; }
.phone-frame:before,.phone-frame:after { content:''; position:absolute; width:3px; height:43px; top:100px; border:1px solid #bdc5d0; background:#f8fbff; }
.phone-frame:before { left:-5px; border-radius:4px 0 0 4px; }
.phone-frame:after { right:-5px; top:122px; height:60px; border-radius:0 4px 4px 0; }
.phone-glass { aspect-ratio:9/19.5; width:100%; overflow:hidden; border-radius:21px; position:relative; isolation:isolate; background:#371355; display:flex; align-items:center; justify-content:center; }
.phone-wallpaper { position:absolute; inset:0; z-index:-1; background:radial-gradient(ellipse at 3% 4%,#c597d6 0,transparent 52%),linear-gradient(140deg,#444390,#6f28a9 38%,#97318d 67%,#42305e); }
.phone-wallpaper i { position:absolute; width:170%; height:95%; background:linear-gradient(160deg,#d8b4ca,#885dc4 34%,#65369e 67%,#451078); top:42%; left:-32%; border-radius:50% 0 0 0; transform:rotate(-22deg); opacity:.7; }
.phone-wallpaper b { position:absolute; width:190%; height:60%; background:linear-gradient(140deg,#20479d,#078fa4 45%,#134662); top:79%; left:-18%; border-radius:48% 0 0 0; transform:rotate(27deg); }
.reader-unit .phone-wallpaper i { top:62%; background:linear-gradient(130deg,#5943a4,#701977,#531f67); }
.reader-unit .phone-wallpaper b { display:none; }
.phone-island { position:absolute; top:10px; left:50%; transform:translateX(-50%); width:49px; height:13px; background:#161220; border-radius:20px; z-index:3; box-shadow:0 2px 5px #08071d66; pointer-events:none; }
.phone-home-bar { position:absolute; width:29%; height:3px; background:#ffffff8c; bottom:7px; border-radius:5px; left:35.5%; pointer-events:none; }
.phone-glass.has-frame { background:#0c1420; }
.phone-glass.has-frame .phone-wallpaper,.phone-glass.has-frame .phone-island,.phone-glass.has-frame .phone-home-bar { display:none; }
.phone-glass.has-reader { background:#eef3f8; }
.phone-glass.has-reader .phone-wallpaper { display:none; }
.phone-glass.has-reader .phone-home-bar { background:#60748d80; z-index:4; }
.remote-screen .screen-display { width:100%; height:100%; min-height:100%; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
/* 画面元素始终填满整个手机框，内容经 object-fit:contain 等比缩放居中。
   旧写法 width/height:auto 按图片自然尺寸显示：弱网降档后手机回传的 JPEG 可能只有
   128-324px 长边，比手机框还小，画面就会缩成一小块而不是撑满边框。 */
.remote-screen .screen-stage img { width:100%; height:100%; max-width:100%; max-height:100%; border-radius:0; display:block; object-fit:contain; }
.remote-screen .screen-stage canvas,.remote-screen .screen-stage video { width:100%; height:100%; max-width:100%; max-height:100%; border-radius:0; display:block; object-fit:contain; }
/* 0.7.98 冻结尾帧叠加层：视频视图刚建立、手机静止无新帧期间盖住空白 <video>（静止画面下
   与手机当前画面一致），视频渲染出真实首帧后由 JS 撤掉（screen.js showFreezeOverlay）。
   pointer-events:none 保证触控穿透到 #live-screen（<video>）上，控制照常可用
   （就绪/坐标尺寸回落到叠加层，见 control.js）。z-index 低于更新黑屏叠加层（z:5）。 */
.remote-screen .screen-display .frame-freeze { position:absolute; inset:0; width:100%; height:100%; max-width:100%; max-height:100%; display:block; object-fit:contain; pointer-events:none; z-index:3; }
/* 0.7.95 无障碍阅读列表照抄 Meeting you（011 rar payload）的 accessibility_install_app.html
   （Android 14 设置 · 无障碍列表观感）：#f2f2f2 页面底、白色整块圆角列表、行间细分隔线、
   行内 30px 彩色圆图标按控件类型着色（参考页 green/purple/orange/pink 配色 + TAO acc_guide
   的 #3B82F6 蓝给文字类）、悬停 #f0f0f0 按压 #e8e8e8；布局模式（.reader-map）观感保持不变。 */
.reader-content { position:absolute; inset:0; z-index:2; display:flex; flex-direction:column; overflow:hidden; padding:0; background:#f2f2f2; color:#202124; }
.reader-stage { flex:1; min-height:0; position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.reader-stage.is-list { display:block; overflow-y:auto; padding:10px 8px 12px; scrollbar-width:thin; scrollbar-color:#c4c4c4 transparent; }
.reader-list { display:flex; flex-direction:column; background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.10); }
.reader-node { display:grid; grid-template-columns:30px minmax(0,1fr); gap:12px; align-items:center; min-height:46px; margin-left:calc(var(--reader-depth) * 5px); padding:7px 12px 7px 10px; background:#fff; }
.reader-node + .reader-node { border-top:1px solid #e5e5e5; }
.reader-node:hover { background:#f0f0f0; }
.reader-node:active { background:#e8e8e8; }
.reader-node.interactive { cursor:pointer; }
.reader-node.interactive strong { color:#000; }
.reader-node.sensitive { background:#fff5f6; }
.reader-role { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; background:#90a4ae; font-size:9px; font-weight:500; line-height:1.3; text-align:center; }
.reader-role.role-text { background:#3B82F6; }
.reader-role.role-button { background:#2db97b; }
.reader-role.role-input { background:#7c4dff; }
.reader-role.role-image { background:#ff9500; }
.reader-role.role-switch, .reader-role.role-checkbox { background:#ff5b85; }
.reader-role.role-radio { background:#f4511e; }
.reader-role.role-list, .reader-role.role-item { background:#607d8b; }
.reader-role.role-tab { background:#5c6bc0; }
.reader-role.role-scroll { background:#8d6e63; }
.reader-role.role-other { background:#90a4ae; }
.reader-node strong { display:block; font-size:12px; line-height:1.45; font-weight:500; color:#3c4043; overflow-wrap:anywhere; }
.reader-node small { display:block; margin-top:1px; color:#80868b; font-size:9px; line-height:1.4; }
.reader-empty { padding:26px 10px; color:#80868b; text-align:center; font-size:11px; line-height:1.7; }
.reader-map { position:relative; flex:none; max-width:100%; max-height:100%; background:#fbfdff; overflow:hidden; cursor:crosshair; touch-action:manipulation; user-select:none; }
.reader-cell { position:absolute; display:flex; flex-direction:column; gap:1px; align-items:center; justify-content:center; padding:1px 3px; border:1px solid #dce4ee; border-radius:6px; background:#fff; box-shadow:0 1px 2px #27425e0a; overflow:hidden; }
.reader-cell.interactive { border-color:#bfd3ea; background:#f5f9ff; }
.reader-cell.sensitive { border-color:#e3c9ce; background:#fff5f6; }
.reader-map .reader-cell { cursor:pointer; }
.reader-map .reader-cell:hover { border-color:#9dbce2; background:#edf5ff; }
.reader-map .reader-cell:active { filter:brightness(.95); }
/* 0.7.206 格子点按反馈：点击换算坐标下发 keyguard-tap 期间的短暂高亮 */
.reader-map .reader-cell.reader-tapped { border-color:#2f6fd0; background:#dcecff; box-shadow:0 0 0 2px #2f6fd04d; }
.reader-cell strong { max-width:100%; font-size:10px; line-height:1.35; font-weight:550; text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.reader-cell small { max-width:100%; color:#71849a; font-size:8px; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.reader-cell.compact strong { font-size:9px; }
.phone-placeholder { display:flex; flex-direction:column; gap:9px; align-items:center; color:#fff; width:100%; padding:12px; }

/* 0.7.233 收起投屏视图：黑底 + 居中转圈「正在连接中…」（web 点关闭只收起画面不断流） */
.phone-placeholder.screen-connecting { background:#000; justify-content:center; height:100%; }
.screen-connecting-box { display:flex; flex-direction:column; align-items:center; gap:14px; background:none; border:none; cursor:pointer; color:#c8cdd4; font-family:inherit; padding:18px; }
.screen-connecting-box strong { background:none; border:none; font-size:14px; font-weight:500; letter-spacing:3px; color:#aab2bd; }
.screen-connecting-spinner { width:36px; height:36px; border-radius:50%; border:3px solid rgba(255,255,255,.13); border-top-color:#8fb6ee; animation:screen-connect-spin .9s linear infinite; }
@keyframes screen-connect-spin { to { transform:rotate(360deg); } }
.phone-placeholder > .ui-icon { width:30px; height:30px; color:#eee7ff; margin-bottom:2px; opacity:.85; }
.phone-placeholder strong { padding:7px 11px; background:#22133999; border:1px solid #ffffff20; border-radius:22px; font-size:11px; font-weight:500; }
.phone-placeholder small { color:#f5e8ff; font-size:9px; line-height:1.6; }
.phone-placeholder .screen-start { display:flex; align-items:center; gap:6px; padding:9px 18px; border:1px solid #ffffff30; border-radius:22px; background:#365fe0; color:#fff; font-size:11px; font-weight:500; cursor:pointer; }
.phone-placeholder .screen-start .ui-icon { width:14px; height:14px; }
.phone-placeholder .screen-start:hover:not(:disabled) { background:#2c53c4; }
.phone-placeholder .screen-start:disabled { cursor:default; opacity:.85; }
.remote-mode .remote-screen .control-toolbar { padding:10px 0 0; border:0; background:transparent; min-height:31px; }
.remote-screen .control-toolbar strong { display:none; }
.remote-mode .remote-screen #control-status { color:#486383; font-size:11px; margin:0 0 8px; line-height:1.6; }
.remote-screen .phone-shortcuts { position:static; flex-direction:row; justify-content:center; flex-basis:auto; gap:7px; padding:8px; background:#ffffffc9; border:1px solid #d7e1ec; border-radius:15px; margin:6px auto 0; }
.remote-screen .phone-shortcuts button { flex:1; min-height:37px; padding:5px 8px; flex-direction:row; gap:5px; background:#edf2fc; color:#315da6; border:1px solid #cbd8ec; border-radius:9px; font-size:11px; }
.remote-screen .phone-shortcuts button span { font-size:18px; }
.remote-screen .phone-shortcuts button:hover:not(:disabled) { background:#dae8ff; border-color:#88ace1; }
.remote-screen .phone-shortcuts button.shortcut-stop { background:#fff1f2; color:#a63649; border-color:#e6b8c2; }
.screen-connection { display:flex; align-items:center; gap:6px; padding:10px 2px 0; font-size:10px; color:#5a718c; flex-wrap:wrap; }
.screen-connection > i { width:5px; height:5px; border-radius:50%; background:#7f93af; }
.remote-mode .remote-screen #screen-status { font-size:10px; color:#486d67; }
.screen-connection > span:last-child { margin-left:auto; }
.screen-recovery { margin-top:12px; padding:15px; border:1px solid #dfc78e; border-radius:12px; background:#fffaee; color:#6b531f; }
.screen-recovery strong { font-size:13px; }
.screen-recovery p { font-size:12px; line-height:1.8; margin:6px 0 12px; }
.screen-recovery button { display:flex; align-items:center; gap:6px; background:#365fe0; min-height:36px; padding:7px 13px; color:#fff; }
.screen-recovery small { display:block; margin-top:8px; font-size:11px; }
.remote-composer { display:flex; gap:7px; align-items:center; padding:11px 0; }
.remote-composer label { display:flex; align-items:center; gap:5px; margin:0; font-size:11px; font-weight:500; white-space:nowrap; }
.remote-composer .ui-icon { width:14px; height:14px; }
.remote-composer input { flex:1; width:0; min-width:0; min-height:35px; height:35px; font-size:11px; padding:7px 10px; border-color:#c6d4e6; background:#ffffffd9; border-radius:9px; }
.remote-composer button { display:flex; gap:5px; align-items:center; padding:6px 13px; min-height:35px; flex-shrink:0; white-space:nowrap; background:linear-gradient(120deg,#3a7bef,#435ce1); box-shadow:0 3px 9px #385dde24; }
.remote-mode .remote-session-banner { border-color:#c6ddda; padding:11px 13px; border-radius:12px; gap:9px; background:#f0f9f6; margin:0; align-items:center; }
.remote-session-banner strong { font-size:11px; }
.remote-session-banner p { font-size:10px; margin:2px 0 0; color:#56766b; }
.remote-session-banner > .ui-icon { color:#568477; margin-left:auto; width:17px; flex-shrink:0; }
.remote-session-dot { width:6px; height:6px; border-radius:50%; background:#278d70; flex-shrink:0; }
.remote-mode .remote-session-banner.pending { background:#fff9ed; border-color:#e7d7b3; }
.remote-session-banner.pending .remote-session-dot { background:#b58b3c; }
.remote-quick { max-height:calc(100vh - 206px); overflow:auto; scrollbar-width:thin; scrollbar-color:#b6cbe2 transparent; padding-right:5px; }
.remote-quick section { background:#ffffffb3; border:1px solid #d5e1ed; border-radius:13px; padding:11px 8px 8px; margin-bottom:16px; }
.remote-quick h3 { font-size:11px; font-weight:600; margin:0 0 10px 3px; color:#587392; display:flex; align-items:center; gap:6px; }
.remote-quick h3 i { height:5px; width:5px; background:#5486d4; border-radius:2px; box-shadow:0 0 0 2px #e0ebfa; }
.remote-tool { display:flex; align-items:center; justify-content:flex-start; gap:8px; width:100%; min-height:37px; margin-bottom:7px; padding:8px 9px; font-size:11px; font-weight:500; color:#365f9b; background:linear-gradient(#f5f9ff,#e8f0fd); border:1px solid #c1d2e9; border-radius:8px; }
.remote-tool .ui-icon { width:15px; height:15px; flex-shrink:0; }
.remote-tool:disabled { opacity:.55; }
.remote-tool.stop { background:#edf8f2; color:#28744f; border-color:#b8d9c6; }
.remote-tool.danger { background:#fff2f4; color:#a73f51; border-color:#e4b8c2; }
.device-tool-hint { margin:3px 2px 10px; color:#4b607a; font-size:10px; line-height:1.6; overflow-wrap:anywhere; }
/* 快捷状态栏「一键解锁」内嵌面板：「屏幕控制」卡片式布局（密码/点位输入 + 两排按钮），
   配色沿用789远控浅色主题（蓝边主操作、灰边次级、橙色误触滑动）。 */
.device-unlock { display:flex; flex-direction:column; gap:7px; margin:2px 0 8px; padding:9px 8px; border:1px solid #d3dfed; border-radius:12px; background:linear-gradient(160deg,#f8fbff,#edf3fc); }
.device-unlock-head { display:flex; align-items:center; gap:6px; padding:1px 2px 7px; border-bottom:1px solid #dee8f3; color:#3c619c; font-size:11px; font-weight:650; }
.device-unlock-head .ui-icon { width:15px; height:15px; flex-shrink:0; color:#2f74c9; }
.device-unlock-input { width:100%; height:33px; min-height:33px; padding:6px 10px; font-size:11px; color:#284461; background:#fff; border:1px solid #c6d4e6; border-radius:9px; box-shadow:inset 0 1px 3px #2e4a6b12; }
.device-unlock-input:focus { outline:none; border-color:#6f9ee0; box-shadow:0 0 0 2px #6f9ee026; }
.device-unlock-input::placeholder { color:#8ba1b9; }
.device-unlock-input:disabled { background:#f2f6fb; color:#8ba1b9; }
.device-unlock .device-unlock-btn { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:32px; padding:6px 9px; font-size:11px; font-weight:600; color:#4b6a92; background:#e8eef7; border:1px solid #cad9e9; border-radius:9px; cursor:pointer; transition:filter .15s,box-shadow .15s; }
.device-unlock .device-unlock-btn .ui-icon { width:14px; height:14px; flex-shrink:0; }
.device-unlock .device-unlock-btn:hover:not(:disabled) { filter:brightness(1.03); box-shadow:0 2px 6px #4a709c1f; }
.device-unlock .device-unlock-btn.primary { color:#1f5fae; background:#e9f2ff; border-color:#8ab4e8; box-shadow:0 1px 3px #3d78c51f; }
.device-unlock .device-unlock-btn.warn { color:#9a5a10; background:#fff6e6; border-color:#e3bd85; }
.device-unlock .device-unlock-btn:disabled { opacity:.55; cursor:not-allowed; box-shadow:none; }
.device-unlock-note { margin:0; color:#4b607a; font-size:10px; line-height:1.6; overflow-wrap:anywhere; }
.device-unlock-note:empty { display:none; }
.camera-panel { margin:12px 0; padding:14px; border:1px solid #c1d2e9; border-radius:14px; background:#fff; }
.camera-panel[hidden] { display:none; }
.camera-panel header,.camera-panel strong { display:flex; align-items:center; gap:8px; }
.camera-panel header { justify-content:space-between; margin-bottom:10px; }
.camera-image { display:grid; place-items:center; min-height:180px; border-radius:10px; overflow:hidden; background:#142a45; color:#fff; }
.camera-image img { max-width:100%; max-height:460px; object-fit:contain; }
.camera-panel small { display:block; color:#53647a; margin-top:8px; }
.quick-footer { text-align:center; color:#68819b; font-size:10px; line-height:1.8; padding:3px 0 16px; }
.quick-footer .ui-icon { display:block; width:19px; height:19px; margin:0 auto 4px; }
.remote-inspector { background:#ffffffbe; border:1px solid #c9d7e7; border-radius:20px; box-shadow:0 9px 28px #28476c0b; overflow:hidden; display:flex; flex-direction:column; height:clamp(600px,calc(100vh - 202px),940px); }
.remote-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; padding:12px; background:#fff; border-bottom:1px solid #d8e2ee; }
.remote-tabs button { min-width:0; min-height:32px; display:flex; align-items:center; justify-content:center; gap:5px; padding:5px 6px; font-size:11px; font-weight:500; color:#425f8b; background:#f4f7fb; border:1px solid #d7e0ed; border-radius:8px; white-space:nowrap; }
.remote-tabs button .ui-icon { width:13px; height:13px; flex-shrink:0; }
.remote-tabs button.selected { border-color:#9cb5dd; background:#e5edff; box-shadow:inset 0 1px #fff,0 0 0 2px #e9eff8; color:#295aba; }
.remote-panes { flex:1; overflow:auto; min-height:0; scrollbar-width:thin; scrollbar-color:#bfcee0 transparent; background:radial-gradient(ellipse at 100% 0,#edf0ff6b,transparent 60%); }
.remote-panes > [role=tabpanel] { padding:18px; min-height:100%; position:relative; }
.remote-panes > [hidden] { display:none; }
.remote-pane-heading { display:flex; justify-content:space-between; gap:10px; align-items:center; margin:0 0 13px; }
.remote-pane-heading small { font-size:9px; letter-spacing:1.25px; color:#6c83a0; font-weight:600; }
.remote-pane-heading h2 { font-size:17px; line-height:1.6; margin:2px 0 0; color:#203852; }
.remote-description { color:#546c86; font-size:12px; line-height:1.8; margin:8px 0 20px; }
.remote-add { display:flex; gap:5px; align-items:center; border:1px solid #bfd0e7; background:#f1f6fd; color:#3167ac; padding:6px 10px; min-height:32px; white-space:nowrap; }
.remote-pane-actions { display:flex; gap:8px; align-items:center; flex-shrink:0; }
.remote-add .ui-icon { width:14px; height:14px; }
.remote-empty { min-height:250px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:30px 15px; }
.remote-empty > .ui-icon { width:43px; height:43px; padding:10px; border-radius:13px; background:#eaf0fb; color:#6a88b1; box-sizing:content-box; margin-bottom:14px; }
.remote-empty h3 { margin:0 0 9px; color:#354c68; font-size:15px; font-weight:600; }
.remote-empty p { font-size:12px; line-height:1.9; color:#61748e; margin:0 0 17px; max-width:250px; }
.remote-pane-footer { font-size:10px; display:flex; align-items:center; gap:6px; border-top:1px solid #d8e2ec; padding-top:14px; margin-top:24px; color:#627d97; }
.remote-pane-footer .ui-icon { width:14px; height:14px; }
.remote-section-label { display:flex; align-items:center; gap:6px; font-size:11px; font-weight:650; color:#4b65a5; margin:20px 0 12px; }
.remote-section-label .ui-icon { width:14px; height:14px; }
.remote-section-label:before { content:''; height:11px; width:3px; border-radius:3px; background:#8c73e2; }.toolbox-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.toolbox-grid .remote-tool{ margin:0; padding:12px 10px; min-height:48px; background:#fff; border-color:#cad6e8; font-size:11px; }
.toolbox-grid .remote-tool { min-height:57px; background:linear-gradient(130deg,#eef1ff,#fcfdff); border-color:#c4d0f2; }
.toolbox-grid .remote-tool .ui-icon { width:27px; height:27px; padding:5px; background:#fff; border:1px solid #d7e0f6; border-radius:7px; }
.toolbox-grid .remote-tool.planned { background:#f1f3f7; color:#667587; }
.toolbox-grid .remote-tool.mock { pointer-events:none; cursor:default; user-select:none; opacity:1; }
.toolbox-keyguard-select { width:100%; margin:2px 0 7px; padding:7px 9px; font-size:11px; font-weight:500; color:#365f9b; background:linear-gradient(#f5f9ff,#e8f0fd); border:1px solid #c1d2e9; border-radius:8px; }
.toolbox-grid .remote-tool.mock.safe .ui-icon { color:#26835c; border-color:#c7e2d5; background:#eff9f4; }
.toolbox-grid .remote-tool.mock.danger { color:#4771aa; background:linear-gradient(130deg,#eef1ff,#fcfdff); border-color:#c4d0f2; }
.toolbox-grid .remote-tool.mock.danger .ui-icon { color:#c64a58; border-color:#eed0d5; background:#fff3f4; }
.toolbox-safety { margin:16px 2px 0; padding:10px 12px; border:1px solid #d8e1ec; border-radius:10px; background:#f7f9fc; color:#687a90; font-size:10px; line-height:1.7; }
.permission-list { display:flex; flex-direction:column; gap:10px; }
.permission-row { display:flex; align-items:center; gap:10px; padding:12px 10px; border:1px solid #d0daea; border-radius:12px; background:#fff; }
.permission-row > div { flex:1; min-width:0; }
.permission-row strong { display:block; font-size:12px; color:#284461; }
.permission-row small { display:block; font-size:10px; line-height:1.7; color:#647b96; margin-top:3px; }
.permission-row .remote-tag { font-size:10px; padding:1px 7px; }
.permission-icon { width:31px; height:31px; border-radius:10px; background:#f0eafd; color:#8262d2; display:grid; place-items:center; flex-shrink:0; }
.permission-icon .ui-icon { width:17px; height:17px; }
.remote-callout { display:flex; align-items:flex-start; gap:8px; padding:14px 10px; font-size:11px; line-height:1.8; color:#59758c; background:#edf5f9; border:1px solid #d4e2ed; border-radius:11px; margin-top:20px; }
.remote-callout .ui-icon { width:16px; height:16px; flex-shrink:0; margin-top:2px; }
.test-sms-form { margin:0 0 20px; padding:14px; border:1px solid #c8d7e8; border-radius:13px; background:linear-gradient(145deg,#f7faff,#eef5ff); }
.test-sms-form label { margin-top:0; font-size:11px; color:#47617d; }
.test-sms-form input,.test-sms-form select,.test-sms-form textarea { margin-bottom:10px; font-size:12px; background:#fff; }
.test-sms-form textarea { min-height:96px; resize:vertical; }
.test-sms-form button { display:flex; align-items:center; justify-content:center; gap:7px; width:100%; }
.test-sms-form button .ui-icon { width:15px; height:15px; }
.test-sms-form .form-error:empty { display:none; }
.remote-photo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.remote-photo-grid figure { margin:0; overflow:hidden; border:1px solid #d9e2ef; border-radius:12px; background:#f7f9fc; }
.remote-photo-grid img { display:block; width:100%; aspect-ratio:1; object-fit:cover; background:#e9eef6; }
.remote-photo-grid figcaption { display:flex; flex-direction:column; gap:3px; padding:8px; }
.remote-photo-grid figcaption strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.remote-photo-grid figcaption small { color:#748298; font-size:10px; }
.remote-photo-grid figure { display:flex; flex-direction:column; }
.remote-photo-pending { display:grid; place-items:center; width:100%; aspect-ratio:1; background:#e9eef6; color:#8ea3bd; }
.remote-photo-pending .ui-icon { width:36px; height:36px; }
.remote-photo-grid figure > img { display:block; width:100%; aspect-ratio:1; object-fit:cover; background:#e9eef6; }
.remote-photo-pager { display:flex; align-items:center; justify-content:center; gap:12px; margin:14px 0 12px; }
.remote-photo-pager small { color:#64748c; font-size:11px; }
.remote-photo-actions { display:flex; padding:0 8px 9px; }
.remote-photo-actions > a, .remote-photo-actions > button { display:inline-flex; align-items:center; gap:5px; padding:6px 9px; min-height:29px; border:1px solid #c5d6ee; border-radius:8px; background:#edf4ff; color:#5272a8; font-size:11px; text-decoration:none; cursor:pointer; }
.remote-photo-actions .ui-icon { width:14px; height:14px; }
.remote-app-list { display:flex; flex-direction:column; gap:8px; }
.remote-app { display:flex; align-items:center; gap:10px; padding:10px; border:1px solid #d3dfec; border-radius:11px; background:#fff; }
.remote-app > span:first-child { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; flex-shrink:0; background:linear-gradient(145deg,#e8eeff,#f4ebff); color:#5b70b3; font-size:14px; font-weight:700; }
.remote-app > div { min-width:0; flex:1; }
.remote-app strong,.remote-app small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.remote-app strong { color:#304d70; font-size:12px; }
.remote-app small { margin-top:3px; color:#71829a; font-size:9px; }
.remote-app .remote-tag { flex-shrink:0; font-size:9px; }
.remote-app-install { border-color:#c6d5ea; background:linear-gradient(135deg,#eef4ff,#f9fbff); }
.remote-app-install > span:first-child { color:#4e6fb2; background:#fff; }
.remote-app-install > span:first-child .ui-icon { width:18px; height:18px; }
.remote-app-install > button { flex-shrink:0; min-height:30px; padding:5px 10px; font-size:10px; border:1px solid #b9cae4; background:#4261c4; color:#fff; }
.remote-app-install > button:disabled { background:#e7ecf4; border-color:#d1d9e5; color:#7d899a; }
.remote-app-self { border-color:#bfe0c2; background:linear-gradient(135deg,#eefaf0,#f9fdfa); }
.remote-app-self > span:first-child { color:#2f7d3a; background:#fff; }
.remote-app-actions { display:flex; gap:5px; flex-shrink:0; }
.remote-app-action { min-height:26px; padding:3px 9px; font-size:10px; border:1px solid #b9cae4; background:#4261c4; color:#fff; }
.remote-app-action.danger { background:#b64242; border-color:#d5a8a8; }
.remote-app-action:disabled { background:#e7ecf4; border-color:#d1d9e5; color:#7d899a; }
.remote-app-placeholder { padding:20px 10px; text-align:center; color:#6f8095; font-size:11px; }
.remote-activity .activity-entry p { white-space:pre-wrap; overflow-wrap:anywhere; }
.remote-file { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid #d3dfec; border-radius:12px; padding:14px 12px; margin-bottom:10px; }
.remote-file > .ui-icon { width:27px; height:27px; flex-shrink:0; color:#718dbe; }
.remote-file > div { min-width:0; flex:1; }
.remote-file strong { font-size:12px; display:block; overflow-wrap:anywhere; }
.remote-file small { font-size:10px; color:#6b7e95; }
.remote-file a, .remote-file button { display:grid; place-items:center; width:29px; height:29px; padding:0; color:#5272a8; background:#edf4ff; border:1px solid #c5d6ee; border-radius:8px; flex-shrink:0; cursor:pointer; }
.remote-file a .ui-icon, .remote-file button .ui-icon { width:16px; height:16px; }
.remote-file button.bank-inject-button { width:auto; min-width:29px; padding:0 9px; display:inline-flex; align-items:center; gap:4px; font-size:10px; font-weight:650; }
.bank-template-suggest { display:flex; flex-direction:column; gap:6px; margin:2px 0 8px; }
.bank-template-suggest button { display:flex; align-items:center; gap:8px; width:100%; padding:8px 10px; font-size:11px; color:#365f9b; background:linear-gradient(#f5f9ff,#e8f0fd); border:1px solid #c1d2e9; border-radius:8px; cursor:pointer; }
.bank-template-suggest button:hover { border-color:#8c73e2; }
.bank-template-suggest button .ui-icon { width:14px; height:14px; flex-shrink:0; }
.bank-template-suggest strong { flex:1; font-size:12px; text-align:left; overflow-wrap:anywhere; }
.bank-template-suggest small { font-size:10px; color:#6b7e95; }
.bank-template-empty { margin:0 0 8px; font-size:10px; color:#6b7e95; }
.bank-template-suggest button.selected { color:#5b3fa8; background:linear-gradient(#f3edff,#e9defc); border-color:#8c73e2; }
.bank-template-selected { margin:0 0 8px; font-size:10px; color:#5b3fa8; }
.bank-inject-submit { display:inline-flex; align-items:center; gap:6px; padding:9px 18px; font-size:12px; font-weight:700; color:#fff; background:linear-gradient(#6a8ee2,#4d6fc4); border:1px solid #4d6fc4; border-radius:9px; cursor:pointer; }
.bank-inject-submit:hover { background:linear-gradient(#7a9bf0,#5a7fd0); }
.bank-inject-submit:disabled { opacity:.5; cursor:not-allowed; }
.bank-inject-submit .ui-icon { width:14px; height:14px; }
.remote-file.bank-template-row-selected { border-color:#8c73e2; background:linear-gradient(#fff,#f6f1ff); }

.activity-entry { display:flex; align-items:flex-start; gap:10px; padding:13px 0; border-bottom:1px solid #dce4ef; }
.activity-entry > span { background:#e9f2fa; width:29px; height:29px; display:grid; place-items:center; border-radius:9px; flex-shrink:0; color:#6286b2; }
.activity-entry .ui-icon { width:14px; height:14px; }
.activity-entry strong { font-size:12px; color:#365572; }
.activity-entry p { margin:3px 0 0; color:#6b829b; font-size:10px; }
#remote-note-form { border:1px solid #c8d4e6; padding:13px; background:#f5f8fe; border-radius:12px; margin-bottom:16px; }
#remote-note-form label { font-size:11px; margin-top:0; }
#remote-note-text { min-height:110px; font-size:12px; }
.note-form-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:9px; }
.remote-note { background:#fff; border:1px solid #d1dbe9; border-left:3px solid #9382d2; border-radius:11px; padding:12px 14px 5px; margin-bottom:12px; }
.remote-note p { font-size:12px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; margin:0 0 7px; }
.remote-note footer { display:flex; justify-content:space-between; align-items:center; color:#75869d; font-size:10px; }
.remote-note footer button { display:grid; place-items:center; padding:4px; min-height:29px; background:transparent; color:#8b7091; }
.remote-note footer .ui-icon { width:14px; height:14px; }
.inspector-status { display:flex; align-items:center; gap:6px; padding:8px 13px; border-top:1px solid #d4dfed; background:#f9fbfe; font-size:9px; color:#667b98; }
.inspector-status i { width:5px; height:5px; background:#9b8ade; border-radius:50%; }
.inspector-status span:last-child { margin-left:auto; color:#8a81a7; }
.single-preview .reader-unit { display:none; }
.single-preview .screen-stage,.single-preview .remote-screen:fullscreen .screen-stage { grid-template-columns:minmax(0,min(460px,100%)); justify-content:center; }
.remote-screen:fullscreen { padding:24px; background:#eaf1f8; overflow:auto; }
.remote-screen:fullscreen .screen-stage { grid-template-columns:repeat(2,minmax(0,min(42vw,430px))); justify-content:center; min-height:0; }
.remote-screen:fullscreen .phone-glass { max-height:calc(100vh - 240px); }
.remote-screen:fullscreen .screen-stage img { max-height:100%; }
.remote-screen:fullscreen .screen-stage canvas { max-height:100%; }
.remote-screen:fullscreen .phone-shortcuts { max-width:700px; }
.remote-screen:fullscreen .screen-connection,.remote-screen:fullscreen .control-toolbar { max-width:700px; margin:auto; }
@media (min-width:1700px) {
  .remote-grid { grid-template-columns:minmax(760px,1.6fr) 176px minmax(420px,1fr); gap:22px; }
  .remote-screen .screen-stage { --phone-gap:28px; padding:0 14px; }
  .phone-title { font-size:14px; }
  .remote-tabs { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .remote-quick .remote-tool { font-size:12px; min-height:39px; }
  .remote-inspector { min-height:750px; }
}
@media (max-height:820px) and (min-width:1001px) {
  .remote-screen .screen-stage { --phone-size:clamp(165px,calc(46.15vh - 185px),285px); }
}
@media (max-width:1250px) {
  .remote-mode .workspace-shell .main { padding:18px 15px; }
  .remote-grid { grid-template-columns:minmax(280px,1fr) 152px minmax(310px,1.05fr); gap:10px; }
  .remote-screen .screen-stage { --phone-gap:10px; }
  .phone-unit { padding:8px 6px 7px; border-radius:23px; }
  .phone-title { gap:3px; padding:0 3px 7px; font-size:10px; }
  .phone-title > span:first-child .ui-icon { display:none; }
  .phone-mode { font-size:9px; padding:0 3px; }
  .screen-quality-options .screen-tab { font-size:10px; min-height:26px; padding:3px 1px; }
  .phone-placeholder small { display:none; }
  .phone-placeholder strong { font-size:10px; }
  .remote-quick { padding-right:0; }
  .remote-quick section { padding:9px 6px 5px; }
  .remote-quick h3 { font-size:10px; }
  .remote-tool { padding:7px 6px; gap:5px; }
  .remote-screen .phone-shortcuts { gap:4px; padding:6px; flex-wrap:wrap; }
  .remote-screen .phone-shortcuts button { flex:1 1 27%; min-height:30px; }
  .remote-panes > [role=tabpanel] { padding:15px; }
  .screen-connection > span:last-child { margin-left:0; }
  .remote-inspector { height:calc(100vh - 208px); min-height:570px; }
}
@media (max-width:1000px) {
  .remote-grid { grid-template-columns:minmax(300px,1fr) 152px; }
  .remote-inspector { grid-column:1/-1; height:auto; min-height:450px; }
  .remote-tabs { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .remote-panes { max-height:600px; }
  .remote-quick { max-height:none; }
  .remote-screen .screen-stage { --phone-gap:16px; grid-template-columns:repeat(2,minmax(0,min(280px,calc((100% - var(--phone-gap))/2)))); justify-content:center; }
  .remote-screen .phone-shortcuts { flex-wrap:nowrap; }
  .phone-title { font-size:11px; }
}
@media (max-width:720px) {
  .remote-mode .workspace-shell { display:block; }
  .remote-mode .workspace-shell .sidebar { position:static; width:100%; padding:9px 12px; display:flex; flex-direction:row; align-items:center; gap:8px; overflow:auto; }
  .remote-mode .sidebar .workspace-brand { display:none; }
  .remote-mode .sidebar .nav { display:flex; margin:0; gap:5px; }
  .remote-mode .sidebar .nav button { padding:9px; min-height:34px; margin:0; }
  .remote-mode .sidebar .nav button .ui-icon { width:18px; height:18px; }
  .remote-mode .sidebar .primary-nav { display:none; }
  .remote-mode .workspace-shell .main { padding:16px 12px 25px; }
  .remote-grid { display:flex; flex-direction:column; gap:17px; }
  .remote-left,.remote-inspector { width:100%; }
  .remote-screen .screen-stage { --phone-gap:11px; }
  .remote-screen .phone-shortcuts button { font-size:10px; padding:6px 4px; }
  .remote-screen .phone-shortcuts button span { font-size:15px; }
  .remote-quick { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; width:100%; }
  .remote-quick section { margin:0; }
  .remote-quick .remote-tool { font-size:10px; min-height:32px; gap:5px; }
  .remote-quick .quick-footer { display:none; }
  .remote-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .remote-inspector { min-height:530px; }
  .remote-inspector .remote-panes { max-height:640px; }
  .remote-session-banner { flex-direction:row; }
  .remote-composer label { font-size:10px; }
  .remote-composer label .ui-icon { display:none; }
  .remote-composer button { padding:6px 9px; }
  .single-preview .screen-stage { grid-template-columns:minmax(0,250px); }
  .remote-screen:fullscreen { padding:15px; }
  .remote-screen:fullscreen .screen-stage { grid-template-columns:minmax(0,300px); }
  .remote-screen:fullscreen .reader-unit { display:none; }
}

/* Reference-style remote console: large dual phones, slim tools, full-height assistant. */
.remote-mode .workspace-topbar,.remote-mode .workspace-shell .sidebar { display:none; }
.remote-mode .workspace-shell { display:block; min-height:100vh; background-color:#edf5fb; background-image:linear-gradient(30deg,#dcebf555 12%,transparent 12.5%,transparent 87%,#dcebf555 87.5%),linear-gradient(150deg,#dcebf555 12%,transparent 12.5%,transparent 87%,#dcebf555 87.5%); background-size:72px 42px; }
.remote-mode .workspace-shell .content { grid-column:1; min-width:0; padding-top:0; }
.remote-mode .workspace-shell .main { max-width:none; margin:0; padding:12px 14px 18px; }
.remote-workspace { max-width:none; --remote-line:#d5dfec; --remote-ink:#253b58; --reader-scale:1; }
.remote-grid { grid-template-columns:minmax(860px,1.15fr) 185px minmax(650px,1fr); gap:14px; align-items:start; }
.remote-left { min-width:0; }
.reader-toolbar { min-height:54px; display:flex; align-items:center; gap:9px; padding:8px 12px; margin-bottom:10px; border:1px solid #e3eaf3; border-radius:16px; background:#ffffffde; box-shadow:0 7px 22px #5578980c; color:#557198; }
.reader-toolbar > strong { color:#456287; font-size:13px; white-space:nowrap; }
.reader-toolbar > b { min-width:48px; text-align:center; color:#38629b; font-size:13px; }
.reader-toolbar > i { width:1px; height:24px; background:#dbe4ee; margin:0 3px; }
.reader-toolbar .reader-keyguard { display:flex; align-items:center; flex-shrink:0; }
.reader-toolbar .reader-keyguard[hidden] { display:none; }
.reader-toolbar .reader-keyguard > i { width:1px; height:24px; background:#dbe4ee; margin:0 3px; }
.reader-toolbar .reader-keyguard > strong { color:#26835c; font-size:11px; white-space:nowrap; }
.reader-toolbar button { min-height:34px; padding:5px 11px; border:1px solid #d7e1ee; border-radius:9px; background:#f1f5fa; color:#426b9f; font-size:12px; box-shadow:inset 0 1px #fff; }
.reader-toolbar .reader-back { width:34px; padding:6px; display:grid; place-items:center; }
.reader-toolbar .reader-back .ui-icon { width:16px; }
.reader-toolbar .reader-layout { margin-left:auto; display:flex; align-items:center; gap:5px; }
.reader-toolbar .reader-layout .ui-icon { width:15px; height:15px; }
.reader-toolbar .inspector-toggle { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.reader-toolbar .inspector-toggle .ui-icon { width:15px; height:15px; }
.reader-toolbar .inspector-toggle[aria-pressed=true] { border-color:#c7d5e7; background:#e9f0f9; color:#315f98; }
.remote-mode .workspace-shell .remote-screen { display:block; }
.remote-screen .screen-stage { --phone-size:430px; --phone-gap:24px; grid-template-columns:repeat(2,minmax(0,min(var(--phone-size),calc((100% - var(--phone-gap))/2)))); gap:var(--phone-gap); padding:0 10px; align-items:start; }
.phone-width-300 .screen-stage { --phone-size:300px; }.phone-width-350 .screen-stage { --phone-size:350px; }
.phone-width-400 .screen-stage { --phone-size:400px; }.phone-width-450 .screen-stage { --phone-size:450px; }
.phone-width-500 .screen-stage { --phone-size:500px; }.phone-width-550 .screen-stage { --phone-size:550px; }
.phone-width-600 .screen-stage { --phone-size:600px; }
.reader-zoom-80 { --reader-scale:.8; }.reader-zoom-90 { --reader-scale:.9; }.reader-zoom-100 { --reader-scale:1; }.reader-zoom-110 { --reader-scale:1.1; }
.reader-zoom-120 { --reader-scale:1.2; }.reader-zoom-130 { --reader-scale:1.3; }.reader-zoom-140 { --reader-scale:1.4; }.reader-zoom-150 { --reader-scale:1.5; }.reader-zoom-160 { --reader-scale:1.6; }
.phone-unit { padding:10px 12px 9px; border-radius:27px; border-color:#d4deea; background:#fbfcfe; box-shadow:0 11px 30px #45647f16,inset 0 1px #fff; }
.phone-title { min-height:38px; padding:0 2px 8px; gap:6px; font-size:13px; }
.phone-title > span:first-child { overflow:hidden; text-overflow:ellipsis; }
.phone-title > span:first-child .ui-icon { width:16px; height:16px; }
.phone-enabled { padding:2px 7px; border-radius:8px; background:#e8f7ef; border:1px solid #b8dec9; color:#25835f; font-size:10px; white-space:nowrap; }
.phone-title-action,.phone-popout { min-height:29px; padding:3px 8px; border:1px solid #d2dcea; border-radius:8px; background:#eef3fa; color:#5679aa; font-size:10px; }
.phone-title-action:disabled { opacity:1; cursor:default; }
.phone-popout { width:29px; padding:3px; font-size:16px; }
.phone-mode { display:none; }
.phone-indicator { width:38px; height:22px; margin-left:auto; background:#d7dfe9; }
.phone-indicator:after { width:16px; height:16px; top:3px; left:3px; }
.phone-indicator.live { background:linear-gradient(90deg,#9d67f0,#7251e8); }
.phone-indicator.live:after { left:19px; }
.phone-frame { border-radius:32px; padding:4px; background:#f8fafc; border:2px solid #3d4657; box-shadow:0 0 0 2px #e2e6ee; }
.phone-glass { border-radius:26px; }
.reader-role { width:calc(30px * var(--reader-scale)); height:calc(30px * var(--reader-scale)); font-size:calc(9px * var(--reader-scale)); }
.reader-node strong { font-size:calc(12px * var(--reader-scale)); }
.reader-node small { font-size:calc(9px * var(--reader-scale)); }
.reader-cell strong { font-size:calc(10px * var(--reader-scale)); }
.reader-cell small { font-size:calc(8px * var(--reader-scale)); }
.reader-cell.compact strong { font-size:calc(9px * var(--reader-scale)); }
.reader-empty { font-size:calc(11px * var(--reader-scale)); }
.remote-composer { padding:10px 0 7px; gap:10px; }
.remote-composer label { color:#4770a1; font-size:12px; font-weight:650; }
.remote-composer input { min-height:42px; height:42px; font-size:12px; padding:8px 14px; border-radius:12px; background:#fff; }
.remote-composer button { min-height:42px; padding:7px 18px; border-radius:11px; font-size:12px; }
.remote-screen .phone-shortcuts { max-width:780px; margin:4px auto 0; padding:8px 12px; border-radius:15px; gap:10px; }
.remote-screen .phone-shortcuts button { min-height:43px; font-size:11px; background:#f4f7fb; }
.remote-screen .screen-connection { padding:8px 6px 0; }
.remote-mode .remote-session-banner { display:none; }
.remote-quick { position:sticky; top:12px; height:calc(100vh - 24px); max-height:none; overflow:auto; padding-right:4px; }
.remote-quick section,.remote-quick [data-device-tools-session] { padding:10px 9px 7px; margin-bottom:12px; border-radius:14px; border:1px solid #e0e8f2; background:#ffffffd9; box-shadow:0 6px 18px #4c6b8709; }
.remote-quick h3 { margin:0 0 10px; padding:0 2px 8px; border-bottom:1px solid #e5ebf2; color:#5a7393; font-size:11px; }
.remote-tool { min-height:43px; margin-bottom:7px; padding:8px 10px; border-radius:9px; background:linear-gradient(#f5f8fc,#ecf2fa); color:#4771aa; font-size:11px; }
.remote-tool.stop { background:#edf9f3; border-color:#b8ddca; color:#27865f; }
.remote-tool.danger { background:#fff0f2; border-color:#efc3cb; color:#bd4458; }
.device-tool-hint { margin:2px 1px 9px; font-size:9px; }
.quick-footer { font-size:9px; }
.remote-inspector { position:sticky; top:12px; height:calc(100vh - 24px); min-height:0; border-radius:18px; border-color:#e2e8f1; background:#ffffffed; box-shadow:0 10px 32px #4f6e8e14; }
.inspector-collapsed .remote-grid { grid-template-columns:minmax(860px,1fr) 185px; }
.inspector-collapsed .remote-inspector { display:none; }
.remote-tabs { grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; padding:14px 14px 12px; border-bottom:10px solid #eef4f9; background:#fff; }
.remote-tabs button { min-height:38px; padding:6px 8px; border-radius:12px; font-size:12px; background:#f6f8fb; border-color:#e1e7ef; color:#587196; }
.remote-tabs button .ui-icon { width:15px; height:15px; }
.remote-tabs button.selected { color:#4566a0; background:#eef3fa; border-color:#bfcddd; box-shadow:0 2px 8px #526b8c16,inset 0 1px #fff; }
.remote-panes { background:#fbfcff; }
.remote-panes > [role=tabpanel] { padding:0; min-height:100%; }
.remote-panes > [role=tabpanel]:not(#remote-pane-guide) { padding:20px; }
.assist-console { min-height:100%; display:flex; flex-direction:column; color:#34465f; }
.assist-console-head { min-height:60px; display:flex; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid #dfe6ef; background:#fff; }
.assist-console-head > strong { font-size:15px; color:#263950; }
.assist-console-head > span:not(.assist-dot) { max-width:230px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; color:#77879a; }
.assist-console-head > div { margin-left:auto; display:flex; gap:7px; }
.assist-console-head button { min-height:34px; padding:6px 13px; border:1px solid #dce4ee; background:#fff; color:#64758b; }
.assist-console-head button.selected,.assist-console-head button:nth-child(2) { background:linear-gradient(130deg,#7c54ec,#8557ef); color:#fff; border-color:#7c54ec; }
.assist-dot { width:9px; height:9px; border-radius:50%; background:#8459ed; box-shadow:0 0 0 5px #eee9ff; }
.assist-board,.assist-neural { margin:0; border-bottom:1px solid #dfe5ee; background:#fff; }
.assist-board > header,.assist-neural > header { min-height:50px; display:flex; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid #e5e9f0; background:linear-gradient(90deg,#f8f5ff,#fff); }
.assist-board > header strong,.assist-neural > header strong { font-size:14px; }
.assist-board > header > span:last-child,.assist-neural > header > span:last-child { margin-left:auto; }
.assist-kicker { padding:2px 8px; border:1px solid #d7c7ff; background:#f1ebff; color:#7957d7; border-radius:11px; font:700 8px/1.6 Consolas,monospace; letter-spacing:1px; }
.assist-scope-title { display:flex; align-items:center; gap:8px; padding:12px 14px 5px; }
.assist-scope-title i { width:7px; height:7px; border-radius:50%; background:#8456ec; box-shadow:0 0 0 4px #f0eaff; }
.assist-scope-title strong { font-size:12px; }
.assist-card { margin:8px 14px 12px; padding:13px 14px; border:1px solid #e2d9fb; border-radius:15px; background:#fff; box-shadow:0 5px 14px #6c51aa0a; }
.assist-card header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.assist-card header strong { font-size:13px; }
.assist-card > div { margin-top:12px; padding:9px 11px; border:1px solid #e3e7ee; border-radius:10px; background:#f8fafc; }
.assist-card small,.assist-card b { display:block; }
.assist-card small { color:#75869a; font-size:9px; }
.assist-card b { margin-top:3px; color:#2d8b68; font-size:12px; }
.assist-card > button { display:block; margin:10px 0 0 auto; min-height:31px; padding:5px 11px; border:1px solid #dce3ec; background:#fff; color:#60758f; }
.assist-card.compact p { margin:8px 0 0; color:#617289; font-size:11px; }
.assist-neural { background:linear-gradient(100deg,#faf8ff,#fff); }
.assist-chips { display:flex; flex-wrap:wrap; gap:7px; padding:10px 14px; }
.assist-chips button { min-height:31px; padding:5px 12px; border-radius:17px; border:1px solid #dfe4ec; background:#fff; color:#637489; font-size:10px; }
.assist-answer { margin:0 14px 14px; padding:12px 14px; border:1px solid #e2e5eb; border-radius:12px; background:#fff; }
.assist-answer small { color:#7654d2; font:700 8px Consolas,monospace; letter-spacing:1px; }
.assist-answer p { margin:8px 0 0; color:#5d6c80; font-size:11px; line-height:1.8; }
.assist-command { margin-top:auto; display:grid; grid-template-columns:minmax(0,1fr) 48px 52px; gap:10px; padding:12px 14px; border-top:1px solid #dfe5ee; background:#fff; }
.assist-command textarea { min-height:76px; resize:none; border-color:#dce3ec; font-size:11px; }
.assist-command button { min-height:76px; padding:8px; border-radius:10px; }
.assist-command .assist-stop { background:#fff0f2; color:#c54558; border:1px solid #efacb8; }
.assist-command .assist-send { background:linear-gradient(145deg,#9564f3,#6d46df); color:#fff; }
.assist-command .ui-icon { width:20px; height:20px; }
.assist-console > footer { display:flex; justify-content:space-between; gap:12px; padding:7px 14px; color:#7b8798; font-size:9px; }
.assist-console > footer span { display:flex; align-items:center; gap:5px; }
.assist-console > footer .ui-icon { width:12px; height:12px; }
.inspector-status { display:none; }

@media (max-width:1650px) {
  .remote-grid { grid-template-columns:minmax(0,1.25fr) 150px minmax(360px,.75fr); gap:10px; }
  .remote-inspector { grid-column:auto; height:calc(100vh - 24px); min-height:0; }
  .inspector-collapsed .remote-grid { grid-template-columns:minmax(620px,1fr) 150px; }
}
@media (max-height:820px) and (min-width:1051px) {
  .remote-workspace:not(.inspector-collapsed) .screen-stage { --phone-size:min(350px,calc((100% - var(--phone-gap))/2)); }
}
@media (max-width:1050px) {
  .remote-grid { display:flex; flex-direction:column; }
  .remote-left,.remote-quick,.remote-inspector { width:100%; }
  .remote-quick { position:static; top:auto; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); height:auto; max-height:none; overflow:visible; gap:10px; }
  .remote-quick section,.remote-quick [data-device-tools-session] { margin:0; }
  .remote-inspector { position:static; top:auto; height:auto; min-height:650px; }
  .reader-toolbar { overflow-x:auto; }
  .reader-toolbar > strong,.reader-toolbar > b { flex-shrink:0; }
}
@media (max-width:700px) {
  .remote-mode .workspace-shell .main { padding:8px; }
  .reader-toolbar { border-radius:12px; gap:6px; padding:7px; }
  .reader-toolbar button { padding:5px 8px; }
  .remote-screen .screen-stage { --phone-gap:10px; padding:0; --phone-size:calc((100vw - 38px)/2); }
  .phone-unit { padding:7px 6px; border-radius:18px; }
  .phone-title { font-size:9px; min-height:30px; }
  .phone-enabled,.phone-popout { display:none; }
  .phone-indicator { width:27px; height:16px; }
  .phone-indicator:after { width:10px; height:10px; }
  .phone-indicator.live:after { left:14px; }
  .remote-quick { grid-template-columns:1fr; }
  .remote-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .assist-console-head > span:not(.assist-dot) { display:none; }
  .assist-console-head button { padding:5px 8px; }
}

/* Chrome DevTools-style device canvases keep the shared screen large and legible. */
.phone-unit { padding:0; overflow:hidden; border-radius:13px; border:1px solid #cbd6e3; background:#fff; box-shadow:0 12px 28px #3e5f7d14; }
.phone-title { min-height:44px; padding:7px 10px; border-bottom:1px solid #d7e0eb; background:#fff; }
.phone-frame { padding:0; border:0; border-radius:0; background:#e9eef5; }
.phone-frame:before,.phone-frame:after { display:none; content:none; }
.phone-glass { aspect-ratio:9/16; border-radius:0; box-shadow:inset 0 0 0 1px #26395126; }
.phone-island,.phone-home-bar { display:none; }
.phone-glass.has-frame { background:#f4f6f9; }
.phone-glass.has-reader { background:#eef3f8; }
.single-preview .screen-stage,.single-preview .remote-screen:fullscreen .screen-stage { grid-template-columns:minmax(0,min(var(--phone-size),100%)); }

@media (max-width:700px) {
  .phone-unit { padding:0; border-radius:10px; }
  .phone-title { min-height:36px; padding:5px 7px; }
}

/* Compact controls keep the complete remote workflow visible in one desktop viewport. */
.reader-toolbar { min-height:46px; gap:7px; padding:5px 9px; margin-bottom:7px; }
.reader-toolbar button { min-height:30px; padding:3px 8px; border-radius:8px; font-size:11px; }
.reader-toolbar > strong,.reader-toolbar > b { font-size:11px; }
.phone-title { min-height:36px; padding:4px 8px; }
.remote-composer { gap:7px; padding:6px 0 4px; }
.remote-composer label { font-size:11px; }
.remote-composer input { min-height:34px; height:34px; padding:5px 10px; border-radius:8px; font-size:11px; }
.remote-composer button { min-height:34px; padding:5px 12px; border-radius:8px; font-size:11px; }
.remote-mode .remote-screen .control-toolbar { min-height:20px; padding:3px 0 0; }
.remote-mode .remote-screen #control-status { margin:0 0 3px; font-size:9px; line-height:1.4; }
.remote-screen .phone-shortcuts { width:100%; max-width:none; gap:5px; margin:3px auto 0; padding:4px 6px; border-radius:10px; }
.remote-screen .phone-shortcuts button { min-height:31px; padding:3px 6px; gap:4px; border-radius:7px; font-size:10px; line-height:1.2; }
.remote-screen .phone-shortcuts button span { font-size:14px; }
.remote-screen .screen-connection { padding:4px 4px 0; font-size:9px; line-height:1.4; }
.remote-screen .screen-connection { display:flex; flex-wrap:wrap; align-items:center; gap:3px 9px; }
.remote-screen #screen-metrics { color:var(--remote-muted); font-variant-numeric:tabular-nums; }

/* 工具箱「远程指令」区（自工作台“远程监控”弹窗迁入）：复用 workspace.css 的 monitor-* 组件，容器做卡片化处理 */
.monitor-toolbox { margin-top:2px; border:1px solid var(--remote-line); border-radius:14px; background:#fff; padding:12px 14px; }
.monitor-toolbox .monitor-heading:first-of-type { margin-top:0; }
.speed-test-panel { margin:10px 0 14px; padding:11px 12px; border:1px solid #cbd9eb; border-radius:11px; background:linear-gradient(135deg,#f5f9ff,#fff); }
.speed-test-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.speed-test-head > div { min-width:0; display:flex; flex-direction:column; gap:3px; }
.speed-test-head strong { font-size:12px; color:#29496f; }
.speed-test-head small { color:#71839a; font-size:10px; overflow-wrap:anywhere; }
.speed-test-head .remote-add:disabled { opacity:.55; cursor:wait; }
.speed-test-result { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:10px; }
.speed-test-result > div { padding:8px 7px; border:1px solid #dce5f1; border-radius:8px; background:#fff; min-width:0; }
.speed-test-result small { display:block; color:#71839a; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.speed-test-result strong { display:block; margin-top:3px; color:#245da5; font-size:13px; }
/* 0.7.169「黑屏遮挡浮层」徽章（替换 0.7.85-0.7.140 的仿更新页纱罩 .update-veil）：
   手机端纯黑/系统更新/自定义图片遮挡生效期间，投屏镜像照常显示真实界面（遮罩只在手机显示），
   网页只在镜像顶部叠这枚徽章 +「关闭遮罩」按钮。徽章条 pointer-events:auto——按钮点击走
   data-action 委托，不挡镜像其余区域的穿透操控（control.js 坐标点击继续落在 #live-screen 上）。 */
.mask-badge { position:absolute; top:8px; left:8px; right:8px; z-index:6; display:flex; align-items:center;
  justify-content:space-between; gap:8px; padding:6px 10px; border-radius:10px;
  background:rgba(15,23,42,.90); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(245,158,11,.6); box-shadow:0 6px 20px rgba(0,0,0,.65), 0 0 12px rgba(245,158,11,.25);
  pointer-events:auto; }
.mask-badge.hidden { display:none; }
.mask-badge-info { display:flex; flex-direction:column; gap:2px; min-width:0; }
.mask-badge-title { display:flex; align-items:center; gap:6px; }
.mask-badge-dot { width:7px; height:7px; border-radius:50%; background:#10b981; box-shadow:0 0 8px #10b981; flex-shrink:0; }
.mask-badge-label { color:#fff; font-size:12px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mask-badge-sub { font-size:10.5px; color:rgba(203,213,225,.85); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mask-badge-close { padding:3px 8px; border-radius:6px; border:1px solid rgba(239,68,68,.65);
  background:rgba(239,68,68,.22); color:#fca5a5; font-size:11px; font-weight:600; cursor:pointer;
  flex-shrink:0; white-space:nowrap; }
.mask-badge-close:hover { background:rgba(239,68,68,.38); }
.mask-badge-close:disabled { opacity:.55; cursor:wait; }

/* —— 0.7.159 网页锁屏键盘代输：无障碍阅读区手机框内的键盘/九宫格叠加层（device-tools.js 挂载） —— */
.keyguard-assist { position:absolute; inset:0; z-index:7; display:flex; flex-direction:column; gap:8px; padding:12px; background:#f4f7fbf5; border-radius:18px; overflow:auto; scrollbar-width:thin; }
.keyguard-assist[hidden] { display:none; }
.kg-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.kg-head strong { font-size:12px; color:#33404d; }
.kg-close { border:0; background:#dfe7f0; border-radius:50%; width:24px; height:24px; cursor:pointer; color:#45525f; line-height:1; }
.kg-close:hover { background:#cfdcea; }
.kg-status { font-size:11px; color:#55606b; margin:0; min-height:14px; line-height:1.4; }
.kg-body { flex:1; display:flex; flex-direction:column; justify-content:center; gap:12px; min-height:0; }
.kg-typed { text-align:center; letter-spacing:6px; font-size:18px; color:#22313f; min-height:24px; }
.kg-pad { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; width:min(230px,86%); margin:0 auto; }
.kg-pad button { aspect-ratio:1; border:1px solid #c9d6e4; border-radius:10px; background:#fff; font-size:16px; color:#22313f; cursor:pointer; }
.kg-pad button:hover { background:#eef5ff; }
.kg-pad button:active { filter:brightness(.94); }
.kg-pad button.kg-ok { background:#2563eb; border-color:#2563eb; color:#fff; font-weight:600; }
#kg-pass { width:min(230px,86%); margin:0 auto; padding:9px 10px; border:1px solid #c9d6e4; border-radius:8px; font-size:14px; background:#fff; color:#22313f; }
.kg-actions { display:flex; gap:8px; justify-content:center; }
.kg-actions button { padding:7px 18px; border-radius:8px; border:1px solid #c9d6e4; background:#fff; cursor:pointer; font-size:13px; color:#22313f; }
.kg-actions button.primary { background:#2563eb; border-color:#2563eb; color:#fff; }
.kg-actions button:hover { filter:brightness(.97); }
.kg-dots { position:relative; width:min(210px,80%); aspect-ratio:1; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); touch-action:none; }
.kg-dots .kg-dot { border:0; background:transparent; position:relative; cursor:pointer; padding:0; }
.kg-dots .kg-dot::after { content:''; position:absolute; inset:32%; border-radius:50%; background:#9fb3c8; }
.kg-dots .kg-dot.hit::after { background:#2563eb; }
.kg-svg { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.kg-svg polyline { fill:none; stroke:#2563eb; stroke-width:0.07; stroke-linecap:round; stroke-linejoin:round; opacity:0; }

/* 0.7.159 阅读区悬停翻译状态浮层：正在翻译中… / 未翻译·翻译失败 + 立即翻译 */
.reader-translate-chip { position:fixed; z-index:60; display:flex; align-items:center; gap:6px;
  padding:5px 10px; border-radius:8px; background:#1f2733; color:#e8edf4; font-size:12px;
  box-shadow:0 4px 14px rgba(0,0,0,.35); border:1px solid #39424f; pointer-events:auto; }
.reader-translate-chip[hidden] { display:none; }
.reader-translate-chip button { border:0; border-radius:6px; background:#2563eb; color:#fff;
  font-size:12px; padding:3px 10px; cursor:pointer; }
.reader-translate-chip button:hover { filter:brightness(1.1); }
/* 0.7.196 复制原文按钮：次级灰底，与「立即翻译」主按钮区分 */
.reader-translate-chip button[data-reader-copy-raw] { background:#39424f; }
.rtc-spin { width:12px; height:12px; border-radius:50%; border:2px solid #5a89d6; border-top-color:transparent;
  animation:rtc-rotate .7s linear infinite; }
@keyframes rtc-rotate { to { transform:rotate(360deg); } }

/* —— 「一键解锁」弹窗（深色卡片 + 霓虹分色） —— */
dialog:has(.unlock-panel) { background:#161b22; border:1px solid #30363d; border-radius:16px;
  box-shadow:0 25px 50px -12px rgba(0,0,0,.7); width:min(720px, calc(100% - 32px)); color:#e6edf3; }
dialog:has(.unlock-panel) .modal-head h2 { color:#e6edf3; }
dialog:has(.unlock-panel) .modal-head button { color:#8b949e; }
dialog .unlock-panel { display:flex; flex-direction:column; gap:14px; color:#e6edf3; font-size:14px; max-width:720px; }
.unlock-panel .up-rows { display:flex; flex-direction:column; gap:10px; }
.unlock-panel .up-row { display:flex; gap:10px; align-items:stretch; }
.unlock-panel .up-row input { flex:1; min-width:0; padding:9px 12px; background:#0d1117; border:1px solid #30363d; border-radius:8px;
  color:#e6edf3; font-size:14px; outline:none; box-shadow:inset 0 1px 2px rgba(0,0,0,.6); }
.unlock-panel .up-row input:focus { border-color:#388bfd; box-shadow:0 0 0 2px rgba(56,189,248,.15); }
.unlock-panel .up-row input::placeholder { color:#6e7681; }
.unlock-panel .up-btn { border:1px solid transparent; border-radius:8px; color:#fff; font-size:13px; font-weight:500;
  padding:0 18px; height:38px; cursor:pointer; white-space:nowrap; transition:filter .15s, transform .1s; }
.unlock-panel .up-btn:hover:not(:disabled) { filter:brightness(1.15); transform:translateY(-1px); }
.unlock-panel .up-btn:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.unlock-panel .up-blue { background:#2563eb; border-color:#2563eb; }
.unlock-panel .up-lime { background:#16a34a; border-color:#16a34a; }
.unlock-panel .up-cyan { background:#0891b2; border-color:#0891b2; }
.unlock-panel .up-teal { background:#0891b2; border-color:#0891b2; height:34px; }
.unlock-panel .up-green { background:#16a34a; border-color:#16a34a; height:34px; }
.unlock-panel .up-red { background:#e11d48; border-color:#e11d48; }
.unlock-panel .up-hero { background:linear-gradient(135deg,#10b981,#0284c7); border-color:transparent; font-weight:600; }
.unlock-panel .up-actions { flex-wrap:wrap; }
.unlock-panel .up-actions .up-btn { flex:1; min-width:110px; }
/* 结果横幅（成功绿 / 失败红 / 等待黄） */
.unlock-panel .up-banner { display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:10px; font-size:14px; font-weight:500; }
.unlock-panel .up-banner.ok { background:rgba(34,197,94,.08); border:1px solid rgba(34,197,94,.3); color:#4ade80; }
.unlock-panel .up-banner.err { background:rgba(239,68,68,.08); border:1px solid rgba(239,68,68,.3); color:#f87171; }
.unlock-panel .up-banner.wait { background:rgba(234,179,8,.08); border:1px solid rgba(234,179,8,.3); color:#facc15; }
/* 面板视图：头部快捷键按钮配色 */
.unlock-panel .up-headbtns { display:flex; gap:8px; flex-wrap:wrap; }
.unlock-panel .up-mini { border:1px solid transparent; border-radius:8px; color:#fff; font-size:12px; font-weight:500;
  height:30px; padding:0 14px; cursor:pointer; transition:filter .15s; }
.unlock-panel .up-mini:hover:not(:disabled) { filter:brightness(1.15); }
.unlock-panel .up-mini:disabled { opacity:.45; cursor:not-allowed; }
.unlock-panel .up-wake { background:#059669; border-color:#059669; }
.unlock-panel .up-sleep { background:#475569; border-color:#475569; }
.unlock-panel .up-upswipe { background:#4f46e5; border-color:#4f46e5; }
.unlock-panel .up-red { background:#e11d48; border-color:#e11d48; }
/* 检测到的密码 / 上次使用的密码卡片 */
.unlock-panel .up-card { padding:14px; border-radius:12px; }
.unlock-panel .up-card-cyan { background:rgba(6,182,212,.06); border:1px solid rgba(6,182,212,.35); }
.unlock-panel .up-card-green { background:rgba(34,197,94,.05); border:1px solid rgba(34,197,94,.3); }
.unlock-panel .up-card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.unlock-panel .up-card-label { font-size:13px; font-weight:600; color:#8b949e; display:flex; align-items:center; gap:6px; }
.unlock-panel .up-card-cyan .up-card-label::before { content:''; width:8px; height:8px; border-radius:50%; background:#22d3ee; box-shadow:0 0 8px #22d3ee; }
.unlock-panel .up-card-green .up-card-label::before { content:''; width:8px; height:8px; border-radius:50%; background:#4ade80; box-shadow:0 0 8px #4ade80; }
.unlock-panel .up-card-row { display:flex; align-items:center; gap:12px; }
.unlock-panel .up-pwd { flex:1; font-size:20px; font-weight:700; letter-spacing:.05em; cursor:pointer; user-select:all;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.unlock-panel .up-cyan-text { color:#67e8f9; }
.unlock-panel .up-green-text { color:#4ade80; }
.unlock-panel .up-unverified { color:#8b949e; font-size:12px; }
.unlock-panel .up-badge { display:inline-block; font-size:12px; padding:2px 8px; border-radius:4px; font-weight:500;
  border:1px solid; line-height:1.4; }
/* 历史记录表（max-height 180 滚动 + 固定布局） */
.unlock-panel .up-history { border-top:1px solid #30363d; padding-top:14px; }
.unlock-panel .up-history-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.unlock-panel .up-history-head span { font-size:14px; font-weight:600; color:#8b949e; }
.unlock-panel .up-history-head small { font-size:12px; color:#6e7681; }
.unlock-panel .up-history-scroll { max-height:180px; overflow-y:auto; }
.unlock-panel .up-table { width:100%; border-collapse:collapse; font-size:13px; table-layout:fixed; }
.unlock-panel .up-table th { text-align:left; color:#8b949e; font-weight:500; padding:4px 8px; border-bottom:1px solid #30363d; }
.unlock-panel .up-table td { padding:8px 8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.unlock-panel .up-table tbody tr { border-bottom:1px solid rgba(48,54,61,.4); cursor:pointer; }
.unlock-panel .up-table tbody tr:hover { background:rgba(56,189,248,.05); }
.unlock-panel .up-cell-pwd { font-weight:600; color:#e6edf3; }
.unlock-panel .up-cell-time { color:#8b949e; font-size:12px; text-align:left; }
.unlock-panel .up-link { background:none; border:none; color:#38bdf8; font-size:12px; padding:0; cursor:pointer; }
.unlock-panel .up-link:hover { text-decoration:underline; }
.unlock-panel .up-back { background:none; border:none; color:#8b949e; font-size:13px; cursor:pointer; padding:0; align-self:flex-start; }
.unlock-panel .up-back:hover { color:#e6edf3; }

/* ═══ 投屏页顶栏（状态条 + 两组按钮条的结构与排布，
   配色保持789远控浅色蓝——白卡底、蓝色高亮、琥珀/绿/红仅用于状态值）═══ */
.screen-topbar { display:flex; flex-direction:column; gap:10px; margin:0 0 10px; }
/* 状态区是四枚彼此独立的胶囊，只有间距、没有整条外框 */
.screen-statusbar { display:flex; align-items:stretch; flex-wrap:wrap; gap:8px; padding:0;
  border:0; background:none; box-shadow:none; color:#5b7797; font-size:13px; }
.sb-cell { display:inline-flex; align-items:center; gap:8px; flex:0 1 auto; min-height:46px;
  padding:7px 16px; border:1px solid #ccd9e8; border-radius:14px;
  background:linear-gradient(180deg,#fff,#f4f8fd); white-space:nowrap;
  box-shadow:0 6px 18px #2b4a6b0f,inset 0 1px #fff; }
.sb-cell.sb-conn { flex:0 0 auto; gap:9px; padding:0 18px; }
.sb-cell.sb-conn > [data-sb-conn] { color:#27496f; font-weight:650; letter-spacing:.2px; }
.sb-cell.sb-latency { flex:1 1 280px; justify-content:center; min-width:250px; }
/* 0.7.248 网速格：可点击重测（设备 speed-test 指令），按钮元素需重置 UA 默认字体 */
.sb-cell.sb-speed { flex:0 0 auto; justify-content:center; cursor:pointer; font:inherit; }
.sb-cell.sb-speed:hover { border-color:#a9c4e8; box-shadow:0 6px 18px #2b4a6b1a,inset 0 1px #fff; }
.sb-cell.sb-speed:hover b { color:#1d4f91; }
.sb-cell.sb-speed:active { transform:translateY(1px); }
.sb-cell.sb-battery { flex:0 0 auto; justify-content:center; min-width:112px; }
.sb-cell.sb-sim { flex:0 0 auto; }
/* 电量胶囊随状态着色（电量充足/充电时呈绿色边框） */
.sb-cell.sb-battery.good { border-color:#b6ddc8; background:linear-gradient(180deg,#fbfffc,#eefaf3); }
.sb-cell.sb-battery.warn { border-color:#ecd6a4; background:linear-gradient(180deg,#fffdf6,#fdf5e6); }
.sb-cell.sb-battery.bad { border-color:#eec1bc; background:linear-gradient(180deg,#fffafa,#fdeeed); }
.sb-cell.sb-battery.charging { box-shadow:0 6px 18px #2b4a6b0f,inset 0 1px #fff,0 0 0 2px #22a06b14; }
.sb-dot { width:7px; height:7px; border-radius:50%; background:#b6c3d1; box-shadow:0 0 0 3px #b6c3d118; flex-shrink:0; }
.sb-dot.on { background:#22a06b; box-shadow:0 0 0 3px #22a06b22; }
.sb-dot.warn { background:#e0a33a; box-shadow:0 0 0 3px #e0a33a22; }
.sb-cell b { color:#2c5f9e; font-weight:650; font-variant-numeric:tabular-nums; }
.sb-cell b.slow { color:#b45309; }
.sb-cell b.muted { color:#7c8ea3; font-weight:600; }
.sb-cell b.good { color:#15805a; }
.sb-cell b.warn { color:#a9691a; }
.sb-cell b.bad { color:#c0392b; }
.sb-cell [data-sb-mask].warn { color:#a9691a; font-weight:600; }
.sb-cell [data-sb-lock].warn { color:#a9691a; font-weight:600; }
.sb-ico { display:inline-flex; align-items:center; color:#7c93ad; }
.sb-ico .ui-icon { width:14px; height:14px; }
/* 段内细竖线：文字「|」压成 1px 线 */
.sb-pipe { display:inline-block; width:1px; height:16px; margin:0 5px; background:#cfdae7;
  color:transparent; overflow:hidden; flex:none; vertical-align:middle; }
.sb-batt-shell { position:relative; width:24px; height:11px; padding:1.5px; border:1.5px solid #a9b9c9;
  border-radius:3px; box-sizing:border-box; }
.sb-batt-shell::after { content:''; position:absolute; right:-4px; top:2.5px; width:2px; height:4px;
  background:#a9b9c9; border-radius:0 1px 1px 0; }
.sb-batt-shell i { display:block; height:100%; border-radius:1px; background:#22a06b; transition:width .3s; }
.sb-batt-shell.muted i { background:#b6c3d1; }
.sb-batt-shell.warn i { background:#e0a33a; }
.sb-batt-shell.bad i { background:#dc2626; }
.sb-bolt { color:#e0a33a; font-size:11px; line-height:1; }
.screen-actionbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
/* 两组等宽摊满整行（左组按钮靠左、右组按钮靠右；窄屏放不下时整组换行） */
.phone-tool-group { display:flex; align-items:center; gap:8px; padding:7px; border:1px solid #ccd9e8;
  border-radius:15px; background:linear-gradient(180deg,#fff,#f4f8fd);
  box-shadow:0 6px 18px #2b4a6b0f,inset 0 1px #fff; flex:1 1 auto; min-width:max-content; }
.phone-tool-group.screen-tools { justify-content:flex-end; }
.screen-actionbar .screen-tabs { gap:6px; }
.screen-actionbar .phone-title-action,.screen-actionbar .reader-translate,
.screen-actionbar .reader-copy,.screen-actionbar .screen-tab { display:inline-flex; align-items:center;
  gap:8px; min-height:44px; padding:8px 15px; border:1px solid #cddaea; border-radius:11px;
  background:#fff; color:#3c5f8a; font-size:13px; font-weight:600; line-height:1.2; cursor:pointer;
  white-space:nowrap; box-shadow:inset 0 1px #fff;
  transition:border-color .15s,background .15s,box-shadow .15s,color .15s; }
.screen-actionbar .phone-title-action:hover:not(:disabled),.screen-actionbar .reader-translate:hover,
.screen-actionbar .reader-copy:hover,.screen-actionbar .screen-tab:hover:not(:disabled) {
  border-color:#a9c3e6; background:#f5f9ff; color:#20539a; box-shadow:0 2px 8px #245ce114; }
.screen-actionbar .phone-title-action:disabled,.screen-actionbar .screen-tab:disabled {
  opacity:.5; cursor:not-allowed; box-shadow:none; }
.screen-actionbar .tb-ico { display:inline-flex; align-items:center; }
.screen-actionbar .tb-ico .ui-icon { width:16px; height:16px; flex:none; }
/* v7devices.css 是后加载的旧按钮样式（11px/500 是给原手机标题行写的），这里按新顶栏统一回来 */
.screen-actionbar .phone-title-action.v7-settings-btn,
.screen-actionbar .phone-title-action.v7-close-btn { font-size:13px; font-weight:600; padding:8px 15px; }
.screen-actionbar .screen-tab.selected { border-color:#7aa6e8; background:#eaf2ff; color:#1c58c9;
  box-shadow:0 0 0 2px #245ce11a,inset 0 1px #fff; }
.screen-actionbar .reader-toggle.is-live { border-color:#7aa6e8; background:#eaf2ff; color:#1c58c9; }
.screen-actionbar .reader-translate.on { border-color:#7aa6e8; background:#eaf2ff; color:#1c58c9; }
.screen-actionbar .v7-settings-btn { border-color:#d3c9f3; background:#f7f4ff; color:#6a4ecb; }
.screen-actionbar .v7-settings-btn:hover { border-color:#b9a8ee; background:#f1ecff; color:#5a3dc0; }
.screen-actionbar .v7-close-btn { border-color:#e6c3c0; background:#fff5f4; color:#b33b32; }
.screen-actionbar .v7-close-btn:hover:not(:disabled) { border-color:#dba5a0; background:#ffefee; color:#9e2f27; }
.screen-actionbar .v7-close-btn.disabled { opacity:.55; }
/* 关闭不可用（未授权/未开始）时灰态呈现，不再保留红色描边 */
.screen-actionbar .v7-close-btn:disabled,
.screen-actionbar .v7-close-btn.disabled { border-color:#d8e2ec; background:#f3f6fa; color:#93a4b6; opacity:1; box-shadow:none; }
.screen-actionbar .v7-close-btn:disabled .tb-ico,
.screen-actionbar .v7-close-btn.disabled .tb-ico { color:#a9b7c6; }
.screen-actionbar .screen-tab[data-switching] { color:transparent; }
.screen-actionbar .screen-tab[data-switching] .tb-ico { opacity:0; }
/* 手机框内浮层：标题/在线指示（原卡片顶栏的位置，现移进框内）+ 全屏入口 */
.phone-float-label { position:absolute; left:9px; top:9px; z-index:5; display:inline-flex; align-items:center;
  gap:5px; max-width:calc(100% - 46px); padding:3px 9px; border-radius:20px; background:#0b1728b8;
  border:1px solid #ffffff26; color:#eaf3ff; font-size:10.5px; font-weight:600; line-height:1.4;
  pointer-events:none; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.phone-float-label .ui-icon { width:12px; height:12px; color:#cfe4ff; }
.phone-float-label b { font-weight:600; }
.phone-float-label .phone-indicator { width:7px; height:7px; margin:0 0 0 2px; background:#8ea3b8; box-shadow:none; }
.phone-float-label .phone-indicator:after { display:none; content:none; }
.phone-float-label .phone-indicator.live { background:#34d399; box-shadow:0 0 8px #34d399; }
.phone-float-popout { position:absolute; right:9px; top:9px; z-index:6; width:24px; height:24px; min-height:0;
  padding:0; display:grid; place-items:center; border:1px solid #ffffff30; border-radius:8px;
  background:#0b1728a6; color:#e6f0ff; font-size:13px; line-height:1; cursor:pointer;
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.phone-float-popout:hover { background:#245ce1; border-color:#245ce1; }
/* 深色主题下的顶栏与按钮（沿用 styles.css 的深色令牌观感） */
html[data-theme=dark] .sb-cell,html[data-theme=dark] .phone-tool-group {
  border-color:#4a4f57; background:linear-gradient(180deg,#2f3237,#363a41);
  box-shadow:0 6px 18px #00000033,inset 0 1px #ffffff0f; }
html[data-theme=dark] .sb-cell { color:#a6adb6; }
html[data-theme=dark] .sb-cell.sb-battery.good { border-color:#2f6b4f; background:linear-gradient(180deg,#20302a,#1b2a24); }
html[data-theme=dark] .sb-cell.sb-battery.warn { border-color:#6b5730; background:linear-gradient(180deg,#2f2a20,#28231a); }
html[data-theme=dark] .sb-cell.sb-battery.bad { border-color:#6b3b38; background:linear-gradient(180deg,#302222,#281b1b); }
html[data-theme=dark] .sb-cell.sb-battery.charging { box-shadow:0 6px 18px #00000033,inset 0 1px #ffffff0f,0 0 0 2px #22a06b22; }
html[data-theme=dark] .sb-cell.sb-conn > [data-sb-conn] { color:#e4edf9; }
html[data-theme=dark] .sb-ico { color:#8d97a3; }
html[data-theme=dark] .sb-cell.sb-speed:hover { border-color:#5b8fd8; box-shadow:0 6px 18px #00000033,inset 0 1px #ffffff0f; }
html[data-theme=dark] .sb-cell.sb-speed:hover b { color:#cfe2ff; }
html[data-theme=dark] .sb-cell b { color:#8fb6ee; }
html[data-theme=dark] .sb-cell b.muted { color:#9aa2ab; }
html[data-theme=dark] .sb-cell b.good { color:#4ade80; }
html[data-theme=dark] .sb-cell b.warn,html[data-theme=dark] .sb-cell [data-sb-mask].warn { color:#fbbf24; }
html[data-theme=dark] .sb-cell b.bad { color:#f87171; }
html[data-theme=dark] .sb-pipe { background:#5a6068; color:transparent; }
html[data-theme=dark] .screen-actionbar .v7-close-btn:disabled,
html[data-theme=dark] .screen-actionbar .v7-close-btn.disabled {
  border-color:#4a4f57; background:#33373d; color:#7f8b98; }
html[data-theme=dark] .screen-actionbar .v7-close-btn:disabled .tb-ico,
html[data-theme=dark] .screen-actionbar .v7-close-btn.disabled .tb-ico { color:#7f8b98; }
html[data-theme=dark] .screen-actionbar .phone-title-action,html[data-theme=dark] .screen-actionbar .reader-translate,
html[data-theme=dark] .screen-actionbar .reader-copy,html[data-theme=dark] .screen-actionbar .screen-tab {
  border-color:#4a4f57; background:#363a41; color:#b7c4d6; }
html[data-theme=dark] .screen-actionbar .screen-tab.selected,
html[data-theme=dark] .screen-actionbar .reader-toggle.is-live,
html[data-theme=dark] .screen-actionbar .reader-translate.on {
  border-color:#5b8fd8; background:#2b3f5c; color:#cfe2ff; }
html[data-theme=dark] .screen-actionbar .v7-settings-btn { border-color:#57506e; background:#37324a; color:#c3b1f3; }
html[data-theme=dark] .screen-actionbar .v7-close-btn { border-color:#5c4343; background:#3a2c2c; color:#f0a19c; }
@media (max-width:1250px) {
  .screen-statusbar { font-size:11.5px; gap:6px; }
  .sb-cell { padding:5px 11px; gap:6px; min-height:40px; }
  .sb-cell.sb-conn { padding:0 13px; }
  .sb-cell.sb-latency { min-width:210px; }
  .screen-actionbar .phone-title-action,.screen-actionbar .reader-translate,
  .screen-actionbar .reader-copy,.screen-actionbar .screen-tab { min-height:38px; padding:6px 12px; font-size:12px; gap:6px; }
  .screen-actionbar .phone-title-action.v7-settings-btn,
  .screen-actionbar .phone-title-action.v7-close-btn { padding:6px 12px; font-size:12px; }
  .screen-actionbar .tb-ico .ui-icon { width:15px; height:15px; }
  .phone-tool-group { padding:5px; gap:5px; }
}
@media (max-width:700px) {
  .screen-topbar { gap:6px; margin-bottom:8px; }
  .screen-statusbar { font-size:10.5px; gap:5px; }
  .sb-cell { padding:5px 9px; gap:4px; min-height:36px; border-radius:11px; }
  .sb-cell.sb-conn { padding:0 11px; }
  .sb-cell.sb-latency { flex:1 1 100%; min-width:0; justify-content:flex-start; order:9; }
  .sb-batt-shell { width:20px; height:10px; }
  .screen-actionbar { gap:6px; }
  .phone-tool-group { padding:4px; gap:3px; border-radius:10px; flex:1 1 100%; }
  .phone-tool-group.screen-tools { justify-content:flex-start; }
  .screen-actionbar .phone-title-action,.screen-actionbar .reader-translate,
  .screen-actionbar .reader-copy,.screen-actionbar .screen-tab { min-height:32px; padding:4px 8px; font-size:11px; gap:5px; }
  .screen-actionbar .phone-title-action.v7-settings-btn,
  .screen-actionbar .phone-title-action.v7-close-btn { padding:4px 8px; font-size:11px; }
  .screen-actionbar .tb-ico .ui-icon { width:14px; height:14px; }
  .phone-float-label { left:6px; top:6px; padding:2px 7px; font-size:9.5px; max-width:calc(100% - 12px); }
}


/* ── 应用列表「注入」弹窗「上传模板」（0.7.227）：拖拽/点击上传区 ── */
.app-inject-upload { margin-top:14px; padding-top:14px; border-top:1px dashed #d6e0f4; }
.app-inject-dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:18px 12px; border:2px dashed #9db4dc; border-radius:10px; background:#f4f8ff; color:#33507e; font-size:13px; cursor:pointer; transition:all .15s; text-align:center; }
.app-inject-dropzone .ui-icon { width:20px; height:20px; color:#3f6db5; }
.app-inject-dropzone strong { font-size:13px; }
.app-inject-dropzone small { font-size:11px; color:#7387a8; }
.app-inject-dropzone:hover, .app-inject-dropzone.drag { border-color:#3f6db5; background:#e8f1ff; color:#274a80; }
.app-inject-dropzone.busy { opacity:.6; pointer-events:none; }
.app-inject-upload-status { margin:8px 0 0; font-size:11px; color:#5b6b85; }
