/* 开号台 · 控制台样式 v3
   暖白纸面 + 墨色文字 + 玉青强调。所有页面共用。 */

:root {
  --bg: #f4f3ef;
  --bg-raise: #fbfaf7;
  --surface: #ffffff;
  --ink: #15181c;
  --ink-2: #4a5158;
  --ink-3: #858c94;
  --ink-4: #a9aeae;
  --line: #e5e1d8;
  --line-soft: #efede6;
  --line-strong: #d8d3c7;
  --jade: #0f6b58;
  --jade-deep: #0a5445;
  --jade-soft: #e8f2ee;
  --jade-line: #cde2da;
  --danger: #b42318;
  --danger-deep: #8f1c13;
  --danger-soft: #fdecea;
  --warn: #8a5a00;
  --warn-soft: #fbf2dd;
  --info: #1f5bd0;
  --info-soft: #eaf1fc;
  --radius-lg: 14px;
  --radius: 11px;
  --radius-sm: 8px;
  --shadow-pop: 0 18px 48px -18px rgba(24, 22, 15, .28), 0 2px 8px rgba(24, 22, 15, .06);
  --shadow-card: 0 1px 2px rgba(24, 22, 15, .03);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sidebar-w: 236px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--jade); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
::selection { background: #cfe6dd; color: #0a3b31; }

/* ---------- 基础控件 ---------- */
.i { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 15px; height: 15px; }
.i.lg { width: 22px; height: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease), transform .08s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15, 107, 88, .22); }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--jade); color: #fff; border-color: var(--jade); font-weight: 600; }
.btn-primary:hover:not([disabled]) { background: var(--jade-deep); border-color: var(--jade-deep); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink-2); }
.btn-ghost:hover:not([disabled]) { border-color: var(--line-strong); background: var(--bg-raise); color: var(--ink); }
.btn-quiet { color: var(--ink-3); }
.btn-quiet:hover:not([disabled]) { background: #eeece4; color: var(--ink); }
.btn-danger { color: var(--danger); border-color: #efcdc9; background: var(--surface); }
.btn-danger:hover:not([disabled]) { background: var(--danger-soft); border-color: #e3b3ad; }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.btn-danger-solid:hover:not([disabled]) { background: var(--danger-deep); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-busy::before {
  content: ""; width: 13px; height: 13px; border-radius: 50%;
  border: 1.8px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--ink-3);
}
.icon-btn:hover { background: #eceae2; color: var(--ink); }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15, 107, 88, .22); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--radius-sm); padding: 8px 11px; height: 36px;
  font-size: 13px; color: var(--ink); transition: border-color .14s, box-shadow .14s;
}
.textarea { height: auto; min-height: 92px; resize: vertical; line-height: 1.6; }
.input:hover, .select:hover, .textarea:hover { border-color: #c6c0b2; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px rgba(15, 107, 88, .14);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.select { appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23858c94' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.input-sm { height: 32px; font-size: 12.5px; padding: 5px 9px; }
.inline-field { display: flex; align-items: center; gap: 8px; }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 34px; height: 20px; border-radius: 999px; background: #dcd8cd;
  position: relative; transition: background .16s var(--ease); flex: 0 0 auto;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18);
  transition: transform .16s var(--ease);
}
.switch input:checked + .track { background: var(--jade); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(15, 107, 88, .2); }

