/* ═══════════════════════════════════════════════
   Death Stranding 2 — Design System
   深色主题 · 毛玻璃面板 · 细线边框 · 赛博工业美学
   ═══════════════════════════════════════════════ */

:root {
  --ds-viewport-height: 100dvh;
  --ds-bg-primary: #ffffff;
  --ds-bg-secondary: #f4f6f9;
  --ds-bg-card: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
  --ds-bg-card-hover: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.07) 100%);
  --ds-bg-input: rgba(0, 0, 0, 0.04);

  --ds-border: rgba(0, 0, 0, 0.12);
  --ds-border-accent: rgba(0, 0, 0, 0.2);
  --ds-border-glow: rgba(0, 0, 0, 0.15);

  --ds-text-primary: rgba(0, 0, 0, 0.86);
  --ds-text-secondary: rgba(0, 0, 0, 0.58);
  --ds-text-muted: rgba(0, 0, 0, 0.4);
  --ds-text-label: rgba(0, 0, 0, 0.5);

  --ds-cyan: #1d6fb8;
  --ds-cyan-dim: rgba(29, 111, 184, 0.6);
  --ds-green: #16a34a;
  --ds-green-dim: rgba(22, 163, 74, 0.15);
  --ds-orange: #d97706;
  --ds-orange-dim: rgba(217, 119, 6, 0.15);
  --ds-red: #dc2626;
  --ds-red-dim: rgba(220, 38, 38, 0.12);
  --ds-blue: #1d6fb8;
  --ds-bg-deeper: #f4f6f9;
  --ds-accent: #1d6fb8;

  --ds-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', sans-serif;
  --ds-font-mono: 'SF Mono', 'Menlo', 'Consolas', monospace;
  --ds-font-display: 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', 'Segoe UI', sans-serif;

  --ds-blur: blur(12px) saturate(1.08);
  --ds-nav-height: 64px;
  --ds-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ds-brand-height: 70px;
  --ds-top-banner-height: 132px;
  --ds-header-height: 132px;
  --ds-page-bottom-space: calc(var(--ds-nav-height) + var(--ds-safe-bottom) + 28px);
  --ds-stage-width: min(1440px, calc(100vw - 52px));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: auto;
  min-height: 100%;
  font-family: var(--ds-font);
  background: var(--ds-bg-primary);
  color: var(--ds-text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  min-height: var(--ds-viewport-height);
}

/* ── 背景层（白底） ──────────────────────────────────── */
.ds-bg {
  position: fixed; inset: 0; z-index: 0;
  background: #ffffff;
}

/* ── 主容器 ──────────────────────────────────── */
.ds-app {
  position: relative; z-index: 1;
  min-height: var(--ds-viewport-height);
  height: auto;
  overflow-y: visible;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.ds-brand-header {
  position: relative;
  z-index: 8;
  min-height: calc(48px + env(safe-area-inset-top, 0px));
  padding: calc(env(safe-area-inset-top, 0px) + 8px) clamp(14px, 4vw, 48px) 6px;
  background: #ffffff;
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 0;
}

.ds-brand-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

.ds-brand-menu {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}

.ds-brand-menu span {
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ds-brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ds-brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.ds-brand-wordmark {
  display: inline-block;
  color: #0341a4;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
  transform: none;
  transform-origin: center;
  font-family: 'Arial Black', 'Helvetica Neue', 'Segoe UI', sans-serif;
  text-shadow: 0 0 1px rgba(3, 65, 164, 0.16);
}

.ds-brand-title {
  display: none;
}

.ds-brand-right {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  min-height: 1px;
  display: flex;
  align-items: center;
}

.ds-account-dot {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  justify-content: center;
  border-color: rgba(3, 65, 164, 0.18);
  background: rgba(3, 65, 164, 0.06);
}

.ds-account-dot span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #0341a4;
  box-shadow: 0 0 0 5px rgba(3, 65, 164, 0.08);
}

.ds-top-banner {
  position: relative;
  width: 100%;
  min-height: clamp(88px, 8vw, 108px);
  padding: 4px clamp(14px, 4vw, 48px) clamp(10px, 1.4vw, 16px);
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  overflow: hidden;
  isolation: isolate;
}

.ds-top-banner::before {
  display: none;
}

.ds-top-banner::after {
  display: none;
}

.ds-hero-company-logo {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 7vw, 118px);
  top: -18px;
  height: min(118%, 158px);
  width: auto;
  object-fit: contain;
  object-position: right top;
  pointer-events: none;
  user-select: none;
  border-radius: 18px;
  opacity: 0.92;
  filter:
    brightness(1.04)
    contrast(1.03)
    drop-shadow(0 20px 28px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.1));
}

.ds-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(11px, 1.7vw, 18px);
  width: min(52vw, 560px);
  min-width: 320px;
  color: #111827;
}

.ds-hero-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-shadow: none;
}

.ds-hero-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ds-hero-name {
  margin: 0;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
  color: #111827;
}

.ds-hero-role-tag {
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  color: #166534;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.22);
  font-size: 11px;
  line-height: 1;
  font-weight: 750;
  text-shadow: none;
}

.ds-hero-role-tag.is-senior,
.ds-hero-role-tag.is-management {
  color: #8b5a2b;
  background: rgba(139, 90, 43, 0.12);
  border-color: rgba(139, 90, 43, 0.28);
}

.ds-hero-line {
  color: #4b5563;
  font-size: clamp(10px, 0.85vw, 11px);
  line-height: 1.2;
  font-weight: 500;
}

.ds-hero-summary {
  display: none;
}

.ds-hero-summary-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1;
}

.ds-hero-summary strong {
  color: #ffffff;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.ds-hero-summary span:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.25;
}

.ds-page {
  display: none;
  position: relative;
  width: 100%;
  min-height: calc(var(--ds-viewport-height) - var(--ds-header-height));
  height: auto;
  padding: 24px 20px var(--ds-page-bottom-space);
  overflow: visible;
  animation: fadeIn 0.3s ease;
}
.ds-page.active { display: block; }

#page-salary,
#page-history,
#page-learning {
  background: transparent;
}

#page-furnace {
  background: #ffffff;
}

.ds-stage {
  position: relative;
  width: var(--ds-stage-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(520px, 1fr) 320px;
  gap: clamp(24px, 5vw, 88px);
  align-items: stretch;
  min-height: auto;
  height: auto;
}

.ds-stage-furnace {
  grid-template-columns: 270px minmax(540px, 1fr) 320px;
}

.ds-stage-furnace-solo {
  grid-template-columns: minmax(560px, 1fr) 320px;
}

.ds-stage-furnace-home {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
  align-items: start;
  gap: 0;
  min-height: auto;
  height: auto;
}

.ds-furnace-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ds-furnace-overview-card {
  padding: 24px 26px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.12) 100%),
    radial-gradient(circle at 80% 18%, rgba(29, 111, 184, 0.14) 0%, transparent 26%);
}

.ds-furnace-overview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.ds-furnace-overview-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 360px;
}

.ds-furnace-overview-copy {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(29, 111, 184, 0.72);
  text-align: right;
}

.ds-stage-salary,
.ds-stage-history {
  grid-template-columns: 300px minmax(500px, 1fr) 320px;
}

.ds-stage-history {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 0;
}

.ds-stage-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
  min-height: 0;
}

.ds-stage-column > .ds-card {
  margin-bottom: 0;
  width: 100%;
}

.ds-stage-column-left {
  padding-top: clamp(54px, 12vh, 112px);
  align-items: flex-start;
}

.ds-stage-column-right {
  padding-top: clamp(108px, 18vh, 180px);
  align-items: flex-end;
}

.ds-stage-history-column {
  padding-top: clamp(84px, 14vh, 144px);
  align-items: stretch;
}

.ds-stage-center {
  position: relative;
  min-height: clamp(460px, 68vh, 760px);
  pointer-events: none;
  z-index: 1;
}

.ds-stage-furnace-solo .ds-stage-center {
  min-width: 0;
}

.ds-stage-furnace-solo .ds-stage-column-right {
  padding-top: clamp(84px, 15vh, 148px);
}

.ds-stage-salary-terminal {
  grid-template-columns: minmax(0, 420px) 280px;
  gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
  justify-content: center;
  min-height: auto;
  height: auto;
}

.ds-furnace-footer {
  position: fixed;
  left: 50%;
  bottom: calc(var(--ds-nav-height) + var(--ds-safe-bottom) + 28px);
  transform: translateX(-50%);
  width: min(1180px, calc(100vw - 56px));
  z-index: 3;
  pointer-events: none;
}

.ds-furnace-footer-copy {
  margin-bottom: 10px;
  padding-left: clamp(2px, 1vw, 12px);
  font-family: 'STXingkai', 'STKaiti', 'KaiTi', 'BiauKai', var(--ds-font-display);
  font-size: clamp(24px, 2.6vw, 42px);
  line-height: 1.08;
  letter-spacing: 3px;
  color: rgba(29, 111, 184, 0.86);
  text-shadow: 0 0 18px rgba(29, 111, 184, 0.24), 0 0 42px rgba(29, 111, 184, 0.12);
  transform: skew(-8deg);
}

.ds-furnace-footer-number {
  display: inline-block;
  margin: 0 6px;
  color: var(--ds-text-primary);
  font-weight: 600;
}

.ds-furnace-footer-line {
  height: 1px;
  width: 100%;
  background:
    linear-gradient(90deg, transparent 0%, rgba(29, 111, 184, 0.2) 8%, rgba(29, 111, 184, 0.78) 26%, rgba(29, 111, 184, 0.92) 50%, rgba(29, 111, 184, 0.78) 74%, rgba(29, 111, 184, 0.2) 92%, transparent 100%);
  box-shadow: 0 0 14px rgba(29, 111, 184, 0.18);
  opacity: 0.9;
}

.ds-stage-center::before,
.ds-stage-center::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ds-stage-center::before {
  width: min(70vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0, transparent 55%, rgba(29, 111, 184, 0.18) 55.3%, rgba(29, 111, 184, 0.18) 55.6%, transparent 56%, transparent 100%),
    radial-gradient(circle, transparent 0, transparent 63%, rgba(29, 111, 184, 0.08) 63.3%, rgba(29, 111, 184, 0.08) 63.6%, transparent 64%, transparent 100%),
    radial-gradient(circle, transparent 0, transparent 74%, rgba(29, 111, 184, 0.15) 74.3%, rgba(29, 111, 184, 0.15) 74.6%, transparent 75%, transparent 100%),
    radial-gradient(circle, transparent 0, transparent 81%, rgba(29, 111, 184, 0.06) 81.2%, rgba(29, 111, 184, 0.06) 81.6%, transparent 82%, transparent 100%),
    linear-gradient(90deg, transparent 4%, rgba(29, 111, 184, 0.22) 18%, transparent 38%, transparent 62%, rgba(29, 111, 184, 0.22) 82%, transparent 96%);
  opacity: 0.55;
  filter: drop-shadow(0 0 18px rgba(29, 111, 184, 0.07));
}

.ds-stage-center::after {
  width: min(100%, 540px);
  height: 120px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(29, 111, 184, 0.18) 18%, rgba(29, 111, 184, 0.06) 42%, rgba(29, 111, 184, 0.06) 58%, rgba(29, 111, 184, 0.18) 82%, transparent 100%);
  filter: blur(14px);
  opacity: 0.42;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 顶栏 ────────────────────────────────────── */
.ds-header {
  position: relative;
  z-index: 5;
  background: var(--ds-bg-primary);
  padding: 8px 20px;
  max-width: 1380px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-portal-page="furnace"] .ds-header {
  display: none;
}

.ds-header-left {
  display: flex; align-items: center; gap: 10px;
}

.ds-header-mode[hidden] {
  display: none !important;
}

.ds-header-shift {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: min(460px, calc(100vw - 150px));
}

.ds-shift-lockup-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.ds-shift-lockup-main {
  position: relative;
  font-family: var(--ds-font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.92;
  letter-spacing: 3px;
  color: var(--ds-cyan);
  text-shadow: 0 0 18px rgba(29, 111, 184, 0.32), 0 0 48px rgba(29, 111, 184, 0.18);
  transform: skew(-5deg);
  text-transform: uppercase;
}

.ds-shift-lockup-main::after {
  content: '';
  position: absolute;
  left: 0;
  right: -40px;
  bottom: -12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(29, 111, 184, 0.7), rgba(29, 111, 184, 0.08));
  opacity: 0.9;
}

.ds-terminal-code {
  margin-top: 2px;
  font-size: clamp(18px, 2.2vw, 32px);
  line-height: 1.05;
  font-weight: 600;
  color: rgba(29, 111, 184, 0.94);
  letter-spacing: 0.5px;
}

.ds-header-furnace-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  width: min(360px, calc(100vw - 180px));
  margin-top: 6px;
}

.ds-header-salary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: min(520px, calc(100vw - 150px));
}

.ds-header-salary-kicker {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(29, 111, 184, 0.42);
  text-transform: uppercase;
}

.ds-header-salary-title {
  position: relative;
  font-family: var(--ds-font-display);
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.92;
  letter-spacing: 3px;
  color: var(--ds-cyan);
  text-shadow: 0 0 18px rgba(29, 111, 184, 0.28), 0 0 40px rgba(29, 111, 184, 0.14);
  transform: skew(-5deg);
}

.ds-header-salary-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: -40px;
  bottom: -11px;
  height: 1px;
  background: linear-gradient(90deg, rgba(29, 111, 184, 0.72), rgba(29, 111, 184, 0.08));
}

.ds-header-salary-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  width: min(360px, calc(100vw - 180px));
  margin-top: 6px;
}

.ds-header-salary-item {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 10px 2px;
  cursor: pointer;
  color: var(--ds-text-primary);
  text-align: left;
  position: relative;
}

.ds-header-salary-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(29, 111, 184, 0.18) 0%, rgba(29, 111, 184, 0.96) 45%, rgba(29, 111, 184, 0.18) 100%);
  box-shadow: 0 0 14px rgba(29, 111, 184, 0.24);
  opacity: 0;
}

.ds-header-salary-item::after {
  content: '';
  position: absolute;
  left: 44px;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(29, 111, 184, 0.34), rgba(29, 111, 184, 0.04));
  opacity: 0.45;
}

.ds-header-salary-item:hover::before,
.ds-header-salary-item:focus-visible::before,
.ds-header-salary-item.active::before {
  opacity: 1;
}

.ds-header-salary-item.active::after {
  background: linear-gradient(90deg, rgba(29, 111, 184, 0.9), rgba(29, 111, 184, 0.06));
  opacity: 1;
}

.ds-header-salary-item-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(29, 111, 184, 0.96);
  filter: drop-shadow(0 0 8px rgba(29, 111, 184, 0.18));
}

.ds-header-salary-item-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-header-salary-item-label {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: rgba(29, 111, 184, 0.95);
}

.ds-header-salary-item.active .ds-header-salary-item-icon {
  color: var(--ds-cyan);
  filter: drop-shadow(0 0 10px rgba(29, 111, 184, 0.3));
}

.ds-header-salary-item-arrow {
  color: var(--ds-cyan);
  font-family: var(--ds-font-display);
  font-size: 15px;
  line-height: 1;
}

.ds-furnace-launcher {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px 9px 2px;
  cursor: pointer;
  color: var(--ds-text-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  text-align: left;
  transition: opacity 0.18s ease;
}

.ds-furnace-launcher::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 9px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(29, 111, 184, 0.18) 0%, rgba(29, 111, 184, 0.95) 45%, rgba(29, 111, 184, 0.18) 100%);
  box-shadow: 0 0 14px rgba(29, 111, 184, 0.24);
  opacity: 0;
  pointer-events: none;
}

.ds-furnace-launcher::after {
  content: '';
  position: absolute;
  left: 40px;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(29, 111, 184, 0.34), rgba(29, 111, 184, 0.04));
  opacity: 0.45;
  pointer-events: none;
}

.ds-furnace-launcher:hover::before,
.ds-furnace-launcher:hover::after,
.ds-furnace-launcher:focus-visible::before,
.ds-furnace-launcher:focus-visible::after {
  opacity: 1;
}

.ds-furnace-item-icon,
.ds-furnace-item-copy,
.ds-furnace-launcher-arrow {
  position: relative;
  z-index: 1;
}

.ds-furnace-item-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-cyan);
  filter: drop-shadow(0 0 8px rgba(29, 111, 184, 0.18));
}

.ds-furnace-item-icon-svg {
  width: 100%;
  height: 100%;
  fill: rgba(29, 111, 184, 0.12);
  stroke: rgba(29, 111, 184, 0.88);
  stroke-width: 1.2;
}

.ds-furnace-item-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.ds-furnace-item-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(29, 111, 184, 0.96);
}

.ds-furnace-item-subtitle {
  font-size: 10px;
  color: rgba(29, 111, 184, 0.72);
  letter-spacing: 0.3px;
}

.ds-furnace-launcher-arrow {
  color: var(--ds-cyan);
  font-family: var(--ds-font-display);
  font-size: 15px;
  line-height: 1;
  margin-left: auto;
}

.ds-furnace-detail-page {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ds-furnace-detail-page.show {
  display: flex;
}

.ds-fd-panel {
  width: min(88vw, 440px);
  max-height: min(66vh, 430px);
  aspect-ratio: 1.55 / 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.26);
  animation: furnaceDetailPanelIn 0.18s ease-out both;
}

@keyframes furnaceDetailPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 顶栏固定 */
.ds-fd-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  background: #0f172a;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.ds-fd-back {
  border: none;
  background: #ffffff;
  color: #0f172a;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.ds-fd-topbar-title {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

/* 可滚动内容区 */
.ds-fd-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 7px 8px 8px;
  background: #f3f4f6;
}

.ds-fd-sub {
  font-size: 10px;
  color: #4b5563;
  margin-bottom: 5px;
  font-weight: 700;
}

.ds-fd-stats {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(74px, 0.8fr);
  gap: 3px;
  margin-bottom: 5px;
}

.ds-furnace-detail-stat {
  min-width: 0;
  padding: 4px 5px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.ds-furnace-detail-stat-label {
  font-size: 7.5px;
  color: #6b7280;
  margin-bottom: 1px;
  font-weight: 750;
}

.ds-furnace-detail-stat-value {
  font-size: 12px;
  line-height: 1.15;
  font-weight: 850;
  color: #111827;
}

.ds-furnace-detail-stat.is-good .ds-furnace-detail-stat-value,
.ds-furnace-detail-stat.is-good .ds-furnace-detail-stat-line strong {
  color: #16a34a;
}

.ds-furnace-detail-stat.is-neutral .ds-furnace-detail-stat-value,
.ds-furnace-detail-stat.is-neutral .ds-furnace-detail-stat-line strong {
  color: #ca8a04;
}

.ds-furnace-detail-stat.is-bad .ds-furnace-detail-stat-value,
.ds-furnace-detail-stat.is-bad .ds-furnace-detail-stat-line strong {
  color: #dc2626;
}

.ds-furnace-detail-stat-lines {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.ds-furnace-detail-stat-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 5px;
  border-top: 1px solid #eef2f7;
  font-size: 11px;
  color: #6b7280;
}

.ds-furnace-detail-stat-line strong {
  color: #111827;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.ds-furnace-detail-stat-helper {
  margin-top: 2px;
  font-size: 7.5px;
  line-height: 1.3;
  color: #6b7280;
}

.ds-furnace-detail-stat.is-wide {
  min-width: 0;
}

.ds-furnace-detail-stat.is-narrow {
  min-width: 0;
  text-align: center;
}

.ds-furnace-detail-stat.is-daily {
  grid-column: span 2;
}

/* 成员列表 - 扁平化，无嵌套卡片 */
.ds-fd-members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

/* 扁平成员分组 */
.ds-fd-group {
  padding: 5px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.ds-fd-group:last-child {
  border-bottom: 1px solid #e5e7eb;
}

.ds-fd-group.is-furnaceTable,
.ds-fd-group.is-frontGroup {
  grid-column: 1 / -1;
}

.ds-fd-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.ds-fd-group-label {
  font-size: 11px;
  font-weight: 800;
  color: #0341a4;
}

.ds-fd-group-count {
  font-size: 9px;
  color: #6b7280;
}

.ds-fd-group-names {
  font-size: 11px;
  color: #111827;
  line-height: 1.42;
}

.ds-furnace-detail-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ds-furnace-detail-kicker {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(29, 111, 184, 0.44);
  text-transform: uppercase;
}

.ds-furnace-detail-title {
  margin-top: 10px;
  font-family: var(--ds-font-display);
  font-size: clamp(42px, 4.8vw, 72px);
  line-height: 0.92;
  letter-spacing: 3px;
  color: var(--ds-cyan);
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(29, 111, 184, 0.22);
}

.ds-furnace-detail-subtitle {
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.1;
  color: rgba(29, 111, 184, 0.9);
}

.ds-furnace-detail-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.ds-furnace-detail-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(29, 111, 184, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.035) 0%, rgba(0, 0, 0, 0.068) 100%);
  color: rgba(29, 111, 184, 0.88);
  padding: 14px 16px;
  text-align: left;
}

.ds-furnace-detail-menu-item::before {
  display: none;
}

.ds-furnace-detail-menu-label,
.ds-furnace-detail-menu-meta {
  position: relative;
  z-index: 1;
}

.ds-furnace-detail-menu-label {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
}

.ds-furnace-detail-menu-meta {
  min-width: 32px;
  color: rgba(29, 111, 184, 0.88);
  font-family: var(--ds-font-mono);
  font-size: 18px;
  text-align: right;
}

.ds-furnace-detail-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 280px;
  gap: 18px;
  min-height: 0;
}

