.dashboard-page {
  --db-bg: #f5f7fb;
  --db-surface: #ffffff;
  --db-panel: #eef3f8;
  --db-ink: #162033;
  --db-muted: #687386;
  --db-line: #d9e1ec;
  --db-navy: #12324d;
  --db-sidebar: #10273d;
  --db-blue: #2563eb;
  --db-cyan: #0891b2;
  --db-green: #059669;
  --db-amber: #d97706;
  --db-red: #dc2626;
  --db-shadow: 0 16px 42px rgba(20, 35, 55, 0.08);
  width: min(1400px, calc(100% - 36px));
}

.dashboard-hero,
.dashboard-disclosure {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.ready-stamp {
  border-color: rgba(8, 145, 178, 0.28);
  color: #047891;
  background: #e8f7fb;
}

.dashboard-window {
  margin-bottom: 76px;
  overflow: hidden;
  border: 1px solid var(--db-line);
  border-radius: 20px;
  background: var(--db-bg);
  box-shadow: 0 28px 80px rgba(20, 35, 55, 0.16);
}

.dashboard-windowbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.72);
  background: #0d2235;
  font-size: 0.7rem;
}

.window-title,
.window-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.window-title strong {
  color: #fff;
}

.window-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19a7ce;
  box-shadow: 0 0 0 5px rgba(25, 167, 206, 0.12);
}

.window-meta b {
  padding: 4px 8px;
  border: 1px solid rgba(25, 167, 206, 0.28);
  border-radius: 999px;
  color: #80d9ed;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 1050px;
  color: var(--db-ink);
  background: var(--db-bg);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px 17px;
  color: #fff;
  background: var(--db-sidebar);
}

.dashboard-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 2px 23px;
}

.dashboard-logo {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #19a7ce;
  font-size: 0.78rem;
  font-weight: 850;
}

.dashboard-identity strong,
.dashboard-identity small {
  display: block;
}

.dashboard-identity strong {
  font-size: 0.89rem;
}

.dashboard-identity small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.61rem;
}

.dashboard-nav {
  display: grid;
  gap: 7px;
}

.dashboard-nav button {
  width: 100%;
  min-height: 52px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.dashboard-nav button:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateX(2px);
}

.dashboard-nav button.is-active {
  color: var(--db-navy);
  background: #fff;
}

.dashboard-nav strong,
.dashboard-nav span {
  display: block;
}

.dashboard-nav strong {
  font-size: 0.72rem;
}

.dashboard-nav span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.58rem;
}

.dashboard-nav button.is-active span {
  color: #5d6d7c;
}

.dashboard-source-note {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.dashboard-source-note span,
.dashboard-source-note p {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.58rem;
}

.dashboard-source-note strong {
  font-size: 0.67rem;
}

.dashboard-source-note p {
  margin: 0;
}

.dashboard-main {
  min-width: 0;
  padding: 24px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  margin-bottom: 10px;
}

.dashboard-topbar p {
  margin: 0;
  color: var(--db-muted);
  font-size: 0.61rem;
  letter-spacing: 0.03em;
}

.dashboard-topbar h2 {
  margin: 4px 0 0;
  color: var(--db-ink);
  font-size: 1.5rem;
  line-height: 1.15;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
}

.read-only-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--db-muted);
  font-size: 0.61rem;
  font-weight: 700;
}

.read-only-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--db-green);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.dashboard-toolbar button,
.db-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--db-line);
  border-radius: 8px;
  color: var(--db-navy);
  background: var(--db-surface);
  font: inherit;
  font-size: 0.63rem;
  font-weight: 750;
  cursor: pointer;
}

.dashboard-toolbar button:hover,
.db-button:hover {
  border-color: #9bb6ca;
}

.db-button.primary {
  border-color: var(--db-navy);
  color: #fff;
  background: var(--db-navy);
}

.demo-notice {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  margin-bottom: 14px;
  padding: 9px 11px;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  color: #52677b;
  background: #f8fbff;
  font-size: 0.62rem;
}

.demo-notice > span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--db-cyan);
  font-family: Georgia, serif;
  font-size: 0.6rem;
  font-weight: 800;
}

.demo-notice p {
  margin: 0;
}

.module-surface {
  display: grid;
  gap: 15px;
  min-width: 0;
}

.dashboard-noscript {
  padding: 18px;
  color: var(--db-red);
  background: #fff;
}

.module-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--db-line);
  border-radius: 8px;
  background: var(--db-surface);
  box-shadow: var(--db-shadow);
}

