/* ============================================================
   中控皮肤 v2 · 中性白（扣子 / Arco 式）
   2026-11-12 · 替换 v1「朱批台账」的暖米色底

   为什么改：v1 的素纸 #F4F0E8 在大面积铺开时偏黄，和"干净的后台工具"不符。
   v2 取扣子（Coze）那套语言：灰画布 #F7F8FA、白卡片、1px 细边、黑主按钮、
   6–8px 圆角、无阴影、无渐变。语义色只留两支：红 = 要你做决定，蓝 = 机器在跑。

   定位：纯覆盖层，加载在 layout-console.css 之后；不改 JS、不改业务。
   ============================================================ */

/* ---------- 1. 令牌 ---------- */
.console {
  /* 中性阶 */
  --text: #1D2129;
  --text-2: #4E5969;
  --text-3: #86909C;
  --line: #E5E6EB;
  --line-soft: #F2F3F5;
  --canvas: #F7F8FA;
  --surface: #FFFFFF;
  --hover: #FAFBFC;
  --press: #F2F3F5;

  /* 语义（只两支） */
  --danger: #F53F3F;
  --danger-soft: #FFECE8;
  --info: #165DFF;
  --info-soft: #E8F3FF;

  /* 旧变量名保留为别名，防 layout-console.css 里的引用断掉 */
  --xuan: var(--text);
  --xuan-2: var(--text);
  --xuan-3: var(--text-2);
  --su: var(--canvas);
  --su-2: var(--surface);
  --zhu: var(--danger);
  --qing: var(--info);
  --hui: var(--text-3);
  --xian: var(--line);
  --ink: var(--text);
  --ink-2: var(--text);
  --ink-muted: var(--text-3);
  --paper: var(--canvas);
  --paper-2: var(--line-soft);
  --sun: var(--danger);

  --console-bg: var(--canvas);
  --console-sidebar: var(--surface);
  --console-card: var(--surface);
  --console-border: var(--line);
  --console-text: var(--text);
  --console-muted: var(--text-3);

  --success: var(--info);
  --warning: var(--danger);

  --radius: 8px;
  --radius-sm: 6px;
  --elev: none;
  --focus-ring: 0 0 0 3px rgba(22, 93, 255, .12);

  --font-display: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* 阴影只允许"浮层"用，卡片一律不浮 */
  --shadow-pop: 0 8px 24px rgba(29, 33, 41, .12);
}

/* ---------- 2. 壳 ---------- */
.console { background: var(--canvas); color: var(--text); }
.console-body { min-height: 100vh; }

.console .console-sidebar,
.console--platform .console-sidebar,
.console--tenant .console-sidebar {
  width: 232px;
  background: var(--surface);
  color: var(--text-2);
  border-right: 1px solid var(--line);
}
.console-sidebar .brand {
  min-height: 64px;
  gap: 10px;
  padding: 14px 16px 15px;
  border-bottom: 1px solid var(--line);
}
.console-sidebar .brand .logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--line-soft);
  box-shadow: none;
}
.console-sidebar .brand .logo img { width: 32px; height: 32px; border-radius: 8px; }
.console-sidebar .brand strong {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}
.console-sidebar .brand span {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--text-3);
  margin-top: 1px;
}
.console--platform .console-sidebar .brand span,
.console--tenant .console-sidebar .brand span { color: var(--text-3); }

.console-nav { padding: 10px 10px 8px; }
.nav-group {
  margin-bottom: 0;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.nav-group:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.nav-group .gt {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--text-3);
  padding: 4px 10px 6px;
}
.nav-item {
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-2);
  transition: background .12s ease, color .12s ease;
}
.nav-item:hover { background: var(--line-soft); color: var(--text); }
.nav-item.active {
  background: var(--line-soft);
  color: var(--text);
  font-weight: 600;
}
.nav-item.active::before { display: none; }
.console--platform .nav-item.active::before { display: none; }

