/* ============================================================
   晖云CRM 设计系统 v0.2
   主色 墨蓝(靛) var(--c-primary) · 点缀 曙金 var(--c-accent) · 墨蓝侧栏
   文字/边框中性色统一蓝灰系；主色在白底对比度 ≥ 4.5:1
   ============================================================ */
:root {
  --c-primary: #3D53D8;
  --c-primary-h: #2F44C2;
  --c-primary-a: #26379E;
  --c-primary-soft: #E8EBFA;
  --c-primary-softer: #F2F4FC;
  --c-primary-bd: rgba(61, 83, 216, .4);
  --c-accent: #E9A73E;
  --c-accent-h: #D08E24;
  --c-accent-soft: #FCF1DC;
  --c-accent-bd: rgba(233, 167, 62, .42);
  --c-gold: #E9A73E;
  --c-gold-h: #D08E24;
  --c-gold-soft: #FCF1DC;
  --c-sidebar: #1B2238;
  --c-sidebar-deep: #12172A;
  --c-side-text: #99A3C6;
  --c-side-text-h: #DDE2F4;
  --c-logo-a: #3D53D8;
  --c-logo-b: #26379E;
  --c-logo-border: rgba(233, 167, 62, .55);
  --c-side-on-bg: rgba(233, 167, 62, .16);
  --c-side-bar-glow: rgba(233, 167, 62, .75);
  --c-ring: rgba(61, 83, 216, .13);
  --c-ring-strong: rgba(61, 83, 216, .24);
  --c-stat-wash: rgba(61, 83, 216, .05);
  --c-bg: #F3F4F7;
  --c-card: #FFFFFF;
  --c-line: #E5E7EE;
  --c-line-2: #EEF0F5;
  --c-text: #20242E;
  --c-text-2: #5A6172;
  --c-text-3: #98A0B0;
  --c-info: #3B82C4;
  --c-info-soft: #E8F1F9;
  --c-ok: #2E9E63;
  --c-ok-soft: #E6F4EC;
  --c-danger: #D64545;
  --c-danger-h: #C03A3A;
  --c-danger-soft: #FBEAEA;
  --c-warn: #D98A2B;
  --c-warn-soft: var(--c-accent-soft);
  --sh-sm: 0 1px 2px rgba(24, 28, 50, .06);
  --sh-md: 0 4px 14px rgba(24, 28, 50, .10);
  --sh-lg: 0 12px 34px rgba(24, 28, 50, .16);
  --r-lg: 12px;
  --r-md: 9px;
  --r-sm: 6px;
  --side-w: 228px;
  --side-w-min: 60px;
  --top-h: 58px;
  --tr: .16s cubic-bezier(.4, 0, .2, 1);
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-primary); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--c-primary-h); }
::selection { background: var(--c-ring-strong); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #C5CAD6; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #A9B1C3; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.text-ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.w-60 { width: 60px; } .w-70 { width: 70px; } .w-80 { width: 80px; } .w-90 { width: 90px; } .w-100 { width: 100px; }
.w-110 { width: 110px; } .w-120 { width: 120px; } .w-130 { width: 130px; } .w-140 { width: 140px; } .w-160 { width: 160px; }
.w-170 { width: 170px; } .w-240 { width: 240px; }

/* ================= 布局 ================= */
.layout { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; padding: 22px 26px 40px; max-width: 1480px; width: 100%; margin: 0 auto; }

/* ================= 侧边栏 ================= */
.sidebar {
  width: var(--side-w); flex: none;
  background: linear-gradient(180deg, var(--c-sidebar) 0%, var(--c-sidebar-deep) 100%);
  color: var(--c-side-text);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 50;
  transition: width var(--tr);
}
/* 品牌头部：宣纸印章牌 —— 纸色与斑点纹理取自「晖云图标」宣纸底（#F4F1EA + 三层矿物斑点，坐标同图标 SVG）。
   颜色刻意写死、不随侧栏主题/配色变化 —— 品牌决策，勿改回主题变量。
   牌子四周留出侧栏底色边距并悬浮，避免与右侧顶栏连成一条。 */
.logo {
  display: flex; align-items: center; gap: 11px;
  height: 58px; margin: 10px 10px 4px; padding: 0 14px; flex: none;
  background: #F4F1EA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cg fill='%23EAE5D6'%3E%3Ccircle cx='44' cy='52' r='3'/%3E%3Ccircle cx='66' cy='36' r='2'/%3E%3Ccircle cx='104' cy='34' r='1.8'/%3E%3Ccircle cx='150' cy='40' r='2.6'/%3E%3Ccircle cx='200' cy='52' r='2'/%3E%3Ccircle cx='222' cy='96' r='3'/%3E%3Ccircle cx='212' cy='160' r='2'/%3E%3Ccircle cx='200' cy='214' r='2.6'/%3E%3Ccircle cx='150' cy='228' r='2'/%3E%3Ccircle cx='72' cy='222' r='3'/%3E%3Ccircle cx='36' cy='182' r='2'/%3E%3Ccircle cx='34' cy='116' r='2.6'/%3E%3Ccircle cx='108' cy='40' r='1.6'/%3E%3Ccircle cx='224' cy='130' r='1.6'/%3E%3Ccircle cx='88' cy='236' r='1.8'/%3E%3Ccircle cx='30' cy='60' r='1.8'/%3E%3C/g%3E%3Cg fill='%23D9D2BE'%3E%3Ccircle cx='58' cy='70' r='2.6'/%3E%3Ccircle cx='92' cy='52' r='2'/%3E%3Ccircle cx='128' cy='64' r='1.8'/%3E%3Ccircle cx='170' cy='38' r='2.4'/%3E%3Ccircle cx='214' cy='72' r='2.6'/%3E%3Ccircle cx='228' cy='150' r='2'/%3E%3Ccircle cx='218' cy='196' r='2.8'/%3E%3Ccircle cx='170' cy='232' r='2.2'/%3E%3Ccircle cx='104' cy='232' r='2.6'/%3E%3Ccircle cx='48' cy='214' r='2.2'/%3E%3Ccircle cx='26' cy='150' r='2.6'/%3E%3Ccircle cx='44' cy='96' r='2'/%3E%3Ccircle cx='156' cy='236' r='1.8'/%3E%3Ccircle cx='30' cy='84' r='2.2'/%3E%3C/g%3E%3Cg fill='%23C9BFA6'%3E%3Ccircle cx='74' cy='44' r='1.6'/%3E%3Ccircle cx='188' cy='52' r='1.6'/%3E%3Ccircle cx='230' cy='120' r='1.6'/%3E%3Ccircle cx='206' cy='226' r='1.8'/%3E%3Ccircle cx='118' cy='234' r='1.6'/%3E%3Ccircle cx='58' cy='196' r='1.6'/%3E%3Ccircle cx='26' cy='96' r='1.6'/%3E%3Ccircle cx='226' cy='214' r='1.5'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 256px 256px;
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(27, 42, 74, .10);
  color: #1B2A4A; overflow: hidden; white-space: nowrap;
  transition: background-color var(--tr);
}
.logo:hover { background-color: #EDE9DF; }
.logo-mark { flex: none; display: flex; }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: .5px; color: #1B2A4A; }
.logo-text b { color: #1B2A4A; font-weight: 800; margin-left: 1px; }

.nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 10px 16px; }
.nav::-webkit-scrollbar { width: 5px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin: 2px 0;
  border-radius: var(--r-md);
  color: var(--c-side-text); font-size: 13.5px;
  cursor: pointer; position: relative;
  white-space: nowrap; overflow: hidden;
  transition: background var(--tr), color var(--tr);
}
.nav-item .ic { width: 19px; height: 19px; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: var(--c-side-text-h); }
.nav-item.active { background: var(--c-side-on-bg); color: #fff; font-weight: 600; }
.nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--c-gold);
  box-shadow: 0 0 8px var(--c-side-bar-glow);
}
.nav-item.disabled { color: #6E837C; cursor: not-allowed; }
.nav-item.disabled:hover { background: rgba(255, 255, 255, .04); color: #8CA098; }
.nav-sub .nav-item { padding-left: 41px; font-size: 13px; }
.nav-group { margin-top: 6px; }
.nav-sub-head {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin: 2px 0; border-radius: var(--r-md);
  color: #C9D9D3; font-size: 13.5px; cursor: pointer; position: relative;
  white-space: nowrap; overflow: hidden;
  transition: background var(--tr), color var(--tr);
  user-select: none;
}
.nav-sub-head:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-sub-head .acc-ic { margin-left: auto; width: 15px; height: 15px; transition: transform var(--tr); }
.nav-group.open .nav-sub-head .acc-ic { transform: rotate(180deg); }
.nav-badge {
  margin-left: auto; font-size: 10px; line-height: 1;
  color: var(--c-gold); background: rgba(240, 163, 47, .15);
  border: 1px solid var(--c-accent-bd);
  padding: 3px 6px; border-radius: 20px;
}
.nav-badge + .acc-ic { margin-left: 6px; }
.nav-sub { display: none; }
.nav-group.open .nav-sub { display: block; }
.side-foot { padding: 12px 16px; font-size: 11px; color: #5F746D; border-top: 1px solid rgba(255,255,255,.06); white-space: nowrap; overflow: hidden; flex: none; }

body.side-collapsed .sidebar { width: var(--side-w-min); }
body.side-collapsed .logo { width: 44px; height: 44px; margin: 8px auto 4px; padding: 0; justify-content: center; border-radius: 11px; }
body.side-collapsed .nav-label, body.side-collapsed .logo-text, body.side-collapsed .side-foot .nav-label { display: none; }
body.side-collapsed .nav-item, body.side-collapsed .nav-sub-head { justify-content: center; padding: 10px 0; }
body.side-collapsed .nav-item.active::before { left: 0; }
body.side-collapsed .nav-sub { display: none !important; }
body.side-collapsed .nav-badge { display: none; }

/* ================= 顶栏 ================= */
.topbar {
  height: var(--top-h); flex: none;
  background: var(--c-card);
  border-bottom: 1px solid var(--c-line);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 40;
}
.icon-btn {
  width: 34px; height: 34px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: var(--r-sm);
  color: var(--c-text-2); cursor: pointer; position: relative;
  transition: background var(--tr), color var(--tr);
}
.icon-btn:hover { background: var(--c-line-2); color: var(--c-text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .dot {
  position: absolute; top: 3px; right: 2px;
  min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--c-danger); color: #fff;
  border: 2px solid var(--c-card); border-radius: 20px;
  font-size: 9px; font-style: normal; font-weight: 700; line-height: 11px;
  text-align: center;
}
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--c-text-2); min-width: 0; overflow: hidden; }
.btn-back {
  display: inline-flex; align-items: center; gap: 3px;
  height: 30px; padding: 0 11px 0 8px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  color: var(--c-text-2); font-size: 12.5px; font-family: inherit; cursor: pointer;
  transition: all var(--tr); flex: none;
}
.btn-back .ic { width: 14px; height: 14px; }
.btn-back:hover { background: var(--c-primary-softer); color: var(--c-primary-h); border-color: var(--c-primary-soft); }
.btn-back:active { transform: scale(.96); }
.crumbs a { color: var(--c-text-2); }
.crumbs a:hover { color: var(--c-primary); }
.crumb-sep { width: 13px; height: 13px; color: var(--c-text-3); }
.crumb-cur { color: var(--c-text); font-weight: 600; }

.top-search { margin-left: auto; position: relative; width: 300px; }
.top-search .ts-ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--c-text-3); width: 16px; height: 16px; pointer-events: none; }
.top-search input {
  width: 100%; height: 34px;
  border: 1px solid var(--c-line); border-radius: 20px;
  background: var(--c-bg); padding: 0 14px 0 32px;
  font-size: 13px; font-family: inherit; color: var(--c-text);
  outline: none; transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
}
.top-search input::placeholder { color: var(--c-text-3); }
.top-search input:hover { background: #EDF0EF; }
.top-search input:focus { background: #fff; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-ring); }
.ts-panel {
  position: absolute; top: 42px; left: 0; right: 0;
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  max-height: 420px; overflow-y: auto; padding: 6px;
  animation: dropIn .14s ease;
}
.ts-cap { font-size: 11px; color: var(--c-text-3); padding: 8px 10px 4px; }
.ts-list a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--c-text); font-size: 13px;
}
.ts-list a:hover { background: var(--c-primary-softer); }
.ts-list .ts-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-list .ts-meta { color: var(--c-text-3); font-size: 11.5px; flex: none; }
.ts-empty { padding: 22px 10px; text-align: center; color: var(--c-text-3); font-size: 12.5px; }

.top-actions { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 7px;
  background: transparent; border: none; cursor: pointer;
  padding: 4px 8px; border-radius: 20px; font-family: inherit;
  font-size: 13.5px; color: var(--c-text);
  transition: background var(--tr);
}
.user-chip:hover { background: var(--c-line-2); }
.uc-name { font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .ic { width: 14px; height: 14px; color: var(--c-text-3); }

/* ================= 头像 ================= */
.av {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 12px;
  user-select: none;
}
.av.h0 { background: linear-gradient(135deg, #14977A, #0C6B54); }
.av.h1 { background: linear-gradient(135deg, var(--c-accent), var(--c-accent-h)); }
.av.h2 { background: linear-gradient(135deg, #4A90C9, #2D6EA8); }
.av.h3 { background: linear-gradient(135deg, #6C7CE0, #4D5BC4); }
.av.h4 { background: linear-gradient(135deg, #57A773, #3B8757); }
.av.h5 { background: linear-gradient(135deg, #7E8C9A, #5C6B7A); }

/* ================= 下拉菜单 ================= */
.dd { position: relative; display: inline-flex; }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 90;
  min-width: 168px; padding: 5px;
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  display: none; animation: dropIn .14s ease;
}
.dd.open .dd-menu { display: block; }
.dd-right { left: auto; right: 0; }
.dd-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 11px; border: none; background: none;
  font-size: 13px; font-family: inherit; color: var(--c-text);
  border-radius: var(--r-sm); cursor: pointer; text-align: left;
  transition: background var(--tr), color var(--tr);
}
.dd-item .ic { width: 15px; height: 15px; color: var(--c-text-2); }
.dd-item:hover { background: var(--c-primary-softer); color: var(--c-primary-h); }
.dd-item:hover .ic { color: var(--c-primary-h); }
.dd-item.danger { color: var(--c-danger); }
.dd-item.danger .ic { color: var(--c-danger); }
.dd-item.danger:hover { background: var(--c-danger-soft); color: var(--c-danger-h); }
.dd-sep { height: 1px; background: var(--c-line-2); margin: 5px 4px; }
.dd-user { padding: 10px 12px 8px; border-bottom: 1px solid var(--c-line-2); margin-bottom: 5px; }
.dd-user b { display: block; font-size: 14px; }
.dd-user small { color: var(--c-text-3); font-size: 11.5px; }
.dd-user .role-tag { margin-top: 6px; display: inline-block; }
.dd-cap { font-size: 12px; font-weight: 600; color: var(--c-text-2); padding: 8px 11px 4px; }
.dd-foot { padding: 8px 11px; font-size: 11px; color: var(--c-text-3); border-top: 1px solid var(--c-line-2); margin-top: 5px; }
.dd-panel { min-width: 260px; }
.dd-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 11px; border-radius: var(--r-sm);
  color: var(--c-text); font-size: 13px; line-height: 1.5;
  transition: background var(--tr);
}
.dd-note:hover { background: var(--c-primary-softer); }
.dd-note b { color: var(--c-danger); }
.dd-note small { color: var(--c-text-3); }
.dd-note-ic {
  width: 30px; height: 30px; flex: none; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-soft); color: var(--c-primary);
}
.dd-note-ic .ic { width: 15px; height: 15px; }
.dd-note-ic.warn { background: var(--c-gold-soft); color: var(--c-warn); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.role-tag { font-size: 10.5px; padding: 2.5px 8px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.role-admin { background: var(--c-gold-soft); color: var(--c-gold-h); }
.role-manager { background: var(--c-info-soft); color: var(--c-info); }
.role-sales { background: var(--c-primary-soft); color: var(--c-primary); }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 15px;
  background: var(--c-card); color: var(--c-text);
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  font-size: 13.5px; font-family: inherit; font-weight: 500;
  cursor: pointer; white-space: nowrap; position: relative;
  transition: all var(--tr);
}
.btn .ic { width: 15px; height: 15px; }
.btn:hover { border-color: #CBD4D0; background: #F7F9F8; color: var(--c-text); box-shadow: var(--sh-sm); }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--c-ring-strong); }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-h); border-color: var(--c-primary-h); color: #fff; }
.btn-primary:active { background: var(--c-primary-a); border-color: var(--c-primary-a); }
.btn-danger { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
.btn-danger:hover { background: var(--c-danger-h); border-color: var(--c-danger-h); color: #fff; }
.btn-danger-plain { color: var(--c-danger); }
.btn-danger-plain:hover { background: var(--c-danger-soft); border-color: #EAB8B8; color: var(--c-danger-h); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--c-line-2); box-shadow: none; }
.btn-sm { height: 29px; padding: 0 11px; font-size: 12.5px; }
.btn-sm .ic { width: 13px; height: 13px; }
.btn-lg { height: 42px; font-size: 15px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn-on { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-softer); }
.btn-on:hover { border-color: var(--c-primary); color: var(--c-primary-h); }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn:not(.btn-primary):not(.btn-danger).loading::after { border-color: var(--c-ring-strong); border-top-color: var(--c-primary); }
.btn-pulse { animation: pulse .9s ease 2; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(14,122,95,.35);} 50% { box-shadow: 0 0 0 6px rgba(14,122,95,0);} }

/* ================= 页头 / chips ================= */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-title { font-size: 21px; font-weight: 700; letter-spacing: .2px; }
.page-sub { margin-top: 4px; color: var(--c-text-3); font-size: 12.5px; }
.page-actions { display: flex; align-items: center; gap: 9px; flex: none; }

.chips { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 13px;
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: 20px;
  font-size: 12.5px; color: var(--c-text-2); cursor: pointer;
  transition: all var(--tr);
}
.chip .ic { width: 14px; height: 14px; }
.chip:hover { border-color: #CBD4D0; color: var(--c-text); box-shadow: var(--sh-sm); }
.chip.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 600; }
.chip.on:hover { background: var(--c-primary-h); color: #fff; }
.chip-plain { background: transparent; border-style: dashed; }
.chip-n {
  font-size: 10.5px; font-weight: 700; font-style: normal;
  background: var(--c-line-2); color: var(--c-text-2);
  border-radius: 12px; padding: 1.5px 6.5px; line-height: 1.3;
}
.chip.on .chip-n { background: rgba(255, 255, 255, .22); color: #fff; }
.chip-n.warn { background: var(--c-warn-soft); color: var(--c-warn); }
.chip-n.danger { background: var(--c-danger-soft); color: var(--c-danger); }
.chip.on .chip-n.warn, .chip.on .chip-n.danger { background: rgba(255,255,255,.25); color: #fff; }
.chip-sep { width: 1px; height: 18px; background: var(--c-line); margin: 0 4px; }

/* ================= 卡片 ================= */
.card {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  margin-bottom: 16px; overflow: visible;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px; border-bottom: 1px solid var(--c-line-2);
}
.card-title { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-title .ic { color: var(--c-primary); width: 16px; height: 16px; }
.card-more { font-size: 12.5px; color: var(--c-text-3); display: inline-flex; align-items: center; gap: 2px; }
.card-more .ic { width: 13px; height: 13px; }
.card-more:hover { color: var(--c-primary); }
.card-text { padding: 14px 18px; color: var(--c-text-2); font-size: 13px; white-space: pre-wrap; }

/* ================= 统计卡 ================= */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); padding: 16px 18px 14px;
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 13px;
  color: var(--c-text); position: relative; overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.stat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,122,95,.045), transparent 55%);
  opacity: 0; transition: opacity var(--tr); pointer-events: none;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: #D5DDD9; color: var(--c-text); }
.stat-card:hover::after { opacity: 1; }
.stat-ic {
  grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.stat-ic .ic { width: 20px; height: 20px; }
.c-primary { background: var(--c-primary-soft); color: var(--c-primary); }
.c-gold { background: var(--c-gold-soft); color: var(--c-gold-h); }
.c-info { background: var(--c-info-soft); color: var(--c-info); }
.c-ok { background: var(--c-ok-soft); color: var(--c-ok); }
.c-muted { background: var(--c-line-2); color: var(--c-text-3); }
.stat-num { font-size: 24px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--c-text-3); font-size: 12px; }
.stat-warn .stat-num { color: var(--c-warn); }

.grid-2-1 { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; align-items: start; }
.grid-2-1 .col { min-width: 0; }
.grid-2-1 .col .card:last-child { margin-bottom: 0; }

/* ================= 表格 ================= */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  background: #F7F9F8; color: var(--c-text-2);
  font-size: 12px; font-weight: 600; text-align: left;
  padding: 10px 14px; border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}
.table tbody td { padding: 11px 14px; border-bottom: 1px solid var(--c-line-2); vertical-align: middle; }
.table tbody tr { transition: background var(--tr); }
.table tbody tr:hover { background: var(--c-primary-softer); }
.table tbody tr:last-child td { border-bottom: none; }
.td-muted { color: var(--c-text-3); }
.td-nowrap { white-space: nowrap; }
.td-mono { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.td-right { text-align: right; }
.td-acts { white-space: nowrap; }
.td-check { width: 38px; }
.cell-main { display: flex; flex-direction: column; gap: 1px; min-width: 200px; }
.cell-title { font-weight: 600; color: var(--c-text); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-title:hover { color: var(--c-primary); }
.cell-sub { font-size: 11.5px; color: var(--c-text-3); }
.cell-ava { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.cell-ava .cell-title { flex: 0 1 auto; min-width: 0; }
.cell-link { color: var(--c-text-2); display: inline-block; max-width: 220px; vertical-align: middle; }
.cell-link:hover { color: var(--c-primary); }
.th-sort { color: inherit; display: inline-flex; align-items: center; gap: 3px; }
.th-sort:hover { color: var(--c-primary); }
.sort-ic { display: inline-flex; flex-direction: column; margin-left: 1px; }
.sort-ic .ic { width: 11px; height: 11px; margin: -2.5px 0; color: #C0CBC6; }
.th-sort:hover .sort-ic .ic { color: var(--c-primary); }
.th-sort.asc .ic:first-child, .th-sort.desc .ic:last-child { color: var(--c-primary); }

.owner-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--c-text-2); white-space: nowrap; }
.tag-pool {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--c-info); background: var(--c-info-soft);
  padding: 2px 8px; border-radius: 20px; font-weight: 600;
}
.tag-pool .ic { width: 12px; height: 12px; }
.tag-plain { font-size: 11.5px; color: var(--c-text-3); background: var(--c-line-2); padding: 2.5px 9px; border-radius: 20px; }
.tag-key { font-size: 10.5px; color: var(--c-gold-h); background: var(--c-gold-soft); padding: 2px 7px; border-radius: 20px; font-weight: 600; margin-left: 6px; vertical-align: 1px; }
.dot-ok { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 3px var(--c-ok-soft); }
.due-cell { font-size: 12.5px; color: var(--c-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.due-cell.over { color: var(--c-danger); font-weight: 600; }

/* 级别标签 */
.lv {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 7px;
  font-size: 11.5px; font-weight: 800; cursor: default;
}
.lv-A { background: var(--c-gold-soft); color: var(--c-gold-h); box-shadow: inset 0 0 0 1px rgba(232, 163, 61, .4); }
.lv-B { background: var(--c-info-soft); color: var(--c-info); box-shadow: inset 0 0 0 1px rgba(59, 130, 196, .35); }
.lv-C { background: var(--c-primary-soft); color: var(--c-primary); box-shadow: inset 0 0 0 1px var(--c-primary-bd); }
.lv-D { background: var(--c-line-2); color: var(--c-text-3); box-shadow: inset 0 0 0 1px var(--c-line); }

input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: var(--c-primary);
  cursor: pointer;
}

/* ================= 批量操作条 ================= */
.batch-bar {
  position: sticky; bottom: 14px; z-index: 30;
  margin-top: -6px;
  display: flex; align-items: center; gap: 10px;
  background: var(--c-sidebar); color: var(--c-side-text-h);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  padding: 9px 16px; width: fit-content;
  animation: riseUp .18s ease;
}
@keyframes riseUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bb-count { font-size: 13px; }
.bb-count b { color: var(--c-gold); font-size: 15px; }
.bb-sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .16); }
.batch-bar .btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #EAF2EF; }
.batch-bar .btn:hover { background: rgba(255, 255, 255, .15); color: #fff; box-shadow: none; }
.batch-bar .btn-danger-plain { color: #F0A9A9; }
.batch-bar .btn-danger-plain:hover { background: rgba(214, 69, 69, .25); color: #fff; }

/* ================= 列表工具行 / 搜索 ================= */
.list-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--c-line-2); }
.search-inline {
  display: flex; align-items: center; gap: 7px;
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-sm);
  padding: 0 11px; height: 34px; width: 300px;
  transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
}
.search-inline .ic { color: var(--c-text-3); width: 15px; height: 15px; }
.search-inline input { border: none; outline: none; background: transparent; flex: 1; font-size: 13px; font-family: inherit; color: var(--c-text); }
.search-inline:focus-within { background: #fff; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-ring); }

/* ================= 抽屉 ================= */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer-mask { position: absolute; inset: 0; background: rgba(15, 30, 26, .38); animation: fadeIn .16s ease; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 360px; background: var(--c-card);
  box-shadow: var(--sh-lg); display: flex; flex-direction: column;
  animation: slideIn .2s cubic-bezier(.4, 0, .2, 1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--c-line); font-size: 15px; flex: none;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer-foot { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--c-line); flex: none; }
.drawer-foot .btn { flex: 1; }

/* ================= 表单 ================= */
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 13px; }
.fld-row { display: flex; gap: 10px; align-items: center; }
.fld-row .fld { flex: 1; margin-bottom: 13px; }
.fld-row .fld-ctl { width: 100%; }
.fld-dash { color: var(--c-text-3); flex: none; }
.fld-span2 { grid-column: 1 / -1; }
.fld-label { font-size: 12.5px; font-weight: 600; color: var(--c-text-2); }
.req { color: var(--c-danger); font-style: normal; margin-right: 1px; }
.fld-ctl { position: relative; display: flex; align-items: center; }
.fld-ctl input, .fld-ctl select, .fld-ctl textarea {
  width: 100%; height: 36px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  background: var(--c-card); padding: 0 12px;
  font-size: 13.5px; font-family: inherit; color: var(--c-text);
  outline: none; transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}
.fld-ctl textarea { height: auto; padding: 9px 12px; resize: vertical; min-height: 66px; line-height: 1.6; }
.fld-ctl input::placeholder, .fld-ctl textarea::placeholder { color: var(--c-text-3); }
.fld-ctl input:hover, .fld-ctl select:hover, .fld-ctl textarea:hover { border-color: #C8D2CE; }
.fld-ctl input:focus, .fld-ctl select:focus, .fld-ctl textarea:focus {
  border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-ring);
}
.fld-ctl input:disabled, .fld-ctl select:disabled { background: var(--c-line-2); color: var(--c-text-3); cursor: not-allowed; }
.fld-ctl.has-ic input { padding-left: 34px; }
.fld-ic { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--c-text-3); pointer-events: none; }
.fld-ctl select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C6B67' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6.5 9.5l5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.fld-static {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 12px;
  background: var(--c-line-2); border-radius: var(--r-sm);
  color: var(--c-text-2); font-size: 13px;
}
.fld-static .ic { width: 15px; height: 15px; color: var(--c-text-3); }
.fld-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; padding: 4px 0; }
.fld-check b { margin: 0 2px; }
.fld-hint { color: var(--c-text-3); font-size: 11.5px; margin-left: auto; }
.form-alert {
  background: var(--c-danger-soft); color: var(--c-danger-h);
  border: 1px solid #F0CACA; border-radius: var(--r-sm);
  padding: 10px 14px; font-size: 13px; margin-bottom: 14px;
  animation: shakeX .3s ease;
}
.form-page { max-width: 900px; }
.form-card { padding-bottom: 0; }
.form-sec { padding: 18px 22px 4px; }
.form-sec + .form-sec { border-top: 1px dashed var(--c-line); margin-top: 8px; }
.form-sec-title { font-size: 14px; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.form-sec-title::before { content: ""; width: 3px; height: 14px; border-radius: 3px; background: var(--c-gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.form-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 22px; margin-top: 14px;
  border-top: 1px solid var(--c-line);
  background: #FAFBFA; border-radius: 0 0 var(--r-lg) var(--r-lg);
}
@keyframes shakeX { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ================= 弹窗 ================= */
.modal { position: fixed; inset: 0; z-index: 130; display: flex; align-items: flex-start; justify-content: center; padding-top: 11vh; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 30, 26, .42); animation: fadeIn .16s ease; }
.modal-box {
  position: relative; width: 480px; max-width: calc(100vw - 40px);
  background: var(--c-card); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); animation: popIn .18s cubic-bezier(.4, 0, .2, 1);
  max-height: 82vh; display: flex; flex-direction: column;
}
.modal-sm { width: 400px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--c-line-2); font-size: 15px; flex: none;
}
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 13px 20px; border-top: 1px solid var(--c-line-2); flex: none;
}
.mb-desc { color: var(--c-text-2); font-size: 13.5px; margin-bottom: 12px; }
.mb-desc b { color: var(--c-text); }
.confirm-warn {
  width: 52px; height: 52px; margin: 4px auto 12px;
  border-radius: 50%; background: var(--c-gold-soft); color: var(--c-warn);
  display: flex; align-items: center; justify-content: center;
}
.confirm-warn .ic { width: 24px; height: 24px; }

/* ================= Tooltip ================= */
.tooltip {
  position: absolute; z-index: 200; pointer-events: none;
  background: #2B2E38; color: #F2F6F4;
  font-size: 11.5px; line-height: 1.5; padding: 5px 9px;
  border-radius: 6px; max-width: 300px;
  box-shadow: var(--sh-md);
  animation: dropIn .12s ease;
}
.tooltip::after {
  content: ""; position: absolute; left: 50%; margin-left: -4px;
  border: 4px solid transparent;
}
.tooltip.tt-top::after { top: 100%; border-top-color: #2B2E38; }
.tooltip.tt-bottom::after { bottom: 100%; border-bottom-color: #2B2E38; }

/* ================= Toast ================= */
.toasts { position: fixed; top: 70px; right: 22px; z-index: 210; display: flex; flex-direction: column; gap: 9px; }
.toast {
  display: flex; align-items: center; gap: 9px;
  min-width: 220px; max-width: 360px;
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  padding: 11px 15px; font-size: 13px;
  animation: toastIn .22s cubic-bezier(.4, 0, .2, 1);
}
.toast.out { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
.toast .t-ic {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.toast .t-ic .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.toast-success .t-ic { background: var(--c-ok-soft); color: var(--c-ok); }
.toast-error .t-ic { background: var(--c-danger-soft); color: var(--c-danger); }
.toast-warning .t-ic { background: var(--c-warn-soft); color: var(--c-warn); }
.toast-info .t-ic { background: var(--c-info-soft); color: var(--c-info); }

/* ================= 时间线 ================= */
.timeline { position: relative; }
.tl-padded { padding: 8px 18px 14px; }
.tl-month {
  font-size: 12px; font-weight: 700; color: var(--c-text-3);
  margin: 14px 0 4px; padding-left: 32px; letter-spacing: .5px;
}
.tl-month:first-child { margin-top: 4px; }
.tl-month em { font-style: normal; color: var(--c-primary); background: var(--c-primary-soft); padding: 1px 7px; border-radius: 12px; font-size: 10.5px; margin-left: 6px; }
.tl-item { display: flex; gap: 12px; position: relative; padding: 10px 0 10px 32px; }
.tl-item::before {
  content: ""; position: absolute; left: 14px; top: 0; bottom: 0;
  width: 1.5px; background: var(--c-line-2);
}
.tl-item:first-child::before { top: 14px; }
.tl-item:last-child::before { bottom: auto; height: 14px; }
.act-ic {
  position: absolute; left: 4px; top: 12px; z-index: 2;
  width: 21px; height: 21px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--c-card);
}
.act-ic .ic { width: 11px; height: 11px; }
.act-ic.c-primary { background: var(--c-primary-soft); color: var(--c-primary); }
.act-ic.c-info { background: var(--c-info-soft); color: var(--c-info); }
.act-ic.c-ok { background: var(--c-ok-soft); color: var(--c-ok); }
.act-ic.c-gold { background: var(--c-gold-soft); color: var(--c-gold-h); }
.act-ic.c-muted { background: var(--c-line-2); color: var(--c-text-3); }
.tl-body { flex: 1; min-width: 0; background: #FAFBFA; border: 1px solid var(--c-line-2); border-radius: 0 var(--r-md) var(--r-md) var(--r-md); padding: 10px 13px; transition: border-color var(--tr), box-shadow var(--tr); }
.tl-body:hover { border-color: #D8E0DC; box-shadow: var(--sh-sm); }
.tl-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--c-text-3); }
.tl-who { font-weight: 700; font-size: 13px; color: var(--c-text); }
.tl-who:hover { color: var(--c-primary); }
.tl-tag { background: var(--c-line-2); padding: 1px 8px; border-radius: 12px; color: var(--c-text-2); }
.tl-type { background: var(--c-primary-softer); color: var(--c-primary); padding: 1px 8px; border-radius: 12px; font-weight: 600; }
.tl-time { margin-left: auto; }
.tl-owner { display: inline-flex; }
.tl-next { display: inline-flex; align-items: center; gap: 5px; color: var(--c-warn); }
.tl-next i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-warn); box-shadow: 0 0 0 3px var(--c-warn-soft); }
.tl-del { width: 26px; height: 26px; opacity: 0; }
.tl-del .ic { width: 13px; height: 13px; }
.tl-meta:hover .tl-del, .tl-del:focus { opacity: 1; }
.tl-del:hover { background: var(--c-danger-soft); color: var(--c-danger); }
.tl-text { margin-top: 6px; font-size: 13px; color: var(--c-text); line-height: 1.65; word-break: break-word; }

/* 今日待跟进 */
.due-list { padding: 6px 10px; }
.due-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: var(--r-sm);
  transition: background var(--tr);
}
.due-item:hover { background: var(--c-primary-softer); }
.due-item + .due-item { border-top: 1px dashed var(--c-line-2); }
.due-name { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; color: var(--c-text); }
.due-name:hover { color: var(--c-primary); }
.due-meta { font-size: 11.5px; color: var(--c-text-3); display: inline-flex; align-items: center; gap: 4px; flex: none; }
.due-meta .ic { width: 13px; height: 13px; }
.due-meta.over { color: var(--c-danger); font-weight: 600; }

/* 图表 */
.chart-box { height: 205px; padding: 8px 6px 4px; }
.chart-empty { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--c-text-3); font-size: 12.5px; }

/* ================= 详情页 ================= */
.head-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.head-main { display: flex; align-items: center; gap: 15px; min-width: 0; }
.head-avatar {
  width: 52px; height: 52px; flex: none; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-primary-soft), var(--c-primary-softer)); color: var(--c-primary);
}
.head-avatar .ic { width: 26px; height: 26px; }
.head-info { min-width: 0; }
.head-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.head-title h1 { font-size: 18.5px; font-weight: 700; max-width: 480px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-meta { display: flex; align-items: center; gap: 15px; margin-top: 6px; font-size: 12.5px; color: var(--c-text-3); flex-wrap: wrap; }
.head-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.head-meta .ic { width: 13px; height: 13px; }
.head-link { display: inline-flex; align-items: center; gap: 5px; color: var(--c-text-2); font-weight: 600; }
.head-link .ic { width: 13px; height: 13px; }
.head-link .link-go { width: 11px; height: 11px; color: var(--c-text-3); transition: transform var(--tr); }
.head-link:hover { color: var(--c-primary); }
.head-link:hover .link-go { transform: translateX(2px); }
.head-acts { display: flex; align-items: center; gap: 9px; flex: none; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.detail-grid .col { min-width: 0; }
.detail-grid .col .card:last-child { margin-bottom: 0; }

.tabs { display: flex; gap: 2px; padding: 6px 12px 0; border-bottom: 1px solid var(--c-line); }
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-size: 13.5px; font-family: inherit; color: var(--c-text-2); font-weight: 500;
  padding: 10px 14px; position: relative;
  transition: color var(--tr);
}
.tab .ic { width: 15px; height: 15px; }
.tab:hover { color: var(--c-text); }
.tab.on { color: var(--c-primary); font-weight: 700; }
.tab.on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2.5px; border-radius: 3px 3px 0 0; background: var(--c-primary);
}
.tab-n { font-size: 11px; background: var(--c-line-2); border-radius: 12px; padding: 1px 7px; color: var(--c-text-3); }
.tab.on .tab-n { background: var(--c-primary-soft); color: var(--c-primary); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fadeIn .18s ease; }
.panel-foot { padding: 12px 18px 16px; border-top: 1px dashed var(--c-line-2); }

.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; padding: 14px 20px 18px; }
.dl-item { display: flex; gap: 12px; padding: 8.5px 0; border-bottom: 1px dashed var(--c-line-2); font-size: 13px; min-width: 0; }
.dl-k { width: 72px; flex: none; color: var(--c-text-3); display: inline-flex; align-items: center; gap: 5px; }
.dl-k .ic { width: 13px; height: 13px; }
.dl-v { flex: 1; min-width: 0; color: var(--c-text); word-break: break-all; }
.mini-dl { padding: 8px 18px 14px; }
.mini-dl .dl-item:last-child { border-bottom: none; }

.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 18px; }
.ct-card {
  border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 13px 14px; color: var(--c-text);
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.ct-card:hover { border-color: var(--c-primary-bd); box-shadow: var(--sh-md); transform: translateY(-1px); color: var(--c-text); }
.ct-top { display: flex; align-items: center; gap: 10px; }
.ct-name { min-width: 0; }
.ct-name b { display: block; font-size: 13.5px; }
.ct-name b .tag-key { margin-left: 5px; }
.ct-name small { color: var(--c-text-3); font-size: 11.5px; }
.ct-rows { margin-top: 9px; font-size: 12px; color: var(--c-text-2); display: flex; align-items: center; gap: 6px; }
.ct-rows .ic { width: 13px; height: 13px; color: var(--c-text-3); }

.nextfu { margin: 14px 18px 4px; background: var(--c-primary-softer); border: 1px dashed var(--c-primary-bd); border-radius: var(--r-md); padding: 13px 15px; }
.nextfu.is-over { background: var(--c-danger-soft); border-color: rgba(214, 69, 69, .35); }
.nextfu-date { font-size: 19px; font-weight: 800; color: var(--c-primary-h); font-variant-numeric: tabular-nums; }
.nextfu.is-over .nextfu-date { color: var(--c-danger); }
.nextfu-date.none { color: var(--c-text-3); font-size: 15px; }
.nextfu-note { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }
.nextfu.is-over .nextfu-note { color: var(--c-danger-h); }
.nextfu-form { display: flex; gap: 8px; padding: 10px 18px 16px; }
.nextfu-form .fld-ctl { flex: 1; }

/* ================= 空状态 ================= */
.empty { padding: 54px 20px 60px; text-align: center; }
.empty-art .ic { width: 46px; height: 46px; color: #C4CFCA; stroke-width: 1.3; }
.empty-title { margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--c-text-2); }
.empty-hint { margin-top: 5px; font-size: 12.5px; color: var(--c-text-3); }
.empty .btn { margin-top: 16px; }

/* ================= 分页 ================= */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--c-line-2); }
.pager-total { font-size: 12.5px; color: var(--c-text-3); }
.pager-btns { display: flex; align-items: center; gap: 5px; }
.pg {
  min-width: 29px; height: 29px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  font-size: 12.5px; color: var(--c-text-2); background: var(--c-card);
  transition: all var(--tr); font-variant-numeric: tabular-nums;
}
.pg .ic { width: 13px; height: 13px; }
.pg:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pg.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 700; }
.pg.active:hover { background: var(--c-primary-h); }
.pg.disabled { opacity: .45; pointer-events: none; }
.pg-ellip { color: var(--c-text-3); padding: 0 3px; }

/* ================= 登录页 · 晖印（墨蓝夜 × 哑光金 × 宣纸白） ================= */
.login-body {
  --lg-ink-950: #081428; --lg-ink-900: #10203E; --lg-ink-800: #1B2A4A; --lg-ink-700: #2A3E66; --lg-ink-600: #3E5580;
  --lg-gold: #E3A93C; --lg-gold-h: #EFC068; --lg-gold-deep: #A67218;
  --lg-paper: #F6F3EC; --lg-card: #FFFFFF;
  --lg-ink-text: #1D2537; --lg-muted: #5E6983; --lg-line: #E7E1D2;
  --lg-ptext: #E9EDF6; --lg-pmut: #A9B7D6; --lg-pline: rgba(233, 237, 246, .16);
  background: var(--lg-paper);
}
.login-wrap { display: flex; min-height: 100vh; }

/* ---- 左门 · 品牌幕 ---- */
.login-brand {
  flex: 1.15; position: relative; overflow: hidden;
  background: linear-gradient(158deg, var(--lg-ink-950) 0%, var(--lg-ink-900) 42%, var(--lg-ink-800) 74%, #24395F 100%);
  color: var(--lg-ptext);
  display: flex; flex-direction: column;
  padding: 48px 56px 40px;
}
.login-brand::before {
  content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 169, 60, .13), transparent 60%);
  top: -240px; right: -150px; pointer-events: none;
}
.login-brand::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 237, 246, .06), transparent 62%);
  bottom: -190px; left: -130px; pointer-events: none;
}

