@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f7f5;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.96);
  --line: #dedbd5;
  --text: #171717;
  --muted: #68645f;
  --brand: #c41230;
  --brand-strong: #971025;
  --brand-soft: #ef6c7f;
  --sand: #746f68;
  --coral: #b1122b;
  --warn: #b83b4e;
  --surface: #ffffff;
  --shadow: 0 18px 50px rgba(24, 24, 24, 0.09);
  --shadow-soft: 0 8px 24px rgba(24, 24, 24, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(196, 18, 48, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(23, 23, 23, 0.05) 0%, transparent 24%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  min-height: 100vh;
}

.background-glow {
  position: fixed;
  width: 430px;
  height: 430px;
  border-radius: 999px;
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
}

.glow-a {
  top: -130px;
  right: -90px;
  background: rgba(196, 18, 48, 0.13);
}

.glow-b {
  bottom: -140px;
  left: -120px;
  background: rgba(20, 20, 20, 0.07);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 18px 44px;
  display: grid;
  gap: 18px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(196, 18, 48, 0.08), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
  animation: rise 0.6s ease;
}

.hero-main {
  display: flex;
  gap: 22px;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(150px, 22vw, 240px);
  height: auto;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
}

.subhead {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 700px;
  font-size: 14px;
}

.hero-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: var(--brand);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(196, 18, 48, 0.28);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: #ffffff;
}

.stamp {
  color: var(--muted);
  font-size: 12px;
}

.warning {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(196, 18, 48, 0.24);
  background: rgba(196, 18, 48, 0.07);
  color: #681021;
  font-size: 13px;
}

.hidden {
  display: none;
}

.stat-grid,
.location-grid,
.highlight-grid,
.source-card-grid,
.market-grid,
.source-roi-grid {
  display: grid;
  gap: 12px;
}

.filter-bar {
  padding: 0;
  position: relative;
  z-index: 6;
}

.workbook-drawer {
  padding: 0;
  overflow: hidden;
}

.workbook-drawer summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 700;
}

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

.workbook-drawer summary::after {
  content: "Open";
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
}

.workbook-drawer[open] summary::after {
  content: "Close";
}

.workbook-drawer small {
  color: var(--muted);
  font-weight: 500;
}

.workbook-drawer .source-card-grid {
  padding: 0 18px 18px;
}

.collapsible-panel {
  padding: 0;
  overflow: hidden;
}

.panel-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  position: relative;
  padding-right: 110px;
}

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

.panel-summary .panel-title-row {
  margin-bottom: 0;
  align-items: center;
}

.panel-summary::after {
  content: "Collapse";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--brand);
  border: 1px solid rgba(196, 18, 48, 0.2);
  background: rgba(196, 18, 48, 0.06);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.collapsible-panel:not([open]) .panel-summary::after {
  content: "Expand";
}

.panel-body {
  padding: 0 18px 18px;
}

.segmented-control {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 8;
  pointer-events: auto;
}

.filter-layout,
.class-filter,
#regionFilters,
#regionFilters .segment,
#classFilter {
  position: relative;
  z-index: 8;
  pointer-events: auto;
}

body.snapshot-mode #warningBanner,
body.snapshot-mode .warning,
body.snapshot-mode .stamp,
body.snapshot-mode #refreshStamp,
body.snapshot-mode .hero-actions {
  pointer-events: none;
}

body.snapshot-mode #warningBanner,
body.snapshot-mode .hero-actions {
  position: relative;
  z-index: 1;
}

body.snapshot-mode .filter-bar,
body.snapshot-mode .panel.filter-bar,
body.snapshot-mode .filter-layout,
body.snapshot-mode #regionFilters,
body.snapshot-mode .class-filter {
  position: relative;
  z-index: 12;
}

.filter-layout {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.class-filter {
  min-width: min(100%, 420px);
  display: grid;
  gap: 6px;
}

.segment {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.segment:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.segment.is-active {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(196, 18, 48, 0.16);
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.location-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.highlight-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.source-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.market-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.onboarding-grid {
  display: grid;
  gap: 14px;
}

.onboarding-summary-grid,
.onboarding-location-grid,
.onboarding-candidate-grid {
  display: grid;
  gap: 12px;
}

.onboarding-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.onboarding-location-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.onboarding-candidate-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 14px;
}

.highlight-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(196, 18, 48, 0.06), transparent 44%),
    #ffffff;
}

.onboarding-summary-card,
.onboarding-location-card,
.onboarding-candidate-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(196, 18, 48, 0.05), transparent 48%),
    #ffffff;
}

