:root {
  --sidebar-bg: #07111f;
  --sidebar-text: #94a3b8;
  --sidebar-active: rgba(30, 41, 59, 0.78);
  --sidebar-accent: #38bdf8;
  --main-bg: #eef5ff;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 24px rgba(37, 99, 235, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  /* 可读性字号阶梯（整体偏大，方便阅读） */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 16px;
  --fs-md: 15px;
  --fs-lg: 18px;
  --sidebar-width: 260px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(56, 189, 248, 0.18), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(99, 102, 241, 0.16), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, var(--main-bg) 55%, #f8fafc 100%);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.date-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 112px;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.35;
}

.date-stack span:first-child {
  color: var(--text);
  font-weight: 600;
}

.type-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 130px;
}

#table-projects th.col-industry-type,
#table-projects td:nth-child(3) {
  width: 160px;
  max-width: 160px;
}

#table-projects .type-stack-compact {
  min-width: 0;
  max-width: 100%;
  gap: 3px;
}

#table-projects .type-stack-compact .type-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  font-size: var(--fs-xs);
}

#table-projects .type-stack-compact .type-sub {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.type-sub,
.type-third {
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.25;
}

.type-sub {
  color: var(--text);
  font-weight: 600;
}

/* —— 登录（科幻 HUD + 全息表单） —— */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #010409;
  position: relative;
  overflow: hidden;
  --login-mx: 0px;
  --login-my: 0px;
}

.login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.login-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.login-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: login-nebula-drift 20s ease-in-out infinite;
}
.login-nebula-a {
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55) 0%, transparent 68%);
  animation-delay: 0s;
}
.login-nebula-b {
  width: 45vw;
  height: 45vw;
  max-width: 620px;
  max-height: 620px;
  bottom: -22%;
  right: -8%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.45) 0%, transparent 68%);
  animation-delay: -7s;
}
.login-nebula-c {
  width: 38vw;
  height: 38vw;
  max-width: 520px;
  max-height: 520px;
  top: 38%;
  left: 42%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.35) 0%, transparent 68%);
  animation-delay: -13s;
  opacity: 0.4;
}
@keyframes login-nebula-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -24px) scale(1.08); }
  66% { transform: translate(-20px, 18px) scale(0.94); }
}

.login-horizon {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -5%;
  height: 55%;
  transform: perspective(500px) rotateX(68deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: login-horizon-scroll 12s linear infinite;
  opacity: 0.35;
  z-index: 1;
}
@keyframes login-horizon-scroll {
  from { background-position: 0 0; }
  to { background-position: 0 64px; }
}

.login-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 15%, transparent 72%);
  animation: login-grid-pulse 6s ease-in-out infinite;
}
.login-grid-perspective {
  opacity: 0.25;
  transform: translate(calc(var(--login-mx) * 0.3), calc(var(--login-my) * 0.3));
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 100%, #000 5%, transparent 70%);
  animation: login-grid-pulse 8s ease-in-out infinite reverse, login-horizon-scroll 18s linear infinite;
}
@keyframes login-grid-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.login-hex {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill='none' stroke='%2338bdf8' stroke-width='0.4'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5-13-7.5v-15z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 28px 49px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 10%, transparent 70%);
  transform: translate(calc(var(--login-mx) * -0.15), calc(var(--login-my) * -0.15));
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: login-float 16s ease-in-out infinite;
  z-index: 1;
  transform: translate(calc(var(--login-mx) * 0.5), calc(var(--login-my) * 0.5));
}
.login-orb-a {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #2563eb 0%, transparent 68%);
  top: -15%;
  left: -10%;
}
.login-orb-b {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 68%);
  bottom: -18%;
  right: 5%;
  animation-delay: -5s;
}
.login-orb-c {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #6366f1 0%, transparent 68%);
  top: 30%;
  right: -8%;
  animation-delay: -9s;
}
.login-orb-d {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #22d3ee 0%, transparent 68%);
  bottom: 15%;
  left: 30%;
  animation-delay: -7s;
  opacity: 0.35;
}
.login-orb-e {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #818cf8 0%, transparent 68%);
  top: 10%;
  left: 55%;
  animation-delay: -11s;
  opacity: 0.25;
}

.login-beam {
  position: absolute;
  top: -25%;
  width: 3px;
  height: 150%;
  z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.7), rgba(129, 140, 248, 0.4), transparent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  opacity: 0.4;
}
.login-beam-a {
  left: 18%;
  transform: rotate(22deg);
  animation: login-beam-sweep-a 9s ease-in-out infinite;
}
.login-beam-b {
  left: 52%;
  width: 2px;
  transform: rotate(-18deg);
  animation: login-beam-sweep-b 11s ease-in-out infinite;
  opacity: 0.28;
}
.login-beam-c {
  left: 78%;
  width: 1px;
  transform: rotate(32deg);
  animation: login-beam-sweep-c 13s ease-in-out infinite;
  opacity: 0.22;
}
@keyframes login-beam-sweep-a {
  0%, 100% { left: 12%; opacity: 0.2; filter: blur(0); }
  50% { left: 68%; opacity: 0.55; filter: blur(1px); }
}
@keyframes login-beam-sweep-b {
  0%, 100% { left: 70%; opacity: 0.15; }
  50% { left: 25%; opacity: 0.4; }
}
@keyframes login-beam-sweep-c {
  0%, 100% { left: 85%; opacity: 0.12; }
  50% { left: 40%; opacity: 0.35; }
}

.login-stars {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.login-stars span {
  position: absolute;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.4);
  animation: login-star-twinkle 3s ease-in-out infinite;
}
.login-stars span:nth-child(odd) { width: 2px; height: 2px; }
.login-stars span:nth-child(even) { width: 3px; height: 3px; }
.login-stars span:nth-child(1) { top: 8%; left: 6%; animation-delay: 0s; }
.login-stars span:nth-child(2) { top: 15%; left: 18%; animation-delay: 0.3s; }
.login-stars span:nth-child(3) { top: 22%; left: 32%; animation-delay: 0.6s; }
.login-stars span:nth-child(4) { top: 10%; left: 48%; animation-delay: 0.9s; }
.login-stars span:nth-child(5) { top: 28%; left: 62%; animation-delay: 1.2s; }
.login-stars span:nth-child(6) { top: 6%; left: 75%; animation-delay: 1.5s; }
.login-stars span:nth-child(7) { top: 18%; left: 88%; animation-delay: 1.8s; }
.login-stars span:nth-child(8) { top: 38%; left: 10%; animation-delay: 0.2s; }
.login-stars span:nth-child(9) { top: 45%; left: 25%; animation-delay: 0.5s; }
.login-stars span:nth-child(10) { top: 52%; left: 42%; animation-delay: 0.8s; }
.login-stars span:nth-child(11) { top: 48%; left: 58%; animation-delay: 1.1s; }
.login-stars span:nth-child(12) { top: 55%; left: 72%; animation-delay: 1.4s; }
.login-stars span:nth-child(13) { top: 42%; left: 85%; animation-delay: 1.7s; }
.login-stars span:nth-child(14) { top: 65%; left: 8%; animation-delay: 0.4s; }
.login-stars span:nth-child(15) { top: 72%; left: 22%; animation-delay: 0.7s; }
.login-stars span:nth-child(16) { top: 68%; left: 38%; animation-delay: 1s; }
.login-stars span:nth-child(17) { top: 75%; left: 55%; animation-delay: 1.3s; }
.login-stars span:nth-child(18) { top: 62%; left: 68%; animation-delay: 1.6s; }
.login-stars span:nth-child(19) { top: 78%; left: 82%; animation-delay: 1.9s; }
.login-stars span:nth-child(20) { top: 85%; left: 45%; animation-delay: 2.1s; }
@keyframes login-star-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.login-scanline {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(56, 189, 248, 0.025) 2px,
    rgba(56, 189, 248, 0.025) 4px
  );
  pointer-events: none;
  animation: login-scan 10s linear infinite;
}
@keyframes login-scan {
  from { transform: translateY(0); }
  to { transform: translateY(56px); }
}

.login-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    radial-gradient(circle, rgba(125, 211, 252, 0.55) 1px, transparent 1px),
    radial-gradient(circle, rgba(129, 140, 248, 0.45) 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px;
  background-position: 0 0, 60px 60px;
  opacity: 0.35;
  animation: login-particle-drift 28s linear infinite;
  transform: translate(calc(var(--login-mx) * -0.2), calc(var(--login-my) * -0.2));
}