.module-controls.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.control-field {
  display: grid;
  gap: 6px;
  color: var(--db-muted);
  font-size: 0.59rem;
}

.control-field input,
.control-field select,
.table-tools input,
.table-tools select,
.report-controls select,
.report-controls input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--db-line);
  border-radius: 8px;
  padding: 0 9px;
  color: var(--db-ink);
  background: #fff;
  font: inherit;
  font-size: 0.65rem;
}

.control-field input:focus,
.control-field select:focus,
.table-tools input:focus,
.table-tools select:focus,
.report-controls select:focus,
.report-controls input:focus {
  border-color: #77a9c9;
  outline: 3px solid rgba(8, 145, 178, 0.09);
}

.module-controls > .db-button {
  align-self: end;
}

.demo-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--db-line);
  border-radius: 8px;
  background: var(--db-surface);
  box-shadow: var(--db-shadow);
}

.demo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--db-line);
}

.demo-panel-header h3,
.demo-panel-header h4 {
  margin: 0;
  color: var(--db-ink);
  font-size: 0.78rem;
}

.demo-panel-header span,
.demo-panel-header small {
  color: var(--db-muted);
  font-size: 0.57rem;
}

.demo-panel-body {
  padding: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.summary-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.summary-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 13px 12px 11px;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #f8fbff;
}

.summary-card::after {
  position: absolute;
  right: 11px;
  bottom: 7px;
  left: 11px;
  height: 4px;
  border-radius: 999px;
  background: var(--card-accent, #19a7ce);
  content: "";
}

.summary-card span,
.summary-card small {
  display: block;
  color: var(--db-muted);
}

.summary-card span {
  overflow: hidden;
  font-size: 0.57rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card strong {
  display: block;
  margin: 5px 0 15px;
  overflow: hidden;
  color: var(--db-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card small {
  position: absolute;
  right: 11px;
  bottom: 13px;
  left: 11px;
  overflow: hidden;
  font-size: 0.49rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card.is-solid {
  color: #fff;
  border-color: var(--db-navy);
  background: var(--db-navy);
}

.summary-card.is-solid span,
.summary-card.is-solid strong,
.summary-card.is-solid small {
  color: #fff;
}

.summary-card.is-solid::after {
  background: #19a7ce;
}

.cohort-explainer {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.6fr);
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #dbe5f0;
  border-left: 4px solid #ef8b18;
  border-radius: 8px;
  background: linear-gradient(120deg, #fffaf2 0%, #f8fbff 68%);
}

.cohort-copy span {
  color: #b66b08;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.cohort-copy h4,
.cohort-copy p {
  margin: 0;
}

.cohort-copy h4 {
  margin-top: 5px;
  color: #17324c;
  font-size: 14px;
}

.cohort-copy p {
  margin-top: 6px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.65;
}

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

.cohort-stats article {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dce6f1;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
}

.cohort-stats span,
.cohort-stats strong {
  display: block;
}

.cohort-stats span {
  color: #708096;
  font-size: 9px;
}

.cohort-stats strong {
  margin-top: 4px;
  overflow: hidden;
  color: #17324c;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-palette-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid #dce6f1;
  border-radius: 8px;
  background: #f8fafd;
}

.monthly-palette-toolbar > div:first-child strong,
.monthly-palette-toolbar > div:first-child span {
  display: block;
}

.monthly-palette-toolbar > div:first-child strong {
  color: #17324c;
  font-size: 11px;
}

.monthly-palette-toolbar > div:first-child span {
  margin-top: 3px;
  color: #708096;
  font-size: 9px;
}

.monthly-palette-buttons {
  display: flex;
  gap: 7px;
}

.monthly-palette-buttons button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #cfddeb;
  border-radius: 7px;
  color: #52677b;
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.monthly-palette-buttons i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2878aa;
}

.monthly-palette-buttons [data-monthly-palette="orange"] i {
  background: #ef8b18;
}

.monthly-palette-buttons [data-monthly-palette="blue"].is-active {
  color: #174b77;
  border-color: #9fc9ed;
  background: #dcecff;
}

.monthly-palette-buttons [data-monthly-palette="orange"].is-active {
  color: #8a5318;
  border-color: #efc890;
  background: #fff1db;
}

.monthly-palette-buttons button.is-active i {
  background: currentColor;
}

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

.period-card {
  padding: 13px;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  background: #f8fbff;
}

.period-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--db-muted);
  font-size: 0.58rem;
}

.period-card header strong {
  color: var(--db-ink);
  font-size: 0.7rem;
}

.period-card .period-value {
  display: block;
  margin-bottom: 8px;
  color: var(--db-ink);
  font-size: 1.06rem;
  font-weight: 800;
}

.period-stats {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  color: var(--db-muted);
  font-size: 0.55rem;
}

.period-stats b {
  color: #34495a;
  font-weight: 700;
  text-align: right;
}

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

.metric-chart-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #f8fbff;
}

.metric-chart-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px 7px;
  border-bottom: 1px solid #d8e5f2;
}

.metric-chart-card h4 {
  margin: 0;
  color: var(--db-ink);
  font-size: 0.64rem;
}

.metric-chart-card header span {
  display: block;
  margin-top: 2px;
  color: var(--db-muted);
  font-size: 0.49rem;
}

.chart-box {
  height: 180px;
  padding: 6px 9px 9px;
}

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

.db-chart {
  display: block;
  width: 100%;
  height: 100%;
}

.db-gridline {
  stroke: #dce6ef;
  stroke-width: 1;
}

.db-axis-label {
  fill: #77879a;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 9px;
}

.db-line {
  fill: none;
  stroke: var(--chart-color, #2563eb);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.db-area {
  fill: var(--chart-fill, rgba(37, 99, 235, 0.1));
}

.db-point {
  fill: #fff;
  stroke: var(--chart-color, #2563eb);
  stroke-width: 1.8;
}

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

.bar-chart {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 22px;
  height: 165px;
  padding: 18px 12px 20px;
  border-top: 1px solid #e5ecf4;
}

.bar-column {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 7px;
  align-items: end;
  width: 48px;
  height: 100%;
  color: var(--db-muted);
  font-size: 0.48rem;
  text-align: center;
}

.bar-column i {
  position: relative;
  display: block;
  width: 100%;
  min-height: 2px;
  border-radius: 5px 5px 1px 1px;
  background: var(--bar-color);
}

.bar-column i::before {
  position: absolute;
  top: -15px;
  left: 50%;
  color: #33475a;
  content: attr(data-value);
  font-size: 0.47rem;
  font-style: normal;
  font-weight: 700;
  transform: translateX(-50%);
  white-space: nowrap;
}

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

.split-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: 12px;
}

.table-tools {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(2, minmax(110px, 0.42fr));
  gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--db-line);
  background: #fbfdff;
}

.table-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 13px;
  color: var(--db-muted);
  background: #f8fbff;
  font-size: 0.55rem;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
  scrollbar-color: #b8c7d9 #eef3f8;
}