.console-sidebar .nav-item .badge,
.console-sidebar .nav-item .badge-core,
.console-sidebar .nav-item .badge-secondary,
.console-sidebar .nav-item .badge-shell {
  border-radius: 999px;
  font-family: var(--font);
  font-size: 10.5px;
  letter-spacing: 0;
  padding: 0 6px;
  min-width: 18px;
  height: 17px;
  background: var(--line-soft);
  color: var(--text-3);
}
.console-sidebar .nav-item .badge-core { color: var(--info); background: var(--info-soft); }
.console-sidebar .nav-item .badge-secondary { color: var(--danger); background: var(--danger-soft); }
.console-sidebar .nav-item.active .badge { background: #E8EAEF; color: var(--text-2); }

.console-side-foot {
  border-top: 1px solid var(--line);
  padding: 10px 10px 12px;
  gap: 2px;
}
.console-side-foot button {
  height: 34px;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12.5px;
  color: var(--text-3);
}
.console-side-foot button:hover { background: var(--line-soft); color: var(--text); }

/* 顶栏 */
.console-header {
  height: 56px;
  background: var(--surface);
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  gap: 14px;
}
.cs-topbar-title strong {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}
.cs-topbar-title span { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.console--platform .cs-topbar-title strong::after,
.console--tenant .cs-topbar-title strong::after {
  margin-left: 8px;
  font-family: var(--font);
  font-size: 10.5px;
  letter-spacing: 0;
  border-radius: 999px;
  padding: 0 7px;
  line-height: 18px;
  vertical-align: 1px;
  background: var(--line-soft);
  border: 0;
}
.console--tenant .cs-topbar-title strong::after { color: var(--danger); background: var(--danger-soft); }
.console--platform .cs-topbar-title strong::after { color: var(--info); background: var(--info-soft); }
.console-header .user { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.console-header .user strong {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
}
.console-nav-toggle {
  border-radius: 6px;
  background: var(--surface);
  border-color: var(--line);
}

.console-page {
  padding: 24px 32px 32px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  animation: cs-page-in 180ms cubic-bezier(.2, .7, .2, 1);
}
.console-sync-bar.is-on::after {
  background: linear-gradient(90deg, transparent, var(--info), transparent);
}

/* ---------- 3. 按钮 / 标签 ---------- */
.console .btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 500;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.console .btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.console .btn-primary {
  background: #1D2129;
  color: #FFFFFF;
  border-color: #1D2129;
  box-shadow: none;
}
.console .btn-primary:hover:not(:disabled) { background: #2B303B; border-color: #2B303B; transform: none; }
.console .btn-primary:active:not(:disabled) { transform: none; background: #13161C; }
.console .btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-2);
}
.console .btn-secondary:hover:not(:disabled) { border-color: #C9CDD4; color: var(--text); background: var(--hover); }
.console .btn-ghost { border-color: transparent; color: var(--text-3); background: transparent; }
.console .btn-ghost:hover { color: var(--text); background: var(--line-soft); }

/* 危险/驳回 = 红（按现有 data-* 钩子命中，不改 JS） */
.console .btn-danger,
.console .btn.is-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #FFFFFF;
}
.console [data-job-reject],
.console [data-reject],
.console [data-quick-reject],
.console [data-approve-reject] {
  border-color: var(--line);
  color: var(--danger);
  background: var(--surface);
}
.console [data-job-reject]:hover,
.console [data-reject]:hover,
.console [data-quick-reject]:hover,
.console [data-approve-reject]:hover {
  background: var(--danger-soft);
  border-color: #FFB4A8;
  color: var(--danger);
}
.console [data-job-approve],
.console [data-approve],
.console [data-quick-approve] { letter-spacing: 0; }

.console .badge {
  border-radius: 999px;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0;
  padding: 1px 8px;
  line-height: 18px;
}
.console .badge-core { background: var(--info-soft); color: var(--info); }
.console .badge-secondary { background: var(--danger-soft); color: var(--danger); }
.console .badge-shell { background: var(--line-soft); color: var(--text-2); }
.console :focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }

/* ---------- 4. 页眉 ---------- */
.cs-page {
  --cs-text: var(--text);
  --cs-text-2: var(--text-2);
  --cs-text-3: var(--text-3);
  --cs-fill: transparent;
  --cs-ok: var(--info);
  --cs-warn: var(--danger);
}
.cs-hero {
  margin: 0 0 16px;
  padding: 0;
  border-bottom: 0;
  background: none;
}
.cs-hero-top { gap: 8px; margin-bottom: 10px; min-height: 20px; }
.cs-eyebrow {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-3);
}
.cs-status-chip {
  height: 22px;
  padding: 0 9px;
  gap: 6px;
  border-radius: 999px;
  border: 0;
  background: var(--line-soft);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-2);
}
.cs-status-chip::before { width: 5px; height: 5px; background: var(--text-3); }
.cs-status-chip.is-ok { border-color: transparent; background: var(--info-soft); color: var(--info); }
.cs-status-chip.is-ok::before { background: var(--info); }
.cs-status-chip.is-warn,
.cs-status-chip.is-danger { border-color: transparent; background: var(--danger-soft); color: var(--danger); }
.cs-status-chip.is-warn::before,
.cs-status-chip.is-danger::before { background: var(--danger); }
.cs-status-chip.is-off { border-color: transparent; background: var(--line-soft); color: var(--text-3); }
.cs-status-chip.is-off::before { background: var(--text-3); }

