/* 指挥板样式 v3：浅色简约（2026-09-15 换肤，弃暗色+紫色调）；8px 间距节奏 */
:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel-2: #fafbfc;
  --line: #e3e8ee;
  --line-soft: #edf1f5;
  --fg: #24303e;
  --dim: #64748b;
  --faint: #9aa8b8;
  --accent: #0284c7;
  --accent-deep: #bae6fd;
  --ok: #22c55e;
  --ok-dim: #bbf7d0;
  --warn: #f59e0b;
  --warn-dim: #fde9c3;
  --err: #ef4444;
  --err-dim: #fecaca;
  --run: #0ea5e9;
  --dual: #fb923c;
  --dual-dim: #fed7aa;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 10px 32px rgba(30, 50, 80, .14);
  --shadow-s: 0 2px 10px rgba(30, 50, 80, .07);
  --mono: Consolas, "Cascadia Mono", "SF Mono", monospace;
}
* { box-sizing: border-box; }
[v-cloak] { display: none; }
html { -webkit-text-size-adjust: 100%; }
.icon { width: 15px; height: 15px; vertical-align: -2.5px; flex: none; }
.icon.sm { width: 13px; height: 13px; vertical-align: -2px; }
.tabs .icon, .tabs .icon.sm { vertical-align: -2.5px; margin-right: 1px; }
.h-name .icon.sm { vertical-align: -2.5px; margin-right: 3px; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg);
  font: 14px/1.55 -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; }
body::before {  /* 顶部一点清透的氛围光 */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 320px at 70% -80px, rgba(14, 165, 233, .10), transparent 70%),
    radial-gradient(700px 280px at 8% -60px, rgba(34, 197, 94, .07), transparent 70%);
}
#app { max-width: 1000px; margin: 0 auto; padding: 0 0 56px; position: relative; z-index: 1; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #d3dbe4; border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 登录 ---------- */
.login-mask { position: fixed; inset: 0; background: rgba(244, 246, 249, .85);
  backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 99; }