.ds-furnace-detail-stage {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(29, 111, 184, 0.08);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.1) 100%);
  overflow: hidden;
}

.ds-furnace-detail-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 52%, rgba(29, 111, 184, 0.14) 0%, rgba(29, 111, 184, 0.04) 18%, transparent 42%);
}

.ds-furnace-detail-stage-art {
  position: absolute;
  right: 6%;
  top: 10%;
  width: min(48vw, 580px);
  height: min(64vh, 620px);
  pointer-events: none;
}

.ds-furnace-detail-stage-core,
.ds-furnace-detail-stage-ring,
.ds-furnace-detail-stage-scan {
  position: absolute;
}

.ds-furnace-detail-stage-core {
  inset: 22% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 111, 184, 0.1) 0%, rgba(29, 111, 184, 0.1) 18%, rgba(0, 0, 0, 0.01) 48%, transparent 62%);
  filter: blur(1px);
}

.ds-furnace-detail-stage-ring {
  border-radius: 50%;
  border: 1px solid rgba(29, 111, 184, 0.16);
}

.ds-furnace-detail-stage-ring-a {
  inset: 12% 10%;
}

.ds-furnace-detail-stage-ring-b {
  inset: 18% 16%;
  border-style: dashed;
  opacity: 0.5;
}

.ds-furnace-detail-stage-ring-c {
  inset: 28% 26%;
  opacity: 0.38;
}

.ds-furnace-detail-stage-scan {
  left: 8%;
  right: 8%;
  bottom: 18%;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(29, 111, 184, 0.16) 28%, rgba(29, 111, 184, 0.36) 50%, rgba(29, 111, 184, 0.16) 72%, transparent 100%);
  filter: blur(10px);
}

.ds-furnace-detail-stats {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  width: min(520px, calc(100% - 44px));
}

.ds-furnace-detail-stat {
  border: 1px solid rgba(29, 111, 184, 0.14);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.07) 0%, rgba(0, 0, 0, 0.092) 100%);
  padding: 14px 16px;
}

.ds-furnace-detail-stat-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: rgba(29, 111, 184, 0.54);
  text-transform: uppercase;
}

.ds-furnace-detail-stat-value {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.15;
  color: rgba(29, 111, 184, 0.96);
  font-weight: 600;
}

.ds-fd-stats .ds-furnace-detail-stat {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  min-height: 25px;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.ds-fd-stats .ds-furnace-detail-stat-label {
  flex: 0 0 auto;
  margin: 0;
  font-size: 8px;
  letter-spacing: 0;
  color: #6b7280;
  text-transform: none;
  white-space: nowrap;
}

.ds-fd-stats .ds-furnace-detail-stat-value {
  margin-top: 0;
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  line-height: 1;
  color: #111827;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-furnace-detail-card {
  border: 1px solid rgba(29, 111, 184, 0.12);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.12) 100%);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ds-furnace-detail-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.ds-furnace-detail-card-title {
  font-size: 34px;
  line-height: 1;
  color: rgba(29, 111, 184, 0.96);
  font-weight: 600;
}

.ds-furnace-detail-card-desc {
  font-size: 13px;
  color: rgba(29, 111, 184, 0.68);
}

.ds-furnace-detail-member-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  min-height: 0;
  overflow: auto;
}

.ds-furnace-member-card {
  border: 1px solid rgba(29, 111, 184, 0.12);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.084) 0%, rgba(0, 0, 0, 0.12) 100%);
  padding: 14px 15px;
}

.ds-furnace-member-card.is-empty {
  grid-column: 1 / -1;
}

.ds-furnace-member-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ds-furnace-member-card-team {
  font-size: 15px;
  color: rgba(29, 111, 184, 0.95);
  font-weight: 600;
}

.ds-furnace-member-card-copy {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(29, 111, 184, 0.68);
}

.ds-furnace-member-card-count {
  color: rgba(29, 111, 184, 0.8);
  font-size: 12px;
  font-family: var(--ds-font-mono);
}

.ds-furnace-member-card-groups {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.ds-furnace-member-card-group {
  padding-top: 10px;
  border-top: 1px solid rgba(29, 111, 184, 0.08);
}

.ds-furnace-member-card-group:first-child {
  padding-top: 0;
  border-top: none;
}

.ds-furnace-member-card-group-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: rgba(29, 111, 184, 0.8);
  font-family: var(--ds-font-mono);
}

.ds-furnace-member-card-names {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(29, 111, 184, 0.86);
}

.ds-salary-console {
  position: relative;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(29, 111, 184, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.12) 100%),
    radial-gradient(circle at 74% 18%, rgba(29, 111, 184, 0.12) 0%, transparent 26%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  overflow: visible;
}

.ds-salary-console::before,
.ds-salary-console::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(29, 111, 184, 0.18), rgba(29, 111, 184, 0.02));
}

.ds-salary-console::before {
  top: 22px;
}

.ds-salary-console::after {
  bottom: 22px;
}

.ds-salary-console-head {
  position: relative;
  z-index: 1;
  padding: 22px 20px 12px;
  flex: 0 0 auto;
}

.ds-salary-console-kicker {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(29, 111, 184, 0.46);
  text-transform: uppercase;
}

.ds-salary-console-title {
  margin-top: 8px;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 0.96;
  color: rgba(29, 111, 184, 0.96);
  font-family: var(--ds-font-display);
  letter-spacing: 1.5px;
  text-shadow: 0 0 18px rgba(29, 111, 184, 0.16);
}

.ds-salary-console-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(29, 111, 184, 0.7);
}

.ds-salary-console-body {
  position: relative;
  z-index: 1;
  padding: 0 20px 20px;
  overflow: visible;
  flex: 1 1 auto;
  min-height: 0;
}

.ds-salary-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ds-salary-info-card,
.ds-salary-section-card,
.ds-salary-profile-card,
.ds-salary-reward-card {
  border: 1px solid rgba(29, 111, 184, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.092) 0%, rgba(0, 0, 0, 0.12) 100%);
}

.ds-salary-info-card {
  padding: 14px 14px 12px;
}

.ds-salary-info-card-hero {
  grid-column: 1 / -1;
}

.ds-salary-info-value-lg {
  margin-top: 8px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 0.95;
  font-family: var(--ds-font-display);
  letter-spacing: 1.5px;
  color: rgba(29, 111, 184, 0.96);
}

.ds-salary-info-value {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: rgba(29, 111, 184, 0.96);
}

.ds-salary-info-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(29, 111, 184, 0.7);
}

.ds-salary-info-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ds-salary-section-card {
  margin-top: 12px;
  padding: 14px 16px;
}

.ds-salary-section-card-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(29, 111, 184, 0.96);
}

.ds-salary-copy-block {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(29, 111, 184, 0.84);
}

.ds-salary-history-shift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ds-salary-history-shift-card {
  border: 1px solid rgba(29, 111, 184, 0.12);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.084) 0%, rgba(0, 0, 0, 0.12) 100%);
}

.ds-salary-history-shift-card.is-good {
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.06);
}

.ds-salary-history-shift-card.is-bad {
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.06);
}

.ds-salary-history-shift-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ds-salary-history-shift-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.ds-salary-history-shift-value {
  font-family: var(--ds-font-mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
}

.ds-salary-history-shift-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.ds-salary-history-shift-note.is-good {
  color: rgba(22, 163, 74, 0.84);
}

.ds-salary-history-shift-note.is-bad {
  color: rgba(220, 38, 38, 0.84);
}

.ds-salary-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: visible;
}

.ds-salary-profile-card {
  padding: 14px;
  border-radius: 14px;
  overflow: hidden;
}

.ds-salary-profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ds-salary-profile-kicker {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(29, 111, 184, 0.46);
  text-transform: uppercase;
}

.ds-salary-profile-role {
  font-size: 13px;
  color: var(--ds-cyan);
  text-align: right;
}

.ds-salary-profile-visual {
  position: relative;
  height: 180px;
  margin-top: 10px;
  border: 1px solid rgba(29, 111, 184, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.12) 100%);
  overflow: hidden;
}

.ds-salary-profile-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 111, 184, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 111, 184, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.38;
}

.ds-salary-profile-photo {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(29, 111, 184, 0.12);
  background:
    radial-gradient(circle at 50% 28%, rgba(29, 111, 184, 0.28) 0%, rgba(29, 111, 184, 0.12) 18%, transparent 44%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.105) 0%, rgba(0, 0, 0, 0.052) 100%);
  overflow: hidden;
}

.ds-salary-profile-photo::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(29, 111, 184, 0.84) 0%, rgba(29, 111, 184, 0.46) 100%);
  filter: blur(0.4px);
}

.ds-salary-profile-photo::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 104px;
  height: 100px;
  transform: translateX(-50%);
  border-radius: 44% 44% 14% 14%;
  background: linear-gradient(180deg, rgba(29, 111, 184, 0.9) 0%, rgba(29, 111, 184, 0.44) 100%);
  opacity: 0.88;
}

.ds-salary-profile-initial {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 1;
  font-family: var(--ds-font-display);
  font-size: 30px;
  line-height: 1;
  color: rgba(29, 111, 184, 0.92);
  text-shadow: 0 0 16px rgba(29, 111, 184, 0.18);
}

.ds-salary-profile-name {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.1;
  color: rgba(29, 111, 184, 0.97);
  font-weight: 600;
}

.ds-salary-profile-meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(29, 111, 184, 0.7);
}

.ds-salary-reward-card {
  padding: 14px;
  border-radius: 14px;
  margin-top: 0;
}

.ds-salary-reward-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ds-salary-reward-title {
  font-size: 16px;
  color: rgba(29, 111, 184, 0.96);
  font-weight: 600;
}

.ds-salary-reward-subtitle {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(29, 111, 184, 0.66);
}

.ds-salary-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ds-salary-reward-item {
  border: 1px solid rgba(29, 111, 184, 0.14);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.104) 100%);
  color: rgba(29, 111, 184, 0.84);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 112px;
  padding: 12px 8px;
  text-align: center;
}

.ds-salary-reward-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(29, 111, 184, 0.94);
}

.ds-salary-reward-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-salary-reward-label {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.5px;
  color: rgba(29, 111, 184, 0.92);
}

.ds-salary-reward-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-family: var(--ds-font-mono);
  color: rgba(29, 111, 184, 0.98);
}

.ds-salary-reward-number {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.ds-salary-reward-unit {
  font-size: 11px;
  color: rgba(29, 111, 184, 0.72);
}

.ds-sim-current-card {
  margin-top: 0;
}

.ds-sim-input-card {
  border-color: rgba(217, 119, 6, 0.22);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.044) 0%, rgba(0, 0, 0, 0.12) 100%),
    radial-gradient(circle at 84% 14%, rgba(217, 119, 6, 0.08) 0%, transparent 24%);
}

.ds-sim-input-card-title {
  color: var(--ds-orange);
}

.ds-sim-mobile-copy {
  color: rgba(29, 111, 184, 0.78);
}

.ds-sim-input-stack,
.ds-sim-foreman-stack,
.ds-sim-shift-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.ds-sim-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ds-sim-field-inline {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: rgba(29, 111, 184, 0.5);
}

.ds-sim-field-inline .ds-sim-input {
  width: 100%;
  padding: 8px 6px;
  font-size: 15px;
  text-align: center;
}

.ds-sim-shift-summary-card,
.ds-sim-shift-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(29, 111, 184, 0.12);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.068) 100%);
}

.ds-sim-shift-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ds-sim-shift-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-text-primary);
}

.ds-sim-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ds-sim-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--ds-text-secondary);
}

.ds-sim-field-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-sim-field-hint {
  font-size: 10px;
  line-height: 1.3;
  color: var(--ds-text-muted);
  white-space: nowrap;
}

.ds-sim-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  background: rgba(0, 0, 0, 0.06);
  color: var(--ds-text-primary);
  font-size: 15px;
  font-family: var(--ds-font-mono);
  text-align: right;
  appearance: none;
  -webkit-appearance: none;
}

.ds-sim-input:focus {
  outline: none;
  border-color: rgba(29, 111, 184, 0.6);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
  background: rgba(0, 0, 0, 0.08);
}

.ds-sim-result-card {
  border-color: rgba(29, 111, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.12) 100%),
    radial-gradient(circle at 18% 18%, rgba(29, 111, 184, 0.12) 0%, transparent 26%);
}

.ds-sim-result-shell {
  text-align: center;
  padding: 14px 0 12px;
}

.ds-sim-result-amount {
  font-family: var(--ds-font-display);
  font-size: clamp(28px, 6vw, 42px);
  line-height: 0.95;
  letter-spacing: 0.9px;
}

.ds-sim-result-caption {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ds-text-muted);
}

.ds-sim-result-placeholder {
  padding: 16px 0 10px;
  text-align: center;
  font-size: 12px;
  color: var(--ds-text-muted);
}

.ds-user-badge {
  font-size: 11px; color: var(--ds-text-secondary);
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--ds-border);
  background: rgba(0, 0, 0, 0.064);
  transition: border-color 0.2s;
}
.ds-user-badge:hover { border-color: var(--ds-border-accent); }
.ds-user-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ds-green);
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
}
.ds-header-salary-title-row {
  display: none;
  align-items: baseline;
  gap: 8px;
}
.ds-user-role {
  font-style: italic;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ds-cyan);
  opacity: 0.8;
  font-family: 'Georgia', 'Times New Roman', serif;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(29, 111, 184, 0.25);
}

/* ── 卡片 ────────────────────────────────────── */
.ds-card {
  background: var(--ds-bg-card);
  backdrop-filter: var(--ds-blur);
  -webkit-backdrop-filter: var(--ds-blur);
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(0, 0, 0, 0.03);
}
.ds-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ds-cyan-dim), transparent);
  opacity: 0.28;
}
.ds-card::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  pointer-events: none;
}

.ds-card-hero {
  min-height: clamp(220px, 36vh, 320px);
}

.ds-card-compact {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.036) 0%, rgba(0, 0, 0, 0.084) 100%);
}

.ds-card-title {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--ds-text-label);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.ds-card-title::before {
  content: '';
  width: 3px; height: 12px; border-radius: 1px;
  background: var(--ds-cyan);
}

/* ── 数字展示 ─────────────────────────────────── */
.ds-number {
  font-family: var(--ds-font-mono);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 1.5px;
  line-height: 1.1;
}
.ds-number-unit {
  font-size: 14px; font-weight: 400;
  color: var(--ds-text-muted); margin-left: 4px;
}

.ds-number-sm {
  font-family: var(--ds-font-mono);
  font-size: 22px; font-weight: 400;
  letter-spacing: 1px;
}

/* ── 标签 ─────────────────────────────────────── */
.ds-label {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ds-text-muted);
}

.ds-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
}
.ds-tag-cyan { background: rgba(29, 111, 184, 0.1); color: var(--ds-cyan); border: 1px solid rgba(29, 111, 184, 0.15); }
.ds-tag-green { background: var(--ds-green-dim); color: var(--ds-green); border: 1px solid rgba(22, 163, 74, 0.15); }
.ds-tag-orange { background: var(--ds-orange-dim); color: var(--ds-orange); border: 1px solid rgba(217, 119, 6, 0.15); }
.ds-tag-red { background: var(--ds-red-dim); color: var(--ds-red); border: 1px solid rgba(220, 38, 38, 0.15); }

/* ── 炉长模拟器（扁平版） ───────────────────────── */
.ds-fm-total {
  text-align: center;
  padding: 16px 0 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ds-fm-total-amount {
  font-size: 28px;
  font-weight: 800;
  color: rgba(29, 111, 184, 0.95);
  line-height: 1.2;
}

.ds-fm-total-delta {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}
.ds-fm-total-delta.is-up { color: var(--ds-green); }
.ds-fm-total-delta.is-down { color: var(--ds-red); }

.ds-fm-total-sub {
  font-size: 11px;
  color: rgba(29, 111, 184, 0.35);
  margin-top: 6px;
}

.ds-fm-total-label {
  font-size: 12px;
  color: rgba(29, 111, 184, 0.45);
  margin-top: 4px;
}

.ds-fm-shift {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ds-fm-shift:last-of-type {
  border-bottom: none;
}

.ds-fm-shift-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.ds-fm-shift-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-cyan);
}

.ds-fm-shift-done {
  font-size: 11px;
  color: rgba(29, 111, 184, 0.35);
}

.ds-fm-shift-inputs {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.ds-fm-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  color: rgba(29, 111, 184, 0.45);
}

.ds-fm-field .ds-sim-input {
  width: 100%;
  padding: 7px 4px;
  font-size: 15px;
  text-align: center;
}

.ds-fm-shift-result {
  font-size: 11px;
  color: rgba(29, 111, 184, 0.6);
  min-height: 18px;
}

.ds-fm-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.ds-fm-result-avg {
  font-weight: 700;
  font-size: 12px;
}
.ds-fm-result-avg.is-up { color: var(--ds-green); }
.ds-fm-result-avg.is-down { color: var(--ds-red); }

.ds-fm-result-change {
  font-size: 11px;
  font-weight: 600;
}
.ds-fm-result-change.is-up { color: var(--ds-green); }
.ds-fm-result-change.is-down { color: var(--ds-red); }

.ds-fm-result-contrib {
  font-size: 10px;
  color: var(--ds-cyan);
  margin-left: auto;
}

.ds-fm-result-row .is-up { color: var(--ds-green); }
.ds-fm-result-row .is-down { color: var(--ds-red); }

.ds-fm-furnace-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(29, 111, 184, 0.6);
  padding: 10px 0 4px;
  margin-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ds-fm-furnace-label:first-child {
  border-top: none;
  margin-top: 0;
}

.ds-fm-note {
  margin-top: 12px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(217, 119, 6, 0.05);
  border: 1px solid rgba(217, 119, 6, 0.1);
  font-size: 11px;
  color: rgba(29, 111, 184, 0.6);
}

/* ── 班次信息栏 ─────────────────────────────────── */
.ds-shift-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px 22px;
  align-items: start;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.ds-shift-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #1f3f5b;
}
.ds-shift-panel-main {
  min-width: 0;
}
.ds-shift-panel-kicker {
  margin-bottom: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.ds-shift-current-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.ds-shift-current-label {
  color: #64748b;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 650;
}
.ds-shift-current-team {
  color: #111827;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 0.95;
  font-weight: 850;
  letter-spacing: 0;
}
.ds-shift-current-status {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-left: 2px solid rgba(55, 85, 68, 0.58);
  color: #2f4f40;
  background: #f3f6f4;
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
}
.ds-shift-date {
  justify-self: end;
  color: #64748b;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
}
.ds-shift-roster-board {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.ds-shift-roster-line {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 12px 14px 0 0;
}
.ds-shift-roster-line + .ds-shift-roster-line {
  padding-left: 18px;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}
.ds-shift-roster-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}
.ds-shift-roster-team {
  color: #111827;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}
.ds-shift-roster-current {
  opacity: 0;
  transform: translateX(-4px);
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 5px;
  color: #1f3f5b;
  background: #eef2f6;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ds-shift-roster-line.is-current .ds-shift-roster-current {
  opacity: 1;
  transform: translateX(0);
}
.ds-shift-roster-line.is-current .ds-shift-roster-team {
  color: #1f3f5b;
}
.ds-shift-roster-line.is-done .ds-shift-roster-current,
.ds-shift-roster-line.is-pending .ds-shift-roster-current,
.ds-shift-roster-line.is-unset .ds-shift-roster-current {
  opacity: 1;
  transform: translateX(0);
}
.ds-shift-roster-line.is-done .ds-shift-roster-current {
  color: #64748b;
  background: #f1f5f9;
}
.ds-shift-roster-line.is-pending .ds-shift-roster-current {
  color: #8a5a12;
  background: #fff7e0;
}
.ds-shift-roster-line.is-unset .ds-shift-roster-current {
  color: #94a3b8;
  background: #f8fafc;
}
.ds-shift-roster-line.is-done .ds-shift-roster-team,
.ds-shift-roster-line.is-unset .ds-shift-roster-team {
  color: #64748b;
}

.ds-shift-schedule-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 3px;
}
.ds-shift-schedule-toggle {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(245, 189, 25, 0.32);
  border-radius: 6px;
  background: #fffaf0;
  color: #6b4d08;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  font-weight: 750;
  cursor: pointer;
}
.ds-shift-schedule-toggle b {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.18s ease;
}
.ds-shift-schedule-toggle.is-open b {
  transform: rotate(90deg);
}
.ds-shift-schedule-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding-top: 5px;
}
.ds-shift-schedule-panel[hidden] {
  display: none !important;
}
.ds-shift-schedule-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}
.ds-shift-schedule-date {
  color: #64748b;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}
.ds-shift-schedule-slot {
  min-width: 0;
  min-height: 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  background: #ffffff;
}
.ds-shift-schedule-slot span {
  color: #64748b;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
}
.ds-shift-schedule-slot strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}
.ds-shift-schedule-slot em {
  color: #64748b;
  font-size: 9px;
  line-height: 1;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}
.ds-shift-schedule-slot.is-current {
  border-color: rgba(31, 63, 91, 0.22);
  background: #f3f7fb;
}
.ds-shift-schedule-slot.is-current strong,
.ds-shift-schedule-slot.is-current em {
  color: #1f3f5b;
}
.ds-shift-schedule-slot.is-done strong,
.ds-shift-schedule-slot.is-done em {
  color: #64748b;
}
.ds-shift-schedule-slot.is-pending {
  background: #fffaf0;
}
.ds-shift-schedule-slot.is-pending em {
  color: #8a5a12;
}
.ds-shift-schedule-empty {
  padding: 6px 0;
  color: #94a3b8;
  font-size: 11px;
  text-align: right;
}

