/* ============================================================
   华中工作助手 · 薄荷绿 / 奶油白 视觉系统
   ============================================================ */
:root {
  --mint-900: #0f4d40;
  --mint-800: #155f4f;
  --mint-700: #1b715c;
  --mint-600: #238a70;
  --mint-500: #2fa98c;
  --mint-400: #57bda2;
  --mint-300: #8fd9c3;
  --mint-200: #b9e6d8;
  --mint-100: #e4f5ee;
  --mint-50: #f1faf6;
  --cream: #f7f2e7;
  --cream-2: #fbf7ef;
  --paper: #fffdf8;
  --ink: #263a33;
  --ink-2: #41564d;
  --muted: #6f8178;
  --faint: #9aaba2;
  --line: rgba(31, 88, 70, .1);
  --line-soft: rgba(31, 88, 70, .06);
  --coral: #ef8a62;
  --coral-soft: #fdece4;
  --yellow: #f2c15c;
  --yellow-soft: #fdf4dd;
  --lav: #9b8ae6;
  --lav-soft: #efecfb;
  --blue: #6fb3d9;
  --blue-soft: #e8f4fa;
  --pink: #ef9db4;
  --pink-soft: #fdeff3;
  --red: #e36f62;
  --red-soft: #fdeceb;
  --green: #4cae8f;
  --shadow-sm: 0 2px 8px rgba(34, 88, 72, .05);
  --shadow: 0 10px 28px rgba(34, 88, 72, .08);
  --shadow-lg: 0 24px 60px rgba(34, 88, 72, .14);
  --r-xl: 26px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-hand: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "STSong", serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.bg-wash {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(56% 44% at 88% -6%, rgba(143, 217, 195, .52), transparent 62%),
    radial-gradient(42% 34% at 104% 26%, rgba(242, 193, 92, .14), transparent 70%),
    radial-gradient(48% 42% at 4% 100%, rgba(185, 230, 216, .7), transparent 70%),
    linear-gradient(168deg, #faf6ec 0%, #f7f2e7 40%, #eef7f1 72%, #e4f3ea 100%);
}
.bg-landscape {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; height: 48vh;
  pointer-events: none; overflow: hidden;
}
.bg-landscape svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.bg-landscape::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247, 242, 231, .5) 0%, rgba(247, 242, 231, 0) 45%);
}
.bg-wash::after {
  content: ""; position: absolute; inset: 0; opacity: .26; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

/* ============================== 外壳 ============================== */
.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20;
  width: 180px; display: flex; flex-direction: column;
  padding: 20px 12px 12px;
  color: #eaf8f2;
  background: linear-gradient(178deg, #34b394 0%, #24957b 28%, #187660 58%, #115345 100%);
  box-shadow: 18px 0 46px rgba(17, 83, 69, .16);
  overflow: hidden;
}
.sidebar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 30% at 12% 4%, rgba(255, 255, 255, .18), transparent 60%),
    radial-gradient(50% 26% at 90% 24%, rgba(255, 255, 255, .08), transparent 70%);
}
.profile {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 4px 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(145deg, #fff9ec, #ffe9bd);
  color: var(--mint-700); font-weight: 800; font-size: 18px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .22), 0 8px 18px rgba(9, 50, 40, .24);
}
.profile-text { min-width: 0; }
.profile-text b { display: block; font-size: 15px; letter-spacing: .4px; color: #fff; white-space: nowrap; }
.profile-text span { display: block; margin-top: 4px; font-size: 10.5px; letter-spacing: 2.2px; color: rgba(255, 255, 255, .62); white-space: nowrap; }

.nav { position: relative; flex: 1 1 auto; min-height: 0; padding: 12px 2px 8px; overflow-y: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-group { margin: 14px 0 6px; padding: 0 12px; font-size: 10.5px; letter-spacing: 2px; color: rgba(255, 255, 255, .45); }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: 36px; margin: 2px 0; padding: 0 8px; border-radius: 12px;
  color: rgba(255, 255, 255, .82); font-size: 13px;
  transition: background .18s, color .18s, transform .18s;
  cursor: pointer; white-space: nowrap;
}
.nav-item .ico { width: 17px; height: 17px; opacity: .9; }
.nav-item:hover { background: rgba(255, 255, 255, .1); color: #fff; transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 46%, #ffe9bd 100%);
  color: var(--mint-900); font-weight: 700;
  box-shadow: 0 12px 26px rgba(6, 40, 32, .3), 0 0 0 1px rgba(255, 255, 255, .38),
    inset 3px 0 0 var(--mint-500), inset 0 1px 0 rgba(255, 255, 255, .9);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.nav-item.active::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 46%);
}
.nav-item.active .ico { opacity: 1; color: var(--mint-700); }
.nav-item .badge {
  margin-left: auto; padding: 2px 7px; border-radius: 99px;
  font-size: 10px; font-weight: 700; color: var(--mint-800);
  background: rgba(255, 255, 255, .82);
}
.nav-item.active .badge { background: var(--mint-100); }
.nav-item .mini { margin-left: auto; font-size: 10px; color: rgba(255,255,255,.42); }
.nav-item.active .mini { color: var(--mint-600); }

.side-scene { position: relative; margin-top: auto; padding-top: 10px; flex: 0 0 auto; }
.side-scene svg { width: 100%; height: 86px; opacity: .95; }
.side-note {
  position: relative; margin: -4px 6px 4px; padding: 8px 10px 8px 12px;
  background: #fff9e9; color: #6b5a3c; border-radius: 4px 12px 12px 4px;
  box-shadow: 0 10px 22px rgba(9, 50, 40, .18);
  transform: rotate(-1.4deg);
}
.side-note::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--yellow); border-radius: 4px 0 0 4px;
}
.side-note span { display: block; font-family: var(--font-hand); font-size: 13.5px; line-height: 1.7; }
.side-note i { display: block; margin-top: 4px; font-style: normal; font-size: 10px; color: #a39170; text-align: right; white-space: nowrap; }

.stage {
  position: relative; flex: 1; min-width: 0; max-width: 1680px;
  margin-left: 180px; padding: 24px 34px 36px;
}
.stage-scene {
  position: absolute; top: 0; left: 0; right: 0; height: 300px;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.stage-scene svg { position: absolute; right: -30px; top: -16px; width: min(1240px, 104%); height: 300px; opacity: .96; }
.stage-scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247, 242, 231, 0) 40%, rgba(247, 242, 231, .92) 88%, var(--cream) 100%);
}

.topbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 8px 2px 20px;
}
.headline { min-width: 0; }
.headline h1 {
  font-family: var(--font-display); font-size: 40px; font-weight: 800;
  letter-spacing: 1.5px; line-height: 1.12; color: #1f342d;
}
.headline p { margin-top: 9px; font-size: 13px; color: #6b7f75; letter-spacing: .3px; }
.top-actions { display: flex; align-items: center; gap: 10px; padding-top: 0; flex-wrap: wrap; justify-content: flex-end; }
.search {
  display: flex; align-items: center; gap: 8px; width: 260px; height: 40px;
  padding: 0 12px; border-radius: 999px;
  background: rgba(255, 253, 248, .86); border: 1px solid rgba(31, 88, 70, .1);
  box-shadow: var(--shadow-sm); color: var(--muted);
  transition: width .2s, border-color .2s;
}
.search:focus-within { border-color: var(--mint-300); width: 320px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12.5px; color: var(--ink); }
.search input::placeholder { color: #9aaba2; }
.search kbd {
  padding: 2px 6px; border-radius: 6px; font-size: 10px; color: #9aaba2;
  background: var(--mint-50); border: 1px solid var(--line);
}
.date-chip {
  height: 40px; padding: 0 2px; display: flex; align-items: center; gap: 7px;
  background: transparent; border: 0; box-shadow: none;
  font-size: 12px; color: var(--ink-2); white-space: nowrap; letter-spacing: .2px;
}
.date-chip b { color: var(--ink); font-weight: 700; }
.date-chip .time { font-family: var(--font-num); font-weight: 700; color: var(--mint-700); }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 253, 248, .82); border: 1px solid var(--line);
  color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: background .18s, transform .18s;
}
.icon-btn:hover { background: #fff; transform: translateY(-1px); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--paper); }
.auth-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--mint-500), var(--mint-700));
  box-shadow: 0 8px 20px rgba(35, 138, 112, .28);
  white-space: nowrap;
}
.auth-btn:hover { filter: brightness(1.04); }
.user-chip {
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 6px;
  border-radius: 999px; background: rgba(255, 253, 248, .9);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  cursor: pointer; position: relative;
}
.user-chip .u-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--mint-200), var(--mint-400));
  color: #fff; font-size: 12px; font-weight: 800;
}
.user-chip .u-meta { line-height: 1.15; }
.user-chip .u-meta b { display: block; font-size: 12px; color: var(--ink); }
.user-chip .u-meta span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.user-menu {
  position: absolute; top: 52px; right: 0; width: 200px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); z-index: 80; display: none;
}
.user-menu.show { display: block; }
.user-menu .um-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.user-menu .um-head b { display: block; font-size: 13px; }
.user-menu .um-head span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.user-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px;
  border-radius: 9px; font-size: 12.5px; color: var(--ink-2); text-align: left;
}
.user-menu button:hover { background: var(--mint-50); color: var(--mint-700); }