@keyframes lgRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.lg-top { position: relative; z-index: 4; display: flex; align-items: center; gap: 15px; animation: lgRise .6s cubic-bezier(.2, .8, .25, 1) .05s both; }
.lg-mark {
  width: 54px; height: 54px; flex: none; border-radius: 14px;
  background: #F4F1EA;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(27, 42, 74, .06);
  display: flex; align-items: center; justify-content: center;
}
.lg-mark svg { width: 38px; height: 38px; display: block; }
.lg-name { line-height: 1.3; }
.lg-name b { font-size: 21px; font-weight: 700; letter-spacing: .1em; color: #fff; }
.lg-name .lg-ver {
  font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--lg-pmut);
  border: 1px solid var(--lg-pline); border-radius: 999px; padding: 2px 9px; margin-left: 9px; vertical-align: 2px;
}
.lg-name small { display: block; font-size: 10.5px; letter-spacing: .42em; color: #7E8DAD; margin-top: 5px; }

.lg-emblem-stage {
  position: absolute; right: -96px; top: 50%; z-index: 1; pointer-events: none;
  width: min(560px, 68%); aspect-ratio: 1;
  transform: translateY(-50%);
  animation: lgEmblemIn 1.4s cubic-bezier(.2, .8, .25, 1) .2s both;
}
@keyframes lgEmblemIn { from { opacity: 0; transform: translateY(-46%) scale(.92); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.lg-emblem-tilt { position: absolute; inset: 0; animation: lgFloat 9s ease-in-out infinite; }@keyframes lgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.lg-emblem { position: absolute; inset: 0; width: 100%; height: 100%; }
.lg-emblem .lg-orbit { transform-box: fill-box; transform-origin: center; animation: lgSpin 90s linear infinite; }
@keyframes lgSpin { to { transform: rotate(360deg); } }
.lg-emblem .lg-sun { transform-box: fill-box; transform-origin: center; animation: lgBreathe 7s ease-in-out infinite; }
@keyframes lgBreathe { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.lg-emblem .lg-drift { animation: lgDrift 11s ease-in-out infinite; }
.lg-emblem .lg-drift.d2 { animation-duration: 14s; animation-delay: -5s; }
@keyframes lgDrift { 0%, 100% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(14px); opacity: .55; } }

/* 金屑飘落 */
.lg-speck { position: absolute; top: -40px; z-index: 2; pointer-events: none; opacity: 0; animation: lgFall linear infinite; }
.lg-speck svg { display: block; }
.lg-speck.s1 { left: 7%; animation-duration: 12s; animation-delay: -2s; }
.lg-speck.s2 { left: 14%; animation-duration: 15s; animation-delay: -7s; }
.lg-speck.s3 { left: 22%; animation-duration: 10.5s; animation-delay: -4.5s; }
.lg-speck.s4 { left: 31%; animation-duration: 17s; animation-delay: -11s; }
.lg-speck.s5 { left: 39%; animation-duration: 13s; animation-delay: -8s; }
.lg-speck.s6 { left: 48%; animation-duration: 11s; animation-delay: -1s; }
.lg-speck.s7 { left: 57%; animation-duration: 16s; animation-delay: -13s; }
.lg-speck.s8 { left: 66%; animation-duration: 12.5s; animation-delay: -5.5s; }
.lg-speck.s9 { left: 74%; animation-duration: 14s; animation-delay: -9.5s; }
.lg-speck.s10 { left: 82%; animation-duration: 10s; animation-delay: -3s; }
.lg-speck.s11 { left: 90%; animation-duration: 15.5s; animation-delay: -12s; }
.lg-speck.s12 { left: 4%; animation-duration: 18s; animation-delay: -15s; }
@keyframes lgFall {
  0% { transform: translate(0, -40px) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  28% { transform: translate(22px, 26vh) rotate(50deg); }
  52% { transform: translate(-16px, 52vh) rotate(110deg); }
  76% { transform: translate(18px, 78vh) rotate(170deg); }
  93% { opacity: .4; }
  100% { transform: translate(-10px, 106vh) rotate(230deg); opacity: 0; }
}

/* 静态描边云篆 */
.lg-deco { position: absolute; z-index: 1; pointer-events: none; color: #E9EDF6; animation: lgSway 10s ease-in-out infinite; }
@keyframes lgSway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
.lg-deco.dd1 { left: -64px; top: 15%; width: 230px; opacity: .07; }
.lg-deco.dd2 { left: 30%; bottom: 4%; width: 175px; opacity: .06; animation-duration: 13s; animation-delay: -4s; }
.lg-deco.dd3 { right: 4%; top: 6%; width: 150px; opacity: .08; animation-duration: 11.5s; animation-delay: -7s; }

.lg-mid { position: relative; z-index: 4; margin: auto 0; max-width: 520px; padding: 36px 0; animation: lgRise .7s cubic-bezier(.2, .8, .25, 1) .18s both; }
.lg-mid h1 { font-size: clamp(34px, 3.4vw, 50px); font-weight: 700; line-height: 1.32; letter-spacing: .02em; color: #fff; }
.lg-mid h1 em { font-style: normal; color: var(--lg-gold); }
.lg-pill-row { margin-top: 20px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--lg-pmut); letter-spacing: .04em; }
.lg-pill-row .lg-pill {
  font-size: 12px; letter-spacing: .06em; padding: 3.5px 12px; border-radius: 999px;
  border: 1px solid rgba(227, 169, 60, .45); color: #F0D9A6; white-space: nowrap;
}
.lg-feats { margin-top: 32px; list-style: none; display: grid; gap: 13px; }
.lg-feats li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: #C6D0E4; }
.lg-feats .lg-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--lg-gold); box-shadow: 0 0 0 3px rgba(227, 169, 60, .16);
}

.lg-bottom {
  position: relative; z-index: 4;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-top: 20px; border-top: 1px solid var(--lg-pline);
  animation: lgRise .7s cubic-bezier(.2, .8, .25, 1) .42s both;
}
.lg-meta { font-size: 12.5px; line-height: 1.9; color: #7E8DAD; letter-spacing: .03em; }
.lg-meta b { color: #B9C4DC; font-weight: 500; }
.lg-clock { text-align: right; flex: none; }
.lg-clock .lg-time { font-size: 28px; font-weight: 600; letter-spacing: .05em; color: #F2F5FB; font-variant-numeric: tabular-nums; }
.lg-clock .lg-date { font-size: 12.5px; color: #7E8DAD; margin-top: 4px; letter-spacing: .08em; }

/* ---- 右门 · 表单幕 ---- */
.login-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 32px; position: relative; }
.login-box { width: 396px; max-width: 100%; }
.login-box > * { animation: lgRise .55s cubic-bezier(.2, .8, .25, 1) both; }
.login-box > :nth-child(2) { animation-delay: .08s; }
.login-box > :nth-child(3) { animation-delay: .14s; }
.login-box > :nth-child(4) { animation-delay: .2s; }
.login-box > :nth-child(5) { animation-delay: .26s; }
.login-box > :nth-child(6) { animation-delay: .32s; }
.login-box > :nth-child(7) { animation-delay: .38s; }
.login-box > :nth-child(8) { animation-delay: .44s; }
.login-box > :nth-child(9) { animation-delay: .5s; }

.lg-formmark {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 22px;
  background: var(--lg-card);
  box-shadow: 0 3px 14px rgba(27, 42, 74, .1), inset 0 0 0 1px var(--lg-line);
  display: flex; align-items: center; justify-content: center;
}
.lg-formmark svg { width: 32px; height: 32px; display: block; }
.login-box h2 { font-size: 25px; font-weight: 700; letter-spacing: .01em; color: var(--lg-ink-text); }
.login-hint { color: var(--lg-muted); font-size: 13.5px; margin: 9px 0 30px; }
.login-box .form-alert {
  display: flex; align-items: center; gap: 8px; font-weight: 500;
  border-radius: 12px; margin: -12px 0 24px;
}

.login-box .fld { margin-bottom: 18px; gap: 8px; }
.login-box .fld-label { font-size: 13px; color: var(--lg-muted); letter-spacing: .02em; }
.login-box .fld-ctl input {
  height: 47px; border-radius: 13px; border: 1.5px solid var(--lg-line);
  background: var(--lg-card); font-size: 14.5px; color: var(--lg-ink-text);
  padding: 0 44px 0 42px;
}
.login-box .fld-ctl input::placeholder { color: #6A748C; }
.login-box .fld-ctl input:hover { border-color: #CFC8B4; }
.login-box .fld-ctl input:focus { border-color: var(--lg-ink-700); background: #fff; box-shadow: 0 0 0 4px rgba(42, 62, 102, .1); }
.login-box .fld-ic { left: 14px; width: 17px; height: 17px; color: #8A94AA; transition: color .18s; }
.login-box .fld-ctl:focus-within .fld-ic { color: var(--lg-ink-700); }

.lg-eye {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #8A94AA; transition: color .18s, background .18s;
}
.lg-eye:hover { color: var(--lg-ink-700); background: rgba(42, 62, 102, .07); }
.lg-eye svg { width: 18px; height: 18px; }

.lg-btn {
  width: 100%; height: 48px; margin-top: 8px;
  border: 0; border-radius: 13px; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, var(--lg-ink-800), var(--lg-ink-700));
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .22em; text-indent: .22em;
  box-shadow: 0 8px 22px rgba(16, 32, 62, .28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s;
}
.lg-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(16, 32, 62, .36); filter: brightness(1.14); }
.lg-btn:active { transform: translateY(0); }
.lg-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(227, 169, 60, .35); }
.lg-btn.loading { color: transparent; pointer-events: none; }
.lg-btn.loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.login-demo { margin-top: 26px; border-top: 1px dashed var(--lg-line); padding-top: 18px; }
.ld-cap { font-size: 12px; color: var(--lg-muted); margin-bottom: 10px; }
.ld-btns { display: flex; gap: 9px; flex-wrap: wrap; }
.ld-btn {
  flex: 1; min-width: 132px; text-align: center;
  border: 1px solid var(--lg-line); background: var(--lg-card);
  border-radius: 12px; padding: 9px 14px; font-size: 13px; font-family: inherit;
  color: var(--lg-ink-text); font-weight: 500; cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.ld-btn:hover {
  border-color: var(--lg-gold); background: #FBF3E1; color: var(--lg-ink-text);
  transform: translateY(-1px); box-shadow: 0 5px 14px rgba(201, 143, 38, .14);
}
.lg-note { font-size: 11.5px; color: var(--lg-muted); margin-top: 10px; line-height: 1.7; }
.lg-secure {
  margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; color: var(--lg-muted);
}
.lg-secure .ic { width: 13px; height: 13px; }

.shake { animation: shakeX .3s ease; }

@media (prefers-reduced-motion: reduce) {
  .login-wrap, .login-wrap * { animation: none !important; }
}

@media (max-width: 960px) {
  .login-wrap { flex-direction: column; }
  .login-brand { flex: none; padding: 30px 26px 24px; }
  .lg-emblem-stage, .lg-speck, .lg-deco, .lg-clock, .lg-feats { display: none; }
  .lg-mid { margin: 0; padding: 20px 0 0; }
  .lg-mid h1 { font-size: 25px; }
  .lg-pill-row { margin-top: 12px; font-size: 13px; }
  .lg-bottom { border-top: 0; padding-top: 4px; }
  .login-panel { padding: 30px 22px 46px; }
}

/* 错误页 */
.err-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.err-box { text-align: center; }
.err-code { font-size: 72px; font-weight: 800; color: #A9B3CB; letter-spacing: 4px; }
.err-msg { color: var(--c-text-2); margin: 8px 0 24px; }
.err-title { font-size: 22px; font-weight: 700; color: var(--c-text); }
.err-hint { color: var(--c-text-3); font-size: 12.5px; margin: -16px 0 24px; }

/* ================= 授权锁横幅（到期提醒 / 只读） ================= */
.lic-banner {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 18px; margin-bottom: 14px;
  border-radius: var(--r-md); font-size: 13px; font-weight: 600;
}
.lic-banner .ic { width: 16px; height: 16px; }
.lic-banner.warn { background: var(--c-warn-soft); color: var(--c-warn); border: 1px solid rgba(217, 138, 43, .3); }
.lic-banner.danger { background: var(--c-danger-soft); color: var(--c-danger-h); border: 1px solid rgba(214, 69, 69, .3); }
.lic-banner .lb-act { margin-left: auto; font-size: 12px; text-decoration: underline; }

/* ================= 二期：商机漏斗 / 阶段 / 任务 / 文档 ================= */
.funnel { padding: 12px 18px; }
.funnel-row { display: flex; align-items: center; gap: 12px; padding: 7px 9px; border-radius: var(--r-sm); transition: background var(--tr); }
.funnel-row:hover { background: var(--c-primary-softer); }
.funnel-row.on { background: var(--c-primary-soft); }
.fu-name { width: 108px; flex: none; font-size: 12.5px; color: var(--c-text-2); }
.funnel-row.on .fu-name { color: var(--c-primary-h); font-weight: 700; }
.fu-bar-wrap { flex: 1; height: 15px; background: var(--c-line-2); border-radius: 8px; overflow: hidden; }
.fu-bar { display: block; height: 100%; border-radius: 8px; transition: width var(--tr); }
.stg-c0 { background: var(--c-primary); }
.stg-c1 { background: var(--c-info); }
.stg-c2 { background: #8B5CF6; }
.stg-c3 { background: var(--c-accent); }
.fu-n { width: 30px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fu-amt { width: 78px; text-align: right; color: var(--c-text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.stg { display: inline-flex; padding: 3px 10px; border-radius: 14px; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--c-primary); white-space: nowrap; }
.pill-warn { background: var(--c-warn-soft); color: var(--c-warn); }
.pill-ok { background: var(--c-ok-soft); color: var(--c-ok); }
.pill-danger { background: var(--c-danger-soft); color: var(--c-danger); }

.steps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 14px 18px 18px; }
.step { padding: 5px 12px; border-radius: 16px; font-size: 12px; background: var(--c-line-2); color: var(--c-text-3); border: 1px solid transparent; white-space: nowrap; }
.step.done { background: var(--c-primary-soft); color: var(--c-primary-h); }
.step.cur { background: var(--c-primary); color: #fff; font-weight: 700; }
.step.won { background: var(--c-ok); color: #fff; font-weight: 700; }
.step.lost { background: var(--c-danger-soft); color: var(--c-danger); border-color: rgba(214, 69, 69, .35); }
.step-line { width: 14px; height: 2px; background: var(--c-line); flex: none; }
.step-line.done { background: var(--c-primary); }

.stage-list { padding: 6px 18px 14px; }
.stage-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px dashed var(--c-line-2); }
.stage-row:last-child { border-bottom: none; }
.stage-idx { width: 22px; height: 22px; border-radius: 50%; background: var(--c-line-2); color: var(--c-text-2); display: flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.stage-name { flex: 1; font-weight: 600; font-size: 13.5px; min-width: 0; }
.stage-st { font-size: 11.5px; color: var(--c-text-3); background: var(--c-line-2); padding: 2px 9px; border-radius: 12px; }
.stage-st.st-doing { background: var(--c-info-soft); color: var(--c-info); }
.stage-st.st-done { background: var(--c-ok-soft); color: var(--c-ok); }

.task-list { padding: 6px 18px 14px; }
.task-row { display: flex; align-items: center; gap: 11px; padding: 9px 6px; border-bottom: 1px dashed var(--c-line-2); }
.task-row:last-child { border-bottom: none; }
.task-body { flex: 1; min-width: 0; }
.task-body b { display: block; font-size: 13.5px; }
.task-body small { color: var(--c-text-3); font-size: 11.5px; }
.task-st { font-size: 11.5px; padding: 2px 9px; border-radius: 12px; flex: none; white-space: nowrap; }
.task-st.t-0 { background: var(--c-line-2); color: var(--c-text-3); }
.task-st.t-1 { background: var(--c-info-soft); color: var(--c-info); }
.task-st.t-2 { background: var(--c-ok-soft); color: var(--c-ok); }

.tab-addbar { display: flex; gap: 8px; align-items: center; padding: 12px 18px; border-bottom: 1px dashed var(--c-line-2); flex-wrap: wrap; }
.tab-addbar .fld-ctl { flex: 1; min-width: 130px; }
.tab-addbar .fld-ctl.w-90, .tab-addbar .fld-ctl.w-130, .tab-addbar .fld-ctl.w-140 { flex: 0 0 auto; }
.tab-addbar .fld-ctl input, .tab-addbar .fld-ctl select { height: 32px; font-size: 12.5px; }
.tab-addbar .btn { flex: none; }
.up-file input[type="file"] { font-size: 12.5px; }
.items-box .item-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.items-box .item-row .fld-ctl { margin: 0; }
.items-box .item-row .fld-ctl:first-child { flex: 1.6; }
.items-box .item-row .fld-ctl:nth-child(2) { flex: 0 0 130px; }
.items-box .item-row .fld-ctl:nth-child(3) { flex: 0 0 120px; }
.items-box .item-row .fld-ctl:nth-child(4) { flex: 1; }
.items-box .item-del { flex: none; color: var(--c-text-3); }
.items-box .item-del:hover { background: var(--c-danger-soft); color: var(--c-danger); }

.doc-list { padding: 8px 18px 14px; }
.doc-list-page { padding: 14px 18px; }
.doc-row { display: flex; align-items: center; gap: 11px; padding: 10px 4px; border-bottom: 1px dashed var(--c-line-2); }
.doc-row:last-child { border-bottom: none; }
.doc-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--c-primary-soft); color: var(--c-primary); display: flex; align-items: center; justify-content: center; flex: none; }
.doc-ic .ic { width: 17px; height: 17px; }
.doc-body { flex: 1; min-width: 0; }
.doc-body b { display: block; font-size: 13.5px; }
.doc-body small { color: var(--c-text-3); font-size: 11.5px; }
.doc-body small a { color: var(--c-text-2); }
.doc-body small a:hover { color: var(--c-primary); }

.pj-on { background: var(--c-primary-soft); color: var(--c-primary-h); }
.tl-del.on { opacity: 1; }
.accept-acts { display: inline-flex; gap: 6px; margin-left: auto; }
.w-120.tab-addbar-none { width: 120px; }

/* ================= 三期：审批 / 考勤 ================= */
.tabs-page { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs-page .chip .ic { width: 14px; height: 14px; }
.nav-dot { font-style: normal; min-width: 17px; height: 17px; padding: 0 4px; background: var(--c-danger); color: #fff; border-radius: 20px; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; margin-left: auto; }
.nav-badge + .nav-dot, .nav-dot:not([hidden]) + .acc-ic { margin-left: 6px; }
.nav-item .nav-dot-n { font-style: normal; margin-left: auto; min-width: 17px; height: 17px; padding: 0 4px; background: var(--c-danger); color: #fff; border-radius: 20px; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
.act-ic.c-danger-act { background: var(--c-danger-soft); color: var(--c-danger); }

.clock-card { display: flex; align-items: stretch; gap: 22px; padding: 24px; flex: 1; }
.clock-side { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.clock-div { width: 1px; align-self: stretch; background: var(--c-line); }
.clock-big { font-size: 36px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--c-text); }
.clock-label { color: var(--c-text-3); font-size: 12px; margin-bottom: 4px; }
.clock-stat { width: 320px; margin-bottom: 0; }

/* ================= 人员多选器 ================= */
.mselect { position: relative; }
.ms-trigger {
  min-height: 36px; border: 1px solid var(--c-line); border-radius: var(--r-sm);
  background: var(--c-card); padding: 4px 30px 4px 8px; cursor: pointer;
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center; position: relative;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.ms-trigger:hover { border-color: #C8D2CE; }
.mselect.open .ms-trigger { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-ring); }
.ms-trigger > .chev { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--c-text-3); pointer-events: none; transition: transform var(--tr); }
.mselect.open .ms-trigger > .chev { transform: translateY(-50%) rotate(180deg); }
.ms-placeholder { color: var(--c-text-3); font-size: 13px; }
.ms-chips { display: contents; }
.ms-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--c-primary-soft); color: var(--c-primary-h); border-radius: 14px; padding: 2.5px 9px; font-size: 12px; font-weight: 600; }
.ms-x { font-style: normal; cursor: pointer; font-weight: 700; line-height: 1; padding: 0 1px; }
.ms-x:hover { color: var(--c-danger); }
.ms-panel { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 95; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--sh-lg); animation: dropIn .14s ease; }
.ms-search { padding: 8px; border-bottom: 1px solid var(--c-line-2); }
.ms-search input { width: 100%; height: 30px; border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: 0 9px; font-size: 12.5px; font-family: inherit; outline: none; transition: border-color var(--tr); }
.ms-search input:focus { border-color: var(--c-primary); }
.ms-list { max-height: 352px; overflow-y: auto; padding: 5px; }
.ms-item { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: var(--r-sm); cursor: pointer; font-size: 13px; transition: background var(--tr); }
.ms-item:hover { background: var(--c-primary-softer); }
.ms-item input { accent-color: var(--c-primary); flex: none; }
.ms-item .av { width: 24px; height: 24px; font-size: 11px; }
.ms-name { flex: 1; }
.ms-empty { padding: 18px; text-align: center; color: var(--c-text-3); font-size: 12px; }

/* ================= 响应式兜底 ================= */
@media (max-width: 1180px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1, .detail-grid { grid-template-columns: 1fr; }
  .top-search { width: 200px; }
}
@media (max-width: 900px) {
  body:not(.side-collapsed) .sidebar { width: var(--side-w-min); }
  body:not(.side-collapsed) .logo { width: 44px; height: 44px; margin: 8px auto 4px; padding: 0; justify-content: center; border-radius: 11px; }
  body:not(.side-collapsed) .nav-label, body:not(.side-collapsed) .logo-text { display: none; }
  .content { padding: 16px 14px 30px; }
  .page-head { flex-direction: column; }
  .form-grid, .dl-grid, .ct-grid { grid-template-columns: 1fr; }
}

/* ================= 主题色（html[data-theme]） ================= */
html[data-theme="ocean"] {
  --c-primary: #1472C8; --c-primary-h: #0F61B2; --c-primary-a: #0C4E94;
  --c-primary-soft: #E1EFFB; --c-primary-softer: #F0F6FD; --c-primary-bd: rgba(20, 114, 200, .4);
  --c-accent: #1FB1C4; --c-accent-h: #1593A4; --c-accent-soft: #DFF5F8; --c-accent-bd: rgba(31, 177, 196, .42);
  --c-gold: #1FB1C4; --c-gold-h: #1593A4; --c-gold-soft: #DFF5F8;
  --c-sidebar: #14273C; --c-sidebar-deep: #0D1A2A;
  --c-side-text: #8FA3C2; --c-side-text-h: #D9E3F3;
  --c-logo-a: #1472C8; --c-logo-b: #0C4E94; --c-logo-border: rgba(31, 177, 196, .5);
  --c-side-on-bg: rgba(31, 177, 196, .14); --c-side-bar-glow: rgba(31, 177, 196, .7);
  --c-ring: rgba(20, 114, 200, .13); --c-ring-strong: rgba(20, 114, 200, .24);
  --c-stat-wash: rgba(20, 114, 200, .05);
}
html[data-theme="violet"] {
  --c-primary: #8344E0; --c-primary-h: #6F35C9; --c-primary-a: #5B28A9;
  --c-primary-soft: #EFE7FC; --c-primary-softer: #F7F2FE; --c-primary-bd: rgba(131, 68, 224, .4);
  --c-accent: #E36BA8; --c-accent-h: #C94F8E; --c-accent-soft: #FCE8F1; --c-accent-bd: rgba(227, 107, 168, .42);
  --c-gold: #E36BA8; --c-gold-h: #C94F8E; --c-gold-soft: #FCE8F1;
  --c-sidebar: #241A39; --c-sidebar-deep: #181126;
  --c-side-text: #A396C6; --c-side-text-h: #E2DAF4;
  --c-logo-a: #8344E0; --c-logo-b: #5B28A9; --c-logo-border: rgba(227, 107, 168, .5);
  --c-side-on-bg: rgba(227, 107, 168, .15); --c-side-bar-glow: rgba(227, 107, 168, .7);
  --c-ring: rgba(131, 68, 224, .13); --c-ring-strong: rgba(131, 68, 224, .24);
  --c-stat-wash: rgba(131, 68, 224, .05);
}
html[data-theme="rose"] {
  --c-primary: #C73455; --c-primary-h: #B02A48; --c-primary-a: #93223C;
  --c-primary-soft: #FBE5EA; --c-primary-softer: #FDF1F4; --c-primary-bd: rgba(199, 52, 85, .4);
  --c-accent: #EFA13F; --c-accent-h: #D6872A; --c-accent-soft: #FDF1DC; --c-accent-bd: rgba(239, 161, 63, .42);
  --c-gold: #EFA13F; --c-gold-h: #D6872A; --c-gold-soft: #FDF1DC;
  --c-sidebar: #2B1820; --c-sidebar-deep: #1D1015;
  --c-side-text: #C49AA9; --c-side-text-h: #F1DCE5;
  --c-logo-a: #C73455; --c-logo-b: #93223C; --c-logo-border: rgba(239, 161, 63, .5);
  --c-side-on-bg: rgba(239, 161, 63, .15); --c-side-bar-glow: rgba(239, 161, 63, .7);
  --c-ring: rgba(199, 52, 85, .13); --c-ring-strong: rgba(199, 52, 85, .24);
  --c-stat-wash: rgba(199, 52, 85, .05);
}
html[data-theme="sky"] {
  --c-primary: #0A7899; --c-primary-h: #086480; --c-primary-a: #065168;
  --c-primary-soft: #DFF2F8; --c-primary-softer: #EFF9FC; --c-primary-bd: rgba(10, 120, 153, .4);
  --c-accent: #3FAE68; --c-accent-h: #2E954F; --c-accent-soft: #E4F6EA; --c-accent-bd: rgba(63, 174, 104, .42);
  --c-gold: #3FAE68; --c-gold-h: #2E954F; --c-gold-soft: #E4F6EA;
  --c-sidebar: #0F232D; --c-sidebar-deep: #08161D;
  --c-side-text: #92AEBB; --c-side-text-h: #DBECF2;
  --c-logo-a: #0A7899; --c-logo-b: #065168; --c-logo-border: rgba(63, 174, 104, .5);
  --c-side-on-bg: rgba(63, 174, 104, .15); --c-side-bar-glow: rgba(63, 174, 104, .7);
  --c-ring: rgba(10, 120, 153, .13); --c-ring-strong: rgba(10, 120, 153, .24);
  --c-stat-wash: rgba(10, 120, 153, .05);
}
html[data-theme="emerald"] {
  --c-primary: #0B8352; --c-primary-h: #096E44; --c-primary-a: #075837;
  --c-primary-soft: #DFF3E8; --c-primary-softer: #EFFAF4; --c-primary-bd: rgba(11, 131, 82, .4);
  --c-accent: #E9A73E; --c-accent-h: #D08E24; --c-accent-soft: #FCF1DC; --c-accent-bd: rgba(233, 167, 62, .42);
  --c-gold: #E9A73E; --c-gold-h: #D08E24; --c-gold-soft: #FCF1DC;
  --c-sidebar: #10281E; --c-sidebar-deep: #0A1B13;
  --c-side-text: #8FB3A2; --c-side-text-h: #D8ECE2;
  --c-logo-a: #0B8352; --c-logo-b: #075837; --c-logo-border: rgba(233, 167, 62, .5);
  --c-side-on-bg: rgba(233, 167, 62, .14); --c-side-bar-glow: rgba(233, 167, 62, .7);
  --c-ring: rgba(11, 131, 82, .13); --c-ring-strong: rgba(11, 131, 82, .24);
  --c-stat-wash: rgba(11, 131, 82, .05);
}
html[data-theme="amber"] {
  --c-primary: #AC5A10; --c-primary-h: #964C0C; --c-primary-a: #7C3D08;
  --c-primary-soft: #FBEADB; --c-primary-softer: #FDF4EA; --c-primary-bd: rgba(172, 90, 16, .4);
  --c-accent: #239E8C; --c-accent-h: #1B8272; --c-accent-soft: #DFF3F0; --c-accent-bd: rgba(35, 158, 140, .42);
  --c-gold: #239E8C; --c-gold-h: #1B8272; --c-gold-soft: #DFF3F0;
  --c-sidebar: #2B1F12; --c-sidebar-deep: #1D140B;
  --c-side-text: #C0A88B; --c-side-text-h: #F0E2CE;
  --c-logo-a: #AC5A10; --c-logo-b: #7C3D08; --c-logo-border: rgba(35, 158, 140, .5);
  --c-side-on-bg: rgba(35, 158, 140, .14); --c-side-bar-glow: rgba(35, 158, 140, .7);
  --c-ring: rgba(172, 90, 16, .14); --c-ring-strong: rgba(172, 90, 16, .25);
  --c-stat-wash: rgba(172, 90, 16, .06);
}
html[data-theme="crimson"] {
  --c-primary: #C42F3E; --c-primary-h: #AB2532; --c-primary-a: #8E1C28;
  --c-primary-soft: #FAE4E6; --c-primary-softer: #FDF1F2; --c-primary-bd: rgba(196, 47, 62, .4);
  --c-accent: #E29A38; --c-accent-h: #C68027; --c-accent-soft: #FBF0DC; --c-accent-bd: rgba(226, 154, 56, .42);
  --c-gold: #E29A38; --c-gold-h: #C68027; --c-gold-soft: #FBF0DC;
  --c-sidebar: #291417; --c-sidebar-deep: #1B0D0F;
  --c-side-text: #C2989E; --c-side-text-h: #F2DBDE;
  --c-logo-a: #C42F3E; --c-logo-b: #8E1C28; --c-logo-border: rgba(226, 154, 56, .5);
  --c-side-on-bg: rgba(226, 154, 56, .15); --c-side-bar-glow: rgba(226, 154, 56, .7);
  --c-ring: rgba(196, 47, 62, .13); --c-ring-strong: rgba(196, 47, 62, .24);
  --c-stat-wash: rgba(196, 47, 62, .05);
}
html[data-theme="navy"] {
  --c-primary: #30549E; --c-primary-h: #274483; --c-primary-a: #1D3467;
  --c-primary-soft: #E4EAF7; --c-primary-softer: #F0F3FB; --c-primary-bd: rgba(48, 84, 158, .4);
  --c-accent: #C89B3C; --c-accent-h: #AE8429; --c-accent-soft: #F7EFDC; --c-accent-bd: rgba(200, 155, 60, .42);
  --c-gold: #C89B3C; --c-gold-h: #AE8429; --c-gold-soft: #F7EFDC;
  --c-sidebar: #14203A; --c-sidebar-deep: #0C1526;
  --c-side-text: #8C9BC0; --c-side-text-h: #DCE3F2;
  --c-logo-a: #30549E; --c-logo-b: #1D3467; --c-logo-border: rgba(200, 155, 60, .5);
  --c-side-on-bg: rgba(200, 155, 60, .15); --c-side-bar-glow: rgba(200, 155, 60, .7);
  --c-ring: rgba(48, 84, 158, .13); --c-ring-strong: rgba(48, 84, 158, .24);
  --c-stat-wash: rgba(48, 84, 158, .05);
}
html[data-theme="graphite"] {
  --c-primary: #4E5D6C; --c-primary-h: #3D4A57; --c-primary-a: #2E3843;
  --c-primary-soft: #E8ECF0; --c-primary-softer: #F3F5F7; --c-primary-bd: rgba(78, 93, 108, .4);
  --c-accent: #7C8B9D; --c-accent-h: #667587; --c-accent-soft: #EDF1F5; --c-accent-bd: rgba(124, 139, 157, .42);
  --c-gold: #7C8B9D; --c-gold-h: #667587; --c-gold-soft: #EDF1F5;
  --c-sidebar: #1F2429; --c-sidebar-deep: #14181C;
  --c-side-text: #9AA5AF; --c-side-text-h: #E2E7EC;
  --c-logo-a: #4E5D6C; --c-logo-b: #2E3843; --c-logo-border: rgba(124, 139, 157, .5);
  --c-side-on-bg: rgba(124, 139, 157, .15); --c-side-bar-glow: rgba(124, 139, 157, .7);
  --c-ring: rgba(78, 93, 108, .13); --c-ring-strong: rgba(78, 93, 108, .24);
  --c-stat-wash: rgba(78, 93, 108, .05);
}

/* ================= 工作区背景色调（html[data-bg]） ================= */
html[data-bg="pure"] { --c-bg: #FAFBFC; }
html[data-bg="warm"] { --c-bg: #F7F4EE; }
html[data-bg="mist"] { --c-bg: #EEF2F8; }
html[data-bg="sand"] { --c-bg: #F0E5D0; }
html[data-bg="sage"] { --c-bg: #E3EBDF; }
html[data-bg="dusk"] { --c-bg: #DDE5F3; }
html[data-bg="blush"] { --c-bg: #F5E3E7; }
html[data-bg="iron"] { --c-bg: #E3E7EB; }

/* ================= 浅色侧栏（html[data-side="light"]） ================= */
html[data-side="light"] .sidebar { background: #FBFCFD; border-right: 1px solid var(--c-line); }
html[data-side="light"] .nav-item { color: var(--c-text-2); }
html[data-side="light"] .nav-item:hover { background: var(--c-primary-softer); color: var(--c-primary-h); }
html[data-side="light"] .nav-item.active { background: var(--c-primary-soft); color: var(--c-primary-h); }
html[data-side="light"] .nav-item.active::before { background: var(--c-accent); box-shadow: none; }
html[data-side="light"] .nav-item.disabled { color: #B9C4BF; }
html[data-side="light"] .nav-item.disabled:hover { background: rgba(0, 0, 0, .03); color: #B9C4BF; }
html[data-side="light"] .nav-sub-head { color: var(--c-text-2); }
html[data-side="light"] .nav-sub-head:hover { background: var(--c-primary-softer); color: var(--c-text); }
html[data-side="light"] .nav-badge { color: #B07914; background: rgba(240, 163, 47, .14); border-color: rgba(217, 138, 43, .4); }
html[data-side="light"] .side-foot { color: var(--c-text-3); border-top-color: var(--c-line); }

/* ================= 偏好设置弹窗控件 ================= */
.pf-label { font-size: 12.5px; font-weight: 700; color: var(--c-text-2); margin: 16px 0 9px; display: flex; align-items: center; gap: 7px; }
.pf-label:first-child { margin-top: 2px; }
.pf-label .pf-hint { font-weight: 400; color: var(--c-text-3); font-size: 11.5px; margin-left: auto; }
.swatch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  border: 2px solid transparent; padding: 0; background: none;
  box-shadow: var(--sh-sm); transition: transform var(--tr), box-shadow var(--tr);
  display: inline-flex; align-items: center; justify-content: center;
}
.swatch:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.swatch.on { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-ring); }
.swatch .sw-inner { width: 28px; height: 28px; border-radius: 8px; display: block; }
.swatch .sw-check { color: #fff; display: none; }
.swatch.on .sw-check { display: block; }
.seg { display: inline-flex; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button {
  border: none; background: transparent; padding: 6px 14px; border-radius: 6px;
  font-size: 12.5px; cursor: pointer; color: var(--c-text-2); font-family: inherit;
  transition: all var(--tr); white-space: nowrap;
}
.seg button:hover { color: var(--c-text); }
.seg button.on { background: var(--c-card); color: var(--c-primary); font-weight: 700; box-shadow: var(--sh-sm); }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl { position: absolute; inset: 0; background: #C9D3CE; border-radius: 24px; cursor: pointer; transition: background var(--tr); }
.switch .sl::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: var(--sh-sm); transition: transform var(--tr); }
.switch input:checked + .sl { background: var(--c-primary); }
.switch input:checked + .sl::before { transform: translateX(18px); }
.pf-line { display: flex; align-items: center; gap: 10px; }
.pf-line .pf-desc { font-size: 13px; color: var(--c-text-2); }

/* 全局提醒弹窗（notify.js） */
.notify-stack { position: fixed; right: 18px; bottom: 18px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.notify-pop { min-width: 240px; max-width: 320px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-sm, 8px); box-shadow: 0 8px 28px rgba(0,0,0,.16); padding: 10px 14px; cursor: pointer; animation: np-in .25s ease; transition: opacity .3s, transform .3s; }
.notify-pop.out { opacity: 0; transform: translateY(8px); }
.notify-pop .np-t { font-weight: 700; font-size: 13px; margin-bottom: 2px; display: flex; align-items: center; gap: 7px; }
.notify-pop .np-t::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); flex: none; }
.notify-pop.msg .np-t::before { background: #2FA36B; }
.notify-pop.appr .np-t::before { background: var(--c-primary); }
.notify-pop .np-b { font-size: 12.5px; color: var(--c-text-2); word-break: break-all; }
@keyframes np-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }


/* ================= 组织架构 · 部门总览面板 ================= */
.org-tree { padding: 6px 18px 4px; }
.org-node { margin: 2px 0; }
.org-node-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; font-size: 13px; color: var(--c-text); }
.org-node-row:hover { background: var(--c-primary-softer); }
.org-node.on .org-node-row { background: var(--c-primary-soft); border-color: var(--c-primary-bd); color: var(--c-primary); font-weight: 700; }
.org-ic { display: inline-flex; width: 15px; height: 15px; flex: none; opacity: .75; }
.org-ic svg { width: 15px; height: 15px; }
.org-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-name-dim { color: var(--c-text-3); }
.org-node.on .org-name-dim { color: var(--c-primary); }
.org-n { flex: none; font-size: 11.5px; color: var(--c-text-3); background: var(--c-line-2); border-radius: 10px; padding: 1px 8px; }
.org-node.on .org-n { background: transparent; border: 1px solid var(--c-primary-bd); color: var(--c-primary); }

.dept-panel { padding: 4px 18px 12px; border-top: 1px dashed var(--c-line-2); }
.panel-cap { font-size: 12px; font-weight: 700; color: var(--c-text-3); letter-spacing: .04em; padding: 10px 0 6px; }
.panel-cap-sub { font-weight: 400; margin-left: 8px; opacity: .8; }
.dept-form .fld { margin-bottom: 8px; }
.dept-form .fld-label { font-size: 12px; margin-bottom: 3px; display: block; color: var(--c-text-2); }
.dept-form .fld-ctl { width: 100%; }
.dept-form .fld-ctl input, .dept-form .fld-ctl select { width: 100%; }

.dept-members { display: flex; flex-direction: column; gap: 6px; }
.member-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--c-line-2); border-radius: 9px; background: transparent; cursor: pointer; font-size: 13px; color: var(--c-text); }
.member-row:hover { border-color: var(--c-primary-bd); background: var(--c-primary-softer); }
.member-row[data-off="1"] { opacity: .55; }
.member-name { flex: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.member-sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text-3); font-size: 12px; }
.member-go { flex: none; display: inline-flex; width: 13px; height: 13px; opacity: .45; }
.member-go svg { width: 13px; height: 13px; }
.member-row:hover .member-go { opacity: 1; color: var(--c-primary); }
.member-empty { font-size: 12px; color: var(--c-text-3); padding: 10px; border: 1px dashed var(--c-line-2); border-radius: 9px; text-align: center; }
