:root {
  --bg: #f2efe8;
  --panel: #fffdf8;
  --panel-strong: #f8f2e8;
  --ink: #1d1c1a;
  --muted: #635d55;
  --line: #ddd2c2;
  --accent: #bb3e03;
  --accent-soft: #ffe4d6;
  --good: #2f7d32;
  --risk: #b42318;
  --watch: #a15c00;
  --shadow: 0 10px 30px rgba(38, 27, 15, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
  font-family: "Fraunces", "Iowan Old Style", "Georgia", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 222, 200, 0.7), transparent 30%),
    radial-gradient(circle at top right, rgba(233, 213, 255, 0.18), transparent 20%),
    var(--bg);
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.control-label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--muted);
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
  line-height: 1;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.1;
}

.subhead,
.headline-summary,
.meta-text,
.bullet-list,
.panel,
.compact-field,
.compact-check,
table {
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
}

.subhead,
.headline-summary,
.meta-text {
  color: var(--muted);
}

.hero-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-links a,
a {
  color: var(--accent);
  text-decoration: none;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-weight: 700;
}

.control-shell,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.control-shell {
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fff7ef 0%, #fffdf8 100%);
}

.control-block + .control-block,
.control-block + .control-grid,
.control-grid + .advanced-panel,
.advanced-panel + .meta-text {
  margin-top: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 11px;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  background: var(--accent);
  color: #fff8f3;
  border-color: var(--accent);
}

.control-grid,
.advanced-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

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

.compact-field,
.compact-check {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
}

.compact-field select,
.secondary-btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 0.92rem;
}

.compact-check {
  justify-content: flex-end;
}

.compact-check input {
  margin-right: 8px;
}

.secondary-btn {
  font-weight: 700;
  cursor: pointer;
}

.advanced-panel {
  padding-top: 6px;
}

.advanced-panel.hidden {
  display: none;
}

.advanced-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.top-space {
  margin-top: 14px;
}

.meta-pill {
  min-height: 36px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.headline-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--panel-strong) 0%, var(--panel) 60%);
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
}

.detail-hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

.command-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #fff7ef 0%, #fff 100%);
}

.command-tile .tile-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.command-tile .tile-value {
  margin-top: 8px;
  font-size: 1.4rem;
  font-weight: 700;
}

.command-tile .tile-note {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  line-height: 1.4;
}

.mini-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.kpi-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.kpi-value {
  margin-top: 8px;
  font-size: 1.7rem;
  font-weight: 700;
}

.kpi-note {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.good {
  color: var(--good);
}

.risk {
  color: var(--risk);
}

.watch {
  color: var(--watch);
}

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

.decision-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.decision-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.decision-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
}

.decision-tag.critical,
.status-pill.critical {
  background: #fde3df;
  color: var(--risk);
}

.decision-tag.watch,
.status-pill.watch {
  background: #fff0d6;
  color: var(--watch);
}

.decision-tag.stable,
.status-pill.stable {
  background: #e3f4e4;
  color: var(--good);
}

.decision-copy {
  margin-top: 10px;
  color: var(--muted);
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  line-height: 1.5;
}

.decision-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
}

.decision-card button {
  margin-top: 14px;
  width: 100%;
}

.decision-trace {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  line-height: 1.45;
}

.decision-trace strong {
  color: var(--ink);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.panel + .panel {
  margin-top: 18px;
}

.panel-header {
  margin-bottom: 12px;
}

.chart {
  height: 360px;
}

#warMap {
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

#cityMap {
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid #efe5d8;
  text-align: left;
  font-size: 0.9rem;
}

th {
  position: sticky;
  top: 0;
  background: #f9f3ea;
  z-index: 1;
  font-weight: 700;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: #fff4e9;
}

.table-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-nav-btn {
  border: 1px solid var(--line);
  background: #fff7ef;
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.decision-status-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 6px 8px;
  font: inherit;
  font-size: 0.84rem;
}

.section-gate {
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  display: grid;
  gap: 4px;
}

.section-gate.good {
  background: #edf8ee;
  border-color: #b7dfb9;
  color: var(--good);
}

.section-gate.watch {
  background: #fff7e8;
  border-color: #f1cf8b;
  color: var(--watch);
}

.section-gate.risk {
  background: #fcebea;
  border-color: #f3b8b0;
  color: var(--risk);
}

