:root {
  /* ---- 企业品牌色（《品牌视觉规范 V2.0》） ---- */
  --brand: #0B4B42;          /* 钢岩绿 · Pantone 3435C */
  --brand-deep: #083832;     /* 钢岩绿暗部 */
  --brand-night: #062A26;    /* 深绿底（侧栏/登录） */
  --brand-soft: #E9F0ED;     /* 钢岩绿浅底 */
  --gold: #D4AF37;           /* 暖金 */
  --gold-bright: #E8B84B;    /* 亮金 · 仅远距/强调 */
  --gold-soft: #FBF4DC;

  --bg: #F7F9FA;
  --panel: #ffffff;
  --surface: #ffffff;
  --line: #E5E9EC;
  --line-strong: #D3DAD8;
  --text: #1A1A1A;
  --muted: #5A6570;

  --primary: #0B4B42;
  --primary-dark: #083832;
  --primary-soft: #E9F0ED;

  --green: #15945B;
  --green-soft: #E8F7EF;
  --red: #D4443A;
  --red-soft: #FDECEA;
  --amber: #B47100;
  --amber-soft: #FDF3E0;
  --gray-soft: #F2F4F5;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26, 26, 26, .05), 0 8px 24px rgba(11, 75, 66, .07);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
.hidden { display: none !important; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- 登录 · 企业封面 ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--panel);
}
.auth-brand {
  padding: 44px 56px 38px;
  background:
    radial-gradient(105% 70% at 50% 16%, rgba(232, 184, 75, .10), transparent 62%),
    radial-gradient(140% 120% at 50% 50%, #0C4F45 0%, #0B4B42 46%, #083C35 100%);
  color: #F2F5F5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
/* 顶部系统名称 */
.auth-brand .cover-system {
  margin: 0;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(14.5px, 1.3vw, 17px);
  font-weight: 500;
  letter-spacing: .26em;
  text-indent: .26em;
  color: rgba(242, 245, 245, .76);
  white-space: nowrap;
}
.auth-brand .cover-system::before,
.auth-brand .cover-system::after {
  content: ""; display: block; width: clamp(14px, 1.6vw, 26px); height: 1px;
  background: rgba(232, 184, 75, .7);
}
/* 中间主体：海报版式（上小字 → 巨型主标 → 副句） */
.auth-brand .cover {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0 0;
}
.auth-brand .cover-kicker {
  margin: 0 0 clamp(10px, 1.5vw, 20px);
  font-size: clamp(15px, 1.5vw, 23px);
  font-weight: 500;
  letter-spacing: .16em;
  text-indent: .16em;
  color: #F2F5F5;
}
.auth-brand .cover-title {
  margin: 0;
  color: var(--gold-bright);
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  font-weight: 900;
  /* 5 个字必须单行：字号跟着面板宽度走，最小 52px、最大 130px
     左栏宽 52.5vw、左右各留 56px，故可用宽度 = 52.5vw - 112px；
     取 9.7vw-20px 约为可用宽度的 93%，留足字距与描边余量 */
  font-size: clamp(52px, calc(9.7vw - 20px), 130px);
  line-height: 1;
  letter-spacing: .005em;
  white-space: nowrap;
  -webkit-text-stroke: .014em currentColor;
  paint-order: stroke fill;
}
.auth-brand .cover-after {
  margin: clamp(10px, 1.5vw, 20px) 0 0;
  font-size: clamp(18px, 2.05vw, 30px);
  font-weight: 500;
  letter-spacing: .2em;
  text-indent: .2em;
  color: #F2F5F5;
}
/* 页脚：横版标识 + 品牌口号 */
.auth-brand .cover-foot {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  padding-top: 8px;
}
.auth-brand .cover-logo { height: clamp(52px, 4.6vw, 78px); width: auto; display: block; }
.auth-brand .cover-slogan {
  margin: 0;
  color: var(--gold-bright);
  font-size: clamp(15.5px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: .42em;
  text-indent: .42em;
}
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .auth-mini { display: none; }
.auth-card h2 { margin: 0 0 6px; font-size: 22px; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; font-size: 13px; }
.tabs { display: flex; gap: 6px; background: var(--gray-soft); padding: 4px; border-radius: 9px; margin-bottom: 22px; }
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 8px 0; border-radius: 7px;
  font-size: 13px; color: var(--muted); cursor: pointer; font-family: inherit;
}
.tabs button.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px;
  font: inherit; color: var(--text); background: #fff; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 75, 66, .12);
}
.field textarea { min-height: 78px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.inline-code { display: flex; gap: 8px; }
.inline-code input { flex: 1; }
.btn {
  border: 1px solid transparent; border-radius: 8px; padding: 9px 16px; font: inherit;
  cursor: pointer; background: var(--gray-soft); color: var(--text); white-space: nowrap;
}
.btn:hover { filter: brightness(.97); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost { background: #fff; border-color: var(--line-strong); }
.btn.danger { background: var(--red); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.block { width: 100%; padding: 11px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-msg { font-size: 12.5px; margin-top: 12px; min-height: 18px; }
.auth-msg.err { color: var(--red); }
.auth-msg.ok { color: var(--green); }

/* ---------- 布局 ---------- */
.layout { display: grid; grid-template-columns: 214px 1fr; min-height: 100vh; }
.sidebar {
  background:
    radial-gradient(110% 60% at 50% 0%, rgba(212, 175, 55, .10), transparent 60%),
    linear-gradient(180deg, #0B4B42 0%, #083832 62%, #062A26 100%);
  border-right: 1px solid #062A26; padding: 18px 12px;
  display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh;
  color: #DCE6E3;
}
.sidebar .brand {
  padding: 2px 8px 16px; margin-bottom: 6px;
  border-bottom: 1px solid rgba(212, 175, 55, .22);
  display: flex; align-items: center; gap: 10px;
}
.sidebar .brand img { height: 40px; width: auto; display: block; flex: none; }
.sidebar .brand .txt { min-width: 0; }
.sidebar .brand b { display: block; font-size: 15px; letter-spacing: 1.5px; color: #fff; line-height: 1.25; }
.sidebar .brand span { font-size: 10.5px; color: var(--gold); letter-spacing: 1.2px; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 8px;
  color: rgba(255, 255, 255, .80); font-size: 13.5px; cursor: pointer; user-select: none;
}
.nav-item:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-item.on {
  background: rgba(212, 175, 55, .16); color: #F3D98A; font-weight: 600;
  box-shadow: inset 3px 0 0 var(--gold);
}
.nav-item i { font-style: normal; width: 18px; text-align: center; opacity: .9; }
.nav-sep { height: 1px; background: rgba(255, 255, 255, .14); margin: 10px 6px; }
.sidebar .spacer { flex: 1; }
.who { padding: 10px 11px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; color: rgba(255, 255, 255, .62); }

/* 侧栏最底部：品牌落款 */
.sidebar::after {
  content: "CRNN · 非标钣金定制";
  display: block; text-align: center; font-size: 9.5px; letter-spacing: 1.6px;
  color: rgba(212, 175, 55, .55); padding: 8px 0 2px;
}
.who b { display: block; color: #fff; font-size: 13.5px; }
.who .role { font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.who a { color: #F3D98A; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 22px; position: sticky; top: 0; z-index: 20;
  box-shadow: inset 0 -2px 0 rgba(212, 175, 55, .22);
}
.topbar h2 { font-size: 16px; margin: 0; font-weight: 600; position: relative; padding-left: 12px; }
.topbar h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}
.topbar .crumb { color: var(--muted); font-size: 12.5px; }
.topbar .grow { flex: 1; }
.view { padding: 20px 22px 40px; }

/* ---------- 通用组件 ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 16px 18px; }
.card-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 14px; margin: 0; font-weight: 600; }
.card-head .grow { flex: 1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; cursor: pointer;
}
.stat:hover { border-color: var(--line-strong); }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font-size: 25px; font-weight: 650; margin-top: 4px; letter-spacing: -.4px; }
.stat .v small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.stat.warn .v { color: var(--red); }
.stat.good .v { color: var(--green); }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .grow { flex: 1; }
.toolbar input, .toolbar select {
  padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px;
  font: inherit; background: #fff; color: var(--text); outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--primary); }
.toolbar input[type="search"] { min-width: 210px; }

table.grid { width: 100%; border-collapse: collapse; background: var(--panel); }
table.grid th, table.grid td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
table.grid th { background: #F7F9FA; color: var(--muted); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
table.grid tbody tr:hover { background: #F6FAF8; }
table.grid td.num, table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid .acts { display: flex; gap: 6px; justify-content: flex-end; }
.link { color: var(--primary); cursor: pointer; }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }

.tag {
  display: inline-block; padding: 1px 7px; border-radius: 20px; font-size: 11.5px;
  background: var(--gray-soft); color: #5b6678; white-space: nowrap;
}
.tag.blue { background: var(--brand-soft); color: var(--brand); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.cyan { background: #e6f6f8; color: #0c7b8a; }
.tag.gray { background: var(--gray-soft); color: #5b6678; }

.empty { text-align: center; color: var(--muted); padding: 44px 10px; }
.empty .empty-ico {
  display: block; height: 46px; width: auto; margin: 0 auto 12px;
  opacity: .18;
}
.empty p { margin: 0; }

.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 12px 4px; font-size: 12.5px; color: var(--muted); }
.pager .grow { flex: 1 1 auto; }
.pager-total { color: var(--muted); font-size: 12.5px; }
.pager-total b { color: var(--text); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pager select.pg-size {
  height: 28px; padding: 0 6px; border-radius: 7px; font-size: 12.5px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}

/* 列表工具栏上的总数标记：让「一共多少条」一眼可见 */
.count-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 11px;
  border-radius: 999px; font-size: 12.5px; white-space: nowrap;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid #D2E0DB;
}
.count-chip b { font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- 详情 ---------- */
.detail-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.detail-head h1 { font-size: 20px; margin: 0 0 4px; }
.detail-head .meta { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 10px; }
.detail-head .grow { flex: 1; }
.detail-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 16px 4px; }
.tl-item::before {
  content: ""; position: absolute; left: -17px; top: 6px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px #fff;
}
.tl-item .t { font-size: 12px; color: var(--muted); }
.tl-item .c { font-size: 13px; margin-top: 2px; }
.tl-item .n { font-size: 12.5px; color: var(--amber); margin-top: 3px; }

/* ---------- 看板 ---------- */
.board { display: grid; grid-template-columns: repeat(6, minmax(180px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.board-col { background: #eff2f7; border-radius: 10px; padding: 8px; min-height: 260px; }
.board-col.over { background: #e2e9fb; outline: 1.5px dashed var(--primary); }
.board-col h4 { font-size: 12.5px; margin: 2px 4px 8px; color: #4c5769; display: flex; justify-content: space-between; }
.board-col h4 span { color: var(--muted); font-weight: 400; }
.board-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px;
  margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.board-card:active { cursor: grabbing; }
.board-card .t { font-size: 12.8px; font-weight: 600; margin-bottom: 3px; }
.board-card .c { font-size: 12px; color: var(--muted); }
.board-card .a { font-size: 12.5px; color: var(--primary); margin-top: 5px; font-variant-numeric: tabular-nums; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(19, 26, 38, .38); display: flex;
  align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 100; overflow: auto;
}
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 520px; box-shadow: 0 24px 60px rgba(0, 0, 0, .2); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 15px; flex: 1; }
.icon-btn { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 15px; padding: 4px 6px; border-radius: 6px; }
.icon-btn:hover { background: var(--gray-soft); }
.modal-body { padding: 18px; max-height: 64vh; overflow: auto; }
.modal-body .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.confirm-text { margin: 0; color: #3a4658; }

.toast {
  position: fixed; left: 50%; top: 22px; transform: translateX(-50%);
  background: #083832; color: #fff; padding: 9px 18px; border-radius: 20px; font-size: 13px;
  z-index: 300; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.toast.err { background: var(--red); }

/* ---------- 导入 ---------- */
.steps { display: flex; gap: 8px; margin-bottom: 16px; }
.step { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.step.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.map-row { display: grid; grid-template-columns: 1fr 24px 1fr 130px; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; }
.map-row select { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 7px; font: inherit; }
.preview { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.preview table { font-size: 12.5px; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.result-grid .stat { cursor: default; }

.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
.matrix th { background: #F7F9FA; color: var(--muted); font-weight: 500; }
.matrix td.y { color: var(--green); }
.matrix td.n { color: var(--red); }

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  /* 小屏保留封面：压缩成上半屏的品牌区，表单在下 */
  .auth-brand {
    min-height: 44vh; height: auto;
    padding: 26px 22px 22px;
    border-radius: 0 0 22px 22px;
  }
  .auth-brand .cover { padding: 4px 0 10px; }
  .auth-brand .cover-system { font-size: 14px; letter-spacing: .2em; text-indent: .2em; gap: 8px; }
  .auth-brand .cover-title { font-size: clamp(36px, 16.5vw, 72px); }
  .auth-brand .cover-kicker { font-size: 14px; letter-spacing: .1em; text-indent: .1em; }
  .auth-brand .cover-after { font-size: 17px; letter-spacing: .14em; text-indent: .14em; }
  .auth-brand .cover-logo { height: 46px; }
  .auth-brand .cover-slogan { font-size: 14px; letter-spacing: .3em; text-indent: .3em; }
  .auth-panel { padding: 26px 22px 40px; }
  .auth-card h2 { font-size: 20px; }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .sidebar .brand, .sidebar .spacer, .sidebar .who { display: none; }
  .sidebar::after { display: none; }
}

/* ============ 工作台 v2：角色化看板 ============ */
/* 序号列：所有列表通用，弱化处理，便于数行数又不抢视觉 */
table.grid th.seq, table.grid td.seq {
  width: 48px; text-align: right; color: var(--muted);
  font-variant-numeric: tabular-nums; font-size: 12px; padding-right: 10px;
}

/* 角色头：说明"这个页面给谁看、先看什么" */
.dash-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.dash-head h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
.dash-head .role-chip {
  font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); border: 1px solid #D2E0DB;
}
.dash-head .role-chip.sales { background: #eaf7f0; color: #14794a; border-color: #cfeadd; }
.dash-head .hint { font-size: 12.5px; color: var(--muted); }

/* KPI 行支持 4 或 6 格 */
.stats.cols-6 { grid-template-columns: repeat(6, 1fr); }
.stats.cols-5 { grid-template-columns: repeat(5, 1fr); }
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1320px) {
  .stats.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .stats.cols-5 { grid-template-columns: repeat(3, 1fr); }
}

/* 漏斗：用纯 CSS 条形，不引图表库 */
.funnel { padding: 4px 0 2px; }
.funnel-row { display: grid; grid-template-columns: 88px 1fr 92px; gap: 10px; align-items: center; margin-bottom: 9px; }
.funnel-row .name { font-size: 12.5px; color: var(--ink-2, #55617a); white-space: nowrap; }
.funnel-row .bar-wrap { background: #f1f4f9; border-radius: 6px; height: 22px; position: relative; overflow: hidden; }
.funnel-row .bar {
  height: 100%; border-radius: 6px; background: linear-gradient(90deg, #1E7A6B, #0B4B42);
  min-width: 2px; transition: width .3s ease;
}
.funnel-row .bar.win { background: linear-gradient(90deg, var(--gold-bright), var(--gold)); }
.funnel-row .bar.lose { background: #d6dbe6; }
.funnel-row .val { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.funnel-row .val b { color: var(--ink, #1c2434); font-weight: 600; }
.funnel-foot {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted);
}
.funnel-foot b { color: var(--ink, #1c2434); }

/* 团队榜：名次用圆形徽标 */
.rank-table td.rank-no { width: 34px; }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; border-radius: 50%;
  font-size: 11.5px; font-weight: 600;
  background: #eef1f7; color: #6b7793;
}
.rank-badge.top1 { background: var(--gold-soft); color: #8A6D16; box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .5); }
.rank-badge.top2 { background: #eef1f6; color: #5f6b83; }
.rank-badge.top3 { background: #fbeee4; color: #a4652f; }

/* 逾期/预警条 */
.alert-strip {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px; margin-bottom: 12px;
  background: #fdf3f2; border: 1px solid #f6d9d6; color: #a03a32; font-size: 12.5px;
}
.alert-strip .grow { flex: 1; }
.alert-strip.ok { background: #f1f9f4; border-color: #d4ecdd; color: #14794a; }

/* 看板内小表格（待办、榜单）行高收紧 */
.card table.grid.compact th, .card table.grid.compact td { padding: 8px 10px; }
.card table.grid.compact td { font-size: 12.5px; }

/* 通知铃铛与面板 */
.bell-dot {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: #d4443a; color: #fff; font-size: 11px; line-height: 18px;
  border-radius: 9px; text-align: center; font-weight: 500;
}
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  width: 340px; max-height: 420px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(6, 42, 38, .14);
  display: flex; flex-direction: column;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.notif-body { overflow-y: auto; max-height: 360px; }
.notif-item { padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif-item:hover { background: var(--brand-soft); }
.notif-item.unread { background: #FBF4DC; }
.notif-item .t { font-size: 13px; font-weight: 500; }
.notif-item .b { font-size: 12px; color: var(--muted); margin: 3px 0; line-height: 1.6; }
.notif-item .m { font-size: 11px; color: var(--muted); }
.notif-empty { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* 批量选择操作条 */
.bulk-bar {
  position: sticky; bottom: 14px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 10px 16px;
  background: var(--brand-night); color: #fff;
  border-radius: 10px; box-shadow: 0 6px 22px rgba(6, 42, 38, .28);
}
.bulk-bar span { font-size: 13px; }
.bulk-bar b { color: var(--gold-bright); font-size: 15px; }