.cs-hero-copy h2 {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--text);
}
.cs-hero-copy p { margin-top: 6px; font-size: 13px; color: var(--text-3); line-height: 1.65; }
.cs-hero-meta {
  margin-top: 9px;
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--text-3);
  gap: 4px 16px;
}
.cs-hero-meta b { font-weight: 500; color: var(--text-2); }
.cs-hero-actions { gap: 8px; }
.cs-hero-actions .btn-primary,
.cs-hero-actions .btn-primary.is-sun {
  background: #1D2129;
  border-color: #1D2129;
  color: #FFFFFF;
  transform: none;
  box-shadow: none;
}
.cs-hero-actions .btn-primary:hover:not(:disabled),
.cs-hero-actions .btn-primary.is-sun:hover:not(:disabled) {
  background: #2B303B;
  filter: none;
  transform: none;
  box-shadow: none;
}

/* ---------- 5. 情境条 ---------- */
.cs-context {
  gap: 0;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  flex-wrap: wrap;
}
.cs-context a,
.cs-context span {
  height: 26px;
  padding: 0 14px;
  border-radius: 6px;
  border-left: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--text-3);
  gap: 6px;
}
.cs-context > *:first-child { border-left: 0; padding-left: 4px; }
.cs-context a:hover { background: var(--line-soft); color: var(--text); }
.cs-context strong {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.cs-context .is-warn strong { color: var(--danger); }
.cs-context .is-ok strong { color: var(--info); }

/* ---------- 6. 指标卡 ---------- */
.cs-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border: 0;
}
.cs-stat {
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .12s ease, background .12s ease;
}
.cs-stat:first-child { border-left: 1px solid var(--line); padding-left: 18px; }
a.cs-stat { color: inherit; }
a.cs-stat:hover,
.cs-stat.is-link:hover {
  background: var(--hover);
  border-color: #C9CDD4;
  transform: none;
}
.cs-stat .l {
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-3);
}
.cs-stat .v {
  margin-top: 8px;
  font-family: var(--font);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.cs-stat .v.is-ok { color: var(--info); }
.cs-stat .v.is-warn { color: var(--danger); }
.cs-stat .s { margin-top: 6px; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.cs-stat .dots { height: 20px; margin-top: 10px; gap: 2px; align-items: flex-end; overflow: hidden; }
.cs-stat .dots i { width: 3px; border-radius: 1px; background: #E5E6EB; transform: scaleY(.5); transform-origin: bottom; }
.cs-stat .dots i.on { background: var(--info); }

/* ---------- 7. 分区头 ---------- */
.cs-block-head {
  margin: 24px 0 0;
  padding-bottom: 10px;
  border-bottom: 0;
  align-items: center;
}
.cs-block-head h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  gap: 8px;
}
.cs-count {
  min-width: 20px;
  height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  border: 0;
  background: var(--line-soft);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
}
.cs-block-head-actions .btn { height: 28px; }

/* ---------- 8. 账行 = 白卡里的行 ---------- */
.cs-row-list {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.cs-row {
  padding: 14px 16px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  transition: background .12s ease;
}
.cs-row:last-child { border-bottom: 0; }
.cs-row:hover { background: var(--hover); transform: none; border-color: var(--line-soft); box-shadow: none; }
.cs-row::before { display: none; }
.cs-row.is-warn { background: #FFF9F8; }
.cs-row.is-warn:hover { background: #FFF4F2; }
.cs-row.is-run,
.cs-row.is-ok { border-color: var(--line-soft); }
.cs-row-title { font-size: 13.5px; font-weight: 600; letter-spacing: 0; gap: 6px; }
.cs-row-meta { margin-top: 3px; font-size: 12px; color: var(--text-3); line-height: 1.55; }
.cs-row-actions { gap: 10px; align-items: center; }

/* ---------- 9. 瓦片 ---------- */
.cs-tile-grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  border: 0;
  background: transparent;
}
.cs-tile {
  padding: 16px 18px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .12s ease, background .12s ease;
}
.cs-tile:hover { background: var(--hover); transform: none; border-color: #C9CDD4; }
.cs-tile::before { display: none; }
.cs-tile-top strong { font-size: 13.5px; font-weight: 600; }
.cs-tile-name { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.cs-tile-meta { margin-top: 6px; font-size: 12px; color: var(--text-3); line-height: 1.55; }
/* 平台标：圆角方块字标，不用印泥 */
.cs-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--line-soft);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  box-shadow: none;
}
.cs-mark-sm { border-radius: 6px; }
.cs-tile-metrics {
  margin-top: 12px;
  padding-top: 10px;
  gap: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cs-tile-metrics div { background: transparent; padding-left: 12px; border-left: 1px solid var(--line-soft); }
.cs-tile-metrics div:first-child { padding-left: 0; border-left: 0; }
.cs-tile-metrics .k { font-size: 11px; color: var(--text-3); }
.cs-tile-metrics .n {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  margin-top: 2px;
}
.cs-tile-actions { margin-top: 12px; gap: 10px; align-items: center; }

/* ---------- 10. 面板 / 分区 / 工具条 ---------- */
.cs-panel,
.cs-section,
.cs-insight-item,
.cs-banner--soft,
.cs-run-panel {
  border-radius: 8px;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}
.cs-panel { background: var(--surface); border: 1px solid var(--line); }
.cs-panel-body { padding: 18px 20px 12px; }
.cs-panel-head h3 { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.cs-panel-foot { background: transparent; border-top: 1px solid var(--line-soft); }
.cs-section { padding: 16px 18px; }
.cs-section > strong { font-size: 13.5px; font-weight: 600; }
.cs-lead { font-size: 13px; color: var(--text-3); line-height: 1.7; }
.cs-banner--soft {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 0;
  background: var(--info-soft);
}
.cs-banner--soft strong { font-size: 13px; font-weight: 600; }

.cs-toolbar { margin-bottom: 0; padding-bottom: 12px; border-bottom: 0; }
.cs-toolbar-meta { font-size: 12.5px; color: var(--text-3); }
.cs-toolbar-meta strong {
  font-family: var(--font);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.cs-filter button {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
}
.cs-filter button:hover { color: var(--text); border-color: #C9CDD4; }
.cs-filter button.is-on {
  background: var(--line-soft);
  border-color: transparent;
  color: var(--text);
  font-weight: 500;
}

/* ---------- 11. 空态 ---------- */
.cs-empty {
  padding: 40px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-3);
}
.cs-empty-ico {
  width: 44px; height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 0;
  background: var(--line-soft);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-3);
  position: relative;
}
.cs-empty-ico::after { display: none; }
.cs-empty em { font-size: 13.5px; font-weight: 600; color: var(--text); }
.cs-empty span { font-size: 12.5px; color: var(--text-3); }
.cs-empty-actions { gap: 10px; }

/* ---------- 12. 侧栏洞察 ---------- */
.cs-insight { gap: 0; }
.cs-insight-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-3);
}
.cs-insight-item:first-child { padding-top: 14px; }
.cs-insight-item strong {
  font-size: 11.5px;
  font-family: var(--font);
  letter-spacing: 0;
  color: var(--text-3);
  font-weight: 400;
  margin-bottom: 4px;
}
.cs-insight-item .big {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* ---------- 13. 正在执行 ---------- */
.cs-run-rail {
  margin: 0 0 12px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}
.cs-run-rail.is-run { border-color: var(--line); border-left-color: var(--line); background: var(--surface); }
.cs-run-rail.is-warn { border-color: #FFD2C8; border-left-color: #FFD2C8; background: #FFFBFA; }
.cs-run-rail.is-ok { border-left-color: var(--line); background: var(--surface); }
.cs-run-rail.is-idle { background: var(--surface); }
.cs-run-kicker {
  font-family: var(--font);
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-3);
}
.cs-run-word {
  font-family: var(--font);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}
.cs-run-rail.is-run .cs-run-word { color: var(--info); }
.cs-run-rail.is-warn .cs-run-word { color: var(--danger); }
.cs-run-sub { font-size: 12px; color: var(--text-3); }
.cs-run-phase {
  border-radius: 999px;
  border: 0;
  background: var(--line-soft);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--text-3);
  padding: 3px 9px;
}
.cs-run-phase.is-done { border-color: transparent; color: var(--info); background: var(--info-soft); }
.cs-run-phase.is-on { border-color: transparent; background: #1D2129; color: #FFFFFF; }
.cs-run-fact {
  border: 0;
  border-left: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  padding: 0 0 0 14px;
  height: 30px;
}
a.cs-run-fact:hover { background: transparent; border-color: transparent; border-left-color: var(--line); }
.cs-run-fact .k { font-family: var(--font); font-size: 11px; letter-spacing: 0; color: var(--text-3); }
.cs-run-fact strong {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.cs-run-fact.is-ok strong { color: var(--info); }
.cs-run-fact.is-warn strong { color: var(--danger); }
.cs-run-meter { height: 3px; border-radius: 2px; background: var(--line-soft); }
.cs-run-meter i { border-radius: 2px; background: var(--info); }
.cs-run-chip {
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11.5px;
  color: var(--text-2);
  padding: 0 10px;
}
.cs-run-chip.is-on { border-color: transparent; background: var(--line-soft); color: var(--text); }
.cs-run-chip.is-on b { color: var(--text); }
.cs-run-chip b { font-family: var(--font); font-weight: 600; }
.cs-run-chip.is-warn { border-color: transparent; color: var(--danger); background: var(--danger-soft); }
.cs-run-chip.is-warn b { color: var(--danger); }
.cs-run-chip .dot.is-run { background: var(--info); }
.cs-run-hint {
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--info-soft);
}
.cs-run-hint.is-warn { border-color: #FFD2C8; border-left-color: #FFD2C8; background: var(--danger-soft); }
.cs-run-hint.is-ok { border-left-color: var(--line); background: var(--info-soft); }
.cs-run-hint-copy strong { font-size: 13px; font-weight: 600; }
.cs-run-hint-copy span { font-size: 12px; color: var(--text-3); }
.cs-run-stage { gap: 12px; }
.cs-run-panel { border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.cs-run-tool { border-bottom: 1px solid var(--line-soft); }
.cs-run-foot {
  border-top: 1px solid var(--line-soft);
  font-family: var(--font);
  font-size: 11.5px;
  letter-spacing: 0;
  color: var(--text-3);
  padding-top: 10px;
}
.cs-run-foot a:hover { text-decoration: none; color: var(--info); }
.cs-run-dot { background: var(--line); }

/* ---------- 14. 表单 ---------- */
.cs-field > label { font-size: 12.5px; color: var(--text-2); }
.cs-ctrl input,
.cs-ctrl select,
.pa-field input,
.pa-field select {
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}
.cs-ctrl input:hover,
.cs-ctrl select:hover { border-color: #C9CDD4; }
.cs-ctrl input:focus,
.cs-ctrl select:focus {
  outline: none;
  border-color: var(--info);
  box-shadow: var(--focus-ring);
}
.cs-check { font-size: 13px; }
.cs-check input { accent-color: #1D2129; }
.cs-links a { border-radius: 6px; color: var(--info); }
.cs-links a:hover { color: #0E42D2; background: transparent; }
.cs-hint { font-size: 12px; color: var(--text-3); }
.cs-sync { font-family: var(--font); font-size: 11.5px; letter-spacing: 0; color: var(--text-3); }
.cs-sync.is-saved { color: var(--info); font-weight: 500; }

/* ---------- 15. 表 ---------- */
.cs-tablewrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.console-page table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); }
.console-page table th {
  text-align: left;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--hover);
  white-space: nowrap;
}
.console-page table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  vertical-align: middle;
}
.console-page table tr:last-child td { border-bottom: 0; }
.console-page table tr:hover td { background: var(--hover); }
.console-page table td:last-child { white-space: nowrap; }

.console-page .wf-strip { gap: 6px; }
.console-page .wf-step {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--text-3);
  padding: 4px 10px;
}
.console-page .wf-step.on { background: #1D2129; border-color: #1D2129; color: #FFFFFF; }
.console-page .wf-step.done { background: var(--info-soft); border-color: transparent; color: var(--info); }

/* ---------- 16. 窄屏 ---------- */
@media (max-width: 1100px) {
  .console-page { padding: 20px 20px 28px; }
  .console-header { padding: 0 20px; }
}
@media (max-width: 900px) {
  .console .console-sidebar {
    width: 232px;
    box-shadow: var(--shadow-pop);
  }
  .console-page { padding: 18px 16px 24px; }
  .console-header { padding: 0 16px; }
  .cs-hero-copy h2 { font-size: 20px; }
  .cs-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-stat:nth-child(3) { border-left: 1px solid var(--line); padding-left: 18px; }
  .cs-context { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cs-context::-webkit-scrollbar { display: none; }
  .cs-context a, .cs-context span { flex: 0 0 auto; white-space: nowrap; }
  .cs-tile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cs-stat-grid { grid-template-columns: 1fr; }
  .cs-stat { border-left: 1px solid var(--line); padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .console-page,
  .console-sync-bar.is-on::after { animation: none !important; }
}