.segmented { display: inline-flex; padding: 3px; gap: 2px; background: #edebe4; border-radius: 9px; }
.segmented button {
  height: 30px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent;
  color: var(--ink-3); font-size: 12.5px; font-weight: 500; transition: all .14s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.segmented button:hover { color: var(--ink); }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(24,22,15,.12); font-weight: 600; }
.segmented .count { font-size: 11px; color: var(--ink-4); font-weight: 500; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 8px;
  border-radius: 6px; font-size: 11.5px; font-weight: 500; white-space: nowrap;
  background: #f0eee7; color: var(--ink-2);
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip.jade { background: var(--jade-soft); color: var(--jade-deep); }
.chip.blue { background: var(--info-soft); color: var(--info); }
.chip.red { background: var(--danger-soft); color: var(--danger); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.gray { background: #f0eee7; color: var(--ink-3); }
.chip.plain { background: transparent; border: 1px solid var(--line); color: var(--ink-3); }
.chip.lg { height: 26px; font-size: 12px; padding: 0 10px; }
.chip .pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }

.pill-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.pill-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #2f9e77; }
.pill-status .dot.bad { background: var(--danger); }
.pill-status .dot.warn { background: #c98a12; }

/* ---------- 登录页 ---------- */
.gate {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(680px 340px at 50% -6%, rgba(15, 107, 88, .07), transparent 70%),
    var(--bg);
}
.gate-card {
  width: 100%; max-width: 376px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px 26px; box-shadow: 0 24px 60px -34px rgba(24, 22, 15, .35);
  animation: riseIn .28s var(--ease);
}
.gate-mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--jade);
  color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 700;
  letter-spacing: .02em; margin-bottom: 16px;
}
.gate h1 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.gate .gate-sub { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.gate form { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.gate form .input { height: 40px; }
.gate-error { min-height: 18px; margin-top: 8px; font-size: 12.5px; color: var(--danger); }
.gate-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--ink-4); display: flex; justify-content: space-between; gap: 10px; }

/* ---------- 外壳 ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); height: 100dvh; overflow: hidden; }
.sidebar {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--bg-raise); border-right: 1px solid var(--line);
  padding: 16px 12px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 14px; }
.brand-mark {
  width: 31px; height: 31px; border-radius: 9px; background: var(--jade); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 700; flex: 0 0 auto;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12);
}
.brand-text { min-width: 0; }
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.brand-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.brand-tag {
  flex: 0 0 auto; font-size: 9.5px; font-weight: 600; line-height: 15px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line-strong);
  border-radius: 4px; padding: 0 4px; background: #fff;
}
.brand-sub { font-size: 10.5px; color: var(--ink-4); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; padding-bottom: 6px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: #ddd8cc; border-radius: 3px; }
.nav-label {
  margin: 16px 10px 5px; font-size: 10.5px; letter-spacing: .09em;
  color: var(--ink-4); font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 9px; height: 35px; padding: 0 10px;
  border-radius: 8px; color: var(--ink-2); font-size: 13px; font-weight: 500;
  text-decoration: none; position: relative; transition: background .13s, color .13s;
}
.nav-item:hover { background: #f1efe7; color: var(--ink); text-decoration: none; }
.nav-item.active { background: var(--jade-soft); color: var(--jade-deep); font-weight: 600; }
.nav-item .i { color: var(--ink-4); }
.nav-item.active .i { color: var(--jade); }
.nav-item .n-badge {
  margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px;
  background: var(--danger-soft); color: var(--danger); font-size: 10.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-item .n-badge.gray { background: #eceae2; color: var(--ink-3); }
.nav-item .n-badge.blue { background: var(--info-soft); color: var(--info); }
.nav-foot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; }
.side-status { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 11.5px; color: var(--ink-3); }
.side-status .live { width: 6px; height: 6px; border-radius: 50%; background: #2f9e77; box-shadow: 0 0 0 3px rgba(47, 158, 119, .12); }
.side-status .live.off { background: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .1); }
.side-status .live.wait { background: #c98a12; box-shadow: 0 0 0 3px rgba(201, 138, 18, .14); }
.side-user { display: flex; align-items: center; gap: 8px; padding: 6px 4px 2px 10px; }
.side-user .who { font-size: 11.5px; color: var(--ink-3); flex: 1; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar {
  height: 62px; flex: 0 0 auto; display: flex; align-items: center; gap: 14px;
  padding: 0 26px; border-bottom: 1px solid var(--line);
  background: rgba(244, 243, 239, .88); backdrop-filter: saturate(1.2) blur(10px);
  position: relative; z-index: 6;
}
.topbar-title { min-width: 0; flex: 1; }
.page-title-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.page-title { font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
#topTag { display: none; }
.btn-primary[disabled] { background: #d8d4c8; border-color: #d8d4c8; color: #fff; opacity: 1; }
@media (max-width: 900px) { #topTag { display: inline-flex; } }
.page-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 20px 26px 44px; scrollbar-width: thin; }
.content::-webkit-scrollbar { width: 10px; }
.content::-webkit-scrollbar-thumb { background: #dcd7ca; border-radius: 6px; border: 3px solid var(--bg); }
.page { max-width: 1340px; margin: 0 auto; animation: pageIn .18s var(--ease); }

.mobile-bar { display: none; }
.mobile-nav { display: none; }

/* ---------- 通用块 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card-header {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.card-header h2 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.card-header .sub { font-size: 12px; color: var(--ink-3); }
.card-header .spacer { flex: 1; }
.card-body { padding: 16px 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; }
.section { margin-top: 18px; }
.section-head { display: flex; align-items: flex-end; gap: 10px; margin: 0 2px 10px; }
.section-head h2 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.section-head .sub { font-size: 12px; color: var(--ink-3); padding-bottom: 1px; }
.section-head .spacer { flex: 1; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }
.hint-inline { font-size: 12px; color: var(--ink-3); }
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 14px 0; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 13px; position: relative; overflow: hidden;
}
.kpi-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); }
.kpi-label .i { width: 15px; height: 15px; color: var(--ink-4); }
.kpi-value { margin-top: 7px; font-size: 27px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.kpi-value small { font-size: 13px; font-weight: 500; color: var(--ink-4); letter-spacing: 0; margin-left: 2px; }
.kpi-note { margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.kpi.accent { background: linear-gradient(180deg, #f3f9f6 0%, #fff 78%); border-color: var(--jade-line); }
.kpi.accent .kpi-label .i, .kpi.accent .kpi-value { color: var(--jade-deep); }
.kpi.bad .kpi-value { color: var(--danger); }

/* 状态色点 */
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); flex: 0 0 auto; }
.dot.jade { background: #2f9e77; }
.dot.blue { background: var(--info); }
.dot.red { background: var(--danger); }
.dot.warn { background: #c98a12; }
.dot.gray { background: #b9bdbd; }
.dot.pulse { animation: pulse 1.8s ease-in-out infinite; }

/* 表格 */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
table.t thead th {
  position: sticky; top: 0; z-index: 1; background: var(--bg-raise);
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-3);
  padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.t tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .12s; }
table.t tbody tr:hover { background: #fcfbf8; }
table.t tbody tr.clickable { cursor: pointer; }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; }
table.t .cell-main { font-weight: 600; color: var(--ink); font-size: 13px; }
table.t .cell-sub { font-size: 11.5px; color: var(--ink-4); margin-top: 1px; }
table.t .cell-actions { text-align: right; white-space: nowrap; }
table.t .cell-actions .btn + .btn { margin-left: 4px; }

/* 平台进度两行 */
.leg { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.leg + .leg { margin-top: 3px; }
.leg .plat { width: 26px; color: var(--ink-3); font-size: 11px; }
.leg .state { color: var(--ink-3); font-size: 11px; }
.leg.off { opacity: .45; }
.proxy-mini { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); font-family: var(--mono); }

/* 进度条 */
.bar { height: 6px; border-radius: 999px; background: #ecebe4; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--jade); transition: width .45s var(--ease); }
.bar.blue > i { background: var(--info); }
.bar.red > i { background: var(--danger); }
.bar.thin { height: 4px; }
.bar.lg { height: 8px; }
.bar.running > i {
  background-image: linear-gradient(115deg, rgba(255,255,255,.26) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.26) 50%, rgba(255,255,255,.26) 75%, transparent 75%);
  background-size: 22px 22px; animation: stripes 1.1s linear infinite;
}

/* 分页 */
.pager { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line-soft); }
.pager .meta { font-size: 12px; color: var(--ink-3); }
.pager .pages { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.page-btn {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: var(--ink-2); font-size: 12.5px;
}
.page-btn:hover:not([disabled]) { background: #eeece4; }
.page-btn.active { background: var(--jade-soft); color: var(--jade-deep); font-weight: 600; }
.page-btn[disabled] { opacity: .35; cursor: not-allowed; }

/* 空态 / 骨架 / 提示条 */
.empty { display: grid; place-items: center; text-align: center; padding: 52px 24px; }
.empty .empty-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: #f0eee7; color: var(--ink-4); margin-bottom: 12px;
}
.empty h3 { font-size: 14px; font-weight: 600; }
.empty p { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); max-width: 340px; }
.empty .btn { margin-top: 14px; }
.skeleton { position: relative; overflow: hidden; background: #eeece5; border-radius: 6px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: shimmer 1.3s infinite;
}
.sk-line { height: 12px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px;
  border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.55;
  background: var(--warn-soft); color: #6f4a00; border: 1px solid #f0dfc0;
}
.notice.info { background: var(--info-soft); color: #17448f; border-color: #d5e2f8; }
.notice.danger { background: var(--danger-soft); color: #8a1d14; border-color: #f2d2ce; }
.notice.jade { background: var(--jade-soft); color: #0a493d; border-color: var(--jade-line); }
.notice .i { margin-top: 1px; }
.notice .spacer { flex: 1; }

/* ---------- 概览 ---------- */
.alert-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.batch-live { padding: 15px 18px; display: flex; flex-direction: column; gap: 10px; }
.batch-live-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.batch-live-title { font-size: 14px; font-weight: 600; }
.batch-live .bar { margin-top: 2px; }
.batch-live-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.batch-live-meta b { color: var(--ink); font-weight: 600; }
.batch-live-actions { display: flex; gap: 8px; }
.side-list { display: flex; flex-direction: column; }
.side-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.side-row:last-child { border-bottom: 0; }
.side-row .label { color: var(--ink-3); flex: 1; }
.side-row .value { font-weight: 600; font-variant-numeric: tabular-nums; }
.side-row .value.bad { color: var(--danger); }
.side-row .value.ok { color: var(--jade-deep); }
.mini-batch { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); }
.mini-batch:last-child { border-bottom: 0; }
.mini-batch .when { font-size: 12px; color: var(--ink-2); width: 92px; flex: 0 0 auto; }
.mini-batch .track { flex: 1; min-width: 60px; }
.mini-batch .counts { font-size: 11.5px; color: var(--ink-3); width: 96px; text-align: right; flex: 0 0 auto; }

/* ---------- 开号 ---------- */
.steps { display: flex; align-items: center; gap: 8px; padding: 2px 0 16px; }
.step-pill { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); }
.step-pill .no {
  width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  background: #eceae2; color: var(--ink-3); font-size: 11px; font-weight: 600;
}
.step-pill.active { color: var(--ink); }
.step-pill.active .no { background: var(--jade); color: #fff; }
.step-pill.done .no { background: var(--jade-soft); color: var(--jade-deep); }
.step-line { width: 26px; height: 1px; background: var(--line-strong); }
.import-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.import-main .textarea { min-height: 236px; font-family: var(--mono); font-size: 12.5px; }
.import-tools { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.counter { font-size: 12px; color: var(--ink-3); }
.counter b { color: var(--ink); font-weight: 600; }
.counter .bad { color: var(--danger); }
.drop-hint { font-size: 11.5px; color: var(--ink-4); }
.dropzone.dragover { outline: 2px dashed var(--jade); outline-offset: -6px; background: #f4faf7; }
.opt-list { display: flex; flex-direction: column; gap: 14px; }
.opt-row { display: flex; flex-direction: column; gap: 6px; }
.opt-row > .opt-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.opt-row .hint { font-size: 11.5px; color: var(--ink-3); }
.summary-bar {
  display: flex; align-items: center; gap: 10px 14px; padding: 12px 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); background: #fcfbf8; border-radius: 0 0 var(--radius) var(--radius);
}
.summary-text { flex: 1 1 100%; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.summary-text b { color: var(--ink); }
.summary-actions { margin-left: auto; display: flex; gap: 8px; }
.advanced { border-top: 1px solid var(--line-soft); margin-top: 4px; }
.advanced > summary {
  list-style: none; cursor: pointer; padding: 11px 0 2px; font-size: 12.5px; color: var(--ink-3);
  display: flex; align-items: center; gap: 6px; user-select: none;
}
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary::before {
  content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s; margin-right: 2px;
}
.advanced[open] > summary::before { transform: rotate(45deg); }
.advanced[open] > summary { color: var(--ink-2); }
.advanced-body { padding-top: 12px; display: grid; gap: 12px; }
.result-box { margin-top: 14px; }
.result-box .card-body { display: flex; gap: 12px; align-items: flex-start; }
.result-box .ok-mark {
  width: 28px; height: 28px; border-radius: 50%; background: var(--jade-soft); color: var(--jade-deep);
  display: grid; place-items: center; flex: 0 0 auto;
}

/* ---------- 账号表 ---------- */
.list-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.search { position: relative; }
.search .i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-4); width: 15px; height: 15px; }
.search .input { padding-left: 31px; width: 246px; height: 34px; }
.toolbar-group { display: flex; align-items: center; gap: 8px; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.acc-email { font-weight: 600; font-size: 13px; letter-spacing: -.005em; word-break: break-all; }
.acc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; font-size: 11.5px; color: var(--ink-4); }
.acc-meta .sep { color: #d6d2c6; }
.state-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.state-chip.pending, .state-chip.stopped { background: #efeee7; color: var(--ink-3); }
.state-chip.running { background: var(--info-soft); color: var(--info); }
.state-chip.done { background: var(--jade-soft); color: var(--jade-deep); }
.state-chip.partial { background: var(--warn-soft); color: var(--warn); }
.state-chip.failed { background: var(--danger-soft); color: var(--danger); }
.stage-text { font-size: 11px; color: var(--ink-4); margin-top: 2px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-wrap { position: relative; display: inline-block; }
.menu {
  position: absolute; right: 0; top: calc(100% + 5px); z-index: 30; min-width: 152px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  box-shadow: var(--shadow-pop); padding: 4px; animation: popIn .12s var(--ease);
}
.menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 33px; padding: 0 9px;
  border: 0; background: transparent; border-radius: 6px; font-size: 12.5px; color: var(--ink-2); text-align: left;
}
.menu button:hover { background: #f4f2ea; color: var(--ink); }
.menu button.danger { color: var(--danger); }
.menu button.danger:hover { background: var(--danger-soft); }
.menu .sep { height: 1px; background: var(--line-soft); margin: 4px 2px; }

/* 移动端账号卡 */
.acc-card { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); }
.acc-card:last-child { border-bottom: 0; }
.acc-card-top { display: flex; align-items: flex-start; gap: 8px; }
.acc-card-top .spacer { flex: 1; }
.acc-card-legs { margin-top: 10px; display: grid; gap: 6px; }
.acc-card-foot { margin-top: 11px; display: flex; align-items: center; gap: 7px; }
.acc-card-foot .spacer { flex: 1; }

/* ---------- 批次 ---------- */
.batch-row { padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.batch-row:last-child { border-bottom: 0; }
.batch-row-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.batch-row-top .title { font-size: 13.5px; font-weight: 600; }
.batch-row .bar { margin-top: 9px; }
.batch-row-foot { margin-top: 9px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.batch-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.batch-stats b { color: var(--ink); font-weight: 600; }
.batch-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.batch-conc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.batch-conc .select { width: 74px; height: 30px; padding: 2px 24px 2px 9px; font-size: 12px; }

/* ---------- 设置 / 资源 ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.setting-card { }
.setting-card .card-body { display: flex; flex-direction: column; gap: 12px; }
.setting-card h3 { font-size: 13.5px; font-weight: 600; }
.setting-card .desc { font-size: 12px; color: var(--ink-3); line-height: 1.55; }
.pool-list { display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.pool-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.pool-item:last-child { border-bottom: 0; }
.pool-item .name { font-weight: 500; }
.pool-item .spacer { flex: 1; }
.pool-item.dead { background: #fdf7f6; }
.pool-item.full { background: #fcfaf2; }
.pool-scroll { max-height: 264px; overflow: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat-cell { padding: 11px 12px; border-radius: 9px; background: var(--bg-raise); border: 1px solid var(--line-soft); }
.stat-cell .l { font-size: 11.5px; color: var(--ink-3); }
.stat-cell .v { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.stat-cell .v small { font-size: 11.5px; color: var(--ink-4); font-weight: 500; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button {
  height: 36px; padding: 0 13px; border: 0; background: transparent; color: var(--ink-3);
  font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--ink); border-bottom-color: var(--jade); font-weight: 600; }
.kv { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 7px 12px; font-size: 12.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink-2); word-break: break-word; }
.danger-zone { border-color: #efcdc9; }
.danger-zone .card-header h2 { color: var(--danger); }

/* ---------- 抽屉 ---------- */
.scrim {
  position: fixed; inset: 0; background: rgba(22, 21, 16, .34); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity .18s var(--ease);
  backdrop-filter: blur(1.5px);
}
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 41;
  background: var(--surface); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(102%);
  transition: transform .22s var(--ease); box-shadow: -18px 0 50px -30px rgba(20,20,15,.45);
}
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.drawer-head h2 { font-size: 14px; font-weight: 600; }
.drawer-head .sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.drawer-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); }
.drawer-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.logbar { display: flex; align-items: center; gap: 10px; padding: 8px 18px; border-bottom: 1px solid var(--line-soft); }
.logbar .hint { font-size: 11px; color: var(--ink-4); }
.console {
  flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 12px 16px 20px;
  background: #121417; color: #d8dbe0; font-family: var(--mono); font-size: 11.5px; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word; scrollbar-width: thin;
}
.console::-webkit-scrollbar { width: 9px; }
.console::-webkit-scrollbar-thumb { background: #2b2f35; border-radius: 5px; }
.console .t { color: #6f7885; user-select: none; margin-right: 8px; }
.console .l-err { color: #f0a6a0; }
.console .l-ok { color: #8fd3b8; }
.console .l-warn { color: #e8c37e; }
.console .empty-line { color: #6f7885; }
.jump-latest {
  position: absolute; right: 18px; bottom: 18px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: #262a30; color: #e6e8eb; border: 1px solid #363b42; font-size: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.drawer { position: fixed; }

/* 弹窗 */
dialog.modal {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0; margin: auto;
  width: min(430px, calc(100vw - 32px)); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-pop);
}
dialog.modal::backdrop { background: rgba(22, 21, 16, .38); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: popIn .16s var(--ease); }
.modal-head { padding: 18px 20px 0; }
.modal-head h2 { font-size: 15px; font-weight: 600; }
.modal-body { padding: 8px 20px 4px; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.modal-body p + p { margin-top: 8px; }
.modal-body .strong { color: var(--ink); font-weight: 600; }
.modal-foot { padding: 16px 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }

/* Toast */
.toast-host { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; max-width: min(520px, calc(100vw - 32px));
  padding: 9px 14px; border-radius: 9px; background: #1d2024; color: #f0f1f2;
  font-size: 12.5px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5);
  animation: toastIn .18s var(--ease);
}
.toast .i { color: #7fd0ae; }
.toast.bad .i { color: #f0a6a0; }
.toast.out { animation: toastOut .18s var(--ease) forwards; }

/* 顶部加载条 */
.top-load { position: fixed; top: 0; left: 0; height: 2px; background: var(--jade); z-index: 70; width: 0; transition: width .3s var(--ease), opacity .3s; opacity: 0; }
.top-load.on { opacity: 1; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .import-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { height: 54px; padding: 0 14px; gap: 8px; }
  .page-title { font-size: 16px; }
  .page-sub { display: none; }
  .content { padding: 14px 12px calc(78px + env(safe-area-inset-bottom)); }
  .mobile-bar { display: flex; align-items: center; gap: 8px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 11px 13px; }
  .kpi-value { font-size: 23px; }
  .grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: rgba(251, 250, 247, .96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 3px 0; color: var(--ink-3); font-size: 10.5px; text-decoration: none; border-radius: 8px;
  }
  .mobile-nav a .i { width: 20px; height: 20px; }
  .mobile-nav a.active { color: var(--jade-deep); font-weight: 600; }
  .mobile-nav a.active .i { color: var(--jade); }
  .summary-bar { flex-wrap: wrap; gap: 10px; }
  .summary-actions { margin-left: 0; width: 100%; }
  .summary-actions .btn { flex: 1; }
  .search .input { width: 100%; }
  .search { flex: 1 1 100%; }
  .toolbar-right { margin-left: 0; flex-wrap: wrap; }
  .list-toolbar { gap: 8px; }
  .segmented { overflow-x: auto; max-width: 100%; }
  .segmented button { padding: 0 10px; }
  .acc-card .acc-email { word-break: break-all; }
  .drawer { width: 100vw; }
  .batch-actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .batch-conc { width: 100%; }
  .steps { overflow-x: auto; }
}
@media (max-width: 560px) {
  .kpis { gap: 8px; }
  .card-header { padding: 12px 14px; }
  .card-body { padding: 13px 14px; }
  .summary-bar { padding: 12px 14px; }
  .grid-2 { gap: 10px; }
  .modal-foot .btn { flex: 1; }
  .pool-item { flex-wrap: wrap; }
}

/* ---------- 动效 ---------- */
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }
@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes stripes { to { background-position: 22px 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- 运行日记 ---------- */
.diary { max-height: calc(100dvh - 218px); overflow: auto; }
.diary-row {
  display: flex; align-items: baseline; gap: 12px; padding: 7px 16px;
  border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: 11.8px;
  cursor: pointer;
}
.diary-row:hover { background: #fcfbf8; }
.diary-row:last-child { border-bottom: 0; }
.diary-time { color: var(--ink-4); width: 54px; flex: 0 0 auto; }
.diary-who {
  width: 196px; flex: 0 0 auto; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.diary-line { color: var(--ink-2); min-width: 0; word-break: break-word; }
.diary-row.l-err .diary-line { color: var(--danger); }
.diary-row.l-ok .diary-line { color: var(--jade-deep); }
.diary-row.l-warn .diary-line { color: var(--warn); }
@media (max-width: 900px) {
  .diary { max-height: calc(100dvh - 260px); }
  .diary-who { width: 112px; }
  .diary-row { gap: 8px; padding: 7px 10px; font-size: 11px; }
}

/* 其他补齐 */
.stat-cell .v.ok { color: var(--jade-deep); }
.stat-cell .v.bad { color: var(--danger); }
.pager-size { display: inline-flex; align-items: center; }
.table-scroll { overflow-x: auto; }

/* ---------- 账号表：紧凑、单行、不换行 ---------- */
.accounts-table td { padding-top: 9px; padding-bottom: 9px; }
.accounts-table .acc-email {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.accounts-table .acc-meta {
  flex-wrap: nowrap; overflow: hidden; white-space: nowrap; max-width: 100%;
}
.accounts-table .acc-meta .sep { flex: 0 0 auto; }
.accounts-table .leg { overflow: hidden; }
.accounts-table .leg .state { overflow: hidden; text-overflow: ellipsis; }
.accounts-table .leg .plat { flex: 0 0 auto; }
.accounts-table .stage-text { max-width: 100%; }
.accounts-table .proxy-mini {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  font-size: 10.5px;
}
.accounts-table .cell-actions .btn { vertical-align: middle; }
.accounts-table .cell-actions .icon-btn { vertical-align: middle; }
.batch-link {
  cursor: pointer; color: inherit;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px;
}
.batch-link:hover { color: var(--jade); }
@media (max-width: 1180px) {
  .accounts-table .acc-email { font-size: 12.5px; }
  .accounts-table .leg { font-size: 11px; }
  .accounts-table .proxy-mini { font-size: 10px; }
}

/* 移动端细节 */
@media (max-width: 900px) {
  .segmented { flex-wrap: wrap; overflow: visible; }
  .segmented button { flex: 0 0 auto; white-space: nowrap; }
  .toast-host { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .acc-card-foot { justify-content: flex-start; }
  .acc-card-foot .btn, .acc-card-foot .icon-btn { flex: 0 0 auto; }
}

/* 概览执行卡底部 */
.batch-live-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.batch-live-foot .batch-live-meta { flex: 1; }
.batch-live-foot .batch-live-actions { margin-left: auto; display: flex; gap: 8px; }

/* 分页对齐 */
.pager .pager-size { margin-left: auto; }
.pager .pages { margin-left: 10px; }

/* 表格里的邮箱不换行 */
.table-wrap .acc-email { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nurture-table td, .nurture-table th { white-space: nowrap; }

/* 更轻的危险按钮（列表行里用） */
.btn-quiet.danger { color: var(--danger); }
.btn-quiet.danger:hover:not([disabled]) { background: var(--danger-soft); color: var(--danger); }

@media (max-width: 900px) {
  .import-main .textarea { min-height: 150px; }
  .summary-bar {
    position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom));
    z-index: 36; margin: 0; border-radius: 0; border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fcfbf8; box-shadow: 0 -14px 30px -24px rgba(20, 20, 15, .5);
  }
  .summary-bar .summary-actions { width: 100%; gap: 6px; }
  .summary-bar .summary-text { font-size: 11.5px; line-height: 1.4; }
  .summary-bar .btn { height: 34px; font-size: 13px; }
  .summary-bar { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  #importView { padding-bottom: 96px; }
  .acc-card { padding: 12px 13px; }
  .acc-card-foot { gap: 8px; }
  .acc-card-foot .btn-sm { height: 36px; padding: 0 14px; }
  .acc-card-foot .icon-btn { width: 40px; height: 40px; }
  .acc-card-legs .proxy-mini { margin-top: 1px; }
  .acc-card-foot .icon-btn .i { width: 17px; height: 17px; }
  .mini-batch { flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
  .mini-batch .when { width: auto; }
  .mini-batch .track { order: 5; flex: 1 1 100%; }
  .mini-batch .counts { width: auto; text-align: left; order: 3; }
  .mini-batch .chip { margin-left: auto; }
  .batch-live-foot .batch-live-actions { margin-left: 0; width: 100%; }
  .batch-live-foot .batch-live-actions .btn { flex: 1; }
}

/* 移动端账号卡：邮箱不与状态重叠 */
.acc-card-top > div { flex: 1 1 auto; min-width: 0; }
.acc-card-top > .state-chip { flex: 0 0 auto; }
.acc-card-top .spacer { display: none; }
.acc-card-top .acc-email { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.device-id { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; max-width: 100%; }

/* ---------- 代理体检 ---------- */
.probe-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.probe-manual { display: flex; gap: 8px; margin-top: 10px; }
.probe-manual .input { flex: 1; height: 32px; font-size: 12.5px; }
.probe-list { display: flex; flex-direction: column; gap: 10px; }
.probe-item { border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; background: #fff; }
.probe-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.probe-head .spacer { flex: 1; }
.probe-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 7px; }
.probe-meta b { color: var(--ink-2); font-weight: 600; }
.probe-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; margin-top: 5px; }
.probe-loading { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  border: 2.2px solid var(--line-strong); border-top-color: var(--jade); animation: spin .7s linear infinite;
}
.udp-flag {
  display: inline-flex; align-items: center; height: 15px; padding: 0 4px; border-radius: 3px;
  font-size: 9.5px; font-weight: 600; line-height: 1; vertical-align: 1px;
  background: #efeee7; color: var(--ink-3); margin-left: 4px;
}
.udp-flag.ok { background: var(--jade-soft); color: var(--jade-deep); }

@media (max-width: 560px) {
  .probe-manual { flex-direction: column; }
  .probe-manual .btn { width: 100%; }
  .probe-actions .select { width: auto !important; }
  .probe-meta { gap: 8px 12px; }
}
