﻿:root {
  --bg: #f3f1ec;
  --paper: #fbfbfa;
  --paper-soft: #f1f4f7;
  --line: #d6dce3;
  --ink: #14324b;
  --muted: #607487;
  --blue-1: #0f4e87;
  --blue-2: #1d69ad;
  --blue-3: #eaf3fb;
  --gold: #c89026;
  --gold-soft: #fff5e4;
  --green: #1f6d55;
  --green-soft: #ebf6ef;
  --red: #b45d5d;
  --red-soft: #fff1ef;
  --shadow: 0 16px 34px rgba(18, 43, 63, 0.08);
  --radius: 26px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Public Sans', system-ui, sans-serif;
  background: linear-gradient(180deg, #f8f6f1 0%, #eef2f5 100%);
  color: var(--ink);
}
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.page-shell {
  width: min(1280px, calc(100vw - 28px));
  margin: 20px auto 42px;
}

.wizard-main {
  min-height: 720px;
}

.hero-banner,
.guide-card,
.recommendation-card,
.snapshot-card,
.score-card,
.why-card,
.next-card,
.trend-card,
.chat-card,
.evidence-board,
.selection-card,
.map-panel,
.source-item,
.coach-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-banner {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 26px;
  padding: 34px 34px 30px;
  background:
    radial-gradient(circle at 18% 18%, rgba(142, 198, 246, 0.16) 0, rgba(142, 198, 246, 0) 28%),
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 22%),
    linear-gradient(135deg, #114e84 0%, #1c6cae 100%);
  color: white;
  overflow: hidden;
}

.eyebrow,
.section-kicker,
.selection-label,
.score-card-label,
.snapshot-label,
.result-badge,
.mode-label,
.board-head p,
.hero-side-kicker,
.mini-facts span,
.evidence-label,
.trend-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
}

.hero-banner h1,
.guide-card h2,
.recommendation-card h3,
.snapshot-card h3,
.score-card-name,
.business-card h3,
.evidence-board h3,
.why-card h3,
.next-card h3,
.trend-card h3,
.chat-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  letter-spacing: -0.02em;
}

.hero-banner h1 {
  margin: 16px 0 14px;
  font-size: clamp(40px, 5.7vw, 60px);
  line-height: 0.97;
}

.hero-subtitle {
  margin: 0;
  font-size: 19px;
  line-height: 1.58;
  max-width: 590px;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
  max-width: 560px;
}

.hero-proof-card {
  padding: 11px 13px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
}

.hero-proof-card strong,
.hero-proof-card span {
  display: block;
}

.hero-proof-card strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.hero-proof-card span {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.hero-data-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 14px;
}

.data-mode-badge,
.data-status-copy,
.data-status-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.11);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

.data-mode-badge.is-loading,
.data-status-copy.is-loading,
.mini-facts strong.is-loading {
  position: relative;
  color: transparent !important;
  overflow: hidden;
}

.data-mode-badge.is-loading,
.data-status-copy.is-loading {
  min-width: 190px;
}

.mini-facts strong.is-loading {
  min-height: 20px;
  border-radius: 10px;
}

.data-mode-badge.is-loading::before,
.data-status-copy.is-loading::before,
.mini-facts strong.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.26) 50%, rgba(255,255,255,0.14) 100%);
  background-size: 200% 100%;
  animation: statusShimmer 1.6s linear infinite;
}

@keyframes statusShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.data-mode-badge.is-live {
  background: rgba(231, 248, 240, 0.16);
  border-color: rgba(208, 245, 223, 0.28);
}

.data-mode-badge.is-snapshot {
  background: rgba(248, 243, 233, 0.16);
  border-color: rgba(245, 231, 198, 0.25);
}

.data-status-link {
  text-decoration: none;
}

.hero-note {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
}

.hero-side-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  align-self: stretch;
}

.hero-side-top {
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.07) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  max-width: 370px;
  justify-self: end;
}

.hero-checklist {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
  font-size: 15px;
}

.hero-illustration-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 286px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.hero-illustration {
  width: min(72%, 320px);
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 14px 24px rgba(11, 52, 91, 0.12));
}

.progress-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 18px;
}

.progress-pill {
  border: 1px solid #c8d3df;
  background: #f4f6f8;
  color: var(--muted);
  padding: 18px 20px;
  border-radius: 999px;
  text-align: left;
  font-weight: 700;
}

.progress-pill span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  background: white;
  border: 1px solid #c8d3df;
  color: var(--ink);
}

.progress-pill.is-active {
  background: #edf5fb;
  border-color: #bdd0e1;
  color: var(--ink);
}

.progress-pill:disabled {
  opacity: 0.7;
}

.guide-card {
  padding: 28px;
  margin-bottom: 18px;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.compact-head {
  align-items: center;
}

.step-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-1);
  color: white;
  font-size: 20px;
  font-weight: 800;
}

.step-dot-soft {
  background: var(--blue-3);
  color: var(--blue-1);
}

.guide-card h2 {
  margin: 0 0 8px;
  font-size: clamp(27px, 2.9vw, 38px);
  line-height: 1.06;
}

