:root {
  --dash-bg: #ffffff;
  --dash-panel: #ffffff;
  --dash-panel-strong: #ffffff;
  --dash-border: #d9e7f5;
  --dash-text: #15324d;
  --dash-muted: #64748b;
  --dash-primary: #56b6ff;
  --dash-accent: #58f0c6;
  --dash-warning: #ffb55c;
  --dash-danger: #ff7f87;
  --dash-success: #5de2a5;
  --dash-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: var(--dash-text);
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.dashboard-shell {
  width: min(1460px, calc(100% - 34px));
  margin: 92px auto 34px;
}

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dash-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--dash-shadow);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(86, 182, 255, 0.05), transparent 42%, rgba(88, 240, 198, 0.04));
  pointer-events: none;
}

.hero-card {
  padding: 24px 28px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f5fbff 62%, #f7fcfa 100%);
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 182, 255, 0.2), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 20px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cfe4f7;
  color: #2172c6;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 14px 0 10px;
  font-size: clamp(1.9rem, 2.45vw, 2.6rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-subline {
  margin: 0;
  color: #2f80d8;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--dash-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-metrics {
  display: grid;
  gap: 12px;
}

.hero-metric {
  padding: 16px 18px;
  border: 1px solid #dbe8f4;
  border-radius: 20px;
  background: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.hero-metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--dash-muted);
  font-size: 0.86rem;
}

.hero-metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #102a43;
  line-height: 1;
}

.hero-metric-meta {
  margin-top: 8px;
  color: #457b5f;
  font-size: 0.84rem;
}

.hero-overview-board {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dbe8f4;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.hero-overview-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-overview-grid::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 31px;
  height: 2px;
  background: linear-gradient(90deg, rgba(86, 182, 255, 0.18), rgba(88, 240, 198, 0.4), rgba(86, 182, 255, 0.18));
}

.hero-overview-item {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.hero-overview-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  border: 1px solid #d8e6f2;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: #2f80d8;
  font-size: 1.18rem;
}

.hero-overview-item:nth-child(2) .hero-overview-icon {
  color: #d9902f;
}

.hero-overview-item:nth-child(3) .hero-overview-icon {
  color: #1f8f74;
}

.hero-overview-item:nth-child(4) .hero-overview-icon {
  color: #805ad5;
}

.hero-overview-title {
  color: #102a43;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-overview-meta {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
}

.hero-overview-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-overview-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  color: #35516d;
  font-size: 0.84rem;
  font-weight: 600;
}

.hero-overview-pill strong {
  color: #102a43;
  font-size: 0.98rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(520px, 1.68fr);
  gap: 24px;
  align-items: start;
}

.cleaning-stack {
  display: grid;
  gap: 24px;
}

.cleaning-nav-card {
  padding: 20px 24px;
  margin-bottom: 24px;
}

.cleaning-nav-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cleaning-nav-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cleaning-nav-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid #dbe8f4;
  border-radius: 18px;
  background: #fbfdff;
  color: #15324d;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cleaning-nav-item:hover {
  transform: translateY(-2px);
  border-color: #8fd9c3;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: #15324d;
}

.cleaning-nav-item strong {
  font-size: 0.98rem;
}

.cleaning-nav-item span:last-child {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.6;
}

.cleaning-nav-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f2f8fd;
  border: 1px solid #d7e6f3;
  color: #2f80d8;
  font-size: 0.88rem;
  font-weight: 800;
}

.cleaning-flow-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1.3fr;
  gap: 18px;
}

.flow-block {
  padding: 18px;
  border: 1px solid #dbe8f4;
  border-radius: 20px;
  background: #fbfdff;
}

.section-mini-head {
  margin-bottom: 14px;
}

.section-mini-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #102a43;
}

.section-mini-desc {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.7;
}

.left-column,
.right-column {
  display: grid;
  gap: 24px;
}

.section-card,
.board-header,
.chart-card {
  padding: 24px;
  scroll-margin-top: 104px;
}

.section-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfeff 100%);
}

.section-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.32), rgba(88, 240, 198, 0.2));
  pointer-events: none;
}

.section-head,
.board-header-top,
.chart-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-head {
  margin-bottom: 18px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #2f80d8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title,
.chart-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: #102a43;
}

.section-desc,
.chart-desc {
  margin: 8px 0 0;
  color: var(--dash-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.section-chip,
.chart-tag,
.table-panel-badge {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-chip {
  background: #ffffff;
  border: 1px solid #d8e6ef;
  color: #1f7a66;
}

.chart-tag,
.table-panel-badge {
  background: #ffffff;
  border: 1px solid #dbe8f4;
  color: #2563a6;
}

.workflow-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workflow-steps::before {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  top: 39px;
  height: 2px;
  background: linear-gradient(90deg, rgba(86, 182, 255, 0.18), rgba(88, 240, 198, 0.38), rgba(86, 182, 255, 0.18));
  z-index: 0;
}

.step-button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dash-text);
  cursor: default;
}

.step-orb {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px solid #d8e6f2;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: #2f80d8;
  font-size: 1.3rem;
}

.step-button:nth-child(2) .step-orb {
  color: #d9902f;
}

.step-button:nth-child(3) .step-orb {
  color: #1f8f74;
}

.step-button:nth-child(4) .step-orb {
  color: #805ad5;
}

.step-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.step-caption {
  color: var(--dash-muted);
  font-size: 0.82rem;
}

.pipeline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pipeline::-webkit-scrollbar,
.table-scroller::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.pipeline::-webkit-scrollbar-thumb,
.table-scroller::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(151, 198, 255, 0.25);
}

