/* VERTU 国内渠道周报 — 离线模板 */
:root {
  --bg-primary: #0c0c0e;
  --bg-secondary: #141418;
  --bg-card: #1a1a20;
  --bg-card-hover: #22222a;
  --border: rgba(201, 169, 98, 0.15);
  --border-strong: rgba(201, 169, 98, 0.35);
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --gold-dark: #9a7b3c;
  --text-primary: #f4f2ed;
  --text-secondary: #9a9690;
  --text-muted: #6b6760;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --font-display: "Georgia", "Times New Roman", "Songti SC", "SimSun", serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-tool {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-tool:hover {
  color: var(--gold);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.btn-tool.btn-primary {
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-color: var(--gold);
  font-weight: 500;
}

.btn-tool.btn-primary:hover {
  filter: brightness(1.1);
  color: var(--bg-primary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-meta {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.header-meta strong {
  color: var(--gold);
  font-weight: 500;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.sync-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.sync-status[data-status="connecting"] .sync-dot {
  background: #fbbf24;
  animation: sync-pulse 1.2s ease-in-out infinite;
}

.sync-status[data-status="synced"] .sync-dot {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

.sync-status[data-status="saving"] .sync-dot {
  background: #4da6ff;
  animation: sync-pulse 0.8s ease-in-out infinite;
}

.sync-status[data-status="offline"] .sync-dot {
  background: #94a3b8;
}

.sync-status[data-status="pending"] .sync-dot {
  background: #f59e0b;
  animation: sync-pulse 1s ease-in-out infinite;
}

.sync-status[data-status="synced"] {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.sync-status[data-status="pending"] {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.user-edits-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.user-edits-label {
  opacity: 0.85;
}

.user-edits-input,
.user-edits-select {
  font: inherit;
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  max-width: 7rem;
}

.user-edits-select {
  max-width: 9rem;
}

.user-view-hint {
  opacity: 0.9;
}

.user-view-hint--readonly {
  color: #ffb347;
}

.user-view-hint--self {
  color: #8fd4a0;
}

.module-readonly {
  opacity: 0.92;
}

.module-readonly .module-analysis-tools,
.module-readonly .btn-del-li,
.module-readonly .btn-del-cat,
.module-readonly .btn-del-pair,
.module-readonly .btn-add-li,
.module-readonly .btn-add-pair,
.module-readonly .module-review-judgment {
  pointer-events: none;
  opacity: 0.45;
}

.module-readonly .module-review-editable,
.module-readonly .module-review-note {
  pointer-events: none;
}

@keyframes sync-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* ── Navigation ── */
.week-selector {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  position: sticky;
  top: var(--nav-height);
  z-index: 98;
}

.week-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.week-btn {
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.week-btn:hover { color: var(--gold); border-color: var(--border-strong); }
.week-btn.active {
  color: var(--bg-primary);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 500;
}

.week-mtd {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 0;
  flex: 1 1 auto;
  text-align: right;
}

/* ── 数据 freshness · 未更新红字标注 ── */
.data-stale-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: 4px;
  vertical-align: middle;
  white-space: nowrap;
  cursor: help;
}

.data-stale-badge--nav {
  margin-left: 0.35rem;
  font-size: 0.62rem;
  padding: 0.08rem 0.35rem;
  vertical-align: text-top;
}

.data-stale-inline {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #fca5a5;
  vertical-align: middle;
}

.data-stale-anchor {
  display: inline;
}

.data-stale-inline-host {
  margin: 0 0 0.75rem;
  min-height: 0;
}

.data-stale-inline-host:empty {
  display: none;
}

.data-freshness-banner {
  margin: 0;
  padding: 0.75rem 2rem;
  background: rgba(248, 113, 113, 0.1);
  border-bottom: 1px solid rgba(248, 113, 113, 0.35);
}

.data-freshness-banner-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 0.45rem;
}

.data-freshness-banner-list {
  margin: 0 0 0.5rem 1.1rem;
  padding: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #fecaca;
}

.data-freshness-banner-list li {
  margin-bottom: 0.2rem;
}

.data-freshness-banner-list strong {
  color: #f87171;
  font-weight: 700;
}

.data-freshness-banner-ok {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.kpi-label .data-stale-badge,
.channel-name .data-stale-badge,
.ocp-name .data-stale-badge,
.card-title .data-stale-badge,
.section-header h2 .data-stale-badge,
.subsection-title .data-stale-badge,
.dr-h3 .data-stale-badge,
.dr-meta-bar .data-stale-badge {
  margin-left: 0.5rem;
}

.dr-meta-bar .data-stale-badge {
  display: block;
  margin: 0.35rem 0 0;
  width: fit-content;
}

.timeline-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-week {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-item ul {
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.main-nav {
  position: sticky;
  top: calc(var(--nav-height) + 42px);
  z-index: 99;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  gap: 0;
}

.nav-tab {
  padding: 0.85rem 1.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.25s;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
}

.nav-tab:hover { color: var(--text-primary); }

.nav-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Layout ── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.section {
  display: none;
  animation: fadeIn 0.4s ease;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.section.active { display: block; }

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

.section-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── KPI Cards ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.kpi-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.kpi-grid--compact .kpi-card {
  padding: 0.85rem 1rem;
}

.kpi-grid--compact .kpi-value {
  font-size: 1.35rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.kpi-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  opacity: 0.6;
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.kpi-value .unit {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-left: 0.15rem;
}

.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  margin-top: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.kpi-delta.up { color: var(--success); background: rgba(74, 222, 128, 0.1); }
.kpi-delta.down { color: var(--danger); background: rgba(248, 113, 113, 0.1); }
.kpi-delta.neutral { color: var(--warning); background: rgba(251, 191, 36, 0.1); }

/* ── Grid Layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.grid-1-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title .badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(201, 169, 98, 0.12);
  color: var(--gold);
  letter-spacing: 0.04em;
}

.annual-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin: 0.5rem 0 0;
}

.chart-wrap {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.chart-wrap.sm { min-height: 200px; }
.chart-wrap.lg { min-height: 320px; }

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  text-align: center;
  padding: 0.65rem 0.75rem;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
  background: rgba(201, 169, 98, 0.05);
}

.data-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  text-align: center;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.data-table .num {
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.data-table .highlight { color: var(--gold-light); font-weight: 500; }
.data-table .danger { color: var(--danger); }
.data-table .success { color: var(--success); }
.data-table .warning { color: var(--warning); font-weight: 600; }

.table-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.data-table.compact th,
.data-table.compact td {
  padding: 0.4rem 0.35rem;
  font-size: 0.72rem;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.data-table .total-row td {
  font-weight: 600;
  border-top: 2px solid var(--border);
  background: rgba(240, 192, 64, 0.06);
}

.data-table .staff-lead {
  color: var(--danger);
  font-weight: 600;
}

.data-table .fold-top3 {
  color: var(--accent-blue, #4da6ff);
  font-weight: 600;
}

/* ── Progress Bars ── */
.progress-list { list-style: none; }

.progress-item {
  margin-bottom: 1rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.progress-header .name { color: var(--text-primary); }
.progress-header .pct { color: var(--gold); font-variant-numeric: tabular-nums; }

.progress-meta {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.progress-meta .val {
  color: var(--gold);
  font-weight: 600;
}

.progress-meta .rate {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-meta .rate.success { color: var(--success); }
.progress-meta .rate.warn { color: var(--warning); }
.progress-meta .rate.danger { color: var(--danger); }

.progress-fill.success { background: linear-gradient(90deg, #059669, var(--success)); }

.annual-stores-chart .progress-track {
  height: 8px;
}

.annual-stores-chart .progress-item {
  margin-bottom: 0.85rem;
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width 0.8s ease;
  position: relative;
}

.progress-fill.warn { background: linear-gradient(90deg, #b45309, var(--warning)); }
.progress-fill.danger { background: linear-gradient(90deg, #991b1b, var(--danger)); }

/* ── Alert / Issue Cards ── */
.alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.alert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.alert-card.warning { border-left-color: var(--warning); }
.alert-card.info { border-left-color: var(--info); }

.alert-card h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.alert-card p, .alert-card li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.alert-card ul {
  padding-left: 1.1rem;
  margin-top: 0.35rem;
}

/* ── Plan / Action List ── */
.action-list {
  list-style: none;
}

.action-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.action-list li:last-child { border-bottom: none; }

.action-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--gold);
}

/* ── Summary Block ── */
.summary-block {
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.08), rgba(201, 169, 98, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.summary-block h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.summary-block p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── 下月 OKR 拆解 ── */
.okr-breakdown-card {
  margin-bottom: 1.25rem;
}

.okr-breakdown-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.25rem;
  align-items: start;
}

.okr-breakdown-table-col {
  min-width: 0;
}

.okr-breakdown-charts-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.okr-breakdown-chart-card {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.okr-breakdown-chart-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.okr-breakdown-chart {
  height: 200px;
  min-height: 180px;
}

.okr-breakdown-chart--bars {
  height: auto;
  min-height: 320px;
  overflow: visible;
}

.chart-wrap.okr-breakdown-chart--bars {
  overflow: visible;
}

.okr-breakdown-chart--bars .progress-item {
  margin-bottom: 0.55rem;
}

.okr-breakdown-chart--bars .progress-item:last-child {
  margin-bottom: 0;
}

.okr-breakdown-chart .progress-list {
  margin: 0;
  padding: 0;
}

.okr-breakdown-scroll {
  max-height: none;
}

.okr-breakdown-table {
  font-size: 0.85rem;
}

.okr-breakdown-table th:last-child,
.okr-breakdown-table td:last-child {
  text-align: right;
  min-width: 5.5rem;
}

.okr-breakdown-table .okr-bd-region {
  font-weight: 600;
  color: var(--gold-light);
  vertical-align: top;
  white-space: nowrap;
}

.okr-breakdown-table .okr-bd-store {
  text-align: left;
}

.okr-breakdown-table .okr-bd-flag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #92400e;
  background: rgba(251, 191, 36, 0.22);
  border-radius: 4px;
}

.okr-breakdown-table tr.okr-bd-store-row td {
  background: rgba(251, 191, 36, 0.08);
}

.okr-breakdown-table tr.okr-bd-subtotal td {
  background: rgba(96, 165, 250, 0.12);
  font-weight: 700;
  color: #93c5fd;
}

.okr-breakdown-table tr.okr-bd-direct td {
  background: rgba(59, 130, 246, 0.22);
  font-weight: 700;
  color: #bfdbfe;
}

.okr-breakdown-table tr.okr-bd-agency td {
  background: rgba(167, 139, 250, 0.15);
  font-weight: 700;
  color: #c4b5fd;
}

.okr-breakdown-table tr.okr-bd-live td {
  background: rgba(148, 163, 184, 0.1);
}

.okr-breakdown-table tr.okr-bd-douyin td {
  background: rgba(100, 116, 139, 0.18);
  font-weight: 700;
  color: #cbd5e1;
}

.okr-breakdown-table tr.okr-bd-grand td {
  background: rgba(30, 58, 95, 0.85);
  font-weight: 700;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.okr-breakdown-table tr.okr-bd-section td {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

@media print {
  .okr-breakdown-table tr.okr-bd-flag td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (max-width: 960px) {
  .okr-breakdown-layout {
    grid-template-columns: 1fr;
  }
  .okr-breakdown-charts-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .okr-breakdown-chart-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .okr-breakdown-charts-col {
    grid-template-columns: 1fr;
  }
}

/* ── Subsection Title ── */
.subsection-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--gold);
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  letter-spacing: 0.06em;
}

/* ── Chart SVG Styles ── */
.chart-svg { width: 100%; height: 100%; }
.chart-svg text { fill: var(--text-secondary); font-size: 11px; font-family: var(--font-body); }
.chart-svg text.funnel-text {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 600;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.55);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.chart-svg .axis-line { stroke: rgba(255,255,255,0.08); }
.chart-svg .grid-line { stroke: rgba(255,255,255,0.04); }
.chart-svg .bar { transition: opacity 0.2s; cursor: default; }
.chart-svg .bar:hover { opacity: 0.85; }
.chart-svg .legend-item { cursor: default; }

.chart-data-label {
  fill: #e8edf3;
  font-weight: 600;
  pointer-events: none;
}

.chart-data-label--inside {
  fill: #fff;
  font-weight: 700;
  font-size: 8px;
}

.chart-data-label--donut {
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.progress-bar-label {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  line-height: 1;
}

.progress-track--labeled {
  height: 18px;
  border-radius: 4px;
}

.progress-track--labeled .progress-fill {
  border-radius: 4px;
}

/* ── 表格数据标签 ── */
.data-table td.has-data-label {
  position: relative;
}

.data-table .table-data-label {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  vertical-align: middle;
  background: rgba(201, 169, 98, 0.15);
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.data-table .table-data-label.label-success {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.data-table .table-data-label.label-danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

.data-table .table-data-label.label-muted {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}

.chart-tooltip {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.chart-tooltip.visible { opacity: 1; }

/* ── Donut center label ── */
.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center .val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
}

.donut-center .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Overview Dashboard ── */
.overview-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.overview-channel-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  cursor: pointer;
  transition: all 0.3s;
  border-top: 3px solid var(--border-strong);
  min-width: 0;
  overflow: hidden;
}

.overview-channel-panel.accent-gold { border-top-color: var(--gold); }
.overview-channel-panel.accent-success { border-top-color: var(--success); }
.overview-channel-panel.accent-info { border-top-color: var(--info); }

.overview-channel-panel:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(201, 169, 98, 0.1);
}

.ocp-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ocp-icon {
  font-size: 1.4rem;
  color: var(--gold);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 98, 0.1);
  border-radius: var(--radius);
}

.accent-success .ocp-icon { color: var(--success); background: rgba(74, 222, 128, 0.1); }
.accent-info .ocp-icon { color: var(--info); background: rgba(96, 165, 250, 0.1); }

.ocp-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.ocp-link {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.ocp-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ocp-kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.65rem;
}

.ocp-kpi-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.ocp-kpi-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.ocp-kpi-value.highlight { color: var(--gold-light); font-size: 1.05rem; }
.ocp-kpi-value.danger { color: var(--danger); }

.ocp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.ocp-table td {
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.ocp-table td:first-child {
  color: var(--text-muted);
  white-space: nowrap;
  width: 4.5rem;
  padding-right: 0.5rem;
}

.ocp-table td:last-child {
  color: var(--text-secondary);
  text-align: left;
}

.ocp-table tr:last-child td { border-bottom: none; }

/* ── 全年达成 ── */
.annual-ytd-block {
  margin-bottom: 2rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.annual-ytd-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.25rem;
}

.annual-team-card { display: flex; flex-direction: column; }

.annual-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 0 0.5rem;
}

.annual-hero-value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--gold-light);
  line-height: 1;
}

.annual-hero-unit {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 0.35rem;
}

.annual-hero-rate {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.annual-hero-rate.success { color: var(--success); }
.annual-hero-rate.warn { color: var(--warning); }

.annual-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.annual-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.annual-h2 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--gold);
  padding: 0.65rem 0.75rem;
  background: rgba(201, 169, 98, 0.08);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.annual-quarters { display: flex; flex-direction: column; gap: 0.65rem; }

.annual-q-row {
  display: grid;
  grid-template-columns: 52px 1fr 120px;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
}

.annual-q-label { color: var(--text-muted); }
.annual-q-val { color: var(--text-secondary); text-align: right; white-space: nowrap; }

.progress-fill.success { background: var(--success) !important; }

/* ── 年度业绩看板 v2 ── */
.annual-dashboard--v2 {
  background: linear-gradient(160deg, rgba(22, 32, 48, 0.98) 0%, rgba(15, 25, 35, 0.98) 100%);
  border: 1px solid rgba(201, 169, 98, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem 1.5rem;
}

.annual-dash-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.annual-hero-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.1rem;
  background: rgba(201, 169, 98, 0.06);
  border: 1px solid rgba(201, 169, 98, 0.28);
  border-radius: var(--radius-lg);
}

.annual-hero-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.annual-hero-number {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-light);
  font-weight: 600;
}

.annual-hero-unit {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.annual-hero-target {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.annual-hero-progress-wrap {
  min-width: 0;
}

.annual-hero-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.annual-hero-progress-head strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.annual-hero-progress-head strong.success { color: var(--success); }
.annual-hero-progress-head strong.ok { color: #a78bfa; }
.annual-hero-progress-head strong.warn { color: var(--warning); }
.annual-hero-progress-head strong.muted { color: var(--text-muted); }

.annual-hero-progress {
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.annual-hero-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a78bfa, #6366f1);
  transition: width 0.4s ease;
}

.annual-hero-progress-fill.success { background: linear-gradient(90deg, #34d399, #10b981); }
.annual-hero-progress-fill.ok { background: linear-gradient(90deg, #a78bfa, #818cf8); }
.annual-hero-progress-fill.warn { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.annual-hero-progress-fill.muted { background: rgba(255, 255, 255, 0.15); }

.annual-hero-progress-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.annual-channel-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.annual-channel-chip {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.5rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.annual-channel-name {
  grid-column: 1;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.annual-channel-val {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  line-height: 1.1;
}

.annual-channel-val small {
  font-size: 0.65em;
  color: var(--text-muted);
  margin-left: 0.1em;
}

.annual-channel-rate {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.annual-channel-rate.success { color: var(--success); }
.annual-channel-rate.ok { color: #a78bfa; }
.annual-channel-rate.warn { color: var(--warning); }

.annual-channel-gap {
  grid-column: 1 / span 2;
  font-size: 0.72rem;
  color: #f87171;
}

.annual-section {
  margin-bottom: 1rem;
}

.annual-section--compact {
  margin-bottom: 0;
  min-width: 0;
}

.annual-mid-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

.annual-mid-grid .annual-q-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.annual-dash-row--charts {
  margin-bottom: 1.25rem;
}

.annual-stores-section {
  margin-bottom: 0;
}

.annual-stores-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1rem;
}

.annual-stores-chart-card,
.annual-stores-table-card {
  padding: 1rem 1.15rem 1.15rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.card-title--sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  padding-bottom: 0;
  border: none;
}

.annual-stores-chart {
  min-height: 440px;
}

.annual-stores-chart .chart-svg {
  min-height: 420px;
}

.annual-table-wrap--scroll {
  max-height: 440px;
  overflow-y: auto;
  overflow-x: auto;
}

.annual-section-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.5rem;
  padding-left: 0.55rem;
  border-left: 3px solid var(--gold);
}

.annual-q-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.annual-q-card {
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid rgba(167, 139, 250, 0.5);
}

.annual-q-card.success { border-top-color: var(--success); }
.annual-q-card.ok { border-top-color: #a78bfa; }
.annual-q-card.warn { border-top-color: var(--warning); }
.annual-q-card.muted { border-top-color: rgba(255, 255, 255, 0.15); }

.annual-q-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.55rem;
}

.annual-q-card-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.annual-q-card-rate {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
}

.annual-q-card.success .annual-q-card-rate { color: var(--success); }
.annual-q-card.warn .annual-q-card-rate { color: var(--warning); }
.annual-q-card.muted .annual-q-card-rate { color: var(--text-muted); }

.annual-q-card-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.annual-q-card-fill {
  height: 100%;
  border-radius: 999px;
  background: #a78bfa;
}

.annual-q-card.success .annual-q-card-fill { background: var(--success); }
.annual-q-card.warn .annual-q-card-fill { background: var(--warning); }
.annual-q-card.muted .annual-q-card-fill { background: rgba(255, 255, 255, 0.12); }

.annual-q-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.annual-q-tag {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
}

.annual-q-tag.success { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.annual-q-tag.muted { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

.annual-region-table .unit {
  font-size: 0.75em;
  color: var(--text-muted);
  margin-left: 0.1em;
}

.annual-region-table .num.success { color: var(--success); font-weight: 600; }
.annual-region-table .num.ok { color: #a78bfa; font-weight: 600; }
.annual-region-table .num.warn { color: var(--warning); font-weight: 600; }

.annual-td-name {
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.annual-td-bar {
  min-width: 88px;
  max-width: 140px;
  margin: 0 auto;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}

.annual-inline-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 120px;
}

.annual-inline-fill {
  height: 100%;
  border-radius: 999px;
  background: #a78bfa;
}

.annual-inline-fill.success { background: var(--success); }
.annual-inline-fill.ok { background: #818cf8; }
.annual-inline-fill.warn { background: var(--warning); }

.annual-table-wrap--flat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.15rem 0.35rem;
}

.annual-region-table {
  font-size: 0.8rem;
}

.annual-region-table th,
.annual-region-table td,
.annual-region-table.compact th,
.annual-region-table.compact td {
  padding: 0.38rem 0.45rem;
  line-height: 1.35;
  text-align: center;
  vertical-align: middle;
}

.annual-region-table th {
  padding: 0.42rem 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.annual-region-table .num {
  white-space: nowrap;
}

.annual-region-table tbody tr:hover {
  background: rgba(201, 169, 98, 0.04);
}

/* ── 年度业绩看板（旧版兼容） ── */
.annual-dashboard {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(167, 139, 250, 0.06) 100%);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 1.5rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.annual-dash-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.annual-dash-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #c4b5fd;
  font-weight: 600;
}

.annual-dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  margin-bottom: 1.25rem;
}

.annual-dash-kpi {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  text-align: center;
  min-width: 0;
}

.annual-dash-kpi-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.annual-dash-kpi-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #e9e5ff;
  line-height: 1.1;
}

.annual-dash-kpi-value small {
  font-size: 0.55em;
  font-weight: 500;
  margin-left: 0.1em;
  color: var(--text-muted);
}

.annual-dash-kpi-value.accent { color: #a78bfa; }
.annual-dash-kpi-value.warn { color: #f87171; }

.annual-dash-kpi-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.annual-dash-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.annual-dash-row--half {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.annual-dash-row--full {
  grid-template-columns: minmax(0, 1fr);
}

.annual-dashboard .card {
  min-width: 0;
  overflow: hidden;
}

.annual-chart-fit {
  width: 100%;
  min-height: 260px;
  overflow: hidden;
}

.annual-chart-fit .chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.annual-region-rates--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}

.annual-table-wrap {
  overflow: hidden;
}

.annual-stores-table {
  font-size: 0.8rem;
}

.annual-stores-table th,
.annual-stores-table td {
  text-align: center;
  padding: 0.5rem 0.4rem;
}

.annual-stores-table td.highlight {
  text-align: left;
  word-break: break-word;
}

.annual-monthly-card .section-note,
.annual-dashboard .section-note {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.35rem;
}

.annual-q-donuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.annual-q-donut {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.annual-q-chart {
  width: 100%;
  min-height: 128px !important;
  height: 128px;
  overflow: hidden;
}

.annual-q-chart .chart-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.annual-q-chart .donut-center {
  top: 50%;
  transform: translate(-50%, -58%);
}

.annual-q-chart .donut-center .val {
  font-size: 0.95rem;
  line-height: 1.2;
}

.annual-q-chart .donut-center .lbl {
  font-size: 0.62rem;
  margin-top: 0.1rem;
}

.annual-q-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.5;
  min-height: 2.2em;
}

.annual-q-caption strong { color: #c4b5fd; display: block; }

.annual-region-rates {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.25rem 0;
}

.annual-region-rate {
  display: grid;
  grid-template-columns: 48px 1fr 52px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.annual-region-name { color: var(--text-secondary); }
.annual-region-pct { text-align: right; font-weight: 600; color: var(--text-primary); }
.annual-region-pct.success { color: var(--success); }
.annual-region-pct.warn { color: var(--warning); }

.annual-top5-list { margin-bottom: 0.5rem; }

.annual-top5-row {
  display: grid;
  grid-template-columns: 28px 1fr 72px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.annual-top5-row:last-child { border-bottom: none; }
.annual-top5-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.25);
  color: #c4b5fd;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.annual-top5-name { color: var(--text-primary); }
.annual-top5-val { text-align: right; color: #a78bfa; font-weight: 600; }

@media (max-width: 1100px) {
  .annual-hero-panel {
    grid-template-columns: 1fr;
  }
  .annual-channel-row {
    grid-template-columns: 1fr;
  }
  .annual-mid-grid {
    grid-template-columns: 1fr;
  }
  .annual-stores-grid {
    grid-template-columns: 1fr;
  }
  .annual-q-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .annual-dash-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .annual-dash-row--half,
  .annual-region-rates--grid {
    grid-template-columns: 1fr;
  }
  .annual-q-donuts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .annual-hero-number { font-size: 2.25rem; }
  .annual-hero-progress-head strong { font-size: 1.5rem; }
  .annual-q-grid { grid-template-columns: 1fr; }
  .annual-region-table .annual-td-bar { display: none; }
  .annual-region-table th:last-child,
  .annual-region-table td:last-child { display: none; }
}

.channel-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.channel-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201, 169, 98, 0.12);
}

.channel-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.channel-card:hover::after { opacity: 1; }

.channel-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.channel-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.channel-revenue {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-primary);
  line-height: 1;
}

.channel-revenue span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.channel-meta {
  font-size: 0.82rem;
  color: var(--gold);
  margin-top: 0.5rem;
}

.channel-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.channel-card:hover .channel-link { opacity: 1; }

.okr-progress { padding: 0.5rem 0; }

.okr-row {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.okr-row span:first-child { color: var(--text-secondary); }
.okr-row span:last-child { color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; }

.highlights-list { display: flex; flex-direction: column; gap: 0.6rem; }

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.highlight-item.success { border-left: 2px solid var(--success); }
.highlight-item.warning { border-left: 2px solid var(--warning); }
.highlight-item.danger { border-left: 2px solid var(--danger); }

.highlight-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

.highlight-item.success .highlight-icon { background: rgba(74,222,128,0.15); color: var(--success); }
.highlight-item.warning .highlight-icon { background: rgba(251,191,36,0.15); color: var(--warning); }
.highlight-item.danger .highlight-icon { background: rgba(248,113,113,0.15); color: var(--danger); }

/* ── Text Preview Panel ── */
.text-preview-panel {
  position: fixed;
  top: 0; right: -520px;
  width: 500px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-strong);
  z-index: 200;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
}

.text-preview-panel.open { right: 0; }

.text-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--gold-light);
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
}

.btn-close:hover { color: var(--text-primary); }

#text-preview-content {
  flex: 1;
  overflow: auto;
  padding: 1.25rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Consolas", "PingFang SC", monospace;
}

.text-preview-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success { background: rgba(74, 222, 128, 0.15); border: 1px solid var(--success); color: var(--success); }
.toast-info { background: rgba(96, 165, 250, 0.15); border: 1px solid var(--info); color: var(--info); }
.toast-error { background: rgba(248, 113, 113, 0.15); border: 1px solid var(--danger); color: var(--danger); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-2, .grid-3, .grid-2-1, .grid-1-2, .channel-cards, .overview-channels-grid, .annual-ytd-grid {
    grid-template-columns: 1fr;
  }
  .header-actions { order: 3; width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .container { padding: 1rem; }
  .site-header { padding: 0.75rem 1rem; }
  .main-nav { padding: 0; overflow-x: auto; }
  .nav-tab { padding: 0.75rem 1rem; font-size: 0.82rem; white-space: nowrap; }
  .kpi-value { font-size: 1.5rem; }
  .brand-sub { display: none; }
  .header-meta { display: none; }
  .btn-tool { font-size: 0.72rem; padding: 0.35rem 0.6rem; }
}

@media print {
  .main-nav, .week-selector, .header-actions, .text-preview-panel, .toast,
  .module-analysis-tools, .btn-del-li, .btn-del-cat, .btn-add-li, .btn-add-pair, .btn-del-pair { display: none !important; }
  .site-header { position: static; background: white; border-bottom: 2px solid #333; }
  .section { display: block !important; page-break-before: always; }
  #section-overview { page-break-before: avoid; }
  body { background: white; color: #111; font-size: 12px; }
  .card { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; background: white; }
  .kpi-card { border: 1px solid #ddd; background: #f9f9f9; }
  .summary-block { background: #f5f5f0; border: 1px solid #ddd; }
  .brand-title, .section-header h2, .card-title, .kpi-value { color: #333 !important; }
  .chart-wrap { min-height: 200px; }
  .channel-card { break-inside: avoid; border: 1px solid #ccc; }
  .overview-channel-panel { break-inside: avoid; border: 1px solid #ccc; }
  .alert-card { border: 1px solid #ccc; }
  .module-analysis { break-inside: avoid; page-break-before: auto; border: 1px solid #ccc; }
  .site-footer { color: #666; }
}

/* ── 模块内总监分析（嵌入总览/直营/抖音顶部） ── */
.module-analysis-host {
  margin-top: 2rem;
}

.module-analysis-host--top {
  margin-top: 0;
  margin-bottom: 1.75rem;
}

.module-analysis {
  position: relative;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.module-analysis::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3d5c45, var(--gold), #5a8f6a);
}

.module-analysis-head {
  padding: 1.35rem 1.5rem 1rem;
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.ma-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.ma-head-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ma-role-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.ma-week-chip {
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.module-analysis-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.module-role-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.ma-summary-wrap {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid rgba(201, 169, 98, 0.28);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
}

.ma-summary-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.45rem;
}

.ma-summary {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin: 0;
  outline: none;
}

.ma-summary:focus {
  background: rgba(201, 169, 98, 0.05);
  border-radius: 4px;
}

.module-analysis-tools {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-mini {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: var(--gold-light);
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-mini:hover { background: rgba(201, 169, 98, 0.16); border-color: var(--gold); }
.btn-mini.btn-muted { color: var(--text-muted); background: transparent; border-color: var(--border); }
.btn-mini.btn-muted:hover { color: var(--text-secondary); border-color: var(--border-strong); }

.ma-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 560px;
  margin: 1.1rem auto 1.35rem;
  padding: 0 1.5rem;
}

.ma-diagram-side {
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff;
}

.ma-diagram-problem {
  background: linear-gradient(135deg, #3a5642 0%, #243528 100%);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  padding-right: 1.25rem;
  border-radius: 6px 0 0 6px;
}

.ma-diagram-improve {
  background: linear-gradient(135deg, #4d7a5a 0%, #355a42 100%);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  padding-left: 1.25rem;
  border-radius: 0 6px 6px 0;
}

.ma-diagram-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  z-index: 2;
  margin: 0 -8px;
}

.ma-diagram-up,
.ma-diagram-down {
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  white-space: nowrap;
  line-height: 1.2;
}

.ma-diagram-core {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  color: var(--bg-primary);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(201, 169, 98, 0.45);
}

.module-analysis-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 1.25rem 1.35rem;
}

.analysis-row-inner {
  display: grid;
  grid-template-columns: 108px 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.analysis-row-inner:hover {
  border-color: rgba(201, 169, 98, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.analysis-tag-wrap {
  position: relative;
  background: linear-gradient(180deg, #2f4a36 0%, #1a2a1f 100%);
  border-right: 1px solid rgba(90, 143, 106, 0.25);
  padding: 1rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 100%;
}

.analysis-tag-num {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(201, 169, 98, 0.55);
  letter-spacing: 0.15em;
}

.analysis-tag {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b8dcc0;
  letter-spacing: 0.06em;
  line-height: 1.4;
  outline: none;
  width: 100%;
  word-break: break-all;
}

.analysis-tag:focus {
  color: #e8f5ea;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.btn-del-cat {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.analysis-tag-wrap:hover .btn-del-cat { opacity: 1; }
.btn-del-cat:hover { color: var(--danger); background: rgba(248, 113, 113, 0.15); }

.analysis-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  min-height: 100%;
}

.analysis-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  color: rgba(201, 169, 98, 0.45);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.15);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.analysis-box {
  padding: 0.9rem 1rem;
  font-size: 0.84rem;
  line-height: 1.65;
}

.analysis-box.problems {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.07) 0%, rgba(248, 113, 113, 0.02) 100%);
}

.analysis-box.improvements {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.07) 0%, rgba(74, 222, 128, 0.02) 100%);
}

.analysis-box-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.analysis-box-head .btn-add-li { margin-left: auto; }

.analysis-box-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.analysis-box.problems .analysis-box-icon {
  background: rgba(248, 113, 113, 0.2);
  color: var(--danger);
}

.analysis-box.improvements .analysis-box-icon {
  background: rgba(74, 222, 128, 0.2);
  color: var(--success);
}

.analysis-box.problems .analysis-box-head { color: #fca5a5; }
.analysis-box.improvements .analysis-box-head { color: #86efac; }

.btn-add-li {
  padding: 0.12rem 0.45rem;
  font-size: 0.68rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid currentColor;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.btn-add-li:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }

.editable-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.editable-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.editable-list li:last-child { margin-bottom: 0; }
.editable-list li:hover { background: rgba(255, 255, 255, 0.04); }

.editable-list .li-text {
  flex: 1;
  color: var(--text-secondary);
  outline: none;
  min-height: 1.4em;
  font-size: 0.84rem;
  line-height: 1.55;
}

.editable-list .li-text:focus { color: var(--text-primary); }

.editable-list .li-text:empty::before {
  content: '点击填写…';
  color: var(--text-muted);
  font-style: italic;
}

.editable-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 0.55em;
}

.analysis-box.problems .editable-list li::before { background: var(--danger); opacity: 0.7; }
.analysis-box.improvements .editable-list li::before { background: var(--success); opacity: 0.7; }

.btn-del-li {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.15s;
}

.editable-list li:hover .btn-del-li { opacity: 1; }
.btn-del-li:hover { color: var(--danger); background: rgba(248, 113, 113, 0.12); }

/* ── 直营：问题-措施逐条对应 ── */
.module-analysis--paired .module-analysis-rows {
  gap: 1rem;
}

.analysis-row-inner--paired {
  grid-template-columns: 108px 1fr;
}

.analysis-pairs-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.analysis-pairs-head {
  display: grid;
  grid-template-columns: 1fr 28px 1fr auto;
  align-items: center;
  padding: 0.55rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.aph-col.aph-problem { color: #fca5a5; }
.aph-col.aph-solution { color: #86efac; }

.analysis-pairs-head .btn-add-pair {
  margin-left: 0.5rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.68rem;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.analysis-pairs-head .btn-add-pair:hover {
  background: rgba(201, 169, 98, 0.12);
}

.analysis-pairs {
  display: flex;
  flex-direction: column;
}

.analysis-pair {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.analysis-pair:last-child { border-bottom: none; }

.analysis-pair-problem,
.analysis-pair-solution {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  min-width: 0;
}

.analysis-pair-problem {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.07) 0%, rgba(248, 113, 113, 0.02) 100%);
}

.analysis-pair-solution {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.07) 0%, rgba(74, 222, 128, 0.02) 100%);
}

.analysis-pair-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.15);
  margin-top: 0.1rem;
}

.analysis-pair-problem .li-text.problem,
.analysis-pair-solution .li-text.improvement {
  flex: 1;
  color: var(--text-secondary);
  outline: none;
  min-height: 1.4em;
  font-size: 0.84rem;
  line-height: 1.55;
  word-break: break-word;
}

.analysis-pair-problem .li-text:focus,
.analysis-pair-solution .li-text:focus {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.analysis-pair-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 169, 98, 0.55);
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.12);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.btn-del-pair {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s;
  margin-top: 0.1rem;
}

.analysis-pair:hover .btn-del-pair { opacity: 1; }
.btn-del-pair:hover { color: var(--danger); background: rgba(248, 113, 113, 0.15); }

/* ── 直营 · 人货场 ── */
.pillar-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.pillar-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pillar-people { background: rgba(96, 165, 250, 0.18); color: #60a5fa; }
.pillar-goods { background: rgba(212, 175, 55, 0.18); color: var(--gold); }
.pillar-place { background: rgba(74, 222, 128, 0.15); color: var(--success); }

.mini-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 1.25rem 0 0.65rem;
  letter-spacing: 0.02em;
}

.section-note {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.highend-share-summary {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.highend-share-summary .danger {
  font-weight: 700;
}

.data-table .muted {
  color: var(--text-muted);
  font-size: 0.78em;
}

.detail-notes--success {
  border-left-color: var(--success);
  margin-top: 0.65rem;
}

.detail-notes--success li::before {
  color: var(--success);
}

.detail-notes {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--warning);
}

.detail-notes li {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 0.2rem 0;
}

.detail-notes li::before {
  content: '·';
  margin-right: 0.45rem;
  color: var(--warning);
}

.tag-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-pill.tag-success { background: rgba(74, 222, 128, 0.15); color: var(--success); }
.tag-pill.tag-danger { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.tag-pill.tag-neutral { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }
.tag-pill.tag-info { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.tag-pill.tag-warning { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

@media (max-width: 900px) {
  .ma-diagram { max-width: 100%; padding: 0 1rem; }
  .ma-head-top { flex-direction: column; align-items: flex-start; }
  .module-analysis-tools { width: 100%; }
  .analysis-row-inner,
  .analysis-row-inner--paired { grid-template-columns: 1fr; }
  .analysis-tag-wrap {
    flex-direction: row;
    padding: 0.75rem 1rem;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(90, 143, 106, 0.25);
  }
  .analysis-tag-num { display: none; }
  .analysis-cols { grid-template-columns: 1fr; }
  .analysis-flow-arrow {
    width: 100%;
    height: 28px;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .analysis-pairs-head {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
  .analysis-pairs-head .aph-arrow { display: none; }
  .analysis-pairs-head .btn-add-pair {
    grid-column: 1 / -1;
    margin-left: 0;
    justify-self: start;
  }
  .analysis-pair {
    grid-template-columns: 1fr;
  }
  .analysis-pair-arrow {
    width: 100%;
    height: 24px;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
}

/* ── AI 分析模块（各板块顶部） ── */
.ai-analysis-host {
  margin-bottom: 1.5rem;
}

.ai-analysis {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 45, 65, 0.95) 0%, rgba(22, 32, 48, 0.98) 100%);
  border: 1px solid rgba(100, 180, 255, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ai-analysis::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4da6ff, #a78bfa, #34d399);
}

/* ── 模块 上月总结 + 8月计划 + 补充说明 ── */
.module-review {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.module-review-block {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(100, 180, 255, 0.12);
}

.module-review-block--summary {
  background: linear-gradient(180deg, rgba(77, 166, 255, 0.06) 0%, transparent 100%);
}

.module-review-plan--august {
  background: rgba(52, 211, 153, 0.05);
  border-bottom: 1px solid rgba(100, 180, 255, 0.12);
}

.module-review-badge--plan-august {
  background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
  color: #052e1a;
}

.module-review-plan-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.module-review-badge--summary {
  background: linear-gradient(135deg, #6eb5ff 0%, #4da6ff 100%);
  color: #0a1628;
}

.module-review-plan {
  padding: 1.1rem 1.5rem 1rem;
}

.module-review-summary-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.module-review-summary-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.72;
  color: rgba(230, 235, 245, 0.94);
  margin: 0;
  padding: 0.15rem 0;
  outline: none;
  border-radius: 4px;
}

.module-review-summary-text:focus {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px rgba(77, 166, 255, 0.25);
}

.module-review-plan-group + .module-review-plan-group {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(100, 180, 255, 0.15);
}

.module-review-plan-group-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #6ee7b7;
  margin-bottom: 0.45rem;
}

.module-review-plan-list {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  list-style: none;
}

.module-review-plan-list li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 0.15rem;
  font-size: 0.86rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.module-review-plan-list li::before {
  content: '▸';
  position: absolute;
  left: -1rem;
  color: var(--gold);
  font-size: 0.75rem;
}

.module-review-editable {
  outline: none;
  border-radius: 3px;
}

.module-review-editable:focus {
  background: rgba(255, 255, 255, 0.04);
}

.module-review-ai {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(100, 180, 255, 0.15);
}

.module-review-head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.85rem;
}

.module-review-ai-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.module-review-ai-text + .module-review-ai-text {
  margin-top: 0.65rem;
  font-weight: 500;
  font-size: 0.98rem;
  color: rgba(230, 235, 245, 0.92);
}

.module-review-human {
  padding: 1.1rem 1.5rem 1.25rem;
  background: rgba(201, 169, 98, 0.04);
  border-top: 1px solid rgba(201, 169, 98, 0.15);
}

.module-review-human-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.module-review-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a1408;
  background: linear-gradient(135deg, #e8c872 0%, var(--gold) 100%);
  border-radius: 4px;
}

.module-review-badge--human {
  color: #1a1408;
}

.module-review-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.module-review-judgment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.judgment-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.judgment-btn:hover {
  background: rgba(201, 169, 98, 0.12);
  border-color: rgba(201, 169, 98, 0.35);
  color: var(--gold);
}

.judgment-btn.active {
  background: rgba(201, 169, 98, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}

.module-review-note-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.module-review-note-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.module-review-note {
  min-height: 4.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(201, 169, 98, 0.35);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.module-review-note:focus {
  border-style: solid;
  border-color: rgba(201, 169, 98, 0.6);
  box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.15);
}

.module-review-note:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}

.ai-details {
  border-top: 1px solid rgba(100, 180, 255, 0.12);
}

.ai-details-summary {
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.ai-details-summary::-webkit-details-marker {
  display: none;
}

.ai-details-summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s;
}

.ai-details[open] .ai-details-summary::before {
  transform: rotate(90deg);
}

.ai-details[open] .ai-details-summary {
  color: #4da6ff;
  border-bottom: 1px solid rgba(100, 180, 255, 0.1);
}

.ai-analysis-head {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(100, 180, 255, 0.15);
}

.ai-head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.85rem;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f1923;
  background: linear-gradient(135deg, #4da6ff 0%, #a78bfa 100%);
  border-radius: 4px;
}

.ai-module-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  padding: 0.2rem 0.55rem;
  background: rgba(201, 169, 98, 0.12);
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 4px;
}

.ai-week-chip {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.ai-headline {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.ai-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.ai-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
}

.ai-point {
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  border-left: 3px solid var(--text-muted);
}

.ai-point-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.ai-point-icon {
  font-size: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.ai-point-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ai-point-type {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: auto;
}

.ai-point-text {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.ai-point-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.ai-point-list li + li {
  margin-top: 0.45rem;
}

.ai-point--group .ai-point-head {
  margin-bottom: 0.55rem;
}

.ai-point--highlight {
  border-left-color: #34d399;
  background: rgba(52, 211, 153, 0.06);
}
.ai-point--highlight .ai-point-label { color: #34d399; }
.ai-point--highlight .ai-point-icon { background: rgba(52, 211, 153, 0.2); color: #34d399; }

.ai-point--risk {
  border-left-color: #f87171;
  background: rgba(248, 113, 113, 0.06);
}
.ai-point--risk .ai-point-label { color: #f87171; }
.ai-point--risk .ai-point-icon { background: rgba(248, 113, 113, 0.2); color: #f87171; }

.ai-point--insight {
  border-left-color: #4da6ff;
  background: rgba(77, 166, 255, 0.06);
}
.ai-point--insight .ai-point-label { color: #4da6ff; }
.ai-point--insight .ai-point-icon { background: rgba(77, 166, 255, 0.2); color: #4da6ff; }

.ai-point--action {
  border-left-color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
}
.ai-point--action .ai-point-label { color: var(--gold); }
.ai-point--action .ai-point-icon { background: rgba(201, 169, 98, 0.2); color: var(--gold); }

.ai-point--watch {
  border-left-color: #fbbf24;
  background: rgba(251, 191, 36, 0.06);
}
.ai-point--watch .ai-point-label { color: #fbbf24; }
.ai-point--watch .ai-point-icon { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }

@media (max-width: 640px) {
  .ai-points-grid { grid-template-columns: 1fr; }
  .ai-headline { font-size: 0.95rem; }
}

@media print {
  .ai-analysis {
    background: #f8f9fa;
    border-color: #ccc;
    break-inside: avoid;
  }
  .ai-badge { background: #2563eb; color: white; }
  .ai-point { background: white; }
  .module-review-human { background: #fff8e8; }
  .judgment-btn { border-color: #ccc; }
  .judgment-btn.active { background: #fef3c7; border-color: #b45309; color: #92400e; }
  .module-review-note { border-style: solid; background: white; min-height: 3rem; }
  .ai-details { display: block; }
  .ai-details-summary { display: none; }
  .ai-details .ai-points-grid { display: grid; }
}

/* ── 抖音 / 直营 共用 dr-* 排版体系 ── */
.douyin-report,
.direct-report {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.douyin-report .dr-meta-bar, .direct-report .dr-meta-bar, .dealer-report .dr-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.douyin-report .dr-h2, .direct-report .dr-h2 {
  font-size: 1.25rem;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  margin: 2rem 0 1rem;
}

.douyin-report .dr-h3, .direct-report .dr-h3 {
  font-size: 1.05rem;
  color: #4da6ff;
  margin: 1.5rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid #4da6ff;
}

.douyin-report .dr-h3-inline, .direct-report .dr-h3-inline {
  font-size: 1.05rem;
  color: var(--gold);
  margin: 0 0 1rem;
  border: none;
  padding: 0;
}

.douyin-report .dr-h4, .direct-report .dr-h4 {
  font-size: 0.95rem;
  color: #34d399;
  margin: 1.25rem 0 0.6rem;
}

.dr-recap-box .dr-recap-headline {
  font-size: 0.95rem;
  color: var(--gold-light);
  font-weight: 600;
  margin: 0.5rem 0 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(201, 169, 98, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}

.dr-recap-box .dr-h4 {
  margin-top: 1.25rem;
}

.dr-recap-box .dr-h4:first-of-type {
  margin-top: 0.75rem;
}

.douyin-report .dr-summary-box, .direct-report .dr-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.douyin-report .dr-list, .direct-report .dr-list {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.douyin-report .dr-list, .direct-report .dr-list li {
  margin: 0.45rem 0;
  color: var(--text-primary);
}

.douyin-report .dr-list, .direct-report .dr-list li strong {
  color: var(--gold);
}

.douyin-report .dr-table-wrap,
.direct-report .dr-table-wrap,
.dealer-report .dr-table-wrap {
  overflow-x: hidden;
  max-width: 100%;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.douyin-report .dr-table,
.direct-report .dr-table,
.dealer-report .dr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  table-layout: fixed;
  min-width: 0;
}

.douyin-report .dr-table-wide,
.direct-report .dr-table-wide,
.dealer-report .dr-table-wide {
  min-width: 0;
}

.douyin-report .dr-table thead th,
.direct-report .dr-table thead th,
.dealer-report .dr-table thead th {
  background: rgba(30, 58, 95, 0.85);
  color: var(--gold);
  font-weight: 600;
  padding: 0.55rem 0.35rem;
  text-align: center;
  border-bottom: 2px solid var(--gold);
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  vertical-align: middle;
}

.douyin-report .dr-table tbody td,
.direct-report .dr-table tbody td,
.dealer-report .dr-table tbody td {
  padding: 0.5rem 0.35rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  vertical-align: middle;
}

.douyin-report .dr-table tbody tr:nth-child(even),
.direct-report .dr-table tbody tr:nth-child(even),
.dealer-report .dr-table tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.15); }

.douyin-report .dr-table tbody tr:hover,
.direct-report .dr-table tbody tr:hover,
.dealer-report .dr-table tbody tr:hover { background: rgba(77, 166, 255, 0.08); }

.douyin-report .dr-hl, .direct-report .dr-hl { color: var(--gold); font-weight: 700; }
.douyin-report .dr-green, .direct-report .dr-green { color: #34d399; font-weight: 700; }
.douyin-report .dr-red, .direct-report .dr-red { color: #f87171; font-weight: 700; }
.douyin-report .dr-yellow, .direct-report .dr-yellow { color: #fbbf24; font-weight: 700; }
.douyin-report .dr-bold, .direct-report .dr-bold { font-weight: 700; }

.douyin-report .dr-quote, .direct-report .dr-quote {
  border-left: 4px solid #4da6ff;
  background: rgba(77, 166, 255, 0.06);
  padding: 0.65rem 0.9rem;
  margin: 0.75rem 0;
  font-size: 0.82rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.douyin-report .dr-insight, .direct-report .dr-insight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0.75rem 0;
}

.douyin-report .dr-insight, .direct-report .dr-insight h5 {
  margin: 0 0 0.5rem;
  color: #fbbf24;
  font-size: 0.9rem;
}

.douyin-report .dr-insight, .direct-report .dr-insight p {
  margin: 0.35rem 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.douyin-report .dr-suggestion, .direct-report .dr-suggestion {
  color: #34d399;
  font-weight: 600;
  margin-top: 0.5rem;
}

.douyin-report .dr-stars, .direct-report .dr-stars { color: var(--gold); letter-spacing: 2px; }
.douyin-report .dr-strong, .direct-report .dr-strong { color: var(--text-primary); font-weight: 600; margin: 0.5rem 0; }
.douyin-report .dr-hr, .direct-report .dr-hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.douyin-report .dr-muted, .direct-report .dr-muted { color: var(--text-muted); font-size: 0.85rem; }

.douyin-report .dr-notice, .direct-report .dr-notice {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: rgba(77, 166, 255, 0.08);
  border: 1px solid rgba(77, 166, 255, 0.25);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.douyin-report .dr-footer, .direct-report .dr-footer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 抖音周报 HTML 同款卡片 / 图表 */
.douyin-report .dr-report-header {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(26, 45, 66, 0.9), rgba(15, 25, 35, 0.95));
  border-bottom: 3px solid var(--gold);
  border-radius: var(--radius);
}
.douyin-report .dr-report-header-meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; justify-content: center;
  color: var(--text-secondary); font-size: 0.82rem; line-height: 1.9;
}
.douyin-report .dr-card {
  background: rgba(26, 45, 66, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0.85rem 0;
}
.douyin-report .dr-card h5 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.douyin-report .dr-card-prob { border-left: 4px solid #f87171; }
.douyin-report .dr-card-prob h5 { color: #f87171; }
.douyin-report .dr-card-warn { border-left: 4px solid #fbbf24; }
.douyin-report .dr-card-warn h5 { color: #fbbf24; }
.douyin-report .dr-card-ok { border-left: 4px solid #34d399; }
.douyin-report .dr-card-ok h5 { color: #34d399; }
.douyin-report .dr-card-info { border-left: 4px solid var(--gold); }
.douyin-report .dr-card-info h5 { color: var(--gold); }
.douyin-report .dr-solution-label { color: #34d399; font-weight: 600; margin: 0.65rem 0 0.35rem; }
.douyin-report .dr-total-row td { font-weight: 700; border-top: 2px solid var(--gold); color: var(--gold); }
.douyin-report .dr-chart-wrap {
  background: rgba(26, 45, 66, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.75rem 0 1rem;
}
.douyin-report .dr-chart-row { display: flex; gap: 0.75rem; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.douyin-report .dr-chart-group { text-align: center; flex: 1; min-width: 72px; max-width: 120px; }
.douyin-report .dr-bars { display: flex; gap: 4px; align-items: flex-end; height: 140px; justify-content: center; }
.douyin-report .dr-bar { width: 28px; border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.douyin-report .dr-bar-val { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 0.62rem; white-space: nowrap; color: var(--text-secondary); }
.douyin-report .dr-bar-direct { background: linear-gradient(180deg, #34d399, #1a8a5a); }
.douyin-report .dr-bar-cobuild { background: linear-gradient(180deg, #4da6ff, #1a5a8a); }
.douyin-report .dr-bar-neg { background: linear-gradient(180deg, #f87171, #9a3030); }
.douyin-report .dr-chart-label { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.35rem; }
.douyin-report .dr-chart-sublabel { font-size: 0.65rem; color: var(--text-muted); }
.douyin-report .dr-chart-legend { display: flex; gap: 1.25rem; justify-content: center; margin-top: 0.65rem; font-size: 0.78rem; color: var(--text-secondary); }
.douyin-report .dr-leg-direct::before, .douyin-report .dr-leg-cobuild::before {
  content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle;
}
.douyin-report .dr-leg-direct::before { background: #34d399; }
.douyin-report .dr-leg-cobuild::before { background: #4da6ff; }

.direct-report .dr-summary-text {
  margin: 0.5rem 0 0;
  color: var(--text-primary);
  line-height: 1.75;
}

.direct-report .dr-h3 .section-note,
.direct-report .dr-h4 .section-note,
.dealer-report .dr-h3 .section-note {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.35rem;
}

.dealer-report .group-row td {
  background: rgba(30, 58, 95, 0.25);
  font-weight: 600;
}

/* ── 直营招聘看板 ── */
.recruitment-dashboard {
  margin-bottom: 2rem;
}

.recruitment-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.recruitment-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  text-align: center;
}

.recruitment-kpi--accent {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.08);
}

.recruitment-kpi-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.recruitment-kpi-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold-light);
  line-height: 1.1;
}

.recruitment-kpi--accent .recruitment-kpi-value { color: var(--success); }

.recruitment-kpi-value small {
  font-size: 0.55em;
  color: var(--text-muted);
  margin-left: 0.1em;
}

.recruitment-week-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.rec-week-tab {
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

.rec-week-tab span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.rec-week-tab:hover { border-color: var(--border-strong); color: var(--gold); }
.rec-week-tab.active {
  color: var(--bg-primary);
  background: var(--gold);
  border-color: var(--gold);
}
.rec-week-tab.active span { color: rgba(0, 0, 0, 0.55); }

.recruitment-week-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.recruitment-dashboard .dr-h4 {
  font-size: 0.95rem;
  color: #34d399;
  margin: 1.5rem 0 0.75rem;
}

.rec-row-warn td { background: rgba(248, 113, 113, 0.06); }

/* ── 业绩档位明细 ── */
.staff-tier-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.staff-tier-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.75rem;
  min-width: 0;
}

.staff-tier-block--danger { border-color: rgba(248, 113, 113, 0.25); }
.staff-tier-block--success { border-color: rgba(74, 222, 128, 0.25); }

.staff-tier-title {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  letter-spacing: 0.04em;
}

.staff-tier-block--danger .staff-tier-title { color: #fca5a5; }
.staff-tier-block--success .staff-tier-title { color: #86efac; }

.staff-tier-title span {
  font-family: var(--font-display);
  font-size: 1.05em;
  margin: 0 0.15em;
}

.staff-lead-tag {
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 500;
  margin-left: 0.25rem;
}

@media (max-width: 900px) {
  .staff-tier-details { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .recruitment-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .recruitment-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#section-direct .module-analysis-host {
  margin-bottom: 1.5rem;
}

.customer-feedback-table td[rowspan] {
  vertical-align: top;
  background: rgba(0, 0, 0, 0.12);
}

.customer-feedback-table .feedback-cell {
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.55;
  min-width: 10rem;
  max-width: 22rem;
  white-space: normal;
  word-break: break-word;
}

.customer-feedback-table .feedback-empty {
  color: var(--text-muted);
  text-align: center;
}

.customer-feedback-table .feedback-muted {
  color: var(--text-secondary);
}

.customer-feedback-table .feedback-issue {
  color: var(--text-primary);
}

#section-douyin .module-analysis-host {
  margin-bottom: 1.5rem;
}

/* W4 原文嵌入：样式由 douyin-w4-embedded.js 注入，此处只做容器隔离 */
.douyin-w4-original {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── 表格 AI 一句话结论 ── */
.table-oneliner {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--gold-light, #d4c4a0);
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold, #d4af37);
  border-radius: 0 6px 6px 0;
}

.table-oneliner--store {
  margin: 0.5rem 0 0.65rem;
  font-size: 0.8rem;
}

/* ── 个人业绩 · 门店手风琴 ── */
.staff-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.staff-store-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.staff-store-details[open] {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.04);
}

.staff-store-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 0.85rem;
}

.staff-store-summary::-webkit-details-marker { display: none; }

.staff-store-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.staff-store-details[open] .staff-store-chevron {
  transform: rotate(45deg);
}

.staff-store-region {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.1rem 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.staff-store-name {
  font-weight: 600;
  color: var(--text-primary);
}

.staff-store-meta {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.staff-store-meta em {
  font-style: normal;
  font-weight: 600;
}

.staff-store-table-wrap {
  padding: 0 0.85rem 0.85rem;
}

.staff-store-table-wrap .data-table {
  margin-top: 0;
}

/* ── Walk-in 分店异常标记 ── */
.walkin-store-legend {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.outlier-tag {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.outlier-high {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.outlier-low {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.outlier-cell-high {
  color: #4ade80 !important;
  font-weight: 700;
}

.outlier-cell-low {
  color: #f87171 !important;
  font-weight: 700;
}

.walkin-outlier-tags {
  min-width: 7rem;
  white-space: normal;
}

.mean-band-row td {
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
}

/* ── 异常门店专项分析 ── */
.abnormal-stores-summary {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.abnormal-severity {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.abnormal-severity--critical {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.abnormal-severity--high {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.abnormal-severity--warn {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.abnormal-analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding: 0 0.85rem 0.85rem;
}

.abnormal-analysis-block {
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.55;
}

.abnormal-analysis-block--full {
  grid-column: 1 / -1;
}

.abnormal-analysis-block h5 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.abnormal-analysis-block h5 .pillar-tag {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.72rem;
}

.abnormal-analysis-block p {
  margin: 0;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .abnormal-analysis-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 4.1 客源结构（左总览 + 右模块） ── */
.direct-report .dr-h3--tight {
  margin: 1rem 0 0.5rem;
}

.source-panel {
  padding: 0.75rem 0.85rem 0.65rem;
  margin-bottom: 0.75rem;
}

.source-dashboard {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0.65rem;
  align-items: stretch;
}

.source-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.65rem 0.55rem;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.18), rgba(77, 166, 255, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.35);
  text-align: center;
}

.source-total-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.source-total-val {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.15;
  margin: 0.15rem 0;
  font-variant-numeric: tabular-nums;
}

.source-total-val small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 0.1rem;
}

.source-total-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.source-total-top {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.source-total-top li {
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.source-total-top li span {
  display: block;
  color: var(--text-muted);
}

.source-total-top li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.source-modules {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.source-mod {
  padding: 0.5rem 0.45rem 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  min-width: 0;
}

.source-mod-name {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.source-mod-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.2rem;
}

.source-mod-sales {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.source-mod-sales small {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.05rem;
}

.source-mod-pct {
  font-size: 0.88rem;
  font-weight: 700;
  color: #a78bfa;
  font-variant-numeric: tabular-nums;
}

.source-mod-est {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.source-mod-trend.up { color: #34d399; }
.source-mod-trend.down { color: #f87171; }

.source-mod-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.source-mod-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 999px;
}

.source-mod--up { border-color: rgba(52, 211, 153, 0.25); }
.source-mod--down { border-color: rgba(248, 113, 113, 0.2); }

.source-insight {
  margin: 0.45rem 0 0;
  padding: 0.4rem 0.6rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-secondary);
  background: rgba(77, 166, 255, 0.06);
  border-left: 2px solid #4da6ff;
  border-radius: 0 4px 4px 0;
}

.source-footnote {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
}

.source-detail-toggle {
  margin-top: 0.55rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.45rem;
}

.source-detail-toggle summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  list-style: none;
  user-select: none;
}

.source-detail-toggle summary::-webkit-details-marker { display: none; }

.source-detail-toggle summary::before {
  content: '▸ ';
  color: var(--text-muted);
  display: inline-block;
  transition: transform 0.15s;
}

.source-detail-toggle[open] summary::before { transform: rotate(90deg); }

.source-table-wrap {
  max-height: 380px;
  margin-top: 0.4rem;
}

.customer-source-table thead th {
  text-align: center;
  font-size: 0.68rem;
  white-space: nowrap;
  padding: 0.35rem 0.4rem;
}

.customer-source-table td {
  padding: 0.3rem 0.4rem;
  font-size: 0.78rem;
}

.customer-source-table .region-row td {
  background: rgba(167, 139, 250, 0.1);
  font-weight: 600;
}

.customer-source-table .store-row td:first-child {
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.customer-source-table .source-val { color: #a5b4fc; }

.customer-source-table .store-indent::before {
  content: '└ ';
  color: var(--text-muted);
  font-size: 0.7rem;
}

.store-perf-table .region-subtotal-row td {
  background: rgba(77, 166, 255, 0.08);
  font-weight: 600;
  border-top: 1px solid var(--border-color);
}

.yunke-accounts-table td,
.yunke-accounts-table th {
  text-align: center;
}

.yunke-accounts-table td[rowspan] {
  vertical-align: middle;
  background: rgba(0, 0, 0, 0.12);
}

.yunke-accounts-table .region-subtotal-row td {
  background: rgba(77, 166, 255, 0.08);
  font-weight: 600;
}

.yunke-abnormal-row td {
  background: rgba(248, 113, 113, 0.08);
}

.yunke-tag-abnormal {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.15);
  border-radius: 4px;
}

.yunke-accounts-alerts {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.yunke-accounts-alerts .alert-card p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.foldable-monthly-board {
  margin-bottom: 1rem;
  align-items: stretch;
}

.foldable-monthly-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.foldable-monthly-kpi {
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-color);
}

.foldable-monthly-kpi--accent {
  grid-column: 1 / -1;
  background: rgba(77, 166, 255, 0.1);
  border-color: rgba(77, 166, 255, 0.25);
}

.foldable-monthly-kpi-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.foldable-monthly-kpi-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.foldable-monthly-kpi-value small {
  font-size: 0.72rem;
  font-weight: 500;
  margin-left: 0.15rem;
  color: var(--text-muted);
}

.foldable-monthly-kpi-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.foldable-monthly-scroll {
  max-height: 520px;
}

.foldable-monthly-table th,
.foldable-monthly-table td {
  text-align: center;
  white-space: nowrap;
}

.foldable-monthly-table .store-indent::before {
  content: '└ ';
  color: var(--text-muted);
  font-size: 0.7rem;
}

.foldable-monthly-table .region-subtotal-row td {
  background: rgba(77, 166, 255, 0.08);
  font-weight: 600;
}

.foldable-monthly-store-row td:first-child {
  border-left: 3px solid rgba(77, 166, 255, 0.2);
}

.foldable-sku-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.foldable-sku-matrix {
  min-width: 1100px;
  font-size: 0.78rem;
}

.foldable-sku-matrix th,
.foldable-sku-matrix td {
  white-space: nowrap;
  vertical-align: middle;
}

.fold-sku-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
}

.fold-sku-cell {
  line-height: 1.35;
  min-width: 4.5rem;
}

.fold-sku-pct {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.foldable-sku-matrix tr.subtotal-row td {
  background: rgba(201, 169, 98, 0.08);
  font-weight: 600;
}

.high-end-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(77, 166, 255, 0.06);
  border: 1px solid rgba(77, 166, 255, 0.15);
}

.high-end-share-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.high-end-share-item--accent .high-end-share-value {
  color: #93c5fd;
}

.high-end-share-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.high-end-share-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.high-end-share-value small {
  font-size: 0.72rem;
  font-weight: 500;
  margin-left: 0.1rem;
  color: var(--text-muted);
}

.high-end-share-pct {
  font-size: 1.65rem;
}

.high-end-share-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.high-end-share-divider,
.high-end-share-eq {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
}

.high-end-custom-board {
  align-items: start;
}

.high-end-custom-scroll {
  max-height: 480px;
}

.high-end-custom-table th,
.high-end-custom-table td {
  text-align: center;
  white-space: nowrap;
  font-size: 0.72rem;
}

.high-end-custom-table thead th {
  font-size: 0.68rem;
}

.high-end-custom-table .region-subtotal-row td {
  background: rgba(77, 166, 255, 0.08);
  font-weight: 600;
}

.high-end-store-row td:first-child {
  border-left: 3px solid rgba(245, 158, 11, 0.25);
}

.card--nested {
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.daily-perf-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.daily-perf-card {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.15);
}

.daily-perf-card--work {
  border-color: rgba(96, 165, 250, 0.25);
  background: rgba(96, 165, 250, 0.06);
}

.daily-perf-card--weekend {
  border-color: rgba(201, 169, 98, 0.25);
  background: rgba(201, 169, 98, 0.06);
}

.daily-perf-card-head {
  margin-bottom: 0.75rem;
}

.daily-perf-card-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.daily-perf-card-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.daily-perf-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.daily-perf-metric-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.daily-perf-metric-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.daily-perf-metric-value small {
  font-size: 0.68rem;
  font-weight: 500;
  margin-left: 0.1rem;
  color: var(--text-muted);
}

.daily-perf-card-foot {
  margin: 0.65rem 0 0;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.daily-perf-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 5.5rem;
}

.daily-perf-vs-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.daily-perf-vs-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.daily-perf-vs-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.daily-perf-charts {
  align-items: stretch;
}

.daily-perf-scroll {
  max-height: 360px;
}

.daily-perf-table .tag-pill {
  font-size: 0.68rem;
}

.daily-perf-row-work td:first-child {
  border-left: 2px solid rgba(96, 165, 250, 0.35);
}

.daily-perf-row-weekend td:first-child {
  border-left: 2px solid rgba(201, 169, 98, 0.35);
}

@media (max-width: 900px) {
  .daily-perf-compare {
    grid-template-columns: 1fr;
  }
  .daily-perf-vs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 0;
  }
  .daily-perf-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.store-perf-table thead th {
  font-size: 0.68rem;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .source-modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .source-dashboard {
    grid-template-columns: 1fr;
  }

  .source-total {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: 0.35rem 0.75rem;
  }

  .source-total-top {
    flex: 1 1 100%;
    display: flex;
    gap: 0.75rem;
    border-top: none;
    padding-top: 0;
  }

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

/* ── 直营悬浮目录（独立层 · 可拖移/调大小 · 不改正文版式） ── */
.dr-float-toc {
  position: fixed;
  z-index: 90;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  box-sizing: border-box;
}

.dr-float-toc.is-placed {
  transform: none;
  max-height: none;
}

.dr-float-toc.is-dragging,
.dr-float-toc.is-resizing {
  transition: none;
  user-select: none;
}

.dr-float-toc.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dr-float-toc-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(240, 192, 64, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.dr-float-toc-toggle-bar {
  width: 12px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
}

.dr-float-toc-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(10, 15, 26, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.dr-float-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  border-bottom: 1px solid rgba(240, 192, 64, 0.18);
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
}

.dr-float-toc.is-dragging .dr-float-toc-head {
  cursor: grabbing;
}

.dr-float-toc-head-title {
  pointer-events: none;
}

.dr-float-toc-count {
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  pointer-events: none;
}

.dr-float-toc-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.45rem 0.35rem 0.55rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.dr-float-toc-link {
  display: block;
  padding: 0.32rem 0.55rem;
  margin: 1px 0;
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  word-break: break-word;
}

.dr-float-toc-link--l1 {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.74rem;
  margin-top: 0.25rem;
}

.dr-float-toc-link--l2 {
  padding-left: 0.85rem;
  font-weight: 500;
  font-size: 0.68rem;
}

.dr-float-toc-link:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.08);
}

.dr-float-toc-link.active {
  color: var(--gold-light);
  background: rgba(240, 192, 64, 0.1);
  border-left-color: var(--gold);
}

.dr-float-toc-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  z-index: 2;
  touch-action: none;
}

.dr-float-toc-resize::after {
  content: '';
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(240, 192, 64, 0.65);
  border-bottom: 2px solid rgba(240, 192, 64, 0.65);
  border-radius: 0 0 2px 0;
  opacity: 0.85;
}

.dr-float-toc.is-resizing .dr-float-toc-resize::after {
  opacity: 1;
}

#section-direct .direct-report h2.dr-h2[id],
#section-direct .direct-report h3.dr-h3[id] {
  scroll-margin-top: 72px;
}

@media (max-width: 900px) {
  .dr-float-toc.is-collapsed .dr-float-toc-panel,
  .dr-float-toc.is-collapsed .dr-float-toc-resize {
    display: none;
  }
  .dr-float-toc.is-collapsed {
    width: auto !important;
    height: auto !important;
  }
  .dr-float-toc-toggle {
    display: inline-flex;
  }
}

@media print {
  .dr-float-toc {
    display: none !important;
  }
}

/* ── Vemory 会议分析（深度版） ── */
.vemory-meeting-panel {
  padding: 0;
  overflow: hidden;
}

.vemory-meeting-panel > .table-oneliner {
  margin: 1rem 1.25rem 0;
}

#vemory-meeting-root {
  padding: 0 1.25rem 1.5rem;
}

.vemory-hero {
  margin: 1rem 0 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.85) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.vemory-hero-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.vemory-hero-sub {
  margin: 0.45rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.vemory-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.vemory-htag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.vemory-htag--danger {
  background: rgba(248, 113, 113, 0.22);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.vemory-hero-meta {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vemory-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  padding: 0.55rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 10px;
  position: sticky;
  top: 108px;
  z-index: 15;
}

.vemory-subnav-link {
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
}

.vemory-subnav-link:hover,
.vemory-subnav-link.active {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.vemory-section {
  scroll-margin-top: 128px;
  margin-bottom: 1.75rem;
}

.vemory-subheading {
  margin: 1.1rem 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.vemory-subheading--risk {
  color: #fca5a5;
}

.vemory-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.vemory-kpi-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vemory-kpi-card--warn {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.06);
}

.vemory-kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vemory-kpi-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.vemory-kpi-value small {
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.15rem;
  color: var(--text-muted);
}

.vemory-kpi-value.danger {
  color: var(--danger);
}

.vemory-kpi-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vemory-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.75rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--accent);
}

.vemory-hbar-chart {
  padding: 0.85rem 1rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.vemory-hbar-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
}

.vemory-hbar-label {
  width: 130px;
  flex-shrink: 0;
  text-align: right;
  color: var(--text-muted);
}

.vemory-hbar-track {
  flex: 1;
  height: 14px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.vemory-hbar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(56, 189, 248, 0.45));
  min-width: 2px;
}

.vemory-hbar-val {
  width: 88px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.vemory-hbar-note {
  margin: -0.25rem 0 0.55rem;
  padding-left: calc(130px + 0.65rem);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.vemory-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.vemory-info-box {
  padding: 0.85rem 1rem;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.vemory-info-box--block {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.vemory-owner-bars {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vemory-owner-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.vemory-owner-track {
  height: 8px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.vemory-owner-fill--bad {
  height: 100%;
  background: #f87171;
  border-radius: 999px;
}

.vemory-owner-fill--ok {
  height: 100%;
  background: #34d399;
  border-radius: 999px;
}

.vemory-quality-list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.vemory-quality-foot {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vemory-stores-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vemory-region-block {
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.vemory-region-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.vemory-region-badge--north { background: #3b82f6; }
.vemory-region-badge--east { background: #10b981; }
.vemory-region-badge--south { background: #f59e0b; color: #1e293b; }
.vemory-region-badge--west { background: #8b5cf6; }

.vemory-stores-table td,
.vemory-stores-table th,
.vemory-lowcov-table td,
.vemory-lowcov-table th {
  white-space: nowrap;
}

.vemory-row-risk {
  background: rgba(248, 113, 113, 0.06);
}

.vemory-row-warn {
  background: rgba(251, 191, 36, 0.05);
}

.vemory-alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.vemory-alert--danger {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.vemory-alert--warning {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fde68a;
}

.vemory-alert h5 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.vemory-alert-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.72rem;
}

.vemory-alert p {
  margin: 0.25rem 0 0;
}

.vemory-alert-detail {
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
}

.vemory-risks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vemory-actions {
  margin: 0;
  padding-left: 1.35rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.vemory-actions li + li {
  margin-top: 0.55rem;
}

.vemory-insight {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.vemory-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .vemory-kpi-grid,
  .vemory-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .vemory-subnav {
    top: 96px;
  }
  .vemory-kpi-grid,
  .vemory-mini-grid {
    grid-template-columns: 1fr;
  }
  .vemory-hbar-label {
    width: 90px;
    font-size: 0.72rem;
  }
  .vemory-hbar-note {
    padding-left: 0;
  }
}

/* ── 慧总 7月会议深度分析（总览） ── */
.caohui-meeting-panel {
  padding: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

#caohui-meeting-root {
  padding: 0 1.25rem 1.5rem;
}

.ch-hero {
  margin: 1rem 0 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.ch-hero-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.ch-hero-sub {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.ch-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.ch-hero-meta {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

.ch-htag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.ch-htag--neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.ch-htag--warn {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.ch-htag--danger {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.ch-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  padding: 0.65rem;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  position: sticky;
  top: 56px;
  z-index: 5;
}

.ch-subnav-link {
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.ch-subnav-link:hover,
.ch-subnav-link.active {
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
}

.ch-kpi-grid--analysis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ch-kpi-card {
  background: rgba(22, 34, 49, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ch-kpi-card--warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}

.ch-kpi-card-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ch-kpi-card-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.ch-kpi-card-value small {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.ch-kpi-card-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ch-section {
  margin-bottom: 1.75rem;
  scroll-margin-top: 120px;
}

.ch-section-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-color);
}

.ch-subheading {
  margin: 1rem 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.ch-insight {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
  background: rgba(56, 189, 248, 0.06);
  border-left: 3px solid #38bdf8;
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 0 0 1rem;
}

.ch-hbar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ch-hbar-row {
  display: grid;
  grid-template-columns: 130px 1fr 90px;
  align-items: center;
  gap: 0.65rem;
}

.ch-hbar-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: right;
}

.ch-hbar-track {
  height: 8px;
  background: rgba(51, 65, 85, 0.5);
  border-radius: 999px;
  overflow: hidden;
}

.ch-hbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  border-radius: 999px;
}

.ch-hbar-val {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.ch-hbar-note {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem;
  padding-left: calc(130px + 0.65rem);
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ch-info-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.ch-info-box--block {
  margin-top: 1rem;
}

.ch-info-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.ch-cat-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ch-cat-insight {
  scroll-margin-top: 120px;
}

.ch-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(30, 41, 59, 0.55);
  border-left: 4px solid var(--ch-accent, #0ea5e9);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
}

.ch-sec-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ch-sec-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.ch-cat-summary {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 0.65rem;
}

.ch-theme-list {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.ch-theme-list li {
  margin-bottom: 0.3rem;
}

.ch-spotlight-title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
}

.ch-spotlight-list {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
}

.ch-spotlight-list li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: rgba(15, 25, 35, 0.5);
  border-radius: 6px;
}

.ch-spotlight-list strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.78rem;
  margin-bottom: 0.15rem;
}

.ch-august-focus {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 8px;
}

.ch-alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.65rem;
  border: 1px solid;
}

.ch-alert--danger {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.25);
}

.ch-alert--warning {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
}

.ch-alert h5 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ch-alert-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
}

.ch-alert p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ch-alert-detail {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
}

.ch-actions {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.ch-actions li + li {
  margin-top: 0.45rem;
}

.ch-muted {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.ch-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 900px) {
  .ch-kpi-grid--analysis {
    grid-template-columns: repeat(2, 1fr);
  }
  .ch-hbar-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .ch-hbar-label {
    text-align: left;
  }
  .ch-hbar-note {
    padding-left: 0;
  }
  .ch-sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