/* ── 炉况透明列表 ───────────────────────────────── */
.ds-fl-furnace {
  margin-bottom: 16px;
  padding: 14px 16px 15px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ds-fl-furnace:hover {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.ds-fl-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.ds-fl-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.ds-fl-team {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 5px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.ds-fl-meta {
  font-size: 11px;
  color: #64748b;
  margin-left: auto;
}

.ds-fl-scope {
  margin-bottom: 8px;
  color: #667085;
  font-size: 11px;
  line-height: 1.4;
}

.ds-fl-note {
  margin-bottom: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #5f6f83;
  font-size: 11px;
  line-height: 1.45;
}

.ds-fl-current-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ds-fl-current-metric {
  min-width: 0;
  padding: 9px 8px 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.ds-fl-current-metric span,
.ds-fl-current-metric small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #667085;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-fl-current-metric strong {
  display: block;
  margin-top: 5px;
  color: #111827;
  font-family: var(--ds-font-mono);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.1;
}

.ds-fl-current-metric strong.is-good { color: #167c36; }
.ds-fl-current-metric strong.is-bad { color: #b42318; }
.ds-fl-current-metric strong.is-neutral { color: #111827; }
.ds-fl-current-metric strong.is-empty { color: #94a3b8; }

.ds-fl-current-metric small {
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.42);
  font-size: 9px;
}

.ds-fl-table {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.ds-fl-row {
  display: grid;
  grid-template-columns: minmax(66px, 0.82fr) minmax(86px, 1fr) minmax(112px, 1.2fr);
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ds-fl-row:last-child {
  border-bottom: none;
}

.ds-fl-head {
  background: #ffffff;
}

.ds-fl-head .ds-fl-date,
.ds-fl-head .ds-fl-val {
  font-size: 10px;
  font-weight: 750;
  color: #5f6f83;
  letter-spacing: 0;
}

.ds-fl-avg {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
}

.ds-fl-avg .ds-fl-date {
  font-weight: 750;
  color: #5f6f83;
}

.ds-fl-date {
  font-size: 11px;
  color: #667085;
  min-width: 0;
}

.ds-fl-val {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ds-font-mono);
  color: #111827;
  min-width: 0;
}

.ds-fl-val strong {
  font: inherit;
}

.ds-fl-val small {
  color: rgba(0, 0, 0, 0.42);
  font-family: var(--ds-font);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.ds-fl-val.is-good { color: #167c36; }
.ds-fl-val.is-bad { color: #b42318; }
.ds-fl-val.is-neutral { color: #111827; }
.ds-fl-val.is-empty { color: #94a3b8; }

.ds-fl-trend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}

.ds-fl-delta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.ds-fl-trend-label {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 11px;
  line-height: 1.2;
}

.ds-fl-delta strong {
  font-family: var(--ds-font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.ds-fl-delta.is-positive {
  color: #2f5f4a;
  border-color: rgba(47, 95, 74, 0.16);
  background: #f7faf8;
}
.ds-fl-delta.is-negative {
  color: #7a4545;
  border-color: rgba(122, 69, 69, 0.14);
  background: #fbf8f8;
}
.ds-fl-delta.is-neutral {
  color: #64748b;
}

.ds-fl-empty {
  padding: 12px 0;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

.ds-fl-val-sm {
  font-size: 10px;
}

.ds-fl-recent {
  margin-top: 4px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
}

.ds-fl-ab-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ds-fl-ab-kicker {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.ds-fl-ab-section-title {
  margin: 5px 0 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 750;
}

.ds-fl-ab-section-meta {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.ds-fl-ab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ds-fl-ab-card {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ds-fl-ab-card:hover,
.ds-fl-ab-card:focus-visible {
  border-color: #cfd7df;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.ds-fl-ab-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid #eef0f2;
}

.ds-fl-ab-title {
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.ds-fl-ab-meta {
  margin-top: 4px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.2;
}

.ds-fl-ab-avg {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.ds-fl-ab-avg strong {
  color: #111827;
  font-family: var(--ds-font-mono);
  font-size: 15px;
  line-height: 1;
}

.ds-fl-ab-table {
  background: #ffffff;
}

.ds-fl-ab-row {
  display: grid;
  grid-template-columns: minmax(58px, 0.78fr) minmax(78px, 0.95fr) minmax(88px, 1fr) minmax(88px, 1fr);
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ds-fl-ab-row:last-child {
  border-bottom: none;
}

.ds-fl-ab-head,
.ds-fl-ab-summary {
  background: #fafafa;
}

.ds-fl-ab-head .ds-fl-ab-date,
.ds-fl-ab-head .ds-fl-ab-val {
  color: #5f6f83;
  font-size: 10px;
  font-weight: 800;
}

.ds-fl-ab-summary {
  border-top: 1px solid #e5e7eb;
}

.ds-fl-ab-summary .ds-fl-ab-date {
  color: #5f6f83;
  font-weight: 800;
}

.ds-fl-ab-date {
  min-width: 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.2;
}

.ds-fl-ab-val {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
  color: #111827;
  font-family: var(--ds-font-mono);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-align: right;
}

.ds-fl-ab-val strong {
  font: inherit;
}

.ds-fl-ab-val small {
  color: rgba(0, 0, 0, 0.42);
  font-family: var(--ds-font);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.ds-fl-ab-val.is-good,
.ds-fl-ab-avg strong.is-good {
  color: #167c36;
}

.ds-fl-ab-val.is-bad,
.ds-fl-ab-avg strong.is-bad {
  color: #b42318;
}

.ds-fl-ab-val.is-neutral,
.ds-fl-ab-avg strong.is-neutral {
  color: #111827;
}

.ds-fl-ab-val.is-empty,
.ds-fl-ab-avg strong.is-empty {
  color: #94a3b8;
}

.ds-fl-ab-empty {
  padding: 16px 10px;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.ds-fl-compare-table {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.ds-fl-compare-row {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) minmax(48px, 0.62fr) minmax(70px, 0.82fr) minmax(66px, 0.78fr) minmax(74px, 0.88fr) minmax(56px, 0.68fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 610px;
  min-height: 42px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  color: inherit;
  font: inherit;
  text-align: left;
}

.ds-fl-compare-row:last-child {
  border-bottom: none;
}

.ds-fl-compare-row:not(.is-head) {
  cursor: pointer;
  transition: background 0.16s ease;
}

.ds-fl-compare-row:not(.is-head):hover,
.ds-fl-compare-row:not(.is-head):focus-visible {
  background: #fbfaf5;
  outline: none;
}

.ds-fl-compare-row.is-head {
  min-height: 30px;
  background: #fafafa;
}

.ds-fl-compare-row.is-head span {
  color: #5f6f83;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
  justify-self: end;
}

.ds-fl-compare-row.is-head span:first-child {
  justify-self: stretch;
  text-align: left;
}

.ds-fl-compare-row.is-head span:nth-child(2) {
  justify-self: center;
  text-align: center;
}

.ds-fl-compare-team {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ds-fl-compare-team strong,
.ds-fl-compare-team small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-fl-compare-team strong {
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.ds-fl-compare-team small {
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

.ds-fl-compare-value {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
  color: #111827;
  font-family: var(--ds-font-mono);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.1;
  text-align: right;
  justify-self: end;
}

.ds-fl-compare-value:nth-child(2) {
  justify-self: center;
  justify-content: center;
  text-align: center;
}

.ds-fl-compare-value strong {
  font: inherit;
}

.ds-fl-compare-value small {
  color: rgba(0, 0, 0, 0.42);
  font-family: var(--ds-font);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.ds-fl-compare-value.is-good { color: #167c36; }
.ds-fl-compare-value.is-bad { color: #b42318; }
.ds-fl-compare-value.is-neutral { color: #111827; }
.ds-fl-compare-value.is-empty { color: #94a3b8; }

.ds-fl-compare-value.is-best::before {
  content: '优';
  flex: 0 0 auto;
  min-width: 15px;
  height: 13px;
  padding: 0 3px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(22, 163, 74, 0.18);
  font-family: var(--ds-font);
  font-size: 8px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
}

.ds-fl-shiftmap {
  margin-top: 12px;
  padding: 11px 10px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.ds-fl-shiftmap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.ds-fl-shiftmap-head span {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.ds-fl-shiftmap-head small {
  color: #4b5563;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.ds-fl-shiftmap-scroll {
  overflow-x: auto;
}

.ds-fl-shiftmap-row {
  display: grid;
  align-items: center;
  gap: 4px;
  min-width: 660px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.ds-fl-shiftmap-row:last-child {
  border-bottom: none;
}

.ds-fl-shiftmap-team {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.ds-fl-shiftmap-team strong,
.ds-fl-shiftmap-team small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-fl-shiftmap-team strong {
  color: #111827;
  font-size: 11px;
  font-weight: 800;
}

.ds-fl-shiftmap-team small {
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
}

.ds-fl-shiftmap-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 24px;
  padding: 0 3px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 5px;
  background: #fafafa;
  color: #475467;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.ds-fl-shiftmap-cell.is-good {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(20, 83, 45, 0.16), 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.ds-fl-shiftmap-cell.is-bad {
  border-color: #ef4444;
  background: #dc2626;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(127, 29, 29, 0.3), 0 0 0 1px rgba(220, 38, 38, 0.12);
}

.ds-fl-shiftmap-cell.is-neutral {
  border-color: #ca8a04;
  background: #facc15;
  color: #422006;
}

.ds-fl-shiftmap-cell.is-pending {
  border-style: dashed;
  border-color: rgba(180, 83, 9, 0.24);
  background: #fff7ed;
  color: #b45309;
}

.ds-fl-shiftmap-cell.is-empty {
  border-style: dashed;
  color: #94a3b8;
}

/* 历史页面班组展开 */
.ds-hist-team {
  margin-bottom: 6px;
}

.ds-hist-team-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  cursor: pointer;
  list-style: none;
}

.ds-hist-team-head::-webkit-details-marker {
  display: none;
}

.ds-hist-team-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-cyan);
}

.ds-hist-team-meta {
  font-size: 11px;
  color: rgba(29, 111, 184, 0.35);
}

.ds-hist-team-head::after {
  content: '▸';
  margin-left: auto;
  font-size: 11px;
  color: rgba(29, 111, 184, 0.3);
  transition: transform 0.2s;
}

.ds-hist-team[open] > .ds-hist-team-head::after {
  transform: rotate(90deg);
}

/* ── 值班指示（旧，保留兼容） ─────────────────────── */
.ds-shift-indicator {
  text-align: center; padding: 20px 8px;
}

.ds-shift-indicator-compact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 0;
}

.ds-shift-status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(29, 111, 184, 0.16);
  background: rgba(29, 111, 184, 0.08);
  color: var(--ds-cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ds-shift-status-note {
  font-family: var(--ds-font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  letter-spacing: 1px;
  color: rgba(29, 111, 184, 0.92);
  text-shadow: 0 0 18px rgba(29, 111, 184, 0.16);
  transform: skew(-6deg);
}

.ds-shift-roster {
  margin-top: 18px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
}

.ds-shift-roster-item {
  flex: 1;
  min-width: 0;
}

.ds-shift-roster-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12), transparent);
}

.ds-shift-roster-value {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-text-primary);
}

.ds-shift-team {
  font-size: 44px; font-weight: 700; letter-spacing: 8px;
  color: var(--ds-cyan);
  text-shadow: 0 0 28px rgba(29, 111, 184, 0.24), 0 0 64px rgba(29, 111, 184, 0.1);
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 24px rgba(29, 111, 184, 0.16), 0 0 60px rgba(29, 111, 184, 0.05); }
  50% { text-shadow: 0 0 42px rgba(29, 111, 184, 0.28), 0 0 90px rgba(29, 111, 184, 0.12); }
}
.ds-shift-period {
  font-size: 12px; letter-spacing: 4px; color: var(--ds-text-secondary);
  margin-top: 8px; text-transform: uppercase;
}

/* ── 进度条 ──────────────────────────────────── */
.ds-progress {
  height: 3px; background: var(--ds-border); border-radius: 2px;
  overflow: hidden; margin: 8px 0;
}
.ds-progress-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.6s ease;
  background: linear-gradient(90deg, var(--ds-cyan), var(--ds-green));
}
.ds-progress-fill.over { background: linear-gradient(90deg, var(--ds-green), #15803d); }
.ds-progress-fill.under { background: linear-gradient(90deg, var(--ds-orange), var(--ds-red)); }

/* ── 分隔线 ──────────────────────────────────── */
.ds-divider {
  height: 1px; border: none;
  background: linear-gradient(90deg, transparent, var(--ds-border), transparent);
  margin: 14px 0;
}

/* ── 列表行 ──────────────────────────────────── */
.ds-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--ds-border);
}
.ds-row:last-child { border-bottom: none; }
.ds-row-label { font-size: 12px; color: var(--ds-text-secondary); }
.ds-row-value {
  font-family: var(--ds-font-mono); font-size: 13px;
  color: var(--ds-text-primary); font-weight: 500;
}
.ds-row-value.positive { color: var(--ds-green); }
.ds-row-value.negative { color: var(--ds-red); }

/* ── 炉子卡片 ─────────────────────────────────── */
.ds-furnace-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds-furnace-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.084) 0%, rgba(0, 0, 0, 0.12) 100%),
    radial-gradient(circle at 84% 12%, rgba(29, 111, 184, 0.12) 0%, transparent 22%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.ds-furnace-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ds-cyan-dim), transparent);
  opacity: 0.3;
}
.ds-furnace-id {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--ds-text-label); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.ds-furnace-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ds-green);
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.5);
  animation: dot-blink 2s ease-in-out infinite;
}

.ds-furnace-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ds-furnace-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ds-furnace-card-title {
  font-size: 26px;
  line-height: 1;
  color: rgba(29, 111, 184, 0.97);
  font-weight: 700;
}

.ds-furnace-card-subtitle {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(29, 111, 184, 0.72);
}

.ds-furnace-card-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 111, 184, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.112);
  color: rgba(29, 111, 184, 0.92);
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ds-furnace-card-action:hover {
  border-color: rgba(29, 111, 184, 0.38);
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.ds-furnace-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ds-furnace-card-metric {
  border: 1px solid rgba(29, 111, 184, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.085) 0%, rgba(0, 0, 0, 0.068) 100%);
  padding: 12px 13px;
}

.ds-furnace-card-metric-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(29, 111, 184, 0.54);
  text-transform: uppercase;
}

.ds-furnace-card-metric-value {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.2;
  color: rgba(29, 111, 184, 0.96);
  font-weight: 600;
}

.ds-furnace-card-progress-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ds-furnace-card-shifts {
  display: grid;
  gap: 8px;
}

.ds-furnace-card-shift {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(29, 111, 184, 0.08);
}

.ds-furnace-card-shift:first-child {
  padding-top: 0;
  border-top: none;
}

.ds-furnace-card-shift-name {
  font-size: 12px;
  color: rgba(29, 111, 184, 0.88);
  font-weight: 600;
}

.ds-furnace-card-shift-value {
  font-size: 12px;
  color: rgba(29, 111, 184, 0.74);
  font-family: var(--ds-font-mono);
  text-align: right;
}

.ds-furnace-card-empty {
  padding: 12px 14px;
  border: 1px dashed rgba(29, 111, 184, 0.12);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(29, 111, 184, 0.68);
  background: rgba(0, 0, 0, 0.044);
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── 历史趋势 ─────────────────────────────────── */
.ds-chart-container {
  position: relative; height: 180px;
  margin: 12px 0;
}
.ds-chart-container canvas { width: 100% !important; height: 100% !important; }

#page-history .ds-stage-column-left,
#page-history .ds-stage-column-right {
  min-height: 0;
}

#page-history .ds-stage-history-column {
  min-height: 0;
}

#page-history .ds-stage-column-left > .ds-card,
#page-history .ds-stage-column-right > .ds-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#page-history .ds-stage-history-column > .ds-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#page-history .ds-stage-column-left > .ds-card {
  height: auto;
}

#page-history .ds-stage-column-right > .ds-card {
  flex: 1 1 0;
}

#page-history .ds-chart-container,
#history-months,
#history-production {
  min-height: 0;
  overflow: visible;
}

#page-history .ds-chart-container,
#history-months,
#history-production {
  flex: 1 1 auto;
}

/* ── 月度卡片（可展开） ───────────────────────── */
.ds-month-card {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.032) 0%, rgba(0, 0, 0, 0.072) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  margin-bottom: 8px; overflow: hidden;
  transition: border-color 0.2s;
}
.ds-month-card:hover { border-color: var(--ds-border-accent); }

.ds-month-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; cursor: pointer;
  transition: background 0.2s;
}
.ds-month-header:hover { background: rgba(0, 0, 0, 0.04); }

.ds-month-body {
  display: none; padding: 0 16px 14px;
  border-top: 1px solid var(--ds-border);
}
.ds-month-card.open .ds-month-body { display: block; }
.ds-month-card.open .ds-month-arrow { transform: rotate(180deg); }

.ds-month-arrow {
  color: var(--ds-text-muted); transition: transform 0.2s;
  font-size: 10px;
}

/* ── 表格 ─────────────────────────────────────── */
.ds-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.ds-table th {
  padding: 8px 10px; text-align: left;
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  color: var(--ds-text-muted); text-transform: uppercase;
  border-bottom: 1px solid var(--ds-border);
}
.ds-table th:last-child, .ds-table td:last-child { text-align: right; }
.ds-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--ds-border);
  color: var(--ds-text-secondary);
}
.ds-table tr:last-child td { border-bottom: none; }
.ds-table .mono {
  font-family: var(--ds-font-mono); color: var(--ds-text-primary);
}

/* ── 炉子历史看板 ───────────────────────────── */
.ds-history-overview-grid,
.ds-history-furnace-stack {
  display: grid;
  gap: 10px;
}

.ds-history-overview-card,
.ds-history-furnace-panel,
.ds-history-team-panel {
  border: 1px solid rgba(29, 111, 184, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.084) 0%, rgba(0, 0, 0, 0.12) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ds-history-overview-card {
  padding: 14px;
}

.ds-history-overview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ds-history-overview-title,
.ds-history-furnace-title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(29, 111, 184, 0.96);
}

.ds-history-overview-subtitle,
.ds-history-furnace-meta,
.ds-history-furnace-summary-side,
.ds-history-team-meta,
.ds-history-overview-count {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(29, 111, 184, 0.68);
}

.ds-history-overview-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ds-history-overview-team {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 111, 184, 0.1);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.076) 0%, rgba(0, 0, 0, 0.112) 100%);
}

.ds-history-overview-team.is-empty,
.ds-history-team-panel.is-empty {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.044) 0%, rgba(0, 0, 0, 0.068) 100%);
}

.ds-history-overview-team-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ds-history-overview-team-name,
.ds-history-team-empty-title,
.ds-history-team-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(29, 111, 184, 0.95);
}

.ds-history-overview-team-shift,
.ds-history-overview-team-copy,
.ds-history-team-empty-copy {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(29, 111, 184, 0.65);
}

.ds-history-overview-team-main {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--ds-font-display);
  font-size: 28px;
  line-height: 0.92;
  letter-spacing: 0.6px;
  color: rgba(29, 111, 184, 0.96);
}

.ds-history-overview-team-main span {
  font-family: var(--ds-font);
  font-size: 11px;
  line-height: 1;
  color: rgba(29, 111, 184, 0.72);
}

.ds-history-overview-team-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ds-history-overview-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  color: rgba(29, 111, 184, 0.86);
  background: rgba(29, 111, 184, 0.08);
  border: 1px solid rgba(29, 111, 184, 0.12);
}

.ds-history-overview-pill.is-positive,
.ds-history-team-stat-note.is-positive,
.ds-history-shift-note.is-positive {
  color: rgba(22, 163, 74, 0.92);
}

.ds-history-overview-pill.is-negative,
.ds-history-team-stat-note.is-negative,
.ds-history-shift-note.is-negative {
  color: rgba(220, 38, 38, 0.92);
}

.ds-history-overview-pill.is-neutral,
.ds-history-team-stat-note.is-neutral,
.ds-history-shift-note.is-neutral {
  color: rgba(29, 111, 184, 0.82);
}

.ds-history-furnace-panel,
.ds-history-team-panel {
  overflow: hidden;
}

.ds-history-furnace-panel > summary,
.ds-history-team-panel > summary {
  list-style: none;
  cursor: pointer;
}

.ds-history-furnace-panel > summary::-webkit-details-marker,
.ds-history-team-panel > summary::-webkit-details-marker {
  display: none;
}

.ds-history-furnace-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
}

.ds-history-furnace-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(29, 111, 184, 0.08);
}

.ds-history-furnace-chevron,
.ds-history-team-chevron {
  font-size: 12px;
  color: rgba(29, 111, 184, 0.62);
  transition: transform 0.2s ease;
}

.ds-history-furnace-panel[open] .ds-history-furnace-chevron,
.ds-history-team-panel[open] .ds-history-team-chevron {
  transform: rotate(180deg);
}

.ds-history-team-panel {
  margin-top: 12px;
}

.ds-history-team-panel.is-empty {
  padding: 14px;
}

.ds-history-team-summary {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.ds-history-team-heading {
  min-width: 0;
}

.ds-history-team-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ds-history-team-latest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(29, 111, 184, 0.12);
  background: rgba(29, 111, 184, 0.06);
  font-size: 10px;
  color: rgba(29, 111, 184, 0.7);
}

.ds-history-team-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ds-history-team-stat {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(29, 111, 184, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.044) 0%, rgba(0, 0, 0, 0.076) 100%);
}