.table-wrap.tall {
  max-height: 520px;
}

.demo-table {
  width: 100%;
  min-width: 840px;
  border-collapse: separate;
  border-spacing: 0;
  color: #334155;
  font-size: 0.6rem;
  line-height: 1.35;
}

.demo-table.wide {
  min-width: 1500px;
}

.demo-table th,
.demo-table td {
  height: 34px;
  padding: 7px 10px;
  border-right: 1px solid #e3eaf1;
  border-bottom: 1px solid #dbe4ef;
  text-align: right;
  white-space: nowrap;
}

.demo-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #fff;
  background: var(--db-navy);
  font-size: 0.57rem;
  font-weight: 800;
}

.demo-table th:first-child,
.demo-table th:nth-child(2),
.demo-table td:first-child,
.demo-table td:nth-child(2) {
  text-align: left;
}

.demo-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.demo-table tbody tr:hover td {
  background: #edf5ff;
}

.demo-table td:first-child,
.demo-table th:first-child {
  padding-left: 13px;
}

.demo-table.pin-two th:first-child,
.demo-table.pin-two td:first-child,
.demo-table.pin-two th:nth-child(2),
.demo-table.pin-two td:nth-child(2) {
  position: sticky;
  z-index: 2;
}

.demo-table.pin-two th:first-child,
.demo-table.pin-two td:first-child {
  left: 0;
  width: 118px;
  min-width: 118px;
}

.demo-table.pin-two th:nth-child(2),
.demo-table.pin-two td:nth-child(2) {
  left: 118px;
  width: 128px;
  min-width: 128px;
  box-shadow: 5px 0 9px rgba(20, 35, 55, 0.04);
}

.demo-table.pin-two th:first-child,
.demo-table.pin-two th:nth-child(2) {
  z-index: 5;
  background: var(--db-navy);
}