.login-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, transparent 35%, rgba(1, 4, 9, 0.45) 100%);
  pointer-events: none;
}

.login-noise {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  animation: login-noise-shift 0.5s steps(2) infinite;
}
@keyframes login-noise-shift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-2%, -2%); }
}
@keyframes login-particle-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-140px); }
}

@keyframes login-float {
  0%, 100% { transform: translate(calc(var(--login-mx) * 0.5), calc(var(--login-my) * 0.5)) scale(1); }
  33% { transform: translate(calc(var(--login-mx) * 0.5 + 28px), calc(var(--login-my) * 0.5 - 20px)) scale(1.06); }
  66% { transform: translate(calc(var(--login-mx) * 0.5 - 18px), calc(var(--login-my) * 0.5 + 14px)) scale(0.95); }
}

.login-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: login-reveal-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards;
}
@keyframes login-reveal-in {
  to { opacity: 1; transform: translateY(0); }
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 380px);
  gap: 0;
  width: min(1060px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  align-items: center;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px rgba(37, 99, 235, 0.25),
    0 0 120px rgba(34, 211, 238, 0.12),
    0 32px 80px rgba(0, 0, 0, 0.6);
  animation: login-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes login-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(6, 12, 26, 0.96) 0%, rgba(12, 20, 38, 0.88) 55%, rgba(8, 14, 28, 0.94) 100%);
  color: #e2e8f0;
}
.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.04) 50%, transparent 100%);
  animation: login-hero-sheen 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes login-hero-sheen {
  0%, 100% { transform: translateX(-30%); opacity: 0.5; }
  50% { transform: translateX(30%); opacity: 1; }
}
.login-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 68%);
  pointer-events: none;
  animation: login-float 12s ease-in-out infinite;
}

.login-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 40px);
  padding: 32px 36px 28px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) transparent;
}
.login-hero-inner::-webkit-scrollbar { width: 4px; }
.login-hero-inner::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 4px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.login-logo-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.login-logo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.45);
  animation: login-ring-spin 8s linear infinite;
}
.login-logo-ring-b {
  inset: -12px;
  border-color: rgba(129, 140, 248, 0.25);
  animation-direction: reverse;
  animation-duration: 12s;
}
@keyframes login-ring-spin {
  to { transform: rotate(360deg); }
}

.login-logo {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #6366f1 100%);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.55), 0 0 48px rgba(34, 211, 238, 0.25);
  animation: login-logo-pulse 3s ease-in-out infinite;
}
@keyframes login-logo-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(37, 99, 235, 0.55), 0 0 48px rgba(34, 211, 238, 0.25); }
  50% { box-shadow: 0 0 32px rgba(37, 99, 235, 0.75), 0 0 64px rgba(34, 211, 238, 0.4); }
}

.login-v3-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #0f172a;
  border-radius: 6px;
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  vertical-align: middle;
  animation: login-v3-glow 2.5s ease-in-out infinite;
}
@keyframes login-v3-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); box-shadow: 0 0 12px rgba(34, 211, 238, 0.5); }
}

.login-company {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #64748b;
}

.login-product {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.login-intro {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #94a3b8;
}

.login-model-hub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.login-model-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 14px 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.login-model-pill::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}
.login-model-pill.gpt {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.05);
}
.login-model-pill.gpt::before { background: #22d3ee; box-shadow: 0 0 12px #22d3ee; }
.login-model-pill.claude {
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.05);
}
.login-model-pill.claude::before { background: #a78bfa; box-shadow: 0 0 12px #a78bfa; }
.login-model-pill:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.06);
}
.login-model-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: login-dot-blink 2s ease-in-out infinite;
}
@keyframes login-dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.login-model-name {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}
.login-model-desc {
  font-size: 11px;
  line-height: 1.5;
  color: #94a3b8;
}

.login-model-bridge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  margin: -2px 0;
}
.login-bridge-line {
  position: absolute;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
}
.login-bridge-line::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  animation: login-bridge-flow 2.5s linear infinite;
}
@keyframes login-bridge-flow {
  from { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { left: calc(100% - 40px); opacity: 0; }
}
.login-bridge-core {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}
.login-bridge-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  animation: login-bridge-pulse 2s ease-out infinite;
}
@keyframes login-bridge-pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.login-model-fusion {
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
  overflow: hidden;
}
.login-fusion-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
  animation: login-fusion-scan 3s ease-in-out infinite;
}
@keyframes login-fusion-scan {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.login-headline {
  margin: 0 0 16px;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}
.login-shimmer {
  font-style: normal;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #22d3ee, #38bdf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: login-shimmer 4s linear infinite;
}
@keyframes login-shimmer {
  to { background-position: 200% center; }
}

.login-taglines {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.login-taglines li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.login-taglines li:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateX(4px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.08);
}
.login-tag-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #7dd3fc;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-family: ui-monospace, monospace;
}
.login-taglines strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 3px;
}
.login-taglines p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}

.login-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.login-hud-item {
  padding: 10px 8px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.04);
}
.login-hud-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #38bdf8;
  font-family: ui-monospace, monospace;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
  animation: login-hud-pulse 3s ease-in-out infinite;
}
.login-hud-item:nth-child(2) .login-hud-val { animation-delay: 0.5s; color: #818cf8; text-shadow: 0 0 16px rgba(129, 140, 248, 0.5); }
.login-hud-item:nth-child(3) .login-hud-val { animation-delay: 1s; color: #22d3ee; text-shadow: 0 0 16px rgba(34, 211, 238, 0.5); }
@keyframes login-hud-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.login-hud-label {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #64748b;
  letter-spacing: 0.04em;
}

.login-footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 10px;
  color: #475569;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.login-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

/* 全息登录卡 */
.login-card--holo {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: center;
  padding: 22px 26px 18px;
  margin: 16px 12px 16px 0;
  background: rgba(6, 12, 24, 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 0 16px 16px 0;
}

.login-card-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: login-card-mesh-move 16s linear infinite;
  pointer-events: none;
}
@keyframes login-card-mesh-move {
  from { background-position: 0 0; }
  to { background-position: 24px 24px; }
}

.login-card-aurora {
  position: absolute;
  inset: -40%;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 50% 80%, rgba(129, 140, 248, 0.18) 0%, transparent 40%);
  animation: login-card-aurora 10s ease-in-out infinite;
  pointer-events: none;
}
@keyframes login-card-aurora {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(-6%, 4%) scale(1.08); opacity: 1; }
}

.login-card-dataflow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.login-card-dataflow::before,
.login-card-dataflow::after {
  content: "";
  position: absolute;
  left: -100%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
  animation: login-dataflow 5s linear infinite;
}
.login-card-dataflow::before { top: 28%; animation-delay: 0s; }
.login-card-dataflow::after { top: 62%; animation-delay: 2.5s; width: 45%; }
@keyframes login-dataflow {
  from { left: -60%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { left: 120%; opacity: 0; }
}
.login-card-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg, transparent, rgba(56, 189, 248, 0.5), transparent, rgba(129, 140, 248, 0.4), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: login-border-spin 6s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}
@keyframes login-border-spin {
  to { transform: rotate(360deg); }
}
.login-card-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.06), transparent);
  animation: login-card-scan 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes login-card-scan {
  0%, 100% { top: -80px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { top: 100%; }
}
.login-card-glow {
  position: absolute;
  top: -30%;
  right: -30%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 68%);
  pointer-events: none;
  animation: login-float 10s ease-in-out infinite;
}

.login-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(56, 189, 248, 0.7);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.login-corner-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.login-corner-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.login-corner-bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.login-corner-br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.login-v3-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #7dd3fc;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-family: ui-monospace, monospace;
}
.login-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: login-dot-blink 1.5s ease-in-out infinite;
}