.ds-history-team-stat-label,
.ds-history-shift-label,
.ds-history-mini-card-title {
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.5px;
  color: rgba(29, 111, 184, 0.62);
}

.ds-history-team-stat-value,
.ds-history-shift-value {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--ds-font-mono);
  font-size: 17px;
  line-height: 1.05;
  color: rgba(29, 111, 184, 0.96);
}

.ds-history-team-stat-value span,
.ds-history-shift-value span {
  font-family: var(--ds-font);
  font-size: 10px;
  color: rgba(29, 111, 184, 0.64);
}

.ds-history-team-stat-note,
.ds-history-shift-note,
.ds-history-mini-card-meta,
.ds-history-mini-card-foot {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
}

.ds-history-team-body {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(29, 111, 184, 0.08);
}

.ds-history-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
}

.ds-history-mini-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(29, 111, 184, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.048) 0%, rgba(0, 0, 0, 0.072) 100%);
}

.ds-history-mini-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.ds-history-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 52px;
  margin-top: 12px;
}

.ds-history-sparkline.is-empty {
  align-items: center;
  justify-content: center;
}

.ds-history-spark-empty {
  font-size: 11px;
  color: rgba(29, 111, 184, 0.52);
}

.ds-history-sparkbar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 999px 999px 4px 4px;
  background: rgba(29, 111, 184, 0.22);
}

.ds-history-sparkbar.is-production {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.88) 0%, rgba(22, 163, 74, 0.18) 100%);
}

.ds-history-sparkbar.is-power {
  background: linear-gradient(180deg, rgba(29, 111, 184, 0.88) 0%, rgba(29, 111, 184, 0.18) 100%);
}

.ds-history-sparkbar.is-silicon {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.88) 0%, rgba(217, 119, 6, 0.18) 100%);
}

.ds-history-sparkbar.is-electrode {
  background: linear-gradient(180deg, rgba(29, 111, 184, 0.88) 0%, rgba(29, 111, 184, 0.18) 100%);
}

.ds-history-shift-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ds-history-shift-card {
  padding: 12px;
  border: 1px solid rgba(29, 111, 184, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.036) 0%, rgba(0, 0, 0, 0.064) 100%);
}

.ds-history-shift-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ds-history-shift-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(29, 111, 184, 0.96);
}

.ds-history-shift-subtitle {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(29, 111, 184, 0.64);
}

.ds-history-shift-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(29, 111, 184, 0.12);
  background: rgba(29, 111, 184, 0.06);
  font-size: 10px;
  color: rgba(29, 111, 184, 0.68);
}

.ds-history-shift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ds-history-shift-metric {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(29, 111, 184, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.064);
}

/* ── 未发布状态 ────────────────────────────────── */
.ds-empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--ds-text-muted);
}
.ds-empty-icon {
  font-size: 40px; margin-bottom: 12px; opacity: 0.3;
}
.ds-empty-text {
  font-size: 14px; letter-spacing: 2px;
}

/* ── 底部导航 ─────────────────────────────────── */
.ds-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(16px + var(--ds-safe-bottom));
  transform: translateX(-50%);
  width: min(430px, calc(100vw - 28px));
  height: var(--ds-nav-height);
  padding: 8px;
  background: rgba(0, 0, 0, 0.084);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  border: 1px solid rgba(29, 111, 184, 0.12);
  border-radius: 22px;
  display: flex; align-items: stretch; justify-content: space-between;
  z-index: 100;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.ds-nav-item {
  display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 8px 10px;
  cursor: pointer; position: relative;
  transition: color 0.2s, background-color 0.2s;
  color: var(--ds-text-muted);
  -webkit-tap-highlight-color: transparent;
  border-radius: 16px;
}
.ds-nav-item.active {
  color: var(--ds-cyan);
  background: rgba(29, 111, 184, 0.08);
}
.ds-nav-item.active::before {
  content: '';
  position: absolute; bottom: 4px; left: 18%; right: 18%;
  height: 2px; border-radius: 1px;
  background: var(--ds-cyan);
  box-shadow: 0 0 10px rgba(29, 111, 184, 0.32);
}

.ds-nav-icon { width: 22px; height: 22px; }
.ds-nav-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }
.ds-nav-label { font-size: 9px; letter-spacing: 1px; font-weight: 600; }

/* ── 工资金额颜色 ─────────────────────────────── */
.ds-salary-positive { color: var(--ds-green); }
.ds-salary-negative { color: var(--ds-red); }

/* ── 登出弹窗 ─────────────────────────────────── */
.ds-logout-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 116px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  z-index: 200;
}
.ds-logout-menu.show { display: block; }
.ds-logout-btn {
  display: block; width: 100%; padding: 10px 12px;
  background: none; border: none; color: var(--ds-red);
  font-size: 13px; cursor: pointer; border-radius: 6px;
  text-align: left; font-family: var(--ds-font);
  white-space: nowrap;
}
.ds-logout-btn:hover { background: var(--ds-red-dim); }
.ds-menu-btn {
  display: block; width: 100%; padding: 10px 12px;
  background: none; border: none; color: #111827;
  font-size: 13px; cursor: pointer; border-radius: 6px;
  text-align: left; font-family: var(--ds-font);
  white-space: nowrap;
}
.ds-menu-btn:hover { background: rgba(0,0,0,0.08); }

/* 修改密码弹窗 */
.ds-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ds-modal-overlay[hidden] { display: none; }
.ds-modal {
  background: var(--ds-bg-card, #1a2332); border: 1px solid var(--ds-border-accent, #2d3f55);
  border-radius: 12px; padding: 24px; width: 100%; max-width: 340px;
}
.ds-modal-title {
  font-size: 16px; font-weight: 600; color: var(--ds-text-primary, #e2e8f0);
  margin-bottom: 16px;
}
.ds-modal-field { margin-bottom: 12px; }
.ds-modal-field label {
  display: block; font-size: 12px; color: var(--ds-text-muted, #8899aa);
  margin-bottom: 4px;
}
.ds-modal-field input {
  width: 100%; padding: 8px 10px; border-radius: 6px;
  border: 1px solid var(--ds-border, #2a3a4a);
  background: var(--ds-bg-deeper, #0f1923); color: var(--ds-text-primary, #e2e8f0);
  font-size: 14px; font-family: var(--ds-font);
  box-sizing: border-box;
}
.ds-modal-field input:focus {
  outline: none; border-color: var(--ds-accent, #60a5fa);
}
.ds-modal-msg {
  font-size: 12px; color: var(--ds-red, #f87171); min-height: 18px;
  margin-bottom: 8px;
}
.ds-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.ds-modal-cancel, .ds-modal-confirm {
  padding: 8px 16px; border-radius: 6px; border: none;
  font-size: 13px; cursor: pointer; font-family: var(--ds-font);
}
.ds-modal-cancel {
  background: rgba(0,0,0,0.08); color: var(--ds-text-muted, #8899aa);
}
.ds-modal-confirm {
  background: var(--ds-accent, #60a5fa); color: #fff;
}
.ds-modal-confirm:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── 响应式 ──────────────────────────────────── */
@media (min-width: 768px) {
  .ds-furnace-grid { gap: 12px; }
  .ds-number { font-size: 34px; }
}

@media (max-width: 1100px) {
  :root {
    --ds-stage-width: min(760px, calc(100vw - 32px));
    --ds-top-banner-height: 96px;
  }

  .ds-brand-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ds-top-banner {
    min-height: 92px;
    padding: 3px 16px 12px;
  }

  .ds-hero-content {
    width: min(62vw, 520px);
    min-width: 0;
  }

  .ds-hero-company-logo {
    right: 12px;
    top: -12px;
    height: 112%;
    opacity: 0.78;
  }

  .ds-header {
    max-width: 760px;
    padding: 7px 16px;
    align-items: flex-start;
  }

  .ds-page {
    padding: 20px 16px 104px;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }

  .ds-stage,
  .ds-stage-furnace,
  .ds-stage-salary,
  .ds-stage-history,
  .ds-stage-salary-terminal {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    height: auto;
  }

  .ds-stage-column-left,
  .ds-stage-column-right {
    padding-top: 0;
    align-items: stretch;
  }

  .ds-stage-history-column {
    padding-top: 0;
  }

  .ds-stage-center {
    display: none;
  }

  .ds-stage-column > .ds-card {
    width: 100%;
  }

  .ds-header-shift {
    gap: 8px;
    width: calc(100vw - 108px);
  }

  .ds-header-salary {
    width: calc(100vw - 108px);
  }

  .ds-header-furnace-list {
    width: 100%;
    gap: 4px;
  }

  .ds-header-salary-menu {
    width: 100%;
  }

  .ds-salary-section-grid {
    grid-template-columns: 1fr;
  }

  .ds-salary-history-shift-grid {
    grid-template-columns: 1fr;
  }

  .ds-history-overview-team-grid,
  .ds-history-mini-grid,
  .ds-history-shift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-history-furnace-summary,
  .ds-history-team-summary {
    grid-template-columns: 1fr;
  }

  .ds-history-furnace-summary-side,
  .ds-history-team-latest {
    margin-top: 2px;
  }

  .ds-history-team-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-salary-info-card-hero {
    grid-column: auto;
  }

  .ds-salary-profile-visual {
    height: 230px;
  }

  .ds-salary-reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ds-salary-side {
    overflow: visible;
  }

  .ds-furnace-detail-page {
    padding: 14px;
    overflow: auto;
  }

  .ds-furnace-footer {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(760px, calc(100vw - 32px));
    margin: 18px auto 0;
  }

  .ds-furnace-footer-copy {
    font-size: clamp(20px, 5vw, 30px);
    letter-spacing: 2px;
  }

  .ds-furnace-detail-shell {
    width: calc(100vw - 28px);
    height: auto;
    min-height: calc(var(--ds-viewport-height) - 28px);
  }

  .ds-furnace-detail-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 80px 16px 18px;
    gap: 16px;
  }

  .ds-furnace-detail-sidebar {
    min-height: auto;
  }

  .ds-furnace-detail-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ds-furnace-detail-main {
    grid-template-rows: auto auto;
  }

  .ds-furnace-detail-stage-art {
    right: 0;
    left: auto;
    width: min(90vw, 420px);
    height: 280px;
  }

  .ds-furnace-detail-stats {
    grid-template-columns: 1fr;
    width: 220px;
  }

  .ds-furnace-detail-member-list {
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .ds-furnace-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ds-nav {
    width: min(460px, calc(100vw - 24px));
    bottom: calc(12px + var(--ds-safe-bottom));
  }
}

@media (max-width: 768px) {
  :root {
    --ds-brand-height: 54px;
    --ds-top-banner-height: 88px;
    --ds-nav-height: 56px;
    --ds-page-bottom-space: calc(var(--ds-nav-height) + var(--ds-safe-bottom) + 14px);
    --ds-stage-width: calc(100vw - 24px);
  }

  .ds-brand-header {
    gap: 10px;
    padding: calc(env(safe-area-inset-top, 0px) + 7px) 12px 5px;
  }

  .ds-brand-menu {
    width: 26px;
    height: 26px;
  }

  .ds-brand-logo {
    display: block;
    width: 31px;
    height: 31px;
  }

  .ds-brand-wordmark {
    font-size: 17px;
    transform: none;
  }

  .ds-brand-title {
    display: none;
  }

  .ds-brand-right {
    display: flex;
  }

  .ds-account-dot {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .ds-top-banner {
    min-height: 88px;
    padding: 3px 12px 10px;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
  }

  .ds-top-banner::before {
    display: none;
  }

  .ds-top-banner::after {
    display: none;
  }

  .ds-hero-company-logo {
    right: -10px;
    top: 0;
    height: 82%;
    opacity: 0.28;
    filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.35));
  }

  .ds-hero-content {
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 8px;
  }

  .ds-hero-identity {
    gap: 3px;
  }

  .ds-hero-name-row {
    gap: 8px;
  }

  .ds-hero-name {
    font-size: 18px;
  }

  .ds-hero-role-tag {
    min-height: 18px;
    padding: 2px 7px;
    font-size: 10px;
  }

  .ds-hero-line {
    font-size: 10px;
  }

  .ds-header {
    padding: 6px 12px;
    gap: 8px;
  }

  .ds-header-left {
    flex: 1;
    min-width: 0;
  }

  .ds-shift-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 9px;
  }

  .ds-shift-bar::before {
    top: 14px;
    bottom: 14px;
  }

  .ds-shift-panel-kicker {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .ds-shift-current-line {
    gap: 8px;
  }

  .ds-shift-current-label {
    font-size: 12px;
  }

  .ds-shift-current-team {
    font-size: 27px;
  }

  .ds-shift-current-status,
  .ds-shift-date {
    font-size: 11px;
  }

  .ds-shift-date {
    justify-self: start;
  }

  .ds-shift-roster-line {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 38px;
    gap: 8px;
    padding-top: 10px;
  }

  .ds-shift-roster-line + .ds-shift-roster-line {
    padding-left: 12px;
  }

  .ds-shift-roster-label {
    font-size: 11px;
  }

  .ds-shift-roster-team {
    font-size: 15px;
  }

  .ds-shift-roster-current {
    font-size: 10px;
    padding: 0 6px;
  }

  .ds-page {
    padding: 12px 12px var(--ds-page-bottom-space);
    overflow: visible;
  }

  #page-furnace,
  #page-salary,
  #page-learning {
    overflow: visible;
  }

  #page-salary,
  #page-learning {
    scroll-padding-top: 14px;
    -webkit-overflow-scrolling: touch;
  }

  #page-furnace .ds-stage,
  #page-salary .ds-stage-salary-terminal,
  #page-learning .ds-stage-learning {
    min-height: auto;
    height: auto;
  }

  .ds-header-shift,
  .ds-header-salary {
    width: calc(100vw - 82px);
    gap: 8px;
  }

  .ds-shift-lockup-main,
  .ds-header-salary-title {
    font-size: clamp(28px, 8.4vw, 40px);
    letter-spacing: 1.2px;
  }

  .ds-header-salary-title {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ds-shift-lockup-main::after,
  .ds-header-salary-title::after {
    right: -12px;
    bottom: -8px;
  }

  .ds-terminal-code {
    margin-top: 0;
    font-size: 14px;
    line-height: 1;
  }

  .ds-header-furnace-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
  }

  .ds-furnace-launcher {
    min-height: 64px;
    padding: 10px 10px 10px 8px;
    border: 1px solid rgba(29, 111, 184, 0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.084) 0%, rgba(0, 0, 0, 0.12) 100%);
    gap: 8px;
  }

  .ds-furnace-launcher::before,
  .ds-furnace-launcher::after {
    display: none;
  }

  .ds-furnace-item-icon {
    width: 22px;
    height: 22px;
  }

  .ds-furnace-item-title {
    font-size: 13px;
  }

  .ds-furnace-item-subtitle {
    font-size: 10px;
  }

  .ds-furnace-launcher-arrow {
    display: none;
  }

  .ds-header-salary-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
  }

  .ds-header-salary-item {
    min-height: 52px;
    padding: 8px 6px;
    border: 1px solid rgba(29, 111, 184, 0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.068) 0%, rgba(0, 0, 0, 0.112) 100%);
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .ds-header-salary-item::before,
  .ds-header-salary-item::after {
    display: none;
  }

  .ds-header-salary-item.active {
    border-color: rgba(29, 111, 184, 0.36);
    box-shadow: inset 0 0 0 1px rgba(29, 111, 184, 0.06), 0 0 18px rgba(29, 111, 184, 0.12);
  }

  .ds-header-salary-item-icon {
    width: 18px;
    height: 18px;
  }

  .ds-header-salary-item-label {
    font-size: 11px;
    line-height: 1.15;
  }

  .ds-header-salary-item-arrow {
    display: none;
  }

  .ds-furnace-overview-card {
    padding: 16px 16px 14px;
  }

  .ds-furnace-overview-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ds-furnace-overview-meta {
    align-items: flex-start;
    gap: 8px;
    max-width: none;
  }

  .ds-furnace-overview-copy {
    text-align: left;
    font-size: 12px;
    line-height: 1.6;
  }

  .ds-stage-salary-terminal {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    align-content: stretch;
  }

  .ds-salary-console {
    height: auto;
    min-height: 0;
    overflow: visible;
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.12) 100%),
      radial-gradient(circle at 74% 18%, rgba(29, 111, 184, 0.1) 0%, transparent 24%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  }

  .ds-salary-console::before,
  .ds-salary-console::after {
    left: 14px;
    right: 14px;
  }

  .ds-salary-console-head {
    padding: 14px 14px 10px;
  }

  .ds-salary-console-kicker {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .ds-salary-console-title {
    margin-top: 6px;
    font-size: 20px;
    letter-spacing: 0.8px;
  }

  .ds-salary-console-desc {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
  }

  .ds-salary-console-body {
    padding: 0 14px 14px;
    overflow: visible;
  }

  .ds-salary-section-grid {
    gap: 8px;
  }

  .ds-salary-info-card {
    padding: 10px 10px 9px;
  }

  .ds-salary-section-card {
    margin-top: 8px;
    padding: 10px 12px;
  }

  .ds-salary-section-card-title {
    font-size: 13px;
  }

  .ds-salary-info-value-lg {
    margin-top: 6px;
    font-size: 20px;
    letter-spacing: 0.8px;
  }

  .ds-salary-info-value {
    margin-top: 6px;
    font-size: 15px;
  }

  .ds-salary-info-note,
  .ds-salary-copy-block {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.5;
  }

  .ds-row {
    padding: 6px 0;
  }

  .ds-row-label {
    font-size: 11px;
  }

  .ds-row-value {
    font-size: 12px;
  }

  .ds-salary-history-shift-grid {
    gap: 8px;
  }

  .ds-salary-history-shift-card {
    padding: 10px;
  }

  .ds-salary-history-shift-head {
    gap: 6px;
    margin-bottom: 8px;
  }

  .ds-salary-history-shift-metric {
    margin-top: 6px;
  }

  .ds-salary-history-shift-value {
    font-size: 14px;
  }

  .ds-salary-history-shift-note {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.45;
  }

  .ds-history-overview-card,
  .ds-history-furnace-summary,
  .ds-history-team-summary,
  .ds-history-team-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ds-history-overview-title,
  .ds-history-furnace-title {
    font-size: 16px;
  }

  .ds-history-overview-team-grid,
  .ds-history-team-stat-grid,
  .ds-history-mini-grid,
  .ds-history-shift-grid {
    grid-template-columns: 1fr;
  }

  .ds-history-overview-team-main {
    font-size: 24px;
  }

  .ds-history-team-stat-value,
  .ds-history-shift-value {
    font-size: 15px;
  }

  .ds-history-sparkline {
    height: 44px;
  }

  .ds-salary-side {
    display: block;
    overflow: visible;
  }

  .ds-salary-profile-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
  }

  .ds-salary-profile-top {
    grid-column: 2;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
  }

  .ds-salary-profile-kicker {
    display: none;
  }

  .ds-salary-profile-role {
    font-size: 11px;
    text-align: left;
  }

  .ds-salary-profile-visual {
    grid-column: 1;
    grid-row: 1 / span 3;
    height: 68px;
    margin-top: 0;
    border-radius: 10px;
  }

  .ds-salary-profile-photo {
    inset: 8px;
  }

  .ds-salary-profile-photo::before {
    top: 8px;
    width: 24px;
    height: 24px;
  }

  .ds-salary-profile-photo::after {
    bottom: 2px;
    width: 44px;
    height: 40px;
  }

  .ds-salary-profile-initial {
    top: 6px;
    left: 8px;
    font-size: 16px;
  }

  .ds-salary-profile-name {
    grid-column: 2;
    margin-top: 0;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ds-salary-profile-meta {
    grid-column: 2;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ds-salary-reward-card {
    margin-top: 0;
    padding: 10px;
    border-radius: 12px;
  }

  .ds-salary-reward-head {
    gap: 2px;
  }

  .ds-salary-reward-title {
    font-size: 12px;
  }

  .ds-salary-reward-subtitle {
    display: none;
  }

  .ds-salary-reward-grid {
    margin-top: 8px;
    gap: 6px;
  }

  .ds-salary-reward-item {
    min-height: 72px;
    padding: 8px 4px;
    gap: 4px;
    border-radius: 10px;
  }

  .ds-salary-reward-icon {
    width: 20px;
    height: 20px;
  }

  .ds-salary-reward-label {
    font-size: 9px;
    line-height: 1.15;
  }

  .ds-salary-reward-number {
    font-size: 13px;
  }

  .ds-salary-reward-unit {
    font-size: 9px;
  }

  .ds-sim-input-stack,
  .ds-sim-foreman-stack,
  .ds-sim-shift-summary-list {
    gap: 10px;
    margin-top: 10px;
  }

  .ds-sim-shift-summary-card,
  .ds-sim-shift-card {
    padding: 10px;
    border-radius: 10px;
  }

  .ds-sim-input-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ds-sim-field {
    font-size: 10px;
  }

  .ds-sim-field-control {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .ds-sim-field-hint {
    white-space: normal;
    text-align: right;
  }

  .ds-sim-input {
    min-height: 48px;
    font-size: 16px;
    border-radius: 12px;
  }

  .ds-sim-result-card {
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(18px) saturate(1.05);
    -webkit-backdrop-filter: blur(18px) saturate(1.05);
  }

  .ds-sim-result-shell {
    padding: 12px 0 10px;
  }

  .ds-sim-result-amount {
    font-size: clamp(24px, 8vw, 34px);
  }

  .ds-sim-result-caption,
  .ds-sim-result-placeholder {
    font-size: 10px;
  }

  .ds-furnace-footer {
    width: calc(100vw - 24px);
    margin-top: 14px;
  }

  .ds-furnace-footer-copy {
    margin-bottom: 8px;
    font-size: 16px;
    letter-spacing: 1px;
  }

  .ds-nav {
    width: calc(100vw - 20px);
    height: var(--ds-nav-height);
    padding: 6px;
    border-radius: 18px;
  }

  .ds-nav-item {
    gap: 3px;
    padding: 6px 8px;
  }

  .ds-nav-icon {
    width: 18px;
    height: 18px;
  }

  .ds-nav-label {
    font-size: 8px;
  }

  .ds-furnace-card {
    padding: 14px;
    gap: 12px;
  }

  .ds-furnace-card-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ds-furnace-card-title {
    font-size: 22px;
  }

  .ds-furnace-card-subtitle {
    margin-top: 6px;
    font-size: 12px;
  }

  .ds-furnace-card-action {
    width: 100%;
  }

  .ds-furnace-card-metrics {
    grid-template-columns: 1fr;
  }

  .ds-furnace-card-shift {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ds-furnace-card-shift-value {
    text-align: left;
  }

  .ds-furnace-card-progress-copy {
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .ds-furnace-grid { flex-direction: column; }
  .ds-number { font-size: 24px; }
  .ds-shift-team { font-size: 36px; }
  .ds-brand-header {
    gap: 8px;
  }

  .ds-brand-left {
    gap: 8px;
  }

  .ds-brand-menu {
    width: 25px;
    height: 25px;
  }

  .ds-brand-logo {
    width: 25px;
    height: 25px;
  }

  .ds-brand-wordmark {
    font-size: 16px;
    transform: none;
  }

  .ds-brand-title {
    font-size: 13px;
  }

  .ds-top-banner {
    min-height: 84px;
    padding: 2px 10px 10px;
  }

  .ds-hero-company-logo {
    right: -20px;
    top: 2px;
    height: 78%;
    opacity: 0.24;
  }

  .ds-hero-content {
    gap: 8px;
  }

  .ds-hero-name {
    font-size: 18px;
  }

  .ds-hero-role-tag {
    font-size: 11px;
  }

  .ds-hero-line {
    font-size: 10px;
  }

  .ds-shift-bar {
    padding: 12px 12px;
  }

  .ds-shift-roster-board {
    grid-template-columns: 1fr;
  }

  .ds-shift-roster-line {
    padding-right: 0;
  }

  .ds-shift-roster-line + .ds-shift-roster-line {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .ds-shift-lockup-row {
    gap: 8px;
  }
  .ds-header-shift {
    width: calc(100vw - 92px);
  }

  .ds-header-salary {
    width: calc(100vw - 92px);
  }

  .ds-header-salary-item-label {
    font-size: 10px;
  }

  .ds-salary-console-head,
  .ds-salary-console-body,
  .ds-salary-profile-card,
  .ds-salary-reward-card {
    padding-left: 10px;
    padding-right: 10px;
  }

  .ds-salary-console-head {
    padding-top: 16px;
  }

  .ds-salary-profile-name {
    font-size: 15px;
  }

  .ds-salary-reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ds-salary-side {
    grid-template-columns: 1fr;
  }

  .ds-salary-profile-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
  }

  .ds-salary-profile-visual {
    height: 58px;
  }

  .ds-furnace-footer {
    width: calc(100vw - 24px);
    bottom: calc(var(--ds-nav-height) + var(--ds-safe-bottom) + 18px);
  }

  .ds-furnace-footer-copy {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .ds-furnace-item-title {
    font-size: 15px;
  }
  .ds-furnace-item-subtitle {
    font-size: 10px;
  }
  .ds-nav {
    width: calc(100vw - 20px);
  }
}

@media (max-width: 768px) {
  body.ds-keyboard-open .ds-nav {
    transform: translate(-50%, calc(100% + 22px));
    opacity: 0;
    pointer-events: none;
  }

  body.ds-keyboard-open #page-salary {
    padding-bottom: 12px;
  }
}

/* ════════════════════════════════════════════
   历史页 v2：月度按吨加权 + 三班对比 + 折叠卡
   ════════════════════════════════════════════ */
.ds-h-month-banner {
  margin: 4px 4px 12px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--ds-text-secondary);
  background: rgba(29, 111, 184, 0.06);
  border: 1px solid rgba(29, 111, 184, 0.16);
  border-radius: 8px;
  text-align: center;
}

.ds-h-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ds-text-muted);
}

.ds-h-furnace {
  margin: 0 4px 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ds-border);
}
.ds-h-furnace:last-child { border-bottom: none; }

.ds-h-furnace-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 4px 12px;
  gap: 8px;
}
.ds-h-furnace-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ds-cyan);
  letter-spacing: 0.5px;
}
.ds-h-furnace-meta {
  font-size: 11px;
  color: var(--ds-text-secondary);
}