.view { position: relative; z-index: 2; animation: rise .45s cubic-bezier(.22,.8,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.foot { position: relative; z-index: 2; margin-top: 26px; text-align: center; font-size: 10.5px; color: #a5b2aa; letter-spacing: 1px; }

/* ============================== 通用卡片 ============================== */
.card {
  position: relative; padding: 22px 24px;
  background: linear-gradient(176deg, #fffefa 0%, var(--paper) 60%, #fffbf2 100%);
  border: 1px solid rgba(31, 88, 70, .07);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .22s, transform .22s;
}
.card:hover { box-shadow: 0 16px 38px rgba(34, 88, 72, .11); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; letter-spacing: .3px; }
.card-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-400); box-shadow: 0 0 0 4px var(--mint-100); }
.card-title small { font-weight: 500; font-size: 10.5px; color: var(--faint); letter-spacing: .5px; }
.card-link { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--mint-600); font-weight: 600; white-space: nowrap; }
.card-link .ico { width: 13px; height: 13px; }
.card-link:hover { color: var(--mint-800); }

.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.tag.mint { background: var(--mint-100); color: var(--mint-700); }
.tag.coral { background: var(--coral-soft); color: #c96a45; }
.tag.yellow { background: var(--yellow-soft); color: #a9832b; }
.tag.blue { background: var(--blue-soft); color: #3d7fa5; }
.tag.lav { background: var(--lav-soft); color: #6d5cb8; }
.tag.pink { background: var(--pink-soft); color: #bf6a83; }
.tag.gray { background: #f1f3ef; color: #7d8b83; }
.tag.red { background: var(--red-soft); color: #c25548; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2px;
  transition: transform .18s, box-shadow .18s, background .18s;
  white-space: nowrap;
}
.btn .ico { width: 15px; height: 15px; }
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--mint-500), var(--mint-700)); box-shadow: 0 8px 20px rgba(35, 138, 112, .25); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(35, 138, 112, .32); }
.btn.soft { color: var(--mint-700); background: var(--mint-100); }
.btn.soft:hover { background: var(--mint-200); }
.btn.ghost { color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--mint-300); color: var(--mint-700); }
.btn.sm { height: 30px; padding: 0 11px; border-radius: 9px; font-size: 11px; }
.btn.block { width: 100%; height: 44px; }

/* ============================== 首页 ============================== */
.hero-line {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 16px; padding: 0 2px; flex-wrap: wrap;
}
.hero-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 3px;
  border-radius: 0; font-size: 11px; color: var(--ink-2);
  background: transparent; border: 0;
}
.hero-chip + .hero-chip::before { content: "·"; margin-right: 3px; color: #b6c4bc; }
.hero-chip .ico { width: 13px; height: 13px; color: var(--mint-600); }
.hero-chip b { color: var(--mint-700); }
.hero-note { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #7d8f85; }
.hero-note .ico { width: 14px; height: 14px; color: var(--yellow); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi {
  position: relative; display: flex; align-items: center; gap: 13px;
  padding: 16px 17px; min-height: 104px;
  background: linear-gradient(160deg, #fffefa, var(--paper));
  border: 1px solid rgba(31, 88, 70, .07); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; right: -26px; top: -30px; width: 110px; height: 110px;
  border-radius: 50%; background: var(--kpi-soft, var(--mint-100)); opacity: .55;
}
.kpi-ico {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center; flex: 0 0 auto; color: #fff;
  background: var(--kpi-color, var(--mint-500));
  box-shadow: 0 9px 20px color-mix(in srgb, var(--kpi-color, var(--mint-500)) 34%, transparent);
}
.kpi-ico .ico { width: 22px; height: 22px; stroke-width: 1.8; }
.kpi-body { position: relative; z-index: 1; min-width: 0; flex: 1; }
.kpi-label { font-size: 11.5px; color: var(--muted); letter-spacing: .3px; }
.kpi-num { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; font-family: var(--font-num); font-size: 27px; font-weight: 800; line-height: 1; color: #22372f; }
.kpi-num small { font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--muted); }
.kpi-sub { margin-top: 6px; font-size: 10px; color: var(--faint); white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.45; }
.kpi-ring { position: relative; z-index: 1; width: 46px; height: 46px; flex: 0 0 auto; }
.kpi-ring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.kpi-ring .track { fill: none; stroke: rgba(31, 88, 70, .08); stroke-width: 4; }
.kpi-ring .bar { fill: none; stroke: var(--kpi-color, var(--mint-500)); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.22,.8,.3,1); }
.kpi-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--ink-2); }

.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

/* 待办 */
.todo-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab {
  height: 27px; padding: 0 11px; border-radius: 999px; font-size: 11px; color: var(--muted);
  background: transparent; border: 1px solid transparent;
}
.tab:hover { background: var(--mint-50); color: var(--mint-700); }
.tab.active { background: var(--mint-600); color: #fff; box-shadow: 0 6px 14px rgba(35,138,112,.22); }
.todo-list { display: flex; flex-direction: column; }
.todo {
  display: flex; align-items: center; gap: 10px; min-height: 39px; padding: 5px 2px;
  border-bottom: 1px dashed rgba(31, 88, 70, .09);
}
.todo:last-child { border-bottom: 0; }
.check {
  width: 19px; height: 19px; border-radius: 6px; flex: 0 0 auto;
  border: 1.6px solid #c8d8d1; background: #fff;
  display: grid; place-items: center; color: transparent;
  transition: background .18s, border-color .18s, color .18s;
}
.check .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.check:hover { border-color: var(--mint-400); }
.todo.done .check { background: var(--mint-500); border-color: var(--mint-500); color: #fff; }
.todo-text { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.todo.done .todo-text { color: #a9b6af; text-decoration: line-through; }
.todo .tag { flex: 0 0 auto; }
.todo-time { width: 42px; flex: 0 0 auto; font-family: var(--font-num); font-size: 10.5px; color: var(--faint); text-align: right; }
.todo-del { display: none; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 6px; color: #b3bfb8; }
.todo:hover .todo-del { display: grid; }
.todo-del:hover { background: #f4eee4; color: var(--coral); }
.todo-del .ico { width: 11px; height: 11px; }
.todo-add { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--mint-600); font-weight: 700; }
.todo-add .ico { width: 13px; height: 13px; }
.todo-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 10.5px; color: var(--faint); }
.progress-line { flex: 1; height: 6px; border-radius: 99px; background: var(--mint-100); overflow: hidden; }
.progress-line i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mint-300), var(--mint-600)); transition: width .6s; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.quick {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  min-height: 84px; padding: 10px 4px; border-radius: 15px;
  background: var(--q-soft, var(--mint-50)); border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  text-align: center;
}
.quick:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: rgba(31,88,70,.08); }
.quick-ico {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: var(--q-color, var(--mint-500));
  box-shadow: 0 7px 14px color-mix(in srgb, var(--q-color, var(--mint-500)) 32%, transparent);
}
.quick-ico .ico { width: 17px; height: 17px; }
.quick span { font-size: 10.5px; color: var(--ink-2); font-weight: 600; line-height: 1.2; }

/* 招聘脉搏 */
.pulse-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.pulse-big { display: flex; align-items: baseline; gap: 6px; }
.pulse-big b { font-family: var(--font-num); font-size: 34px; line-height: 1; color: #22372f; }
.pulse-big span { font-size: 11px; color: var(--muted); }
.pulse-kpis { display: flex; gap: 16px; }
.pulse-kpi { text-align: right; }
.pulse-kpi b { display: block; font-family: var(--font-num); font-size: 14px; color: var(--ink); }
.pulse-kpi span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--faint); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; padding: 6px 2px 0; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.bar-item .bar {
  position: relative; width: 100%; max-width: 36px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--mint-300), var(--mint-500));
  transition: height .8s cubic-bezier(.22,.8,.3,1);
  min-height: 4px;
}
.bar-item:nth-child(2) .bar { background: linear-gradient(180deg, #f6d38b, var(--yellow)); }
.bar-item:nth-child(3) .bar { background: linear-gradient(180deg, #f7b9a1, var(--coral)); }
.bar-item:nth-child(4) .bar { background: linear-gradient(180deg, #c6bdf2, var(--lav)); }
.bar-item .bar b {
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-num); font-size: 9.5px; color: var(--ink-2); font-weight: 700;
}
.bar-item span { font-size: 9.5px; color: var(--faint); white-space: nowrap; }
.funnel { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.funnel-row { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); }
.funnel-row span { width: 52px; flex: 0 0 auto; }
.funnel-row .track { flex: 1; height: 8px; border-radius: 99px; background: #f1f4f0; overflow: hidden; }
.funnel-row .track i { display: block; height: 100%; border-radius: 99px; background: var(--f-color, var(--mint-400)); transition: width .8s; }
.funnel-row b { width: 30px; text-align: right; font-family: var(--font-num); font-size: 10.5px; color: var(--ink); }

/* 中心温度 */
.temp-hero { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.temp-big { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-num); font-size: 34px; font-weight: 800; color: #22372f; }
.temp-big small { font-family: var(--font); font-size: 12px; color: var(--muted); font-weight: 600; }
.temp-badge { padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.temp-list { display: flex; flex-direction: column; gap: 2px; }
.temp-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed rgba(31,88,70,.08); }
.temp-row:last-child { border-bottom: 0; }
.temp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-400); flex: 0 0 auto; }
.temp-row.hot .temp-dot { background: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.temp-row.warm .temp-dot { background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.temp-name { flex: 1; font-size: 11.5px; color: var(--ink-2); }
.temp-val { font-family: var(--font-num); font-size: 12px; font-weight: 700; color: var(--ink); }
.temp-trend { width: 54px; height: 8px; border-radius: 99px; background: #f1f4f0; overflow: hidden; }
.temp-trend i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint-300), var(--coral)); }

/* 提醒 / 备忘 / 绩效 / 习惯 / 心情 */
.remind-list { display: flex; flex-direction: column; }
.remind { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(31,88,70,.08); }
.remind.urgent {
  background: linear-gradient(90deg, rgba(239, 138, 98, .1), rgba(239, 138, 98, 0) 74%);
  border-radius: 10px; box-shadow: inset 2px 0 0 var(--coral);
  padding-left: 9px; padding-right: 6px; margin-left: -6px;
}
.remind.urgent .remind-time { color: #c25548; }
.remind:last-child { border-bottom: 0; }
.remind-time { width: 38px; flex: 0 0 auto; font-family: var(--font-num); font-size: 10.5px; color: var(--mint-700); font-weight: 700; padding-top: 1px; }
.remind-body { flex: 1; min-width: 0; }
.remind-body b { display: block; font-size: 11.8px; color: var(--ink-2); font-weight: 600; line-height: 1.45; }
.remind-body span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--faint); }

.notes { display: flex; flex-direction: column; gap: 8px; }
.note {
  position: relative; padding: 10px 12px 10px 14px; border-radius: 4px 12px 12px 4px;
  background: var(--n-bg, var(--mint-50)); border-left: 4px solid var(--n-color, var(--mint-400));
  font-size: 11px; line-height: 1.62; color: #52655c;
}
.note .note-del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; display: none; place-items: center; color: #a89880; border-radius: 6px; }
.note:hover .note-del { display: grid; }
.note .note-del:hover { background: rgba(0,0,0,.05); }
.note .note-del .ico { width: 11px; height: 11px; }
.note.coral { --n-bg: var(--coral-soft); --n-color: var(--coral); }
.note.yellow { --n-bg: var(--yellow-soft); --n-color: var(--yellow); }
.note.blue { --n-bg: var(--blue-soft); --n-color: var(--blue); }

.perf-donut { display: flex; align-items: center; gap: 16px; }
.donut-wrap { position: relative; width: 92px; height: 92px; flex: 0 0 auto; }
.donut-wrap svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: #eef2ee; stroke-width: 9; }
.donut-bar { fill: none; stroke: url(#donutGrad); stroke-width: 9; stroke-linecap: round; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-center b { font-family: var(--font-num); font-size: 21px; line-height: 1; color: #22372f; }
.donut-center span { display: block; font-size: 8.5px; color: var(--faint); margin-top: 2px; }
.perf-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.perf-rank { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); }
.perf-rank em { width: 14px; font-style: normal; font-family: var(--font-num); font-weight: 700; color: var(--faint); text-align: center; }
.perf-rank .name { width: 58px; color: var(--ink-2); flex: 0 0 auto; }
.perf-rank .track { flex: 1; height: 5px; border-radius: 99px; background: #f0f3ef; overflow: hidden; }
.perf-rank .track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mint-300), var(--mint-500)); }
.perf-rank b { width: 30px; text-align: right; font-family: var(--font-num); color: var(--ink); }

.habit-table { width: 100%; border-collapse: separate; border-spacing: 0 5px; }
.habit-table th { font-size: 9.5px; font-weight: 500; color: var(--faint); padding: 0 2px 3px; }
.habit-table th.today { color: var(--mint-700); font-weight: 800; }
.habit-table td { text-align: center; padding: 2px; }
.habit-name { text-align: left !important; font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.habit-day {
  width: 24px; height: 24px; border-radius: 50%; margin: 0 auto;
  display: grid; place-items: center; color: transparent;
  background: #f1f4f0; border: 1px solid transparent;
  transition: background .16s, color .16s;
}
.habit-day .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.habit-day.on { background: var(--mint-100); color: var(--mint-600); }
.habit-day.today { box-shadow: 0 0 0 2px var(--mint-200); }
.habit-day:hover { background: var(--mint-200); }
.mood-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mood-btn {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mood-bg, #f3f6f1); transition: transform .18s, box-shadow .18s;
}
.mood-btn:hover { transform: translateY(-2px); }
.mood-btn.active { box-shadow: 0 0 0 2px var(--mint-400), 0 8px 16px rgba(35,138,112,.16); background: var(--mint-100); }
.mood-btn svg { width: 28px; height: 28px; }
.mood-label { display: flex; justify-content: space-between; margin-top: 7px; font-size: 8.5px; color: var(--faint); }

/* ============================== 模块总览页 ============================== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .ph-title { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 800; letter-spacing: .5px; }
.page-head .ph-title .ph-ico { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--mint-100); color: var(--mint-700); }
.page-head .ph-sub { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat {
  padding: 17px 18px; border-radius: var(--r-md); background: var(--paper);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
}
.stat .s-label { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); }
.stat .s-label .ico { width: 13px; height: 13px; color: var(--s-color, var(--mint-500)); }
.stat .s-num { margin-top: 7px; font-family: var(--font-num); font-size: 23px; font-weight: 800; color: #22372f; }
.stat .s-num small { font-family: var(--font); font-size: 10px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.stat .s-sub { margin-top: 4px; font-size: 9.5px; color: var(--faint); }

.panel-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.panel-12 { grid-column: span 12; }
.panel-8 { grid-column: span 8; }
.panel-6 { grid-column: span 6; }
.panel-4 { grid-column: span 4; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 8px; text-align: left; font-size: 9.5px; font-weight: 600; color: var(--faint); border-bottom: 1px solid var(--line); letter-spacing: .4px; }
.data-table td { padding: 11px 8px; font-size: 11px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(228, 245, 238, .28); }
.data-table .num { font-family: var(--font-num); font-weight: 700; color: var(--ink); }
.data-table .right { text-align: right; }
.data-table .center { text-align: center; }
.mini-bar { display: inline-block; width: 58px; height: 5px; border-radius: 99px; background: #eef2ee; overflow: hidden; vertical-align: middle; margin-right: 5px; }
.mini-bar i { display: block; height: 100%; border-radius: 99px; background: var(--mint-400); }

.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 9.5px; color: var(--faint); }
.legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 36px 10px; color: var(--faint); font-size: 11.5px; }
.empty .ico { width: 30px; height: 30px; color: var(--mint-300); }

/* ============================== 贺书记库 ============================== */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  height: 30px; padding: 0 12px; border-radius: 999px; font-size: 11px; color: var(--muted);
  background: #fff; border: 1px solid var(--line);
}
.chip:hover { border-color: var(--mint-300); color: var(--mint-700); }
.chip.active { background: var(--mint-600); border-color: var(--mint-600); color: #fff; }
.lib-search { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); margin-left: auto; }
.lib-search input { border: 0; outline: 0; background: transparent; font-size: 11px; width: 150px; }
.lib-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 6px;
  border-bottom: 1px solid var(--line-soft);
}
.lib-row:last-child { border-bottom: 0; }
.lib-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; background: var(--l-soft, var(--mint-50)); color: var(--l-color, var(--mint-600)); }
.lib-ico .ico { width: 17px; height: 17px; }
.lib-main { flex: 1; min-width: 0; }
.lib-main b { display: block; font-size: 12px; color: var(--ink); font-weight: 700; }
.lib-main span { display: block; margin-top: 3px; font-size: 9.8px; color: var(--faint); }
.lib-meta { display: flex; gap: 14px; flex: 0 0 auto; }
.lib-meta div { text-align: right; }
.lib-meta b { display: block; font-family: var(--font-num); font-size: 12px; color: var(--ink-2); }
.lib-meta span { display: block; font-size: 9px; color: var(--faint); margin-top: 2px; }
.lib-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.lib-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--yellow-soft); font-size: 10.5px; line-height: 1.6; color: #8a713d; }
.lib-note .ico { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: #b68a3e; }

/* ============================== 弹窗 / Toast ============================== */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(22, 50, 41, .35); backdrop-filter: blur(8px);
  animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: 440px; max-width: 100%; max-height: 92vh; overflow: auto;
  background: var(--paper); border-radius: 24px; padding: 26px;
  box-shadow: var(--shadow-lg); animation: pop .3s cubic-bezier(.22,.9,.3,1.1) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal.small { width: 420px; }
.modal.wide { width: 860px; }
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.7);
}
.modal-x:hover { background: #fff; color: var(--ink); }
.modal h2 { font-size: 23px; font-weight: 800; letter-spacing: .6px; }
.modal h3 { font-size: 18px; font-weight: 800; letter-spacing: .4px; }
.modal-sub { margin: 7px 0 18px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.login-card { width: 450px; padding: 0 30px 24px; overflow: hidden; }
.login-hero { position: relative; height: 116px; margin: 0 -30px 18px; overflow: hidden; background: linear-gradient(180deg, #f2fbf7, #e8f6ef); }
.login-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-mark {
  position: absolute; left: 30px; bottom: 16px; width: 46px; height: 46px; border-radius: 15px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--mint-400), var(--mint-700));
  box-shadow: 0 10px 22px rgba(35,138,112,.3), inset 0 1px 0 rgba(255,255,255,.4);
}
.login-mark .ico { width: 22px; height: 22px; }
.login-card h2 { padding-left: 2px; }
.login-sub { padding-left: 2px; }
.field { display: block; margin-bottom: 13px; }
.field > span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; color: var(--ink-2); letter-spacing: .4px; }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 12px;
  border: 1px solid rgba(31,88,70,.14); background: #fff; outline: none;
  font-size: 13px; color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.field textarea { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--mint-400); box-shadow: 0 0 0 3px rgba(87,189,162,.16); }
.field input::placeholder, .field textarea::placeholder { color: #a9b6af; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 36px; cursor: pointer; }
.select-wrap .ico { position: absolute; right: 13px; top: 50%; transform: translateY(-50%) rotate(90deg); width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 42px; }
.pwd-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--faint); }
.pwd-eye:hover { background: var(--mint-50); color: var(--mint-600); }
.keep { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); user-select: none; margin-bottom: 8px; }
.keep input { display: none; }
.keep i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #c8d8d1; display: grid; place-items: center; background: #fff; }
.keep input:checked + i { background: var(--mint-500); border-color: var(--mint-500); }
.keep input:checked + i::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.login-msg { min-height: 16px; margin: 6px 0 8px; font-size: 10.5px; color: var(--red); }
.login-foot { margin-top: 14px; text-align: center; font-size: 9.5px; color: var(--faint); line-height: 1.6; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-row { display: flex; gap: 8px; margin: 2px 0 16px; }
.color-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; background: var(--mint-300); }
.color-dot.coral { background: var(--coral); }
.color-dot.yellow { background: var(--yellow); }
.color-dot.blue { background: var(--blue); }
.color-dot.active { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }

.preview-table { max-height: 58vh; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.preview-table table { width: 100%; border-collapse: collapse; font-size: 11px; }
.preview-table th { position: sticky; top: 0; background: var(--mint-50); padding: 8px 10px; text-align: left; font-size: 9.5px; color: var(--mint-700); white-space: nowrap; }
.preview-table td { padding: 7px 10px; border-top: 1px solid var(--line-soft); color: var(--ink-2); white-space: nowrap; }

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 200; transform: translate(-50%, 20px);
  padding: 11px 20px; border-radius: 12px; font-size: 12px; color: #fff;
  background: rgba(31, 84, 69, .94); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: rgba(190, 85, 70, .96); }

/* ============================== 响应式 ============================== */
@media (max-width: 1240px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search { display: none; }
}
@media (max-width: 1080px) {
  .sidebar { width: 80px; padding: 18px 10px 12px; }
  .profile { justify-content: center; padding: 4px 0 14px; }
  .profile-text { display: none; }
  .nav-group, .nav-item span, .nav-item .badge, .nav-item .mini { display: none; }
  .nav-group-items { margin-left: 0; padding-left: 0; border-left: 0; }
  .nav-item { justify-content: center; padding: 0; height: 44px; }
  .nav-item .ico { width: 19px; height: 19px; }
  .side-scene { display: none; }
  .side-collapse { display: none; }
  .stage { margin-left: 80px; padding: 20px 22px 30px; }
  .headline h1 { font-size: 34px; }
  .search { display: none; }
  .span-8, .span-6, .span-4, .panel-8, .panel-6, .panel-4 { grid-column: span 12; }
  .dash-grid { gap: 12px; }
}
@media (max-width: 720px) {
  .sidebar { width: 64px; padding: 14px 8px 10px; }
  .avatar { width: 38px; height: 38px; font-size: 16px; }
  .stage { margin-left: 64px; padding: 16px 14px 26px; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .headline h1 { font-size: 28px; }
  .headline p { font-size: 11.5px; }
  .top-actions { width: 100%; justify-content: flex-start; padding-top: 0; }
  .date-chip { display: none; }
  .kpi-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stage-scene { height: 200px; }
  .stage-scene svg { height: 200px; width: 720px; }
  .card { padding: 16px; }
  .lib-meta { display: none; }
  .lib-actions .btn span { display: none; }
  .login-card { padding: 0 18px 20px; }
  .login-hero { margin: 0 -18px 16px; }
  .modal.wide { width: 100%; }
}

/* ============================== 补充：模块页细节 ============================== */
.panel-7 { grid-column: span 7; }
.panel-5 { grid-column: span 5; }
.section-label { margin-bottom: 7px; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--faint); }
.split-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.pulse-tip { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--mint-50); font-size: 10px; color: var(--mint-700); }
.pulse-tip .ico { width: 13px; height: 13px; }
.pulse-tip b { color: var(--coral); }