.demo-table.pin-two tbody tr:nth-child(odd) td:first-child,
.demo-table.pin-two tbody tr:nth-child(odd) td:nth-child(2) {
  background: #fff;
}

.demo-table.pin-two tbody tr:nth-child(even) td:first-child,
.demo-table.pin-two tbody tr:nth-child(even) td:nth-child(2) {
  background: #fbfdff;
}

.demo-table.pin-two tbody tr:hover td:first-child,
.demo-table.pin-two tbody tr:hover td:nth-child(2) {
  background: #edf5ff;
}

.money-value {
  color: #153d5a;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.empty-cell {
  height: 80px !important;
  color: var(--db-muted);
  text-align: center !important;
}

.status-chip,
.segment-chip,
.rank-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  color: #047891;
  background: #e8f7fb;
  font-size: 0.51rem;
  font-weight: 800;
}

.status-chip.green,
.segment-chip.green {
  color: #047857;
  background: #e7f7ef;
}

.status-chip.amber,
.segment-chip.amber {
  color: #9a5b05;
  background: #fff4df;
}

.status-chip.red,
.segment-chip.red {
  color: #b42318;
  background: #feecec;
}

.segment-tabs,
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--db-line);
}

.segment-tabs button,
.sub-tabs button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  color: #365266;
  background: #f8fbff;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 750;
  cursor: pointer;
}

.segment-tabs button.is-active,
.sub-tabs button.is-active {
  color: #fff;
  border-color: var(--db-navy);
  background: var(--db-navy);
}

.api-detail-tabs {
  align-items: center;
}

.api-detail-tabs > span {
  margin-right: 3px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

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

.segment-overview button {
  padding: 14px;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  color: var(--db-ink);
  background: #f8fbff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.segment-overview button.is-active {
  border-color: #77a9c9;
  box-shadow: inset 0 0 0 1px #77a9c9;
}

.segment-overview span,
.segment-overview small {
  display: block;
  color: var(--db-muted);
  font-size: 0.55rem;
}

.segment-overview strong {
  display: block;
  margin: 5px 0;
  font-size: 1.24rem;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.rule-card {
  padding: 12px;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #f8fbff;
}

.rule-card b {
  display: block;
  color: var(--db-navy);
  font-size: 0.66rem;
}

.rule-card p {
  margin: 5px 0 0;
  color: var(--db-muted);
  font-size: 0.54rem;
}

.horizontal-bars {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.horizontal-bar {
  display: grid;
  grid-template-columns: minmax(90px, 0.55fr) minmax(120px, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: #465c6d;
  font-size: 0.56rem;
}

.horizontal-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ecf4;
}

.horizontal-bar-track i {
  display: block;
  width: var(--bar-value);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--db-cyan));
}

.horizontal-bar strong {
  color: var(--db-ink);
  font-size: 0.56rem;
}

.factor-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--db-line);
  border-radius: 8px;
  background: var(--db-line);
}

.factor-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 9px 11px;
  background: #fff;
  font-size: 0.56rem;
}

.factor-row strong {
  color: var(--db-navy);
}

.factor-row span {
  color: #52677b;
}

.score-summary {
  display: grid;
  gap: 9px;
}

.score-card {
  padding: 12px;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #f8fbff;
}

.score-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--db-muted);
  font-size: 0.54rem;
}

.score-card strong {
  display: block;
  margin-top: 5px;
  color: var(--db-ink);
  font-size: 1.1rem;
}

.dimension-row {
  display: grid;
  grid-template-columns: 48px 1fr 30px;
  gap: 8px;
  align-items: center;
  margin-top: 7px;
  color: var(--db-muted);
  font-size: 0.52rem;
}

.dimension-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ecf4;
}

.dimension-track i {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: var(--dimension-color);
}

.promotion-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.offer-config {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.8fr));
  gap: 9px;
}

.offer-field {
  padding: 9px 10px;
  border: 1px solid var(--db-line);
  border-radius: 8px;
  background: #fbfdff;
}

.offer-field span,
.offer-field strong {
  display: block;
}

.offer-field span {
  color: var(--db-muted);
  font-size: 0.51rem;
}

.offer-field strong {
  margin-top: 3px;
  color: var(--db-ink);
  font-size: 0.62rem;
}

.report-controls {
  display: grid;
  grid-template-columns: minmax(120px, 0.65fr) repeat(2, minmax(130px, 0.8fr)) auto;
  gap: 10px;
  align-items: end;
}