.section-head > div > p {
  font-size: 17px;
  line-height: 1.62;
  max-width: 820px;
}

.guide-card p,
.selection-copy,
.score-card-note,
.metric-description,
.metric-delta,
.support-copy,
.source-item p,
.source-meta,
.coach-box p,
.snapshot-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.coach-box {
  padding: 18px 20px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
}

.coach-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.coach-box-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.business-grid,
.step-grid,
.result-top-grid,
.score-summary-grid,
.metric-grid,
.evidence-grid,
.bottom-grid,
.source-list,
.mini-facts {
  display: grid;
  gap: 18px;
}

.business-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.business-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 22px;
  min-height: 208px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.business-card:hover {
  transform: translateY(-2px);
  border-color: #bfd0df;
}

.business-card.is-selected {
  background: var(--blue-3);
  border-color: var(--blue-2);
  box-shadow: 0 12px 24px rgba(14, 61, 103, 0.10);
}

.business-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #eaf2f9;
  color: var(--blue-1);
  margin-bottom: 14px;
}

.business-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.business-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.business-card > * {
  pointer-events: none;
}

.step-grid {
  grid-template-columns: 1.12fr 0.88fr;
}

.map-panel,
.selection-panel,
.recommendation-card,
.snapshot-card,
.score-card,
.why-card,
.next-card,
.trend-card,
.chat-card,
.evidence-board {
  padding: 22px;
}

.map-toolbar,
.board-head,
.metric-top,
.source-item-head,
.trend-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.toggle-group,
.mode-buttons,
.result-tags,
.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-toggle,
.benchmark-mode,
.primary-btn,
.secondary-btn,
.ghost-btn,
.quick-question {
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.16s ease;
}

.choice-toggle,
.benchmark-mode,
.quick-question {
  background: #f4f7fa;
  border-color: var(--line);
  color: var(--ink);
}

.choice-toggle.is-active,
.benchmark-mode.is-active {
  background: var(--blue-2);
  border-color: var(--blue-2);
  color: white;
}

.primary-btn {
  background: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
  color: white;
}

.secondary-btn {
  background: #f5f7fa;
  border-color: var(--line);
  color: var(--ink);
}

.ghost-btn {
  background: #fbfcfd;
  border-color: var(--line);
  color: var(--muted);
}

.primary-btn.small { border-radius: 14px; padding: 12px 14px; }
.primary-btn:disabled,
.secondary-btn:disabled,
.ghost-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.quick-modes { margin-top: 16px; }
.mode-buttons { margin-top: 8px; }
.mode-explainer {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #cfe0ee;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
}

.mode-explainer strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.mode-explainer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.map-instruction { margin: 16px 0 !important; color: var(--ink) !important; font-size: 16px !important; font-weight: 600; }
.area-flow-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

.area-flow-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f7fafc;
}

.area-flow-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-1);
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.area-flow-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.area-flow-card p,
.area-picker-help {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.map-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #d7dee5;
  background:
    radial-gradient(circle at 20% 22%, rgba(83, 154, 224, 0.22) 0, rgba(83, 154, 224, 0) 26%),
    radial-gradient(circle at 78% 28%, rgba(223, 180, 92, 0.14) 0, rgba(223, 180, 92, 0) 24%),
    linear-gradient(180deg, #102944 0%, #173d61 100%);
  aspect-ratio: 1365 / 768;
  padding: 16px;
}

.locator-map {
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}

.locator-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 32%, rgba(120, 192, 255, 0.14) 0, rgba(120, 192, 255, 0) 18%),
    radial-gradient(circle at 68% 60%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 20%),
    linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
  z-index: 0;
}

.locator-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.locator-head strong {
  display: block;
  color: #f2f7fb;
  font-size: 15px;
}

.locator-head p,
.locator-caption {
  margin: 4px 0 0;
  color: rgba(224, 235, 244, 0.78);
  line-height: 1.45;
  font-size: 12px;
}

.locator-note {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(231, 241, 249, 0.78);
  font-size: 11px;
  font-weight: 700;
}

.locator-outline,
.locator-grid-lines {
  position: absolute;
  inset: 52px 18px 18px;
  width: calc(100% - 36px);
  height: calc(100% - 70px);
}

.locator-outline {
  z-index: 0;
}

.locator-grid-lines {
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(209, 227, 241, 0.08) 1px, transparent 1px) 0 0 / 18% 100%,
    linear-gradient(0deg, rgba(209, 227, 241, 0.06) 1px, transparent 1px) 0 0 / 100% 20%;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.38) 100%);
}

.map-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  overflow: visible;
  transition: transform 0.18s ease;
  z-index: 2;
}

.map-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.02);
}

.hotspot-pulse,
.hotspot-node,
.hotspot-label {
  position: absolute;
  left: 0;
  top: 0;
}