.onboarding-score {
  margin: 8px 0 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

.onboarding-metrics,
.flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.onboarding-metrics span,
.flag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  background: #f1efea;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.flag-pill {
  color: #681021;
  background: rgba(196, 18, 48, 0.08);
}

.onboarding-candidate-card h3 {
  margin: 4px 0;
  font-size: 18px;
}

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

.onboarding-detail-grid div {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f6f3;
}

.onboarding-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.onboarding-detail-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

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

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

.source-feeds {
  color: var(--sand);
  font-size: 12px;
  line-height: 1.5;
}

.source-path {
  display: block;
  padding: 9px;
  border-radius: 10px;
  color: #3f3a36;
  background: #f3f2ef;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.source-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--brand);
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 18, 48, 0.34);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  cursor: pointer;
}

.source-open-status {
  display: block;
  margin-top: 8px;
}

.card-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-value {
  margin: 8px 0 0;
  font-size: 30px;
}

.card-foot {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--sand);
}

.highlight-head,
.market-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.market-score {
  margin: 8px 0 0;
  font-size: 32px;
  line-height: 1;
}

.market-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.signal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: var(--brand);
}

.signal-chip.is-muted {
  background: #efede8;
  color: var(--text);
}

.signal-chip.is-up {
  background: linear-gradient(90deg, #8f0d24, #c41230);
}

.signal-chip.is-down {
  background: linear-gradient(90deg, #5e1b26, #8f0d24);
}

.signal-chip.is-flat {
  background: #efede8;
  color: var(--muted);
}

.panel {
  padding: 18px;
  animation: rise 0.65s ease both;
}

.panel.collapsible-panel,
.panel.filter-bar {
  padding: 0;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-size: 18px;
}

.panel-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.collapsible-panel > .panel-title-row {
  padding: 18px;
}

.split {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 1fr;
}

.location-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(196, 18, 48, 0.05), transparent 38%),
    #ffffff;
}

.nav-card,
.nav-row {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-card:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 18, 48, 0.34);
  box-shadow: 0 12px 28px rgba(196, 18, 48, 0.09);
}

.nav-row:hover td {
  background: rgba(196, 18, 48, 0.05);
}

.location-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.chip {
  font-size: 11px;
  color: #ffffff;
  background: var(--brand);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

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

.cohort-focus-item {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(196, 18, 48, 0.04);
}

.cohort-focus-item p {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cohort-focus-item strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

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

.metric-tile {
  background: #f7f6f3;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}

.metric-tile p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.metric-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.interview-pulse {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.interview-pulse-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.interview-pulse-note {
  margin: -4px 0 8px;
  font-size: 12px;
  color: var(--sand);
}

.interview-pulse-row {
  display: flex;
  gap: 8px;
}

.pulse-tile {
  flex: 1 1 0;
  min-width: 0;
  background: #fcfbfa;
}

.source-roi-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(196, 18, 48, 0.05), transparent 34%),
    #ffffff;
}

.source-roi-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.source-roi-head h3 {
  margin: 0;
  font-size: 19px;
}

.source-roi-copy {
  margin: 6px 0 0;
  color: var(--sand);
  font-size: 12px;
}

.source-roi-total {
  min-width: 140px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf8f6;
  text-align: right;
}

.source-roi-total-compact {
  min-width: 104px;
  padding: 8px 10px;
}

.source-roi-total strong {
  display: block;
  font-size: 22px;
}

.source-roi-total span {
  color: var(--muted);
  font-size: 11px;
}

.source-roi-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 16px;
  align-items: start;
}

.source-roi-chart-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  padding-top: 4px;
}

.source-roi-chart {
  width: 220px;
  height: 220px;
  display: block;
}

.source-roi-legend {
  display: grid;
  gap: 6px;
  align-content: center;
}

.source-roi-legend-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf8f6;
}

.source-roi-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.source-roi-legend-copy,
.source-roi-legend-metrics {
  display: grid;
  gap: 1px;
}

.source-roi-legend-copy strong,
.source-roi-legend-metrics strong {
  font-size: 11px;
}

.source-roi-legend-copy span,
.source-roi-legend-metrics span {
  color: var(--muted);
  font-size: 10px;
}

.source-roi-legend-metrics {
  text-align: right;
}

.riskbar {
  margin-top: 12px;
  height: 8px;
  background: #ebe7e1;
  border-radius: 999px;
  overflow: hidden;
}