.report-controls label {
  display: grid;
  gap: 6px;
  color: var(--db-muted);
  font-size: 0.57rem;
}

.report-preview {
  padding: 22px;
  color: #293b4b;
  background: #fff;
}

.report-preview > header {
  padding-bottom: 15px;
  border-bottom: 2px solid var(--db-navy);
}

.report-preview h3,
.report-preview h4 {
  margin: 0;
  color: var(--db-navy);
}

.report-preview h3 {
  font-size: 1.1rem;
}

.report-preview h4 {
  margin-bottom: 8px;
  font-size: 0.72rem;
}

.report-preview header p,
.report-section p,
.report-section li {
  color: #536779;
  font-size: 0.59rem;
}

.report-preview header p {
  margin: 4px 0 0;
}

.report-section {
  padding: 15px 0;
  border-bottom: 1px solid var(--db-line);
}

.report-section:last-child {
  border-bottom: 0;
}

.report-section p {
  margin: 0;
}

.report-section ul {
  display: grid;
  gap: 5px;
  margin: 7px 0 0;
  padding-left: 18px;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.report-kpis div {
  padding: 9px;
  border: 1px solid #d8e5f2;
  border-radius: 6px;
  background: #f8fbff;
}

.report-kpis span,
.report-kpis strong {
  display: block;
}

.report-kpis span {
  color: var(--db-muted);
  font-size: 0.5rem;
}

.report-kpis strong {
  margin-top: 3px;
  color: var(--db-navy);
  font-size: 0.75rem;
}

.report-controls-static {
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.8fr) auto;
}

.report-public-note,
.report-source-note {
  margin: 10px 0 0;
  color: var(--db-muted);
  font-size: 11px;
  line-height: 1.7;
}

.report-preview-panel > .demo-panel-header {
  border-bottom-color: #cfdbe8;
  background: #f8fbff;
}

.report-document {
  padding: 0;
  overflow: hidden;
  color: #293b4b;
  background: #fff;
}

.report-cover {
  padding: 24px 26px 20px;
  border-bottom: 3px solid #3f789c;
  background: linear-gradient(135deg, #f5f9fd, #fff 72%);
}

.report-cover p {
  margin: 0 0 7px;
  color: #3f789c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.report-cover h3 {
  color: #12324d;
  font-size: 23px;
}

.report-cover span {
  display: block;
  margin-top: 7px;
  color: #607387;
  font-size: 11px;
}

.report-structured-section {
  padding: 22px 26px;
  border-bottom: 1px solid #dbe5ef;
}

.report-structured-section:last-child {
  border-bottom: 0;
}

.report-section-heading {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 15px;
}

.report-section-heading > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #fff;
  border-radius: 6px;
  background: #3f789c;
  font-size: 10px;
  font-weight: 900;
}

.report-section-heading h4 {
  margin: 0;
  color: #17324c;
  font-size: 17px;
}

.report-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.report-overview-card {
  --report-accent: #2878aa;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce6f1;
  border-top: 4px solid var(--report-accent);
  border-radius: 7px;
  background: linear-gradient(145deg, #f7fbff, #fff 74%);
}

.report-overview-card[data-group="order"] {
  --report-accent: #ef8b18;
}

.report-overview-card[data-group="traffic"] {
  --report-accent: #2878aa;
}

.report-overview-card header {
  display: flex;
  gap: 7px;
  align-items: center;
}

.report-overview-card header > span {
  padding: 2px 6px;
  color: var(--report-accent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--report-accent) 10%, #fff);
  font-size: 9px;
  font-weight: 800;
}

.report-overview-card header h4 {
  margin: 0;
  color: #30465a;
  font-size: 11px;
}

.report-overview-value {
  display: block;
  margin-top: 12px;
  color: #0f172a;
  font-size: 19px;
}

.report-overview-comparison,
.report-overview-third {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.report-overview-comparison b,
.report-overview-comparison small,
.report-overview-third span,
.report-overview-third strong {
  font-size: 9px;
}

.report-overview-comparison small,
.report-overview-third span {
  color: #708096;
}

.report-overview-comparison b.is-up,
.report-channel-grid small.is-up {
  color: #059669;
}

.report-overview-comparison b.is-down,
.report-channel-grid small.is-down {
  color: #dc2626;
}

.report-overview-comparison b.is-neutral,
.report-overview-comparison b.is-unavailable,
.report-channel-grid small.is-neutral,
.report-channel-grid small.is-unavailable {
  color: #64748b;
}

.report-overview-third {
  padding-top: 7px;
  border-top: 1px dashed #dce6f1;
}

.report-overview-third strong {
  color: #334155;
}

.report-subheading {
  margin: 20px 0 9px;
  color: #17324c;
  font-size: 13px;
}

.report-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.report-channel-grid article {
  padding: 11px;
  border: 1px solid #dce6f1;
  border-radius: 7px;
  background: #fbfdff;
}

.report-channel-grid header {
  display: flex;
  gap: 7px;
  align-items: center;
}

.report-channel-grid header i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--channel-color);
}