.hotspot-pulse {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(223, 235, 245, 0.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.hotspot-node {
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.92);
  background: #dce8f3;
  box-shadow: 0 6px 16px rgba(4, 18, 31, 0.22);
}

.hotspot-label {
  min-width: 0;
  transform: translate(calc(-50% + var(--label-dx, 28px)), calc(-50% + var(--label-dy, -28px)));
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(12, 28, 44, 0.26);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 16px rgba(4, 18, 31, 0.12);
  color: rgba(245, 248, 251, 0.9);
  text-align: left;
  white-space: nowrap;
}

.map-hotspot[data-align="right"] .hotspot-label {
  text-align: right;
}

.hotspot-name,
.hotspot-role {
  display: block;
}

.hotspot-name {
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.1;
}

.hotspot-role {
  margin-top: 3px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(224, 235, 244, 0.68);
}

.map-hotspot:not(.is-candidate):not(.is-benchmark) .hotspot-label {
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: rgba(236, 243, 248, 0.6);
}

.map-hotspot.is-candidate .hotspot-pulse {
  width: 36px;
  height: 36px;
  background: rgba(60, 139, 220, 0.16);
  box-shadow: 0 0 0 1px rgba(121, 189, 255, 0.22);
}

.map-hotspot.is-candidate .hotspot-node {
  background: linear-gradient(180deg, #7cc0ff 0%, #207dd9 100%);
}

.map-hotspot.is-candidate .hotspot-label {
  background: rgba(17, 80, 136, 0.9);
  border-color: rgba(142, 202, 255, 0.26);
  box-shadow: 0 16px 30px rgba(18, 62, 102, 0.24);
}

.map-hotspot.is-benchmark .hotspot-pulse {
  width: 36px;
  height: 36px;
  background: rgba(214, 170, 88, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 220, 157, 0.22);
}

.map-hotspot.is-benchmark .hotspot-node {
  background: linear-gradient(180deg, #f2ce83 0%, #ca8d2d 100%);
}

.map-hotspot.is-benchmark .hotspot-label {
  background: rgba(78, 55, 18, 0.88);
  border-color: rgba(248, 216, 160, 0.24);
  box-shadow: 0 16px 30px rgba(83, 56, 17, 0.22);
}

.map-hotspot:focus-visible {
  outline: none;
}

.map-hotspot:focus-visible .hotspot-node {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.2), 0 0 0 8px rgba(67, 161, 255, 0.24);
}

.map-hotspot:hover .hotspot-label,
.map-hotspot:focus-visible .hotspot-label {
  border-color: rgba(255,255,255,0.3);
}

.map-hotspot:not(.is-candidate):not(.is-benchmark):hover .hotspot-label,
.map-hotspot:not(.is-candidate):not(.is-benchmark):focus-visible .hotspot-label {
  padding: 3px 6px;
  background: rgba(8, 22, 36, 0.36);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 16px rgba(4, 18, 31, 0.12);
}

.locator-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.locator-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.locator-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f7fa;
  border: 1px solid #d7e1ea;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
}

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

.locator-legend-dot.neutral { background: #d8e6f2; }
.locator-legend-dot.candidate { background: #52a6ff; }
.locator-legend-dot.benchmark { background: #dca045; }

.locator-caption {
  max-width: 360px;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
  font-size: 12px;
}

.area-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 36, 68, 0.12);
}

.selection-panel {
  display: grid;
  gap: 14px;
}

.selection-evidence {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfd 0%, #f4f8fb 100%);
}

.selection-evidence-head strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: var(--ink);
}

.selection-evidence-head p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

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

.selection-evidence-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #d9e2ea;
  background: white;
}

.selection-evidence-card strong {
  display: block;
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 16px;
}

.selection-evidence-role {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.selection-evidence-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.selection-evidence-card.tone-candidate {
  border-color: #bfd6ec;
}

.selection-evidence-card.tone-benchmark {
  border-color: #e6cfaa;
}

.selection-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
}

.selection-card-a { background: #eef5ff; }
.selection-card-b { background: #fff8ec; }
.selection-name { font-size: 28px; font-weight: 800; line-height: 1.05; margin: 6px 0 8px; }
.mini-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini-facts strong { display: block; margin-top: 6px; color: var(--ink); font-size: 15px; line-height: 1.45; }

.result-top-grid,
.score-summary-grid,
.bottom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-top-grid {
  grid-template-columns: 1.12fr 0.88fr;
  align-items: stretch;
  gap: 22px;
  margin-top: 20px;
}
.recommendation-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #113d67 0%, #1b639e 100%);
  color: white;
}

.recommendation-card::before {
  content: '';
  position: absolute;
  inset: auto -18% -28% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 68%);
  pointer-events: none;
}

.result-badge {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: white;
}

.result-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.perspective-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.comparison-question {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin: 0 0 10px;
  line-height: 1.45;
}

.result-tradeoff {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  line-height: 1.55;
}

.recommendation-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

.recommendation-actions .ghost-btn {
  border-color: rgba(255,255,255,0.22);
  color: white;
  background: rgba(255,255,255,0.08);
}

.recommendation-actions .ghost-btn:hover {
  background: rgba(255,255,255,0.16);
}

.swap-note {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  line-height: 1.5;
}

.recommendation-card h3 {
  margin: 0 0 12px;
  font-size: 34px;
}

.recommendation-card p { color: rgba(255,255,255,0.92); margin-bottom: 16px; }
.result-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  font-weight: 700;
}