.pipeline-node {
  flex: 0 0 150px;
  padding: 16px;
  border: 1px solid #dbe8f4;
  border-radius: 18px;
  background: #ffffff;
}

.pipeline-node-title {
  margin-bottom: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #102a43;
}

.pipeline-node-meta {
  color: var(--dash-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.pipeline-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  color: #2f80d8;
  font-size: 1rem;
}

.table-legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  color: #23415f;
  font-size: 0.8rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.missing { background: var(--dash-warning); }
.legend-dot.abnormal { background: var(--dash-danger); }
.legend-dot.fixed { background: var(--dash-success); }
.legend-dot.normalized { background: var(--dash-primary); }

.table-panel {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
}

.comparison-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.table-panel:last-child {
  margin-bottom: 0;
}

.table-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.table-panel-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.table-scroller {
  overflow: auto;
}

.case-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.case-table thead th {
  position: sticky;
  top: 0;
  padding: 12px 10px;
  border-bottom: 1px solid #dbe8f4;
  background: #ffffff;
  color: #2563a6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf3f8;
  color: #1c3550;
  font-size: 0.88rem;
  vertical-align: top;
  white-space: nowrap;
}

.case-table tbody tr:hover td {
  background: #f8fbfe;
}

.cell-main {
  display: block;
  font-weight: 600;
}

.cell-note {
  display: block;
  margin-top: 4px;
  color: #7f95ad;
  font-size: 0.72rem;
  white-space: normal;
}

td.is-missing {
  background: rgba(255, 181, 92, 0.14);
  color: #9a5d00;
}

td.is-anomaly {
  background: rgba(255, 127, 135, 0.14);
  color: #9a3140;
}

td.is-format {
  background: rgba(86, 182, 255, 0.14);
  color: #155b9c;
}

td.is-fixed {
  background: rgba(93, 226, 165, 0.14);
  color: #1f7a4f;
}

.insight-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.insight-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  color: var(--dash-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.insight-item strong {
  color: #102a43;
}

.summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.summary-box {
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #dbe8f4;
}

.summary-label {
  display: block;
  color: var(--dash-muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.summary-value {
  display: block;
  color: #102a43;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.summary-meta {
  display: block;
  margin-top: 8px;
  color: #457b5f;
  font-size: 0.78rem;
  line-height: 1.5;
}

.mini-callout {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  color: #526b86;
  font-size: 0.88rem;
  line-height: 1.7;
}

.focus-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.focus-tab {
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  border: 1px solid #dbe8f4;
  border-radius: 999px;
  background: #ffffff;
  color: #23415f;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.22s ease;
}

.focus-tab:hover,
.focus-tab.active {
  border-color: #8fd9c3;
  background: #ffffff;
  color: #1f7a66;
  box-shadow: 0 8px 20px rgba(88, 240, 198, 0.08);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.chart-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.chart-card.is-emphasis {
  border-color: #8fd9c3;
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.chart-card.full-span {
  grid-column: 1 / -1;
}

.chart-box {
  position: relative;
  z-index: 1;
  height: 350px;
  border: 1px solid #e6eef6;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.95)),
    repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(32, 103, 168, 0.04) 35px, rgba(32, 103, 168, 0.04) 36px),
    repeating-linear-gradient(90deg, transparent, transparent 35px, rgba(32, 103, 168, 0.04) 35px, rgba(32, 103, 168, 0.04) 36px);
}

.chart-box.tall {
  height: 390px;
}

@media (max-width: 1199px) {
  .cleaning-nav-grid,
  .hero-grid,
  .cleaning-flow-grid,
  .dashboard-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .hero-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-overview-grid::before {
    display: none;
  }

  .chart-card.full-span {
    grid-column: auto;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .dashboard-shell {
    width: min(100% - 24px, 100%);
    margin-top: 86px;
  }

  .hero-card,
  .section-card,
  .board-header,
  .chart-card {
    padding: 20px;
  }

  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cleaning-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps::before {
    display: none;
  }

  .summary-grid,
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-box,
  .chart-box.tall {
    height: 320px;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 1.72rem;
  }

  .hero-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-grid,
  .hero-metrics,
  .workflow-steps,
  .cleaning-nav-grid {
    grid-template-columns: 1fr;
  }

  .table-panel-head,
  .section-head,
  .board-header-top,
  .cleaning-nav-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