.report-channel-grid header strong {
  color: #17324c;
  font-size: 11px;
}

.report-channel-grid article > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  font-size: 9px;
}

.report-channel-grid article > div span {
  color: #708096;
}

.report-channel-grid article > div b {
  color: #334155;
  text-align: right;
}

.report-channel-grid article > small {
  display: block;
  margin-top: 8px;
  font-size: 8px;
}

.report-summary-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.report-summary-matrix article {
  padding: 11px;
  border: 1px solid #dce6f1;
  border-left: 3px solid #4f8fc0;
  border-radius: 7px;
  background: #f8fafd;
}

.report-summary-matrix span,
.report-summary-matrix strong,
.report-summary-matrix small {
  display: block;
}

.report-summary-matrix span {
  color: #64748b;
  font-size: 9px;
}

.report-summary-matrix strong {
  margin-top: 5px;
  color: #0f172a;
  font-size: 16px;
}

.report-summary-matrix small {
  margin-top: 4px;
  color: #718096;
  font-size: 8px;
  line-height: 1.45;
}

.report-trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.report-action-list {
  display: grid;
  gap: 9px;
}

.report-action-list article {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce6f1;
  border-radius: 7px;
  background: #f8fafd;
}

.report-action-list article > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  border-radius: 6px;
  background: #0891b2;
  font-size: 9px;
  font-weight: 900;
}

.report-action-list h5,
.report-action-list p {
  margin: 0;
}

.report-action-list h5 {
  color: #17324c;
  font-size: 11px;
}

.report-action-list p {
  margin-top: 4px;
  color: #64748b;
  font-size: 9px;
  line-height: 1.6;
}

.report-observation-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #52677b;
  font-size: 10px;
  line-height: 1.65;
}

.freshness-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.freshness-card {
  padding: 13px;
  border: 1px solid #cfe7dc;
  border-radius: 8px;
  background: #f5fcf8;
}

.freshness-card.is-missing {
  border-color: #f0d7ad;
  background: #fffaf0;
}

.freshness-card header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.freshness-card header span,
.freshness-card header b {
  color: #059669;
  font-size: 8px;
}

.freshness-card.is-missing header span,
.freshness-card.is-missing header b {
  color: #b66b08;
}

.freshness-card h4 {
  margin: 12px 0 4px;
  color: #17324c;
  font-size: 11px;
}

.freshness-card > strong {
  color: #0f172a;
  font-size: 15px;
}

.freshness-card p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 8px;
  line-height: 1.45;
}

.operations-signal {
  display: grid;
  gap: 3px;
  min-width: 78px;
}

.operations-signal strong {
  color: #17324c;
}

.operations-signal small {
  font-size: 9px;
}

.operations-signal.is-up small {
  color: #059669;
}

.operations-signal.is-down small {
  color: #dc2626;
}

.operations-signal.is-neutral small {
  color: #64748b;
}

.operations-summary {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.operations-summary.is-mixed {
  color: #965806;
  background: #fff3dc;
}

.operations-summary.is-up {
  color: #047857;
  background: #e7f7ef;
}

.operations-summary.is-down {
  color: #b42318;
  background: #feecec;
}

.operations-summary.is-neutral {
  color: #64748b;
  background: #eef3f8;
}

.operations-missing-rule {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 17px;
  border: 1px solid #f0d7ad;
  border-radius: 9px;
  background: #fffaf0;
}

.operations-missing-rule > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: #d97706;
  font-size: 24px;
  font-weight: 900;
}

.operations-missing-rule h4,
.operations-missing-rule p {
  margin: 0;
}

.operations-missing-rule h4 {
  color: #17324c;
  font-size: 15px;
}

.operations-missing-rule p {
  margin-top: 5px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.6;
}

.operations-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.operations-rule-grid article {
  padding: 12px;
  border: 1px solid #dce6f1;
  border-radius: 7px;
  background: #f8fafd;
}