.login-card-top {
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.login-welcome {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #38bdf8;
}
.login-card-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.login-card-line {
  display: block;
  color: #f1f5f9;
}
.login-card-v3 {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #0f172a;
  border-radius: 5px;
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
  animation: login-v3-glow 2.5s ease-in-out infinite;
}
.login-card-desc {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.login-alert {
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.login-form label {
  display: block;
  margin: 10px 0 5px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.login-form label:first-of-type { margin-top: 0; }
.login-form { position: relative; z-index: 1; }

.login-input-wrap {
  position: relative;
}
.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #38bdf8;
  opacity: 0.6;
  pointer-events: none;
}
.login-input-wrap input,
.login-card input {
  width: 100%;
  padding: 12px 14px 12px 32px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  color: #f1f5f9;
  font-size: 14px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.login-input-wrap input:focus,
.login-card input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12), 0 0 20px rgba(56, 189, 248, 0.15);
  background: rgba(15, 23, 42, 0.95);
}
.login-input-wrap input::placeholder { color: #475569; }

.login-submit {
  position: relative;
  margin-top: 16px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #0891b2 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.login-submit-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  animation: login-submit-shine 3s ease-in-out infinite;
}
@keyframes login-submit-shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.login-submit:active { transform: translateY(0); }

.login-status {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  color: #475569;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}
.login-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: login-dot-blink 2s ease-in-out infinite;
}

.login-hint {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.login-hint kbd {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 2px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
    width: min(480px, calc(100% - 24px));
    max-height: none;
  }
  .login-hero-inner {
    max-height: none;
    padding: 28px 24px 20px;
  }
  .login-hud { grid-template-columns: repeat(3, 1fr); }
  .login-card--holo {
    border-left: none;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 0 0 16px 16px;
    margin: 0;
    padding: 20px 22px 16px;
  }
  .login-card-title { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-reveal,
  .login-shell,
  .login-orb,
  .login-nebula,
  .login-horizon,
  .login-grid,
  .login-beam,
  .login-stars span,
  .login-scanline,
  .login-particles,
  .login-noise,
  .login-logo-ring,
  .login-logo,
  .login-v3-tag,
  .login-shimmer,
  .login-bridge-line::after,
  .login-bridge-pulse,
  .login-fusion-scan,
  .login-hud-val,
  .login-card-border,
  .login-card-scan,
  .login-card-mesh,
  .login-card-aurora,
  .login-card-dataflow::before,
  .login-card-dataflow::after,
  .login-submit-glow,
  .login-chip-dot,
  .login-status-dot,
  .login-model-dot {
    animation: none !important;
  }
  .login-reveal { opacity: 1; transform: none; }
  .login-bg-canvas { display: none; }
}

/* —— 布局 —— */
.sidebar {
  width: var(--sidebar-width);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 34%),
    linear-gradient(180deg, #07111f 0%, #0f172a 46%, #111827 100%);
  border-right: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  box-shadow: 14px 0 40px rgba(15, 23, 42, 0.18);
}
.brand {
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  color: #f8fafc;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
}
.brand-sub {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--sidebar-text);
  margin-top: 4px;
}
.sidebar nav {
  flex: 1;
  padding: 8px 10px;
  overflow: hidden;
}
.nav-group { margin-bottom: 6px; }
.nav-group:last-child { margin-bottom: 0; }
.nav-group-label {
  padding: 2px 12px 4px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.65);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 1px;
  font-size: var(--fs-md);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.nav-item:hover { background: var(--sidebar-active); color: #e2e8f0; transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.24), rgba(59, 130, 246, 0.08));
  color: #f8fafc;
  border-left: 3px solid var(--sidebar-accent);
  padding-left: 11px;
}
.sidebar-foot {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--fs-sm);
  color: var(--sidebar-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.sidebar-user {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.sidebar-foot-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.sidebar-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sidebar-text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sidebar-icon-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #e2e8f0;
}
.sidebar-icon-btn.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
.sidebar-icon-btn.is-loading svg {
  animation: spin-refresh 0.8s linear infinite;
}
@keyframes spin-refresh {
  to { transform: rotate(360deg); }
}

.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 12px 16px 20px;
  min-width: 0;
  min-height: 100vh;
}

/* —— 首页工作台（紧凑顶栏） —— */
.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.home-topbar-main {
  min-width: 0;
  flex: 1;
}
.home-topbar-main h1 {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.home-topbar-main p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-sm);
}
.home-topbar-main code {
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 6px;
}
.home-topbar-risk {
  flex-shrink: 0;
}
.home-risk-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
}
.home-risk-levels {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.home-risk-levels b {
  color: var(--text);
  font-weight: 800;
}
.risk-ring {
  width: 150px;
  height: 150px;
  margin: 8px auto 18px;
  padding: 12px;
  border-radius: 50%;
  background: conic-gradient(#f97316 0 var(--risk-rate, 0%), #dbeafe var(--risk-rate, 0%) 100%);
}
.risk-ring.compact {
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 5px;
  flex-shrink: 0;
}
.risk-ring-inner {
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--border);
}
.risk-ring strong { font-size: 30px; line-height: 1; color: #ea580c; }
.risk-ring.compact strong { font-size: 15px; }
.risk-ring span { margin-top: 4px; color: var(--muted); font-size: var(--fs-sm); }
.risk-ring.compact span { margin-top: 1px; font-size: 10px; }
.quality-mini-bars { display: grid; gap: 8px; margin-bottom: 14px; }
.mini-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.mini-bar-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.hero-risk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-risk-chips.compact {
  gap: 4px;
  max-width: 200px;
}
.hero-risk-chips span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: var(--fs-sm);
}
.hero-risk-chips.compact span {
  padding: 2px 7px;
  font-size: var(--fs-xs);
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.hero-metric {
  position: relative;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
}
.hero-metric::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -36px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(56, 189, 248, 0.12));
}
.metric-label { color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.metric-value { margin-top: 2px; font-size: 22px; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.metric-sub { margin-top: 2px; color: var(--muted); font-size: var(--fs-sm); }

/* —— 统计卡片 —— */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}
.stat-card .label { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.stat-card .value {
  font-size: 26px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-card.highlight .value { color: var(--primary); }

.grade-dist {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.grade-dist-title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.grade-bars { display: flex; flex-direction: column; gap: 8px; }
.grade-bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
}
.grade-bar-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.grade-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}
.grade-bar-count { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* —— 卡片与表格 —— */
.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.card-head { padding: 16px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.86)); }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.card-head h3 { margin: 0; font-size: var(--fs-lg); font-weight: 600; }
.project-list-head { align-items: center; }
.project-list-head-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.project-list-head-line h3 { flex-shrink: 0; }
.project-list-head-line .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-list-head .search { max-width: 420px; flex-shrink: 0; }

.industry-rule-index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 12px;
  border-bottom: 1px solid var(--border);
}
.industry-rule-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 420px;
}
.industry-rule-tree {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border-right: 1px solid var(--border);
  background: #f8fafc;
  overflow-y: auto;
}
.industry-rule-tree-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.industry-rule-tree-item:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}
.industry-rule-tree-item.active {
  border-color: #60a5fa;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}
.industry-rule-tree-folder {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.industry-rule-tree-name {
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 800;
}
.industry-rule-tree-meta {
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.35;
}
.industry-rule-main {
  padding: 14px 18px 18px;
  min-width: 0;
}
.industry-rule-head {
  margin-bottom: 12px;
}
.industry-rule-head h4 {
  margin: 4px 0 0;
  font-size: var(--fs-lg);
}
.industry-rule-kicker {
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.industry-subtype-panel {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafbfc;
}
.industry-subtype-head {
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
}
.industry-subtype-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.industry-subtype-chip {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: var(--fs-sm);
}
.industry-subtype-empty {
  font-size: var(--fs-sm);
}

.search {
  width: 100%;
  max-width: 360px;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 12px center no-repeat;
  color: var(--text);
}
.search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-md);
}
.table th, .table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: none;
  background: #f8fbff;
  white-space: nowrap;
}
.table tbody tr { transition: background 0.12s, transform 0.12s, box-shadow 0.12s; }
.table tbody tr:hover { background: #f8fbff; }
.table tbody tr:last-child td { border-bottom: none; }
.project-list-card .table tbody tr:hover {
  transform: translateY(-1px);
  box-shadow: inset 3px 0 0 var(--primary);
}
/* 文本省略：过长不换行，悬停看 title */
.text-ellipsis,
.text-ellipsis-block {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.text-ellipsis { display: inline-block; vertical-align: bottom; }
.text-ellipsis-block { display: block; }

.table .path-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Consolas, "Cascadia Code", monospace;
  font-size: var(--fs-sm);
  color: var(--muted);
}
#table-projects td:nth-child(1) { max-width: 280px; }
#table-biddocs td:nth-child(1) { max-width: 240px; }
#table-biddocs th:nth-child(7),
#table-biddocs td:nth-child(7),
#table-biddocs th:nth-child(9),
#table-biddocs td:nth-child(9),
#table-biddocs th:nth-child(10),
#table-biddocs td:nth-child(10) {
  width: 84px;
  min-width: 84px;
  white-space: nowrap;
  text-align: center;
}
#table-biddocs td:nth-child(8),
#table-biddocs td:nth-child(9) { max-width: 180px; }
#table-shared-files td:nth-child(2) { max-width: 320px; }
#table-feed-projects td:nth-child(1) { max-width: 260px; }
.table td .text-ellipsis-block,
.table td strong .text-ellipsis-block,
.table .path-cell .text-ellipsis-block {
  max-width: 100%;
}
.detail-project-title {
  max-width: min(900px, 72vw);
  margin: 0;
}
.feed-file-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
  margin-bottom: 6px;
}
.feed-file-line .text-ellipsis,
.feed-file-line .text-ellipsis-block {
  flex: 0 1 auto;
  max-width: 420px;
}
.feed-file-line .muted-inline {
  flex-shrink: 0;
  white-space: nowrap;
}