/* ── 顶部三班对比卡 ──────────────────────────── */
.ds-h-cmp-card {
  background: var(--ds-bg-card);
  backdrop-filter: var(--ds-blur);
  -webkit-backdrop-filter: var(--ds-blur);
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  padding: 12px 10px;
  margin-bottom: 12px;
}
.ds-h-cmp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
  gap: 8px;
}
.ds-h-cmp-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-text-primary);
}
.ds-h-cmp-sub {
  font-size: 10px;
  color: var(--ds-text-secondary);
}
.ds-h-cmp-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--ds-border);
  border-radius: 8px;
  overflow: hidden;
}
.ds-h-cmp-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr;
  gap: 1px;
  background: var(--ds-border);
}
.ds-h-cmp-row.ds-h-cmp-headrow .ds-h-cmp-label,
.ds-h-cmp-row.ds-h-cmp-headrow .ds-h-cmp-cell {
  background: rgba(0, 0, 0, 0.04);
  font-weight: 700;
  color: var(--ds-cyan);
  font-size: 11px;
}
.ds-h-cmp-label {
  background: rgba(0, 0, 0, 0.025);
  padding: 8px 6px;
  font-size: 11px;
  color: var(--ds-text-secondary);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.ds-h-cmp-cell {
  background: rgba(0, 0, 0, 0.20);
  padding: 8px 6px;
  font-size: 12px;
  color: var(--ds-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
  position: relative;
  min-width: 0;
  word-break: break-word;
}
.ds-h-cmp-cell.ds-h-cmp-team {
  font-weight: 700;
  color: var(--ds-cyan);
}
.ds-h-cmp-cell.is-best {
  background: rgba(22, 163, 74, 0.1);
  color: var(--ds-green);
  font-weight: 700;
}
.ds-h-cmp-medal {
  font-size: 9px;
  margin-left: 2px;
  vertical-align: super;
}
.ds-h-cmp-cell .is-pos { color: var(--ds-green); }
.ds-h-cmp-cell .is-neg { color: var(--ds-red); }

/* ── 班级折叠区 ──────────────────────────── */
.ds-h-team-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ds-h-team {
  background: var(--ds-bg-card);
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  overflow: hidden;
}
.ds-h-team[open] {
  border-color: var(--ds-border-accent);
}
.ds-h-team-summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ds-h-team-summary::-webkit-details-marker { display: none; }
.ds-h-team-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-cyan);
  flex-shrink: 0;
}
.ds-h-team-meta {
  flex: 1;
  font-size: 11px;
  color: var(--ds-text-secondary);
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding-right: 4px;
}
.ds-h-team-chevron {
  font-size: 14px;
  color: var(--ds-text-secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.ds-h-team[open] .ds-h-team-chevron {
  transform: rotate(180deg);
}
.ds-h-team-body {
  padding: 0 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── 单个班次卡 ──────────────────────────── */
.ds-h-shift-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  padding: 10px 12px;
}
.ds-h-shift-card.is-pending {
  background: rgba(217, 119, 6, 0.04);
  border-color: rgba(217, 119, 6, 0.18);
  opacity: 0.85;
}
.ds-h-shift-card.is-summary {
  background: rgba(29, 111, 184, 0.06);
  border-color: rgba(29, 111, 184, 0.22);
  margin-top: 4px;
}
.ds-h-shift-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}
.ds-h-shift-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-text-primary);
  font-variant-numeric: tabular-nums;
}
.ds-h-shift-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ds-text-secondary);
}
.ds-h-shift-tag.is-pending {
  background: rgba(217, 119, 6, 0.14);
  color: var(--ds-orange);
}
.ds-h-shift-tag.is-summary {
  background: rgba(29, 111, 184, 0.14);
  color: var(--ds-blue);
}
.ds-h-shift-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.ds-h-shift-row:last-child { border-bottom: none; }
.ds-h-shift-key {
  flex-shrink: 0;
  width: 64px;
  color: var(--ds-text-secondary);
  font-size: 11px;
}
.ds-h-shift-val {
  flex: 1;
  color: var(--ds-text-primary);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.ds-h-shift-trend {
  flex-shrink: 0;
}
.ds-h-sep {
  color: var(--ds-text-muted);
  margin: 0 4px;
}
.ds-h-trend {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.ds-h-trend.is-pos { color: var(--ds-green); }
.ds-h-trend.is-neg { color: var(--ds-red); }
.ds-h-shift-row.is-pos .ds-h-shift-val { color: var(--ds-green); }
.ds-h-shift-row.is-neg .ds-h-shift-val { color: var(--ds-red); }
.ds-h-shift-pending-row {
  font-size: 12px;
  color: var(--ds-text-secondary);
  margin: 4px 0;
}
.ds-h-shift-pending-note {
  font-size: 10px;
  color: var(--ds-orange);
  margin-top: 4px;
}

/* 小屏调整：对比卡列宽 */
@media (max-width: 360px) {
  .ds-h-cmp-row { grid-template-columns: 64px 1fr 1fr 1fr; }
  .ds-h-cmp-cell { font-size: 11px; padding: 7px 4px; }
  .ds-h-cmp-label { font-size: 10px; padding: 7px 4px; }
}

/* 历史页 v4：全班组月度对比 + 全月班次矩阵 */
.ds-h-board {
  width: min(940px, 100%);
  margin: 0 auto;
}

.ds-h-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0 2px;
}

.ds-h-page-head.is-title-only {
  justify-content: center;
  text-align: center;
  margin-bottom: 12px;
}

.ds-h-page-title {
  color: #111827;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
}

.ds-h-page-head.is-title-only .ds-h-page-title {
  font-size: 20px;
  font-weight: 850;
}

.ds-h-page-sub {
  margin-top: 4px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
}

.ds-h-page-month {
  flex: 0 0 auto;
  color: #111827;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ds-h-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.ds-h-tab {
  min-width: 0;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ds-h-tab span,
.ds-h-tab small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-h-tab span {
  font-size: 12px;
  line-height: 1.15;
  font-weight: 700;
}

.ds-h-tab small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 9px;
  line-height: 1.1;
}

.ds-h-tab.is-active {
  border-color: rgba(255, 190, 0, 0.72);
  background: #fff8db;
  color: #111827;
}

.ds-h-period-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 82px)) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}

.ds-h-period-tab {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.ds-h-period-tab.is-active {
  border-color: rgba(255, 190, 0, 0.76);
  background: #f5bd19;
  color: #111827;
}

.ds-h-period-current {
  min-width: 0;
  padding: 0 2px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 650;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-h-board-card,
.ds-h-detail-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.ds-h-board-card {
  overflow: hidden;
}

.ds-h-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px 8px;
  border-bottom: 1px solid #eef0ed;
}

.ds-h-board-title {
  color: #111827;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 700;
}

.ds-h-board-sub {
  margin-top: 3px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.25;
}

.ds-h-board-count {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 10px;
  line-height: 1;
}

.ds-h-team-table-head,
.ds-h-team-row {
  display: grid;
  grid-template-columns: minmax(72px, 1.02fr) minmax(44px, 0.58fr) minmax(58px, 0.78fr) minmax(54px, 0.72fr) minmax(58px, 0.8fr) minmax(48px, 0.62fr);
  align-items: stretch;
}

.ds-h-team-table-head {
  padding: 6px 8px;
  background: #f8faf7;
  color: #8a94a3;
  font-size: 9px;
  line-height: 1;
  font-weight: 600;
  text-align: center;
}

.ds-h-team-table-head span:first-child {
  text-align: left;
}

.ds-h-team-table {
  display: grid;
}

.ds-h-team-row {
  width: 100%;
  min-height: 48px;
  padding: 0;
  border-top: 1px solid #eef0ed;
  background: #ffffff;
  color: inherit;
}

.ds-h-team-row:first-child {
  border-top: 0;
}

.ds-h-row-team,
.ds-h-row-metric {
  min-width: 0;
  padding: 8px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ds-h-row-team {
  padding-left: 10px;
}

.ds-h-row-team strong,
.ds-h-row-team small,
.ds-h-row-metric strong,
.ds-h-row-metric small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-h-row-team strong {
  color: #111827;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
}

.ds-h-row-team small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
}

.ds-h-row-metric {
  align-items: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ds-h-row-metric strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.05;
  font-weight: 650;
}

.ds-h-row-metric small {
  margin-top: 4px;
  color: #8a94a3;
  font-size: 8.5px;
  line-height: 1;
}

.ds-h-row-electrode strong {
  font-size: 10px;
  letter-spacing: 0;
}

.ds-h-row-electrode small {
  font-size: 7.5px;
}

.ds-h-row-metric.is-good strong {
  color: #17823a;
}

.ds-h-row-metric.is-bad strong {
  color: #b42318;
}

.ds-h-row-metric.is-best {
  position: relative;
  background: rgba(245, 189, 25, 0.1);
}

.ds-h-row-metric.is-best::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #f5bd19;
}

.ds-h-summary-scroll,
.ds-h-year-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ds-h-summary-table-head,
.ds-h-summary-row {
  display: grid;
  grid-template-columns: minmax(54px, 0.42fr) minmax(34px, 0.27fr) minmax(54px, 0.4fr) minmax(48px, 0.36fr) minmax(58px, 0.43fr) minmax(56px, 0.42fr) minmax(44px, 0.34fr) minmax(52px, 0.39fr) minmax(64px, 0.48fr);
  align-items: stretch;
  min-width: 464px;
}

.ds-h-summary-table-head {
  background: #f8faf7;
  color: #8a94a3;
  font-size: 9px;
  line-height: 1;
  font-weight: 650;
  text-align: center;
}

.ds-h-summary-table-head span {
  min-width: 0;
  min-height: 30px;
  padding: 6px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-h-summary-table-head span:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  padding-left: 3px;
  padding-right: 3px;
  background: #f8faf7;
  box-shadow: 1px 0 0 #eef0ed;
  text-align: center;
  justify-content: center;
}

.ds-h-summary-table {
  display: grid;
}

.ds-h-summary-row {
  min-height: 48px;
  border-top: 1px solid #eef0ed;
  background: #ffffff;
}

.ds-h-summary-row:first-child {
  border-top: 0;
}

.ds-h-summary-row.is-factory {
  background: #fff8db;
}

.ds-h-summary-row.is-furnace {
  background: #fbfcfa;
}

.ds-h-summary-row .ds-h-row-team {
  position: sticky;
  left: 0;
  z-index: 2;
  background: inherit;
  box-shadow: 1px 0 0 #eef0ed;
  align-items: center;
  text-align: center;
  padding-left: 3px;
  padding-right: 3px;
}

.ds-h-summary-row .ds-h-row-team,
.ds-h-summary-row .ds-h-row-metric {
  padding-top: 7px;
  padding-bottom: 7px;
}

.ds-h-summary-row .ds-h-row-metric {
  padding-left: 3px;
  padding-right: 3px;
}

.ds-h-summary-row .ds-h-row-team strong {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 8.2px;
  line-height: 1.05;
}

.ds-h-summary-row.level-1 .ds-h-row-team {
  padding-left: 3px;
}

.ds-h-summary-row.level-2 .ds-h-row-team {
  padding-left: 3px;
}

.ds-h-summary-row.is-factory .ds-h-row-team strong,
.ds-h-summary-row.is-furnace .ds-h-row-team strong {
  font-size: 8.6px;
  font-weight: 800;
}

.ds-h-year-card {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.ds-h-year-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.92fr) repeat(12, minmax(46px, 0.42fr));
  min-width: 668px;
  border-top: 1px solid #eef0ed;
  background: #ffffff;
}

.ds-h-year-card.is-electrode .ds-h-year-row {
  grid-template-columns: minmax(106px, 0.88fr) repeat(12, minmax(52px, 0.44fr));
  min-width: 730px;
}

.ds-h-year-row:first-child {
  border-top: 0;
}

.ds-h-year-row.is-head {
  background: #f8faf7;
}

.ds-h-year-row.is-factory {
  background: #fff8db;
}

.ds-h-year-row.is-furnace {
  background: #fbfcfa;
}

.ds-h-year-name,
.ds-h-year-month,
.ds-h-year-metric {
  min-width: 0;
  min-height: 40px;
  padding: 6px 3px;
  border-left: 1px solid #eef0ed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ds-h-year-name {
  position: sticky;
  left: 0;
  z-index: 4;
  border-left: 0;
  background: inherit;
  box-shadow: 1px 0 0 #eef0ed, 6px 0 10px rgba(255, 255, 255, 0.92);
  text-align: left;
}

.ds-h-year-row.is-head .ds-h-year-name {
  z-index: 5;
}

.ds-h-year-row.level-1 .ds-h-year-name {
  padding-left: 12px;
}

.ds-h-year-row.level-2 .ds-h-year-name {
  padding-left: 20px;
}

.ds-h-year-name strong,
.ds-h-year-name small,
.ds-h-year-cell strong,
.ds-h-year-cell small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-h-year-name strong {
  color: #111827;
  font-size: 10.5px;
  line-height: 1.15;
  font-weight: 750;
}

.ds-h-year-name small {
  margin-top: 3px;
  color: #6b7280;
  font-size: 9px;
  line-height: 1;
}

.ds-h-year-month {
  color: #8a94a3;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
}

.ds-h-year-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.ds-h-year-cell strong {
  color: #111827;
  font-size: 10.5px;
  line-height: 1.05;
  font-weight: 700;
}

.ds-h-year-cell small {
  margin-top: 3px;
  color: #8a94a3;
  font-size: 8px;
  line-height: 1;
}

.ds-h-year-cell.is-good strong {
  color: #17823a;
}

.ds-h-year-cell.is-bad strong {
  color: #b42318;
}

.ds-h-daily-card {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.ds-h-daily-chart {
  padding: 6px 5px 4px;
  border-bottom: 1px solid #eef0ed;
  background: #fbfcfa;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ds-h-daily-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 0;
}

.ds-h-daily-chart-head strong,
.ds-h-daily-chart-head small {
  display: block;
}

.ds-h-daily-chart-head strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 750;
}

.ds-h-daily-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.ds-h-daily-legend span {
  position: relative;
  padding-left: 10px;
  color: #6b7280;
  font-size: 8px;
  line-height: 1;
  font-weight: 750;
}

.ds-h-daily-legend span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 2px;
  border-radius: 99px;
  background: #166534;
  transform: translateY(-50%);
}

.ds-h-daily-legend .is-furnace-4::before {
  background: #b45309;
}

