/* 刻度:间距 4/8/12/16/24/32,圆角 6/10/16。强调色仅 --accent 一种。 */
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --r-s: 6px; --r-m: 10px; --r-l: 16px;

  --bg: #ffffff;
  --bg-subtle: #f5f5f6;
  --bg-hover: #f0f0f2;
  --bg-sel: #e8e8eb;
  --line: #e4e4e7;
  --ink: #18181b;
  --ink-2: #52525b;
  --muted: #8a8a93;
  --accent: #2b6cd8;
  --accent-hover: #2459b3;
  --accent-ink: #ffffff;
  --accent-soft: #e8eefa;
  --ok: #1d7f47;
  --warn: #9a6210;
  --bad: #c3372c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18181b;
    --bg-subtle: #111113;
    --bg-hover: #222226;
    --bg-sel: #2b2b30;
    --line: #2e2e34;
    --ink: #ececef;
    --ink-2: #b3b3ba;
    --muted: #7f7f89;
    --accent: #5a92ea;
    --accent-hover: #74a4ef;
    --accent-ink: #0d1626;
    --accent-soft: #1d2a40;
    --ok: #52c487;
    --warn: #d8a344;
    --bad: #ee6c60;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 12px; }
.err { color: var(--bad); font-size: 12px; min-height: 18px; }
.empty { color: var(--muted); font-size: 13px; padding: var(--s4); line-height: 1.6; }
.ic {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* 按钮:默认是次要(描边),.primary 用强调色,.ghost 无底,.danger 红字描边 */
button {
  font: inherit; display: inline-flex; align-items: center; gap: var(--s2);
  height: 32px; padding: 0 var(--s3); border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  cursor: pointer; white-space: nowrap;
}
button:hover:not(:disabled) { background: var(--bg-hover); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
button.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
button.ghost:hover:not(:disabled) { background: var(--bg-hover); color: var(--ink); }
button.icon { width: 32px; padding: 0; justify-content: center; }
button.small { height: 28px; padding: 0 var(--s2); font-size: 12px; }
button.danger { color: var(--bad); }
button.danger:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--bad); }

input, select, textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  height: 32px; padding: 0 var(--s3);
  border: 1px solid var(--line); border-radius: var(--r-s);
}
input::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input:disabled, select:disabled { background: var(--bg-subtle); }
input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }

/* 登录 */
.login { display: grid; place-items: center; height: 100vh; background: var(--bg-subtle); padding: var(--s4); }
.login-card {
  display: flex; flex-direction: column; gap: var(--s4); width: 340px; max-width: 100%;
  padding: var(--s6) var(--s5); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-l);
}
.login-head h1 { margin: 0; font-size: 20px; font-weight: 600; }
.login-head p { margin: var(--s1) 0 0; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: var(--s2); font-size: 13px; color: var(--ink-2); }
.field input { height: 36px; }
.login-card button { height: 36px; justify-content: center; margin-top: var(--s2); }
.login { grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: var(--s6); }
.login-feats { width: 360px; max-width: 100%; }
.login-feats h2 { margin: 0 0 var(--s4); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.login-feats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s5); }
.login-feats li { display: flex; gap: var(--s3); align-items: flex-start; }
.login-feats b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.login-feats p { margin: var(--s1) 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.feat-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg); color: var(--ink-2); }
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; justify-items: center; height: auto; min-height: 100vh; row-gap: var(--s6); padding: var(--s6) var(--s4); }
  .login-feats { width: 340px; }
}

/* 布局 */
.app { display: flex; flex-direction: column; height: 100vh; }
.topbar {
  display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s3) 0 var(--s4); height: 48px;
  background: var(--bg); border-bottom: 1px solid var(--line); flex: none;
}
.brand { font-weight: 600; font-size: 15px; margin-right: var(--s2); }
.spacer { flex: 1; }
#whoami { margin-right: var(--s2); }
.ws-state { display: inline-flex; align-items: center; gap: var(--s2); font-size: 12px; color: var(--muted); }
.ws-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.ws-state[data-state="open"]::before { background: var(--ok); }
.ws-state[data-state="closed"] { color: var(--bad); }
.ws-state[data-state="closed"]::before { background: var(--bad); }