/* —— 等级徽章 —— */
.badge-grade {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.badge-很好 { background: #dcfce7; color: #166534; }
.badge-好 { background: #dbeafe; color: #1e40af; }
.badge-一般 { background: #fef3c7; color: #92400e; }
.badge-差 { background: #ffedd5; color: #c2410c; }
.badge-明显风险稿 { background: #fce7f3; color: #9d174d; }
.badge-default { background: #f1f5f9; color: var(--muted); }

.badge-round {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: var(--fs-sm);
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 500;
}

.status-pill,
.type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
}
.status-done { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.status-doing { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-idle { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.status-warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.status-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.type-pill { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }

.project-name-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 260px;
}
.project-name-cell strong {
  font-size: var(--fs-base);
  line-height: 1.35;
  min-width: 0;
}
.project-name-cell span {
  color: var(--muted);
  font-size: var(--fs-sm);
  min-width: 0;
}
.project-overview-cells {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.project-overview-cells span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.project-overview-cells b { color: var(--text); font-variant-numeric: tabular-nums; }
.project-risk-line {
  display: grid;
  grid-template-columns: 70px minmax(90px, 150px);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.project-risk-track {
  height: 7px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
}
.project-risk-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444);
}

.score-cell { font-weight: 600; font-variant-numeric: tabular-nums; }
.score-good { color: var(--success); }
.score-mid { color: var(--warn); }
.score-low { color: var(--danger); }

.score-mini-bar {
  display: block;
  width: 56px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 99px;
  margin-top: 4px;
  overflow: hidden;
}
.score-mini-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
}

/* —— 按钮 —— */
.btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: var(--fs-md);
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: var(--fs-sm); }
.btn-block { width: 100%; margin-top: 8px; }
.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font-size: var(--fs-md);
  font-weight: 500;
}
.btn-link:hover { text-decoration: underline; }

.hidden { display: none !important; }
.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: var(--fs-md);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  padding: 18px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
}
.meta-item .k { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.meta-item .v { margin-top: 4px; font-size: var(--fs-base); min-width: 0; }
.meta-item.highlight .v { color: var(--primary); font-weight: 700; font-size: 18px; }

.project-stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 14px;
}
.project-stat-pill {
  font-size: var(--fs-sm);
  padding: 6px 12px;
  background: var(--primary-soft);
  color: #1e40af;
  border-radius: 99px;
  border: 1px solid #bfdbfe;
}

.section-title {
  padding: 0 18px;
  margin: 20px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.muted { color: var(--muted); font-size: var(--fs-md); padding: 0 18px 14px; }
.doc-preview-card {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 44px);
  max-height: calc(100vh - 44px);
}
.doc-preview-card .card-head h3 {
  margin: 0;
}
.doc-preview-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 20px 24px;
}
.doc-preview-body .md-body {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 8px;
}
.prose { padding: 24px; line-height: 1.7; max-width: 720px; }
.prose h3 { margin-top: 1.5em; font-size: 15px; }
.prose code { background: #f1f5f9; padding: 2px 8px; border-radius: 6px; font-size: var(--fs-sm); }
.prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: var(--fs-sm);
}

.muted-inline { color: var(--muted); font-size: var(--fs-sm); }
.preview-cell { white-space: nowrap; }
.btn-preview {
  background: var(--primary-soft);
  border-color: #93c5fd;
  color: var(--primary);
}
.btn-preview:hover { background: #dbeafe; }

/* Markdown 预览（弹窗内浅色） */
.md-body {
  line-height: 1.7;
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}
.md-body h1, .md-body h2, .md-body h3 { margin: 1.2em 0 0.5em; line-height: 1.3; }
.md-body h1 { font-size: 1.45em; border-bottom: 2px solid var(--border); padding-bottom: 0.35em; }
.md-body h2 { font-size: 1.2em; border-bottom: 1px solid var(--border); padding-bottom: 0.25em; }
.md-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: var(--fs-md); }
.md-body th, .md-body td { border: 1px solid var(--border); padding: 8px 10px; }
.md-body th { background: #f8fafc; }
.md-body code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }
.md-body pre { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px; overflow-x: auto; }
.md-body pre code { background: none; color: inherit; }
.md-body blockquote {
  margin: 12px 0;
  padding: 10px 16px;
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  color: var(--muted);
}
.md-body img { max-width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.text-preview {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
}
.json-preview { tab-size: 2; }

body.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative;
  width: min(1280px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.2);
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-sub { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--muted); word-break: break-all; }
.modal-actions { display: flex; gap: 8px; flex-shrink: 0; }
.modal-body { flex: 1; overflow: auto; padding: 20px 24px 28px; min-height: 200px; }
.preview-loading, .preview-error { padding: 32px; text-align: center; color: var(--muted); }
.preview-error { color: var(--danger); }

/* 独立预览页（深色顶栏） */
.preview-page-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--main-bg); }
.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--sidebar-bg);
  color: #f8fafc;
}
.preview-topbar a { color: var(--sidebar-accent); }
.preview-main { flex: 1; max-width: 1200px; width: 100%; margin: 0 auto; padding: 28px 32px 48px; background: var(--card); margin-top: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }

.page-pad { padding: 12px 14px; }
.muted.no-pad { padding: 0; margin: 0; }

.qingtian-fupan-summary {
  margin: 10px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  line-height: 1.7;
}
.field-inline { font-size: var(--fs-md); color: var(--muted); display: flex; align-items: center; gap: 10px; }
.select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  min-width: 280px;
  font-size: var(--fs-md);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.rule-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fafbfc;
  border-left: 4px solid var(--primary);
}
.rule-card h4 { margin: 0 0 8px; font-size: 16px; }
.rule-card .score-range {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 8px 0;
}
.rule-card p { margin: 6px 0; font-size: var(--fs-md); color: var(--muted); }

.round-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.round-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.round-card.inactive { opacity: 0.55; background: #f8fafc; }
.round-card h4 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.round-card .round-meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 12px; }
.round-card .round-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

.overview-hint {
  margin: -4px 0 14px;
  font-size: var(--fs-md);
}

.section-gap {
  margin-top: 28px;
}

.score-overview-table th,
.score-overview-table td {
  vertical-align: middle;
}

.score-overview-table .score-round-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 88px;
}

.score-overview-table .badge-grade {
  font-size: var(--fs-sm);
}