.operations-rule-grid strong {
  color: #17324c;
  font-size: 10px;
}

.operations-rule-grid p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 9px;
  line-height: 1.55;
}

/* Sync with the final computed visual layer in the source dashboard. */
.dashboard-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  color: #0f172a;
  background: #f6f8fc;
  font-size: 13px;
}

.dashboard-sidebar {
  padding: 20px 14px;
  color: #17324c;
  border-right: 1px solid #dbe5f0;
  background: #f8fbff;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.035);
}

.dashboard-identity strong {
  color: #17324c;
  font-size: 14px;
}

.dashboard-identity small {
  color: #6b7a90;
  font-size: 11px;
}

.dashboard-logo {
  color: #fff;
  background: #2563eb;
}

.dashboard-nav button {
  min-height: 50px;
  border-color: #dce6f1;
  color: #17324c;
  background: #fff;
}

.dashboard-nav button:hover {
  border-color: #dce6f1;
  background: #edf4fb;
}

.dashboard-nav button.is-active {
  border-color: #c7d9ec;
  color: #17324c;
  background: #e7f0fb;
}

.dashboard-nav strong {
  font-size: 13px;
}

.dashboard-nav span,
.dashboard-nav button.is-active span {
  color: #6b7a90;
  font-size: 11px;
}

.dashboard-source-note {
  border-color: #dce6f1;
  background: #fff;
}

.dashboard-source-note span,
.dashboard-source-note p {
  color: #6b7a90;
  font-size: 10px;
}

.dashboard-source-note strong {
  color: #17324c;
  font-size: 12px;
}

.dashboard-main {
  padding: 22px;
  background: #f6f8fc;
}

.dashboard-topbar {
  min-height: 88px;
}

.dashboard-topbar p {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-topbar h2 {
  color: #0f172a;
  font-size: 25px;
}

.db-button.primary {
  border-color: #3f789c;
  background: #3f789c;
}

.db-button.primary:hover {
  border-color: #326781;
  background: #326781;
}

.demo-panel {
  border-color: #dbe4ef;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.demo-panel-header h3,
.demo-panel-header h4 {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.summary-card {
  border-color: #e0e8f1;
  border-left: 3px solid #4f8fc0;
  background: #f8fafd;
}

.summary-card::after {
  background: #0891b2;
}

.summary-card span {
  font-size: 11px;
}

.summary-card strong {
  font-size: 21px;
}

.summary-card small {
  font-size: 9px;
}

.demo-table {
  color: #334155;
  font-size: 12px;
}

.demo-table th,
.demo-table td {
  height: 34px;
  padding: 0 12px;
  border-bottom-color: #e5ecf4;
}

.demo-table th {
  color: #17324c;
  background: #edf4fb;
  font-size: 12px;
}

.demo-table.pin-two th:first-child,
.demo-table.pin-two th:nth-child(2) {
  background: #edf4fb;
}

.table-wrap {
  scrollbar-color: #9aa9bc #eef3f8;
}

.table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-wrap::-webkit-scrollbar-track {
  background: #eef3f8;
}

.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #9aa9bc;
}

.dashboard-disclosure {
  margin-bottom: 80px;
}

.dashboard-disclosure h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 25px;
}

.disclosure-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
}