.snapshot-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f1f6fa 100%);
}

.snapshot-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 173, 255, 0.16) 0%, rgba(98, 173, 255, 0) 68%);
  transform: translate(28%, -28%);
  pointer-events: none;
}

.snapshot-score-circle {
  width: 98px;
  height: 98px;
  margin: 10px 0 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 220deg, #1d69ad 0deg, #1d69ad 232deg, #d9e3ea 232deg, #d9e3ea 360deg);
}

.snapshot-score-circle span,
.snapshot-score-circle small { color: white; }
.snapshot-score-circle span { font-size: 28px; font-weight: 800; line-height: 1; }
.snapshot-card h3 { margin: 0 0 8px; font-size: 28px; }
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.snapshot-grid div {
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(20, 50, 75, 0.08);
  padding: 12px;
}

.snapshot-grid strong {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
}

.snapshot-grid .wide { grid-column: 1 / -1; }

.score-card {
  position: relative;
  overflow: hidden;
  background: #fbfcfd;
}

.score-card-a { background: #eef5ff; border: 1px solid #cfe1f4; }
.score-card-b { background: #fff8ef; border: 1px solid #ead8b8; }
.score-card-a::before,
.score-card-b::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 8px;
}

.score-card-a::before {
  background: linear-gradient(90deg, #207dd9 0%, #71b3ff 100%);
}

.score-card-b::before {
  background: linear-gradient(90deg, #ca8d2d 0%, #f0c97f 100%);
}

.score-summary-grid {
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
  margin-top: 22px;
}

.score-bridge {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-radius: 24px;
  border: 1px solid #d6e3ee;
  background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
  box-shadow: 0 18px 38px rgba(18, 43, 63, 0.08);
  text-align: center;
}

.score-bridge-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.score-bridge strong {
  font-size: 44px;
  line-height: 0.95;
  color: var(--ink);
  font-weight: 800;
}

.score-bridge p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}
.guide-card-step-3.reverse-active .score-card-a {
  box-shadow: 0 18px 40px rgba(32, 125, 217, 0.16);
  transform: translateY(-2px);
}
.guide-card-step-3.reverse-active .recommendation-card {
  box-shadow: 0 24px 48px rgba(17, 61, 103, 0.22);
}
.score-card-name { font-size: 26px; margin-top: 8px; }
.score-card-total { font-size: 50px; font-weight: 800; line-height: 1; margin: 10px 0 8px; }
.score-card-caption { font-weight: 800; color: var(--blue-1); margin-bottom: 8px; }

.bottom-grid {
  gap: 20px;
  margin-top: 20px;
}

.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; gap: 20px; }
.metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.metric-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 20px 0 0 20px;
  background: #d7e4ef;
}

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