.summary-table-banner {
  margin: 0 18px 16px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #eff6ff, #f8fafc);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.summary-table-banner strong { color: #1e40af; }

.file-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.file-chip {
  font-size: var(--fs-sm);
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.risk-chip {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
  display: inline-block;
  margin: 2px 4px 2px 0;
}
.quality-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.quality-ok { background: #dcfce7; color: #166534; }
.quality-warning { background: #fef3c7; color: #92400e; }
.quality-unusable_for_ai { background: #fee2e2; color: #b91c1c; }
.quality-convert_failed { background: #fce7f3; color: #9d174d; }
.quality-unknown { background: #f1f5f9; color: var(--muted); }

.section-block { margin-bottom: 24px; }
.section-block h3 { font-size: 15px; margin: 0 0 12px; }

/* —— 首页工作台 —— */
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.quick-nav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.quick-nav-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.16);
}
.quick-nav-card strong {
  font-size: 15px;
  color: var(--text);
}
.quick-nav-card span {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.45;
}

/* —— 评分矩阵与变化 —— */
.score-matrix-table th,
.score-matrix-table td {
  vertical-align: middle;
}
.score-matrix-table.compact {
  font-size: var(--fs-sm);
}
.score-round-cell.compact {
  gap: 2px;
}
.score-empty {
  color: var(--muted);
}
.delta-up {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.delta-down {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 800;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.delta-flat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.delta-none {
  color: var(--muted);
}
.matrix-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

/* —— 评次进度 —— */
.round-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.round-progress-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.round-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.round-progress-head h4.round-progress-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.round-progress-status {
  flex-shrink: 0;
  margin-top: 2px;
}
.round-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.round-progress-rounds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.round-pill {
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  text-align: center;
}
.round-pill.done {
  background: #eff6ff;
  border-style: solid;
  border-color: #bfdbfe;
}
.round-pill b {
  display: block;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.round-pill em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-weight: 800;
  color: var(--text);
}
.round-pill i {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--primary);
  font-weight: 700;
}

.main:has(#view-screen-leader:not(.hidden)) {
  height: auto;
  min-height: 100vh;
  overflow: auto;
  padding: 8px 12px 20px;
}
.main:has(#view-screen-quality:not(.hidden)),
.main:has(#view-employee-analytics:not(.hidden)),
.main:has(#view-project-analytics:not(.hidden)) {
  height: 100vh;
  overflow: hidden;
  padding: 10px 12px;
  box-sizing: border-box;
}

/* —— 员工 / 项目数据分析（满屏分栏，内部滚动） —— */
.analytics-page {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.analytics-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.analytics-panel-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.analytics-panel-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.analytics-panel-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 10px 16px 14px;
}

.analytics-panel-body > .table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.analytics-panel-body > .compact-hint {
  flex-shrink: 0;
  margin: 0 0 8px;
  font-size: 12px;
}

.bigscreen-toolbar {
  margin-bottom: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}
.bigscreen {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100vh - 20px);
  max-height: calc(100vh - 20px);
  padding: 12px 14px;
  border-radius: 16px;
  color: #e5eefc;
  background:
    radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.22), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(99, 102, 241, 0.24), transparent 30%),
    radial-gradient(circle at 50% 105%, rgba(34, 197, 94, 0.15), transparent 34%),
    linear-gradient(90deg, rgba(125, 211, 252, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #06111f 0%, #0f172a 48%, #111827 100%);
  background-size: auto, auto, auto, 54px 54px, 54px 54px, auto;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}
.bigscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
}
.bigscreen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(103, 232, 249, 0.10) 49%, rgba(103, 232, 249, 0.22) 50%, rgba(103, 232, 249, 0.10) 51%, transparent 100%),
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.22), transparent 40%);
  background-size: 100% 180px, auto;
  opacity: 0.45;
  animation: screen-scan 6s linear infinite;
}
@keyframes screen-scan {
  from { background-position: 0 -180px, 0 0; }
  to { background-position: 0 calc(100% + 180px), 0 0; }
}
.bigscreen > * {
  position: relative;
  z-index: 1;
}
.screen-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.screen-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.screen-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 18px #22c55e;
}
.screen-header h1,
.screen-title-ellipsis {
  margin: 7px 0 6px;
  font-size: clamp(25px, 2.7vw, 40px);
  line-height: 1.08;
  color: #f8fafc;
  letter-spacing: -0.05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(760px, 68vw);
}
.screen-header p {
  margin: 0;
  max-width: 760px;
  color: #a7b7d4;
  font-size: var(--fs-md);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screen-time {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: #cbd5e1;
  white-space: nowrap;
  font-size: var(--fs-sm);
}
.big-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.big-stat {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.52));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(2, 6, 23, 0.18);
}
.big-stat::before,
.screen-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #67e8f9 0 18px, transparent 18px) left top / 54px 1px no-repeat,
    linear-gradient(#67e8f9 0 18px, transparent 18px) left top / 1px 54px no-repeat,
    linear-gradient(270deg, #60a5fa 0 18px, transparent 18px) right bottom / 54px 1px no-repeat,
    linear-gradient(0deg, #60a5fa 0 18px, transparent 18px) right bottom / 1px 54px no-repeat;
  opacity: 0.45;
}
.big-stat.primary { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 0 34px rgba(59, 130, 246, 0.12); }
.big-stat.good { border-color: rgba(34, 197, 94, 0.44); box-shadow: 0 0 34px rgba(34, 197, 94, 0.1); }
.big-stat.warn { border-color: rgba(249, 115, 22, 0.48); box-shadow: 0 0 34px rgba(249, 115, 22, 0.1); }
.big-stat.danger { border-color: rgba(239, 68, 68, 0.5); }
.big-stat-label {
  color: #93a4bd;
  font-size: var(--fs-sm);
  font-weight: 800;
}
.big-stat-value {
  margin-top: 5px;
  color: #f8fafc;
  font-size: clamp(23px, 2.1vw, 34px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.big-stat-sub {
  margin-top: 6px;
  color: #8ea2bf;
  font-size: var(--fs-sm);
}
.screen-grid {
  display: grid;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.screen-grid.two-col,
.screen-grid.leader-grid-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
}
.screen-list-row.health-row {
  grid-template-columns: 34px 1fr auto;
}
.health-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.health-main small {
  color: #8ea2bf;
  font-size: var(--fs-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.funnel-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.funnel-row {
  display: grid;
  grid-template-columns: 42px 1fr 36px;
  gap: 8px;
  align-items: center;
  color: #cbd5e1;
  font-size: var(--fs-sm);
}
.funnel-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.funnel-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
}
.funnel-row.good .funnel-track i { background: linear-gradient(90deg, #22c55e, #4ade80); }
.funnel-row.primary .funnel-track i { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.funnel-row.warn .funnel-track i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.funnel-row.qt .funnel-track i { background: linear-gradient(90deg, #a855f7, #c084fc); }
.leader-layout {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) 172px;
  flex: 1;
  min-height: 0;
  height: 100%;
  gap: 6px;
}
.leader-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.leader-header-bar h1 {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen-time.compact {
  padding: 5px 11px;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.big-stat-grid.leader-grid.compact {
  margin-bottom: 0;
  gap: 6px;
}
.big-stat-grid.leader-grid.compact .big-stat {
  padding: 6px 9px;
  border-radius: 10px;
}
.big-stat-grid.leader-grid.compact .big-stat-label {
  font-size: var(--fs-xs);
}
.big-stat-grid.leader-grid.compact .big-stat-value {
  margin-top: 2px;
  font-size: 17px;
}
.big-stat-grid.leader-grid.compact .big-stat-sub {
  margin-top: 2px;
  font-size: var(--fs-xs);
  line-height: 1.25;
}
.screen-card.leader-core {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  overflow: hidden;
}
.leader-core-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.leader-core-head h3 {
  margin: 0;
  color: #dbeafe;
  font-size: var(--fs-md);
}
.leader-core-head span {
  color: #8ea2bf;
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.leader-core-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}
.leader-split {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  height: 100%;
  align-content: stretch;
}
.leader-split-left {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding-right: 8px;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}
.leader-split-label {
  flex-shrink: 0;
  margin-bottom: 6px;
  color: #64748b;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.leader-project-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}
.leader-project-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.leader-project-item:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(125, 211, 252, 0.28);
}
.leader-project-item.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.2);
}
.leader-project-item-name {
  width: 100%;
  color: #f8fafc;
  font-size: var(--fs-md);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leader-project-item-meta,
.leader-project-item-rounds {
  color: #94a3b8;
  font-size: var(--fs-xs);
  line-height: 1.35;
}
.leader-split-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}
.leader-detail-head {
  flex-shrink: 0;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.leader-detail-title {
  margin: 0 0 4px;
  color: #f8fafc;
  font-size: var(--fs-base);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leader-detail-stats {
  margin: 0;
  color: #94a3b8;
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.leader-split-right .leader-matrix-scroll {
  flex: 1;
  min-height: 0;
}
.leader-matrix-scroll {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}
.leader-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  table-layout: fixed;
}
.leader-table th,
.leader-table td {
  padding: 6px 7px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leader-table th {
  color: #94a3b8;
  font-weight: 700;
  font-size: var(--fs-xs);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 0;
  z-index: 1;
}
.leader-table td {
  color: #e2e8f0;
}
.leader-detail-table .col-no { width: 48px; }
.leader-detail-table .col-bid { width: 32%; }
.leader-detail-table .col-score { width: 11%; }
.leader-detail-table .col-delta { width: 56px; }
.leader-bid-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.leader-bid-row.empty .leader-empty-hint {
  color: #64748b;
  font-size: var(--fs-sm);
  text-align: center;
  padding: 8px;
}
.leader-detail-table .badge-round {
  font-size: var(--fs-sm);
}
.leader-detail-table .score-round-cell.compact {
  gap: 0;
}
.leader-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  height: 172px;
  max-height: 172px;
  min-height: 0;
  align-items: stretch;
}
.leader-insight-card {
  padding: 6px 8px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.leader-insight-card h3 {
  margin: 0 0 4px;
  font-size: var(--fs-sm);
  color: #dbeafe;
  flex-shrink: 0;
}
.leader-insights .leader-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  flex-shrink: 0;
}
.leader-insights .leader-metric-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.leader-insights .leader-metric-tile {
  padding: 3px 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
  min-width: 0;
}
.leader-insights .leader-metric-tile b {
  display: block;
  color: #f8fafc;
  font-size: var(--fs-md);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.leader-insights .leader-metric-tile strong {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
}
.leader-insights .leader-metric-tile span {
  display: block;
  margin-top: 1px;
  color: #64748b;
  font-size: var(--fs-xs);
  line-height: 1.2;
}
.leader-insights .leader-metric-tile.good b { color: #4ade80; }
.leader-insights .leader-metric-tile.primary b { color: #93c5fd; }
.leader-insights .leader-metric-tile.warn b { color: #fb923c; }
.leader-insights .leader-metric-grid.bid-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 4px;
}
.leader-insight-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}
.leader-insights .leader-grade-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 3px;
}
.leader-insights .leader-grade-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: var(--fs-xs);
}
.leader-insights .leader-grade-chip b {
  color: #e2e8f0;
  font-weight: 800;
}
.leader-insights .leader-proj-mini-list {
  display: grid;
  gap: 1px;
}
.leader-insights .leader-proj-mini {
  display: flex;
  justify-content: space-between;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--fs-xs);
  line-height: 1.3;
}
.leader-insights .leader-proj-mini.warn {
  background: rgba(249, 115, 22, 0.08);
}
.leader-insights .leader-proj-mini strong {
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 42%;
}
.leader-insights .leader-proj-mini span {
  color: #94a3b8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.insight-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.insight-box > div {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}
.insight-box b {
  display: block;
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
}
.insight-box span {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: var(--fs-sm);
}
.compact-list {
  max-height: 100%;
  overflow: hidden;
}
.screen-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 15px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.screen-card.wide {
  grid-column: 1 / -1;
}
.screen-card.accent {
  background:
    radial-gradient(circle at 78% 20%, rgba(34, 197, 94, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.6), rgba(15, 23, 42, 0.72));
  border-color: rgba(125, 211, 252, 0.32);
}
.screen-card h3 {
  margin: 0 0 10px;
  color: #dbeafe;
  font-size: var(--fs-base);
  letter-spacing: 0.01em;
}
.screen-table-list {
  display: grid;
  gap: 7px;
  min-height: 0;
}
.screen-list-row,
.screen-score-line {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.screen-list-row {
  grid-template-columns: 34px 1fr auto;
}
.screen-list-row.risk-row {
  grid-template-columns: 34px 1fr auto 48px;
}
.screen-no {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.14);
  color: #67e8f9;
  font-weight: 800;
}
.screen-list-row strong,
.screen-score-line strong {
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.screen-list-row em,
.screen-list-row i,
.screen-score-line em {
  color: #bae6fd;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: var(--fs-sm);
}
.screen-feature-score {
  margin: 4px 0 6px;
  color: #bbf7d0;
  font-size: clamp(48px, 5.5vw, 68px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.07em;
}
.screen-card.accent p {
  margin: 0 0 10px;
  color: #dbeafe;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screen-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.screen-mini-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
  font-size: var(--fs-sm);
}
.screen-grade-list {
  display: grid;
  gap: 8px;
}
.screen-grade {
  display: grid;
  grid-template-columns: 72px 1fr 42px;
  gap: 10px;
  align-items: center;
  color: #cbd5e1;
  font-size: var(--fs-md);
}
.screen-grade > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screen-grade i,
.screen-progress-track,
.screen-rank-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
.screen-grade i {
  display: block;
}
.screen-grade b {
  text-align: right;
  color: #f8fafc;
}
.screen-progress {
  margin-bottom: 8px;
}
.screen-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  color: #cbd5e1;
  font-size: var(--fs-md);
  min-width: 0;
}
.screen-progress-head span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screen-progress-head b {
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}
.screen-progress-track i,
.screen-rank-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
}
.screen-progress.risk .screen-progress-track i {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.screen-progress.good .screen-progress-track i {
  background: linear-gradient(90deg, #22c55e, #86efac);
}
.screen-rank-row {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  color: #dbeafe;
}
.screen-rank-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screen-rank-row b {
  color: #f8fafc;
  text-align: right;
}
.screen-rank-track i {
  background: linear-gradient(90deg, #f97316, #fb7185);
}
.score-lines .screen-score-line {
  grid-template-columns: 40px minmax(0, 1fr) repeat(3, minmax(72px, auto));
}
.score-overview-table td:nth-child(2) {
  max-width: 280px;
}

@media (max-width: 1180px) {
  .home-topbar {
    flex-wrap: wrap;
  }
  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .big-stat-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
  .screen-grid.two-col {
    grid-template-columns: 1fr;
  }
}

.feed-index-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.feed-index-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-soft);
}

.feed-index-card span,
.feed-index-card em {
  display: block;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-style: normal;
}

.feed-index-card strong {
  display: block;
  margin: 4px 0;
  font-size: 22px;
  color: var(--text);
}

.feed-tree-node,
.feed-tree-line {
  margin: 6px 0;
  padding: 8px 10px;
  border: 1px solid #e5edf7;
  border-radius: 10px;
  background: #f8fbff;
}

.feed-tree-node summary {
  cursor: pointer;
  font-weight: 700;
}

.feed-tree-node span,
.feed-tree-line span:first-child {
  display: inline-flex;
  min-width: 34px;
  margin-right: 8px;
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.feed-tree-children {
  margin: 8px 0 0 18px;
  padding-left: 12px;
  border-left: 2px solid #dbeafe;
}

.table-compact th,
.table-compact td {
  padding: 8px 10px;
  font-size: var(--fs-sm);
}

@media (max-width: 860px) {
  .feed-index-overview {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    padding: 8px 10px;
    gap: 4px;
  }
  .nav-group {
    margin-bottom: 0;
    display: contents;
  }
  .nav-group-label {
    flex: 0 0 100%;
    padding: 6px 8px 2px;
  }
  .nav-item {
    flex: 0 0 auto;
    margin: 0;
  }
  .sidebar-foot {
    display: none;
  }
  .main {
    margin-left: 0;
    padding: 0 10px 16px;
  }
  .home-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .home-risk-compact {
    flex-wrap: wrap;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bigscreen {
    padding: 18px;
    border-radius: 22px;
  }
  .screen-header {
    flex-direction: column;
  }
  .big-stat-grid,
  .score-lines .screen-score-line,
  .quick-nav-grid {
    grid-template-columns: 1fr;
  }
  .round-progress-rounds {
    grid-template-columns: 1fr;
  }
  .leader-split {
    grid-template-columns: 1fr;
  }
  .leader-insights {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
  .leader-layout {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }
  .industry-rule-layout {
    grid-template-columns: 1fr;
  }
  .industry-rule-tree {
    max-height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .employee-analytics-layout {
    grid-template-columns: 1fr;
  }
}

.employee-analytics-top-card {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.employee-analytics-top-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px !important;
  min-height: 0;
}

.employee-analytics-top-head h3 {
  margin: 0;
  font-size: 15px;
}

.employee-analytics-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}

.employee-analytics-summary .project-stat-pill {
  font-size: 12px;
  padding: 2px 8px;
}

.employee-detail-metrics,
.employee-grade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.analytics-panel-body .employee-detail-metrics {
  margin-bottom: 8px;
}

.analytics-panel-body .employee-detail-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  max-height: none;
}

.employee-analytics-layout.analytics-layout {
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
}

.project-analytics-layout.analytics-layout {
  grid-template-columns: minmax(150px, 400px) minmax(0, 1fr);
}

.card-head.compact {
  padding: 8px 16px !important;
  min-height: 0;
  flex-shrink: 0;
}

.card-head.compact h3 {
  font-size: 14px;
  margin: 0;
}

.employee-rank-table tbody tr.employee-rank-row {
  cursor: pointer;
}

.employee-rank-table tbody tr.employee-rank-row:hover {
  background: #f1f5f9;
}

.employee-rank-sort-label {
  font-size: 12px;
  gap: 6px;
}

.select-sm {
  min-width: 140px;
  font-size: 12px;
  padding: 4px 8px;
}

.employee-rank-table th,
.employee-rank-table td {
  font-size: 12px;
  padding: 6px 8px;
}

.grade-count-cell {
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.grade-pct-muted {
  color: var(--text-muted, #64748b);
  font-weight: 500;
  font-size: 11px;
}

.employee-grade-count {
  font-weight: 600;
}

#view-employee-analytics:not(.hidden),
#view-project-analytics:not(.hidden) {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.employee-rank-table tbody tr.employee-rank-row.active {
  background: #e8f2ff;
}

.employee-detail-table th,
.employee-detail-table td {
  font-size: 12px;
  padding: 5px 6px;
}

.project-analytics-row {
  cursor: pointer;
}

.project-analytics-row:hover {
  background: #f1f5f9;
}

.project-analytics-row.active {
  background: #e8f2ff;
}

.project-analytics-score-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.project-analytics-score-table th,
.project-analytics-score-table td {
  white-space: nowrap;
  padding: 5px 3px;
  font-size: 11px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-analytics-score-table .project-rank-col {
  width: 42px;
}

.project-analytics-score-table .project-sequence-col {
  width: 42px;
}

.project-analytics-score-table .project-employee-col {
  width: 50px;
}

.project-analytics-score-table .project-round-col {
  width: 80px;
}

.project-analytics-score-table .project-shortlist-col {
  width: 66px;
}

.project-analytics-score-table .badge-round {
  padding: 2px 5px;
}

.project-score-with-delta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.project-score-with-delta .delta-up,
.project-score-with-delta .delta-down,
.project-score-with-delta .delta-flat {
  padding: 1px 4px;
  font-size: 10px;
}

.project-analytics-rankings-body > .table-wrap {
  overflow-x: hidden;
}

@media (max-width: 1100px) {
  .employee-analytics-layout.analytics-layout,
  .project-analytics-layout.analytics-layout {
    grid-template-columns: 1fr;
  }
}

/* —— 首页 · 客户展示 —— */
.home2-dashboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: none;
}
#view-home.view {
  padding: 0;
  margin: -4px -4px 0;
  width: calc(100% + 8px);
}
.home2-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 20px 24px 16px;
  color: #fff;
  background: linear-gradient(125deg, #0a1628 0%, #1e3a8a 38%, #1d4ed8 72%, #2563eb 100%);
  box-shadow: 0 12px 40px rgba(30, 64, 175, 0.22);
}
.home2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 8% 88%, rgba(34, 211, 238, 0.15) 0%, transparent 36%);
  pointer-events: none;
}
.home2-hero-head,
.home2-model-row,
.home2-hero-foot {
  position: relative;
  z-index: 1;
}
.main:has(#view-home:not(.hidden)) {
  padding: 8px 12px 16px;
}
.home2-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.home2-hero-text {
  min-width: 0;
  flex: 1;
}
.home2-v3-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  white-space: nowrap;
}
.home2-v3-badge i {
  font-style: normal;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  color: #0f172a;
  letter-spacing: 0.04em;
}
.home2-hero-text h1 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.home2-hero-tagline {
  margin: 6px 0 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  color: #dbeafe;
  line-height: 1.35;
}
.home2-model-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}
.home2-model-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.home2-model-card.gpt { border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.08); }
.home2-model-card.claude { border-color: rgba(167, 139, 250, 0.45); background: rgba(167, 139, 250, 0.08); }
.home2-model-card.fusion { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }
.home2-model-name {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.2;
}
.home2-model-name code {
  font-size: inherit;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #e0f2fe;
  font-family: inherit;
}
.home2-model-card h4 {
  margin: 0 0 6px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 800;
  line-height: 1.25;
  color: #f0f9ff;
}
.home2-model-card p {
  margin: 0;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.home2-hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}
.home2-hero-foot-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}
.home2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.home2-triple-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr 0.93fr;
  gap: 14px;
}
.home2-bottom-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 14px;
}
.home2-kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: var(--shadow-soft);
}
.home2-kpi.accent { border-color: #bfdbfe; background: linear-gradient(180deg, #f8fbff 0%, #fff 100%); }
.home2-kpi.success { border-color: #bbf7d0; background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); }
.home2-kpi-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.home2-kpi.accent .home2-kpi-value { color: #1d4ed8; }
.home2-kpi.success .home2-kpi-value { color: #15803d; }
.home2-kpi-label { margin-top: 6px; font-size: 13px; font-weight: 700; }
.home2-kpi-sub { margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.4; }
.home2-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.home2-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.home2-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.home2-panel-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.home2-panel-head span { font-size: 12px; color: var(--muted); }
.home2-funnel { display: flex; flex-direction: column; gap: 10px; }
.home2-funnel-step {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
}
.home2-funnel-step b { font-size: 20px; font-weight: 800; color: #1e40af; font-variant-numeric: tabular-nums; }
.home2-funnel-step span { font-size: 13px; font-weight: 600; }
.home2-funnel-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.home2-funnel-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}
.home2-funnel-pct { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 42px; text-align: right; }
.home2-grade-bars { display: flex; flex-direction: column; gap: 10px; }
.home2-grade-row {
  display: grid;
  grid-template-columns: 52px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.home2-grade-row label { font-weight: 600; }
.home2-grade-row b { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.home2-grade-track { height: 8px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.home2-grade-track i { display: block; height: 100%; border-radius: inherit; }
.home2-grade-row.positive .home2-grade-track i { background: linear-gradient(90deg, #22c55e, #16a34a); }
.home2-grade-row.neutral .home2-grade-track i { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.home2-grade-row.warn .home2-grade-track i { background: linear-gradient(90deg, #fb923c, #f97316); }
.home2-bid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.home2-bid-tile { text-align: center; padding: 14px 10px; border-radius: 12px; border: 1px solid var(--border); background: #f8fafc; }
.home2-bid-tile.good { background: #f0fdf4; border-color: #bbf7d0; }
.home2-bid-tile.primary { background: #eff6ff; border-color: #bfdbfe; }
.home2-bid-tile b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.home2-bid-tile.good b { color: #15803d; }
.home2-bid-tile.primary b { color: #1d4ed8; }
.home2-bid-tile span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.home2-capabilities { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.home2-cap {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.home2-cap-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
  background: #eff6ff;
}
.home2-cap strong { display: block; font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.home2-cap span { font-size: 11px; color: var(--muted); line-height: 1.45; }
.home2-top-list { display: flex; flex-direction: column; gap: 8px; }
.home2-top-item {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fafbfc;
}
.home2-top-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
}
.home2-top-item:nth-child(1) .home2-top-rank { background: #fef3c7; color: #b45309; }
.home2-top-item:nth-child(2) .home2-top-rank { background: #e2e8f0; color: #64748b; }
.home2-top-item:nth-child(3) .home2-top-rank { background: #ffedd5; color: #c2410c; }
.home2-top-title { font-size: 13px; font-weight: 600; min-width: 0; }
.home2-top-proj { font-size: 11px; color: var(--muted); margin-top: 2px; }
.home2-region-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.home2-region-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: #334155;
}
.home2-region-chip b { margin-left: 4px; color: #1d4ed8; }
.home2-improve-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.home2-improve-stat {
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
}
.home2-improve-stat.up { background: #f0fdf4; border-color: #bbf7d0; }
.home2-improve-stat.up b { color: #15803d; }
.home2-improve-stat.flat { background: #f8fafc; border-color: #e2e8f0; }
.home2-improve-stat.flat b { color: #475569; }
.home2-improve-stat.down { background: #fff7ed; border-color: #fed7aa; }
.home2-improve-stat.down b { color: #c2410c; }
.home2-improve-stat b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.home2-improve-stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.home2-improve-list { display: flex; flex-direction: column; gap: 8px; }
.home2-improve-item {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fafbfc;
}
.home2-improve-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: #dcfce7;
  color: #15803d;
}
.home2-improve-item:nth-child(1) .home2-improve-rank { background: #fef3c7; color: #b45309; }
.home2-improve-title { font-size: 13px; font-weight: 600; min-width: 0; }
.home2-improve-proj { font-size: 11px; color: var(--muted); margin-top: 2px; }
.home2-improve-scores {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.home2-improve-scores i { font-style: normal; color: #94a3b8; font-size: 11px; }
.home2-improve-after { color: #15803d; }
.home2-improve-delta {
  font-size: 13px;
  font-weight: 800;
  color: #15803d;
  font-variant-numeric: tabular-nums;
}
.home2-improve-foot {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.home2-project-table .table th,
.home2-project-table .table td { font-size: 13px; padding: 10px 12px; }
.home2-project-table tbody tr { cursor: pointer; }
.home2-project-table tbody tr:hover { background: #f8fafc; }
@media (max-width: 1400px) {
  .home2-capabilities { grid-template-columns: repeat(3, 1fr); }
  .home2-triple-grid { grid-template-columns: 1fr 1fr; }
  .home2-triple-grid .home2-panel:last-child { grid-column: 1 / -1; }
}
@media (max-width: 1200px) {
  .home2-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .home2-triple-grid,
  .home2-main-grid,
  .home2-bottom-grid { grid-template-columns: 1fr; }
  .home2-capabilities { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .home2-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .home2-capabilities { grid-template-columns: 1fr; }
  .home2-bid-grid { grid-template-columns: 1fr; }
  .home2-improve-item { grid-template-columns: 28px 1fr; }
  .home2-improve-scores,
  .home2-improve-delta { grid-column: 2; }
  .home2-improve-delta { justify-self: start; margin-top: -4px; }
  .home2-model-row { grid-template-columns: 1fr; }
  .home2-hero { padding: 16px 18px 14px; }
  .home2-hero-head { flex-wrap: wrap; }
  .home2-v3-badge { font-size: 13px; padding: 5px 12px; }
  .home2-hero-foot { font-size: 14px; gap: 8px; }
}

/* —— 领导总览 · ECharts 仪表盘 —— */
.leader-dash {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-height: 0;
}
.leader-dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(125deg, #0f172a 0%, #1e3a8a 45%, #2563eb 100%);
  box-shadow: 0 10px 32px rgba(30, 64, 175, 0.2);
}
.leader-dash-kicker {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.leader-dash-head h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.leader-dash-head p {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
.leader-dash-meta {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.leader-dash-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.leader-kpi {
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.leader-kpi.accent { border-color: #bfdbfe; background: linear-gradient(180deg, #f8fbff, #fff); }
.leader-kpi.success { border-color: #bbf7d0; background: linear-gradient(180deg, #f0fdf4, #fff); }
.leader-kpi-value {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.leader-kpi.accent .leader-kpi-value { color: #1d4ed8; }
.leader-kpi.success .leader-kpi-value { color: #15803d; }
.leader-kpi-label { margin-top: 6px; font-size: 13px; font-weight: 700; }
.leader-kpi-sub { margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.35; }
.leader-dash-charts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.leader-dash-bottom {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  align-items: stretch;
}
.leader-chart-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px 10px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.leader-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.leader-chart-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}
.leader-chart-head span {
  font-size: 11px;
  color: var(--muted);
}
.leader-chart-box {
  width: 100%;
  height: 240px;
}
.leader-chart-box.tall {
  height: 320px;
}
.leader-project-panel {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.leader-project-split {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.leader-project-list-wrap {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.leader-project-list-light {
  flex: 1;
  min-height: 0;
  max-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}
.leader-project-list-light .leader-project-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.leader-project-list-light .leader-project-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.leader-project-list-light .leader-project-item.active {
  background: #eff6ff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}
.leader-project-list-light .leader-project-item-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.leader-project-list-light .leader-project-item-meta,
.leader-project-list-light .leader-project-item-rounds {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.leader-detail-light {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fafbfc;
  padding: 12px;
}
.leader-detail-light .leader-detail-head {
  flex-shrink: 0;
  margin-bottom: 10px;
}
.leader-detail-light .leader-detail-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.leader-detail-light .leader-detail-stats {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.leader-detail-light .leader-matrix-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.leader-detail-light .leader-table th {
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.leader-detail-light .leader-table td {
  background: #fff;
  color: var(--text);
  font-size: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.leader-detail-light .leader-bid-row:hover td {
  background: #f8fafc;
}
@media (max-width: 1400px) {
  .leader-dash-charts { grid-template-columns: repeat(2, 1fr); }
  .leader-dash-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .leader-dash-bottom { grid-template-columns: 1fr; }
  .leader-project-split { grid-template-columns: 1fr; }
  .leader-project-list-light { max-height: 200px; }
}
@media (max-width: 720px) {
  .leader-dash-charts { grid-template-columns: 1fr; }
  .leader-dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .leader-chart-box { height: 220px; }
}

/* Workflow 05 is intentionally presented as a separate scoring system. */
.nav-group-independent {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}
.stage05-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stage05-head-card {
  margin-bottom: 0;
}
.stage05-head,
.stage05-title-line,
.stage05-quick-card,
.stage05-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.stage05-title-line {
  justify-content: flex-start;
  gap: 10px;
}
.stage05-title-line h3,
.stage05-title-line strong {
  margin: 0;
}
.stage05-head .field-inline {
  flex: 0 0 auto;
  min-width: 410px;
  justify-content: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.stage05-head .select {
  min-width: 320px;
}
.stage05-independent-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 3px 8px;
  border: 1px solid #c4b5fd;
  border-radius: 999px;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.stage05-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stage05-banner {
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid #c4b5fd;
  border-radius: 16px;
  background: linear-gradient(135deg, #312e81 0%, #5b21b6 55%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(76, 29, 149, 0.18);
}
.stage05-banner h3 {
  margin: 5px 0 6px;
  color: #fff;
  font-size: 20px;
}
.stage05-banner p {
  margin: 0;
  color: #ddd6fe;
  font-size: 12px;
}
.stage05-eyebrow {
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.stage05-separation-mark {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.stage05-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stage05-kpi {
  padding: 16px;
  border: 1px solid var(--border);
  border-top: 3px solid #94a3b8;
  border-radius: 12px;
  background: #fff;
}
.stage05-kpi.primary { border-top-color: #7c3aed; }
.stage05-kpi.success { border-top-color: #16a34a; }
.stage05-kpi.danger { border-top-color: #dc2626; }
.stage05-kpi span,
.stage05-kpi small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.stage05-kpi strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
}
.stage05-classification-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 12px;
}
.stage05-classification-grid > div {
  padding: 10px 12px;
  border-radius: 9px;
  background: #f8fafc;
}
.stage05-classification-grid span,
.stage05-classification-grid strong {
  display: block;
}
.stage05-classification-grid span {
  color: var(--muted);
  font-size: 11px;
}
.stage05-classification-grid strong {
  margin-top: 4px;
  font-size: 13px;
}
.stage05-tags,
.stage05-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px 16px;
}
.stage05-tag {
  padding: 4px 8px;
  border-radius: 7px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 700;
}
.stage05-table-wrap {
  max-height: 560px;
}
.stage05-table {
  min-width: 1420px;
}
.stage05-table th {
  white-space: nowrap;
}
.stage05-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.stage05-rank {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ede9fe;
  color: #6d28d9;
  font-weight: 900;
}
.stage05-total-score {
  color: #5b21b6;
  font-size: 16px;
  font-weight: 900;
}
.stage05-dimension-score {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.stage05-quick-card {
  margin: 12px 0 4px;
  padding: 13px 15px;
  border: 1px solid #c4b5fd;
  border-left: 4px solid #7c3aed;
  border-radius: 11px;
  background: #faf5ff;
}
.stage05-quick-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 1100px) {
  .stage05-kpis,
  .stage05-classification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage05-head { align-items: flex-start; flex-direction: column; }
  .stage05-head .field-inline { width: 100%; min-width: 0; justify-content: flex-start; }
  .stage05-head .select { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 720px) {
  .stage05-kpis,
  .stage05-classification-grid { grid-template-columns: 1fr; }
  .stage05-banner,
  .stage05-quick-card { align-items: flex-start; flex-direction: column; }
  .stage05-separation-mark { align-self: flex-start; }
}