.main { flex: 1; display: grid; grid-template-columns: var(--w-dev, 320px) var(--w-conv, 288px) minmax(360px, 1fr); min-height: 0; }
.col { position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; min-width: 0; background: var(--bg); }
/* 栏宽拖拽手柄:贴在栏的右边线上 */
.splitter { position: absolute; top: 0; bottom: 0; right: -4px; width: 8px; cursor: col-resize; z-index: 2; }
.splitter::after { content: ""; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; }
.splitter:hover::after, .splitter.dragging::after { background: var(--accent); }
body.resizing { cursor: col-resize; user-select: none; }
.col.chat { border-right: none; background: var(--bg-subtle); }
.col-head {
  display: flex; align-items: center; gap: var(--s2);
  padding: 0 var(--s4); height: 48px; flex: none;
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.col-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-meta { font-size: 12px; color: var(--muted); flex: none; }
.head-actions { display: flex; gap: var(--s1); flex: none; margin-right: calc(-1 * var(--s2)); }
.head-actions button.on { color: var(--accent); }
.list { overflow-y: auto; flex: 1; }
.back { display: none; margin-left: calc(-1 * var(--s2)); }

/* 设备 / 会话项:分隔线列表,不用卡片 */
.device, .conv {
  display: block; padding: var(--s3) var(--s4); cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.device:hover, .conv:hover { background: var(--bg-hover); }
.device.active, .conv.active { background: var(--bg-sel); box-shadow: inset 2px 0 0 var(--accent); }
.device-top, .conv-top { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.device-name, .conv-peer { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device.offline .device-name { color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); opacity: .5; }
.dot.on { background: var(--ok); opacity: 1; }
/* 名称下方各行与名称文字左对齐(圆点 8 + 间距 8) */
.device-body { padding-left: var(--s4); }
.device-sub { font-size: 12px; color: var(--ink-2); margin-top: var(--s1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-sub .on { color: var(--ok); }
.sim-line { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.perm { display: flex; align-items: flex-start; gap: var(--s1); font-size: 12px; margin-top: var(--s1); color: var(--muted); }
.perm .ic { width: 14px; height: 14px; margin-top: 2px; }
.perm.bad { color: var(--bad); }
.perm.warn { color: var(--warn); }
.perm.ok { color: var(--muted); }

.conv-peer .num { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: var(--s2); }
.conv-pin { width: 14px; height: 14px; color: var(--muted); }
.list.selecting .conv { display: flex; gap: var(--s3); align-items: flex-start; }
.list.selecting .conv input { margin-top: 3px; flex: none; }
.list.selecting .conv-body { flex: 1; min-width: 0; }
.list.selecting .conv.checked { background: var(--bg-sel); }
.sel-bar { flex: none; display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: var(--bg); }
.col-head .head-btn.on { color: var(--accent); }
.conv-time { font-size: 12px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.conv-last { font-size: 13px; color: var(--muted); margin-top: var(--s1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge {
  background: var(--accent); color: var(--accent-ink); border-radius: var(--r-s);
  font-size: 11px; font-weight: 600; padding: 0 var(--s1); min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}

/* 写短信:右下角悬浮按钮 + 浮动撰写窗 */
.fab {
  position: fixed; right: var(--s5); bottom: 80px; z-index: 8;
  height: 48px; padding: 0 var(--s5) 0 var(--s4); gap: var(--s2);
  border: none; border-radius: var(--r-l); background: var(--accent); color: var(--accent-ink);
  font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.16);
}
.fab:hover:not(:disabled) { background: var(--accent-hover); }
.fab .ic { width: 20px; height: 20px; }
.compose-win {
  position: fixed; right: var(--s5); bottom: var(--s5); z-index: 9;
  width: 400px; max-width: calc(100vw - 32px);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: 0 8px 24px rgba(0,0,0,.16); display: flex; flex-direction: column; overflow: hidden;
}
.cw-head { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 var(--s2) 0 var(--s4); font-weight: 600; border-bottom: 1px solid var(--line); }
.cw-body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3) var(--s4); }
.cw-body input { height: 36px; width: 100%; }
.cw-body textarea { width: 100%; height: auto; min-height: 112px; padding: var(--s2) var(--s3); line-height: 1.6; resize: vertical; }
.cw-from { display: flex; align-items: center; gap: var(--s2); }
.cw-from select { height: 28px; font-size: 12px; padding: 0 var(--s2); min-width: 0; }
.cw-from #cpDevice { flex: 1; }
.cw-from #cpSim { flex: none; max-width: 120px; }
.cw-foot { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s4) var(--s3); }
.cw-foot .err { min-height: 0; }
.cw-hint { font-size: 11px; }

/* 聊天 */
.messages { flex: 1; overflow-y: auto; padding: var(--s4) var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.messages .empty { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.messages .empty .ic { width: 24px; height: 24px; }
.bubble-row { display: flex; }
.bubble-row.out { justify-content: flex-end; }
.bubble {
  max-width: min(72%, 560px); padding: var(--s2) var(--s3); border-radius: var(--r-m);
  background: var(--bg); border: 1px solid var(--line);
  white-space: pre-wrap; word-break: break-word;
}
.bubble-row.out .bubble { background: var(--accent-soft); border-color: transparent; }
.meta { font-size: 11px; color: var(--muted); margin-top: var(--s1); font-variant-numeric: tabular-nums; }
.bubble-row.out .meta { text-align: right; }
.meta .st-ok { color: var(--ok); }
.meta .st-bad { color: var(--bad); }
.meta .st-warn { color: var(--warn); }
.meta .st { display: inline-flex; align-items: center; gap: var(--s1); vertical-align: bottom; }
.meta .st .ic { width: 14px; height: 14px; }
.meta .st[title] { cursor: help; }

.send-bar { display: flex; gap: var(--s2); align-items: center; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: var(--bg); flex: none; }
.send-bar input { flex: 1; min-width: 0; height: 36px; }
.send-bar button, .send-bar select { height: 36px; }
.sim-select { flex: none; max-width: 132px; padding: 0 var(--s2); cursor: pointer; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.36); display: grid; place-items: center; z-index: 10; padding: var(--s4); }
.modal-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-l);
  width: 720px; max-width: 100%; height: 80vh; max-height: calc(100vh - 32px); overflow-y: auto; padding: var(--s4) var(--s5) var(--s5);
  resize: both; min-width: 360px; min-height: 240px;   /* 电脑端可拖右下角调大小 */
}
.modal-card.small { width: 400px; height: auto; resize: none; min-height: 0; display: flex; flex-direction: column; gap: var(--s3); }
.modal-card.mid { width: 520px; height: auto; resize: none; min-height: 0; display: flex; flex-direction: column; gap: var(--s3); }
.modal-card.mid .field select { height: 36px; }
.field-label { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-top: var(--s1); }
.merge-list { max-height: 280px; overflow-y: auto; }
.merge-list .acc-row.disabled { color: var(--muted); cursor: default; }
.col-head .head-btn { margin-right: calc(-1 * var(--s2)); }
.dlg-text { margin: 0; color: var(--ink-2); line-height: 1.6; white-space: pre-line; }
.dlg-actions { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s2); }
.modal-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 16px; margin-right: calc(-1 * var(--s2)); }
.admin-sec { border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: var(--s4); }
.admin-sec h3 { margin: 0 0 var(--s2); font-size: 14px; font-weight: 600; }
.admin-sec h4 { margin: var(--s5) 0 var(--s2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.admin-sec textarea { width: 100%; height: auto; padding: var(--s2) var(--s3); margin-top: var(--s2); line-height: 1.6; font-variant-numeric: tabular-nums; }
.list-tools { display: flex; align-items: center; gap: var(--s3); height: 36px; }
.list-tools select { height: 28px; font-size: 12px; }
.gen-row input[type=number] { flex: none; width: 88px; min-width: 0; }
.batch-result { margin: var(--s3) 0 0; padding: var(--s3); background: var(--bg-subtle); border-radius: var(--r-s); font: 12px/1.6 ui-monospace, Menlo, monospace; white-space: pre-wrap; user-select: all; }
.row { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-top: var(--s3); }
.row input:not([type=checkbox]) { flex: 1; min-width: 120px; }
.chk { display: flex; align-items: center; gap: var(--s2); font-size: 13px; white-space: nowrap; }
.msg { margin-top: var(--s2); min-height: 18px; }
.acc-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.acc-row { display: flex; align-items: center; gap: var(--s3); min-height: 44px; padding: var(--s1) 0; border-bottom: 1px solid var(--line); }
.acc-row .spacer { flex: 1; }
.acc-row .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row .tag { font-size: 12px; color: var(--muted); }
.acc-row .pw { width: 140px; flex: none; }
.acc-row .owner { font-size: 12px; color: var(--ink-2); width: 120px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row .cb-slot { width: 16px; flex: none; }
label.acc-row { cursor: pointer; }

/* 今日收发 */
.stat-list { display: flex; flex-direction: column; }
.stat-row { display: flex; align-items: center; gap: var(--s2); height: 36px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stat-row:last-child { border-bottom: none; }
.stat-head { color: var(--muted); font-size: 12px; height: 32px; }
.stat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-num { width: 64px; text-align: right; flex: none; }
.stat-sent, .stat-recv { font-weight: 600; }
.stat-head .stat-sent, .stat-head .stat-recv { font-weight: 400; }

/* 全局搜索 */
.search { position: relative; display: flex; align-items: center; width: 360px; max-width: 40vw; margin-left: var(--s4); }
.search > .ic { position: absolute; left: var(--s3); color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding-left: 36px; padding-right: 32px; background: var(--bg-subtle); border-color: transparent; }
.search input:focus { background: var(--bg); border-color: var(--accent); }
.search input::-webkit-search-cancel-button { display: none; }
.search-kbd {
  position: absolute; right: var(--s2); font: 11px/16px ui-monospace, Menlo, monospace; color: var(--muted);
  padding: 0 var(--s1); border: 1px solid var(--line); border-radius: var(--r-s); pointer-events: none;
}
.search input:focus ~ .search-kbd { display: none; }
.search-panel {
  position: absolute; top: 40px; left: 0; width: 560px; max-width: calc(100vw - 32px); max-height: 64vh; overflow-y: auto; z-index: 15;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.search-head { padding: var(--s2) var(--s3); font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.hit { display: block; padding: var(--s2) var(--s3); cursor: pointer; border-bottom: 1px solid var(--line); }
.hit:last-child { border-bottom: none; }
.hit:hover, .hit.sel { background: var(--bg-hover); }
.hit-top { display: flex; gap: var(--s2); font-size: 12px; color: var(--muted); min-width: 0; }
.hit-top .who { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-top .dev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.hit-top .t { flex: none; font-variant-numeric: tabular-nums; }
.hit-body { font-size: 13px; margin-top: var(--s1); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: var(--accent-soft); color: var(--ink); border-radius: 2px; padding: 0 1px; }
.bubble-row.flash .bubble { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 常用回复 */
.tpl-wrap { position: relative; flex: none; }
.send-bar .tpl-btn { width: 36px; padding: 0; justify-content: center; color: var(--ink-2); }
.menu.tpl-menu { bottom: 44px; left: 0; top: auto; position: absolute; width: 320px; max-height: 360px; overflow-y: auto; }
.tpl-item { display: flex; align-items: flex-start; gap: var(--s1); border-radius: var(--r-s); }
.tpl-item:hover { background: var(--bg-hover); }
.menu .tpl-item .tpl-text { flex: 1; min-width: 0; height: auto; min-height: 32px; padding: var(--s2); white-space: normal; text-align: left; line-height: 1.5; background: transparent; }
.menu .tpl-item .tpl-del { flex: none; width: 28px; height: 28px; margin-top: 2px; padding: 0; justify-content: center; color: var(--muted); }
.tpl-sep { height: 1px; background: var(--line); margin: var(--s1) 0; }
.tpl-empty { padding: var(--s2); font-size: 12px; color: var(--muted); }

/* 操作日志 */
.audit-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); font-size: 12px; }
.audit-row { display: grid; grid-template-columns: 96px 112px 72px 1fr; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.audit-row .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.audit-row .u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-row .a { color: var(--ink-2); }
.audit-row .a.danger { color: var(--bad); }
.audit-row .x { min-width: 0; word-break: break-all; }
.audit-row .x .d { color: var(--muted); margin-left: var(--s2); }
#auditMore { margin-top: var(--s3); }

/* 右键菜单 / 提示条 */
.menu {
  position: fixed; z-index: 20; min-width: 148px; padding: var(--s1);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.menu button { width: 100%; height: 32px; border: none; border-radius: var(--r-s); background: transparent; justify-content: flex-start; }
.menu button.danger { color: var(--bad); }
.toast {
  position: fixed; left: 50%; bottom: var(--s5); transform: translateX(-50%); z-index: 30;
  max-width: calc(100vw - 32px); padding: var(--s2) var(--s4); border-radius: var(--r-s);
  background: var(--ink); color: var(--bg); font-size: 13px;
}

/* 手机端:单栏下钻 */
@media (max-width: 760px) {
  .main { grid-template-columns: 1fr; }
  .col { grid-area: 1 / 1; display: none; border-right: none; }
  body[data-view="devices"] .col.devices,
  body[data-view="convs"]   .col.convs,
  body[data-view="chat"]    .col.chat { display: flex; }
  .back { display: inline-flex; }
  .bubble { max-width: 85%; }
  .messages { padding: var(--s3) var(--s4); }
  .topbar .ghost span, #whoami { display: none; }
  .topbar .ghost { width: 32px; padding: 0; justify-content: center; }
  .send-btn span { display: none; }
  .fab { right: var(--s4); bottom: 72px; width: 56px; padding: 0; justify-content: center; }
  .fab span { display: none; }
  .cw-hint { display: none; }
  .compose-win { right: 0; left: 0; bottom: 0; width: auto; max-width: none; border-radius: var(--r-l) var(--r-l) 0 0; }
  .send-btn { width: 36px; padding: 0; justify-content: center; }
  .splitter { display: none; }
  .search { width: auto; flex: 1; max-width: none; margin-left: var(--s2); }
  .search-kbd, .brand { display: none; }
  .topbar > .spacer { display: none; }
  .ws-state { font-size: 0; gap: 0; }   /* 手机上只留状态圆点 */
  .search-panel { position: fixed; top: 52px; left: var(--s2); right: var(--s2); width: auto; }
  .audit-row { grid-template-columns: 1fr 1fr; }
  .modal-card { resize: none; height: auto; }
  .acc-row .owner { width: auto; max-width: 96px; }
}
.sim-select.empty, #cpSim.empty { color: var(--muted); }