.disclosure-grid article > span {
  color: var(--db-cyan);
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.disclosure-grid h3 {
  margin: 13px 0 6px;
  color: var(--navy);
  font-size: 0.93rem;
}

.disclosure-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1020px) {
  .dashboard-shell {
    display: block;
    min-height: 0;
  }

  .dashboard-sidebar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
  }

  .dashboard-identity {
    padding: 0;
  }

  .dashboard-logo {
    width: 40px;
    height: 40px;
  }

  .dashboard-nav {
    display: flex;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dashboard-nav::-webkit-scrollbar {
    display: none;
  }

  .dashboard-nav button {
    width: auto;
    min-width: 132px;
    flex: 0 0 auto;
  }

  .dashboard-source-note {
    display: none;
  }

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

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

  .report-overview-grid,
  .report-channel-grid,
  .freshness-grid,
  .report-summary-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-grid,
  .compare-bars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dashboard-page {
    width: min(100% - 18px, 1400px);
  }

  .dashboard-window {
    margin-bottom: 56px;
    border-radius: 15px;
  }

  .dashboard-windowbar {
    min-height: 48px;
    padding: 0 13px;
  }

  .window-title > span:last-child,
  .window-meta > span {
    display: none;
  }

  .dashboard-sidebar {
    display: block;
    padding: 12px;
  }

  .dashboard-identity {
    display: none;
  }

  .dashboard-nav {
    justify-content: flex-start;
  }

  .dashboard-nav button {
    min-width: 116px;
    min-height: 45px;
    padding: 7px 9px;
  }

  .dashboard-nav strong {
    font-size: 0.65rem;
  }

  .dashboard-nav span {
    display: none;
  }

  .dashboard-main {
    padding: 15px 11px 18px;
  }

  .dashboard-topbar {
    min-height: 58px;
  }

  .dashboard-topbar h2 {
    font-size: 1.18rem;
  }

  .read-only-status {
    display: none;
  }

  .module-controls,
  .module-controls.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .period-grid,
  .segment-overview,
  .rule-grid,
  .promotion-overview,
  .report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-overview-grid,
  .report-channel-grid,
  .freshness-grid,
  .report-summary-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-trend-grid,
  .operations-rule-grid {
    grid-template-columns: 1fr;
  }

  .cohort-explainer {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .compare-bars-grid,
  .two-column,
  .split-column {
    grid-template-columns: 1fr;
  }

  .table-tools {
    grid-template-columns: 1fr 1fr;
  }

  .table-tools > :first-child {
    grid-column: 1 / -1;
  }

  .offer-config,
  .report-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-controls .db-button {
    min-height: 36px;
  }

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

@media (max-width: 480px) {
  .dashboard-toolbar button {
    display: none;
  }

  .demo-notice {
    grid-template-columns: 1fr;
  }

  .demo-notice > span {
    display: none;
  }

  .module-controls,
  .module-controls.three,
  .summary-grid,
  .summary-grid.five,
  .summary-grid.four,
  .period-grid,
  .segment-overview,
  .rule-grid,
  .promotion-overview,
  .offer-config,
  .report-controls,
  .report-kpis,
  .report-overview-grid,
  .report-channel-grid,
  .freshness-grid,
  .report-summary-matrix {
    grid-template-columns: 1fr;
  }

  .table-tools {
    grid-template-columns: 1fr;
  }

  .chart-box {
    height: 155px;
  }

  .horizontal-bar {
    grid-template-columns: 82px 1fr;
  }

  .horizontal-bar strong {
    grid-column: 2;
  }

  .report-preview {
    padding: 15px;
  }

  .report-document,
  .report-structured-section,
  .operations-panel {
    padding: 15px;
  }

  .cohort-stats {
    grid-template-columns: 1fr;
  }

  .monthly-palette-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .monthly-palette-buttons button {
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-nav button {
    transition: none;
  }
}

.db-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Homepage uses ?embed=1 to show only the interactive dashboard, not a second site header. */
html.is-embedded body {
  min-width: 0;
  overflow-x: hidden;
  background: #f5f7fb;
}

html.is-embedded .skip-link,
html.is-embedded .site-header,
html.is-embedded .dashboard-hero,
html.is-embedded .dashboard-disclosure,
html.is-embedded .site-footer {
  display: none;
}

html.is-embedded .dashboard-page {
  width: 100%;
  margin: 0;
}

html.is-embedded .dashboard-window {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 2026-08-31: final light-surface pass for the public dashboard demo. */
.dashboard-windowbar {
  border-bottom: 1px solid #c9dff2;
  color: #5b7187;
  background: linear-gradient(90deg, #f7fbff, #e6f2ff);
}

.dashboard-windowbar .window-title strong {
  color: #173e62;
}

.dashboard-windowbar .window-meta b {
  border-color: #add3ed;
  color: #147895;
  background: #edf9ff;
}

.dashboard-logo {
  border: 1px solid #a9cdea;
  color: #174b75;
  background: #dcecff;
}

.db-button.primary,
.segment-tabs button.is-active,
.sub-tabs button.is-active {
  border-color: #9fc9ed;
  color: #174b77;
  background: #dcecff;
  box-shadow: 0 8px 18px rgba(61, 120, 166, 0.12);
}

.db-button.primary:hover,
.segment-tabs button.is-active:hover,
.sub-tabs button.is-active:hover {
  border-color: #85b8e2;
  color: #103d62;
  background: #cfe5fb;
}

.summary-card.is-solid {
  border-color: #b8d7ec;
  color: #174a72;
  background: linear-gradient(145deg, #f5fbff, #dceefa);
}

.summary-card.is-solid span,
.summary-card.is-solid strong,
.summary-card.is-solid small {
  color: #174a72;
}
