/* 招聘经营看板 · 优化版 —— 商务看板风：冷灰底 / 白卡 / 藏青主色 / 朱红结果色 */

:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --line: #e4e7eb;
  --line2: #cfd6dd;
  --text: #1c2633;
  --muted: #5f6b7a;
  --faint: #8d97a5;
  --navy: #24435f;
  --navy-deep: #16314b;
  --navy-bg: #eef3f7;
  --red: #b03a2e;
  --red-deep: #8c2f26;
  --red-bg: #f9ece9;
  --amber: #9a6b1f;
  --amber-bg: #fbf3e0;
  --ok: #2e7d5b;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(28, 38, 51, .04);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.65 -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a, input, select { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
h1, h2, h3 { margin: 0; }
p { margin: 0; }

/* ---------- 加载态 ---------- */
.load-state {
  min-height: 60vh; display: grid; place-content: center;
  text-align: center; gap: 10px; color: var(--muted);
}
.load-state strong { font-size: 16px; color: var(--text); }
.load-mark { display: inline-flex; gap: 6px; justify-content: center; }
.load-mark span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--navy);
  animation: bounce 1.2s infinite ease-in-out;
}
.load-mark span:nth-child(2) { animation-delay: .15s; }
.load-mark span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }
.noscript-notice { padding: 32px; text-align: center; color: var(--muted); }