.quality-grid { display: flex; flex-direction: column; gap: 9px; }
.quality-item { min-width: 0; }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--muted); }
.q-top b { font-family: var(--font-num); font-size: 10.5px; color: var(--ink); font-weight: 700; }
.q-track { margin-top: 4px; height: 6px; border-radius: 99px; background: #f1f4f0; overflow: hidden; }
.q-track i { display: block; height: 100%; border-radius: 99px; transition: width .7s; }
.mini-metrics { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.mini-metrics div { text-align: center; flex: 1; }
.mini-metrics b { display: block; font-family: var(--font-num); font-size: 17px; color: var(--ink); }
.mini-metrics span { display: block; margin-top: 3px; font-size: 8.5px; color: var(--faint); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.feature { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 13px 12px; border-radius: 14px; background: rgba(241, 250, 246, .6); border: 1px solid var(--line-soft); }
.feature .f-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 2px; }
.feature .f-ico .ico { width: 17px; height: 17px; }
.feature b { font-size: 11.5px; color: var(--ink); }
.feature > span { font-size: 9.5px; line-height: 1.55; color: var(--muted); min-height: 30px; }
.feature .card-link { margin-top: 2px; }

.campaign { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, var(--mint-50), #fffdf8); border: 1px solid var(--line-soft); margin-bottom: 12px; flex-wrap: wrap; }
.campaign-main b { display: block; font-size: 12.5px; color: var(--ink); }
.campaign-main span { display: block; margin-top: 4px; font-size: 9.5px; color: var(--muted); line-height: 1.5; }
.campaign-meta { display: flex; gap: 18px; }
.campaign-meta div { text-align: right; }
.campaign-meta b { display: block; font-family: var(--font-num); font-size: 18px; color: var(--mint-700); }
.campaign-meta span { display: block; margin-top: 2px; font-size: 8.5px; color: var(--faint); }
.stage-strip { display: flex; gap: 6px; align-items: stretch; }
.stage-tile { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; min-height: 88px; padding: 7px 4px 8px; border-radius: 11px; background: var(--mint-50); }
.stage-tile .stage-bar { width: 10px; height: 44px; border-radius: 99px; background: #e5f2eb; display: flex; align-items: flex-end; overflow: hidden; }
.stage-tile .stage-bar i { display: block; width: 100%; border-radius: 99px; background: linear-gradient(180deg, var(--mint-300), var(--mint-600)); }
.stage-tile b { font-family: var(--font-num); font-size: 14px; color: var(--ink); }
.stage-tile span { font-size: 8.5px; color: var(--muted); white-space: nowrap; }
.stage-tile em { position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: #c4d8cf; font-style: normal; z-index: 2; }
.stage-tile em .ico { width: 12px; height: 12px; }

.rank-list { display: flex; flex-direction: column; gap: 5px; }
.rank-row { display: flex; align-items: center; gap: 7px; font-size: 10.5px; }
.rank-row em { width: 17px; height: 17px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-family: var(--font-num); font-size: 9px; font-weight: 700; color: var(--faint); background: #f3f6f1; }
.rank-row em.gold { background: #fdf1d4; color: #b1832a; }
.rank-row em.silver { background: #eef1f2; color: #7b8b90; }
.rank-row em.bronze { background: #f7ebe3; color: #a9714d; }
.rank-name { width: 62px; flex: 0 0 auto; color: var(--ink-2); }
.rank-track { flex: 1; height: 5px; border-radius: 99px; background: #f1f4f0; overflow: hidden; }
.rank-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mint-300), var(--mint-500)); }
.rank-row b { width: 34px; text-align: right; font-family: var(--font-num); font-size: 10.5px; color: var(--ink); }

.province-list { display: flex; flex-direction: column; gap: 10px; }
.province-row { display: flex; align-items: center; gap: 9px; }
.p-name { width: 70px; flex: 0 0 auto; font-size: 11px; color: var(--ink-2); }
.p-track { flex: 1; height: 8px; border-radius: 99px; background: #f1f4f0; overflow: hidden; }
.p-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f7c59f, var(--coral)); }
.province-row b { width: 42px; text-align: right; font-family: var(--font-num); font-size: 12px; color: var(--ink); }

.upload-list { display: flex; flex-direction: column; }
.upload-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.upload-row:last-child { border-bottom: 0; }
.u-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.u-ico .ico { width: 15px; height: 15px; }
.u-main { flex: 1; min-width: 0; }
.u-main b { display: block; font-size: 11px; color: var(--ink-2); }
.u-main span { display: block; margin-top: 2px; font-size: 9px; color: var(--faint); }

.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.entry { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 13px 14px; border-radius: 14px; background: linear-gradient(140deg, #fffdf8, var(--mint-50)); border: 1px solid var(--line-soft); text-align: left; transition: transform .18s, box-shadow .18s; }
.entry:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.entry-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #fff; color: var(--mint-700); box-shadow: var(--shadow-sm); margin-bottom: 2px; }
.entry-ico .ico { width: 15px; height: 15px; }
.entry b { font-size: 11.5px; color: var(--ink); }
.entry > span:last-child { font-size: 9.5px; line-height: 1.5; color: var(--muted); }

.search-pop { position: fixed; z-index: 300; padding: 6px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.sp-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border-radius: 9px; font-size: 12px; color: var(--ink-2); text-align: left; }
.sp-item:hover { background: var(--mint-50); color: var(--mint-700); }
.sp-item .ico { width: 15px; height: 15px; color: var(--mint-500); }
.sp-item span { flex: 1; }
.sp-item em { font-style: normal; font-size: 9px; color: var(--faint); }
.sp-empty { padding: 14px 10px; font-size: 11px; color: var(--faint); text-align: center; }

.bell-panel { position: fixed; z-index: 300; width: 310px; max-height: 420px; overflow: auto; padding: 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.bp-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 9px; border-bottom: 1px solid var(--line-soft); }
.bp-head b { font-size: 12.5px; }
.bp-head span { font-size: 10px; color: var(--faint); }
.bp-item { display: flex; gap: 9px; padding: 9px 4px; border-bottom: 1px dashed var(--line-soft); }
.bp-item:last-of-type { border-bottom: 0; }
.bp-time { width: 34px; flex: 0 0 auto; font-family: var(--font-num); font-size: 10px; color: var(--mint-700); font-weight: 700; }
.bp-item b { display: block; font-size: 11px; color: var(--ink-2); line-height: 1.45; }
.bp-item em { display: block; margin-top: 2px; font-style: normal; font-size: 9px; color: var(--faint); }
.bp-all { margin-top: 6px; width: 100%; }

.lib-list { max-height: none; }
.chip-row .tag { height: 22px; }

@media (max-width: 1080px) {
  .panel-7, .panel-5, .panel-8, .panel-6, .panel-4 { grid-column: span 12; }
  .split-2 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .entry-grid { grid-template-columns: 1fr; }
  .campaign { align-items: flex-start; }
  .stage-strip { overflow-x: auto; }
  .stage-tile { min-width: 56px; }
  .kpi { min-height: 92px; }
}

/* 贺书记库分页 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.pager > span { font-size: 10.5px; color: var(--faint); }
.pager-btns { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pager-num { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; font-family: var(--font-num); color: var(--muted); }
.pager-num:hover { background: var(--mint-50); color: var(--mint-700); }
.pager-num.active { background: var(--mint-600); color: #fff; font-weight: 700; }
.pager .btn[disabled] { opacity: .4; pointer-events: none; }

/* 首页头部：去掉胶囊底色，直接放在山水背景上 */
.home-hero-line { margin-top: -2px; margin-bottom: 14px; }
.hero-text { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: #5f7268; }
.hero-text b { color: var(--mint-700); font-weight: 800; }
.hero-text i { font-style: normal; color: #b6c4bc; }
.guest-auth {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px;
  border-radius: 999px; cursor: pointer; background: transparent; border: 0;
  transition: background .18s;
}
.guest-auth:hover { background: rgba(255, 253, 248, .55); }
.guest-auth .u-avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #fff9ec, #ffe9bd); color: var(--mint-700);
  font-size: 12px; font-weight: 800;
  box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 6px 14px rgba(34,88,72,.12);
}
.guest-auth .u-meta { line-height: 1.15; text-align: left; }
.guest-auth .u-meta b { display: block; font-size: 12px; color: var(--ink); }
.guest-auth .u-meta span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.guest-auth .ico { width: 14px; height: 14px; color: var(--faint); }

/* 左侧分组：点击只在左栏展开/收起 */
.nav-group-head {
  display: flex; align-items: center; gap: 7px;
  height: 38px; margin: 10px 0 4px; padding: 0 8px;
  font-size: 14px; font-weight: 800; letter-spacing: .3px; color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .14);
  cursor: pointer; border-radius: 12px; user-select: none;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.nav-group-head:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.2); }
.nav-group-head .g-chev { width: 12px; height: 12px; margin-left: auto; transition: transform .2s; opacity: .7; }
.nav-group-head.closed .g-chev { transform: rotate(-90deg); }
.nav-group-head .g-count {
  padding: 1px 6px; border-radius: 999px;
  font-family: var(--font-num); letter-spacing: 0; font-size: 10px;
  color: rgba(255,255,255,.72); background: rgba(255,255,255,.12);
}
.nav-group-head.has-active .g-count { color: #6b4e19; background: #ffe9bd; }
.nav-group-head > span { white-space: nowrap; }
.nav-item.sub { height: 33px; padding-left: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.nav-item.sub .ico { width: 14px; height: 14px; opacity: .78; }
.nav-item.sub:hover { color: #fff; }
.nav-item.sub.active { color: var(--mint-800); }
.nav-group-items {
  overflow: hidden;
  margin: 2px 0 6px 8px; padding-left: 5px;
  border-left: 1px solid rgba(255, 255, 255, .16);
}
.nav-group-head .g-ic {
  width: 22px; height: 22px; padding: 4px; border-radius: 7px;
  background: rgba(255, 255, 255, .12); opacity: 1; color: rgba(255, 255, 255, .9);
}
.nav-group-head.has-active {
  background: linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .16));
  color: #fff; border-color: rgba(255, 255, 255, .42);
  box-shadow: inset 3px 0 0 #ffe9bd, 0 8px 18px rgba(6, 40, 32, .18);
}
.nav-group-head.has-active .g-ic { opacity: 1; color: var(--mint-800); background: #ffe9bd; }

/* 侧栏内的折叠按钮：菜单文字靠左，按钮收在绿色栏里 */
.side-collapse { flex: 0 0 auto; display: flex; justify-content: flex-end; padding: 6px 2px 2px; }
.side-collapse-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 8px; border-radius: 8px;
  color: rgba(255, 255, 255, .62); font-size: 11px;
  background: rgba(255, 255, 255, .08);
  transition: background .18s, color .18s;
}
.side-collapse-btn:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.side-collapse-btn .ico { width: 12px; height: 12px; transform: rotate(90deg); }
.shell.side-collapsed .side-collapse { justify-content: center; padding: 6px 0 2px; }
.shell.side-collapsed .side-collapse-btn { width: 40px; padding: 0; justify-content: center; }
.shell.side-collapsed .side-collapse-btn span { display: none; }
.shell.side-collapsed .side-collapse-btn .ico { transform: rotate(-90deg); }

/* ============================== 模块 iframe 视图 ============================== */
.module-view { display: flex; flex-direction: column; gap: 10px; height: calc(100vh - 150px); min-height: 520px; }
.module-view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 2px; }
.mv-crumb { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.mv-crumb .ico { width: 14px; height: 14px; color: var(--mint-600); }
.mv-crumb b { color: var(--ink); font-weight: 800; }
.mv-crumb i { font-style: normal; color: #b6c4bc; }
.mv-actions { display: flex; align-items: center; gap: 7px; }
.module-frame { flex: 1; min-height: 0; border-radius: 22px; overflow: hidden; border: 1px solid rgba(31,88,70,.1); background: #fffdf8; box-shadow: var(--shadow); }
.module-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #fffdf8; }
body.module-mode .foot { display: none; }
body.module-mode .stage { padding-bottom: 16px; }
.login-required { max-width: 540px; margin: 7vh auto; text-align: center; padding: 42px 34px; display: flex; flex-direction: column; align-items: center; }
.login-required .lr-ico { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; background: var(--mint-100); color: var(--mint-700); margin-bottom: 14px; }
.login-required .lr-ico .ico { width: 26px; height: 26px; }
.login-required h3 { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.login-required p { margin: 8px 0 18px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.login-required .lr-err { margin-bottom: 12px; font-size: 11px; color: var(--red); }
.login-required .btn { min-width: 160px; }

/* ============================== 左侧栏折叠 ============================== */
.shell.side-collapsed .sidebar { width: 80px; padding: 18px 10px 12px; }
.shell.side-collapsed .profile { justify-content: center; padding: 4px 0 14px; }
.shell.side-collapsed .profile-text,
.shell.side-collapsed .nav-group-head,
.shell.side-collapsed .nav-item span,
.shell.side-collapsed .nav-item .badge,
.shell.side-collapsed .nav-item .mini,
.shell.side-collapsed .side-scene { display: none; }
.shell.side-collapsed .nav-group-items { display: block !important; margin-left: 0; padding-left: 0; border-left: 0; }
.shell.side-collapsed .nav-group-items + .nav-group-items { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.12); }
.shell.side-collapsed .nav-item { justify-content: center; padding: 0; height: 42px; border-radius: 12px; }
.shell.side-collapsed .nav-item.sub { height: 40px; }
.shell.side-collapsed .nav-item .ico { width: 18px; height: 18px; }
.shell.side-collapsed .stage { margin-left: 80px; }
.shell.side-collapsed .avatar { width: 40px; height: 40px; font-size: 16px; }
@media (max-width: 1080px) {
  .module-view { height: calc(100vh - 130px); }
}
@media (max-width: 720px) {
  .module-view { height: calc(100vh - 120px); min-height: 420px; }
  .module-view-head { gap: 6px; }
  .mv-crumb span { display: none; }
  .mv-actions .btn span { display: none; }
}
body.module-mode .headline h1 { font-size: 30px; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.module-mode .headline p { margin-top: 6px; }
@media (max-width: 720px) {
  body.module-mode .headline h1 { font-size: 22px; }
}

/* ============================== 阅读字号与排版对齐 ============================== */
/* 侧栏字号只在大屏（非图标模式）放大，不影响 1080 以下的折叠布局 */
@media (min-width: 1081px) {
  .profile-text b { font-size: 14px; }
  .profile-text span { font-size: 10px; letter-spacing: .8px; }
  .nav-group { font-size: 11.5px; letter-spacing: 1.4px; }
  .nav-group-head { font-size: 12px; letter-spacing: .4px; padding-top: 6px; padding-bottom: 6px; margin-top: 8px; color: rgba(255, 255, 255, .78); }
  .nav-group-head .g-count { display: none; }
  .nav-item { height: 36px; margin: 1px 0; font-size: 14.5px; letter-spacing: .2px; }
  .nav-item .ico { width: 18px; height: 18px; }
  .nav-item.sub { height: 33px; gap: 8px; font-size: 13px; }
  .nav-item.sub .ico { width: 15px; height: 15px; }
  .nav-item .badge { font-size: 10.5px; }
  .nav-item .mini { display: none; }
  .side-note span { font-size: 14.5px; }
  .side-note i { font-size: 11px; }
  @media (max-height: 980px) {
    .side-scene svg { display: none; }
  }
  @media (max-height: 940px) {
    .nav { padding-top: 8px; }
    .nav-item { height: 33px; margin: 0; }
    .nav-item.sub { height: 30px; }
    .nav-group-head { height: 34px; margin-top: 6px; }
    .side-note { padding: 7px 10px 7px 12px; }
    .side-note span { font-size: 13.5px; line-height: 1.55; }
  }
  @media (max-height: 840px) {
    .side-scene { display: none; }
  }
}

@media (min-width: 721px) {
  /* 顶栏与日期时间：统一字号、数字等宽，时间列居中不跳动 */
  .headline p { font-size: 14px; }
  .search input { font-size: 13px; }
  .date-chip { gap: 8px; font-size: 13.5px; }
  .date-chip .d-date { font-weight: 600; color: var(--ink); letter-spacing: .3px; font-variant-numeric: tabular-nums; }
  .date-chip .d-week { font-weight: 600; color: var(--muted); }
  .date-chip .time { min-width: 54px; text-align: center; font-size: 15px; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
  .top-actions { gap: 6px; }
  @media (max-width: 1500px) {
    .search { width: 190px; }
    .search:focus-within { width: 240px; }
    .search kbd { display: none; }
    .date-chip { gap: 7px; font-size: 13px; }
    .date-chip .d-week { display: none; }
    .date-chip .time { min-width: 52px; font-size: 14.5px; }
    .headline h1 { font-size: 38px; }
    .headline p { font-size: 13.5px; }
    .topbar { gap: 16px; }
  }
  .auth-btn { font-size: 13.5px; }
  .user-chip .u-meta b, .guest-auth .u-meta b { font-size: 13px; }
  .user-chip .u-meta span, .guest-auth .u-meta span { font-size: 10.5px; }
  .user-menu .um-head b { font-size: 14px; }
  .user-menu .um-head span { font-size: 11.5px; }
  .user-menu button { font-size: 13px; }
  .foot { font-size: 11.5px; }
  .hero-chip, .hero-note { font-size: 12.5px; }

  /* 卡片与基础文字 */
  .card-title { font-size: 15.5px; }
  .card-title small { font-size: 11px; }
  .card-link { font-size: 12.5px; }
  .tag { height: 21px; padding: 0 9px; font-size: 11px; }
  .btn { font-size: 13px; }
  .btn.sm { font-size: 12px; }
  .tab { height: 29px; padding: 0 12px; font-size: 12px; }
  .section-label { font-size: 11px; }

  /* KPI */
  .kpi-label { font-size: 12.5px; }
  .kpi-num small { font-size: 12px; }
  .kpi-sub { font-size: 11px; }
  .kpi-ring b { font-size: 11px; }

  /* 待办：时间列加宽并统一数字宽度，避免跳动 */
  .todo-text { font-size: 13.5px; }
  .todo-time { width: 50px; font-size: 11.5px; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
  .todo-add { font-size: 12px; }
  .todo-foot { font-size: 11.5px; }

  /* 快捷入口 */
  .quick span { font-size: 11.5px; line-height: 1.35; }

  /* 招聘脉搏 / 中心温度 / 提醒 */
  .pulse-big span { font-size: 12px; }
  .pulse-kpi b { font-size: 15px; }
  .pulse-kpi span { font-size: 10.5px; }
  .bar-item .bar b, .bar-item span { font-size: 10.5px; }
  .funnel-row, .funnel-row b { font-size: 11.5px; }
  .funnel-row b, .temp-val, .perf-rank b, .rank-row b, .bp-time, .stat .s-num { font-variant-numeric: tabular-nums; }
  .temp-big small { font-size: 13px; }
  .temp-badge { font-size: 11px; }
  .temp-name { font-size: 12.5px; }
  .temp-val { min-width: 48px; font-size: 13px; text-align: right; }
  .remind-time { width: 48px; font-size: 11.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
  .remind-body b { font-size: 12.8px; }
  .remind-body span { font-size: 10.5px; }
  .note { font-size: 12.3px; }
  .pulse-tip { font-size: 11px; }
  .pulse-tip .ico { width: 14px; height: 14px; }

  /* 绩效 / 习惯 / 心情 */
  .donut-center b { font-size: 22px; }
  .donut-center span { font-size: 10px; }
  .perf-rank { font-size: 11.5px; }
  .perf-rank .name { width: 64px; }
  .perf-rank b { width: 34px; }
  .habit-table th { font-size: 10.5px; }
  .habit-name { font-size: 11.5px; }
  .habit-day { width: 26px; height: 26px; }
  .mood-label { font-size: 10px; }

  /* 模块总览页 */
  .page-head .ph-sub { font-size: 12.5px; }
  .stat .s-label { font-size: 11.5px; }
  .stat .s-num small { font-size: 11px; }
  .stat .s-sub { font-size: 10.5px; }
  .data-table th { font-size: 10.5px; }
  .data-table td { font-size: 12.5px; }
  .legend { font-size: 10.5px; }
  .empty { font-size: 12.5px; }
  .q-top, .q-top b { font-size: 11.5px; }
  .mini-metrics b { font-size: 18px; }
  .mini-metrics span { font-size: 10px; }
  .feature b { font-size: 12.5px; }
  .feature > span { font-size: 10.5px; }
  .campaign-main b { font-size: 13.5px; }
  .campaign-main span { font-size: 10.5px; }
  .campaign-meta span { font-size: 10px; }
  .stage-tile span { font-size: 10px; }
  .rank-row { font-size: 11.5px; }
  .rank-row em { font-size: 10px; }
  .p-name { font-size: 12px; }
  .province-row b { font-size: 13px; }
  .u-main b { font-size: 12px; }
  .u-main span { font-size: 10px; }
  .entry b { font-size: 12.5px; }
  .entry > span:last-child { font-size: 10.5px; }
  .sp-item { font-size: 13px; }
  .sp-item em { font-size: 10px; }
  .sp-empty { font-size: 12px; }
  .bp-head b { font-size: 13.5px; }
  .bp-head span { font-size: 10.5px; }
  .bp-time { width: 44px; font-size: 11px; }
  .bp-item b { font-size: 12px; }
  .bp-item em { font-size: 10.5px; }
  .hero-text { font-size: 13px; }

  /* 贺书记库 */
  .lib-search input { font-size: 12px; }
  .lib-main b, .lib-meta b { font-size: 13px; }
  .lib-main span { font-size: 10.8px; }
  .lib-meta span { font-size: 10px; }
  .lib-note { font-size: 11.5px; }
  .pager > span { font-size: 11.5px; }
  .pager-num { font-size: 12px; }

  /* 弹窗 / 登录 / 预览 */
  .modal-sub { font-size: 12.5px; }
  .field > span { font-size: 12px; }
  .field input, .field select, .field textarea { font-size: 14px; }
  .keep { font-size: 12px; }
  .login-msg { font-size: 11.5px; }
  .login-foot { font-size: 10.5px; }
  .login-required p { font-size: 13px; }
  .login-required .lr-err { font-size: 12px; }
  .preview-table table { font-size: 12px; }
  .preview-table th { font-size: 10.5px; }
  .open-preview { font-size: 13px; }
}

/* ============================== 员工质量委员会 / 健康体检 ============================== */
.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1240px) {
  .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.indicator-list { display: flex; flex-direction: column; gap: 9px; }
.indicator-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.indicator-row .i-name { width: 96px; flex: 0 0 auto; color: var(--ink-2); }
.indicator-row .i-track { flex: 1; height: 8px; border-radius: 99px; background: #f1f4f0; overflow: hidden; }
.indicator-row .i-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mint-300), var(--mint-600)); transition: width .7s; }
.indicator-row.weak .i-track i { background: linear-gradient(90deg, #f6c19a, var(--coral)); }
.indicator-row b { width: 40px; text-align: right; font-family: var(--font-num); font-size: 12.5px; color: var(--ink); }
.mini-note {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 12px;
  padding: 9px 11px; border-radius: 10px; background: var(--mint-50);
  color: #5f7268; font-size: 11px; line-height: 1.6;
}
.mini-note .ico { width: 13px; height: 13px; color: var(--mint-600); margin-top: 2px; }
.table-scroll { max-height: 380px; overflow: auto; }
.table-scroll .data-table th { position: sticky; top: 0; background: var(--paper); z-index: 1; }
.quality-rank td.low { color: var(--coral); font-weight: 800; }
.problem-list { display: flex; flex-direction: column; gap: 9px; }
.problem-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.problem-row .p-name { width: 168px; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; color: var(--ink-2); white-space: nowrap; }
.problem-row .p-name em { font-style: normal; font-size: 9.5px; padding: 1px 6px; border-radius: 99px; background: var(--coral-soft); color: #c96a45; white-space: nowrap; }
.problem-row .p-track { flex: 1; height: 8px; border-radius: 99px; background: #f4f1ea; overflow: hidden; }
.problem-row .p-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f7b9a1, var(--coral)); transition: width .7s; }
.problem-row b { width: 40px; text-align: right; font-family: var(--font-num); font-size: 12.5px; }
.follow-stats { display: flex; gap: 10px; margin: 4px 0 12px; flex-wrap: wrap; }
.follow-stats div { flex: 1; min-width: 86px; padding: 10px 12px; border-radius: 12px; background: var(--mint-50); text-align: center; }
.follow-stats b { display: block; font-family: var(--font-num); font-size: 20px; color: #22372f; }
.follow-stats span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }

.qr-card { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 4px; }
.qr-box {
  width: 168px; height: 168px; padding: 10px; border-radius: 16px;
  background: #fffdf8; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.qr-box img, .qr-box canvas { width: 148px !important; height: 148px !important; border-radius: 8px; }
.qr-url { font-family: var(--font-num); font-size: 11.5px; color: var(--mint-700); word-break: break-all; text-align: center; }
.qr-tip { font-size: 11px; line-height: 1.6; color: var(--muted); text-align: center; margin: 0; }
.bp-list { display: flex; flex-direction: column; gap: 10px; }
.bp-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.bp-row .p-name { width: 80px; flex: 0 0 auto; color: var(--ink-2); }
.bp-row .p-track { flex: 1; height: 9px; border-radius: 99px; background: #f1f4f0; overflow: hidden; }
.bp-row .p-track i { display: block; height: 100%; border-radius: 99px; background: var(--mint-400); }
.bp-row .p-track.yellow i { background: var(--yellow); }
.bp-row .p-track.coral i { background: var(--coral); }
.bp-row .p-track.blue i { background: var(--blue); }
.bp-row b { width: 36px; text-align: right; font-family: var(--font-num); }
@media (max-width: 720px) {
  .stat-grid.four { grid-template-columns: 1fr; }
  .problem-row .p-name { width: 120px; }
}

/* ============================== 单位筛选 / 底盘汇总 / 流失率 ============================== */
.scope-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 16px 0 14px; flex-wrap: wrap;
}
.unit-picker { position: relative; flex: 0 0 auto; }
.unit-btn {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 14px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); text-align: left;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.unit-btn:hover { border-color: var(--mint-300); box-shadow: 0 10px 24px rgba(34, 88, 72, .12); transform: translateY(-1px); }
.unit-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--mint-100); color: var(--mint-700);
}
.unit-ico .ico { width: 17px; height: 17px; }
.unit-text { display: flex; flex-direction: column; gap: 2px; }
.unit-text em { font-style: normal; font-size: 10.5px; letter-spacing: .6px; color: var(--faint); }
.unit-text b { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.unit-chev { width: 14px; height: 14px; color: var(--faint); transition: transform .18s; }
.unit-btn[aria-expanded="true"] .unit-chev { transform: rotate(180deg); }
.unit-menu {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 90;
  width: 286px; max-width: calc(100vw - 44px); max-height: min(70vh, 470px); overflow: auto;
  padding: 8px; border-radius: 16px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 26px 64px rgba(15, 60, 48, .2);
  scrollbar-width: thin;
}
.unit-menu[hidden] { display: none; }
.unit-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 10px; font-size: 11px; letter-spacing: .6px; color: var(--faint); }
.unit-menu-head span { font-size: 10.5px; }
.unit-prov { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; color: var(--faint); }
.unit-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 8px 10px; border-radius: 9px;
  text-align: left; font-size: 13px; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.unit-opt:hover { background: var(--mint-50); color: var(--mint-800); }
.unit-opt.active { background: var(--mint-100); color: var(--mint-800); font-weight: 700; }
.unit-opt.child { padding-left: 22px; font-size: 12.5px; color: var(--muted); }
.unit-opt small { font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.scope-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.scope-note b { color: var(--mint-800); }
.scope-note .ico { width: 14px; height: 14px; color: var(--mint-600); }

.sum-card { display: flex; flex-direction: column; min-height: 198px; }
.sum-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 0 12px; }
.sum-main b { font-family: var(--font-num); font-size: 36px; line-height: 1; letter-spacing: -.5px; color: #22372f; }
.sum-main b small { font-size: 16px; color: var(--muted); }
.sum-main > span:not(.tag) { font-size: 12px; color: var(--muted); }
.sum-main .tag { margin-left: auto; }
.sum-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; padding: 10px 0;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.sum-metrics div { text-align: center; min-width: 0; }
.sum-metrics b { display: block; font-family: var(--font-num); font-size: 17px; color: var(--ink); }
.sum-metrics span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--faint); }
.sum-progress { margin-top: 12px; height: 7px; border-radius: 99px; background: #f1f4f0; overflow: hidden; }
.sum-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mint-300), var(--mint-600)); }
.sum-progress.warn i { background: linear-gradient(90deg, #f6c19a, var(--coral)); }
.sum-progress.heat i { background: linear-gradient(90deg, var(--mint-300), var(--yellow), var(--coral)); }
.remind-list.compact .remind { padding: 7px 0; }
.remind-list.compact .remind-body b { font-size: 12.5px; }

.turnover-table td.low { color: var(--coral); font-weight: 800; }
.prov-list { display: flex; flex-direction: column; gap: 12px; }
.prov-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.prov-row .p-name { width: 52px; flex: 0 0 auto; color: var(--ink-2); }
.prov-row .p-track { flex: 1; height: 8px; border-radius: 99px; background: #f1f4f0; overflow: hidden; }
.prov-row .p-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--coral), #f6c19a); }
.prov-row b { width: 52px; text-align: right; font-family: var(--font-num); color: var(--ink); }
.turnover-insight p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.turnover-insight b { color: var(--mint-800); }

.cell-stack b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cell-stack span { display: block; margin-top: 2px; font-size: 11px; color: var(--faint); }
.center-rank .mini-bar { width: 100%; max-width: none; height: 7px; margin-right: 0; }
.data-table th, .data-table td { vertical-align: middle; }
.stat { text-align: center; }
.stat .s-label { justify-content: center; }
.stat .s-sub { text-align: center; }
.kpi.warn, .stat.warn {
  background: linear-gradient(160deg, #fffefa 0%, #fff5ef 100%);
  border-color: rgba(239, 138, 98, .26);
  box-shadow: inset 3px 0 0 var(--coral), var(--shadow-sm);
}
.kpi.warn .kpi-num, .stat.warn .s-num, .kpi.warn .kpi-ring b { color: #c25548; }
.kpi.warn .kpi-label, .stat.warn .s-label { color: #9a6a58; }
.stat.attention {
  background: linear-gradient(160deg, #fffefa 0%, #fffbe9 100%);
  border-color: rgba(242, 193, 92, .34);
  box-shadow: inset 3px 0 0 var(--yellow), var(--shadow-sm);
}
.stat.attention .s-num { color: #a9832b; }
.stat.attention .s-label { color: #927a3f; }
.temp-row.hot { background: rgba(239, 138, 98, .07); border-radius: 9px; padding-left: 6px; padding-right: 4px; }

@media (max-width: 1400px) and (min-width: 1081px) {
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick { min-height: 72px; padding: 8px 4px; gap: 6px; }
  .quick-ico { width: 30px; height: 30px; border-radius: 10px; }
  .quick-ico .ico { width: 15px; height: 15px; }
}
.todo-card { display: flex; flex-direction: column; }
.todo-card .todo-foot { margin-top: auto; }

/* ============================== 全站字号再提一档 ============================== */
@media (min-width: 1081px) {
  .profile-text b { font-size: 14.5px; }
  .nav-item { font-size: 16px; }
  .nav-item.sub { font-size: 13.5px; }
  .nav-item .badge, .nav-item .mini { font-size: 11px; }
  .nav-group-head { font-size: 14px; }
}

@media (min-width: 721px) {
  .headline p { font-size: 15px; }
  .date-chip { font-size: 14px; }
  .date-chip .time { font-size: 16px; }
  .search input { font-size: 13.5px; }
  .hero-chip, .hero-note { font-size: 13.5px; }
  .card-title { font-size: 17px; }
  .card-title small { font-size: 12px; }
  .card-link { font-size: 13px; }
  .tag { height: 22px; padding: 0 10px; font-size: 11.5px; }
  .btn { font-size: 14px; }
  .btn.sm { font-size: 12.5px; }
  .tab { font-size: 13px; }
  .kpi-label { font-size: 13.5px; }
  .kpi-num small { font-size: 12.5px; }
  .kpi-sub { font-size: 12px; }
  .todo-text { font-size: 15px; }
  .todo-time { font-size: 12.5px; }
  .todo-add, .todo-foot { font-size: 12.5px; }
  .quick span { font-size: 13px; }
  .stat .s-label { font-size: 13px; }
  .stat .s-num { font-size: 28px; }
  .stat .s-num small { font-size: 12px; }
  .stat .s-sub { font-size: 11.5px; }
  .data-table th { font-size: 12px; }
  .data-table td { font-size: 14px; }
  .section-label { font-size: 12px; }
  .temp-name { font-size: 13px; }
  .temp-val { font-size: 13.5px; }
  .funnel-row, .funnel-row b { font-size: 12.5px; }
  .remind-body b { font-size: 13.5px; }
  .remind-body span { font-size: 11px; }
  .note { font-size: 13px; }
  .mini-note { font-size: 11.5px; }
}

/* ============================== 左侧导航：高级化重绘 ============================== */
.sidebar {
  width: 180px;
  padding: 22px 12px 12px;
  background:
    radial-gradient(120% 52% at 10% 0%, rgba(255, 255, 255, .16), transparent 58%),
    linear-gradient(180deg, #29a78b 0%, #1f8e76 46%, #146a57 100%);
  border-right: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 18px 0 44px rgba(15, 83, 69, .07);
}
.sidebar::before {
  background:
    radial-gradient(42% 22% at 16% 2%, rgba(255, 255, 255, .15), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 20%);
}
.profile { padding: 2px 4px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.avatar {
  width: 38px; height: 38px; font-size: 17px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 8px 20px rgba(7, 45, 35, .2);
}
.profile-text b { font-size: 14.5px; font-weight: 700; letter-spacing: .3px; }
.profile-text span { margin-top: 3px; font-size: 9.5px; letter-spacing: 1.8px; color: rgba(255, 255, 255, .5); }

.nav { padding: 14px 2px 6px; }
.nav > .nav-item:not(.sub) {
  height: 38px; margin: 2px 0; padding: 0 9px; border-radius: 11px;
  font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .84);
}
.nav > .nav-item:not(.sub):hover { background: rgba(255, 255, 255, .08); color: #fff; transform: none; }
.nav-item .ico { opacity: .86; }
.nav-item:hover { transform: none; background: rgba(255, 255, 255, .07); }

/* 分组标题：只做轻量分区标签，不再是一张卡片 */
.nav-group-head {
  position: relative;
  height: 32px; margin: 16px 0 2px; padding: 0 8px; gap: 6px;
  background: transparent; border: 0; border-radius: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; color: rgba(255, 255, 255, .62);
  box-shadow: none;
}
.nav-group-head::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: -7px; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0));
}
.nav-group-head:hover { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .86); border: 0; }
.nav-group-head .g-ic {
  width: 20px; height: 20px; padding: 3px; border-radius: 6px;
  background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .72);
}
.nav-group-head .g-count {
  display: inline-block; margin-left: auto; padding: 0;
  background: none; border-radius: 0;
  font-size: 10px; letter-spacing: .4px; color: rgba(255, 255, 255, .42);
}
.nav-group-head .g-chev { width: 11px; height: 11px; margin-left: 6px; opacity: .35; }
.nav-group-head.has-active {
  background: transparent; border: 0; box-shadow: none;
  color: rgba(255, 255, 255, .95);
}
.nav-group-head.has-active .g-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.nav-group-head.has-active .g-count { color: rgba(255, 255, 255, .6); }
.nav-group-head.has-active .g-chev { opacity: .6; }

.nav-group-items {
  margin: 2px 0 8px 9px; padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.nav-item.sub { height: 34px; margin: 1px 0; padding: 0 8px; gap: 8px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .74); }
.nav-item.sub .ico { width: 14px; height: 14px; opacity: .68; }
.nav-item.sub:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.sub:hover .ico { opacity: 1; }

/* 选中态只保留一个亮面，不再叠加黄色边条和玻璃反光 */
.nav-item.active {
  background: linear-gradient(135deg, #fffdf8 0%, #f7edd7 100%);
  color: #164e40; font-weight: 700;
  box-shadow: 0 8px 20px rgba(4, 38, 28, .2), inset 0 1px 0 rgba(255, 255, 255, .85);
  text-shadow: none;
}
.nav-item.active::after { display: none; }
.nav-item.active .ico { color: var(--mint-700); opacity: 1; }
.nav-item .badge { background: rgba(255, 255, 255, .16); color: #fff; }
.nav-item.active .badge { background: rgba(27, 113, 92, .12); color: var(--mint-800); }
.nav-item.active .mini { color: var(--mint-600); }

/* 折叠按钮与便签：细线分隔，不再用便签卡片 */
.side-collapse { padding: 8px 2px 0; margin-top: 0; border-top: 0; }
.side-collapse-btn { height: 28px; padding: 0 8px; font-size: 10.5px; color: rgba(255, 255, 255, .45); background: transparent; }
.side-collapse-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.side-scene { margin-top: auto; padding: 14px 8px 2px; border-top: 1px solid rgba(255, 255, 255, .1); }
.side-scene svg { display: none; }
.side-note {
  margin: 0; padding: 0; background: none; box-shadow: none; transform: none;
  color: rgba(255, 255, 255, .62); border-radius: 0;
}
.side-note::before { display: none; }
.side-note span { font-family: var(--font); font-size: 12px; line-height: 1.75; letter-spacing: .3px; color: rgba(255, 255, 255, .66); }
.side-note span::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px;
  border-radius: 100% 0 100% 0; background: rgba(255, 255, 255, .4);
  transform: rotate(-12deg) translateY(-1px);
}
.side-note i { margin-top: 6px; font-size: 9.5px; letter-spacing: .6px; color: rgba(255, 255, 255, .34); text-align: left; }

.shell.side-collapsed .side-collapse { justify-content: center; padding: 8px 0 0; }
.shell.side-collapsed .side-collapse-btn { width: 40px; padding: 0; justify-content: center; }
.shell.side-collapsed .side-collapse-btn span { display: none; }
.shell.side-collapsed .side-collapse-btn .ico { transform: rotate(-90deg); }

@media (max-height: 940px) {
  .nav-group-head { height: 28px; margin-top: 10px; }
  .nav > .nav-item:not(.sub) { height: 33px; }
  .nav-item.sub { height: 30px; }
  .side-note span { font-size: 11.5px; }
}
@media (max-height: 840px) {
  .side-scene { display: none; }
}

/* ============================================================
   UI v2 · 绿 / 紫双主题 · 白底卡片系统
   ============================================================ */
html[data-theme="green"] {
  --brand: #0e9f7a;
  --brand-strong: #0a7f61;
  --brand-soft: #e8f6f0;
  --nav-bg: #0d3b32;
  --nav-bg-2: #082c26;
  --nav-ink: #eef8f3;
  --nav-muted: rgba(238, 248, 243, .7);
  --nav-accent: #7fe0bd;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f7f9fa;
  --text: #1d2a26;
  --text-2: #4a5a54;
  --text-3: #8b9793;
  --border: #e7ecea;
  --border-strong: #d8e1dd;
  --paper: #ffffff;
  --cream: #f4f6f8;
  --cream-2: #f8fafb;
  --ink: #1d2a26;
  --ink-2: #4a5a54;
  --muted: #6f7e78;
  --faint: #97a39e;
  --line: #e7ecea;
  --line-soft: #eff3f1;
  --mint-500: #0e9f7a;
  --mint-600: #0a8062;
  --mint-700: #08644d;
  --mint-100: #e8f6f0;
  --mint-50: #f2faf7;
  --shadow-sm: 0 1px 2px rgba(16, 40, 32, .04);
  --shadow: 0 8px 24px rgba(16, 40, 32, .05);
  --shadow-lg: 0 24px 60px rgba(16, 40, 32, .12);
  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 14px;
  --r-sm: 10px;
}
html[data-theme="purple"] {
  --brand: #6d4aff;
  --brand-strong: #5634d8;
  --brand-soft: #f0edff;
  --nav-bg: #241544;
  --nav-bg-2: #190e33;
  --nav-ink: #f5f1ff;
  --nav-muted: rgba(245, 241, 255, .7);
  --nav-accent: #b7a4ff;
  --bg: #f5f5f8;
  --surface: #ffffff;
  --surface-2: #faf9fd;
  --text: #211b2e;
  --text-2: #554d67;
  --text-3: #948da5;
  --border: #e9e6f0;
  --border-strong: #dcd6e8;
  --paper: #ffffff;
  --cream: #f5f5f8;
  --cream-2: #faf9fc;
  --ink: #211b2e;
  --ink-2: #554d67;
  --muted: #6f687e;
  --faint: #9a94a8;
  --line: #e9e6f0;
  --line-soft: #f2eff7;
  --shadow-sm: 0 1px 2px rgba(35, 20, 70, .04);
  --shadow: 0 8px 24px rgba(35, 20, 70, .06);
  --shadow-lg: 0 24px 60px rgba(35, 20, 70, .14);
  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 14px;
  --r-sm: 10px;
}

body { background: var(--bg); color: var(--text); }
.bg-wash {
  background:
    radial-gradient(44% 30% at 100% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 72%),
    linear-gradient(180deg, #f8fafb 0%, var(--bg) 38%);
}
.bg-wash::after { display: none; }
.bg-landscape { display: none; }

body, .topbar, .sidebar, .card, .kpi, .stat, .quick, .btn, .icon-btn, .search, .date-chip,
.theme-switch, .theme-opt, .nav-item, .nav-group-head, .data-table th, .data-table td,
.modal, .field input, .field select, .field textarea {
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

/* 顶栏 */
.topbar {
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px 0 16px;
}
.headline h1 { font-size: 32px; font-weight: 700; letter-spacing: -.7px; color: var(--text); }
.headline p { margin-top: 7px; font-size: 13.5px; color: var(--text-3); letter-spacing: 0; }
.top-actions { gap: 8px; }
.search {
  width: 258px; height: 38px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: none;
}
.search:focus-within { width: 298px; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.search input { font-size: 13px; }
.search kbd { background: var(--surface); border-color: var(--border); color: var(--text-3); }
.date-chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-2); box-shadow: none; padding: 8px 12px;
}
.date-chip .time { color: var(--brand); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: none;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); transform: none; }
.icon-btn .dot { box-shadow: 0 0 0 2px var(--surface); }

.theme-switch {
  display: flex; align-items: center; gap: 2px;
  height: 38px; padding: 4px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px;
}
.theme-opt {
  position: relative; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
}
.theme-opt::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.theme-opt.green { color: #0e9f7a; }
.theme-opt.purple { color: #6d4aff; }
.theme-opt.active { background: var(--surface); box-shadow: 0 1px 4px rgba(20, 30, 40, .14); }
.theme-opt.active::after { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent); }

/* 页面与卡片 */
.stage { padding: 24px 32px 40px; }
.hero-line { margin-bottom: 18px; }
.hero-chips .hero-chip:first-child { display: none; }
.hero-chip {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-3); border-radius: 8px; box-shadow: none;
}
.hero-chip b { color: var(--text); }
.hero-chip .ico { color: var(--brand); }
.hero-note { color: var(--text-3); }
.card, .kpi, .stat {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.card { padding: 24px; border-radius: 16px; }
.card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.card-head { margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.card-title small { margin-left: 7px; font-size: 11.5px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.card-link { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.card-link:hover { color: var(--brand); }
.card-title .dot { width: 6px; height: 6px; background: var(--brand); }

.kpi-grid, .dash-grid, .panel-grid { gap: 16px; }
.kpi { padding: 20px; border-radius: 16px; gap: 12px; }
.kpi:hover { transform: none; }
.kpi-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  box-shadow: none;
}
.kpi-ico .ico { width: 19px; height: 19px; }
.kpi-label { font-size: 12.5px; color: var(--text-3); }
.kpi-num { margin-top: 5px; font-size: 28px; color: var(--text); }
.kpi-num small { color: var(--text-3); }
.kpi-sub { margin-top: 5px; font-size: 11.5px; color: var(--text-3); }
.kpi-ring { width: 40px; height: 40px; opacity: .9; }
.kpi-ring svg { width: 40px; height: 40px; }
.kpi-ring .track { stroke: var(--border); }
.kpi-ring .bar { stroke: var(--brand); }
.kpi.warn, .stat.warn {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: inset 3px 0 0 var(--coral), var(--shadow-sm);
}
.stat {
  padding: 20px; border-radius: 16px; text-align: center;
}
.stat .s-label { justify-content: center; font-size: 12.5px; color: var(--text-3); }
.stat .s-num { font-size: 27px; color: var(--text); }
.stat .s-num small { font-size: 11.5px; color: var(--text-3); }
.stat .s-sub { font-size: 11.5px; color: var(--text-3); }
.stat.attention {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--yellow) 36%, var(--border));
  box-shadow: inset 3px 0 0 var(--yellow), var(--shadow-sm);
}

/* 快捷入口与按钮 */
.quick {
  min-height: 82px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 14px;
}
.quick:hover { background: var(--surface); border-color: color-mix(in srgb, var(--brand) 22%, var(--border)); box-shadow: var(--shadow-sm); }
.quick-ico { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.quick span { color: var(--text-2); font-size: 12.5px; }
.btn { border-radius: 10px; font-weight: 600; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 28%, transparent); }
.btn.primary:hover { background: var(--brand-strong); }
.btn.ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn.soft { background: var(--brand-soft); color: var(--brand-strong); }
.tag { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); border-radius: 7px; font-size: 11px; }
.tab { font-size: 12.5px; border-radius: 8px; }
.tab.active { background: var(--brand-soft); color: var(--brand-strong); border-color: color-mix(in srgb, var(--brand) 20%, var(--border)); }
.todo-tabs .tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 表格 */
.data-table th {
  padding: 10px; font-size: 11px; color: var(--text-3);
  border-bottom: 1px solid var(--border); letter-spacing: .2px;
}
.data-table td { padding: 12px 10px; font-size: 13.5px; color: var(--text-2); border-bottom: 1px solid var(--line-soft); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table td.num, .data-table td.right { font-variant-numeric: tabular-nums; }
.data-table td.low, .quality-rank td.low { color: var(--coral); }

/* 图表与提醒的容器 */
.pulse-tip { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.remind { border-bottom: 1px solid var(--line-soft); }
.remind.urgent { background: color-mix(in srgb, var(--coral) 8%, transparent); box-shadow: inset 2px 0 0 var(--coral); }
.mini-note { background: var(--surface-2); color: var(--text-3); }
.lib-note { background: var(--surface-2); color: var(--text-3); }

/* 侧栏：深色导航 + 品牌色选中 */
.sidebar {
  background: linear-gradient(180deg, var(--nav-bg) 0%, var(--nav-bg-2) 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  box-shadow: none;
}
.sidebar::before { background: radial-gradient(56% 22% at 18% 0%, rgba(255, 255, 255, .1), transparent 72%); }
.profile { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.avatar {
  background: rgba(255, 255, 255, .1); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 8px 20px rgba(0, 0, 0, .16);
}
.profile-text b { color: var(--nav-ink); }
.profile-text span { color: var(--nav-muted); }
.nav > .nav-item:not(.sub) { color: var(--nav-muted); }
.nav-group-head { color: var(--nav-muted); }
.nav-group-head .g-ic { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .68); }
.nav-group-head.has-active { color: var(--nav-ink); }
.nav-group-head.has-active .g-ic { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-group-head .g-count { color: rgba(255, 255, 255, .34); }
.nav-group-items { border-left-color: rgba(255, 255, 255, .08); }
.nav-item.sub { color: var(--nav-muted); }
.nav-item.sub .ico { opacity: .62; }
.nav-item.sub:hover { background: rgba(255, 255, 255, .06); color: var(--nav-ink); }
.nav-item.active {
  background: var(--brand); color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 36%, transparent);
}
.nav-item.active .ico { color: #fff; }
.nav-item.sub.active { color: #fff; }
.nav-item.sub.active .ico { color: #fff; opacity: 1; }
.nav-item .badge { background: rgba(255, 255, 255, .1); color: var(--nav-ink); }
.nav-item.active .badge { background: rgba(255, 255, 255, .2); color: #fff; }
.side-collapse-btn { color: var(--nav-muted); }
.side-collapse-btn:hover { color: var(--nav-ink); background: rgba(255, 255, 255, .07); }
.side-note span { color: var(--nav-muted); }
.side-note i { color: rgba(255, 255, 255, .3); }

/* 弹窗与表单 */
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); }
.modal h3 { color: var(--text); }
.modal-sub { color: var(--text-3); }
.field span { color: var(--text-2); }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.modal-x { color: var(--text-3); }
.modal-x:hover { background: var(--surface-2); color: var(--text); }

/* 登录门禁与空状态 */
.login-required { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.login-required .lr-ico { background: var(--brand-soft); color: var(--brand); }
.login-required h3 { color: var(--text); }
.login-required p { color: var(--text-3); }

/* ============================== UI v2 收尾 ============================== */
/* 去掉旧版的彩色光斑与山水装饰，保持白底干净 */
.kpi::after { display: none; }
.stage-scene { display: none; }
.hero { background: none; }

/* 登录 / 账号按钮统一品牌色 */
.guest-auth {
  height: 38px; padding: 0 10px 0 6px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: none;
}
.guest-auth:hover { background: var(--surface-2); border-color: var(--border-strong); }
.guest-auth .u-avatar {
  width: 26px; height: 26px; background: var(--brand-soft); color: var(--brand);
  font-size: 11px; box-shadow: none;
}
.guest-auth .u-meta b { font-size: 12.5px; color: var(--text); }
.guest-auth .u-meta span { font-size: 9.5px; color: var(--text-3); }
.guest-auth .ico { color: var(--text-3); }
.auth-btn {
  height: 38px; border-radius: 10px; font-size: 13px;
  background: var(--brand); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 26%, transparent);
}
.auth-btn:hover { background: var(--brand-strong); filter: none; }
.user-chip {
  height: 38px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: none;
}
.user-chip:hover { background: var(--surface-2); }
.user-chip .u-avatar { background: var(--brand-soft); color: var(--brand); }
.user-chip b { color: var(--text); font-size: 12.5px; }
.user-chip span { color: var(--text-3); }

/* 登录弹窗插画改为品牌浅底，两套主题都不冲突 */
.login-hero { height: 92px; background: linear-gradient(180deg, var(--brand-soft), var(--surface)); }
.login-hero > svg { display: none; }
.login-mark {
  left: 28px; bottom: 14px; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent);
}
.login-mark .ico { width: 20px; height: 20px; }
.login-card h2 { color: var(--text); }
.login-sub, .login-foot { color: var(--text-3); }
.keep i { border-color: var(--border-strong); }
.keep input:checked + i { background: var(--brand); border-color: var(--brand); }

/* 让数据与图标回归两套主色：标题圆点统一品牌色，指标图标统一品牌色 */
.card-title .dot { background: var(--brand) !important; }
.stat .s-label .ico { color: var(--brand); }
.prov-row .p-track i { background: linear-gradient(90deg, #9fe3d0, #0e9f7a); }

/* 质量页图表降噪：数据条统一青绿，仅最弱 3 项保留暖色提示 */
.indicator-row .i-track { height: 6px; background: var(--line-soft); }
.indicator-row .i-track i { background: linear-gradient(90deg, #9fe3d0, #0e9f7a); }
.indicator-row.weak .i-track i { background: linear-gradient(90deg, #f3c3ac, var(--coral)); }
.indicator-row.weak .i-name { color: var(--text); font-weight: 600; }
.problem-row .p-track { height: 6px; background: var(--line-soft); }
.problem-row .p-track i { background: linear-gradient(90deg, #9fe3d0, #0e9f7a); }
.problem-row .p-name em { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); }
.stat.attention { border-color: var(--border); box-shadow: inset 3px 0 0 var(--yellow), var(--shadow-sm); }

/* 健康页二维码卡：提示贴底，避免等宽布局留下大块空白 */
#sec-health-qr .mini-note { margin-top: auto; }

@media (max-width: 1400px) {
  .headline h1 { font-size: 30px; }
  .search { width: 190px; }
  .search:focus-within { width: 220px; }
}
@media (max-width: 1240px) {
  .headline h1 { font-size: 28px; }
  .search { display: none; }
}
@media (max-width: 720px) {
  .topbar { padding: 16px 0 12px; }
  .headline h1 { font-size: 26px; }
  .theme-switch { order: -1; }
  .stage { padding: 18px 16px 28px; }
  .card { padding: 18px; }
  .search { display: none; }
}

/* ============================================================
   UI v3 · 板块层级、图表宽度与圆环精修
   ============================================================ */

/* 侧栏略加宽，板块标题做成清晰的“分区条” */
@media (min-width: 1081px) {
  .sidebar { width: 204px; padding-left: 14px; padding-right: 14px; }
  .stage { margin-left: 204px; }
  .shell.side-collapsed .sidebar { width: 80px; padding-left: 10px; padding-right: 10px; }
  .shell.side-collapsed .stage { margin-left: 80px; }
}
.nav-group-head {
  height: 38px; margin: 16px 0 4px; padding: 0 10px; gap: 8px;
  background: rgba(255, 255, 255, .095);
  border: 0; border-radius: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: .4px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.nav-group-head::before { display: none; }
.nav-group-head:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-group-head .g-ic {
  width: 22px; height: 22px; padding: 3px; border-radius: 7px;
  background: color-mix(in srgb, var(--brand) 30%, transparent); color: #fff;
}
.nav-group-head .g-count { font-size: 10.5px; color: rgba(255, 255, 255, .6); }
.nav-group-head .g-chev { width: 12px; height: 12px; opacity: .55; }
.nav-group-head.has-active {
  background: rgba(255, 255, 255, .12); color: #fff;
  box-shadow: inset 3px 0 0 var(--brand), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.nav-group-head.has-active .g-ic { background: var(--brand); }
.nav-group-head.has-active .g-count { color: rgba(255, 255, 255, .66); }
.nav-group-items {
  margin: 2px 0 10px 11px; padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.nav-item.sub { height: 33px; font-size: 13px; color: var(--nav-muted); }
.nav-item.sub:hover { color: #fff; }

/* KPI 圆环：容器与 SVG 同尺寸，百分比真正居中 */
.kpi-ring { width: 48px; height: 48px; opacity: 1; }
.kpi-ring svg { width: 100%; height: 100%; transform: none; }
.kpi-ring .track { stroke: var(--line); stroke-width: 4; }
.kpi-ring .bar { stroke-width: 4; }
.kpi-ring .ring-val {
  fill: var(--text-2); font-family: var(--font-num); font-weight: 800;
  letter-spacing: -.2px; font-variant-numeric: tabular-nums;
}
.kpi.warn .kpi-ring .ring-val { fill: var(--coral); }

/* 质量页指标：两列紧凑排布，数据条不再横贯整张卡 */
.indicator-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 11px 30px; max-width: 680px;
}
.indicator-row { gap: 9px; }
.indicator-row .i-name { width: 84px; font-size: 12.5px; }
.indicator-row .i-track { max-width: 300px; }
.problem-list { max-width: 540px; }
.problem-row .p-track { max-width: 240px; }

/* 趋势图不再横向拉满，保持舒适比例 */
#sec-turnover-trend > svg { max-width: 640px; }

/* 窄屏收成图标栏：板块条隐藏，分组之间用细线分隔 */
@media (max-width: 1080px) {
  .sidebar { width: 80px; padding: 18px 10px 12px; }
  .stage { margin-left: 80px; }
  .nav-group-head { display: none; }
  .side-collapse { display: none; }
  .nav-group-items { margin: 0; padding-left: 0; border-left: 0; }
  .nav-group-items + .nav-group-items {
    margin-top: 8px; padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
}
@media (max-width: 720px) {
  .sidebar { width: 64px; padding: 14px 8px 10px; }
  .stage { margin-left: 64px; }
}

/* ============================================================
   UI v4 · 卡片内容利用、文字防溢出、整页布局平衡
   ============================================================ */

/* 文字不再顶到卡片边缘 */
.card-title { min-width: 0; overflow: hidden; }
.card-title small {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-link { flex: 0 0 auto; white-space: nowrap; }
.remind-body b, .remind-body span {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.note, .data-table td, .data-table th { overflow-wrap: anywhere; }

/* 卡片底部进度与横向条形：宽屏单列时不再无限拉长 */
.sum-progress { max-width: 420px; }
.bp-row .p-track, .prov-row .p-track { max-width: 320px; }

/* 小排行条：中心温度 / 流失率 / 超目标中心共用 */
.sum-rank { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.sum-rank-head { margin-bottom: 4px; font-size: 10.5px; letter-spacing: .3px; color: var(--text-3); }
.sum-rank-row { display: flex; align-items: center; gap: 8px; height: 20px; font-size: 11.5px; color: var(--text-2); }
.sum-rank-row .n {
  width: 54px; flex: 0 0 auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sum-rank-row .t { flex: 1; height: 5px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.sum-rank-row .t i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #9fe3d0, #0e9f7a); }
.sum-rank-row b {
  flex: 0 0 auto; min-width: 38px; text-align: right;
  font-family: var(--font-num); font-size: 11.5px; color: var(--text);
}
.sum-rank-row.hot .t i { background: linear-gradient(90deg, #f3c3ac, var(--coral)); }
.sum-rank-row.hot b { color: #c25548; }
.sum-rank-empty {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--brand-soft); color: var(--text-2); font-size: 12px;
}
.sum-rank-empty .ico { color: var(--brand); }

/* 卡片底部说明贴底，避免半截空白 */
#sec-turnover-note .mini-note,
#sec-quality-problems .mini-note,
#sec-health-bp .mini-note { margin-top: auto; }
#sec-turnover-note .turnover-insight { margin-bottom: 12px; }

/* 工作备忘底部信息 */
#sec-notes { display: flex; flex-direction: column; }
#sec-notes .notes { flex: 1; }
.notes-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft);
  font-size: 10.5px; color: var(--text-3);
}
.notes-foot .card-link { font-size: 10.5px; }

/* 本月绩效：末位关注 */
#sec-perf { display: flex; flex-direction: column; }
.perf-bottom { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.perf-bottom .section-label { margin-bottom: 4px; }
.perf-rank.low em { color: #c25548; }
.perf-rank.low .track i { background: linear-gradient(90deg, #f3c3ac, var(--coral)); }

/* 临近提醒底部提示 */
#sec-remind .remind.extra { display: none; }
#sec-remind.expanded .remind.extra { display: flex; }
.remind-more {
  display: block; width: 100%;
  margin-top: 10px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line-soft);
  background: none; text-align: center; font-size: 10.5px; color: var(--text-3);
  cursor: pointer;
}
.remind-more:hover { color: var(--brand); }

/* 心情：近 7 天记录条 */
.mood-week { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.mood-week-head {
  display: flex; justify-content: space-between;
  margin-bottom: 6px; font-size: 10.5px; color: var(--text-3);
}
.mood-week-row { display: flex; justify-content: space-between; gap: 6px; }
.mood-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mood-day i { width: 100%; height: 6px; border-radius: 99px; background: var(--line-soft); }
.mood-day em { font-style: normal; font-size: 10px; color: var(--text-3); }
.mood-day.on em { color: var(--text-2); }

/* 健康页：登记引导 / 最近登记 */
.bp-guide { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.bp-guide div {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 9px;
  background: var(--surface-2); font-size: 11.5px; color: var(--text-2);
}
.bp-guide em {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-style: normal; font-size: 10px; font-weight: 800;
}
.bp-recent { margin-top: 6px; }
.bp-recent-row { display: flex; align-items: center; gap: 6px; height: 24px; font-size: 11px; color: var(--text-2); }
.bp-recent-row span { width: 42px; flex: 0 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-recent-row em {
  flex: 1; min-width: 0; font-style: normal; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bp-recent-row b { font-family: var(--font-num); font-size: 11px; color: var(--text); }
.bp-recent-row i { font-style: normal; font-size: 10px; color: var(--text-3); }
.bp-recent-row i.warn { color: #c25548; }
#sec-health-bp .follow-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#sec-health-bp .follow-stats div { padding: 8px 4px; min-width: 0; }
#sec-health-bp .follow-stats b { font-size: 17px; }
#sec-health-bp .follow-stats span { font-size: 9.5px; white-space: nowrap; }

/* 人才页：左高右双卡，人才发展整行，避免大面积空白 */
.talent-grid { align-items: start; }
.talent-grid #sec-qingmiao { grid-row: span 2; }
.unit-rank { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; margin-top: 4px; }
.unit-rank-row { display: flex; align-items: center; gap: 10px; height: 26px; font-size: 12px; color: var(--text-2); }
.unit-rank-row .name { width: 110px; flex: 0 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit-rank-row .track { flex: 1; height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.unit-rank-row .track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #9fe3d0, #0e9f7a); }
.unit-rank-row b { width: 52px; flex: 0 0 auto; text-align: right; font-family: var(--font-num); color: var(--text); }
@media (max-width: 1080px) {
  .talent-grid #sec-qingmiao { grid-row: auto; }
  .unit-rank { grid-template-columns: 1fr; }
}

/* 平板宽度：底盘汇总卡保持三列，短卡与长卡各自成行，避免空洞 */
@media (min-width: 960px) and (max-width: 1080px) {
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-grid > .panel-4 { grid-column: span 1; }
  .remind-list.compact .remind { padding: 6px 0; gap: 8px; }
  .remind-list.compact .remind-time { width: 34px; font-size: 10px; }
  .remind-list.compact .remind-body b { font-size: 11.5px; line-height: 1.4; }
  .remind-list.compact .remind-body span { font-size: 9px; }
  .remind-list.compact .tag {
    align-self: center; width: 7px; height: 7px; padding: 0;
    font-size: 0; border: 0; border-radius: 50%; background: var(--brand);
    flex: 0 0 auto;
  }
  .remind-list.compact .tag.coral { background: var(--coral); }
  .remind-list.compact .tag.yellow { background: var(--yellow); }
  .remind-list.compact .tag.lav { background: var(--lav); }
  .remind-list.compact .tag.blue { background: var(--blue); }
  .remind-list.compact .tag.gray { background: var(--text-3); }
  #sec-remind.sum-card { display: flex; flex-direction: column; }
  #sec-remind .remind-foot {
    display: block; margin-top: auto; padding-top: 10px;
    border-top: 1px solid var(--line-soft);
    text-align: center; font-size: 10px; color: var(--text-3);
  }
}
.remind-foot { display: none; }

/* ============================================================
   UI v5 · 可读性、对比度与交互细节
   ============================================================ */
html[data-theme="green"] { --text-3: #6f7c77; --faint: #7f8c87; }
html[data-theme="purple"] { --text-3: #7b7389; --faint: #8b8398; }

@media (min-width: 1081px) {
  .remind-body b { font-size: 12.2px; }
  .remind-body span { font-size: 10.5px; }
  .remind-time { font-size: 11px; }
  .data-table th { font-size: 11px; }
  .sum-metrics span, .stat .s-sub, .kpi-sub, .todo-foot, .pager > span, .legend { font-size: 11px; }
  .sum-rank-head { font-size: 11px; }
  .sum-rank-row { font-size: 12px; }
  .sum-rank-row b { font-size: 12px; }
  .quick span { font-size: 11.5px; }
  .section-label { font-size: 11px; }
  .perf-rank { font-size: 11px; }
  .perf-rank .name { width: 62px; }
  .bar-item span { font-size: 10.5px; }
  .funnel-row { font-size: 11px; }
  .funnel-row b { font-size: 11.5px; }
  .habit-table th { font-size: 10.5px; }
  .habit-name { font-size: 11px; }
  .feature > span { font-size: 10.5px; }
  .campaign-main span { font-size: 10.5px; }
  .q-top, .q-top b { font-size: 11px; }
  .entry > span:last-child { font-size: 10.5px; }
  .notes-foot, .notes-foot .card-link { font-size: 11px; }
  .remind-foot { font-size: 10.5px; }
  .mood-day em { font-size: 10.5px; }
}
.mini-note, .lib-note, .qr-tip { font-size: 11px; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   UI v6 · GitHub 风格侧栏 + 系统设置
   ============================================================ */

/* 侧栏：分区标题退后，菜单项成为主角 */
.sidebar {
  border-right: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 18px 0 46px rgba(8, 20, 16, .18);
}
.nav { padding-top: 6px; }
.nav-group-head {
  position: relative;
  height: 30px; margin: 16px 2px 2px; padding: 0 8px; gap: 7px;
  background: transparent; border: 0; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: rgba(255, 255, 255, .64); box-shadow: none;
}
.nav-group-head::before {
  content: ""; display: block; position: absolute;
  left: 8px; right: 8px; top: -8px; height: 1px;
  background: rgba(255, 255, 255, .08);
}
.nav-group-head:hover { background: rgba(255, 255, 255, .055); color: #fff; transform: none; }
.nav-group-head .g-ic {
  width: 14px; height: 14px; padding: 0; border-radius: 0;
  background: transparent; color: rgba(255, 255, 255, .56);
}
.nav-group-head .g-count { font-size: 9.5px; color: rgba(255, 255, 255, .46); }
.nav-group-head .g-chev { width: 10px; height: 10px; opacity: .32; }
.nav-group-head.has-active { background: transparent; color: #fff; box-shadow: none; }
.nav-group-head.has-active .g-ic { background: transparent; color: var(--nav-accent); }
.nav-group-head.has-active .g-count { color: rgba(255, 255, 255, .6); }
.nav-group-head.has-active .g-chev { opacity: .55; }
.nav-group-items {
  margin: 0 0 4px 10px; padding-left: 7px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.nav-item {
  border-radius: 6px;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav > .nav-item:not(.sub) {
  height: 36px; margin: 2px 0; padding: 0 10px;
  font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .84);
}
.nav-item.sub {
  height: 31px; margin: 1px 0; padding: 0 8px;
  font-size: 12.5px; color: rgba(255, 255, 255, .7);
}
.nav-item.sub .ico { width: 15px; height: 15px; opacity: .72; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; transform: none; }
.nav-item.sub:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.nav-item.active,
.nav-item.sub.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08) 58%, rgba(255, 255, 255, .03));
  color: #fff; font-weight: 600; text-shadow: none;
  box-shadow: inset 3px 0 0 var(--nav-accent), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.nav-item.active::after { display: none; }
.nav-item.active .ico,
.nav-item.sub.active .ico { color: #fff; opacity: 1; }
.nav-item.active .badge { background: rgba(255, 255, 255, .18); color: #fff; }
.nav-item .mini { font-size: 9.5px; color: rgba(255, 255, 255, .42); }
.nav-item.active .mini { color: rgba(255, 255, 255, .72); }

/* 系统设置页 */
.settings-card { display: flex; flex-direction: column; gap: 16px; }
.settings-intro {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.settings-intro b { display: block; font-size: 15px; color: var(--text); }
.settings-intro span { display: block; margin-top: 4px; font-size: 12px; color: var(--text-3); }
.settings-saved { flex: 0 0 auto; font-size: 11px; color: var(--text-3); }
#settingsEditor { display: flex; flex-direction: column; gap: 18px; }
.setting-block { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.setting-block-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.setting-block-title { font-size: 13px; font-weight: 700; color: var(--text); }
.setting-count { font-size: 11px; color: var(--text-3); }
.setting-block-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.setting-rows { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; }
.setting-row {
  display: grid; align-items: center; gap: 8px;
  grid-template-columns: minmax(140px, 1.2fr) minmax(190px, 1.5fr) 104px 76px 58px auto;
  padding: 6px 0; border-bottom: 1px dashed var(--line-soft);
}
.setting-row:last-child { border-bottom: 0; }
.setting-input, .setting-select {
  min-width: 0; height: 32px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface); color: var(--text); font-size: 12px;
}
.setting-input:focus, .setting-select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.group-icon { width: 104px; }
.group-label { width: 180px; font-weight: 700; }
.setting-check { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.setting-actions { display: flex; justify-content: flex-end; gap: 4px; }
.setting-actions button, .setting-block-actions button {
  height: 28px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text-2); font-size: 11px; cursor: pointer;
}
.setting-actions button:hover, .setting-block-actions button:hover { background: var(--surface-2); color: var(--text); }
.setting-actions .danger:hover, .setting-block-actions .danger:hover { color: #c25548; border-color: color-mix(in srgb, var(--coral) 40%, var(--border)); }
.setting-block-actions .add { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 24%, var(--border)); background: var(--brand-soft); }
.settings-savebar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.settings-savebar > span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.settings-savebar > div { display: flex; align-items: center; gap: 8px; }

/* 首页系统设置卡 */
.settings-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 2px 0 12px; }
.settings-overview div { padding: 10px 6px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.settings-overview b { display: block; font-family: var(--font-num); font-size: 20px; color: var(--text); }
.settings-overview span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--text-3); }
.settings-links { display: flex; flex-direction: column; gap: 1px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.settings-links div { display: flex; align-items: center; gap: 7px; height: 25px; font-size: 11.5px; color: var(--text-2); }
.settings-links .s-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }
.settings-links em { margin-left: auto; font-style: normal; font-family: var(--font-num); font-size: 10.5px; color: var(--text-3); }
.settings-links b { padding: 2px 6px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-size: 9.5px; font-weight: 600; }

@media (max-width: 1080px) {
  .setting-row { grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.2fr) 88px 64px; }
  .setting-row .setting-check { grid-column: 1 / 2; }
  .setting-row .setting-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .settings-savebar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .setting-row { grid-template-columns: 1fr; }
  .setting-row .setting-check, .setting-row .setting-actions { grid-column: auto; }
  .group-icon, .group-label { width: 100%; }
  .setting-block-head { align-items: flex-start; }
  .setting-block-actions { margin-left: 0; width: 100%; }
}



/* ============================================================
   UI v7 · 员工质量委员会 / 流失率
   ============================================================ */
.yg-tabs {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 14px;
  padding: 4px; width: fit-content;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.yg-tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border: 0; border-radius: 9px;
  background: transparent; color: var(--text-3); font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: background .16s, color .16s, box-shadow .16s;
}
.yg-tab .ico { width: 15px; height: 15px; }
.yg-tab em {
  font-style: normal; font-family: var(--font-num); font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 99px; background: var(--border); color: var(--text-3);
}
.yg-tab:hover { color: var(--text); background: var(--surface); }
.yg-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.yg-tab.active .ico { color: var(--brand); }
.yg-tab.active em { background: var(--brand-soft); color: var(--brand-strong); }

.yg-filters, .yg-chips { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.yg-chip {
  height: 26px; padding: 0 9px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-3);
  font-size: 11px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.yg-chip.small { height: 24px; padding: 0 8px; font-size: 10.5px; font-weight: 500; }
.yg-chip:hover { color: var(--text); border-color: var(--border-strong); }
.yg-chip.active { background: var(--brand-soft); color: var(--brand-strong); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.yg-select {
  height: 28px; padding: 0 8px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 11.5px;
}

.yg-chart { max-width: 860px; margin: 2px auto 0; }
.yg-chart svg { display: block; width: 100%; height: auto; }
.yg-chart-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 860px; margin: 4px auto 0; padding-top: 8px;
  border-top: 1px dashed var(--line-soft);
  font-size: 11px; color: var(--text-3);
}
.yg-chart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 150px; color: var(--faint); font-size: 12px;
}
.yg-chart-empty .ico { width: 24px; height: 24px; opacity: .6; }

.yg-cat-list { display: flex; flex-direction: column; gap: 4px; }
.yg-cat-row {
  display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 9px;
  width: 100%; padding: 6px 7px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; text-align: left; cursor: pointer; transition: background .15s, border-color .15s;
}
.yg-cat-row:hover { background: var(--surface-2); }
.yg-cat-row.active { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 22%, transparent); }
.yg-cat-row .c-name { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yg-cat-row.weak .c-name { color: var(--text); font-weight: 700; }
.yg-cat-row .c-track { height: 7px; border-radius: 99px; background: #f1f4f0; overflow: hidden; }
.yg-cat-row .c-track i { display: block; height: 100%; border-radius: 99px; }
.yg-cat-row b { font-family: var(--font-num); font-size: 12px; text-align: right; }
.yg-cat-row b.coral { color: #d86a4a; }
.yg-cat-row b.yellow { color: #b9862c; }
.yg-cat-row b.mint { color: var(--mint-600); }
.yg-cat-row .c-track i.coral { background: linear-gradient(90deg, #f7b9a1, var(--coral)); }
.yg-cat-row .c-track i.yellow { background: linear-gradient(90deg, #f6dc9b, #e6b65a); }
.yg-cat-row .c-track i.mint { background: linear-gradient(90deg, var(--mint-300), var(--mint-600)); }

.yg-q-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 22px; }
.yg-q-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 96px 34px 92px; align-items: center; gap: 8px;
  padding: 8px 4px; border-bottom: 1px dashed var(--line-soft);
}
.yg-q-row .q-name { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yg-q-row.weak .q-name { color: var(--text); font-weight: 600; }
.yg-q-row .q-track { height: 7px; border-radius: 99px; background: #f1f4f0; overflow: hidden; }
.yg-q-row .q-track i { display: block; height: 100%; border-radius: 99px; }
.yg-q-row .q-track i.coral { background: linear-gradient(90deg, #f7b9a1, var(--coral)); }
.yg-q-row .q-track i.yellow { background: linear-gradient(90deg, #f6dc9b, #e6b65a); }
.yg-q-row .q-track i.mint { background: linear-gradient(90deg, var(--mint-300), var(--mint-600)); }
.yg-q-row b { font-family: var(--font-num); font-size: 12px; text-align: right; }
.yg-q-row b.coral { color: #d86a4a; }
.yg-q-row b.yellow { color: #b9862c; }
.yg-q-row b.mint { color: var(--mint-600); }
.yg-q-row em { font-style: normal; font-size: 10px; color: var(--faint); text-align: right; white-space: nowrap; }

.yg-note {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-soft);
  font-size: 10.5px; line-height: 1.6; color: var(--text-3);
}
.yg-note .ico { width: 12px; height: 12px; margin-top: 2px; flex: 0 0 auto; color: var(--faint); }

.yg-problem-list { display: flex; flex-direction: column; gap: 7px; }
.yg-problem-row { display: grid; grid-template-columns: 92px 1fr 30px; align-items: center; gap: 9px; }
.yg-problem-row .p-name { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yg-problem-row .p-track { height: 7px; border-radius: 99px; background: #f4f1ea; overflow: hidden; }
.yg-problem-row .p-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f7b9a1, var(--coral)); }
.yg-problem-row b { font-family: var(--font-num); font-size: 12px; color: var(--text); text-align: right; }
.yg-status { display: flex; gap: 6px; margin-top: 12px; }
.yg-status-item {
  position: relative; flex: 1; padding: 8px 8px 10px; border-radius: 8px;
  background: var(--surface-2); overflow: hidden; text-align: center;
}
.yg-status-item b { display: block; font-family: var(--font-num); font-size: 15px; color: var(--text); }
.yg-status-item span { font-size: 10px; color: var(--text-3); }
.yg-status-item i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--brand); opacity: .55; }

.yg-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.yg-sample {
  padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px;
  background: var(--surface-2); transition: border-color .15s, background .15s;
}
.yg-sample:hover { border-color: var(--border-strong); background: var(--surface); }
.yg-sample .s-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.yg-sample .s-top b { font-size: 11.5px; color: var(--text); }
.yg-sample .s-top em { font-style: normal; font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%; }
.yg-sample .s-top .s-status {
  margin-left: auto; font-size: 10px; color: var(--text-3);
  padding: 1px 7px; border-radius: 99px; background: var(--border);
}
.yg-sample .s-top .s-status.ok { background: var(--mint-100); color: var(--mint-700); }
.yg-sample .s-top .s-status.doing { background: var(--yellow-soft); color: #8a6a1f; }
.yg-sample p { margin: 7px 0 0; font-size: 11.5px; line-height: 1.65; color: var(--text-2); }

.yg-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 56px 24px; text-align: center;
}
.yg-empty-ico {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand);
}
.yg-empty-ico .ico { width: 26px; height: 26px; }
.yg-empty b { font-size: 15px; color: var(--text); }
.yg-empty span { max-width: 420px; font-size: 12px; line-height: 1.7; color: var(--text-3); }

.yg-ring-wrap { display: flex; align-items: center; gap: 16px; padding: 6px 2px 12px; }
.yg-ring-wrap svg { flex: 0 0 auto; }
.yg-ring-meta b { display: block; font-family: var(--font-num); font-size: 26px; color: var(--text); line-height: 1.1; }
.yg-ring-meta span { display: block; margin-top: 5px; font-size: 11px; color: var(--text-3); }
.yg-ring-meta em { display: block; margin-top: 3px; font-style: normal; font-size: 10.5px; color: var(--faint); }
.yg-risk { display: flex; gap: 6px; margin-bottom: 10px; }
.yg-risk > div {
  position: relative; flex: 1; padding: 8px 4px 10px; border-radius: 8px;
  background: var(--surface-2); text-align: center; overflow: hidden;
}
.yg-risk b { display: block; font-family: var(--font-num); font-size: 15px; color: var(--text); }
.yg-risk span { font-size: 10px; color: var(--text-3); }
.yg-risk i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; opacity: .7; }
.yg-risk i.coral { background: var(--coral); }
.yg-risk i.yellow { background: #e6b65a; }
.yg-risk i.mint { background: var(--mint-500); }
.yg-bp-list { display: flex; flex-direction: column; gap: 7px; }
.yg-bp-row { display: grid; grid-template-columns: 72px 1fr 30px; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); }
.yg-bp-row .track { height: 7px; border-radius: 99px; background: #f1f4f0; overflow: hidden; }
.yg-bp-row .track i { display: block; height: 100%; border-radius: 99px; }
.yg-bp-row .track i.mint { background: var(--mint-500); }
.yg-bp-row .track i.yellow { background: #e6b65a; }
.yg-bp-row .track i.coral { background: var(--coral); }
.yg-bp-row .track i.blue { background: #7fa7d8; }
.yg-bp-row b { font-family: var(--font-num); font-size: 11.5px; color: var(--text-2); text-align: right; }
.yg-health-link { margin-top: 12px; width: 100%; justify-content: center; }

.yg-inline-bar {
  display: inline-block; width: 74px; height: 6px; margin-right: 7px;
  border-radius: 99px; background: #f1f4f0; overflow: hidden; vertical-align: middle;
}
.yg-inline-bar i { display: block; height: 100%; border-radius: 99px; background: var(--mint-500); }
.yg-inline-num { font-size: 11px; color: var(--text-3); }

.yg-tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.yg-tip {
  display: flex; gap: 9px; padding: 11px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
}
.yg-tip .t-ico {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 8px; background: var(--surface); color: var(--text-2);
}
.yg-tip .t-ico .ico { width: 14px; height: 14px; }
.yg-tip.coral .t-ico { background: var(--coral-soft); color: #c9653f; }
.yg-tip.yellow .t-ico { background: var(--yellow-soft); color: #9a7220; }
.yg-tip.blue .t-ico { background: var(--blue-soft); color: #3e6e9c; }
.yg-tip.mint .t-ico { background: var(--mint-100); color: var(--mint-700); }
.yg-tip b { display: block; font-size: 11.5px; color: var(--text); }
.yg-tip span { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.6; color: var(--text-3); }

.yg-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.yg-insight { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--border-strong); }
.yg-insight span { display: block; font-size: 10.5px; color: var(--text-3); }
.yg-insight b { display: block; margin-top: 5px; font-family: var(--font-num); font-size: 20px; color: var(--text); }
.yg-insight em { display: block; margin-top: 4px; font-style: normal; font-size: 10.5px; line-height: 1.55; color: var(--text-3); }
.yg-insight.coral { border-left-color: var(--coral); }
.yg-insight.lav { border-left-color: var(--lav); }
.yg-insight.blue { border-left-color: var(--blue); }

.yg-hot-list { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; border-top: 1px dashed var(--line-soft); }
.yg-hot-row { display: grid; grid-template-columns: 22px 76px 1fr 52px 56px 72px; align-items: center; gap: 8px; }
.yg-hot-row i { font-style: normal; font-family: var(--font-num); font-size: 10px; color: var(--faint); text-align: center; }
.yg-hot-row .name { font-size: 11.5px; color: var(--text-2); }
.yg-hot-row .track { height: 7px; border-radius: 99px; background: #f4f1ea; overflow: hidden; }
.yg-hot-row .track em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f7b9a1, var(--coral)); }
.yg-hot-row b { font-family: var(--font-num); font-size: 12px; color: #d86a4a; text-align: right; }
.yg-hot-row .gap { font-family: var(--font-num); font-size: 10.5px; color: var(--faint); text-align: right; }
.yg-hot-row .leave { font-size: 10.5px; color: var(--text-3); text-align: right; }
.yg-ok {
  display: flex; align-items: center; gap: 8px; padding: 10px 4px;
  font-size: 12px; color: var(--mint-700);
}
.yg-ok .ico { width: 15px; height: 15px; }

.ellipsis { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1080px) {
  .yg-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yg-insights { grid-template-columns: 1fr; }
  .yg-q-grid, .yg-samples { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .yg-tips { grid-template-columns: 1fr; }
  .yg-q-row { grid-template-columns: minmax(0, 1fr) 74px 30px; }
  .yg-q-row em { display: none; }
  .yg-hot-row { grid-template-columns: 22px 66px 1fr 46px 52px; }
  .yg-hot-row .leave { display: none; }
  .yg-tabs { width: 100%; }
  .yg-tab { flex: 1; justify-content: center; }
}
.yg-trend-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  max-width: 860px; margin: 10px auto 0;
}
.yg-trend-stats > div {
  padding: 8px 10px; border-radius: 8px; background: var(--surface-2); text-align: center;
}
.yg-trend-stats b { display: block; font-family: var(--font-num); font-size: 14px; color: var(--text); }
.yg-trend-stats span { font-size: 10px; color: var(--text-3); }
.yg-weak-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  max-width: 860px; margin: 10px auto 0; padding-top: 9px; border-top: 1px dashed var(--line-soft);
}
.yg-weak-row .label { font-size: 10.5px; color: var(--faint); }
.yg-weak-row .chip { font-size: 10.5px; color: var(--text-2); background: var(--coral-soft); border-radius: 6px; padding: 3px 8px; }
.yg-weak-row .chip b { font-family: var(--font-num); color: #c9653f; margin-left: 3px; }
.yg-weak-row em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--faint); }
.yg-recent { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-soft); }
.yg-recent-head { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); margin-bottom: 6px; }
.yg-recent-row {
  display: grid; grid-template-columns: 1fr 46px 52px 62px; align-items: center; gap: 6px;
  padding: 5px 0; border-bottom: 1px dashed var(--line-soft); font-size: 10.5px; color: var(--text-2);
}
.yg-recent-row:last-child { border-bottom: 0; }
.yg-recent-row em { font-style: normal; color: var(--faint); }
.yg-recent-row b { font-family: var(--font-num); text-align: right; color: var(--text); }
.yg-recent-row i { font-style: normal; text-align: right; color: var(--faint); }
.yg-recent-row i.warn { color: #c9653f; }
.yg-recent-empty { padding: 10px 0; font-size: 10.5px; color: var(--faint); text-align: center; }
.turnover-matrix th, .turnover-matrix td { padding: 9px 6px; font-size: 10.5px; white-space: nowrap; }
.turnover-matrix td b { font-size: 11px; }
.turnover-matrix th { font-size: 9px; letter-spacing: .2px; }

/* ============================================================
   UI v8 · 统一模块外壳 / 质量委员会切换卡 / 流失率紧凑排版
   ============================================================ */
body.module-mode .headline h1 { font-size: 24px; letter-spacing: .2px; }
body.module-mode .headline p { font-size: 12px; }
.module-view { height: calc(100vh - 196px); gap: 8px; }
.module-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 5px 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.module-tabs { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.module-tabs::-webkit-scrollbar { display: none; }
.module-tab {
  height: 32px; padding: 0 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-3); font-size: 12px; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: background .15s, color .15s;
}
.module-tab:hover { background: var(--surface-2); color: var(--text); }
.module-tab.active { background: var(--brand-soft); color: var(--brand-strong); }
.module-single { padding: 0 10px; font-size: 12px; font-weight: 700; color: var(--text); }
.module-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.module-actions .btn { height: 30px; padding: 0 10px; font-size: 11px; }
.module-frame { border-radius: 14px; }

.yg-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.yg-switch-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); text-align: left; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.yg-switch-card:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.yg-switch-card .sw-ico {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--surface-2); color: var(--text-3);
}
.yg-switch-card .sw-ico .ico { width: 19px; height: 19px; }
.yg-switch-card .sw-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.yg-switch-card .sw-main b { font-size: 14px; color: var(--text); }
.yg-switch-card .sw-main em { font-style: normal; font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yg-switch-card .sw-val { font-family: var(--font-num); font-size: 22px; font-weight: 800; color: var(--text); }
.yg-switch-card .sw-val small { margin-left: 2px; font-family: var(--font); font-size: 10px; font-weight: 600; color: var(--text-3); }
.yg-switch-card .sw-mark {
  position: absolute; top: 0; right: 0; display: none; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 0 13px 0 10px;
  background: var(--brand); color: #fff;
}
.yg-switch-card .sw-mark .ico { width: 12px; height: 12px; }
.yg-switch-card.active {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  background: linear-gradient(135deg, var(--brand-soft), var(--surface) 72%);
  box-shadow: 0 8px 22px rgba(14, 159, 122, .1);
}
.yg-switch-card.active .sw-ico { background: var(--brand); color: #fff; }
.yg-switch-card.active .sw-val { color: var(--brand-strong); }
.yg-switch-card.active .sw-mark { display: flex; }
html[data-theme="purple"] .yg-switch-card.active { box-shadow: 0 8px 22px rgba(109, 74, 255, .12); }

.turnover-insight p { font-size: 11.5px; line-height: 1.75; }
#sec-turnover-trend .legend { margin-top: 8px; font-size: 10.5px; }
#sec-turnover-analysis .yg-insights { margin-bottom: 10px; }

@media (max-width: 720px) {
  .yg-switch { grid-template-columns: 1fr; }
  .module-bar { flex-wrap: wrap; }
  .module-actions { width: 100%; justify-content: flex-end; }
}

/* v9 · 质量委员会切换：紧凑分段控件，置顶不拉长 */
.yg-switch {
  display: inline-flex; align-items: center; gap: 4px; width: auto; max-width: 100%;
  margin: 0 0 14px; padding: 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: none;
}
.yg-switch-card {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border: 0; border-radius: 9px;
  background: transparent; box-shadow: none; text-align: left; cursor: pointer;
  transition: background .16s, box-shadow .16s, color .16s;
}
.yg-switch-card:hover { background: var(--surface); transform: none; box-shadow: none; }
.yg-switch-card .sw-ico {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 7px;
  background: transparent; color: var(--text-3);
}
.yg-switch-card .sw-ico .ico { width: 15px; height: 15px; }
.yg-switch-card b { font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.yg-switch-card .sw-val {
  font-family: var(--font-num); font-size: 15px; font-weight: 800;
  color: var(--text-2); white-space: nowrap;
}
.yg-switch-card .sw-val small { margin-left: 1px; font-family: var(--font); font-size: 9px; font-weight: 600; color: var(--text-3); }
.yg-switch-card.active { background: var(--surface); box-shadow: var(--shadow-sm); }
.yg-switch-card.active .sw-ico { background: var(--brand); color: #fff; }
.yg-switch-card.active b { color: var(--text); }
.yg-switch-card.active .sw-val { color: var(--brand-strong); }
.yg-switch-card .sw-mark { display: none !important; }
@media (max-width: 720px) {
  .yg-switch { display: flex; width: 100%; }
  .yg-switch-card { flex: 1; justify-content: center; padding: 0 8px; }
}

/* v10 · 流失率：绩效口径密集表 */
.card.tv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin-bottom: 14px; overflow: hidden; }
.tv-kpi { padding: 14px 18px; border-right: 1px solid var(--line-soft); }
.tv-kpi:last-child { border-right: 0; }
.tv-kpi > span { display: block; font-size: 10.5px; color: var(--text-3); }
.tv-kpi b { display: block; margin-top: 4px; font-family: var(--font-num); font-size: 24px; line-height: 1.1; color: var(--text); }
.tv-kpi b small { margin-left: 2px; font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--text-3); }
.tv-kpi em { display: block; margin-top: 4px; font-style: normal; font-size: 10px; color: var(--text-3); }
.tv-kpi em.bad { color: #c9653f; }
.tv-kpi em.ok { color: var(--mint-700); }

.card.tv-card { padding: 0; overflow: hidden; }
.tv-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--line-soft);
}
.tv-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--text); }
.tv-title em {
  font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--text-3);
  padding: 2px 8px; border-radius: 99px; background: var(--surface-2);
}
.tv-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tv-seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 9px; }
.tv-seg button {
  height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent;
  font-size: 11px; font-weight: 600; color: var(--text-3); cursor: pointer; transition: background .15s, color .15s;
}
.tv-seg button:hover { color: var(--text); }
.tv-seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tv-scroll { overflow: auto; max-height: calc(100vh - 430px); min-height: 260px; }
.tv-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11.5px; }
.tv-table th {
  position: sticky; top: 0; z-index: 2;
  padding: 8px 10px; background: #f6faf7;
  font-size: 10px; font-weight: 700; letter-spacing: .2px; color: var(--text-3);
  text-align: right; white-space: nowrap; border-bottom: 1px solid var(--border);
}
.tv-table th:nth-child(1), .tv-table th:nth-child(2) { text-align: left; }
.tv-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; color: var(--text-2); }
.tv-table td:nth-child(1), .tv-table td:nth-child(2) { text-align: left; }
.tv-table tr:hover td { background: #f8fbf9; }
.tv-row.region td { background: #f3f9f5; font-weight: 700; color: var(--text); }
.tv-row.province td { background: #fbfdfc; font-weight: 600; color: var(--text); }
.tv-row.center td { font-size: 11px; }
.tv-lv {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 18px; padding: 0 6px; border-radius: 5px;
  font-size: 9.5px; font-weight: 700;
}
.tv-lv.region { background: var(--lav-soft); color: #6b5bb5; }
.tv-lv.province { background: var(--pink-soft); color: #b3527a; }
.tv-lv.center { background: var(--yellow-soft); color: #8a6a1f; }
.tv-name i { display: inline-block; width: 10px; height: 1px; margin-right: 6px; background: var(--border-strong); vertical-align: middle; }
.tv-table .num { font-family: var(--font-num); }
.tv-table .num.bad { color: #d86a4a; font-weight: 700; }
.tv-table .num.good { color: var(--mint-600); font-weight: 700; }
.tv-bar { display: inline-block; width: 92px; height: 7px; border-radius: 99px; background: #eef2ee; overflow: hidden; vertical-align: middle; }
.tv-bar i { display: block; height: 100%; border-radius: 99px; }
.tv-bar.ok i { background: linear-gradient(90deg, var(--mint-300), var(--mint-500)); }
.tv-bar.bad i { background: linear-gradient(90deg, #f7b9a1, var(--coral)); }
.tv-state { font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.tv-state.ok { background: var(--mint-100); color: var(--mint-700); }
.tv-state.bad { background: var(--coral-soft); color: #c9653f; }
.tv-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 16px; border-top: 1px solid var(--line-soft);
  font-size: 10px; color: var(--faint);
}
.tv-foot span { display: inline-flex; align-items: center; gap: 5px; }
.tv-foot .ico { width: 11px; height: 11px; }
.tv-judge { display: flex; flex-direction: column; gap: 10px; }
.tv-judge-row { display: flex; align-items: baseline; gap: 10px; }
.tv-judge-row b { font-family: var(--font-num); font-size: 24px; color: var(--text); }
.tv-judge-row span { font-size: 11px; line-height: 1.6; color: var(--text-3); }
.tv-alert {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px;
  background: var(--coral-soft); font-size: 11px; color: #a85436;
}
.tv-alert .ico { width: 14px; height: 14px; flex: 0 0 auto; }
.tv-alert b { font-weight: 800; }
.tv-ok { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; background: var(--mint-100); font-size: 11px; color: var(--mint-700); }
.tv-ok .ico { width: 14px; height: 14px; }
.tv-judge p { margin: 0; font-size: 11px; line-height: 1.75; color: var(--text-2); }
@media (max-width: 1080px) {
  .card.tv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-kpi:nth-child(2) { border-right: 0; }
  .tv-kpi:nth-child(1), .tv-kpi:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .tv-scroll { max-height: none; }
}
@media (max-width: 720px) {
  .tv-tools { width: 100%; }
  .tv-table { min-width: 880px; }
}