.riskfill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-strong), var(--brand), var(--brand-soft));
}

.funnel {
  display: grid;
  gap: 10px;
}

.flow-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(196, 18, 48, 0.04), transparent 26%),
    #ffffff;
  padding: 14px;
}

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

.flow-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.flow-grid {
  display: grid;
  gap: 8px;
}

.flow-row {
  display: grid;
  grid-template-columns: 90px 1fr 42px;
  gap: 10px;
  align-items: center;
}

.flow-label {
  font-size: 12px;
  color: var(--sand);
}

.flow-bar {
  height: 8px;
  background: #efeae5;
  border-radius: 999px;
  overflow: hidden;
}

.flow-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-strong), var(--brand), var(--brand-soft));
}

.flow-value {
  font-size: 12px;
  text-align: right;
}

.flow-location-grid {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.flow-location-row {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 7px 8px;
  font: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.flow-location-row:hover {
  border-color: rgba(196, 18, 48, 0.22);
  background: rgba(196, 18, 48, 0.04);
}

.flow-location-row strong {
  font-size: 12px;
}

.flow-location-row span {
  font-size: 11px;
  color: var(--muted);
}

.funnel-row {
  display: grid;
  grid-template-columns: 130px 1fr 60px;
  gap: 10px;
  align-items: center;
}

.funnel-bar {
  height: 26px;
  background: #ece9e4;
  border-radius: 8px;
  overflow: hidden;
}

.funnel-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-strong), var(--brand));
}

.trend {
  min-width: 0;
}

.velocity-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.velocity-summary div {
  padding: 10px;
  border-radius: 12px;
  background: #f7f6f3;
  border: 1px solid var(--line);
}

.velocity-summary span,
.velocity-week span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.velocity-week .velocity-label {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.velocity-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.velocity-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(56px, 1fr);
  gap: 10px;
  min-height: 220px;
  padding: 12px;
  overflow-x: auto;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(196, 18, 48, 0.05), transparent 35%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.velocity-week {
  display: grid;
  gap: 6px;
  min-width: 56px;
  text-align: center;
}

.velocity-bar-wrap {
  height: 150px;
  display: flex;
  align-items: end;
  border-radius: 12px;
  overflow: hidden;
  background: #eeeae4;
}

.velocity-bar {
  width: 100%;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, var(--brand-soft), var(--brand));
}

.axis-label {
  fill: #c5b1a2;
  font-size: 10px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 275px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: #f1efea;
  position: sticky;
  top: 0;
}

.timeline {
  display: grid;
  gap: 9px;
  max-height: 390px;
  overflow: auto;
  padding-right: 4px;
}

.timeline-row {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(196, 18, 48, 0.05), transparent 55%),
    #ffffff;
}

.timeline-row p {
  margin: 2px 0;
  font-size: 12px;
  color: var(--muted);
}

.timeline-row strong {
  font-size: 13px;
}

.market-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(196, 18, 48, 0.05), transparent 26%),
    #ffffff;
}

.market-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.market-metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #f7f6f3;
}

.market-metric span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.market-metric strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}

.market-copy {
  margin-top: 12px;
  font-size: 12px;
  color: var(--sand);
  line-height: 1.5;
}

.market-section {
  margin-top: 14px;
}

.market-label {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.market-list {
  margin: 0;
  padding-left: 18px;
  color: var(--sand);
  font-size: 12px;
  display: grid;
  gap: 6px;
}

.email-box {
  display: grid;
  gap: 8px;
}

label {
  font-size: 12px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  padding: 10px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(196, 18, 48, 0.7);
  box-shadow: 0 0 0 3px rgba(196, 18, 48, 0.14);
}

textarea {
  resize: vertical;
}

.email-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

@media (max-width: 1020px) {
  .split {
    grid-template-columns: 1fr;
  }

  .source-roi-layout {
    grid-template-columns: 1fr;
  }

  .source-roi-total {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .brand-logo {
    width: 190px;
  }

  .hero-actions {
    justify-items: start;
  }

  .market-metrics {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .cohort-focus,
  .interview-pulse-row,
  .onboarding-detail-grid,
  .source-roi-legend-row {
    grid-template-columns: 1fr;
  }

  .interview-pulse-row {
    display: grid;
  }

  .source-roi-head {
    flex-direction: column;
  }

  .source-roi-chart {
    width: 190px;
    height: 190px;
  }

  .flow-row,
  .flow-location-row {
    grid-template-columns: 1fr;
  }

  .flow-value {
    text-align: left;
  }
}