.cohort-heat {
  display: inline-block;
  min-width: 64px;
  text-align: center;
  padding: 5px 8px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}

.cohort-heat.good {
  background: #e8f6e8;
  color: var(--good);
  border-color: #b7dfb9;
}

.cohort-heat.watch {
  background: #fff3dc;
  color: var(--watch);
  border-color: #f1cf8b;
}

.cohort-heat.risk {
  background: #fde8e6;
  color: var(--risk);
  border-color: #f3b8b0;
}

.stacked-tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.compact-table table thead th[colspan] {
  background: #efe5d8;
}

.status-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.78rem;
}

.table-title {
  padding: 14px 16px 0;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-board {
  padding: 16px;
  background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
}

.compare-board-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.compare-board-title {
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-board-platforms {
  display: flex;
  gap: 12px;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.compare-matrix {
  display: grid;
  gap: 10px;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.compare-row.good {
  box-shadow: inset 4px 0 0 var(--good);
}

.compare-row.risk {
  box-shadow: inset 4px 0 0 var(--risk);
}

.compare-row.stable {
  box-shadow: inset 4px 0 0 #8f8a81;
}

.compare-metric-name,
.compare-side-value,
.geo-card-label {
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-weight: 700;
}

.compare-metric-note,
.compare-side-label,
.compare-gap-note,
.geo-card-sub,
.geo-metric-label,
.geo-card-bottom,
.race-bar-labels {
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  color: var(--muted);
}

.compare-metric-name {
  font-size: 1rem;
}

.compare-metric-note,
.compare-side-label,
.compare-gap-note,
.geo-card-sub,
.geo-metric-label,
.geo-card-bottom {
  font-size: 0.8rem;
}

.compare-side-value {
  font-size: 1.1rem;
  margin-top: 4px;
}

.compare-gap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.compare-gap-value {
  padding: 8px 10px;
  border-radius: 999px;
  background: #f8f2e8;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
}

.compare-gap-note.good {
  color: var(--good);
}

.compare-gap-note.risk {
  color: var(--risk);
}

.compare-gap-note.stable {
  color: var(--muted);
}

.geo-benchmark-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.geo-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8f1 0%, #ffffff 100%);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(38, 27, 15, 0.04);
}

.geo-card:hover {
  border-color: #d9b899;
  transform: translateY(-1px);
}

.geo-card-top,
.geo-card-bottom,
.geo-card-metrics {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.geo-card-top {
  align-items: start;
  margin-bottom: 12px;
}

.geo-card-label {
  font-size: 1rem;
}

.geo-card-metrics {
  margin-bottom: 12px;
}

.geo-card-metrics > div {
  flex: 1;
  border: 1px solid #efe5d8;
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.geo-card-metrics strong {
  display: block;
  margin-top: 4px;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 1rem;
}

.geo-card-bottom {
  margin-top: 12px;
  font-size: 0.82rem;
}

.race-bar {
  min-width: 180px;
}

.race-bar-track {
  display: flex;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #efe5d8;
}

.race-bar-fill {
  display: block;
  height: 100%;
}

.race-bar-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.78rem;
}

@media (max-width: 1200px) {
  .kpi-grid,
  .decision-grid,
  .command-strip,
  .geo-benchmark-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  body {
    padding: 16px;
  }

  .hero,
  .headline-panel,
  .two-column {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .control-grid,
  .control-grid.compact-3,
  .advanced-panel,
  .kpi-grid,
  .mini-kpi-grid,
  .decision-grid,
  .command-strip,
  .geo-benchmark-grid,
  .compare-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.3rem;
  }
}

.product-body {
  padding: 20px 24px 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 231, 208, 0.92), transparent 28%),
    radial-gradient(circle at top right, rgba(208, 232, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #f5f1e9 0%, #efe9df 100%);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  position: sticky;
  top: 8px;
  z-index: 42;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(32, 23, 15, 0.08);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 32px rgba(38, 27, 15, 0.07);
}

.topbar-brand .eyebrow {
  margin-bottom: 2px;
}

.topbar-title {
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.topbar-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.workspace-router {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 4px 14px;
  margin-top: -8px;
  margin-bottom: 12px;
}

.workspace-router-copy {
  min-width: 0;
}

.workspace-router-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6f4d;
  font-weight: 700;
}

.workspace-router-note {
  font-size: 13px;
  color: #6c5a45;
}

.workspace-tabs {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.workspace-tabs-wide {
  display: flex;
  flex-wrap: wrap;
}

.workspace-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(32, 23, 15, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.workspace-tab.active {
  background: #2f2418;
  border-color: #2f2418;
  color: #fffaf3;
}

.workspace-frame {
  width: 100%;
  min-height: 1200px;
  border: 1px solid rgba(32, 23, 15, 0.08);
  border-radius: 16px;
  background: #fff;
}

.workspace-native-view {
  display: none;
}

.workspace-native-grid {
  display: grid;
  gap: 18px;
}

.topbar-nav a,
.section-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(32, 23, 15, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

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

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

.brief-card {
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(32, 23, 15, 0.08);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 247, 239, 0.96) 0%, rgba(255, 253, 248, 0.96) 100%);
  box-shadow: 0 12px 30px rgba(38, 27, 15, 0.08);
}

.brief-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brief-value {
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.94rem;
  line-height: 1.45;
}

.control-shell-sticky {
  position: sticky;
  top: 72px;
  z-index: 30;
  margin-bottom: 12px;
}

.compact-shell {
  padding: 10px 12px;
}

.command-bar {
  display: grid;
  grid-template-columns: minmax(180px, 220px) repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.command-bar-country {
  grid-template-columns: minmax(170px, 210px) repeat(4, minmax(0, 1fr));
}

.command-bar-brand {
  grid-template-columns: minmax(170px, 210px) minmax(220px, 280px) repeat(2, minmax(0, 1fr));
}

.simple-command-bar {
  grid-template-columns: minmax(170px, 210px) repeat(4, minmax(0, 1fr));
}

.command-slot {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-slot select,
.view-name-input,
.save-view-row select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 0.88rem;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
}

.command-slot .chip-row {
  min-height: 34px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.command-slot .chip-row .chip {
  flex: 0 0 auto;
}

.command-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.control-drawer {
  border-top: 1px solid rgba(32, 23, 15, 0.08);
  padding-top: 8px;
}

.control-drawer summary {
  cursor: pointer;
  list-style: none;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

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

.save-view-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) auto minmax(180px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.export-stage {
  scroll-margin-top: 180px;
}

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

.control-cluster {
  padding: 14px;
  border: 1px solid rgba(32, 23, 15, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.section-nav {
  display: none;
}

.section-nav-link {
  box-shadow: 0 6px 18px rgba(38, 27, 15, 0.06);
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.overview-shell {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
}

.workspace-main,
.workspace-rail {
  display: grid;
  gap: 18px;
}

.executive-stage {
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.96) 0%, rgba(255, 253, 248, 0.96) 100%);
}

.panel-header-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.panel-header-tight {
  display: grid;
  gap: 12px;
}

.compact-command-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-tile-tight .tile-value {
  font-size: 1.15rem;
}

.stage-divider {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, transparent 0%, rgba(32, 23, 15, 0.12) 18%, rgba(32, 23, 15, 0.12) 82%, transparent 100%);
}

.feature-grid {
  display: grid;
  gap: 16px;
}

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

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

.battleground-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.feature-card {
  min-width: 0;
  height: 100%;
  padding: 16px;
  border: 1px solid rgba(32, 23, 15, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.feature-card .chart {
  min-height: 320px;
}

.compact-chart {
  min-height: 280px;
}

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

.workflow-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #fff8f1 0%, #ffffff 100%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(38, 27, 15, 0.05);
}

.workflow-card:hover {
  border-color: #d9b899;
  transform: translateY(-1px);
}

.workflow-card-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workflow-card h3 {
  margin: 0 0 10px;
}

.workflow-card p {
  margin: 0 0 16px;
  color: var(--muted-strong);
}

.workflow-card-note {
  border-top: 1px solid #efe5d8;
  padding-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.feature-card-map .chart {
  min-height: 520px;
}

.feature-card-benchmark .table-wrap,
.rail-panel .table-wrap,
.feature-card .table-wrap {
  max-height: none;
}

.table-section-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rail-panel {
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.sticky-panel {
  position: sticky;
  top: 276px;
}

.small-meta-pill {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.84rem;
}

.attention-pulse {
  animation: railPulse 1.2s ease;
}

@keyframes railPulse {
  0% { box-shadow: 0 0 0 rgba(187, 62, 3, 0); }
  30% { box-shadow: 0 0 0 6px rgba(187, 62, 3, 0.12); }
  100% { box-shadow: 0 0 0 rgba(187, 62, 3, 0); }
}

.chip-row-static {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row-static .chip {
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  min-width: 100%;
}

.compare-board,
.geo-benchmark-grid,
.workflow-grid,
.stacked-tables {
  min-width: 0;
}

.overview-rail .rail-panel {
  min-height: 100%;
}

.single-column-shell {
  grid-template-columns: 1fr;
}

.embedded-detail-panel {
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.details-panel summary {
  cursor: pointer;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
}

.compact-customer-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .workspace-shell,
  .overview-shell,
  .battleground-grid,
  .panel-header-wide,
  .page-hero,
  .page-hero-country,
  .command-bar,
  .command-bar-country,
  .command-bar-brand,
  .command-meta-row,
  .save-view-row {
    grid-template-columns: 1fr;
  }

  .sticky-panel,
  .section-nav,
  .control-shell-sticky {
    position: static;
  }
}

@media (max-width: 960px) {
  .product-body {
    padding: 14px;
  }

  .topbar,
  .topbar-nav,
  .section-nav,
  .feature-grid-2,
  .feature-grid-3,
  .workflow-grid,
  .control-cluster-grid,
  .command-meta-row,
  .workspace-shell,
  .overview-shell,
  .panel-header-wide,
  .compact-command-strip,
  .battleground-grid,
  .news-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar-nav,
  .section-nav {
    display: flex;
  }

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

  .brief-card {
    min-height: 0;
  }

  .feature-card .chart,
  .feature-card-map .chart {
    min-height: 300px;
  }
}

.topbar-btn,
.inline-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(32, 23, 15, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.section-nav-link.active {
  background: var(--accent);
  color: #fff8f3;
  border-color: var(--accent);
}

.badge-row,
.annotation-strip,
.annotation-list,
.rail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-meta-row {
  justify-content: flex-end;
}

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

.quality-badge,
.annotation-card {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
}

.quality-badge {
  border: 1px solid rgba(32, 23, 15, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.quality-badge.good {
  color: var(--good);
  background: rgba(47, 125, 50, 0.08);
}

.quality-badge.watch {
  color: var(--watch);
  background: rgba(161, 92, 0, 0.08);
}

.quality-badge.risk {
  color: var(--risk);
  background: rgba(180, 35, 24, 0.08);
}

.badge-link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 2px;
}

.news-card {
  border: 1px solid rgba(32, 23, 15, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
}

.news-card h3 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.news-meta,
.news-why {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: "IBM Plex Sans", "Avenir Next", sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.info-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.info-dialog::backdrop {
  background: rgba(29, 28, 26, 0.28);
}

.info-dialog-card {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
}

.info-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.info-dialog p {
  margin: 0 0 10px;
}

.annotation-card {
  flex: 1 1 220px;
  border: 1px solid rgba(32, 23, 15, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.rail-actions {
  margin-bottom: 14px;
}

.presentation-mode .control-shell,
.presentation-mode .section-nav,
.presentation-mode .detail-hint,
.presentation-mode .topbar-nav a[href^="#"] {
  display: none;
}

.presentation-mode .topbar {
  position: sticky;
  top: 10px;
  z-index: 40;
}

.presentation-mode .page-hero,
.presentation-mode .page-hero-country {
  margin-bottom: 10px;
}

.presentation-mode .kpi-value {
  font-size: 2rem;
}

.presentation-mode .feature-card .chart,
.presentation-mode .feature-card-map .chart {
  min-height: 420px;
}

.presentation-mode .workspace-shell,
.presentation-mode .overview-shell {
  grid-template-columns: 1fr;
}

.presentation-mode .workspace-rail {
  order: -1;
}

.feature-card-benchmark .geo-benchmark-grid {
  grid-template-columns: 1fr;
}

.table-link {
  font-weight: 700;
}

@media print {
  .topbar-nav,
  .section-nav,
  .control-shell,
  .topbar-btn,
  .rail-actions {
    display: none !important;
  }

  body,
  .product-body {
    background: #fff;
    padding: 0;
  }

  .workspace-shell,
  .overview-shell,
  .page-hero,
  .page-hero-country,
  .feature-grid-2,
  .feature-grid-3,
  .battleground-grid,
  .panel-header-wide {
    grid-template-columns: 1fr;
  }

  .workspace-rail,
  .sticky-panel {
    position: static;
  }
}