.login-box { background: var(--panel);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 32px 28px; width: min(340px, 88vw); display: flex; flex-direction: column; gap: 14px; }
.login-title { font-size: 19px; font-weight: 700; text-align: center; letter-spacing: 1px; }
.login-title::after { content: ""; display: block; width: 44px; height: 3px; margin: 10px auto 0;
  border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.login-box input { background: var(--panel-2); color: var(--fg); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 11px 14px; font-size: 15px; outline: none; transition: border .15s; }
.login-box input:focus { border-color: var(--accent); }
.login-box button { background: linear-gradient(180deg, #38bdf8, var(--accent)); color: #fff;
  border: 0; border-radius: var(--radius-s); padding: 11px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: filter .15s; }
.login-box button:hover { filter: brightness(1.06); }
.login-box button:disabled { opacity: .45; cursor: not-allowed; }
.login-err { color: var(--err); font-size: 12px; text-align: center; min-height: 14px; }

/* ---------- 顶栏 ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 13px 18px 11px; position: sticky; top: 0; z-index: 5;
  background: rgba(244, 246, 249, .88); backdrop-filter: blur(10px) saturate(1.3);
  border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 16.5px; letter-spacing: .5px; display: flex; align-items: center; gap: 9px; }
.brand::before { content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(14, 165, 233, .6); }
.top-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pill { font-size: 12px; padding: 3px 11px; border-radius: 99px; border: 1px solid var(--line);
  color: var(--dim); background: var(--panel); white-space: nowrap; }
.pill.ok { color: #16a34a; border-color: var(--ok-dim); background: #f0fdf4; }
.pill.bad { color: var(--err); border-color: var(--err-dim); background: #fef2f2;
  animation: blink 2.4s infinite; }
.pill.warn { color: #b45309; border-color: var(--warn-dim); background: #fffbeb; cursor: pointer; }
@keyframes blink { 50% { opacity: .55; } }
.ts { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- 告警横幅 ---------- */
.alert-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px 0; }
.alert-chip { font-size: 12px; padding: 5px 12px; border-radius: 8px; max-width: 100%;
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; }
.alert-chip.warn { background: #fffbeb; color: #b45309; border-color: var(--warn-dim); }
.alert-chip.error { background: #fef2f2; color: var(--err); border-color: var(--err-dim); }

/* ---------- 页签（分段控件） ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  margin: 14px 18px 0; padding: 5px; width: max-content; max-width: calc(100% - 36px);
  position: sticky; top: 56px; z-index: 4;
  box-shadow: var(--shadow-s); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: transparent; color: var(--dim); border: 0; border-radius: var(--radius-s);
  padding: 8px 16px; font-size: 14px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; transition: background .15s, color .15s; }
.tabs button:hover { color: var(--fg); background: var(--panel-2); }
.tabs button.on { color: var(--accent); background: #f0f9ff; box-shadow: inset 0 0 0 1px var(--accent-deep); }
.badge { background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px;
  min-width: 18px; text-align: center; padding: 1px 5px 0; margin-left: 6px; font-weight: 700; }
main { padding: 16px 18px 0; }

/* ---------- 总量汇总卡（按天口径） ---------- */
.sum-card { background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px;
  margin-bottom: 12px; box-shadow: var(--shadow-s); animation: rise .35s ease both; }
.sum-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sum-total { display: flex; align-items: baseline; gap: 8px; }
.sum-total b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #0c4a6e, #0ea5e9); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.sum-total span { color: var(--dim); font-size: 12.5px; }
.sum-meta { flex: 1; min-width: 140px; }
.sum-span { font-size: 13px; color: var(--fg); font-variant-numeric: tabular-nums; }
.sum-sub { font-size: 11px; color: var(--faint); margin-top: 1px; }
.sum-dual { display: flex; align-items: baseline; gap: 6px; cursor: help;
  border: 1px solid var(--dual-dim); background: #fff7ed; border-radius: 9px;
  padding: 5px 12px; }
.sum-dual b { color: #ea580c; font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
.sum-dual span { color: #c2703e; font-size: 11.5px; }
.sum-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px; margin-top: 12px; }
.ss { background: var(--panel-2); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 8px 11px 9px; transition: border-color .15s, transform .15s; }
.ss:hover { border-color: var(--accent-deep); transform: translateY(-1px); }
.ss-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.ss-name { color: var(--dim); font-size: 12px; }
.ss-val { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ss-val b { color: var(--fg); font-size: 14px; font-weight: 700; }
.ss-bar { height: 4px; border-radius: 3px; background: #e8edf3; margin-top: 7px; overflow: hidden; }
.ss-bar > div { height: 100%; border-radius: 3px; transition: width .8s cubic-bezier(.22, .8, .3, 1);
  background: linear-gradient(90deg, #7dd3fc, var(--run)); }
.sum-maps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px;
  padding-top: 10px; border-top: 1px dashed var(--line); }
.map-item { font-size: 11.5px; color: var(--dim); border: 1px solid var(--line);
  border-radius: 7px; padding: 2px 9px; font-variant-numeric: tabular-nums; background: var(--panel-2); }
.map-item.done { color: #16a34a; border-color: var(--ok-dim); background: #f0fdf4; }
.map-item.partial { color: var(--accent); border-color: var(--accent-deep); background: #f0f9ff; }

/* ---------- 双源提醒条 ---------- */
.dual-banner { display: flex; gap: 8px; align-items: flex-start;
  border: 1px solid var(--dual-dim); background: linear-gradient(90deg, #fff7ed, #fffbf5);
  color: #9a5b2d; border-radius: 11px; padding: 8px 13px; font-size: 12.5px;
  margin-bottom: 12px; line-height: 1.5; animation: rise .4s ease both; }
.dual-banner .icon { margin-top: 2px; color: var(--dual); }
.dual-banner b { color: #c2410c; }

/* ---------- 年份导航 ---------- */
.year-pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 2px 13px; }
.year-pills button { background: var(--panel); color: var(--dim); border: 1px solid var(--line);
  border-radius: 99px; padding: 4px 13px; font-size: 12.5px; cursor: pointer;
  display: inline-flex; align-items: baseline; gap: 6px; transition: all .16s; }
.year-pills button:hover { color: var(--fg); border-color: #c6d2df; transform: translateY(-1px); }
.year-pills button.on { color: var(--accent); border-color: var(--accent-deep);
  background: #f0f9ff; box-shadow: 0 2px 8px rgba(14, 165, 233, .12); }
.year-pills button.dim { opacity: .45; }
.y-cnt { font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.year-pills button.on .y-cnt { color: #38bdf8; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 图例 ---------- */
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--dim); margin: 2px 2px 14px; flex-wrap: wrap;
  align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .hint { color: var(--faint); }
.sq { display: inline-block; width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--line);
  background: var(--panel); vertical-align: -2px; position: relative; }
.sq.done { background: var(--ok); border-color: transparent; }
.sq.partial { background: linear-gradient(0deg, var(--warn) 45%, var(--panel) 45%); }
.sq.running { border-color: var(--run); box-shadow: 0 0 6px rgba(14, 165, 233, .5); }
.sq.todo { border-style: dashed; border-color: var(--faint); background: transparent; }
.sq.dual::after { content: ""; position: absolute; top: -1px; right: -1px; width: 0; height: 0;
  border-style: solid; border-width: 0 6px 6px 0; border-color: transparent var(--dual) transparent transparent; }
.sq.void { opacity: .35; }

/* ---------- 状态格 ---------- */
.cell { display: inline-block; width: 15px; height: 15px; border-radius: 5px;
  vertical-align: -3px; border: 1px solid var(--line); background: var(--panel); flex: none; }
.cell.done { background: var(--ok); border-color: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.cell.partial { background: var(--warn); border-color: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.cell.running { background: var(--run); border-color: transparent;
  box-shadow: 0 0 8px rgba(14, 165, 233, .5); animation: pulse 1.6s infinite; }
.cell.none { border-style: dashed; border-color: #cbd5e1; background: transparent; }
.cell.none.has-src { border-color: var(--faint); }
.cell.mini { width: auto; height: auto; border: 0; background: transparent !important;
  color: #16a34a; animation: none; box-shadow: none; padding: 0; font-weight: 700; font-size: 12px; }
.cell.big { width: 18px; height: 18px; }
@keyframes pulse { 50% { opacity: .35; box-shadow: none; } }

/* ---------- 月卡片：GitHub 式日历热力阵（带日号 + 动效） ---------- */
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(246px, 1fr)); gap: 12px; }
.month-card { background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 12px;
  animation: rise .4s ease both; transition: border-color .18s, box-shadow .18s, transform .18s; }
.month-card:hover { border-color: #d3dde8; box-shadow: var(--shadow-s); transform: translateY(-1px); }
.m-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.m-head b { font-size: 14.5px; letter-spacing: .3px; }
.m-sum { color: var(--faint); font-size: 12px; }
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.heat .wd { text-align: center; font-size: 10.5px; color: var(--faint); margin-bottom: 2px; }
.heat-cell { position: relative; width: 100%; aspect-ratio: 1/1; max-width: 30px;
  margin-inline: auto; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  background: #eef2f6; border: 1px solid var(--line-soft); overflow: hidden; cursor: default;
  transition: transform .16s cubic-bezier(.34, 1.4, .5, 1), border-color .16s, box-shadow .16s;
  animation: cell-in .32s ease both; animation-delay: calc(var(--i, 0) * 12ms); }
@keyframes cell-in { from { opacity: 0; transform: translateY(5px) scale(.75); } }
.heat-cell:hover { transform: scale(1.22); border-color: #b9c9d9; z-index: 2;
  box-shadow: 0 4px 14px rgba(30, 50, 80, .18); }
.heat-cell::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--p, 0) * 100%); opacity: .92;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fill, var(--ok)) 82%, white 12%), var(--fill, var(--ok)));
  transition: height .5s cubic-bezier(.22, .8, .3, 1); }
.heat-cell .d-num { position: relative; z-index: 1; font-size: 9.5px; line-height: 1;
  color: var(--faint); font-variant-numeric: tabular-nums; pointer-events: none;
  transition: color .15s; }
.heat-cell.done .d-num, .heat-cell.partial .d-num, .heat-cell.running .d-num {
  color: rgba(255, 255, 255, .95); text-shadow: 0 1px 2px rgba(0, 0, 0, .28); }
.heat-cell.todo .d-num { color: var(--dim); }
.heat-cell:hover .d-num { color: #0f172a; }
.heat-cell.done:hover .d-num, .heat-cell.partial:hover .d-num, .heat-cell.running:hover .d-num { color: #fff; }
.heat-cell.done { --fill: var(--ok); border-color: #86d7a4; }
.heat-cell.partial { --fill: var(--warn); border-color: #f3cf8a; }
.heat-cell.running { --fill: var(--run); border-color: var(--run);
  animation: cell-in .32s ease both, heat-pulse 1.6s 1s infinite;
  animation-delay: calc(var(--i, 0) * 12ms), 0s; }
.heat-cell.todo { border-style: dashed; border-color: #b6c3d2; }
.heat-cell.todo:hover { border-color: var(--faint); }
.heat-cell.void { opacity: .4; }
.heat-cell.void .d-num { font-size: 8.5px; }
.heat-cell.void:hover { transform: none; box-shadow: none; border-color: var(--line-soft); }
.heat-cell.blank { visibility: hidden; }
.heat-cell.today { outline: 2px solid var(--run); outline-offset: 1px;
  animation: cell-in .32s ease both, today-breath 2.6s 1s infinite;
  animation-delay: calc(var(--i, 0) * 12ms), 0s; }
@keyframes today-breath { 50% { outline-color: rgba(14, 165, 233, .35); } }
/* 双源互补天：右上角橙色角标 */
.heat-cell.dual { border-color: var(--dual-dim); }
.heat-cell.dual::after { content: ""; position: absolute; top: 0; right: 0; z-index: 1;
  width: 0; height: 0; border-style: solid; border-width: 0 8px 8px 0;
  border-color: transparent var(--dual) transparent transparent; }
.heat-cell.dual:hover { border-color: var(--dual); box-shadow: 0 4px 14px rgba(251, 146, 60, .35); }
@keyframes heat-pulse { 50% { box-shadow: 0 0 9px rgba(14, 165, 233, .6); } }
.batch-tag { font-size: 11px; color: var(--dim); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px; white-space: nowrap; background: var(--panel-2); }
.empty { color: var(--faint); text-align: center; padding: 36px 0 20px; font-size: 13px; }

/* ---------- 悬停跟随浮窗（天明细） ---------- */
.daytip { position: fixed; z-index: 30; width: 300px; pointer-events: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow); padding: 12px 14px;
  animation: tip-in .14s ease both; }
@keyframes tip-in { from { opacity: 0; transform: translateY(4px) scale(.97); } }
.daytip.pinned { pointer-events: auto; }
.tip-head { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }
.tip-head b { font-size: 14px; font-variant-numeric: tabular-nums; }
.tip-head .batch-tag { font-size: 10.5px; }
.tip-close { margin-left: auto; background: none; border: 0; color: var(--faint);
  font-size: 15px; cursor: pointer; padding: 0 4px; border-radius: 5px; }
.tip-close:hover { color: var(--fg); background: var(--panel-2); }
.tip-src { color: var(--dim); font-size: 11.5px; margin-bottom: 7px;
  display: flex; align-items: center; gap: 5px; }
.tip-dual { display: flex; gap: 5px; align-items: flex-start; font-size: 11.5px;
  color: #c2410c; background: #fff7ed; border: 1px solid var(--dual-dim);
  border-radius: 7px; padding: 5px 8px; margin-bottom: 7px; line-height: 1.45; }
.tip-row { display: flex; gap: 9px; align-items: center; padding: 4px 0;
  border-bottom: 1px solid var(--line-soft); }
.tip-row:last-of-type { border-bottom: 0; }
.tip-stage { width: 56px; color: var(--dim); font-size: 12px; flex: none; }
.tip-detail { color: var(--fg); font-size: 12px; font-variant-numeric: tabular-nums;
  word-break: break-all; }
.tip-note { color: var(--faint); font-size: 11px; margin-top: 7px; }

/* ---------- 健康条 ---------- */
.health-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 10px; margin-bottom: 14px; }
.h-card { background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-s); }
.h-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 2px; background: var(--line); }
.h-card.good::before { background: var(--ok); } .h-card.warn::before { background: var(--warn); }
.h-card.bad::before { background: var(--err); }
.h-name { color: var(--dim); font-size: 12px; }
.h-val { font-size: 19px; font-weight: 750; margin-top: 1px; font-variant-numeric: tabular-nums; }
.h-sub { color: var(--faint); font-size: 11px; margin-top: 1px; }

/* ---------- 节点卡 ---------- */
.node-card { background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s);
  padding: 13px 15px; margin-bottom: 12px; }
.n-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.n-name { font-weight: 700; font-size: 14.5px; }
.n-virt { font-size: 11px; color: #b45309; border: 1px dashed var(--warn-dim); border-radius: 5px;
  padding: 1px 7px; cursor: help; background: #fffbeb; }
.n-note { color: var(--dim); font-size: 12.5px; margin-top: 6px; }
.n-stage { background: #f0f9ff; color: var(--accent); border: 1px solid var(--accent-deep);
  border-radius: 6px; font-size: 11.5px; padding: 1px 9px; text-transform: uppercase; letter-spacing: .5px; }
.n-target { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; font-size: 13px; }
.n-hb { margin-left: auto; color: var(--faint); font-size: 12px; white-space: nowrap; }
.n-hb.stale { color: var(--err); }
.n-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.n-meta > span { color: var(--dim); font-size: 12px; background: var(--panel-2);
  border: 1px solid var(--line-soft); border-radius: 6px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.n-meta .eta { color: var(--accent); background: #f0f9ff; border-color: var(--accent-deep); font-weight: 600; }
.n-bar { height: 6px; border-radius: 4px; background: #e8edf3; border: 1px solid var(--line-soft);
  margin: 10px 0 4px; overflow: hidden; }
.n-bar > div { height: 100%; border-radius: 4px; transition: width .6s ease;
  background: linear-gradient(90deg, #7dd3fc, var(--run)); }
.n-log { background: #f8fafc; border: 1px solid var(--line-soft); border-radius: var(--radius-s);
  color: #5b6b7e; font: 11px/1.5 var(--mono); padding: 9px 11px; margin: 9px 0 0;
  overflow-x: auto; white-space: pre; max-height: 132px; }
.n-log.sm { max-height: 84px; }
.n-cmd { color: var(--faint); font-size: 11px; font-family: var(--mono); margin-top: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 云端 ---------- */
.acc-block { margin-bottom: 16px; }
.acc-head { font-weight: 700; padding: 4px 4px 9px; color: var(--fg); font-size: 14.5px; }
.acc-head.bad { color: var(--err); }
.acc-err { font-weight: 400; font-size: 12px; margin-left: 8px; }
.inst { background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
  margin-bottom: 9px; box-shadow: var(--shadow-s); }
.inst.shutdown, .inst.released { opacity: .55; }
.i-line1 { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.running { background: var(--ok); box-shadow: 0 0 8px rgba(34, 197, 94, .6); }
.dot.shutdown { background: var(--faint); }
.dot.released { background: #cbd5e1; }
.dot.starting, .dot.rebooting { background: var(--run); }
.i-name { font-weight: 700; }
.i-gpu { color: var(--accent); font-size: 12px; font-weight: 600; }
.i-region { color: var(--faint); font-size: 12px; }
.i-status { margin-left: auto; color: var(--dim); font-size: 12px; }
.i-line2 { display: flex; gap: 13px; flex-wrap: wrap; color: var(--dim); font-size: 12px;
  margin-top: 5px; font-variant-numeric: tabular-nums; }
.i-scripts { margin-top: 6px; }
.i-script { font: 11px var(--mono); color: #7d8da0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.probe-err { color: var(--err); }

/* ---------- 事件 ---------- */
.evt-filters { display: flex; gap: 7px; margin-bottom: 12px; }
.evt-filters button { background: var(--panel); color: var(--dim); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 14px; cursor: pointer; font-size: 13px; transition: all .15s; }
.evt-filters button:hover { color: var(--fg); border-color: #c6d2df; }
.evt-filters button.on { color: var(--accent); border-color: var(--accent-deep); background: #f0f9ff; }
.evt { display: flex; gap: 9px; padding: 8px 6px 8px 12px; border-bottom: 1px solid var(--line-soft);
  font-size: 13px; align-items: baseline; background: var(--panel); }
.evt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint);
  flex: none; align-self: center; margin-left: -4px; margin-right: 8px; }
.evt.warn::before { background: var(--warn); } .evt.error::before { background: var(--err); }
.e-ts { color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.e-sev { width: 16px; text-align: center; flex: none; }
.e-msg { flex: 1; min-width: 0; word-break: break-all; }
.evt.warn .e-msg { color: #b45309; }
.evt.error .e-msg { color: var(--err); }

/* ---------- 控制页签（调度层） ---------- */
.ctl-top { display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px; flex-wrap: wrap; }
.ctl-top .h-card { flex: 0 1 auto; min-width: 96px; }
.estop { margin-left: auto; background: #fef2f2; color: #dc2626;
  border: 1px solid var(--err-dim); border-radius: 10px; padding: 0 18px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s; }
.estop:hover { background: #fee2e2; }
.ctl-btn { background: #f0f9ff; color: var(--accent); border: 1px solid var(--accent-deep);
  border-radius: 10px; padding: 0 14px; font-size: 13px; cursor: pointer; transition: background .15s; }
.ctl-btn:hover { background: #e0f2fe; }
.ctl-btn.sm { padding: 3px 10px; font-size: 12px; border-radius: 7px; }
.ctl-btn.danger { color: #dc2626; border-color: var(--err-dim); background: #fef2f2; }
.ctl-btn.danger:hover { background: #fee2e2; }
.task-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow-s); }
.t-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.t-status { font-size: 12px; padding: 2px 8px; border-radius: 20px; background: var(--panel-2);
  color: var(--dim); border: 1px solid var(--line-soft); }
.t-status.running { background: #f0fdf4; color: #16a34a; border-color: var(--ok-dim); }
.t-status.paused { background: #fffbeb; color: #b45309; border-color: var(--warn-dim); }
.t-status.done { background: #f0f9ff; color: var(--accent); border-color: var(--accent-deep); }
.t-status.stopped, .t-status.gone { background: var(--panel-2); color: var(--faint); }
.t-note { color: var(--faint); font-size: 12px; }
.t-ops { margin-left: auto; display: flex; gap: 6px; }
.t-stages { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.t-stage { font-size: 12px; color: var(--fg); background: var(--panel-2);
  border: 1px solid var(--line-soft); border-radius: 7px; padding: 3px 9px; }
.t-stage.wait { border-style: dashed; color: var(--dim); background: transparent; }
.t-stage b { color: var(--fg); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow-s); }
.card-title { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.run-line { font-size: 12.5px; color: var(--fg); padding: 4px 0; border-bottom: 1px solid var(--line-soft); }
.run-line:last-child { border-bottom: 0; }
.cmd-line { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px;
  color: var(--fg); padding: 4px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.cmd-line:last-child { border-bottom: 0; }
.cmd-ack { color: var(--faint); font-size: 12px; }
.cmd-ack.bad { color: #dc2626; }

/* ---------- 手机 ---------- */
@media (max-width: 600px) {
  main { padding: 12px 12px 0; }
  .topbar { padding: 11px 14px 9px; }
  .tabs { margin: 12px 12px 0; max-width: calc(100% - 24px); }
  .alert-bar { padding: 10px 12px 0; }
  .brand { font-size: 15px; }
  .h-val { font-size: 17px; }
  .daytip { width: min(300px, calc(100vw - 24px)); }
}