.ds-h-daily-legend .is-team-3-a::before { background: #2563eb; }
.ds-h-daily-legend .is-team-3-b::before { background: #16a34a; }
.ds-h-daily-legend .is-team-3-c::before { background: #7c3aed; }
.ds-h-daily-legend .is-team-4-a::before { background: #dc2626; }
.ds-h-daily-legend .is-team-4-b::before { background: #f59e0b; }
.ds-h-daily-legend .is-team-4-c::before { background: #0891b2; }

.ds-h-daily-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 5px 0 3px;
}

.ds-h-daily-filter > span,
.ds-h-daily-filter em {
  color: #8a94a3;
  font-size: 9px;
  line-height: 1;
  font-style: normal;
  font-weight: 750;
}

.ds-h-daily-filter button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #9ca3af;
  font: inherit;
  font-size: 10px;
  line-height: 1;
  font-weight: 760;
  cursor: pointer;
}

.ds-h-daily-filter button.is-active {
  border-color: rgba(17, 24, 39, 0.12);
  background: #f8faf7;
  color: #111827;
}

.ds-h-daily-filter button.is-team-3-a.is-active { color: #2563eb; }
.ds-h-daily-filter button.is-team-3-b.is-active { color: #16a34a; }
.ds-h-daily-filter button.is-team-3-c.is-active { color: #7c3aed; }
.ds-h-daily-filter button.is-team-4-a.is-active { color: #dc2626; }
.ds-h-daily-filter button.is-team-4-b.is-active { color: #b45309; }
.ds-h-daily-filter button.is-team-4-c.is-active { color: #0891b2; }

.ds-h-daily-chart-head span {
  color: #6b7280;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 650;
}

.ds-h-daily-plot-wrap {
  position: relative;
  min-width: 410px;
  touch-action: pan-y;
}

.ds-h-daily-chart svg {
  display: block;
  width: 100%;
  min-width: 410px;
  height: auto;
  overflow: visible;
}

.ds-h-daily-grid {
  stroke: #e5e7eb;
  stroke-width: 1;
}

.ds-h-daily-tick {
  stroke: #eef0ed;
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.ds-h-daily-line {
  fill: none;
  stroke: #166534;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-h-daily-line.is-furnace-4 {
  stroke: #b45309;
}

.ds-h-daily-line.is-team-3-a { stroke: #2563eb; }
.ds-h-daily-line.is-team-3-b { stroke: #16a34a; }
.ds-h-daily-line.is-team-3-c { stroke: #7c3aed; }
.ds-h-daily-line.is-team-4-a { stroke: #dc2626; }
.ds-h-daily-line.is-team-4-b { stroke: #f59e0b; }
.ds-h-daily-line.is-team-4-c { stroke: #0891b2; }

.ds-h-daily-dot {
  fill: #f5bd19;
  stroke: #166534;
  stroke-width: 1.3;
}

.ds-h-daily-dot.is-furnace-4 {
  fill: #fff7ed;
  stroke: #b45309;
}

.ds-h-daily-dot.is-furnace-3 {
  fill: #ecfdf3;
}

.ds-h-daily-dot.is-team-3-a { fill: #eff6ff; stroke: #2563eb; }
.ds-h-daily-dot.is-team-3-b { fill: #ecfdf3; stroke: #16a34a; }
.ds-h-daily-dot.is-team-3-c { fill: #f5f3ff; stroke: #7c3aed; }
.ds-h-daily-dot.is-team-4-a { fill: #fef2f2; stroke: #dc2626; }
.ds-h-daily-dot.is-team-4-b { fill: #fffbeb; stroke: #f59e0b; }
.ds-h-daily-dot.is-team-4-c { fill: #ecfeff; stroke: #0891b2; }

.ds-h-daily-probe {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.ds-h-daily-probe[hidden] {
  display: none;
}

.ds-h-daily-probe-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--probe-x, 0px);
  width: 1px;
  background: rgba(17, 24, 39, 0.34);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.ds-h-daily-probe-bubble {
  position: absolute;
  top: 4px;
  left: var(--probe-x, 0px);
  max-width: min(230px, 74%);
  padding: 5px 6px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  transform: translateX(var(--probe-shift, -50%));
}

.ds-h-daily-probe-bubble strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
}

.ds-h-daily-probe-bubble span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0 5px 3px 0;
  color: #374151;
  font-size: 8px;
  line-height: 1;
  font-weight: 780;
  white-space: nowrap;
}

.ds-h-daily-probe-bubble b {
  font-weight: 700;
  color: #6b7280;
}

.ds-h-daily-probe-bubble .is-furnace-3,
.ds-h-daily-probe-bubble .is-total,
.ds-h-daily-probe-bubble .is-team-3-a { color: #2563eb; }
.ds-h-daily-probe-bubble .is-team-3-b { color: #16a34a; }
.ds-h-daily-probe-bubble .is-team-3-c { color: #7c3aed; }
.ds-h-daily-probe-bubble .is-furnace-4,
.ds-h-daily-probe-bubble .is-team-4-a { color: #dc2626; }
.ds-h-daily-probe-bubble .is-team-4-b { color: #b45309; }
.ds-h-daily-probe-bubble .is-team-4-c { color: #0891b2; }

.ds-h-daily-axis,
.ds-h-daily-x,
.ds-h-daily-y-title,
.ds-h-daily-x-title {
  fill: #8a94a3;
  font-size: 7px;
  line-height: 1;
  font-weight: 700;
}

.ds-h-daily-axis {
  text-anchor: end;
}

.ds-h-daily-x.is-end {
  text-anchor: end;
}

.ds-h-daily-y-title,
.ds-h-daily-x-title {
  fill: #6b7280;
  font-size: 6.5px;
}

.ds-h-daily-x-title {
  text-anchor: end;
}

.ds-h-daily-chart-empty {
  padding: 14px 10px;
  border-bottom: 1px solid #eef0ed;
  background: #fbfcfa;
  color: #8a94a3;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.ds-h-daily-list {
  display: grid;
}

.ds-h-daily-day {
  padding: 6px 7px;
  border-top: 1px solid #eef0ed;
  background: #ffffff;
}

.ds-h-daily-day:first-child {
  border-top: 0;
}

.ds-h-daily-day-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.ds-h-daily-day-head strong {
  color: #111827;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 760;
  white-space: nowrap;
}

.ds-h-daily-stats {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.ds-h-daily-stats span {
  min-width: 0;
  padding: 3px 4px;
  border: 1px solid #eef0ed;
  border-radius: 6px;
  background: #fbfcfa;
  color: #4b5563;
  font-size: 7.5px;
  line-height: 1;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ds-h-daily-stats .is-good {
  color: #17823a;
}

.ds-h-daily-stats .is-bad {
  color: #b42318;
}

.ds-h-daily-shifts {
  display: flex;
  align-items: stretch;
  gap: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ds-h-daily-shifts::-webkit-scrollbar {
  display: none;
}

.ds-h-daily-shift {
  flex: 0 0 52px;
  min-width: 52px;
  min-height: 30px;
  padding: 3px 3px;
  border: 1px solid #eef0ed;
  border-radius: 6px;
  background: #ffffff;
  font-variant-numeric: tabular-nums;
}

.ds-h-daily-shift span,
.ds-h-daily-shift strong,
.ds-h-daily-shift small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-h-daily-shift span {
  color: #6b7280;
  font-size: 6.8px;
  line-height: 1;
  font-weight: 750;
}

.ds-h-daily-shift strong {
  margin-top: 2px;
  color: #111827;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
}

.ds-h-daily-shift small {
  margin-top: 2px;
  color: #8a94a3;
  font-size: 6.3px;
  line-height: 1;
}

.ds-h-daily-shift.is-pending strong {
  color: #b45309;
}

.ds-h-year-card.is-electrode .ds-h-year-metric {
  padding-left: 1px;
  padding-right: 1px;
}

.ds-h-year-card.is-electrode .ds-h-year-electrode {
  font-size: 7.2px;
  line-height: 1;
  font-weight: 700;
}

.ds-h-year-card.is-electrode .ds-h-year-cell small {
  font-size: 6.5px;
}

.ds-h-matrix-card {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.ds-h-matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-bottom: 1px solid #eef0ed;
}

.ds-h-matrix-title {
  color: #111827;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 700;
}

.ds-h-matrix-sub {
  margin-top: 3px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.25;
}

.ds-h-metric-tabs {
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: repeat(5, auto);
  gap: 3px;
  padding: 2px;
  border: 1px solid #eef0ed;
  border-radius: 7px;
  background: #f8faf7;
}

.ds-h-metric-tab {
  min-height: 26px;
  padding: 0 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-size: 10px;
  line-height: 1;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.ds-h-metric-tab.is-active {
  background: #f5bd19;
  color: #111827;
}

.ds-h-matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ds-h-matrix-row {
  display: grid;
  min-width: 468px;
  border-top: 1px solid #eef0ed;
}

.ds-h-matrix-row:first-child {
  border-top: 0;
}

.ds-h-matrix-row.is-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8faf7;
}

.ds-h-matrix-index,
.ds-h-matrix-team,
.ds-h-matrix-cell {
  min-width: 0;
  min-height: 38px;
  padding: 6px 2px;
  border-left: 1px solid #eef0ed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

button.ds-h-matrix-cell {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid #eef0ed;
  background: #ffffff;
  color: inherit;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.ds-h-matrix-cell:active {
  background: #f6faf4;
}

button.ds-h-matrix-cell:focus-visible {
  outline: 2px solid rgba(22, 101, 52, 0.28);
  outline-offset: -2px;
}

.ds-h-matrix-index {
  border-left: 0;
  color: #6b7280;
  font-size: 8.5px;
  font-weight: 650;
  background: #f8faf7;
  padding-left: 0;
  padding-right: 0;
}

.ds-h-matrix-team strong,
.ds-h-matrix-team small,
.ds-h-matrix-cell strong,
.ds-h-matrix-cell small,
.ds-h-matrix-cell em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-h-matrix-team strong {
  color: #111827;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 700;
}

.ds-h-matrix-team small {
  margin-top: 2px;
  color: #6b7280;
  font-size: 7px;
  line-height: 1;
  font-style: normal;
}

.ds-h-matrix-cell strong {
  color: #111827;
  font-size: 10.5px;
  line-height: 1.05;
  font-weight: 650;
}

.ds-h-matrix-combo {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.ds-h-matrix-combo span,
.ds-h-matrix-combo b {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.ds-h-matrix-combo b {
  color: #9ca3af;
  font: inherit;
  font-weight: 550;
}

.ds-h-matrix-cell small {
  margin-top: 2px;
  color: #8a94a3;
  font-size: 7px;
  line-height: 1;
}

.ds-h-matrix-cell em {
  margin-top: 3px;
  color: #b45309;
  font-size: 8px;
  line-height: 1;
  font-style: normal;
}

.ds-h-matrix-cell .ds-h-matrix-extra {
  margin-top: 2px;
  color: #8a94a3;
  font-size: 7px;
}

.ds-h-electrode-triplet,
.ds-h-year-electrode {
  font-size: 8.2px;
  letter-spacing: 0;
}

.ds-h-matrix-card.is-electrode .ds-h-matrix-cell {
  padding-left: 0;
  padding-right: 0;
}

.ds-h-matrix-card.is-electrode .ds-h-electrode-triplet {
  font-size: 7.2px;
  line-height: 1;
  font-weight: 700;
}

.ds-h-matrix-card.is-electrode .ds-h-matrix-cell .ds-h-matrix-extra {
  font-size: 6.1px;
}

.ds-h-matrix-card.is-electrode .ds-h-matrix-cell small {
  font-size: 6px;
}

.ds-h-matrix-cell.is-good strong {
  color: #17823a;
}

.ds-h-matrix-cell.is-bad strong {
  color: #b42318;
}

.ds-h-matrix-cell.is-pending {
  background: #ffffff;
}

.ds-h-matrix-cell.is-pending strong {
  color: #b45309;
}

.ds-h-matrix-cell.is-empty {
  color: #cbd5e1;
  align-items: center;
}

.ds-h-detail-card {
  margin-top: 10px;
  padding: 10px 11px 12px;
}

.ds-h-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ds-h-detail-title {
  color: #111827;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
}

.ds-h-detail-sub {
  margin-top: 4px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.2;
}

.ds-h-detail-badge {
  flex: 0 1 auto;
  max-width: 46%;
  padding: 4px 6px;
  border-radius: 6px;
  background: #f5f6f4;
  color: #6b7280;
  font-size: 9px;
  line-height: 1.25;
  text-align: right;
}

.ds-h-detail-badge.is-good {
  background: rgba(22, 163, 74, 0.08);
  color: #17823a;
}

.ds-h-detail-badge.is-bad {
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

.ds-h-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.ds-h-detail-grid div {
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid #eef0ed;
  border-radius: 7px;
  background: #fbfcfa;
  text-align: center;
}

.ds-h-detail-grid span,
.ds-h-detail-grid small {
  display: block;
  color: #8a94a3;
  font-size: 9px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-h-detail-grid strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.ds-h-detail-grid small {
  margin-top: 3px;
}

.ds-h-pop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgba(17, 24, 39, 0.18);
}

.ds-h-pop[hidden] {
  display: none;
}

.ds-h-pop-panel {
  width: min(62vw, 218px);
  max-height: min(64vh, 340px);
  overflow: auto;
  padding: 6px;
  border: 1px solid #dfe5dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.ds-h-pop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.ds-h-pop-head strong,
.ds-h-pop-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-h-pop-head strong {
  color: #111827;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 760;
}

.ds-h-pop-head small {
  margin-top: 1px;
  color: #6b7280;
  font-size: 8.5px;
  line-height: 1;
}

.ds-h-pop-head button {
  flex: 0 0 auto;
  min-height: 21px;
  padding: 0 6px;
  border: 1px solid #dfe5dd;
  border-radius: 6px;
  background: #f8faf7;
  color: #111827;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.ds-h-pop-badge {
  display: inline-flex;
  margin-top: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
}

.ds-h-pop-badge.is-complete {
  background: rgba(22, 163, 74, 0.09);
  color: #17823a;
}

.ds-h-pop-badge.is-pending {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
}

.ds-h-pop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.ds-h-pop-grid div {
  min-width: 0;
  padding: 6px 3px;
  border: 1px solid #eef0ed;
  border-radius: 7px;
  background: #fbfcfa;
  text-align: center;
}

.ds-h-pop-grid span,
.ds-h-pop-grid small {
  display: block;
  overflow: hidden;
  color: #7b8490;
  font-size: 8px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-h-pop-grid strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 12px;
  line-height: 1;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.ds-h-pop-grid small {
  margin-top: 2px;
}

.ds-h-pop-batches {
  min-width: 0;
  margin-top: 6px;
}

.ds-h-pop-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 3px;
}

.ds-h-pop-batch-head,
.ds-h-pop-batch-row {
  display: grid;
  grid-template-columns: minmax(40px, 0.74fr) minmax(42px, 0.76fr);
  align-items: center;
  gap: 1px;
}

.ds-h-pop-batch-head {
  padding: 0 3px 2px;
  color: #7b8490;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
}

.ds-h-pop-batch-head span:last-child,
.ds-h-pop-batch-row strong {
  text-align: right;
}

.ds-h-pop-batch-list {
  display: grid;
  gap: 2px;
}

.ds-h-pop-batch-row {
  min-height: 19px;
  padding: 3px;
  border: 1px solid #eef0ed;
  border-radius: 6px;
  background: #fbfcfa;
}

.ds-h-pop-batch-row span,
.ds-h-pop-batch-row strong {
  min-width: 0;
  overflow: hidden;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ds-h-pop-batch-row span {
  color: #111827;
  font-size: 8.5px;
  font-weight: 760;
}

.ds-h-pop-batch-row strong {
  color: #111827;
  font-size: 8.8px;
  font-weight: 760;
}

.ds-h-pop-stats {
  display: grid;
  gap: 2px;
  margin-top: 16px;
}

.ds-h-pop-stat {
  min-height: 40px;
  padding: 4px 2px;
  border: 1px solid #e7ece5;
  border-radius: 6px;
  background: #f8faf7;
  text-align: center;
}

.ds-h-pop-stat span,
.ds-h-pop-stat small {
  display: block;
  overflow: hidden;
  color: #7b8490;
  font-size: 7px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-h-pop-stat strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #111827;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ds-h-pop-stat small {
  margin-top: 3px;
  font-size: 6.5px;
}

.ds-h-pop-empty {
  padding: 8px;
  border: 1px solid #eef0ed;
  border-radius: 7px;
  background: #fbfcfa;
  color: #8a94a3;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.ds-h-pop-rows {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.ds-h-pop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  padding: 5px 7px;
  border: 1px solid #eef0ed;
  border-radius: 7px;
  background: #ffffff;
}

.ds-h-pop-row span {
  flex: 0 0 auto;
  color: #7b8490;
  font-size: 9px;
  line-height: 1;
}

.ds-h-pop-row strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-h-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  height: 74px;
  margin-top: 10px;
  padding: 8px 8px 6px;
  border: 1px solid #eef0ed;
  border-radius: 7px;
  background: #fbfcfa;
}

.ds-h-bar-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 4px;
}

.ds-h-bar {
  width: min(100%, 16px);
  min-height: 8px;
  border-radius: 4px 4px 2px 2px;
  background: #f5bd19;
}

.ds-h-bar-item small {
  color: #8a94a3;
  font-size: 8px;
  line-height: 1;
}

.ds-h-bars-empty {
  margin-top: 10px;
  padding: 14px 8px;
  border: 1px solid #eef0ed;
  border-radius: 7px;
  background: #fbfcfa;
  color: #8a94a3;
  font-size: 11px;
  text-align: center;
}

.ds-h-recent-list {
  display: grid;
  gap: 0;
  margin-top: 10px;
  border: 1px solid #eef0ed;
  border-radius: 7px;
  overflow: hidden;
}

.ds-h-recent-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(104px, 0.9fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 8px;
  border-top: 1px solid #eef0ed;
  background: #ffffff;
}

.ds-h-recent-row:first-child {
  border-top: 0;
}

.ds-h-recent-row.is-pending {
  background: #fffaf0;
}

.ds-h-recent-date {
  color: #111827;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.ds-h-recent-date small {
  display: block;
  margin-top: 3px;
  color: #8a94a3;
  font-size: 8px;
  font-weight: 500;
}

.ds-h-recent-main,
.ds-h-recent-sub {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.ds-h-recent-main {
  color: #111827;
  font-weight: 600;
}

.ds-h-recent-sub {
  color: #6b7280;
  text-align: right;
}

.ds-h-empty.is-compact {
  padding: 14px 8px;
  font-size: 11px;
}

@media (max-width: 420px) {
  .ds-h-page-head {
    align-items: flex-start;
  }

  .ds-h-page-title {
    font-size: 16px;
  }

  .ds-h-page-sub {
    font-size: 10px;
  }

  .ds-h-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .ds-h-tab {
    min-height: 38px;
    padding: 6px;
  }

  .ds-h-tab span {
    font-size: 10.5px;
  }

  .ds-h-tab small {
    font-size: 7.5px;
  }

  .ds-h-period-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ds-h-period-current {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 10px;
  }

  .ds-h-team-table-head,
  .ds-h-team-row {
    grid-template-columns: minmax(62px, 0.96fr) minmax(38px, 0.52fr) minmax(52px, 0.74fr) minmax(48px, 0.68fr) minmax(52px, 0.74fr) minmax(42px, 0.58fr);
  }

  .ds-h-summary-table-head,
  .ds-h-summary-row {
    grid-template-columns: minmax(50px, 0.42fr) minmax(32px, 0.27fr) minmax(50px, 0.4fr) minmax(44px, 0.36fr) minmax(56px, 0.43fr) minmax(54px, 0.42fr) minmax(42px, 0.34fr) minmax(50px, 0.39fr) minmax(58px, 0.48fr);
    min-width: 436px;
  }

  .ds-h-summary-row.level-1 .ds-h-row-team {
    padding-left: 3px;
  }

  .ds-h-summary-row.level-2 .ds-h-row-team {
    padding-left: 3px;
  }

  .ds-h-year-row {
    grid-template-columns: minmax(98px, 0.86fr) repeat(12, minmax(42px, 0.38fr));
    min-width: 602px;
  }

  .ds-h-year-card.is-electrode .ds-h-year-row {
    grid-template-columns: minmax(86px, 0.76fr) repeat(12, minmax(50px, 0.43fr));
    min-width: 686px;
  }

  .ds-h-row-team {
    padding-left: 8px;
  }

  .ds-h-row-team strong {
    font-size: 10px;
  }

  .ds-h-row-team small,
  .ds-h-row-metric strong {
    font-size: 10.5px;
  }

  .ds-h-row-metric small {
    font-size: 7.5px;
  }

  .ds-h-row-electrode strong {
    font-size: 8.5px;
  }

  .ds-h-matrix-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .ds-h-metric-tabs {
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ds-h-metric-tab {
    padding: 0 2px;
    font-size: 8px;
  }

  .ds-h-matrix-row {
    min-width: 620px;
  }

  .ds-h-daily-chart {
    padding-left: 8px;
    padding-right: 8px;
  }

  .ds-h-daily-stats {
    gap: 2px;
  }

  .ds-h-daily-shifts {
    gap: 2px;
  }

  .ds-h-daily-shift {
    flex-basis: 50px;
    min-width: 50px;
  }

  .ds-h-matrix-card.is-electrode .ds-h-electrode-triplet {
    font-size: 7px;
  }

  .ds-h-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .ds-h-detail-grid div {
    padding: 6px 4px;
  }

  .ds-h-detail-grid strong {
    font-size: 12px;
  }

  .ds-h-recent-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .ds-h-recent-sub {
    grid-column: 2;
    margin-top: -2px;
    text-align: left;
    font-size: 9px;
  }
}

/* ═══════════════════════════════════════════════
   2026-04 业务仪表盘视觉刷新
   克制配色 · 强化数字层级 · 降低说明文字噪音
   ═══════════════════════════════════════════════ */
:root {
  --ds-bg-primary: #f6f7f5;
  --ds-bg-secondary: #f6f7f5;
  --ds-bg-deeper: #f6f7f5;
  --ds-bg-input: #ffffff;
  --ds-border: #e5e7eb;
  --ds-border-accent: #d1d5db;
  --ds-text-primary: #111827;
  --ds-text-secondary: #6b7280;
  --ds-text-muted: #9ca3af;
  --ds-text-label: #6b7280;
  --ds-green: #2f8a21;
  --ds-green-dim: rgba(47, 138, 33, 0.11);
  --ds-orange: #ea6a1a;
  --ds-orange-dim: rgba(234, 106, 26, 0.11);
  --ds-red: #c2410c;
  --ds-red-dim: rgba(194, 65, 12, 0.1);
  --ds-cyan: #2f8a21;
  --ds-blue: #2f8a21;
  --ds-accent: #2f8a21;
  --ds-bg-card: #ffffff;
  --ds-bg-card-hover: #ffffff;
  --ds-font-display: var(--ds-font);
}

html,
body,
.ds-bg {
  background: #f6f7f5;
}

.ds-page,
#page-furnace,
#page-salary,
#page-history,
#page-learning {
  background: #f6f7f5;
}

.ds-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  color: #6b7280;
}

.ds-tag {
  border-radius: 6px;
  letter-spacing: 0;
  font-weight: 700;
}

.ds-tag-cyan {
  background: rgba(47, 138, 33, 0.08);
  border-color: rgba(47, 138, 33, 0.16);
  color: #2f6f23;
}

.ds-tag-green {
  background: rgba(47, 138, 33, 0.1);
  border-color: rgba(47, 138, 33, 0.18);
  color: #2f8a21;
}

.ds-tag-orange {
  background: rgba(234, 106, 26, 0.1);
  border-color: rgba(234, 106, 26, 0.18);
  color: #c95a15;
}

.ds-tag-red {
  background: rgba(194, 65, 12, 0.1);
  border-color: rgba(194, 65, 12, 0.18);
  color: #c2410c;
}

/* 工资页：由“终端”转为业务仪表盘 */
.ds-stage-salary-terminal {
  grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}

.ds-salary-console {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
  overflow: hidden;
}

.ds-salary-console::before,
.ds-salary-console::after {
  display: none;
}

.ds-salary-console-head {
  padding: 20px 20px 14px;
  border-bottom: 1px solid #eef0ed;
}

.ds-salary-console-kicker {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #2f8a21;
  font-weight: 700;
}

.ds-salary-console-title {
  margin-top: 8px;
  font-family: var(--ds-font);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
  color: #111827;
  text-shadow: none;
  font-weight: 850;
}

.ds-salary-console-desc {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
}

.ds-salary-console-body {
  padding: 16px 20px 20px;
}

.ds-salary-section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ds-salary-info-card,
.ds-salary-section-card,
.ds-salary-reward-card,
.ds-salary-history-shift-card,
.ds-sim-shift-summary-card,
.ds-sim-shift-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.ds-salary-info-card {
  padding: 16px;
}

.ds-salary-info-card-hero {
  grid-column: 1 / -1;
  min-height: 138px;
  padding: 20px;
  color: #ffffff;
  background: #1f2023;
  border-color: #1f2023;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.ds-salary-info-card-hero .ds-label,
.ds-salary-info-card-hero .ds-salary-info-note {
  color: rgba(255, 255, 255, 0.72);
}

.ds-salary-info-card-hero .ds-number,
.ds-salary-info-card-hero .ds-salary-info-value-lg {
  margin-top: 10px;
  color: #7fc241;
  font-family: var(--ds-font);
  font-size: 44px;
  font-weight: 850;
  letter-spacing: 0;
}

.ds-salary-info-value {
  color: #111827;
  font-weight: 800;
}

.ds-salary-info-note {
  color: #6b7280;
}

.ds-salary-section-card {
  margin-top: 12px;
  padding: 16px;
}

.ds-salary-section-card-title {
  color: #111827;
  font-size: 15px;
  font-weight: 850;
}

.ds-salary-copy-block {
  color: #6b7280;
}

.ds-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0ed;
}

.ds-row:last-child {
  border-bottom: none;
}

.ds-row-label {
  color: #6b7280;
}

.ds-row-value {
  color: #111827;
  font-weight: 800;
  text-align: right;
}

.ds-salary-positive,
.positive,
.ds-row-value.positive {
  color: #2f8a21;
}

.ds-salary-negative,
.negative,
.ds-row-value.negative {
  color: #c2410c;
}

.ds-divider {
  border-color: #eef0ed;
}

.ds-sim-result-card,
.ds-fm-total {
  margin-top: 0;
  padding: 18px 18px 16px;
  border: 1px solid #dfead7;
  border-radius: 8px;
  background: #f8fbf5;
  box-shadow: none;
}

.ds-sim-result-shell {
  padding: 12px 0 6px;
}

.ds-sim-result-amount,
.ds-fm-total-amount {
  color: #2f8a21;
  font-family: var(--ds-font);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 850;
}

.ds-sim-result-caption,
.ds-sim-result-placeholder,
.ds-fm-total-label,
.ds-fm-total-sub {
  color: #6b7280;
}

.ds-sim-current-card {
  background: #1f2023;
  border-color: #1f2023;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.ds-sim-current-card .ds-salary-section-card-title {
  color: rgba(255, 255, 255, 0.94);
}

.ds-sim-current-card .ds-row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ds-sim-current-card .ds-row-label {
  color: rgba(255, 255, 255, 0.7);
}

.ds-sim-current-card .ds-row-value {
  color: #7fc241;
  font-size: 18px;
}

.ds-sim-input-card {
  border-color: #f0dec1;
  background: #fffaf0;
}

.ds-sim-input-card-title {
  color: #c95a15;
}

.ds-sim-mobile-copy,
.ds-sim-field-inline,
.ds-sim-field,
.ds-fm-field {
  color: #6b7280;
}

.ds-sim-input {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
}

.ds-sim-input:focus {
  border-color: #2f8a21;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(47, 138, 33, 0.12);
}

.ds-salary-reward-card {
  padding: 16px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
}

.ds-salary-reward-title {
  color: #111827;
  font-weight: 850;
}

.ds-salary-reward-subtitle {
  color: #6b7280;
}

.ds-salary-reward-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.ds-salary-reward-item {
  min-height: 72px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  text-align: left;
  column-gap: 10px;
}

.ds-salary-reward-icon {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  color: #2f8a21;
  background: rgba(47, 138, 33, 0.1);
}

.ds-salary-reward-label {
  color: #6b7280;
  font-size: 12px;
  letter-spacing: 0;
}

.ds-salary-reward-value {
  color: #111827;
  justify-content: flex-start;
}

.ds-salary-reward-number {
  font-size: 20px;
  font-weight: 850;
}

.ds-salary-reward-unit {
  color: #6b7280;
}

.ds-header-salary-item {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #374151;
}

.ds-header-salary-item.active {
  border-color: rgba(47, 138, 33, 0.22);
  background: rgba(47, 138, 33, 0.08);
  color: #2f6f23;
}

.ds-header-salary-item.active .ds-header-salary-item-icon {
  color: #2f8a21;
}

/* 页面导航：移动端保留底部，桌面端避开内容区 */
.ds-nav {
  background: rgba(255, 255, 255, 0.94);
  border-color: #dbe2e8;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
}

.ds-nav-item {
  color: #6b7280;
  letter-spacing: 0;
}

.ds-nav-item.active {
  color: #2f8a21;
  background: rgba(47, 138, 33, 0.1);
}

.ds-nav-item.active::before {
  background: #2f8a21;
  box-shadow: none;
}

.ds-nav-label {
  letter-spacing: 0;
}

@media (min-width: 1101px) {
  .ds-nav {
    left: auto;
    right: 22px;
    bottom: 22px;
    width: 72px;
    height: auto;
    min-height: 220px;
    padding: 8px 6px;
    transform: none;
    flex-direction: column;
    gap: 6px;
    border-radius: 14px;
  }

  .ds-nav-item {
    min-height: 62px;
    padding: 8px 4px;
    border-radius: 10px;
  }

  .ds-nav-item.active::before {
    left: 10px;
    right: 10px;
    bottom: 5px;
  }
}

/* 炉况页：减少杂色，保留一块强摘要 */
.ds-shift-bar {
  border: 0;
  border-radius: 8px;
  background: #1f2023;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.12);
}

.ds-shift-bar::before {
  background: #7fc241;
}

.ds-shift-panel-kicker,
.ds-shift-current-label,
.ds-shift-date,
.ds-shift-roster-label {
  color: rgba(255, 255, 255, 0.68);
}

.ds-shift-current-team {
  color: #ffffff;
}

.ds-shift-current-status,
.ds-shift-roster-current {
  border: 1px solid rgba(127, 194, 65, 0.18);
  background: rgba(127, 194, 65, 0.12);
  color: #cdeebe;
}

.ds-shift-roster-board {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.ds-shift-roster-line + .ds-shift-roster-line {
  border-left-color: rgba(255, 255, 255, 0.12);
}

.ds-shift-roster-team,
.ds-shift-roster-line.is-current .ds-shift-roster-team {
  color: #ffffff;
}

.ds-fl-furnace {
  border-color: #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
}

.ds-fl-furnace:hover {
  border-color: #d1d5db;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.08);
}

.ds-fl-team {
  border-color: rgba(47, 138, 33, 0.18);
  background: rgba(47, 138, 33, 0.08);
  color: #2f6f23;
}

.ds-fl-scope {
  padding-left: 8px;
  border-left: 2px solid rgba(47, 138, 33, 0.34);
  color: #6b7280;
}

.ds-fl-table,
.ds-fl-delta {
  border-color: #e5e7eb;
  border-radius: 8px;
}

.ds-fl-head,
.ds-fl-avg {
  background: #fafafa;
}

.ds-fl-delta.is-positive {
  color: #2f6f23;
  border-color: rgba(47, 138, 33, 0.16);
  background: rgba(47, 138, 33, 0.06);
}

.ds-fl-delta.is-negative {
  color: #9a3412;
  border-color: rgba(194, 65, 12, 0.14);
  background: rgba(194, 65, 12, 0.05);
}

.ds-furnace-footer-copy {
  color: #6b7280;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e7eb;
}

.ds-furnace-footer-number {
  color: #2f8a21;
}

@media (max-width: 1100px) {
  .ds-stage-salary-terminal {
    grid-template-columns: 1fr;
  }

  .ds-salary-console {
    border-radius: 8px;
  }

  .ds-fl-ab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ds-salary-console-head {
    padding: 15px 14px 12px;
  }

  .ds-salary-console-title {
    font-size: 22px;
  }

  .ds-salary-console-body {
    padding: 12px 14px 14px;
  }

  .ds-salary-section-grid {
    grid-template-columns: 1fr;
  }

  .ds-salary-info-card-hero {
    min-height: 118px;
    padding: 16px;
  }

  .ds-salary-info-card-hero .ds-number,
  .ds-salary-info-card-hero .ds-salary-info-value-lg,
  .ds-sim-result-amount,
  .ds-fm-total-amount {
    font-size: 40px;
  }

  .ds-sim-result-card {
    position: relative;
    top: auto;
    z-index: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ds-sim-current-card .ds-row-value {
    font-size: 16px;
  }

  .ds-salary-reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ds-salary-reward-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    text-align: center;
    min-height: 78px;
    padding: 8px 4px;
  }

  .ds-salary-reward-icon {
    grid-row: auto;
    width: 24px;
    height: 24px;
    padding: 5px;
  }

  .ds-salary-reward-label {
    font-size: 10px;
  }

  .ds-salary-reward-number {
    font-size: 14px;
  }

  .ds-shift-bar {
    border-radius: 8px;
  }

  .ds-fl-recent {
    padding: 12px;
  }

  .ds-fl-current-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .ds-fl-current-metric {
    padding: 8px 7px 7px;
  }

  .ds-fl-current-metric strong {
    font-size: 14px;
  }

  .ds-fl-ab-section-head {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .ds-fl-ab-section-title {
    font-size: 14px;
  }

  .ds-fl-ab-section-meta {
    font-size: 11px;
  }

  .ds-fl-ab-card-head {
    padding: 11px 10px 9px;
  }

  .ds-fl-ab-row {
    grid-template-columns: minmax(46px, 0.74fr) minmax(62px, 0.9fr) minmax(70px, 1fr) minmax(70px, 1fr);
    gap: 5px;
    padding: 7px 8px;
  }

  .ds-fl-ab-val {
    font-size: 10px;
  }

  .ds-fl-ab-val small {
    display: none;
  }

  .ds-fl-compare-row {
    grid-template-columns: minmax(68px, 0.9fr) minmax(42px, 0.55fr) minmax(64px, 0.78fr) minmax(58px, 0.72fr) minmax(66px, 0.82fr) minmax(48px, 0.62fr);
    min-width: 560px;
    gap: 5px;
    padding: 7px 8px;
  }

  .ds-fl-compare-value {
    font-size: 11px;
  }

  .ds-fl-compare-value small {
    display: none;
  }

  .ds-fl-shiftmap {
    padding: 10px 8px 9px;
  }

  .ds-fl-shiftmap-head {
    display: grid;
    gap: 4px;
  }

  .ds-fl-shiftmap-head small {
    text-align: left;
  }

  .ds-fl-shiftmap-row {
    min-width: 620px;
  }

  .ds-fl-shiftmap-cell {
    min-height: 22px;
    padding: 0 2px;
    font-size: 9px;
  }
}

/* 工资页：绩效工资优先展示 */
body[data-portal-page="salary"],
body[data-portal-page="salary"] .ds-bg,
body[data-portal-page="salary"] .ds-app,
#page-salary {
  background: #ffffff;
}

.ds-stage-salary-terminal {
  width: min(960px, calc(100vw - 24px));
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  background: #ffffff;
}

.ds-salary-side {
  grid-column: 1 / -1;
  order: -1;
}

.ds-salary-console {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: none;
}

.ds-salary-reward-card {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 8px 10px 10px;
  background: #ffffff;
  box-shadow: none;
}

.ds-salary-reward-head {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ds-salary-reward-title {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1.2;
}

.ds-salary-reward-subtitle {
  flex: 1 1 auto;
  text-align: right;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.ds-salary-reward-grid {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.ds-salary-reward-grid.is-single {
  grid-template-columns: 1fr;
}

.ds-salary-reward-grid.is-multi {
  grid-template-columns: 1fr;
}

.ds-salary-kpi-single,
.ds-salary-kpi-group {
  min-width: 0;
}

.ds-salary-kpi-group {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ds-salary-kpi-group + .ds-salary-kpi-group {
  padding-top: 6px;
  border-top: 1px solid #eef0f3;
}

.ds-salary-kpi-scope {
  display: flex;
  align-items: center;
  min-height: 14px;
  color: #111827;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 600;
}

.ds-salary-kpi-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.28fr)
    minmax(0, 0.82fr)
    minmax(0, 0.95fr);
  gap: 4px;
  margin-top: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.ds-salary-kpi-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 76px;
  padding: 5px 6px 5px;
  border: 1px solid #e7eaee;
  border-radius: 7px;
  background: #ffffff;
}

.ds-salary-kpi-cell:last-child {
  border-right: 1px solid #e7eaee;
}

.ds-salary-kpi-cell.is-good {
  background: #ffffff;
}

.ds-salary-kpi-cell.is-bad {
  background: #ffffff;
}

.ds-salary-kpi-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 15px;
  color: #4b5563;
  font-size: 9.5px;
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
}

.ds-salary-kpi-label-sub {
  margin-top: -7px;
  color: #8a94a3;
  font-size: 9px;
  line-height: 1.25;
  font-weight: 400;
}

.ds-salary-kpi-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-top: 3px;
  color: #111827;
  text-align: center;
}

.ds-salary-kpi-main strong {
  font-family: var(--ds-font);
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ds-salary-kpi-main span {
  color: #667085;
  font-size: 13.5px;
  font-weight: 500;
}

.ds-salary-kpi-note {
  margin-top: auto;
  color: #667085;
  font-size: 8.8px;
  line-height: 1.25;
  font-weight: 400;
  text-align: center;
}

.ds-salary-kpi-target {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  width: min(82%, 96px);
  height: 18px;
  margin-left: auto;
  margin-right: auto;
}

.ds-salary-kpi-target span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ds-salary-kpi-target strong {
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.18;
  text-align: right;
  white-space: nowrap;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ds-salary-kpi-target strong small {
  color: #667085;
  font-size: 8px;
  font-weight: 400;
}

.ds-salary-kpi-power {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: 2px;
  color: #111827;
  font-family: var(--ds-font);
  line-height: 1.16;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ds-salary-kpi-power-main,
.ds-salary-kpi-power-sub {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.ds-salary-kpi-power-main {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.ds-salary-kpi-power-sub {
  color: #667085;
  font-size: 10px;
  font-weight: 500;
}

.ds-salary-kpi-power small {
  color: #667085;
  font-family: var(--ds-font);
  font-size: 9px;
  font-weight: 400;
  white-space: nowrap;
}

.ds-salary-kpi-cell.is-good .ds-salary-kpi-main strong,
.ds-salary-kpi-power-main.is-good,
.ds-salary-kpi-power-sub.is-good {
  color: #167c36;
}

.ds-salary-kpi-cell.is-bad .ds-salary-kpi-main strong,
.ds-salary-kpi-power-main.is-bad,
.ds-salary-kpi-power-sub.is-bad {
  color: #b42318;
}

.ds-salary-kpi-empty {
  padding: 16px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

.ds-salary-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 7px;
}

.ds-salary-console-kicker {
  display: none;
}

.ds-salary-console-title {
  min-width: 0;
  margin-top: 0;
  font-size: 15px;
  line-height: 1.25;
}

.ds-salary-console-desc {
  flex: 0 0 auto;
  max-width: 52%;
  margin-top: 0;
  margin-left: auto;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
}

.ds-salary-console-body {
  padding: 10px 16px 16px;
}

.ds-salary-section-grid {
  gap: 10px;
}

.ds-salary-section-card {
  margin-top: 10px;
  padding: 12px 14px;
}

.ds-salary-info-card {
  padding: 12px 14px;
}

.ds-row {
  gap: 10px;
  padding: 8px 0;
}

.ds-sim-result-card,
.ds-fm-total {
  padding: 14px 16px 13px;
}

.ds-sim-result-shell {
  padding: 8px 0 4px;
}

.ds-sim-result-amount,
.ds-fm-total-amount {
  font-size: 36px;
}

.ds-salary-compact-card {
  width: 100%;
  margin: 0 auto;
  padding: 14px 16px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.ds-salary-formula-area {
  min-width: 0;
}

.ds-salary-formula-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ds-salary-formula-copy,
.ds-salary-formula-total {
  min-width: 0;
}

.ds-salary-formula-title {
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 850;
}

.ds-salary-formula-sub {
  margin-top: 4px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
}

.ds-salary-formula-total {
  flex: 0 0 auto;
  text-align: right;
}

.ds-salary-formula-amount {
  color: #2f8a21;
  font-size: 26px;
  line-height: 1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ds-salary-formula-caption {
  margin-top: 4px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.2;
}

.ds-salary-formula-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  margin-top: 15px;
}

.ds-salary-formula-term {
  min-width: 0;
  text-align: center;
}

.ds-salary-formula-label {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.ds-salary-formula-value {
  margin-top: 7px;
  color: #111827;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
}

.ds-salary-formula-term.is-negative .ds-salary-formula-value {
  color: #c2410c;
}

.ds-salary-formula-plus {
  color: #111827;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  text-align: center;
}

.ds-salary-formula-meta {
  margin-top: 12px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.ds-salary-forecast-peek {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8faf7;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.4;
}

.ds-salary-forecast-peek strong {
  color: #111827;
  font-size: 12px;
}

.ds-salary-rule-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #fff8e6;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.4;
}

.ds-salary-rule-toggle {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #374151;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.ds-salary-rule-toggle::after {
  content: '›';
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.18s ease;
}

.ds-salary-compact-card.is-expanded .ds-salary-rule-toggle::after {
  transform: rotate(90deg);
}

.ds-salary-rule-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef0ed;
}

.ds-salary-detail-title {
  margin: 12px 0 6px;
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
}

.ds-salary-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ds-salary-rule-baseline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 650;
  text-align: right;
}

.ds-salary-rule-baseline span {
  white-space: nowrap;
}

.ds-salary-rule-details .ds-salary-detail-title:first-child,
.ds-salary-rule-alert + .ds-salary-detail-title {
  margin-top: 0;
}

.ds-salary-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.ds-salary-rule-alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(198, 65, 12, 0.18);
  border-radius: 6px;
  background: rgba(194, 65, 12, 0.06);
  color: rgba(17, 24, 39, 0.78);
  font-size: 12px;
  line-height: 1.6;
}

.ds-salary-rule-alert-title {
  margin-bottom: 4px;
  color: #c2410c;
  font-size: 13px;
  font-weight: 850;
}

.ds-salary-rule-details .ds-fm-shift {
  padding: 8px 0;
}

.ds-salary-rule-details .ds-fm-shift.is-primary {
  padding: 8px 9px;
  border: 1px solid #dfead7;
  border-radius: 8px;
  background: #f8fbf5;
}

.ds-salary-rule-details .ds-fm-shift-head {
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.ds-salary-rule-details .ds-fm-shift-name {
  font-size: 13px;
}

.ds-salary-rule-details .ds-fm-shift-done {
  font-size: 10px;
  line-height: 1.35;
}

.ds-salary-rule-details .ds-fm-shift-inputs {
  display: grid;
  grid-template-columns: 72px 86px 116px;
  justify-content: start;
  align-items: end;
  gap: 6px;
  margin-bottom: 5px;
}

.ds-salary-rule-details .ds-fm-field {
  flex: 0 0 auto;
  gap: 2px;
  font-size: 9.5px;
  line-height: 1.2;
}

.ds-salary-rule-details .ds-fm-field.is-remaining {
  width: 72px;
}

.ds-salary-rule-details .ds-fm-field.is-production {
  width: 86px;
}

.ds-salary-rule-details .ds-fm-field.is-power {
  width: 116px;
}

.ds-salary-rule-details .ds-fm-field .ds-sim-input {
  min-height: 32px;
  padding: 5px 5px;
  border-radius: 7px;
  font-size: 12.5px;
  text-align: center;
}

.ds-salary-rule-details .ds-fm-shift-result {
  min-height: 0;
  font-size: 10.5px;
  line-height: 1.35;
}

.ds-salary-rule-details .ds-fm-result-row {
  gap: 6px;
  margin-top: 1px;
}

.ds-salary-rule-details .ds-fm-result-avg {
  font-size: 11px;
}

.ds-boss-payroll-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ds-boss-payroll-kpi {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #e7eaee;
  border-radius: 7px;
  background: #fff;
}

.ds-boss-payroll-kpi span {
  display: block;
  color: #6b7280;
  font-size: 9.5px;
  line-height: 1.2;
}

.ds-boss-payroll-kpi strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 15px;
  line-height: 1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ds-boss-salary-board {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ds-boss-salary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #eef0f3;
}

.ds-boss-salary-kicker {
  color: #718096;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
}

.ds-boss-salary-head h2 {
  margin: 3px 0 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.ds-boss-salary-head p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
}

.ds-boss-salary-head-amount {
  flex: 0 0 auto;
  text-align: right;
}

.ds-boss-salary-head-amount span {
  display: block;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.2;
}

.ds-boss-salary-head-amount strong {
  display: block;
  margin-top: 4px;
  color: #2f8a21;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ds-boss-salary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #eef0f3;
}

.ds-boss-salary-stats div {
  min-width: 0;
  padding: 9px 12px;
  background: #f8fafc;
}

.ds-boss-salary-stats span {
  display: block;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.2;
}

.ds-boss-salary-stats strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 16px;
  line-height: 1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ds-boss-salary-list {
  display: grid;
  gap: 0;
}

.ds-boss-salary-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1.05fr) minmax(86px, 0.72fr) minmax(92px, 0.58fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 12px;
  border-top: 1px solid #eef0f3;
}

.ds-boss-salary-row:first-child {
  border-top: 0;
}

.ds-boss-salary-row.is-floor {
  background: #fff8f1;
}

.ds-boss-salary-index {
  color: #9aa3af;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ds-boss-salary-person,
.ds-boss-salary-state {
  min-width: 0;
}

.ds-boss-salary-person strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-boss-salary-person span,
.ds-boss-salary-state small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-boss-salary-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
}

.ds-boss-salary-badge.is-published {
  color: #166534;
  background: #dcfce7;
}

.ds-boss-salary-badge.is-estimate {
  color: #9a3412;
  background: #ffedd5;
}

.ds-boss-salary-amount {
  color: #111827;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

@media (max-width: 768px) {
  #page-salary.ds-page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .ds-stage-salary-terminal {
    width: calc(100vw - 16px);
  }

  .ds-salary-console,
  .ds-salary-reward-card {
    max-width: none;
    width: 100%;
  }

  .ds-salary-reward-card {
    padding: 7px 6px 8px;
  }

  .ds-salary-reward-head {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .ds-salary-reward-title {
    font-size: 12px;
  }

  .ds-salary-reward-subtitle {
    display: block;
    text-align: right;
    font-size: 9px;
  }

  .ds-salary-reward-grid,
  .ds-salary-reward-grid.is-single,
  .ds-salary-reward-grid.is-multi {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ds-salary-kpi-grid {
    grid-template-columns:
      minmax(0, 0.92fr)
      minmax(0, 1.22fr)
      minmax(0, 0.84fr)
      minmax(0, 1.02fr);
    gap: 2px;
    margin-top: 3px;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .ds-salary-kpi-cell {
    min-height: 62px;
    padding: 3px 2px;
    border: 1px solid #e7eaee;
    border-radius: 7px;
  }

  .ds-salary-kpi-cell:last-child {
    border-right: 1px solid #e7eaee;
  }

  .ds-salary-kpi-group + .ds-salary-kpi-group {
    padding-top: 6px;
  }

  .ds-salary-kpi-scope {
    min-height: 13px;
    font-size: 9.5px;
  }

  .ds-salary-kpi-label {
    min-height: 14px;
    font-size: 7px;
    line-height: 1.25;
  }

  .ds-salary-kpi-label-sub {
    margin-top: -6px;
    font-size: 7.5px;
    line-height: 1.15;
  }

  .ds-salary-kpi-main {
    margin-top: 2px;
    gap: 2px;
  }

  .ds-salary-kpi-main strong {
    font-size: 12.5px;
    letter-spacing: 0;
  }

  .ds-salary-kpi-main span {
    font-size: 10px;
  }

  .ds-salary-kpi-note {
    margin-top: auto;
    font-size: 7px;
    line-height: 1.2;
  }

  .ds-salary-kpi-target {
    gap: 3px;
    width: min(90%, 66px);
    height: 15px;
  }

  .ds-salary-kpi-target strong {
    font-size: 7.5px;
  }

  .ds-salary-kpi-target strong small {
    font-size: 7px;
  }

  .ds-salary-kpi-power {
    gap: 2px;
    margin-top: 2px;
  }

  .ds-salary-kpi-power-main {
    font-size: 9.5px;
    gap: 2px;
  }

  .ds-salary-kpi-power-sub {
    font-size: 8px;
    gap: 2px;
  }

  .ds-salary-kpi-power small {
    display: inline;
    font-size: 7px;
  }

  .ds-salary-console-head {
    gap: 8px;
    padding: 9px 10px 6px;
  }

  .ds-salary-console-title {
    font-size: 14px;
  }

  .ds-salary-console-desc {
    font-size: 11px;
  }

  .ds-salary-console-body {
    padding: 8px 12px 12px;
  }

  .ds-salary-section-card,
  .ds-salary-info-card {
    padding: 11px 12px;
  }

  .ds-row {
    padding: 7px 0;
  }

  .ds-sim-result-amount,
  .ds-fm-total-amount {
    font-size: 32px;
  }

  .ds-salary-compact-card {
    padding: 12px 10px 10px;
  }

  .ds-salary-formula-head {
    gap: 10px;
  }

  .ds-salary-formula-title {
    font-size: 13px;
  }

  .ds-salary-formula-sub {
    font-size: 10px;
  }

  .ds-salary-formula-amount {
    font-size: 21px;
  }

  .ds-salary-formula-row {
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
    column-gap: 5px;
    margin-top: 12px;
  }

  .ds-salary-formula-label {
    font-size: 9px;
  }

  .ds-salary-formula-value {
    margin-top: 5px;
    font-size: 13px;
  }

  .ds-salary-formula-plus {
    font-size: 17px;
  }

  .ds-salary-rule-footer {
    align-items: flex-start;
    gap: 8px;
    padding: 8px 9px;
    font-size: 10px;
  }

  .ds-salary-detail-title-row {
    flex-direction: column;
    gap: 5px;
  }

  .ds-salary-rule-baseline {
    justify-content: flex-start;
    gap: 4px 8px;
    font-size: 9.5px;
    text-align: left;
  }

  .ds-salary-detail-grid {
    grid-template-columns: 1fr;
  }

  .ds-salary-rule-details .ds-fm-shift-inputs,
  .ds-sim-input-row {
    gap: 5px;
  }

  .ds-salary-rule-details .ds-fm-shift-inputs {
    grid-template-columns: 66px 78px 104px;
  }

  .ds-salary-rule-details .ds-fm-field.is-remaining {
    width: 66px;
  }

  .ds-salary-rule-details .ds-fm-field.is-production {
    width: 78px;
  }

  .ds-salary-rule-details .ds-fm-field.is-power {
    width: 104px;
  }

  .ds-salary-rule-details .ds-fm-field .ds-sim-input {
    min-height: 30px;
    font-size: 12px;
  }

  .ds-boss-payroll-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .ds-boss-payroll-kpi {
    padding: 7px 8px;
  }

  .ds-boss-payroll-kpi strong {
    font-size: 13px;
  }

  .ds-boss-salary-head {
    gap: 10px;
    padding: 12px 10px 10px;
  }

  .ds-boss-salary-head h2 {
    font-size: 15px;
  }

  .ds-boss-salary-head p {
    font-size: 10px;
  }

  .ds-boss-salary-head-amount strong {
    font-size: 19px;
  }

  .ds-boss-salary-stats div {
    padding: 8px 9px;
  }

  .ds-boss-salary-stats strong {
    font-size: 13px;
  }

  .ds-boss-salary-row {
    grid-template-columns: 24px minmax(0, 1fr) minmax(70px, 0.55fr) minmax(78px, 0.55fr);
    gap: 5px;
    padding: 8px 8px;
  }

  .ds-boss-salary-person strong {
    font-size: 12px;
  }

  .ds-boss-salary-person span,
  .ds-boss-salary-state small {
    font-size: 9px;
  }

  .ds-boss-salary-badge {
    min-height: 16px;
    padding: 0 5px;
    font-size: 8px;
  }

  .ds-boss-salary-amount {
    font-size: 13px;
  }
}

/* 手机端：历史/炉况对比区不撑宽页面 */
@media (max-width: 768px) {
  #page-furnace.ds-page,
  #page-history.ds-page,
  #page-learning.ds-page {
    padding-left: 8px;
    padding-right: 8px;
  }

  #page-furnace .ds-stage,
  #page-history .ds-stage,
  #page-history .ds-stage-history,
  #page-learning .ds-stage-learning {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ds-furnace-dashboard,
  .ds-stage-history-column,
  .ds-stage-learning,
  #history-months,
  #history-production,
  #learning-content,
  .ds-h-board,
  .ds-fl-recent {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ds-fl-recent,
  .ds-h-board-card,
  .ds-h-matrix-card {
    overflow: hidden;
  }

  .ds-fl-compare-table,
  .ds-fl-shiftmap-scroll,
  .ds-h-matrix-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .ds-fl-compare-row {
    grid-template-columns: minmax(46px, 0.9fr) minmax(31px, 0.52fr) minmax(46px, 0.74fr) minmax(42px, 0.68fr) minmax(48px, 0.78fr) minmax(36px, 0.58fr);
    width: 100%;
    min-width: 0;
    min-height: 38px;
    gap: 3px;
    padding: 6px 6px;
  }

  .ds-fl-compare-team strong {
    font-size: 10px;
  }

  .ds-fl-compare-team small,
  .ds-fl-compare-row.is-head span {
    font-size: 8.5px;
  }

  .ds-fl-compare-value {
    gap: 2px;
    font-size: 10px;
  }

  .ds-fl-compare-value.is-best::before {
    min-width: 13px;
    height: 12px;
    padding: 0 2px;
    font-size: 7px;
    line-height: 12px;
  }

  .ds-fl-shiftmap-row {
    width: max-content;
    min-width: max-content;
  }

  .ds-fl-shiftmap-cell {
    min-height: 22px;
    padding: 0 2px;
    font-size: 9px;
  }

  .ds-h-matrix-row {
    min-width: 100%;
  }

  .ds-h-matrix-index,
  .ds-h-matrix-team,
  .ds-h-matrix-cell {
    min-height: 34px;
    padding: 4px 1px;
  }

  .ds-h-matrix-index,
  .ds-h-matrix-team strong {
    font-size: 8.5px;
  }

  .ds-h-matrix-team small,
  .ds-h-matrix-cell small,
  .ds-h-matrix-cell em {
    font-size: 6px;
  }

  .ds-h-matrix-cell strong {
    font-size: 9.6px;
    font-weight: 700;
  }

  .ds-h-matrix-combo {
    gap: 1px;
    font-size: 9.2px;
    font-weight: 700;
  }
}

@media (max-width: 420px) {
  .ds-h-matrix-row {
    min-width: 100%;
  }

  .ds-fl-ab-section-head {
    gap: 8px;
  }

  .ds-fl-ab-section-meta {
    max-width: 42%;
    text-align: right;
    line-height: 1.2;
  }
}

/* 炉况页紧凑版：减少首屏占用 */
body[data-portal-page="furnace"] .ds-furnace-dashboard {
  gap: 8px;
}

body[data-portal-page="furnace"] .ds-shift-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: center;
  margin-bottom: 2px;
  padding: 8px 10px 7px;
  border-radius: 7px;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.1);
}

body[data-portal-page="furnace"] .ds-shift-bar::before {
  top: 8px;
  bottom: 8px;
  width: 2px;
}

body[data-portal-page="furnace"] .ds-shift-panel-kicker {
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 650;
}

body[data-portal-page="furnace"] .ds-shift-current-line {
  gap: 5px;
}

body[data-portal-page="furnace"] .ds-shift-current-label {
  font-size: 10px;
}

body[data-portal-page="furnace"] .ds-shift-current-team {
  font-size: 20px;
  font-weight: 800;
}

body[data-portal-page="furnace"] .ds-shift-current-status {
  min-height: 17px;
  padding: 0 5px;
  font-size: 9px;
}

body[data-portal-page="furnace"] .ds-shift-date {
  font-size: 10px;
}

body[data-portal-page="furnace"] .ds-shift-roster-board {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2px;
}

body[data-portal-page="furnace"] .ds-shift-roster-line {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 25px;
  gap: 5px;
  padding: 5px 8px 0 0;
}

body[data-portal-page="furnace"] .ds-shift-roster-line + .ds-shift-roster-line {
  padding-left: 10px;
}

body[data-portal-page="furnace"] .ds-shift-roster-label {
  font-size: 9px;
}

body[data-portal-page="furnace"] .ds-shift-roster-team {
  font-size: 12px;
  font-weight: 750;
}

body[data-portal-page="furnace"] .ds-shift-roster-current {
  min-height: 15px;
  padding: 0 4px;
  font-size: 8px;
}

body[data-portal-page="furnace"] .ds-shift-schedule-actions {
  padding-top: 1px;
}

body[data-portal-page="furnace"] .ds-shift-schedule-toggle {
  min-height: 18px;
  gap: 3px;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 9px;
}

body[data-portal-page="furnace"] .ds-shift-schedule-toggle b {
  font-size: 11px;
}

body[data-portal-page="furnace"] .ds-shift-schedule-panel {
  gap: 3px;
  padding-top: 3px;
}

body[data-portal-page="furnace"] .ds-shift-schedule-row {
  grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
  gap: 3px;
}

body[data-portal-page="furnace"] .ds-shift-schedule-date {
  font-size: 8px;
}

body[data-portal-page="furnace"] .ds-shift-schedule-slot {
  min-height: 21px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 3px;
  padding: 2px 4px;
  border-radius: 5px;
}

body[data-portal-page="furnace"] .ds-shift-schedule-slot span,
body[data-portal-page="furnace"] .ds-shift-schedule-slot em {
  font-size: 7px;
}

body[data-portal-page="furnace"] .ds-shift-schedule-slot strong {
  font-size: 10px;
}

body[data-portal-page="furnace"] .ds-furnace-grid {
  gap: 6px;
}

body[data-portal-page="furnace"] .ds-fl-furnace {
  margin-bottom: 6px;
  padding: 7px 8px;
  border-radius: 7px;
  box-shadow: none;
}

body[data-portal-page="furnace"] .ds-fl-header {
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

body[data-portal-page="furnace"] .ds-fl-title {
  font-size: 13px;
  font-weight: 750;
}

body[data-portal-page="furnace"] .ds-fl-team {
  min-height: 17px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10px;
}

body[data-portal-page="furnace"] .ds-fl-meta {
  font-size: 9px;
}

body[data-portal-page="furnace"] .ds-fl-scope {
  display: none;
}

body[data-portal-page="furnace"] .ds-fl-current-grid {
  gap: 4px;
}

body[data-portal-page="furnace"] .ds-fl-current-metric {
  padding: 4px 3px;
  border-radius: 5px;
  background: #fbfcfa;
}

body[data-portal-page="furnace"] .ds-fl-current-metric span,
body[data-portal-page="furnace"] .ds-fl-current-metric small {
  font-size: 8px;
  line-height: 1.05;
}

body[data-portal-page="furnace"] .ds-fl-current-metric strong {
  margin-top: 3px;
  font-size: 11px;
}

body[data-portal-page="furnace"] .ds-fl-current-metric small {
  margin-top: 2px;
}

body[data-portal-page="furnace"] .ds-fl-recent {
  margin-top: 0;
  padding: 10px;
  box-shadow: none;
}

@media (max-width: 768px) {
  body[data-portal-page="furnace"] .ds-page {
    padding-top: 8px;
  }

  body[data-portal-page="furnace"] .ds-shift-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    padding: 7px 9px 6px;
  }

  body[data-portal-page="furnace"] .ds-shift-current-team {
    font-size: 18px;
  }

  body[data-portal-page="furnace"] .ds-shift-roster-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-portal-page="furnace"] .ds-shift-roster-line {
    min-height: 23px;
    padding-top: 4px;
  }

  body[data-portal-page="furnace"] .ds-shift-roster-line + .ds-shift-roster-line {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-top: none;
  }

  body[data-portal-page="furnace"] .ds-fl-current-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

body[data-portal-page="furnace"] .ds-fl-current-metric {
    padding: 4px 2px;
  }
}

/* ── 学习资料 ─────────────────────────────────── */
.ds-stage-learning {
  width: min(960px, calc(100vw - 28px));
  display: block;
  margin: 0 auto;
}

.ds-learning-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-learning-head,
.ds-learning-player-card,
.ds-learning-panel {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.ds-learning-head {
  min-height: 112px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    linear-gradient(110deg, rgba(47, 138, 33, 0.08), rgba(29, 111, 184, 0.06)),
    #ffffff;
}

.ds-learning-kicker {
  color: #2f6f23;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.ds-learning-head h2 {
  margin: 5px 0 5px;
  color: #111827;
  font-size: clamp(23px, 4vw, 34px);
  line-height: 1.04;
  letter-spacing: 0;
}

.ds-learning-head p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.ds-learning-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(47, 138, 33, 0.22);
  background: #f8faf7;
}

.ds-learning-ring strong {
  color: #2f8a21;
  font-size: 21px;
  line-height: 1;
  font-weight: 850;
}

.ds-learning-ring span {
  margin-top: 5px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1;
}

.ds-learning-player-card {
  padding: 14px;
}

.ds-learning-current {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.ds-learning-current span {
  color: #2f6f23;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 750;
}

.ds-learning-current strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 850;
}

.ds-learning-current small {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.3;
}

.ds-learning-media {
  width: 100%;
  min-height: 42px;
  display: block;
}

video.ds-learning-media {
  aspect-ratio: 16 / 9;
  min-height: 180px;
  border-radius: 8px;
  background: #111827;
}

.ds-learning-now {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.ds-learning-now-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.ds-learning-now-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #2f8a21;
  transition: width 0.2s ease;
}

.ds-learning-now > span {
  color: #6b7280;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.ds-learning-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ds-learning-actions button,
.ds-learning-books button {
  min-height: 36px;
  border: 1px solid #dbe2e8;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 12px;
  font-weight: 750;
}

.ds-learning-actions button:active,
.ds-learning-books button:active,
.ds-learning-item:active {
  transform: translateY(1px);
}

.ds-learning-panel {
  padding: 12px;
}

.ds-learning-toolbar {
  margin-bottom: 10px;
}

.ds-learning-toolbar input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #dbe2e8;
  border-radius: 8px;
  outline: none;
  background: #f9fafb;
  color: #111827;
  font-size: 13px;
}

.ds-learning-toolbar input:focus {
  border-color: rgba(47, 138, 33, 0.55);
  background: #ffffff;
}

.ds-learning-books {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.ds-learning-books button {
  flex: 0 0 auto;
  padding: 0 11px;
  white-space: nowrap;
}

.ds-learning-books button.is-active {
  border-color: rgba(47, 138, 33, 0.22);
  background: rgba(47, 138, 33, 0.1);
  color: #2f6f23;
}

.ds-learning-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds-learning-item {
  width: 100%;
  min-height: 72px;
  padding: 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  color: inherit;
}

.ds-learning-item.is-active {
  border-color: rgba(47, 138, 33, 0.45);
  background: #f8faf7;
}

.ds-learning-order {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.ds-learning-item.is-done .ds-learning-order {
  background: rgba(47, 138, 33, 0.12);
  color: #2f6f23;
}

.ds-learning-info {
  min-width: 0;
  display: block;
}

.ds-learning-info strong {
  display: block;
  color: #111827;
  font-size: 13px;
  line-height: 1.28;
  font-weight: 800;
}

.ds-learning-info small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.2;
}

.ds-learning-info em {
  display: block;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f3;
}

.ds-learning-info em i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2f8a21;
}

.ds-learning-percent {
  color: #6b7280;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-align: right;
}

.ds-learning-item.is-done .ds-learning-percent {
  color: #2f8a21;
}

.ds-learning-empty {
  padding: 28px 12px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

@media (min-width: 1101px) {
  .ds-nav {
    min-height: 286px;
  }

  .ds-stage-learning {
    width: min(1040px, calc(100vw - 140px));
  }

  .ds-learning-board {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
    align-items: start;
  }

  .ds-learning-head,
  .ds-learning-player-card {
    grid-column: 1;
  }

  .ds-learning-panel {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-height: calc(var(--ds-viewport-height) - var(--ds-header-height) - 92px);
    overflow: auto;
  }
}

@media (max-width: 430px) {
  .ds-stage-learning {
    width: 100%;
  }

  .ds-learning-head {
    padding: 14px;
  }

  .ds-learning-head h2 {
    font-size: 24px;
  }

  .ds-learning-ring {
    width: 66px;
    height: 66px;
  }

  .ds-learning-item {
    grid-template-columns: 30px minmax(0, 1fr) 40px;
    gap: 8px;
    padding: 9px;
  }

  .ds-learning-order {
    width: 30px;
    height: 30px;
  }

  .ds-learning-info strong {
    font-size: 12px;
  }
}

/* 历史页本轮显示优化：筛选控件醒目但不悬浮遮挡内容 */
.ds-h-period-tabs,
.ds-h-tabs {
  padding: 7px;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  background: #f4f6f9;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.ds-h-period-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(82px, 0.85fr);
  margin-bottom: 8px;
}

.ds-h-tabs {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  margin-bottom: 10px;
}

.ds-h-period-tab,
.ds-h-tab {
  border-color: #cfd6df;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.ds-h-period-tab.is-active,
.ds-h-tab.is-active {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
}

.ds-h-tab.is-active span,
.ds-h-tab.is-active small {
  color: #ffffff;
}

.ds-h-period-current {
  color: #111827;
  font-weight: 800;
}

/* 底部主导航改为与顶部呼应的黑色条 */
.ds-nav {
  background: #050607;
  border-color: rgba(255, 214, 89, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.ds-nav-item {
  color: rgba(255, 255, 255, 0.62);
}

.ds-nav-item.active {
  color: #ffe39a;
  background: rgba(255, 214, 89, 0.13);
}

.ds-nav-item.active::before {
  background: #ffe39a;
  box-shadow: 0 0 10px rgba(255, 214, 89, 0.34);
}