.metric-card-positive::before {
  background: linear-gradient(180deg, #43a97d 0%, #8ad2b4 100%);
}

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

.metric-card-negative::before {
  background: linear-gradient(180deg, #dd6b6b 0%, #ef9b9b 100%);
}

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

.metric-top h4 { margin: 0; font-size: 18px; }
.metric-status {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.metric-status.positive { background: var(--green-soft); color: var(--green); }
.metric-status.negative { background: var(--red-soft); color: var(--red); }
.metric-status.neutral { background: #f1f5f8; color: var(--muted); }
.metric-row {
  display: grid;
  grid-template-columns: 128px 1fr 56px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.metric-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.metric-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #edf3f8;
  overflow: hidden;
}
.metric-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}
.metric-fill.candidate { background: linear-gradient(90deg, #62adff, #207dd9); }
.metric-fill.benchmark { background: linear-gradient(90deg, #efc36f, #ca8d2d); }
.metric-value { text-align: right; font-size: 13px; font-weight: 800; }
.metric-delta { margin-top: 8px; }

.board-head h3,
.why-card h3,
.next-card h3,
.trend-card h3,
.chat-card h3 { margin: 0 0 8px; font-size: 22px; }
.board-head { margin-bottom: 16px; }
.evidence-board {
  margin-top: 24px;
}

.evidence-board-highlight {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.evidence-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.evidence-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fbfcfd;
}

.evidence-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.evidence-rule {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4f8fb;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.evidence-bars {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.evidence-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 110px) 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f5f8fb;
  border: 1px solid transparent;
}

.evidence-bar-row span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.evidence-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #e7eef5;
  overflow: hidden;
  border: 1px solid #d6e2ec;
}

.evidence-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.evidence-fill.candidate {
  background: linear-gradient(90deg, #62adff, #207dd9);
}

.evidence-fill.benchmark {
  background: repeating-linear-gradient(
    135deg,
    #ca8d2d 0 7px,
    #f0c97f 7px 14px
  );
}

.evidence-bar-row strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.evidence-bar-row.winner {
  background: #eff6fc;
  border-color: #c8dced;
}

.insight-stack { display: grid; gap: 12px; }
.insight-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.84);
}

.insight-item h4 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.next-card { background: #fffaf2; }
.why-card-premium {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

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

.next-steps-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.next-steps-list li { color: var(--muted); line-height: 1.5; }
.improvement-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #ead8b8;
  background: rgba(255,255,255,0.82);
}

.improvement-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.improvement-box p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.55;
}

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

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

.trend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.trend-item {
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 14px;
  background: #f9fbfc;
}
.trend-item.up { background: var(--green-soft); border-color: #cde4d8; }
.trend-item.down { background: var(--red-soft); border-color: #f2d4cf; }
.trend-item.flat { background: #f4f7fa; }
.trend-value { font-size: 28px; font-weight: 800; color: var(--ink); }
.trend-chart {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.trend-chart-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
}

.trend-chart-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trend-chart-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(20, 50, 75, 0.08);
  overflow: hidden;
}

.trend-chart-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.trend-chart-fill.recent {
  background: linear-gradient(90deg, #207dd9, #62adff);
}

.trend-chart-fill.prior {
  background: linear-gradient(90deg, rgba(20, 50, 75, 0.34), rgba(20, 50, 75, 0.16));
}

.trend-chart-row strong {
  font-size: 13px;
  color: var(--ink);
}
.trend-item p { margin: 10px 0 6px; }
.trend-item small { color: var(--muted); }

.chat-log {
  min-height: 180px;
  max-height: 280px;
  overflow: auto;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfd;
}

.chat-bubble {
  max-width: 86%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.45;
}
.chat-bubble.user { margin-left: auto; background: #dfeeff; color: var(--blue-1); }
.chat-bubble.bot { background: white; border: 1px solid var(--line); }
.chat-compose { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
#chat-input { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: white; }

.footer-card { background: linear-gradient(180deg, #fbfcfd 0%, #f1f5f8 100%); }
.method-pill-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 18px;
}

.method-pill {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #d9e2ea;
  background: rgba(255,255,255,0.8);
}

.method-pill strong,
.method-pill span {
  display: block;
}

.method-pill strong {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}

.method-pill span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.data-details { border-top: 1px solid var(--line); padding-top: 16px; }
.data-details summary { cursor: pointer; font-weight: 800; color: var(--blue-1); }
.source-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.source-item { padding: 18px; }
.source-item-head h3 { margin: 0; font-size: 18px; }
.source-item-tag {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.source-item-cta,
.source-item-head a { color: var(--blue-2); font-weight: 700; text-decoration: none; }
.source-item-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.source-meta { margin-top: 10px; }
.evidence-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d5dfeb;
  background: #f6f9fc;
  color: var(--blue-1);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.section-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.single-right { justify-content: flex-end; }

@media (max-width: 1120px) {
  .hero-banner,
  .progress-strip,
  .business-grid,
  .step-grid,
  .result-top-grid,
  .score-summary-grid,
  .metric-grid,
  .evidence-grid,
  .bottom-grid,
  .source-list,
  .trend-grid {
    grid-template-columns: 1fr;
  }

  .method-pill-row,
  .selection-evidence-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-grid,
  .mini-facts {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-illustration {
    width: min(68%, 290px);
    max-height: 290px;
  }
}

@media (max-width: 760px) {
  .page-shell { width: min(100vw - 12px, 1280px); }
  .hero-banner { padding: 24px 20px; }
  .hero-banner h1 { font-size: 44px; }
  .hero-proof-grid { grid-template-columns: 1fr; }
  .hero-side-panel { padding: 0; }
  .hero-side-top { padding: 16px; }
  .hero-illustration-wrap { min-height: 240px; }
  .hero-illustration { width: min(70%, 250px); max-height: 250px; }
  .guide-card { padding: 20px; }
  .guide-card h2 { font-size: clamp(28px, 8vw, 34px); }
  .section-head > div > p { font-size: 16px; }
  .hero-data-strip { align-items: stretch; }
  .data-mode-badge,
  .data-status-copy,
  .data-status-link { width: 100%; justify-content: center; }
  .snapshot-grid,
  .mini-facts,
  .chat-compose,
  .section-actions { grid-template-columns: 1fr; }
  .section-actions { flex-direction: column; }
  .hotspot-label {
    padding: 6px 8px;
  }

  .hotspot-name { font-size: 12px; }
  .hotspot-role { font-size: 9px; }
  .locator-note { display: none; }
  .locator-caption {
    max-width: none;
    text-align: left;
  }
  .locator-footer { flex-direction: column; }
}
.hidden { display: none !important; }
.business-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.source-item-head { align-items: flex-start; }
.guide-card-step-1 {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.guide-card-step-2 {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.guide-card-step-3 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
}

.guide-card-step-3::before {
  content: '';
  position: absolute;
  inset: -90px -90px auto auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 184, 239, 0.16) 0%, rgba(124, 184, 239, 0) 72%);
  pointer-events: none;
}

.guide-card-step-3 > * {
  position: relative;
  z-index: 1;
}

.step-hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  margin-bottom: 22px;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.step-hero-primary {
  background: linear-gradient(135deg, #16558e 0%, #3d80bb 100%);
  color: white;
}

.step-hero-soft {
  background: linear-gradient(135deg, #eff5fa 0%, #f8fbfd 100%);
}

.step-hero-contrast {
  background: linear-gradient(135deg, #133a61 0%, #205e95 100%);
  color: white;
}

.step-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.step-hero-copy-dark {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.16);
}

.step-hero-copy-light {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.step-hero-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-hero-text {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.step-hero-primary .step-hero-text,
.step-hero-contrast .step-hero-text,
.step-hero-primary .step-hero-kicker,
.step-hero-contrast .step-hero-kicker {
  color: rgba(255,255,255,0.92);
}

.step-hero-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  font-size: 17px;
  line-height: 1.55;
}

.step-hero-list.compact {
  gap: 8px;
}

.step-hero-pills,
.step-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.step-hero-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
}

.step-hero-pills.light span {
  background: rgba(255,255,255,0.13);
}

.step-hero-stats div {
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(18, 43, 63, 0.06);
}

.step-hero-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: var(--blue-1);
}

.step-hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.step-hero-media {
  min-width: 0;
}

.step-hero-media-photo {
  display: flex;
  align-items: stretch;
}

.step-hero-media-photo img {
  width: 100%;
  min-height: 320px;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(20, 50, 75, 0.08);
  box-shadow: 0 20px 34px rgba(18, 43, 63, 0.18);
}

.footer-card-inline {
  margin-top: 24px;
}

.footer-card-inline .section-head {
  margin-bottom: 16px;
}

.footer-card-inline h2 {
  font-size: clamp(28px, 3vw, 42px);
}

@media (max-width: 1120px) {
  .step-hero {
    grid-template-columns: 1fr;
  }

  .step-hero-media-photo img {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .step-hero {
    padding: 16px;
    gap: 16px;
  }

  .step-hero-copy-dark,
  .step-hero-copy-light {
    padding: 18px;
  }

  .step-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .step-hero-media-photo img {
    min-height: 220px;
  }
}
button:focus-visible,
input:focus-visible,
details summary:focus-visible {
  outline: 3px solid #0c6bd8;
  outline-offset: 3px;
}

.hero-note {
  color: rgba(255,255,255,0.92);
}

.business-card {
  position: relative;
  z-index: 1;
}

.business-card.is-selected {
  background: linear-gradient(180deg, #eef6ff 0%, #dceeff 100%);
  border-width: 2px;
  box-shadow: 0 16px 28px rgba(14, 61, 103, 0.16);
}

.business-card.is-selected::after {
  content: 'Selected';
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-1);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.choice-toggle,
.benchmark-mode,
.quick-question,
.area-chip {
  border-width: 1px;
}

.quick-question {
  background: #e9f2fb;
  border-color: #bfd2e4;
  color: var(--blue-1);
}

.quick-question:hover {
  background: #dcecff;
}

.area-chip.is-candidate {
  background: rgba(29, 105, 173, 0.96);
  color: white;
}

.area-chip.is-benchmark {
  background: rgba(200, 144, 38, 0.96);
  color: white;
}

.area-chip-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.area-chip-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

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

.area-chip {
  position: relative;
  min-height: 68px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fbfd;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  line-height: 1.35;
}

.area-chip::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 8px;
  opacity: 0;
}

.area-chip.is-candidate::after {
  content: 'Candidate';
  background: rgba(255,255,255,0.18);
  color: white;
  opacity: 1;
}

.area-chip.is-benchmark::after {
  content: 'Benchmark';
  background: rgba(255,255,255,0.18);
  color: white;
  opacity: 1;
}

.metric-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f4f8fb;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.legend-swatch {
  width: 26px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.legend-swatch.candidate {
  background: linear-gradient(90deg, #62adff, #207dd9);
}

.legend-swatch.benchmark {
  background: repeating-linear-gradient(
    135deg,
    #ca8d2d 0 6px,
    #f0c97f 6px 12px
  );
}

.score-explainer {
  margin: 22px 0 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.board-head-tight {
  align-items: center;
  margin-bottom: 10px;
}

.score-band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.score-band {
  padding: 14px;
  border-radius: 18px;
  background: #f5f8fb;
  border: 1px solid var(--line);
}

.score-band strong {
  display: block;
  font-size: 20px;
  color: var(--blue-1);
}

.score-band span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.score-gap-note {
  margin-top: 14px;
  font-weight: 700;
  color: var(--ink);
}

.score-model-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 14px;
  margin-top: 18px;
}

.score-model-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  padding: 16px;
}

.score-model-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.quick-tutorial {
  margin: 14px 0 8px;
  border: 1px solid #d9e4ec;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fc 100%);
  overflow: clip;
}

.quick-tutorial summary {
  list-style: none;
}

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

.quick-tutorial-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
}

.quick-tutorial-summary-copy {
  display: grid;
  gap: 3px;
}

.quick-tutorial-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(18, 72, 124, 0.08);
  color: var(--blue-1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-tutorial-summary strong {
  font-size: 17px;
  color: var(--ink);
}

.quick-tutorial-summary small {
  color: var(--muted);
  font-size: 13px;
}

.quick-tutorial-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-right: 2px solid var(--blue-1);
  border-bottom: 2px solid var(--blue-1);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}

.quick-tutorial[open] .quick-tutorial-chevron {
  transform: rotate(225deg);
}

.quick-tutorial-body {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(199, 214, 226, 0.8);
}

.quick-tutorial-body > .support-copy {
  margin-top: 14px;
}

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

.quick-tutorial-item {
  padding: 14px;
  border: 1px solid #dce6ee;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.quick-tutorial-item h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--ink);
}

.quick-tutorial-item p,
.quick-tutorial-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.quick-tutorial-footnote {
  margin-top: 14px;
}

.score-model-head h4 {
  margin: 6px 0 0;
  font-size: 20px;
  color: var(--ink);
}

.score-model-business,
.score-model-note {
  max-width: 280px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.weight-bar-empty {
  border-radius: 18px;
  padding: 16px;
  background: #f4f8fb;
  border: 1px dashed #c9d8e5;
  color: var(--muted);
  line-height: 1.55;
}

.weight-bar-track {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f0f6;
  min-height: 46px;
  border: 1px solid #d2dee8;
}

.weight-bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.weight-bar-segment.signal-blue,
.weight-legend-dot.signal-blue,
.signal-pillar.signal-blue .signal-pillar-icon { background: linear-gradient(90deg, #2b86df 0%, #65b0ff 100%); }

.weight-bar-segment.signal-green,
.weight-legend-dot.signal-green,
.signal-pillar.signal-green .signal-pillar-icon { background: linear-gradient(90deg, #318f71 0%, #5dc29d 100%); }

.weight-bar-segment.signal-ink,
.weight-legend-dot.signal-ink,
.signal-pillar.signal-ink .signal-pillar-icon { background: linear-gradient(90deg, #244a69 0%, #3f6788 100%); }

.weight-bar-segment.signal-gold,
.weight-legend-dot.signal-gold,
.signal-pillar.signal-gold .signal-pillar-icon { background: linear-gradient(90deg, #bf7f1c 0%, #dfac57 100%); }

.weight-bar-segment.signal-coral,
.weight-legend-dot.signal-coral,
.signal-pillar.signal-coral .signal-pillar-icon { background: linear-gradient(90deg, #d06452 0%, #ec9384 100%); }

.signal-pillar.signal-blue { background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%); border-color: #d3e6f8; }
.signal-pillar.signal-green { background: linear-gradient(180deg, #f5fbf8 0%, #ffffff 100%); border-color: #d3eadf; }
.signal-pillar.signal-ink { background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%); border-color: #d9e1e8; }
.signal-pillar.signal-gold { background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%); border-color: #efd9b2; }
.signal-pillar.signal-coral { background: linear-gradient(180deg, #fff7f4 0%, #ffffff 100%); border-color: #f0d0ca; }

.weight-bar-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.weight-legend-item {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 12px;
}

.weight-legend-item strong,
.weight-legend-item small {
  display: block;
}

.weight-legend-item strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.weight-legend-item small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.weight-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.signal-pillars {
  display: grid;
  gap: 10px;
}

.signal-pillar {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.signal-pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
}

.signal-pillar-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-pillar-copy strong,
.signal-pillar-copy span {
  display: block;
}

.signal-pillar-copy strong {
  color: var(--ink);
}

.signal-pillar-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.signal-pillar-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.metric-row label {
  color: var(--ink);
}

.metric-bar {
  border: 1px solid #d6e3ee;
}

.metric-fill.candidate {
  background: linear-gradient(90deg, #62adff, #207dd9);
}

.metric-fill.benchmark {
  background: repeating-linear-gradient(
    135deg,
    #ca8d2d 0 7px,
    #f0c97f 7px 14px
  );
}

.trend-item.good {
  background: var(--green-soft);
  border-color: #cde4d8;
}

.trend-item.bad {
  background: var(--red-soft);
  border-color: #f2d4cf;
}

.trend-item.neutral {
  background: #f4f7fa;
}

.trend-item small {
  display: block;
  line-height: 1.45;
}

#chat-input {
  color: var(--ink);
}

#chat-input::placeholder {
  color: #5b7183;
}

@media (max-width: 1120px) {
  .score-band-grid,
  .area-chip-grid,
  .score-model-grid,
  .weight-bar-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .toggle-group,
  .mode-buttons,
  .metric-legend {
    width: 100%;
  }

  .toggle-group,
  .mode-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .area-chip-grid,
  .area-flow-guide,
  .score-band-grid,
  .score-model-grid,
  .weight-bar-legend {
    grid-template-columns: 1fr;
  }

  .map-stage {
    aspect-ratio: 1.2 / 1;
  }

  .score-explainer {
    padding: 16px;
  }

  .quick-tutorial {
    margin-top: 12px;
  }

  .quick-tutorial-summary {
    padding: 13px 14px;
  }

  .quick-tutorial-grid {
    grid-template-columns: 1fr;
  }

  .chat-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .evidence-bar-row,
  .trend-chart-row {
    grid-template-columns: 1fr;
  }

  .quick-question {
    width: 100%;
    text-align: left;
  }
}
.evidence-note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.swap-hint {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed #bfd2e4;
  background: #f7fbff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.visual-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 26px 0 30px;
}

.visual-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: var(--shadow);
  padding: 22px;
}

.visual-card h3 {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(24px, 2vw, 30px);
  letter-spacing: -0.02em;
}

.board-note {
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}

.decision-fingerprint {
  display: grid;
  gap: 16px;
  overflow: visible;
}

.decision-radar {
  width: 100%;
  height: auto;
  min-height: 380px;
  display: block;
  overflow: visible;
}

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

.fingerprint-chip {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
}
.fingerprint-chip.candidate {
  border-color: #bfd7ee;
  box-shadow: 0 10px 26px rgba(32, 125, 217, 0.08);
}
.fingerprint-chip.benchmark {
  border-color: #e5d1ad;
}

.fingerprint-chip strong,
.fingerprint-chip small {
  display: block;
}

.fingerprint-chip strong {
  color: var(--ink);
}

.fingerprint-chip small {
  margin-top: 4px;
  color: var(--muted);
}

.fingerprint-swatch {
  width: 100%;
  height: 42px;
  border-radius: 999px;
}

.fingerprint-swatch.candidate {
  background: linear-gradient(180deg, #62adff 0%, #207dd9 100%);
}

.fingerprint-swatch.benchmark {
  background: repeating-linear-gradient(135deg, #ca8d2d 0 7px, #f0c97f 7px 14px);
}

.visual-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.visual-story-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #ffffff;
  min-width: 0;
  height: 100%;
  align-content: start;
}

.story-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--blue-1);
  background: #eaf3fb;
}

.story-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-value {
  margin-top: 6px;
  font-size: clamp(18px, 1.45vw, 21px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.18;
  overflow-wrap: break-word;
}

.story-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
  overflow-wrap: break-word;
}

.story-graphic {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(20, 50, 75, 0.08);
}

.story-graphic-lens {
  grid-template-columns: 1fr;
  align-items: start;
}

.story-lens-stack {
  display: grid;
  gap: 10px;
}

.story-lens-pill {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f6f9fc;
  min-width: 0;
}

.story-lens-pill span,
.story-lens-pill strong {
  display: block;
}

.story-lens-pill span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.story-lens-pill strong {
  margin-top: 5px;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: break-word;
}

.story-lens-pill.candidate {
  background: #edf6ff;
  border-color: #cadff2;
}

.story-lens-pill.benchmark {
  background: #fff8ef;
  border-color: #e9d8b8;
}

.story-lens-vs {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f4f8fb;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  justify-self: start;
}

.story-lens-connector {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.story-lens-connector span {
  width: 2px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(32, 125, 217, 0.48) 0%, rgba(200, 144, 38, 0.44) 100%);
}

.story-lens-connector small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-bar-stack {
  display: grid;
  gap: 12px;
}

.story-bar-stack.compact {
  gap: 8px;
}

.story-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 126px) 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.story-bar-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.story-bar-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.story-bar-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #eaf0f5;
  overflow: hidden;
  min-width: 0;
}

.story-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.story-bar-fill.candidate {
  background: linear-gradient(90deg, #62adff, #207dd9);
}

.story-bar-fill.benchmark {
  background: repeating-linear-gradient(135deg, #ca8d2d 0 7px, #f0c97f 7px 14px);
}

.story-bar-fill.prior {
  background: linear-gradient(90deg, rgba(20, 50, 75, 0.3), rgba(20, 50, 75, 0.16));
}

.story-bar-fill.risk {
  background: linear-gradient(90deg, #e38a6d, #d06452);
}

.story-kpi-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #eef5fb;
  border: 1px solid #cdddea;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.story-kpi-chip.good {
  background: #ebf6ef;
  border-color: #cde4d8;
}

.story-kpi-chip.bad,
.story-kpi-chip.warning {
  background: #fff3eb;
  border-color: #f0d3c8;
}

.story-kpi-chip.neutral {
  background: #f4f8fb;
  border-color: var(--line);
}

.visual-story-card.tone-positive {
  background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%);
}

.visual-story-card.tone-positive .story-icon {
  background: #e8f5ee;
  color: var(--green);
}

.visual-story-card.tone-warning {
  background: linear-gradient(180deg, #fff9ef 0%, #ffffff 100%);
}

.visual-story-card.tone-warning .story-icon {
  background: #fff1dc;
  color: var(--gold);
}

.visual-story-card.tone-good {
  background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%);
}

.visual-story-card.tone-good .story-icon {
  background: #e8f5ee;
  color: var(--green);
}

.visual-story-card.tone-bad {
  background: linear-gradient(180deg, #fff7f5 0%, #ffffff 100%);
}

.visual-story-card.tone-bad .story-icon {
  background: #ffe7e2;
  color: #c05d50;
}

.visual-story-card.tone-neutral {
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

@media (max-width: 1120px) {
  .visual-story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .fingerprint-legend,
  .visual-story-grid {
    grid-template-columns: 1fr;
  }

  .visual-story-card {
    grid-template-columns: 52px 1fr;
    padding: 14px;
  }

  .story-icon {
    width: 52px;
    height: 52px;
  }

  .story-bar-row {
    grid-template-columns: 1fr;
  }
}

