/* 简历雷达应用布局（明亮工作台）：共用令牌与组件见 ui.css。
   同一个页面同时承载候选人档案、插件发布页与管理后台。 */

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; gap: 26px; height: 100dvh; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
.sidebar nav { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 12px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-2); font-size: var(--fs-base); font-weight: 500; text-align: left; }
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; opacity: .8; }
.nav-item:hover { background: var(--canvas); color: var(--ink); }
.nav-item.is-active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.nav-item.is-active svg { opacity: 1; }
.nav-item__count { margin-left: auto; color: var(--muted-2); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.nav-item.is-active .nav-item__count { color: var(--accent-strong); }
.sidebar__foot { display: grid; gap: 12px; margin-top: auto; }
.quota { padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.quota__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: var(--fs-xs); }
.quota__row strong { color: var(--ink); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.quota .track { margin: 9px 0 7px; }
.quota__note { color: var(--muted-2); font-size: var(--fs-xs); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); }
.user-chip:hover { background: var(--canvas); }
.user-chip__meta { min-width: 0; }
.user-chip__meta b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.user-chip__meta span { color: var(--muted); font-size: var(--fs-xs); }
.user-actions { display: flex; gap: 6px; padding: 0 6px; }
.user-actions .btn { flex: 1; }
.conn { display: flex; align-items: center; padding: 0 8px; color: var(--muted); font-size: var(--fs-xs); }
.conn .dot { margin-right: 6px; background: var(--ok); }
.conn .dot.is-offline { background: var(--bad); }

.main { min-width: 0; padding: 22px clamp(18px, 2.1vw, 38px) 40px; }
.content { width: 100%; max-width: 1720px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head__text h1 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.02em; }
.page-head__meta { margin-top: 5px; color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.page-head__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.range-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-field { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: var(--fs-sm); }
.inline-field input { width: auto; min-height: 32px; padding: 4px 9px; font-size: var(--fs-sm); }
.head-tools { display: flex; align-items: center; gap: 8px; }
.head-tools select { width: auto; min-height: 32px; padding: 4px 9px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.search-field { display: flex; align-items: center; gap: 8px; width: clamp(220px, 20vw, 300px); height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.search-field svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: var(--muted-2); stroke-width: 1.9; }
.search-field input { border: 0; min-height: 0; padding: 0; background: transparent; font-size: var(--fs-sm); }
.search-field input:focus-visible { outline: none; }
.search-field:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-field kbd { font: 600 11px/1 var(--mono); color: var(--muted-2); background: var(--canvas); border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px; }
#loadingBar { margin: -12px 0 12px; }
#loadError { max-width: 720px; }

/* 指标卡 */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.kpi__label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.kpi__value { display: flex; align-items: baseline; gap: 9px; margin-top: 8px; }
.kpi__value b { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi__value small { color: var(--muted-2); font-size: var(--fs-xs); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.trend-chart { width: 100%; }
.trend-chart svg { display: block; width: 100%; height: auto; }
.rank-list { display: grid; gap: 2px; padding: 0 8px 12px; }
.rank-note { margin: 2px 10px 10px; color: var(--muted-2); font-size: var(--fs-xs); line-height: 1.6; }
.rank-row { display: grid; grid-template-columns: 22px 30px minmax(0, 1fr) 68px; align-items: start; gap: 10px; padding: 12px 10px; border-radius: var(--radius-sm); }
.rank-row + .rank-row { border-top: 1px solid var(--line-2); }
.rank-row:hover { background: var(--canvas); }
.rank-row__no { color: var(--muted-2); font-size: var(--fs-sm); font-weight: 700; text-align: center; line-height: 30px; font-variant-numeric: tabular-nums; }
.rank-row__no.is-top { color: #b45309; }
.rank-row__body { min-width: 0; display: grid; gap: 5px; }
.rank-row__head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rank-row__name { flex: none; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.rank-row__tags { display: flex; flex: 1 1 auto; gap: 4px; min-width: 0; overflow: hidden; }
.rank-row__tags .rank-tag { flex: none; }
/* 两个条同尺子：长度按请求量对齐，实色是真正调 AI 的部分，浅色差值就是缓存省下的 */
.rank-line { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 10px; }
.rank-line__lab { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-bar { height: 7px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 999px; }
.rank-bar .is-request { background: var(--accent-line); }
.rank-bar .is-ai { background: var(--accent); }
.rank-cache { margin: 1px 0 0; color: var(--muted-2); font-size: var(--fs-xs); }
.rank-cache b { color: var(--ok); font-weight: 650; }
.rank-row__value { text-align: right; color: var(--ink); font-size: var(--fs-md); font-weight: 700; line-height: 30px; font-variant-numeric: tabular-nums; }
.rank-row__value small { margin-left: 2px; color: var(--muted-2); font-size: var(--fs-xs); font-weight: 500; }
.table-wrap--plain { border: 0; border-radius: 0; box-shadow: none; }
.table-wrap--plain th { background: transparent; border-bottom: 1px solid var(--line); padding: 8px 18px; }
.table-wrap--plain td { padding: 10px 18px; }
.rank-empty { padding: 26px 16px; color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--canvas); }
.seg__item { min-height: 26px; padding: 3px 12px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.seg__item.is-active { background: var(--surface); color: var(--accent-strong); box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }

/* 候选人档案：行卡片 */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 34px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.chip:hover { border-color: var(--accent-line); color: var(--accent-strong); }
.chip.is-active { border-color: transparent; background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(91, 91, 214, .9); }
.rec-list { border: 0; background: transparent; box-shadow: none; overflow: visible; }
.rec-list table, .rec-list tbody { display: block; width: 100%; }
.rec-list thead { display: none; }
.who-cell { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.rec-list td { padding: 0; border: 0; }
.rec { display: grid; grid-template-columns: minmax(0, 1fr) 132px 210px; grid-template-areas: "who score meta" "job score usage" "sum score time"; gap: 5px 18px; align-items: start; margin-bottom: 12px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); cursor: pointer; }
.rec:hover { border-color: #dcdfe6; box-shadow: var(--shadow-2); }
.rec.is-selected { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.rec__who { grid-area: who; display: flex; align-items: center; gap: 10px; min-width: 0; }
.rec__who b { font-size: var(--fs-md); font-weight: 650; }
.rec__tags { display: inline-flex; align-items: center; gap: 6px; }
.rec__job { grid-area: job; color: var(--muted); font-size: var(--fs-sm); }
.rec__job b { color: var(--ink-2); font-weight: 600; }
.rec__sum { grid-area: sum; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.65; max-width: 84ch; }
.rec__score { grid-area: score; justify-self: end; }
.rec__meta { grid-area: meta; justify-self: end; color: var(--muted); font-size: var(--fs-xs); text-align: right; }
.rec__time { grid-area: time; justify-self: end; color: var(--muted-2); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec__usage { grid-area: usage; justify-self: end; display: flex; flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; min-width: 0; text-align: right; }
.rec__credits { display: inline-flex; flex: none; align-items: baseline; gap: 3px; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.rec__credits b { font-size: var(--fs-sm); font-weight: 700; line-height: 22px; }
.rec__credits small { font-size: 10px; font-weight: 500; }
.rec__usage-tokens { color: var(--muted-2); font-size: 10.5px; line-height: 1.4; white-space: nowrap; }
.rec__usage.is-cache .rec__credits { background: #f1f3f5; color: var(--muted); }
.rec__usage.is-cache .rec__usage-tokens { color: #9ca3af; }
.cost-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: var(--fs-sm); color: var(--ink-2); }
.cost-stats > span { display: inline-flex; align-items: baseline; gap: 3px; padding: 4px 7px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: var(--fs-xs); }
.cost-stats b { color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.cost-stats .cost-credit { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-strong); }
.cost-stats .cost-credit b { color: var(--accent-strong); }

/* 详情（抽屉 + 内容） */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.detail-score { display: flex; align-items: baseline; gap: 8px; }
.detail-score b { font-size: 32px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.detail-score small { color: var(--muted); font-size: var(--fs-xs); }
.detail-list { padding-left: 18px; margin: 6px 0 0; font-size: var(--fs-sm); line-height: 1.75; }
.detail-rule { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); font-family: var(--mono); font-size: var(--fs-xs); line-height: 1.7; white-space: pre-wrap; max-height: 280px; overflow: auto; }
.detail-evidence { margin: 5px 0 10px !important; color: var(--muted) !important; font-size: var(--fs-xs) !important; }
.drawer-body .sec + .sec { margin-top: 12px; }
.drawer-body .sec > h3 { padding: 14px 16px 10px; }
.drawer-body .sec__body { display: grid; gap: 8px; padding: 0 16px 16px; }
.drawer-body h3 { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.drawer-body p { font-size: var(--fs-sm); line-height: 1.7; white-space: pre-wrap; }
.snapshot-frame { width: 100%; height: min(540px, 62dvh); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.snapshot-image { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; object-position: top; }
.related-list { display: grid; gap: 4px; padding: 0; margin: 0; list-style: none; }
.related-list li { padding-bottom: 7px; border-bottom: 1px solid var(--line-2); }
.related-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.related-list .link-btn { line-height: 1.7; }

/* 一周用量图表 */
.chart-summary { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; color: var(--muted); font-size: var(--fs-sm); }
.chart-summary b { color: var(--ink); font-variant-numeric: tabular-nums; }
.usage-chart { display: block; width: 100%; height: auto; }
.chart-grid { stroke: var(--line-2); stroke-width: 1; }
.chart-limit { stroke: var(--bad); stroke-width: 2; stroke-dasharray: 6 5; }
.chart-limit-label { font-size: 12px; fill: var(--bad); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.chart-value { font-size: 12px; fill: var(--accent-strong); font-variant-numeric: tabular-nums; }
.chart-axis { font-size: 12px; fill: var(--muted); }
.chart-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 14px 0 0; list-style: none; }
.chart-days li { padding: 8px 4px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: var(--fs-xs); text-align: center; }
.chart-days b { display: block; margin-top: 3px; color: var(--ink); font-size: var(--fs-md); font-variant-numeric: tabular-nums; }

/* 绑定岗位 */
.assign-search { width: 100%; margin-bottom: 12px; }
.assign-list { max-height: 400px; padding: 4px 0; overflow: auto; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.assign-list fieldset { min-width: 0; padding: 10px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line-2); }
.assign-list fieldset:last-child { border-bottom: 0; }
.assign-list legend { padding: 0 0 5px; font-size: var(--fs-sm); font-weight: 600; }
.assign-list label { display: flex; align-items: flex-start; gap: 9px; padding: 7px 4px; margin: 0; font-size: var(--fs-sm); cursor: pointer; }
.assign-list input { width: 16px; height: 16px; min-height: 16px; flex: 0 0 16px; padding: 0; margin: 2px 0 0; accent-color: var(--accent); }
.assign-list span { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* 登录 */
.login-view { display: grid; place-items: center; min-height: 100dvh; padding: 32px 20px; }
.login-card { width: min(410px, 100%); padding: 28px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: var(--fs-lg); font-weight: 700; }
.login-card h1 { margin-bottom: 20px; font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.02em; }
.login-lead { margin: 6px 0 20px; }
.login-submit { width: 100%; margin-top: 2px; }
.login-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: var(--fs-xs); }
.login-switch a { font-weight: 600; text-decoration: none; }
.login-switch a:hover { text-decoration: underline; }

/* 自适应：笔记本 → 平板 → 手机 */
@media (min-width: 1500px) {
  .rec { grid-template-columns: minmax(0, 430px) minmax(0, 1fr) 210px; grid-template-areas: "who sum score" "job sum meta" "job sum usage" "job sum time"; }
}
@media (max-width: 1400px) {
  .rec { grid-template-columns: minmax(0, 1fr) 124px 210px; }
}
@media (max-width: 1180px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis--overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { display: block; min-height: 0; }
  .sidebar { position: sticky; top: 0; z-index: 20; flex-direction: row; align-items: center; gap: 12px; height: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .sidebar__brand { padding: 0; }
  .sidebar__brand span:last-child { display: none; }
  .sidebar nav { display: flex; gap: 6px; }
  .nav-item { min-height: 38px; padding: 8px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
  .nav-item > span:not(.nav-item__count) { display: none; }
  .nav-item__count { display: none; }
  .sidebar__foot { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; }
  .quota, .user-chip { display: none; }
  .user-actions { margin: 0; padding: 0; }
  .conn { padding: 0 4px; white-space: nowrap; }
  .main { padding: 16px 16px 32px; }
  .page-head { margin-bottom: 16px; }
  .page-head__text h1 { font-size: var(--fs-xl); }
}
@media (max-width: 760px) {
  .rec-list { display: block; }
  .rec-list table, .rec-list tbody { display: block; width: 100%; }
  .rec-list td { display: block; padding: 0; border: 0; }
  .rec-list td::before { display: none; }
  .rec { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who score" "job usage" "sum usage" "meta time"; gap: 6px 12px; margin-bottom: 10px; padding: 13px 14px; }
  .rec__usage { justify-self: end; max-width: 100%; }
  .rec__usage-tokens { white-space: normal; }
  .rec__score { justify-self: end; align-self: start; }
  .rec__meta { justify-self: start; text-align: left; }
  .rec__time { justify-self: end; }
  .rec__sum { max-width: none; }
  .rec-list td.rec__job { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
  .kpis { gap: 10px; }
  .kpi { padding: 13px 14px; }
  .kpi__value b { font-size: var(--fs-2xl); }
  .kpi__value small { display: none; }
  .page-head__actions { width: 100%; }
  .search-field { width: 100%; order: 6; }
  .head-tools, .range-controls { width: 100%; }
  .chart-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chip { min-height: 32px; padding: 5px 12px; font-size: var(--fs-xs); }
}
@media (max-width: 520px) {
  .main { padding: 14px 12px 28px; }
  .rank-row { grid-template-columns: 18px 28px minmax(60px, 1fr) 34px; }
  .rank-row__pct { display: none; }
}


/* ---------- 登录与发布页 ---------- */
.message { margin-top: 12px; padding: 10px 13px; border: 1px solid var(--bad-line); border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad); font-size: var(--fs-sm); line-height: 1.65; overflow-wrap: anywhere; }
.message.success { border-color: var(--ok-line); background: var(--ok-soft); color: var(--ok); }
.form-intro { margin: 6px 0 18px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }
.form-note { margin-top: 12px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.7; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.section-heading h2 { font-size: var(--fs-lg); font-weight: 700; }
.section-heading > span { color: var(--muted); font-size: var(--fs-xs); }
.release-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.release > h3 { justify-content: flex-start; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.release--stable > h3 { box-shadow: inset 3px 0 0 var(--accent); }
.release--previous > h3 { box-shadow: inset 3px 0 0 var(--line); }
.release .sec__body { display: grid; gap: 10px; }
.release__title { display: flex; align-items: baseline; gap: 8px; font-size: var(--fs-lg); font-weight: 700; }
.release__version { color: var(--accent-strong); font-family: var(--mono); font-size: var(--fs-xl); font-weight: 700; }
.release__desc { color: var(--muted); font-size: var(--fs-sm); line-height: 1.75; }
.release .download { justify-content: space-between; margin-top: 3px; }
.release .small-note { color: var(--muted-2); font-size: var(--fs-xs); line-height: 1.6; }
.file-type { color: var(--muted); font-family: var(--mono); font-size: var(--fs-xs); }
.install-guide { margin-top: 14px; }
.install-guide > summary { display: flex; align-items: center; gap: 12px; padding: 15px 18px 12px; color: var(--ink); font-size: var(--fs-md); font-weight: 650; cursor: pointer; list-style: none; }
.install-guide > summary::-webkit-details-marker { display: none; }
.summary-plus { color: var(--muted); font-size: var(--fs-xl); font-weight: 400; transition: transform .18s; }
details[open] > summary .summary-plus { transform: rotate(45deg); }
.guide-body { max-width: 80ch; padding: 0 18px 18px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.9; }
.guide-body ol { padding-left: 20px; margin: 10px 0; }
.guide-body li { margin-bottom: 6px; }
code { padding: 2px 6px; border: 1px solid var(--line); border-radius: var(--radius-xs); background: var(--surface-2); font-family: var(--mono); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.changelog { margin-top: 30px; }
.log-entry + .log-entry { margin-top: 12px; }
.log-meta { gap: 8px; font-family: var(--mono); font-size: var(--fs-xs); }
.log-meta time { color: var(--ink-2); font-weight: 600; }
.log-entry .sec__body { display: grid; gap: 9px; }
.log-title { font-size: var(--fs-md); font-weight: 650; }
.log-content ul { padding-left: 18px; margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.85; }
.log-content li { margin-bottom: 5px; }
.log-content p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.8; }
.previous-features summary { display: inline-block; padding: 2px 0; color: var(--accent); font-size: var(--fs-xs); cursor: pointer; }
.previous-features summary:hover { text-decoration: underline; }
@media (max-width: 1000px) { .release-options { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 排行榜行内称号 ---------- */
.rank-tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-strong); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.rank-tag--ok { background: var(--ok-soft); color: var(--ok); }
.rank-tag--warn { background: var(--warn-soft); color: var(--warn); }
@media (min-width: 1400px) {
  .rank-row { grid-template-columns: 20px 30px minmax(120px, 232px) minmax(80px, 1fr) 40px 44px; }
}
@media (max-width: 520px) {
  .rank-row { grid-template-columns: 18px 28px minmax(0, 1fr) 34px; }
  .rank-row__pct { display: none; }
}

/* ---------- 岗位 / 公司表格：固定列宽，避免逐字换行 ---------- */
.table--jobs, .table--companies { table-layout: fixed; }
.table--jobs td, .table--companies td, .table--users td { padding: 11px 14px; }
.table--jobs th, .table--companies th, .table--users th { padding: 10px 14px; }
.table--jobs td:first-child, .table--jobs th:first-child, .table--companies td:first-child, .table--companies th:first-child { padding-left: 18px; }
.table--jobs td:last-child, .table--jobs th:last-child, .table--companies td:last-child, .table--companies th:last-child { padding-right: 18px; }
.table--jobs .candidate, .table--companies .candidate { font-weight: 600; }
.nowrap { white-space: nowrap; }
.cell-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }
.site { color: var(--muted); text-decoration: none; }
.site:hover { color: var(--accent); text-decoration: underline; }
.table-wrap .link-btn { white-space: nowrap; }
.table--users .who-cell { max-width: 100%; }
.table--users .candidate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .table--jobs, .table--companies, .table--users { table-layout: auto; }
  .cell-clamp { -webkit-line-clamp: 4; }
}
.rank-more { padding: 8px 10px 2px; color: var(--muted-2); font-size: var(--fs-xs); text-align: center; }
@media (min-width: 1400px) {
  .rank-row { padding: 12px 10px; }
  .rank-list { padding: 0 10px 14px; }
  .sec > h2 { padding: 17px 20px 13px; }
}

/* ---------- 详情里的原文依据 ---------- */
.detail-quote { display: block; margin-top: 3px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; overflow-wrap: anywhere; }
.detail-quote::before { content: "｜"; color: var(--line); }
.detail-quote.is-warning { color: var(--warn); }

.detail-warning { margin: 0 0 10px; padding: 9px 12px; border: 1px solid var(--warn-line); border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-size: var(--fs-sm); line-height: 1.65; }

/* ---------- 详情：标准化简历（standardResume） ---------- */
.std-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--ink); font-size: var(--fs-sm); }
.std-name b { font-size: var(--fs-lg); font-weight: 650; letter-spacing: -.01em; }
.std-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--ink-2); font-size: var(--fs-sm); }
.std-facts > span { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.std-facts em { flex: none; color: var(--muted-2); font-size: var(--fs-xs); font-style: normal; }
.std-facts--rows { flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 0; }
.std-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px 18px; margin-top: 2px; }
.std-grid > .std-head { margin-top: 10px; }
.std-head { margin: 14px 0 6px; color: var(--muted); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .03em; }
.std-head:first-child { margin-top: 0; }
.std-head small { margin-left: 4px; color: var(--muted-2); font-weight: 500; letter-spacing: 0; }
.std-item { padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); }
.std-item + .std-item { margin-top: 6px; }
.std-item__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--ink); font-size: var(--fs-sm); }
.std-item__head b { font-weight: 650; }
.std-item__role { color: var(--ink-2); font-weight: 500; }
.std-item__meta { margin: 3px 0 0 !important; color: var(--muted) !important; font-size: var(--fs-xs) !important; line-height: 1.6 !important; overflow-wrap: anywhere; }
.std-item__desc { margin: 5px 0 0 !important; color: var(--ink-2) !important; font-size: var(--fs-sm) !important; line-height: 1.7 !important; }
.std-achievements { margin: 5px 0 0; padding-left: 16px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.7; }
.std-achievements li::marker { color: var(--accent-line); }
.std-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.std-chip { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.5; overflow-wrap: anywhere; }
.std-warn { margin: 0 0 8px !important; padding: 8px 10px; border: 1px solid var(--warn-line); border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn) !important; font-size: var(--fs-xs) !important; line-height: 1.65 !important; }
.std-meter { height: 5px; max-width: 280px; margin: 0 0 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.std-meter i { display: block; height: 100%; border-radius: 999px; background: var(--accent-line); }
.std-more { margin-top: 8px; }
.std-more > summary { cursor: pointer; color: var(--muted); font-size: var(--fs-xs); line-height: 1.7; }
.std-more > summary:hover { color: var(--accent-strong); }
.std-more[open] > summary { margin-bottom: 6px; }
.std-attach { margin: 10px 0 0 !important; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted) !important; font-size: var(--fs-xs) !important; line-height: 1.6 !important; }


/* ---------- 详情抽屉 v2：摘要条 + Tab + 标准化简历主视图 ---------- */
.drawer.drawer--review { width: min(880px, 100vw); }

.rv-summary { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px 18px; margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.rv-summary__id { display: flex; flex: 1 1 340px; align-items: flex-start; gap: 12px; min-width: 0; }
.rv-summary__id > .avatar { flex: none; width: 42px; height: 42px; flex-basis: 42px; font-size: var(--fs-md); }
.rv-summary__text { display: grid; min-width: 0; gap: 3px; }
.rv-summary__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rv-summary__title h3 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.02em; }
.rv-summary__title .pill { padding: 2px 9px; font-size: var(--fs-lg); }
.rv-summary__title .pill--none { padding: 3px 10px; font-size: var(--fs-xs); }
.rv-summary__job { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }
.rv-summary__job b { color: var(--ink); font-weight: 650; }
.rv-summary__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; }
.rv-summary__actions { display: flex; align-items: flex-start; margin-left: auto; }

.rv-pdf-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.rv-pdf { gap: 7px; }
.rv-pdf svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rv-pdf .spinner { width: 14px; height: 14px; border-width: 2px; }
.rv-download-note { min-height: 16px; max-width: 280px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.5; text-align: right; }
.rv-download-note:empty { min-height: 0; }
.rv-download-note[data-tone="error"] { color: var(--bad); }
.rv-download-note[data-tone="ok"] { color: var(--ok); }

.rv-tabs { display: flex; align-items: stretch; gap: 2px; margin: 0 0 16px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--canvas); overflow-x: auto; scrollbar-width: none; }
.rv-tabs::-webkit-scrollbar { display: none; }
.rv-tab { position: relative; flex: 1 0 auto; min-height: 36px; padding: 7px 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; transition: background .16s, color .16s, box-shadow .16s; }
.rv-tab:hover { color: var(--ink-2); }
.rv-tab.is-active { background: var(--surface); color: var(--accent-strong); box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }

.rv-panels { min-width: 0; }
.rv-panel { display: grid; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.rv-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-sm); }
.rv-panel .sec + .sec { margin-top: 0; }
.rv-panel__head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; }
.rv-panel__head h3 { font-size: var(--fs-md); font-weight: 650; }
.rv-panel__head .subline { margin-top: 3px; }

.rv-empty { display: grid; gap: 12px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.rv-empty .empty-state { padding: 24px 16px; }
.rv-empty__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

.rv-fold { border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
.rv-fold > summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; line-height: 1.6; list-style: none; cursor: pointer; }
.rv-fold > summary::-webkit-details-marker { display: none; }
.rv-fold > summary::before { content: "+"; display: grid; place-items: center; width: 16px; height: 16px; flex: none; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 11px; line-height: 1; }
.rv-fold[open] > summary::before { content: "−"; }
.rv-fold > summary:hover { color: var(--accent-strong); }
.rv-fold > summary small { margin-left: auto; color: var(--muted-2); font-size: var(--fs-xs); font-weight: 500; }
.rv-fold > summary > span { min-width: 0; }
.rv-fold__body { display: grid; gap: 6px; padding: 0 12px 12px; }
.rv-fold__body h4 { margin: 8px 0 4px; color: var(--muted); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .03em; }
.rv-fold__body h4:first-child { margin-top: 0; }
.rv-fold .sec { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.rv-fold .sec > h3 { padding: 8px 12px 4px; }
.rv-fold .sec__body { padding: 0 12px 12px; }

.rv-rawref__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.rv-rawref__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: var(--fs-sm); }
.rv-rawref__list li:last-child { border-bottom: 0; }
.rv-rawref__list small { color: var(--muted-2); font-size: var(--fs-xs); white-space: nowrap; }

.rv-raw__text { max-height: min(520px, 62dvh); margin: 0; padding: 14px 16px; overflow: auto; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); font-family: var(--mono); font-size: var(--fs-xs); line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 标准化简历：白纸感 A4 版式 */
.resume-sheet { padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-2); overflow-wrap: anywhere; }
.rs-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rs-head__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rs-name { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.rs-contact { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--muted); font-size: var(--fs-xs); }
.rs-contact i { font-style: normal; color: var(--line); }
.rs-sec { margin-top: 20px; }
.rs-sec__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); color: var(--accent-strong); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .04em; }
.rs-sec__title small { color: var(--muted-2); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; }
.rs-intent { display: grid; gap: 6px; }
.rs-intent__row { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: baseline; gap: 10px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.rs-intent__row em { color: var(--muted-2); font-size: var(--fs-xs); font-style: normal; }
.rs-timeline { position: relative; display: grid; gap: 14px; padding-left: 18px; }
.rs-timeline::before { content: ""; position: absolute; top: 7px; bottom: 7px; left: 4px; width: 1px; background: var(--line); }
.rs-job { position: relative; min-width: 0; }
.rs-job::before { content: ""; position: absolute; top: 6px; left: -17px; width: 7px; height: 7px; border: 1.5px solid var(--accent-line); border-radius: 50%; background: var(--surface); }
.rs-timeline--flat { padding-left: 0; }
.rs-timeline--flat::before, .rs-timeline--flat .rs-job::before { display: none; }
.rs-job__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.rs-job__company { color: var(--ink); font-size: var(--fs-md); font-weight: 650; }
.rs-job__role { color: var(--ink-2); font-size: var(--fs-sm); }
.rs-job__period { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-job__meta { margin-top: 3px; color: var(--muted-2); font-size: var(--fs-xs); line-height: 1.6; }
.rs-job__desc { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.75; white-space: pre-wrap; }
.rs-points { margin: 6px 0 0; padding-left: 16px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.rs-points li::marker { color: var(--accent-line); }
.rs-edu-list { display: grid; gap: 10px; }
.rs-edu__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-2); font-size: var(--fs-sm); }
.rs-edu__head b { color: var(--ink); font-weight: 650; }
.rs-edu__period { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); }
.rs-edu__honors { margin-top: 4px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; }
.rs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 18px; }
.rs-col { min-width: 0; }
.rs-col .rs-sec__title { margin-bottom: 7px; }
.rs-text { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.8; }
.rs-foot { display: grid; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--line); }
.rs-foot__meter { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--fs-xs); }
.rs-foot__meter .std-meter { flex: 1 1 auto; max-width: 260px; margin: 0; }
.rs-foot__meter b { color: var(--ink-2); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.rs-foot__note { color: var(--muted-2); font-size: var(--fs-xs); line-height: 1.7; }

/* 窄屏：Tab 横向滚动、摘要/时间线上下堆叠，不出现横向滚动 */
@media (max-width: 760px) {
  .rv-summary { padding: 14px; }
  .rv-summary__actions { width: 100%; margin-left: 0; }
  .rv-summary__actions .rv-pdf-wrap { width: 100%; align-items: stretch; }
  .rv-summary__actions .rv-pdf { width: 100%; }
  .rv-download-note { max-width: none; text-align: left; }
  .rv-tabs { justify-content: flex-start; }
  .rv-tab { flex: 1 0 auto; padding: 7px 14px; }
  .rv-panel__head { flex-direction: column; align-items: stretch; }
  .rv-panel__head .rv-pdf-wrap { align-items: stretch; }
  .rv-rawref__list li { flex-wrap: wrap; }
  .rs-timeline { padding-left: 0; }
  .rs-timeline::before, .rs-job::before { display: none; }
  .rs-job__period, .rs-edu__period { margin-left: 0; width: 100%; white-space: normal; }
  .rs-intent__row { grid-template-columns: 1fr; gap: 2px; }
  .resume-sheet { padding: 16px; }
}


/* ── 插件发布页：Beta 提示条 / 版本卡 / 能力对比表 ───────────────── */
.release-banner { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--warn-line); border-radius: var(--radius); background: var(--warn-soft); }
.release-banner__icon { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--warn); color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.release-banner p { margin: 0; color: var(--warn); font-size: var(--fs-sm); line-height: 1.75; }
.release-banner b { color: var(--warn); font-weight: 700; }

.release--beta > h3 { box-shadow: inset 3px 0 0 var(--accent); }
.release--retired > h3 { box-shadow: inset 3px 0 0 var(--line); }
.release--beta .release__version { color: var(--accent-strong); }
.release--retired .release__version { color: var(--muted); }
.release--retired .btn { background: var(--surface-2); color: var(--muted); border-color: var(--line); }

/* 对比表：照常规定价/版本对比页的做法 —— 分组 + 高亮推荐列 + 只放图标，
   说明文字收到能力名下面，避免每格上下堆叠导致行高参差、整页发虚。 */
.compare { margin-top: 18px; }
.compare .sec__body { padding-top: 4px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }

/* 表头：Beta 列做成"推荐"高亮块，纵向贯穿整张表 */
.compare-table thead th { padding: 10px 14px 12px; vertical-align: bottom; border-bottom: 1px solid var(--line); }
.cmp-corner { text-align: left; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.cmp-col { width: 36%; text-align: left; }
.cmp-col b { display: block; font-size: var(--fs-sm); font-weight: 650; color: var(--ink); }
.cmp-col--beta { background: var(--accent-soft); }
.compare-table tbody td.cmp-text { padding: 13px 14px; text-align: left; vertical-align: top; font-size: var(--fs-sm); color: var(--muted); line-height: 1.75; border-top: 1px solid var(--line-2); }
.cmp-text.cmp-col--beta { color: var(--ink-2); }

.compare-table thead .cmp-col--beta { border-radius: 10px 10px 0 0; }
.cmp-tag { display: inline-block; margin-bottom: 5px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.7; }
.cmp-sub { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--muted-2); font-weight: 400; }

/* 分组标题：小号、留白多，像目录一样把表切开 */
.compare-table tbody tr.cmp-group th { padding: 20px 14px 8px; text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--muted-2); letter-spacing: .05em; }
.compare-table tbody tr.cmp-group:first-child th { padding-top: 10px; }

/* 能力行：左侧名称 + 说明，右侧只有图标 */
.compare-table tbody tr:not(.cmp-group) th.cmp-feature { padding: 11px 14px; text-align: left; border-top: 1px solid var(--line-2); }
.cmp-feature b { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.cmp-feature small { display: block; margin-top: 3px; font-size: var(--fs-xs); font-weight: 400; color: var(--muted-2); line-height: 1.5; }
.compare-table tbody tr:not(.cmp-group) td { padding: 11px 14px; vertical-align: top; border-top: 1px solid var(--line-2); }
.compare-table tbody td.cmp-col--beta { background: var(--accent-soft); }
.compare-table tbody tr:last-child td.cmp-col--beta { border-radius: 0 0 10px 10px; }


/* 图标做成圆形色块：勾绿、叉灰、三角琥珀，一眼扫得出来 */
.cmp-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; }
.cmp-mark--yes { background: var(--ok-soft); color: var(--ok); }
.cmp-mark--no { background: #f0f1f4; color: var(--muted-2); }
.cmp-mark--partial { background: var(--warn-soft); color: var(--warn); }

.compare-foot { margin: 14px 14px 0; font-size: var(--fs-xs); color: var(--muted-2); line-height: 1.75; }

/* 窄屏：三列文字挤不下，改成每项一张卡，上下分别标 0.4.0 / 0.5.62 */
@media (max-width: 720px) {
  .compare-table, .compare-table thead, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table thead { display: none; }
  .compare-table tbody tr { padding: 16px 0; border-top: 1px solid var(--line); }
  .compare-table tbody tr:first-child { border-top: 0; padding-top: 4px; }
  .compare-table tbody tr:last-child { padding-bottom: 4px; }
  .compare-table tbody th.cmp-feature { padding: 0 2px 10px; border-top: 0; }
  .compare-table tbody th.cmp-feature b { font-size: var(--fs-md); color: var(--ink); }
  .compare-table tbody td.cmp-text { margin-top: 6px; padding: 10px 12px; border-top: 0; border-radius: 10px; background: var(--surface-2); }
  .compare-table tbody td.cmp-text::before { content: '0.4.0 正式版'; display: block; margin-bottom: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted-2); }
  .compare-table tbody td.cmp-text.cmp-col--beta { background: var(--accent-soft); }
  .compare-table tbody td.cmp-text.cmp-col--beta::before { content: '0.5.62 Beta'; color: var(--accent-strong); }
  .compare-foot { margin: 14px 2px 0; }
}


/* ── AI 设置页（账号 Key 工作台） ─────────────────────────────── */
#settingsView { display: flex; flex-direction: column; gap: 16px; }

.keys-hero {
  position: relative; overflow: hidden;
  padding: 24px 26px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(760px 220px at 96% -20%, rgba(91, 91, 214, .12), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fafbff 100%);
  box-shadow: 0 10px 30px rgba(26, 35, 64, .05);
}
.keys-hero__main { display: flex; align-items: flex-start; gap: 16px; }
.keys-hero__icon {
  flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid #dfe3fb; border-radius: 14px;
  background: linear-gradient(145deg, #eef0ff, #e3e7ff); color: var(--accent);
}
.keys-hero__icon svg { width: 22px; height: 22px; }
.keys-hero__copy { flex: 1; min-width: 0; }
.keys-hero__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.keys-hero__title h2 { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: -.01em; }
.keys-hero__desc { margin: 5px 0 0 !important; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.keys-hero__key { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.keys-hero__key code {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 11px;
  border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
  color: var(--ink); font: 600 13px/1.4 var(--mono); letter-spacing: .2px;
}
.keys-hero__meta { margin: 9px 0 0 !important; color: var(--muted-2); font-size: 11.5px; line-height: 1.6; }
.keys-hero__meta:empty { display: none; }
.keys-hero__actions { flex: 0 0 auto; padding-top: 2px; }
.keys-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 11px; font-weight: 650; letter-spacing: .01em;
}
.keys-badge.is-ok { color: #0b7a42; background: #e9f8ef; }
.keys-badge.is-fail { color: var(--bad); background: #fdeeed; }
.keys-badge.is-unknown { color: var(--muted); background: var(--surface-2); }

.keys-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.keys-stat {
  min-width: 0; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(255, 255, 255, .78);
}
.keys-stat b { display: block; color: var(--ink); font-size: 21px; line-height: 1.2; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.keys-stat span { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.keys-stat.is-accent b { color: var(--accent); }
.keys-stat.is-warn { border-color: #f2d5d2; background: #fffafa; }
.keys-stat.is-warn b { color: var(--bad); }

.keys-panel {
  padding: 22px 24px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(26, 35, 64, .04);
}
.keys-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.keys-panel__head h2 { margin: 0; font-size: 15px; line-height: 1.4; }
.keys-panel__head p { margin: 4px 0 0 !important; color: var(--muted); font-size: 12px; line-height: 1.6; }
.keys-panel__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.keys-search { position: relative; }
.keys-search input {
  width: 190px; height: 34px; padding: 0 12px 0 30px;
  border: 1px solid var(--line-2); border-radius: 9px; background: #fff;
  color: var(--ink); font: 12.5px/1.4 inherit;
}
.keys-search input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.keys-search::before {
  content: "⌕"; position: absolute; left: 10px; top: 50%; transform: translateY(-52%);
  color: var(--muted-2); font-size: 17px; line-height: 1; pointer-events: none;
}
.keys-tabs { display: flex; align-items: center; gap: 2px; margin: 18px 0 12px; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.keys-tabs button {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 8px 11px 9px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--muted); font: 600 12px/1.4 inherit; cursor: pointer;
}
.keys-tabs button b {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  font-size: 10.5px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.keys-tabs button:hover { color: var(--ink-2); }
.keys-tabs button.is-on { color: var(--accent); border-bottom-color: var(--accent); }
.keys-tabs button.is-on b { color: var(--accent); background: var(--accent-soft); }
.keys-table-wrap { max-height: 560px; overflow: auto; border: 1px solid var(--line-2); border-radius: 12px; }
.table--ai-keys { table-layout: fixed; }
.table--ai-keys th, .table--ai-keys td { padding: 11px 12px; vertical-align: middle; }
.table--ai-keys th { position: sticky; top: 0; z-index: 2; background: #f8fafc; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.table--ai-keys td:first-child, .table--ai-keys th:first-child { padding-left: 16px; }
.table--ai-keys td:last-child, .table--ai-keys th:last-child { padding-right: 16px; }
.table--ai-keys tbody tr { transition: background .12s ease; }
.table--ai-keys tbody tr:hover { background: #fbfcff; }
.keys-account { display: flex; align-items: center; gap: 9px; min-width: 0; }
.keys-account__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.keys-key { display: block; color: var(--ink-2); font: 600 12px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.keys-time { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10.8px; line-height: 1.45; white-space: nowrap; }
.keys-empty { color: var(--muted-2); font-size: 12px; }
.keys-role { color: var(--ink-2); font-size: 12px; }
.keys-health { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.keys-health i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.keys-health.is-ok { color: #0b7a42; }
.keys-health.is-ok i { background: #12a55c; box-shadow: 0 0 0 3px #e8f8ef; }
.keys-health.is-fail { color: var(--bad); }
.keys-health.is-fail i { background: var(--bad); box-shadow: 0 0 0 3px #fdeeed; }
.keys-source { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.keys-source.is-user { color: var(--accent); background: var(--accent-soft); }
.keys-source.is-fallback { color: #64748b; background: #f1f5f9; }
.keys-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.keys-action { border: 0; background: transparent; padding: 2px 0; color: var(--muted); font: 600 12px/1.4 inherit; cursor: pointer; white-space: nowrap; }
.keys-action:hover { color: var(--ink); }
.keys-action.is-primary { color: var(--accent); }
.keys-action.is-primary:hover { color: var(--accent-ink); }
.keys-action.is-danger { color: var(--muted-2); }
.keys-action.is-danger:hover { color: var(--bad); }
.keys-message { margin: 12px 0 0 !important; }
.table--ai-keys .empty { padding: 30px 16px; color: var(--muted); text-align: center; }

@media (max-width: 1080px) {
  .keys-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .keys-hero { padding: 20px; }
  .keys-hero__main { flex-wrap: wrap; }
  .keys-hero__actions { width: 100%; padding-top: 0; }
  .keys-panel { padding: 18px 16px 14px; }
  .keys-panel__head { flex-direction: column; }
  .keys-panel__tools { width: 100%; }
  .keys-search { flex: 1; }
  .keys-search input { width: 100%; }
  .table--ai-keys { table-layout: auto; }
  .table--ai-keys th:nth-child(2), .table--ai-keys td:nth-child(2) { display: none; }
  .keys-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .keys-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keys-hero__key code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .table--ai-keys th:nth-child(4), .table--ai-keys td:nth-child(4) { display: none; }
}

/* ── 账号管理：Headseek 成员映射 ─────────────────────────────── */
.hs-link-cell { min-width: 0; }
.hs-link { display: grid; gap: 2px; min-width: 0; }
.hs-link__name { color: var(--ink); font-size: var(--fs-sm); font-weight: 650; }
.hs-link__email, .hs-link__account-email { color: var(--muted); font-size: var(--fs-xs); line-height: 1.5; overflow-wrap: anywhere; }
.hs-link__account-email { color: var(--muted-2); }
.hs-link__suggest { display: inline-flex; align-items: baseline; gap: 2px; flex-wrap: wrap; font-size: var(--fs-xs); line-height: 1.5; }
.hs-link__suggest b { font-weight: 650; }
.hs-link__suggest.is-high { color: var(--accent-strong); font-weight: 600; }
.hs-link__suggest.is-high b { color: var(--accent-strong); }
.hs-link__suggest.is-medium { color: var(--muted); }
.hs-link__hint { color: var(--muted-2); font-size: 11px; line-height: 1.5; }
.hs-link__actions { margin-top: 1px; }
.hs-link__actions .link-btn { font-size: var(--fs-xs); }
.hs-link__note { color: var(--bad); font-size: var(--fs-xs); line-height: 1.5; overflow-wrap: anywhere; }
.hs-empty { color: var(--muted); font-size: var(--fs-sm); }

.hs-map-dialog { width: min(980px, calc(100vw - 32px)); }
.hs-map-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.hs-map-stats .keys-stat { min-width: 0; padding: 10px 12px; background: var(--surface-2); }
.hs-map-stats .keys-stat b { font-size: 18px; }
.hs-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hs-map-toolbar__hint { color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; }
.hs-map__table { border-radius: 12px; }
.hs-map__table .table--hs-map { width: 100%; }
.hs-map__table th { padding: 9px 12px; }
.hs-map__table td { padding: 10px 12px; vertical-align: top; }
.hs-map__account { display: block; color: var(--ink); font-size: var(--fs-sm); font-weight: 650; }
.hs-map__email { display: block; color: var(--muted); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.hs-map__reason { display: block; margin-top: 2px; color: var(--muted-2); font-size: 11px; line-height: 1.5; }
.hs-suggest { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-right: 5px; border-radius: 4px; font-size: 10.5px; font-weight: 700; }
.hs-suggest.is-high { background: var(--accent-soft); color: var(--accent-strong); }
.hs-suggest.is-medium { background: var(--surface-2); color: var(--muted); }
.hs-map__select { width: 100%; min-width: 150px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: var(--fs-xs); }
.hs-map__select:focus-visible { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.hs-map__table tr.is-highlight td { background: var(--accent-soft); }
.hs-map__table .row-actions { flex-wrap: wrap; gap: 4px 10px; }
.hs-map__table .link-btn { font-size: var(--fs-xs); }
@media (max-width: 1080px) { .hs-map-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hs-map-dialog { width: calc(100vw - 16px); }
  .hs-map-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-map-toolbar { flex-direction: column; align-items: stretch; }
  .hs-map-toolbar .btn { width: 100%; }
}
@media (max-width: 520px) { .hs-map-stats { grid-template-columns: minmax(0, 1fr); } }

/* ── Headseek 目录（只读数据页：岗位 / 公司 / 成员） ─────────────── */
#headseekView { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* page-head 右侧同步状态条 */
.cat-sync { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.cat-sync__meta { color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; font-variant-numeric: tabular-nums; }

/* 指标条：一段式，不要卡片阵列 */
.cat-stats { display: flex; align-items: stretch; min-width: 0; padding: 2px 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.cat-stat { flex: 1 1 0; min-width: 0; padding: 13px 18px; }
.cat-stat + .cat-stat { border-left: 1px solid var(--line-2); }
.cat-stat b { display: block; color: var(--ink); font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cat-stat span { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-xs); }

.cat-tabs-row { display: flex; align-items: center; }
.cat-tabs { background: var(--canvas); }
.cat-panel { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cat-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.cat-search { width: clamp(220px, 22vw, 300px); }
.cat-toolbar .cat-search { order: 0; }
.cat-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cat-chips .chip { min-height: 30px; padding: 4px 12px; font-size: var(--fs-xs); }
.cat-select { height: 34px; max-width: 220px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); }
.cat-select:focus-visible { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.cat-count { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }

.cat-table-wrap { border-radius: var(--radius); }
.cat-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cat-table th, .cat-table td { overflow-wrap: anywhere; }
.cat-table th { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; text-align: left; white-space: nowrap; }
.cat-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; vertical-align: middle; }
.cat-table tbody tr:last-child td { border-bottom: 0; }
.cat-row { cursor: pointer; }
.cat-row:hover td { background: var(--canvas); }
.cat-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cat-row__title { display: block; color: var(--ink); font-weight: 650; }
.cat-row__sub { display: block; margin-top: 2px; color: var(--muted-2); font-size: var(--fs-xs); }
.cat-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cat-table .nowrap { white-space: nowrap; }
.cat-email { overflow-wrap: anywhere; }
.cat-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; }
.cat-table .tag + .tag { margin-left: 2px; }
.cat-table--jobs th:nth-child(2) { width: 88px; }
.cat-table--jobs th:nth-child(3) { width: 104px; }
.cat-table--jobs th:nth-child(4) { width: 76px; }
.cat-table--jobs th:nth-child(5) { width: 168px; }
.cat-table--companies th:nth-child(1) { width: 24%; }
.cat-table--companies th:nth-child(2) { width: 14%; }
.cat-table--companies th:nth-child(3) { width: 10%; }
.cat-table--companies th:nth-child(4) { width: 13%; }
.cat-table--companies th:nth-child(5) { width: 13%; }
.cat-table--members th:nth-child(1) { width: 24%; }
.cat-table--members th:nth-child(2) { width: 30%; }
.cat-table--members th:nth-child(3) { width: 14%; }
.cat-table--members th:nth-child(4) { width: 22%; }
.cat-table--members th:nth-child(5) { width: 10%; }

.cat-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.cat-pager__controls { display: flex; gap: 8px; }

.cat-skeleton { display: block; width: 72%; height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--line-2) 25%, var(--surface-2) 37%, var(--line-2) 63%); background-size: 400% 100%; animation: cat-shimmer 1.4s ease-in-out infinite; }
.cat-skeleton-row td:nth-child(2) .cat-skeleton { width: 46%; }
.cat-skeleton-row td:nth-child(3) .cat-skeleton, .cat-skeleton-row td:nth-child(4) .cat-skeleton { width: 30%; }
@keyframes cat-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.cat-empty, .cat-error { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.cat-empty b { color: var(--ink-2); font-size: var(--fs-md); font-weight: 650; }
.cat-empty span { font-size: var(--fs-xs); }
.cat-error { gap: 8px; color: var(--bad); }
.cat-error--drawer { justify-items: start; padding: 18px 20px; text-align: left; }

/* 目录详情抽屉 */
body.cat-drawer-open { overflow: hidden; }
.cat-detail { display: grid; gap: 4px; min-width: 0; }
.cat-detail__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.cat-detail__head h3 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.01em; }
.cat-detail__meta { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.cat-detail__actions { margin-top: 2px; }
.cat-section { margin-top: 18px; }
.cat-section > h3 { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); color: var(--accent-strong); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .03em; }
.cat-section > h3 small { color: var(--muted-2); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; }
.cat-prose { max-width: 72ch; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.cat-facts { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.cat-fact { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); }
.cat-fact > span { color: var(--muted-2); font-size: var(--fs-xs); padding-top: 2px; }
.cat-fact > b { color: var(--ink-2); font-weight: 500; overflow-wrap: anywhere; }
.cat-fact > b.muted { color: var(--muted-2); font-weight: 400; }
.cat-members { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line-2); }
.cat-member { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.cat-member__id { display: grid; gap: 2px; min-width: 0; }
.cat-member__id b { color: var(--ink); font-size: var(--fs-sm); font-weight: 650; }
.cat-member__email { color: var(--muted); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.cat-member__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.cat-link-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line-2); }
.cat-link-list li { border-bottom: 1px solid var(--line-2); }
.cat-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 2px; border: 0; background: transparent; color: var(--ink-2); text-align: left; }
.cat-link:hover { background: var(--canvas); }
.cat-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cat-link__main { display: grid; gap: 2px; min-width: 0; }
.cat-link__main b { color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.cat-link__sub { color: var(--muted-2); font-size: var(--fs-xs); }
.cat-link__side { flex: 0 0 auto; }
.cat-drawer-skeleton { display: grid; gap: 12px; padding: 4px 0; }
.cat-drawer-skeleton .cat-skeleton { width: 100%; height: 14px; }
.cat-drawer-skeleton .cat-skeleton:nth-child(even) { width: 82%; }

/* 窄屏：≤900 表格转卡片行；≤760 工具条纵向、指标两列 */
@media (max-width: 900px) {
  .cat-table-wrap { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .cat-table, .cat-table tbody, .cat-table tr, .cat-table td { display: block; width: 100%; }
  .cat-table thead { display: none; }
  .cat-table colgroup, .cat-table col { display: none; }
  .cat-table tbody tr { margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
  .cat-table tbody tr:last-child { margin-bottom: 0; }
  .cat-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 5px 0; border: 0; }
  .cat-table td::before { content: attr(data-label); color: var(--muted-2); font-size: var(--fs-xs); line-height: 1.7; }
  .cat-table td[data-card="title"] { display: block; padding: 0 0 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
  .cat-table td[data-card="title"]::before { display: none; }
  .cat-table .num { text-align: left; }
  .cat-table .cat-empty, .cat-table .cat-error { padding: 18px 6px; }
  .cat-toolbar { align-items: stretch; }
  .cat-search { width: 100%; }
  .cat-count { margin-left: 0; }
}
@media (max-width: 760px) {
  .cat-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-stat { padding: 11px 14px; }
  .cat-stat + .cat-stat { border-left: 0; }
  .cat-stat:nth-child(even) { border-left: 1px solid var(--line-2); }
  .cat-stat:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .cat-sync { width: 100%; }
  .cat-sync__meta { flex: 1 1 160px; }
  .cat-tabs { align-self: stretch; overflow-x: auto; scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tabs .seg__item { flex: 0 0 auto; white-space: nowrap; text-align: center; }
  .cat-toolbar { flex-direction: column; align-items: stretch; }
  .cat-chips { justify-content: flex-start; }
  .cat-select { max-width: none; width: 100%; }
  .cat-toolbar > .btn { align-self: flex-start; }
  .cat-pager { flex-direction: column; align-items: stretch; }
  .cat-fact { grid-template-columns: 1fr; gap: 2px; }
}

/* ── 新账号体系（Headseek 透传预览页，只读） ─────────────────── */
#newSystemView { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ns-subline { margin: 0; color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; }
.cat-table--ns-accounts th:nth-child(1) { width: 30%; }
.cat-table--ns-accounts th:nth-child(2) { width: 170px; }
.cat-table--ns-accounts th:nth-child(3) { width: 96px; }
.cat-table--ns-accounts th:nth-child(4) { width: 110px; }
.cat-table--ns-accounts th:nth-child(5) { width: 130px; }
.cat-table--ns-accounts th:nth-child(6) { width: 92px; }
.cat-table--ns-tiers th:nth-child(1) { width: 32%; }
.cat-table--ns-tiers th:nth-child(2) { width: 160px; }
.cat-table--ns-tiers th:nth-child(3),
.cat-table--ns-tiers th:nth-child(4),
.cat-table--ns-tiers th:nth-child(5) { width: 72px; }
.cat-table--ns-tiers th:nth-child(6) { width: 140px; }
.ns-tier-summary { margin: 0; color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.ns-notice { margin: 10px 0 0 !important; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.ns-notice b { font-weight: 650; }
.ns-notice code { padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--mono); font-size: 11.5px; }
.ns-notice.is-ok { border-color: var(--ok-line); background: var(--ok-soft); }
.ns-notice.is-info { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-strong); }
.ns-notice.is-info code { color: var(--ink); }
.ns-notice.is-muted { color: var(--muted); }
.ns-migration-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ns-mig-card { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.ns-mig-card__label { display: block; color: var(--muted); font-size: var(--fs-xs); }
.ns-mig-card > b { display: block; margin: 4px 0 8px; color: var(--ink); font-size: var(--fs-3xl); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ns-mig-card__rows { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.ns-mig-card__rows span { display: inline-flex; align-items: baseline; gap: 5px; color: var(--muted); font-size: var(--fs-xs); }
.ns-mig-card__rows em { font-style: normal; color: var(--muted-2); }
.ns-mig-card__rows b { color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.ns-notes { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.ns-notes h3 { margin: 0 0 8px; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 650; }
.ns-notes ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.ns-notes code { padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--mono); font-size: 11.5px; }
.ns-migration-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ns-mig-list { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ns-mig-list h3 { display: flex; align-items: baseline; gap: 6px; margin: 0 0 8px; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 650; }
.ns-mig-list h3 small { color: var(--muted-2); font-size: var(--fs-xs); font-weight: 500; }
.ns-mig-list ul { display: grid; margin: 0; padding: 0; list-style: none; }
.ns-mig-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: var(--fs-sm); }
.ns-mig-list li > div { display: grid; gap: 2px; min-width: 0; }
.ns-mig-list li b { color: var(--ink-2); font-weight: 600; }
.ns-mig-list li .cat-email { color: var(--muted); font-size: var(--fs-xs); }
.ns-mig-list__reason { flex: 0 1 auto; max-width: 55%; color: var(--muted-2); font-size: var(--fs-xs); line-height: 1.6; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .ns-migration-cards, .ns-migration-lists { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ns-mig-card > b { font-size: var(--fs-2xl); }
  .ns-mig-list li { flex-direction: column; gap: 3px; }
  .ns-mig-list__reason { max-width: 100%; text-align: left; }
}

/* ── 设置页 Tab（AI 设置 / 特殊配置） ─────────────────────────── */
.set-tabs { display: flex; align-items: center; gap: 2px; align-self: flex-start; max-width: 100%; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--canvas); overflow-x: auto; scrollbar-width: none; }
.set-tabs::-webkit-scrollbar { display: none; }
.set-tab { flex: 0 0 auto; min-height: 34px; padding: 6px 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; transition: background .16s, color .16s, box-shadow .16s; }
.set-tab:hover { color: var(--ink-2); }
.set-tab.is-active { background: var(--surface); color: var(--accent-strong); box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
.set-panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.set-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }

/* Headseek 特殊配置 */
.hs-hero .keys-hero__desc code { display: inline-block; max-width: 100%; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font: 600 11.5px/1.5 var(--mono); overflow-wrap: anywhere; vertical-align: baseline; }
.hs-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.hs-result .keys-panel__head { align-items: center; }
.hs-result__body { display: grid; gap: 14px; margin-top: 14px; }
.hs-result__body > .keys-empty { margin: 0; padding: 20px 4px; text-align: center; }
.hs-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.hs-stats .keys-stat { background: var(--surface-2); }
.hs-samples { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; }
.hs-samples__label { flex: 0 0 auto; padding-top: 3px; color: var(--muted-2); font-size: var(--fs-xs); }
.hs-result__meta { color: var(--muted); font-size: var(--fs-xs); line-height: 1.7; }
.hs-result__error { margin: 0 !important; padding: 9px 12px; border: 1px solid var(--bad-line); border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad); font-size: var(--fs-sm); line-height: 1.65; }
@media (max-width: 900px) {
  .hs-actions { width: 100%; justify-content: stretch; }
  .hs-actions .btn { flex: 1 1 130px; }
}
@media (max-width: 760px) {
  .set-tabs { align-self: stretch; }
  .set-tab { flex: 1 0 auto; text-align: center; }
}
@media (max-width: 520px) {
  .hs-stats { grid-template-columns: minmax(0, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════
   数据总览（#overviewView）— 重设计 v2
   契约见 .tmp-dashboard/DESIGN-SPEC.md §3 / §5。
   注意：上方 .chart-grid/.chart-line/.chart-dot/.chart-value/.chart-axis/
   .chart-days 仍被账号「一周用量」弹窗使用，本区块只在总览作用域内
   新增/覆盖，不改动原有规则。
   ═══════════════════════════════════════════════════════════════════ */

/* ---------- 四张 KPI 卡 ---------- */
.kpis--overview { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-height: 22px; }
.kpi__dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; }
.kpi__delta { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--canvas); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi__delta:empty { display: none; }
.kpi__delta.is-up { background: var(--ok-soft); color: var(--ok); }
.kpi__delta.is-down { background: var(--bad-soft); color: var(--bad); }
.kpi__delta.is-flat { background: var(--canvas); color: var(--muted); }
.kpi__meta { margin-top: 6px; min-height: 19px; color: var(--muted-2); font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.kpi__meta .is-alert { color: var(--bad); font-weight: 600; }
/* 第一张卡只做很轻的主色区分：顶部 2px 主色 + 极浅渐变，避免重色压过数据 */
.kpi--accent { border-color: var(--accent-line); background: linear-gradient(180deg, #f7f7ff 0%, var(--surface) 46%); box-shadow: var(--shadow-1), inset 0 2px 0 var(--accent); }
.kpi--accent .kpi__label { color: var(--ink-2); }
.kpi__spark { margin-top: 10px; }
.kpi__spark svg { display: block; width: 100%; height: 34px; }
.kpi__value b { font-variant-numeric: tabular-nums; }

/* ---------- 主体结构：全宽趋势 → 全宽排行榜 → 3 列信息 → 底部 2 列 ---------- */
.ov-chart-card, .ov-rank-card { margin-bottom: 14px; }
.ov-row3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.ov-row4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ov-row3 > .sec, .ov-row4 > .sec { display: flex; flex-direction: column; min-width: 0; }
.ov-row3 .chart-foot, .ov-row4 .chart-foot { margin-top: auto; }

/* 卡片头：替代 .sec > h2，避免 h2 的内边距叠成双份 */
.ov-card-head { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 15px 18px 12px; }
.ov-card-head h2 { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: var(--fs-md); font-weight: 650; letter-spacing: -.01em; }
.ov-card-head h2 small, .ov-card-head > small { color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.ov-card-head > small { align-self: center; }
.ov-card-head .seg { flex: none; }

/* ---------- 趋势图 ---------- */
/* tooltip 可能超出绘图区：允许溢出，避免被 .sec 的 overflow:hidden 裁切 */
.ov-chart-card { overflow: visible; }
.ov-chart-card .chart-summary { margin: 0 18px 8px; }
/* host 只留 margin 不留 padding：JS 用 host.clientWidth 计算 SVG 尺寸，
   有 padding 会让 clientWidth 把留白算进去，图会轻微缩水 */
.ov-chart-card .trend-chart { position: relative; width: auto; margin: 2px 18px 0; }
.trend-chart { position: relative; }
.trend-chart svg { display: block; width: 100%; height: auto; }
.chart-foot { margin: 10px 18px 14px; color: var(--muted-2); font-size: 12px; line-height: 1.6; }
.chart-foot:empty { display: none; }
.chart-tip { position: absolute; z-index: 5; min-width: 132px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-2); color: var(--ink-2); font-size: 12px; line-height: 1.6; pointer-events: none; transform: translate(-50%, -100%); white-space: nowrap; }
.chart-tip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-tip small { display: block; color: var(--muted); font-size: 11.5px; }
.trend-chart text, .hour-chart text, .ov-donut text { font-family: var(--font); font-variant-numeric: tabular-nums; }
.trend-chart .muted, .hour-chart .muted { margin: 0; padding: 34px 0; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- 排行榜 ---------- */
.ov-rank-card .rank-note { margin: 0 18px 10px; }
.ov-rank-table { padding: 0 18px 2px; }
.ov-rank-table table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ov-rank-table thead { display: none; }
.ov-rank-table tbody { display: block; }
.ov-rank-table tr.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(180px, 260px) minmax(0, 1fr) 104px;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface);
}
.ov-rank-table tr.rank-item:last-child { border-bottom: 0; }
.ov-rank-table tr.rank-item:hover { background: var(--surface-2); }
.ov-rank-table tr.rank-item.is-top { background: #fcfcfe; }
.ov-rank-table td { padding: 0; border: 0; background: transparent; color: var(--ink-2); font-size: 13px; }
.ov-rank-table .c-no { grid-column: 1; }
.ov-rank-table .c-who { grid-column: 2; min-width: 0; }
.ov-rank-table .rank-stats { grid-column: 3; min-width: 0; }
.ov-rank-table .ov-share { grid-column: 4; min-width: 0; }
.ov-rank-table .who-cell { display: inline-flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; }
.ov-rank-table .who-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ov-rank-table .rank-name { overflow: hidden; color: var(--ink); font-size: 13.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ov-rank-table .rank-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rank-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: transparent; color: var(--muted-2); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-no.is-1 { background: var(--warn-soft); color: var(--warn); }
.rank-no.is-2 { background: #f1f5f9; color: #475569; }
.rank-no.is-3 { background: #fff1e6; color: #9a3412; }
.rank-stats__grid { display: grid; grid-template-columns: minmax(60px, .7fr) minmax(180px, 1.5fr) minmax(90px, 1fr) minmax(76px, .8fr); gap: 18px; align-items: center; }
.rank-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rank-stat small { color: var(--muted-2); font-size: 10.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.rank-stat b { color: var(--ink-2); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.25; }
.rank-stat em { overflow: hidden; color: var(--muted); font-size: 10.5px; font-style: normal; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.rank-stat--touch b { color: var(--ink); font-size: 14px; }
.rank-share { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; width: 100%; }
.rank-share small { color: var(--muted-2); font-size: 10.5px; }
.rank-share__bar { display: block; width: 100%; height: 5px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.rank-share__bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.rank-share b { color: var(--muted); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rank-more-row { display: block; }
.rank-more-row td.rank-more { display: block; padding: 12px 12px 2px; color: var(--muted-2); font-size: 11.5px; text-align: center; }
.ov-rank-table tr.rank-item > td.empty { display: block; grid-column: 1 / -1; padding: 36px 16px; text-align: center; color: var(--muted-2); }

/* ---------- 来源构成（donut） ---------- */
.ov-donut { display: grid; place-items: center; padding: 4px 18px 0; }
.ov-donut svg { display: block; width: 160px; max-width: 100%; height: auto; }
.ov-legend { display: grid; gap: 7px; padding: 0; margin: 10px 18px 16px; list-style: none; }
.ov-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 12.5px; line-height: 1.5; }
.ov-legend__dot { width: 8px; height: 8px; border-radius: 2px; }
.ov-legend__label { min-width: 0; overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.ov-legend__label small, .ov-legend__batch { margin-left: 6px; color: var(--muted-2); font-size: 11px; font-weight: 400; white-space: nowrap; }
.ov-legend li b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-legend__pct { min-width: 34px; color: var(--muted-2); font-variant-numeric: tabular-nums; text-align: right; }
.ov-legend li.is-empty { opacity: .55; }

/* ---------- 评分质量 ---------- */
.score-dist { padding: 4px 18px 16px; }
.score-dist__head { display: flex; align-items: baseline; gap: 8px; }
.score-dist__head b, .score-dist > b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.score-dist__head small, .score-dist > small { color: var(--muted-2); font-size: 12px; }
.score-dist__head span { margin-left: auto; color: var(--muted); font-size: 12px; }
.score-dist__bar { display: flex; height: 10px; margin: 12px 0; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.score-dist__bar > i { display: block; height: 100%; }
.score-dist__bar > i:nth-child(1) { background: var(--ok); }
.score-dist__bar > i:nth-child(2) { background: var(--warn); }
.score-dist__bar > i:nth-child(3) { background: var(--bad); }
.score-dist__rows { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.score-dist__rows li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.score-dist__rows i, .score-dist__dot { width: 8px; height: 8px; border-radius: 2px; }
.score-dist__rows > li:nth-child(1) > i, .score-dist__rows > li:nth-child(1) > .score-dist__dot { background: var(--ok); }
.score-dist__rows > li:nth-child(2) > i, .score-dist__rows > li:nth-child(2) > .score-dist__dot { background: var(--warn); }
.score-dist__rows > li:nth-child(3) > i, .score-dist__rows > li:nth-child(3) > .score-dist__dot { background: var(--bad); }
.score-dist__rows b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.score-dist__pct, .score-dist__rows > li > span:last-child { min-width: 34px; color: var(--muted-2); font-variant-numeric: tabular-nums; text-align: right; }
.score-dist__note { margin: 10px 0 0; color: var(--muted-2); font-size: 11.5px; line-height: 1.5; }
.score-dist .muted { margin: 0; padding: 30px 0; font-size: 13px; text-align: center; }

/* ---------- 活跃时段（24 小时竖排条形，小时在左、条形向右） ---------- */
.hour-chart { padding: 2px 18px 2px; }
.hour-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.hour-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 52px; gap: 10px; align-items: center; min-height: 17px; color: var(--muted-2); font-size: 11px; line-height: 1; }
.hour-row__label { color: inherit; font-variant-numeric: tabular-nums; text-align: right; }
.hour-row__track { display: block; height: 7px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.hour-row__track i { display: block; height: 100%; border-radius: 999px; background: var(--accent-line); }
.hour-row__value { color: var(--muted-2); font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.hour-row.is-zero .hour-row__track { background: #f1f3f6; }
.hour-row.is-zero .hour-row__track i { width: 0 !important; }
.hour-row.is-peak { color: var(--accent-strong); font-weight: 650; }
.hour-row.is-peak .hour-row__track i { background: var(--accent); }
.hour-row.is-peak .hour-row__value { color: var(--accent-strong); font-weight: 650; }
.hour-chart svg { display: block; width: 100%; height: auto; }

/* ---------- 岗位热度 ---------- */
.job-heat { display: grid; gap: 2px; margin: 0; padding: 2px 18px 14px; list-style: none; }
.job-heat li { display: grid; grid-template-columns: 18px minmax(0, 1fr) 56px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-2); }
.job-heat li:first-child { border-top: 0; }
.job-heat__no { color: var(--muted-2); font-size: var(--fs-sm); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.job-heat__main { display: grid; gap: 3px; min-width: 0; }
.job-heat__title { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.job-heat__company { overflow: hidden; color: var(--muted-2); font-size: 11.5px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.job-heat__bar { height: 5px; margin-top: 2px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.job-heat__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #b9b9f5, var(--accent)); }
.job-heat__value { color: var(--ink); font-size: var(--fs-md); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.job-heat__value small { margin-left: 2px; color: var(--muted-2); font-size: 11px; font-weight: 500; }
.job-heat > .muted { padding: 24px 0; font-size: 13px; text-align: center; }
#jobFoot { margin-top: auto; }

/* ---------- 动态 / 异常 ---------- */
.activity-list { padding: 0 10px 4px; }
.activity-row { display: grid; grid-template-columns: 42px 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; width: 100%; padding: 10px 8px; border: 0; border-top: 1px solid var(--line-2); border-radius: var(--radius-xs); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.activity-row:first-child { border-top: 0; }
.activity-row:hover { background: var(--canvas); }
.activity-row__time { padding-top: 2px; color: var(--muted-2); font-size: 11.5px; line-height: 1.6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.activity-row > .avatar { justify-self: center; margin-top: 1px; }
.activity-row__main { display: grid; gap: 2px; min-width: 0; padding-top: 1px; }
.activity-row__title { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.activity-row__meta { overflow: hidden; color: var(--muted-2); font-size: 11.5px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.activity-row__error { display: -webkit-box; overflow: hidden; color: var(--bad); font-size: 11.5px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.activity-row__value { display: flex; align-items: center; align-self: center; justify-content: flex-end; gap: 4px; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.activity-row__value .pill { padding: 3px 8px; font-size: var(--fs-sm); }
.activity-row--alert { box-shadow: inset 2px 0 0 var(--bad); background: linear-gradient(90deg, rgba(217, 45, 32, .05), transparent 46%); }
.activity-row--alert:hover { background: var(--bad-soft); }
.activity-list > .muted { margin: 0; padding: 28px 8px; font-size: 13px; text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .kpis--overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-hide-md { display: none !important; }
  .ov-row3, .ov-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ov-row3, .ov-row4 { grid-template-columns: minmax(0, 1fr); }
  .ov-hide-sm { display: none !important; }
  .ov-rank-table { padding: 0 14px 2px; }
  .ov-rank-table .c-who { width: auto; min-width: 150px; }
  /* 窄屏行内放不下时间列，头像与标题仍完整 */
  .activity-row { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .activity-row__time { display: none; }
}
@media (max-width: 760px) {
  .kpis--overview { gap: 10px; }
  .kpi__delta { padding: 2px 6px; font-size: 11px; }
  .kpi__spark { display: none; }
  .ov-card-head { min-height: 44px; padding: 13px 14px 10px; }
  .ov-card-head h2 small { display: none; }
  .ov-chart-card .chart-summary { margin: 0 14px 8px; }
  .ov-chart-card .trend-chart { margin: 2px 14px 0; }
  .chart-foot { margin: 8px 14px 12px; }
  .ov-donut { padding: 4px 14px 0; }
  .ov-legend { margin: 10px 14px 14px; }
  .score-dist { padding: 4px 14px 14px; }
  .hour-chart { padding: 2px 14px 2px; }
  .job-heat { padding: 2px 14px 12px; }
  .activity-list { padding: 0 6px 2px; }
  .ov-rank-card .rank-note { margin: 0 14px 8px; }
  .ov-rank-table { padding: 0 14px 2px; }
  .ov-rank-table th, .ov-rank-table td { padding: 9px 8px; }
  .ov-rank-table .c-no { width: 38px; }
}
@media (max-width: 520px) {
  .ov-rank-table th:nth-child(4), .ov-rank-table td:nth-child(4) { display: none !important; }
  .ov-card-head { gap: 8px; }
  .ov-card-head .seg__item { padding: 3px 9px; }
  .ov-card-head > small { display: none; }
  .ov-rank-table .rank-tags { display: none; }
  .ov-rank-table th, .ov-rank-table td { padding: 8px 6px; }
  .job-heat li { grid-template-columns: 16px minmax(0, 1fr) 52px; gap: 8px; }
  .ov-legend li { font-size: 12px; }
}


/* 岗位编辑：公司介绍只读预览（来自公司档案，不在岗位里编辑） */
.job-company-preview {
  margin: -4px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.job-company-preview strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.job-company-preview p {
  margin: 7px 0 0;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.job-company-preview__empty { color: var(--muted) !important; }

/* 管理后台：个人设置覆盖抽屉 */
.override-row { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.override-row:last-child { border-bottom: 0; }
.override-row__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.override-row__head b { font-size: var(--fs-sm); }
.override-row__head span { color: var(--muted); font-size: var(--fs-xs); }
.override-row p { margin: 4px 0 0; }
.override-row .row-actions { margin-top: 4px; }
.override-detail { display: grid; gap: 10px; }
.override-detail__meta { display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 0 10px; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: var(--fs-xs); }
.override-detail__meta b { color: var(--ink); font-size: var(--fs-sm); }
.override-detail__warning { margin: 0; padding: 8px 10px; border-left: 2px solid #d97706; background: #fffbeb; color: #8a5a00; font-size: var(--fs-xs); line-height: 1.6; }
.override-detail__table { margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.override-detail-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); line-height: 1.65; }
.override-detail-row dt { color: var(--muted); font-size: var(--fs-xs); padding-top: 1px; }
.override-detail-row dd { margin: 0; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.override-detail-row dd .muted { color: var(--muted); }
.override-detail__annotations { display: grid; gap: 2px; }
.override-detail__annotations .override-detail-row { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 2px 0; border: 0; font-size: var(--fs-xs); line-height: 1.6; }
.override-detail__annotations .override-detail-row dt { font-size: var(--fs-xs); }
.override-detail__value { display: block; }
.override-detail__actions { display: flex; gap: 16px; padding-top: 2px; }
@media (max-width: 720px) { .override-detail-row { grid-template-columns: 1fr; gap: 2px; } .override-detail__annotations .override-detail-row { grid-template-columns: 1fr; } }

/* 岗位列表：列宽、行高、时间不换行、hover 轻量 */
.table--jobs td { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }
.table--jobs tbody tr.job-row:hover > td { background: #fbfcfd; }
.table--jobs td .mono.nowrap { font-size: 11px; color: var(--muted); }
.table--jobs td .cell-clamp { font-size: 11.5px; line-height: 1.6; }
.table--jobs td .candidate { line-height: 1.4; }
/* 岗位表：加号始终占位；有覆盖实心，无覆盖虚化；点开原地展开摘要 */
.job-name-cell { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.job-plus { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dfe4eb; border-radius: 5px; background: #fff; color: #5d6676; font: inherit; font-size: 16px; font-weight: 400; line-height: 1; cursor: pointer; }
.job-plus.is-solid:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.job-plus.is-ghost { border-color: #eef1f4; color: #c5ccd6; background: #fff; cursor: default; }
.job-name-main { min-width: 0; }
.job-overrides-row td { padding: 0 14px 10px 34px !important; background: #fff; border-bottom: 1px solid var(--line-2); }
.job-overrides-panel { margin: 0; padding: 6px 0 2px; border: 0; border-top: 1px solid #eef1f4; background: #fff; }
.job-overrides-head { display: flex; align-items: baseline; gap: 8px; padding: 0 0 6px; color: var(--muted); font-size: var(--fs-xs); }
.job-overrides-head b { color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600; }
.job-overrides-table-wrap { max-height: 280px; overflow: auto; overscroll-behavior: contain; }
.job-overrides-table thead th { position: sticky; top: 0; z-index: 1; }
.job-overrides-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.job-overrides-table th { padding: 5px 8px; background: #fafbfc; border-bottom: 1px solid #eef1f4; color: var(--muted); font-size: 10px; font-weight: 500; text-align: left; }
.job-overrides-table td { padding: 7px 8px; border-bottom: 1px solid #f2f4f7; vertical-align: middle; color: var(--ink-2); font-size: var(--fs-xs); }
.job-overrides-table tr:last-child td { border-bottom: 0; }
.job-overrides-table td:nth-child(1) { width: 25%; }
.job-overrides-table td:nth-child(2) { width: 10%; }
.job-overrides-table td:nth-child(3), .job-overrides-table td:nth-child(4) { width: 22%; }
.job-overrides-table td:nth-child(5) { width: 15%; }
.job-overrides-table td:last-child { width: 48px; text-align: right; }
.job-overrides-table b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .job-overrides-row td { padding-left: 14px !important; } .job-overrides-table { min-width: 580px; } }

/* 个人设置详情：窄抽屉 + 只显示有内容的标注，避免大片空白 */
.drawer.drawer--narrow { width: min(560px, 100vw); }
.override-detail__empty { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; }
.override-detail__annotations .override-detail-row:first-child { padding-top: 0; }
.override-detail__annotations .override-detail-row:last-child { padding-bottom: 0; }

.modal.modal--override { width: min(560px, calc(100vw - 32px)); }

/* ── 岗位管理：按公司分组的轻量列表 ─────────────────────────── */
.job-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 0 12px; }
.job-search { position: relative; flex: 1 1 auto; max-width: 440px; }
.job-search svg { position: absolute; left: 10px; top: 10px; width: 13px; height: 13px; color: var(--muted); pointer-events: none; }
.job-search input { width: 100%; height: 34px; padding: 0 11px 0 31px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: var(--fs-sm); color: var(--ink-2); }
.job-search input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.job-filter-wrap { position: relative; }
.job-filter-btn { height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.job-filter-btn:hover, .job-filter-btn.is-open { border-color: #cbd6e2; background: #fafbfd; }
.job-filter-btn svg { width: 13px; height: 13px; color: var(--muted); }
.job-filter-count { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.job-sort { flex: 0 0 136px; width: 136px; height: 34px; padding: 0 27px 0 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: var(--fs-sm); color: var(--ink-2); }
.job-shown { margin-left: auto; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.job-active-filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 10px; }
.job-active-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 5px 0 8px; border-radius: 5px; background: #f4f7f9; color: var(--ink-2); font-size: 11px; }
.job-active-chip button { border: 0; background: none; padding: 0 4px; color: var(--muted); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.job-active-chip button:hover { color: var(--ink); }
.job-filter-popover { position: absolute; top: 40px; left: 0; z-index: 8; width: 330px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 28px #1820331c; }
.job-filter-popover[hidden] { display: none; }
.job-filter-title { margin: 0 0 10px !important; font-size: var(--fs-sm); font-weight: 600; }
.job-filter-row { display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 8px; margin: 8px 0; }
.job-filter-row > span { color: var(--muted); font-size: var(--fs-xs); }
.job-filter-row select { width: 100%; height: 30px; padding: 0 22px 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font: inherit; font-size: var(--fs-sm); color: var(--ink-2); }
.job-filter-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.job-groups { padding: 10px 17px 17px; background: #f7f9fb; border-top: 1px solid var(--line-2); }
.jg-company { margin-top: 10px; border: 1px solid #e1e7ee; border-radius: 9px; background: var(--surface); overflow: hidden; }
.jg-company-head { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 13px; background: #fbfcfd; border-bottom: 1px solid var(--line-2); cursor: pointer; outline: none; }
.jg-company-head:hover { background: #f8fafb; }
.jg-company-head:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-soft); }
.jg-chevron { flex: 0 0 16px; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.jg-chevron svg { width: 13px; height: 13px; transition: transform .12s ease; }
.jg-chevron.is-closed svg { transform: rotate(-90deg); }
.jg-company-name { color: var(--ink); font-size: 15px; font-weight: 750; letter-spacing: -.1px; white-space: nowrap; }
.jg-company-count { height: 18px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 4px; background: #eef1f5; color: var(--muted); font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.jg-company-intro { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; line-height: 1.45; }
.jg-company-intro.is-empty { color: #9aa4b2; }
.jg-company-miss { flex: none; height: 17px; padding: 0 5px; display: inline-flex; align-items: center; border-radius: 4px; background: #fff6e8; color: #8a5a00; font-size: 9.5px; font-weight: 600; }
.jg-jobs[hidden] { display: none; }
.jg-job { display: flex; align-items: center; gap: 8px; min-height: 43px; padding: 7px 14px 7px 34px; border-bottom: 1px solid var(--line-2); }
.jg-job:last-child { border-bottom: 0; }
.jg-job.is-disabled { opacity: .62; }
.jg-job.is-disabled .jg-job-title { color: var(--muted); }
.jg-job-status { margin-left: 2px; flex: 0 0 auto; }
.general-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 4px 16px 18px; }
.general-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2, #374151); cursor: pointer; }
.general-check input { width: 15px; height: 15px; }
.jg-job:hover { background: #fbfcfd; }
.jg-job-main { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.jg-job-plus { flex: 0 0 18px; display: inline-flex; align-items: center; }
.jg-job-plus .job-plus { margin-top: 0; }
.jg-job-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3f4653; font-size: 12.5px; font-weight: 400; }
.jg-job-time { flex: 0 0 126px; color: var(--muted); font-size: 10.5px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jg-job-actions { flex: 0 0 38px; text-align: right; }
.jg-overrides { padding: 0 14px 10px 34px; border-bottom: 1px solid var(--line-2); }
.jg-overrides[hidden] { display: none; }
.jg-empty { padding: 38px 14px; text-align: center; color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 760px) {
  .job-toolbar { gap: 6px; }
  .job-search { flex-basis: 100%; max-width: none; }
  .job-shown { margin-left: 0; }
  .jg-company-intro { display: none; }
  .job-groups { padding-left: 10px; padding-right: 10px; }
  .jg-job { padding-left: 14px; }
  .jg-job-time { flex-basis: 98px; }
  .jg-overrides { padding-left: 14px; }
  .job-filter-popover { width: min(330px, calc(100vw - 32px)); }
}

/* ── 账号管理：待审批临时额度卡片 ─────────────────────────────────────
   只在有 pending 申请时出现；沿用 warm 提示色，与现有卡片同一套圆角/边框。 */
.credit-queue { margin-bottom: 14px; padding: 18px 20px; border: 1px solid var(--warn-line); border-radius: var(--radius); background: var(--warn-soft); }
.credit-queue__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.credit-queue__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-md); font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.credit-queue__head p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; }
.credit-queue__list { display: grid; gap: 8px; margin-top: 14px; }
.credit-queue__row { display: grid; grid-template-columns: minmax(120px, .9fr) 84px minmax(0, 2.2fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.credit-queue__who { display: grid; gap: 2px; min-width: 0; }
.credit-queue__who b { font-size: var(--fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit-queue__amount { color: var(--warn); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.credit-queue__amount small { margin-left: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
.credit-queue__reason { min-width: 0; margin: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit-queue__row .row-actions { justify-content: flex-end; }
@media (max-width: 760px) {
  .credit-queue { padding: 14px; }
  .credit-queue__row { grid-template-columns: 1fr auto; gap: 10px; }
  .credit-queue__reason { grid-column: 1 / -1; white-space: normal; }
  .credit-queue__row .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* 插件发布页：单正式版卡片收缩，下载按钮不再通栏 */
.release-options { max-width: 920px; }
.release .sec__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 28px;
}
.release .release__title,
.release .release__desc,
.release .small-note { grid-column: 1; }
.release .download {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: end;
  width: auto;
  min-width: 228px;
  margin-top: 0;
  gap: 12px;
  justify-content: center;
}
.release-banner { max-width: 920px; }
@media (max-width: 720px) {
  .release .sec__body { grid-template-columns: minmax(0, 1fr); }
  .release .download { grid-column: 1; grid-row: auto; width: 100%; min-width: 0; justify-content: space-between; }
}

/* 发布页内容统一对齐到 920px，避免卡片窄、说明和日志满宽 */
.release-banner,
.release-options,
.install-guide,
.changelog { max-width: 920px; }

/* 候选人档案：正确 / 错误请求分组 */
.list-head--type { margin-top: -6px; margin-bottom: 14px; }
#directoryStatus .chip b { margin-left: 3px; font-weight: 600; opacity: .72; }
#directoryStatus .chip.is-active b { opacity: 1; }

/* 排行榜触达：主数字与记录/重复说明保持同一列、同一对齐线 */
.ov-rank-table .rank-touch { line-height: 1.25; }
.ov-rank-table .rank-touch__actual { color: var(--ink-2); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rank-split { display: block; margin-top: 2px; color: var(--muted-2); font-size: 10px; font-weight: 400; line-height: 1.4; white-space: nowrap; }

/* 排行榜行：窄屏把指标放到第二行，避免挤压或横向滚动 */
@media (max-width: 1180px) {
  .rank-stats__grid { grid-template-columns: minmax(46px, .6fr) minmax(140px, 1.3fr) minmax(76px, .9fr) minmax(62px, .7fr); gap: 12px; }
}
@media (max-width: 900px) {
  .ov-rank-table tr.rank-item { grid-template-columns: 36px minmax(0, 1fr) 88px; row-gap: 8px; }
  .ov-rank-table .c-no { grid-row: 1; }
  .ov-rank-table .c-who { grid-row: 1; }
  .ov-rank-table .ov-share { grid-row: 1; }
  .ov-rank-table .rank-stats { grid-column: 1 / -1; grid-row: 2; }
  .rank-stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 520px) {
  .ov-rank-table tr.rank-item { grid-template-columns: 30px minmax(0, 1fr); gap: 8px 10px; padding: 10px 8px; }
  .ov-rank-table .ov-share { grid-column: 2; grid-row: 2; }
  .ov-rank-table .rank-stats { grid-column: 1 / -1; grid-row: 3; }
  .rank-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-rank-table th:nth-child(4), .ov-rank-table td:nth-child(4) { display: block !important; }
}

/* 发布页：正式版在上，演示版用强调色描边和浅底突出（0.7.6 演示版） */
.release--demo {
  border-color: var(--accent-line);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 58%);
  box-shadow: 0 16px 34px -28px var(--accent-strong);
}
.release--demo > h3 { box-shadow: inset 3px 0 0 var(--accent-strong); }
.release--demo .release__version { color: var(--accent-strong); }
.release--demo .release__tag {
  align-self: center;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--accent-strong);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.badge--demo { background: var(--accent-strong); color: #fff; }

/* 候选人档案分页：服务端分页后只渲染当前页，底部显示范围/页码/每页条数 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 10px 2px 2px; color: var(--muted); font-size: var(--fs-sm); }
.pager__info { font-variant-numeric: tabular-nums; }
.pager__controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager__page { min-width: 92px; text-align: center; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.pager__size { min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); }
.pager .btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) {
  .pager { flex-direction: column; align-items: stretch; gap: 8px; }
  .pager__controls { justify-content: space-between; }
}

/* 旧版界面保持一致：隐藏 Headseek 专属入口/列/配置，只保留原页面 */
#headseekMapBtn, #headseekMapDialog, .headseek-col, .hs-link-cell, [data-set-tab="integration"], #settingsPanelIntegration { display: none !important; }

/* 数据以接口同步为准：后台不再提供新增/编辑/停用等写入口，仅保留密码相关操作 */
#addJob, #addCompany, #addUser { display: none !important; }

/* 账号积分合并列：总 / 已用 / 剩余 = 黑 / 红 / 绿 */
.credit-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.credit-total { color: #111827; font-weight: 600; }
.credit-used { color: #c0392b; font-weight: 600; }
.credit-left { color: #1e7a46; font-weight: 600; }
.credit-sep { color: var(--muted-2); margin: 0 5px; font-weight: 400; }

/* 账号「岗位与设置」：梯队岗位展示 */
.tier-summary { display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tier-groups { display: grid; gap: 10px; }
.tier-group { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--canvas); }
.tier-group > b { display: block; margin-bottom: 6px; color: var(--muted); font-size: var(--fs-xs); }
.tier-group .related-list { margin: 0; }
.tier-group .related-list li { display: flex; justify-content: space-between; gap: 12px; }

/* 推送记录：尝试历史 */
.push-attempts { margin-top: 4px; font-size: 11px; color: var(--muted); }
.push-attempts summary { cursor: pointer; color: var(--muted-2); }
.push-attempts div { padding: 2px 0 0 10px; white-space: normal; line-height: 1.5; }

/* 数据推送详情 */
.push-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; padding: 4px 16px 14px; }
.push-meta-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.push-meta-item span { font-size: 11px; color: var(--muted); }
.push-meta-item b { font-size: 12.5px; font-weight: 500; color: var(--ink-2); overflow-wrap: anywhere; }
.json-pre { margin: 0; padding: 10px 12px; background: var(--surface-2, #f7f8fa); border: 1px solid var(--line-2, #eef0f3); border-radius: 8px; font-size: 11.5px; line-height: 1.6; max-height: 420px; overflow: auto; white-space: pre; }

/* AI 供应商表格 */
#aiProvidersBody td { padding-top: 10px; padding-bottom: 10px; vertical-align: middle; }
#aiProvidersBody tr.is-current { background: color-mix(in srgb, var(--accent, #6366f1) 5%, transparent); }
.ai-provider-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.ai-provider-models { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ink-2); }
.ai-provider-models span:last-child { color: var(--muted); font-size: 11px; }
.ai-provider-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--muted); }

/* AI 配置链 */
.ai-chain-error { max-width: 260px; font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.ai-events { margin: 0 16px 16px; font-size: 12px; }
.ai-events > summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.ai-event { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 5px 0; border-top: 1px dashed var(--line); color: var(--muted); }
.ai-event span:last-child { overflow-wrap: anywhere; }
.ai-provider-manage > summary { display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 14px 16px; font-weight: 600; }
.ai-provider-manage[open] > summary { border-bottom: 1px solid var(--line); }

/* ---------- MAX 能力（候选人档案新增列 + 数据总览指标） ----------
   沿用控制台主题：近白卡片 + 薄荷绿数据强调；不引入新的高饱和色。
   档案表新增「岗位数 / 打招呼 / 接口」三列后，收紧横向内边距并放开固定最小宽度，
   让 1280 宽度下恰好不出现横向滚动。 */
.dir-card .rec-list td,
.dir-card .rec-list tbody th { padding-left: 10px; padding-right: 10px; }
.dir-card .rec-list td:first-child,
.dir-card .rec-list tbody th:first-child { padding-left: 14px; }
.dir-card .rec-list td:last-child { padding-right: 14px; }
.rec__none { color: var(--muted-2); }
.rec__jobs, .rec__greet, .rec__api { white-space: nowrap; }
.rec-badge { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: #3f7a44; font-size: 10.5px; font-weight: 600; line-height: 1.6; font-variant-numeric: tabular-nums; }
.rec-pill { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--radius-pill, 999px); font-size: 10.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.rec-pill--greet { background: #e9f6e6; color: #3f7a44; }
.api-pill { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; background: #f1f1ee; color: #666a65; font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 10px; font-weight: 600; line-height: 1.6; letter-spacing: .01em; white-space: nowrap; }
.api-pill--max { background: #e3f3f0; color: #2b6f68; }

@media (min-width: 761px) {
  .dir-card .rec-list table { min-width: 948px; }
}

/* 总览：MAX 指标组（与现有 KPI 卡同一套样式，仅加一条薄荷绿分隔标题） */
.kpi-card--max { border-color: var(--accent-line); }
.kpi-card--max .subhead { color: #3f7a44; }
.kpi-card--max .subhead .mini { color: var(--muted-2); }

/* 详情抽屉：MAX 运行信息（只读） */
.rv-max { display: grid; gap: 8px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--accent-line); border-radius: var(--radius-sm); background: var(--accent-soft); }
.rv-max__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--ink-2); font-size: var(--fs-sm); }
.rv-max__head b { font-weight: 650; }
.rv-max__value { color: var(--muted); font-size: var(--fs-xs); }
.rv-max__value b { color: var(--ink-2); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.rv-max__jobs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rv-max__jobs li { padding: 2px 9px; border-radius: var(--radius-pill, 999px); background: var(--surface); color: var(--ink-2); font-size: 11.5px; line-height: 1.6; }
.rv-max__note { margin: 0; color: #3f7a44; font-size: 11.5px; line-height: 1.65; white-space: normal; }

/* 三个窄列只放胶囊，左右内边距收紧到 6px，把宽度让给「岗位 / 公司」 */
.dir-card .rec-list .rec__jobs,
.dir-card .rec-list .rec__greet,
.dir-card .rec-list .rec__api { padding-left: 6px; padding-right: 6px; }