/* ---------- 顶栏 ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(28, 38, 51, .05);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 13px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: var(--ok); color: #fff; border-radius: 6px; flex: none;
  font-size: 20px; font-weight: 700; line-height: 1; padding-bottom: 2px;
}
.brand-title-row { display: flex; align-items: center; gap: 9px; }
.brand-title-row h1 { font-size: 17px; font-weight: 650; letter-spacing: .3px; }
.brand-subtitle { font-size: 12px; color: var(--faint); }
.header-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.live-label { font-size: 12px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(46, 125, 91, .15); }
.meta-status { font-size: 12px; color: var(--faint); display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.meta-status strong { color: var(--muted); font-weight: 600; }

/* ---------- 主体 ---------- */
.dashboard-main { max-width: 1280px; margin: 0 auto; padding: 20px 28px 48px; }
section { margin-bottom: 24px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 2px 12px; flex-wrap: wrap; }
.section-eyebrow {
  font-size: 11px; letter-spacing: 2px; color: var(--navy); font-weight: 700;
  display: flex; align-items: center; gap: 7px; margin-bottom: 4px;
}
.section-indicator { width: 8px; height: 8px; border-radius: 2px; background: var(--navy); }
.section-title { font-size: 18px; font-weight: 650; letter-spacing: .2px; }
.panel-title { font-size: 15.5px; font-weight: 650; }
.section-subtitle { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.section-helper { font-size: 12px; color: var(--faint); white-space: nowrap; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.analysis-panel, .trend-panel { padding: 18px 20px; }
.panel-heading { margin-bottom: 10px; }
.panel-heading .section-eyebrow { margin-bottom: 3px; }

/* ---------- 日期筛选：分段控件 ---------- */
.date-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 13px 18px;
}
.date-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.field-eyebrow { font-size: 11px; letter-spacing: 1.5px; color: var(--faint); font-weight: 600; }
.date-label { font-size: 15px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.date-presets {
  display: flex; gap: 2px; background: #edf0f3; border-radius: 7px; padding: 3px;
}
.preset-button {
  border: 0; background: transparent; color: var(--muted);
  border-radius: 5px; padding: 6px 15px; font-size: 13px; font-weight: 500;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.preset-button:hover { color: var(--text); }
.preset-button.is-active {
  background: var(--navy); color: #fff; font-weight: 600;
  box-shadow: 0 1px 3px rgba(22, 49, 75, .3);
}
.custom-range { display: flex; align-items: flex-end; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.custom-range[hidden] { display: none; }
.date-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.date-field input {
  border: 1px solid var(--line2); border-radius: 4px; padding: 6px 10px;
  background: var(--surface); color: var(--text);
}
.date-field input:focus { border-color: var(--navy); outline: none; }
.date-range-divider { color: var(--faint); padding-bottom: 8px; }
.range-error { color: var(--red); font-size: 12.5px; width: 100%; }
.coverage-note { font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.coverage-note b { color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 5px; padding: 7px 14px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--line2); background: var(--surface); color: var(--text);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-quiet { border-color: transparent; color: var(--navy); background: transparent; }
.btn-quiet:hover { background: var(--navy-bg); }
.btn svg { width: 15px; height: 15px; }
.methodology-button { border: 1px solid var(--line); }

/* ---------- KPI 结果卡 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 15px 18px 13px; position: relative; overflow: hidden;
  transition: border-color .15s ease;
}
.metric-card:hover { border-color: var(--line2); }
.metric-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--navy); opacity: .85;
}
.metric-card--hire::before { background: var(--red); }
.metric-card--gold::before { background: #b98a2e; }
.metric-card--steel::before { background: #64798c; }
.metric-eyebrow { font-size: 11px; letter-spacing: 1.5px; color: var(--faint); font-weight: 600; }
.metric-label {
  font-size: 13.5px; color: var(--text); font-weight: 600; margin-top: 2px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.metric-action {
  border: 0; background: transparent; color: var(--navy); font-size: 13px;
  padding: 2px 6px; border-radius: 4px;
}
.metric-action:hover { background: var(--navy-bg); }
.metric-value {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  font-size: 36px; font-weight: 700; line-height: 1.15; color: var(--text);
  letter-spacing: -.5px; padding: 6px 0 0; font-variant-numeric: tabular-nums;
}
.metric-card--hire .metric-value { color: var(--red); }
.metric-unit { font-size: 13px; font-weight: 600; color: var(--faint); margin-left: 4px; letter-spacing: 0; }
.metric-note { font-size: 12px; color: var(--faint); margin-top: 2px; }
.metric-sub {
  font-size: 12.5px; color: var(--muted); margin-top: 9px; padding-top: 7px;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.metric-sub b { font-weight: 650; color: var(--text); }

/* 过程指标条 */
.process-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.process-item {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  padding: 10px 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  box-shadow: var(--shadow);
}
.process-label { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.process-value { font-size: 20px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.process-note { font-size: 11.5px; color: var(--faint); white-space: nowrap; }

.coverage-alert {
  margin-top: 14px; background: var(--amber-bg); border: 1px solid #ecd9a8;
  border-radius: var(--radius); padding: 10px 15px; font-size: 13px; color: #7d5c1a;
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
}
.coverage-alert[hidden] { display: none; }
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  border-radius: 4px; padding: 2px 9px; white-space: nowrap;
}
.badge--amber { background: #f3e3b6; color: #7d5c1a; }
.badge--blue { background: var(--navy-bg); color: var(--navy); }
.badge--teal { background: var(--red-bg); color: var(--red); }
.badge--gray { background: #eef1f4; color: var(--muted); }

/* ---------- 漏斗 ---------- */
.funnel-surface { padding: 20px 22px 16px; }
.funnel { display: flex; flex-direction: column; gap: 6px; }
.hg-layer { display: grid; grid-template-columns: 1fr 250px; gap: 16px; align-items: center; }
.hg-bar {
  height: 33px; border-radius: 4px; margin: 0 auto; display: flex; align-items: center;
  justify-content: center; gap: 10px; padding: 0 12px; white-space: nowrap;
  transition: filter .15s ease; border: 0;
}
button.hg-bar:hover { filter: brightness(1.08); }
.hg-bar .bn { font-size: 13.5px; font-weight: 600; }
.hg-bar .bp { font-size: 12px; font-weight: 600; opacity: .85; }
.hg-side { font-size: 12px; color: var(--faint); line-height: 1.55; }
.hg-side b { color: var(--muted); font-weight: 600; }
.hg-waist .hg-bar { height: 38px; box-shadow: 0 2px 6px rgba(176, 58, 46, .25); }
.hg-waist .bn { font-size: 15px; }
.hg-gap { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; }
.hg-gap .line { flex: 1; height: 1px; background: var(--line2); }
.hg-gap .gt { font-size: 12px; color: var(--faint); white-space: nowrap; }
.hg-shell .hg-bar { background: repeating-linear-gradient(45deg, #f0f3f6, #f0f3f6 8px, #e6ebf0 8px, #e6ebf0 16px); color: var(--faint); }
.funnel-note { font-size: 12px; color: var(--faint); margin-top: 15px; line-height: 1.7; border-top: 1px solid var(--line); padding-top: 11px; }
.funnel-note b { color: var(--muted); }

/* ---------- 图表 ---------- */
.chart-box { width: 100%; height: 300px; }
.chart-box--tall { height: 340px; }
.trend-note { margin-top: 8px; }

/* ---------- 待核事项 ---------- */
.attention-panel details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0; overflow: hidden;
}
.attention-panel summary {
  list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.attention-panel summary::-webkit-details-marker { display: none; }
.attention-panel summary::after { content: "▾"; margin-left: auto; color: var(--faint); transition: transform .2s; }
.attention-panel details[open] summary::after { transform: rotate(180deg); }
.attention-content { border-top: 1px solid var(--line); padding: 14px 18px; }
.detail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.detail-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; position: relative; font-size: 13.5px; }
.detail-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #b98a2e; }
.detail-list li span { font-size: 12.5px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.page-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px;
}
.source-footer { font-size: 12px; color: var(--faint); display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 弹窗 ---------- */
.detail-dialog {
  border: 0; border-radius: 10px; padding: 0; width: min(880px, 94vw);
  max-height: 88vh; box-shadow: 0 20px 56px rgba(28, 38, 51, .28);
  overflow: hidden;
}
.detail-dialog::backdrop { background: rgba(18, 26, 36, .45); }
.dialog-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 17px 22px 13px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.detail-kicker { font-size: 11px; letter-spacing: 1.5px; color: var(--navy); font-weight: 700; margin-bottom: 2px; }
.detail-title { font-size: 18px; font-weight: 650; }
.detail-subtitle { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.close-detail {
  border: 0; background: transparent; color: var(--faint); border-radius: 6px;
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
}
.close-detail:hover { background: #eef1f4; color: var(--text); }
.close-detail svg { width: 18px; height: 18px; }
.detail-body { padding: 18px 22px 24px; overflow-y: auto; max-height: calc(88vh - 90px); background: var(--surface); }
.detail-body h3 { font-size: 14px; font-weight: 650; margin: 18px 0 10px; padding-left: 9px; border-left: 3px solid var(--navy); }
.detail-body h3:first-child { margin-top: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.detail-stat {
  background: #f7f9fb; border: 1px solid var(--line); border-radius: 6px; padding: 11px 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 22px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-value.hire-value { color: var(--red); }
.detail-stat small { font-size: 11.5px; color: var(--faint); }

.info-callout {
  background: var(--navy-bg); border: 1px solid #d4e0ea; border-radius: 6px;
  padding: 12px 16px; margin: 14px 0; font-size: 13px;
}
.info-callout strong { color: var(--navy-deep); display: block; margin-bottom: 4px; font-size: 13px; }
.info-callout p { color: #31435a; line-height: 1.7; }
.info-callout + .info-callout { margin-top: 10px; }

/* 表格 */
.detail-table-wrap, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 6px; }
.detail-table, .data-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.detail-table th, .detail-table td, .data-table th, .data-table td {
  padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap;
}
.detail-table thead th, .data-table thead th {
  font-size: 12px; color: var(--muted); font-weight: 600;
  background: #f7f9fb;
}
.detail-table tbody tr:last-child td, .data-table tbody tr:last-child td { border-bottom: 0; }
.detail-table tbody tr:hover td, .data-table tbody tr:hover td { background: #f2f6f9; }
.detail-table th[scope="row"], .data-table th[scope="row"] { font-weight: 600; color: var(--text); }
.person-table__total td, .person-table__total th { font-weight: 650; color: var(--navy); background: #f7f9fb; border-top: 1px solid var(--navy); }
.person-table td { text-align: right; }
.person-table thead th:not(:first-child) { text-align: right; }
.text-link {
  border: 0; background: transparent; color: var(--navy); padding: 0;
  font-weight: 500; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.empty-state { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--text); }
.empty-state p { font-size: 13px; }
.source-note { font-size: 12px; color: var(--faint); line-height: 1.7; }
.muted { color: var(--faint); }
.subtle { color: var(--faint); font-weight: 400; }

/* 状态分段条（弹窗内） */
.status-row { margin: 10px 0 14px; }
.status-title { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; margin-bottom: 6px; }
.status-title .muted { font-size: 12px; }
.status-track { display: flex; height: 11px; border-radius: 5px; overflow: hidden; background: #eef1f4; }
.status-segment { height: 100%; transition: width .3s ease; }
.status-segment--empty { background: #eef1f4; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 7px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend-item .dot { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.legend-item strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- AI 开发看板 ---------- */
.ai-board-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ai-search { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--faint); font-weight: 600; letter-spacing: 1.5px; }
.ai-search input {
  border: 1px solid var(--line2); border-radius: 5px; padding: 7px 12px;
  background: var(--surface); color: var(--text); font-weight: 400; letter-spacing: 0;
  min-width: 220px;
}
.ai-search input:focus { border-color: var(--navy); outline: none; }
.ai-project-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 0 6px; margin-bottom: 14px; }
.ai-project-card .ai-project-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 13px 18px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.ai-project-head h3 { font-size: 15px; font-weight: 650; }
.ai-project-head[role="button"] { cursor: pointer; }
.ai-project-head[role="button"]:hover h3 { color: var(--navy); }
.ai-head-arrow { font-size: 12px; color: var(--faint); margin-left: 6px; font-weight: 400; }
.ai-project-head[role="button"]:hover .ai-head-arrow { color: var(--navy); }
.ai-project-meta { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ai-task-row { padding-left: calc(14px + var(--depth, 0) * 26px); }
.ai-children { border-left: 1px solid var(--line); margin-left: calc(20px + var(--depth, 0) * 26px); }
.ai-task-open {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  border: 0; background: transparent; padding: 8px 14px 8px 8px; border-radius: 5px;
  text-align: left; transition: background .15s ease;
}
.ai-task-open:hover { background: #f2f6f9; }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 6px; }
.ai-task-copy { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ai-task-title { font-size: 13.5px; font-weight: 500; color: var(--text); }
.is-done .ai-task-title { text-decoration: line-through; color: var(--faint); }
.ai-task-status { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.ai-task-status--live { color: var(--muted); }
.ai-task-description { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.ai-task-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ai-task-items { font-size: 12px; color: var(--faint); white-space: nowrap; }

/* ---------- 项目看板 ---------- */
.proj-special { display: flex; flex-direction: column; gap: 16px; }
.proj-special-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.proj-special-block h3 { font-size: 14px; font-weight: 650; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.proj-special-block .detail-list li { font-size: 13px; }
.proj-row { cursor: pointer; }

/* ---------- 页面切换导航 ---------- */
.page-nav { border-top: 1px solid var(--line); background: var(--surface); }
.page-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none;
}
.page-nav-inner::-webkit-scrollbar { display: none; }
.page-nav-link {
  display: inline-block; padding: 10px 2px 8px; margin-bottom: -1px;
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .15s ease;
}
.page-nav-link:hover { color: var(--text); }
.page-nav-link.is-active { color: var(--text); font-weight: 650; border-bottom-color: var(--red); }
.chart-box .empty-state { display: grid; place-content: center; height: 100%; }
.info-callout code {
  font-family: ui-monospace, Consolas, monospace; font-size: 12.5px;
  background: #e3ebf1; border-radius: 3px; padding: 1px 5px; color: var(--navy-deep);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .kpi-grid, .process-strip { grid-template-columns: repeat(2, 1fr); }
  .analysis-grid { grid-template-columns: 1fr; }
  .hg-layer { grid-template-columns: 1fr; gap: 3px; }
  .hg-side { padding-left: 4px; }
  .metric-value { font-size: 30px; }
}
@media (max-width: 560px) {
  .header-inner, .dashboard-main { padding-left: 14px; padding-right: 14px; }
  .kpi-grid, .process-strip { grid-template-columns: 1fr; }
  .date-panel-top { flex-direction: column; align-items: flex-start; }
  .metric-value { font-size: 28px; }
  .detail-dialog { width: 96vw; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 项目池（账号 × 客户） ---------- */
.proj-pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 4px 0 8px;
}
.pool-card {
  border: 1px solid #e3ddcd;
  border-radius: 10px;
  padding: 12px 14px 14px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  background: #fff;
}
.pool-card:hover, .pool-card:focus-visible {
  border-color: #33526b;
  box-shadow: 0 2px 10px rgba(51, 82, 107, .12);
  transform: translateY(-1px);
  outline: none;
}
.pool-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.pool-head h3 { font-size: 14px; margin: 0; color: #211d15; }
.pool-count {
  font-size: 12px;
  font-weight: 600;
  color: #33526b;
  white-space: nowrap;
}
.pool-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pool-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2f5;
  border: 1px solid #d7dfe6;
  font-size: 12px;
  color: #33526b;
  font-weight: 500;
}
.pool-chip i {
  font-style: normal;
  font-size: 11px;
  color: #7f8a94;
  background: #fff;
  border-radius: 999px;
  padding: 0 5px;
  border: 1px solid #e3ddcd;
}
.metric-card--link { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.metric-card--link:hover { border-color: #33526b; box-shadow: 0 2px 10px rgba(51, 82, 107, .10); }
.metric-card--link:hover .metric-value { color: #33526b; }

/* ---------- 可点击整卡 / 箭头指示 ---------- */
.metric-card[data-action] { cursor: pointer; }
.metric-action { display: inline-flex; align-items: center; }
.process-arrow {
  font-size: 11px; color: var(--faint); margin-left: 2px; flex: none;
  align-self: center; transition: color .12s;
}
.process-item:hover .process-arrow { color: var(--navy); }
.row-arrow-cell { width: 26px; text-align: right; color: var(--faint); font-size: 12px; }
.proj-row:hover .row-arrow-cell { color: var(--navy); }
.ai-task-arrow { flex: none; align-self: center; font-size: 11px; color: var(--faint); margin-left: 4px; }
.ai-task-open:hover .ai-task-arrow { color: var(--navy); }
