
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --brand-red: #e31e24;
  --brand-red-dark: #b91c1c;
  --brand-ink: #2b2a29;
  --brand-cream: #fff7ed;
  --forest: #10b981;
  --forest-2: #059669;
  --saffron: #f59e0b;
  --rust: #f43f5e;
  --cyan: #06b6d4;
  --soft: #e0f2fe;
  --tw-slate-950: #020617;
  --tw-slate-700: #334155;
  --tw-slate-500: #64748b;
  --tw-sky-500: #0ea5e9;
  --tw-cyan-500: #06b6d4;
  --tw-teal-500: #14b8a6;
  --tw-emerald-500: #10b981;
  --tw-lime-400: #a3e635;
  --tw-amber-400: #fbbf24;
  --tw-orange-500: #f97316;
  --tw-rose-500: #f43f5e;
  --tw-fuchsia-500: #d946ef;
  --tw-indigo-500: #6366f1;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.10);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at -6% 10%, rgba(227,30,36,0.16), transparent 320px),
    radial-gradient(circle at 7% -8%, rgba(14,165,233,0.24), transparent 360px),
    radial-gradient(circle at 72% 0%, rgba(217,70,239,0.14), transparent 340px),
    radial-gradient(circle at 95% 18%, rgba(251,191,36,0.18), transparent 300px),
    linear-gradient(180deg, rgba(248,250,252,0.82), rgba(241,245,249,0.96) 420px),
    var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Aptos", "Segoe UI", sans-serif;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
.layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,247,237,0.80)),
    radial-gradient(circle at 0% 0%, rgba(227,30,36,0.16), transparent 220px),
    radial-gradient(circle at 92% 12%, rgba(14,165,233,0.12), transparent 190px);
  backdrop-filter: blur(14px);
}
.brand {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(227,30,36,0.22);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,247,237,0.92)),
    radial-gradient(circle at 100% 0%, rgba(227,30,36,0.13), transparent 150px);
  box-shadow: 0 18px 44px rgba(227,30,36,0.10);
}
.brand::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand-red), var(--tw-amber-400));
}
.brand::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -44px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(227,30,36,0.12) 0 38%, transparent 39%),
    radial-gradient(circle, rgba(43,42,41,0.08) 0 54%, transparent 55%);
}
.brand-logo, .brand-copy, .brand-meta { position: relative; z-index: 1; }
.brand-logo {
  min-height: 40px;
  display: flex;
  align-items: center;
}
.brand-logo img {
  display: block;
  width: 178px;
  max-width: 100%;
  height: auto;
}
.brand-copy { display: grid; gap: 4px; }
.brand strong { font-size: 18px; letter-spacing: 0; color: var(--brand-ink); }
.brand span { color: var(--muted); font-size: 12px; }
.brand-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-meta span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(227,30,36,0.08);
  color: var(--brand-red-dark);
  font-weight: 720;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.nav { display: grid; gap: 6px; margin: 22px 0; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
}
.nav a.active, .nav a:hover { color: var(--ink); background: linear-gradient(90deg, rgba(14,165,233,0.11), rgba(16,185,129,0.10)); }
.nav a.active { box-shadow: inset 3px 0 0 var(--brand-red); }
.nav-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; color: var(--brand-red); }
.sidebar-note {
  margin-top: 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
.main { min-width: 0; padding: 28px 34px 52px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.title h1 { margin: 0; font-size: 30px; line-height: 1.08; letter-spacing: 0; }
.title p { margin: 8px 0 0; color: var(--muted); max-width: 920px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.badge.brand-badge { color: var(--brand-red-dark); border-color: rgba(227,30,36,0.30); background: rgba(227,30,36,0.08); }
.badge.good { color: #047857; border-color: rgba(16,185,129,0.34); background: rgba(16,185,129,0.10); }
.badge.warn { color: #be123c; border-color: rgba(244,63,94,0.34); background: rgba(244,63,94,0.10); }
.badge.info { color: #0369a1; border-color: rgba(14,165,233,0.34); background: rgba(14,165,233,0.10); }
.section { margin-top: 26px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
.section h2 { margin: 0; font-size: 19px; letter-spacing: 0; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 14px; }
.grid.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel, .kpi, .insight, .action {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.kpi {
  position: relative;
  overflow: hidden;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,249,255,0.90)),
    radial-gradient(circle at 88% 0%, rgba(14,165,233,0.20), transparent 90px);
}
.kpi::after {
  content: "";
  position: absolute;
  inset: auto -18px -32px auto;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16,185,129,0.16), rgba(217,70,239,0.12));
}
.kpi .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.kpi .value { margin-top: 6px; font-size: 29px; font-weight: 780; letter-spacing: -0.03em; }
.kpi .hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.panel { padding: 18px; overflow: hidden; }
.panel h3 { margin: 0 0 10px; font-size: 16px; letter-spacing: 0; }
.panel p { color: var(--muted); margin: 0 0 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 11px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; background: #f8fafc; position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
tr.top1 td { background: linear-gradient(90deg, rgba(251,191,36,0.15), rgba(14,165,233,0.06)); }
.rank { font-weight: 720; color: var(--tw-indigo-500); }
.bar-cell { min-width: 160px; }
.bar {
  display: grid;
  grid-template-columns: minmax(58px, auto) 1fr;
  align-items: center;
  gap: 8px;
}
.bar-track { height: 9px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--tw-sky-500), var(--tw-emerald-500), var(--tw-amber-400)); border-radius: 999px; }
.heat { display: grid; grid-template-columns: 170px repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.heat div { padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 46px; }
.heat div:nth-child(4n) { border-right: none; }
.heat .head { background: #f8fafc; color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.heat .city { font-weight: 650; }
.heat .cell { font-variant-numeric: tabular-nums; }
.callout {
  padding: 14px 16px;
  border-left: 4px solid var(--brand-red);
  background: linear-gradient(90deg, rgba(227,30,36,0.10), rgba(251,191,36,0.12), rgba(14,165,233,0.07));
  border-radius: 18px;
}
.callout strong { display: block; margin-bottom: 4px; }
.callout span { color: var(--muted); }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.city-link { padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; justify-content: space-between; gap: 10px; transition: transform .18s ease, border-color .18s ease; }
.city-link:hover { border-color: rgba(14,165,233,0.44); transform: translateY(-2px); }
.city-link small { color: var(--muted); }
.city-table tbody tr { transition: background .16s ease, box-shadow .16s ease; }
.city-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(227,30,36,0.07), rgba(14,165,233,0.07));
  box-shadow: inset 4px 0 0 var(--brand-red);
}
.city-name-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-red-dark);
  font-weight: 820;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(227,30,36,0.34);
}
.city-name-link::after {
  content: "→";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--brand-red), var(--tw-orange-500));
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(227,30,36,0.22);
}
.city-name-link:hover { text-decoration-color: var(--brand-red); }
.open-report {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  color: white;
  font-weight: 760;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--brand-red), var(--tw-orange-500));
  box-shadow: 0 12px 26px rgba(227,30,36,0.22);
  transition: transform .16s ease, box-shadow .16s ease;
}
.open-report::after { content: "→"; font-weight: 820; }
.open-report:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(227,30,36,0.30); }
.click-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(227,30,36,0.08);
  color: var(--brand-red-dark);
  font-weight: 760;
  font-size: 12px;
}
.target-card { display: grid; gap: 10px; }
.target-card .top-name { font-size: 17px; font-weight: 720; }
.target-card .meta { color: var(--muted); font-size: 12px; }
.insight { padding: 16px; display: grid; gap: 8px; }
.insight .kind { color: var(--forest); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.insight strong { font-size: 16px; }
.insight p { color: var(--muted); margin: 0; }
.action { padding: 14px; display: grid; gap: 8px; }
.priority { font-weight: 720; }
.priority.high { color: var(--rust); }
.priority.medium { color: var(--saffron); }
.priority.low { color: var(--cyan); }
.infographic-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.target-infographics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.target-infocard {
  position: relative;
  min-height: 220px;
  padding: 18px;
  border-radius: 24px;
  color: white;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}
.target-infocard::before {
  content: "";
  position: absolute;
  inset: -70px -60px auto auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}
.target-infocard.onigiri { background: linear-gradient(135deg, #0ea5e9, #14b8a6 55%, #10b981); }
.target-infocard.philadelphia { background: linear-gradient(135deg, #6366f1, #8b5cf6 50%, #d946ef); }
.target-infocard.sets { background: linear-gradient(135deg, #f97316, #f59e0b 52%, #f43f5e); }
.target-infocard h3 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.target-infocard .sub { color: rgba(255,255,255,0.78); font-size: 12px; margin-top: 4px; }
.target-infocard .big { font-size: 38px; font-weight: 820; letter-spacing: -0.05em; margin-top: 18px; }
.target-infocard .pair { margin-top: 14px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,0.16); backdrop-filter: blur(10px); }
.target-infocard .pair small { display: block; color: rgba(255,255,255,0.76); margin-bottom: 3px; }
.donut {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: conic-gradient(rgba(255,255,255,0.96) var(--value), rgba(255,255,255,0.22) 0);
  display: grid;
  place-items: center;
}
.donut::after {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(15,23,42,0.20);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}
.donut span { position: absolute; z-index: 1; font-size: 12px; font-weight: 760; }
.city-volume {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,249,255,0.92)),
    radial-gradient(circle at 100% 0%, rgba(217,70,239,0.16), transparent 160px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.city-volume h3 { margin: 0 0 10px; font-size: 17px; }
.city-volume-row { display: grid; grid-template-columns: 110px 1fr 74px; gap: 10px; align-items: center; margin-top: 11px; font-size: 13px; }
.city-volume-track { height: 12px; border-radius: 999px; background: #e0f2fe; overflow: hidden; }
.city-volume-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--tw-cyan-500), var(--tw-indigo-500), var(--tw-fuchsia-500)); }
.city-volume-row .value { text-align: right; font-variant-numeric: tabular-nums; color: var(--tw-slate-700); }
.data-ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ribbon-card { padding: 14px; border-radius: 18px; color: white; min-height: 106px; box-shadow: 0 18px 45px rgba(15,23,42,0.14); }
.ribbon-card:nth-child(1) { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.ribbon-card:nth-child(2) { background: linear-gradient(135deg, #10b981, #84cc16); }
.ribbon-card:nth-child(3) { background: linear-gradient(135deg, #f59e0b, #f97316); }
.ribbon-card:nth-child(4) { background: linear-gradient(135deg, #6366f1, #d946ef); }
.ribbon-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; opacity: .78; }
.ribbon-card .value { font-size: 25px; font-weight: 820; margin-top: 9px; letter-spacing: -0.04em; }
.ribbon-card .hint { font-size: 12px; opacity: .78; margin-top: 5px; }
.analysis-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.analysis-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  min-height: 148px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}
.analysis-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -42px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14,165,233,0.16), rgba(217,70,239,0.12));
}
.analysis-card .eyebrow { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.analysis-card strong { display: block; margin-top: 8px; font-size: 18px; line-height: 1.18; }
.analysis-card .metric { margin-top: 12px; font-size: 28px; font-weight: 820; letter-spacing: -0.04em; color: var(--tw-indigo-500); }
.analysis-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.segment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.segment-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,249,255,0.86));
}
.segment-card h3 { margin: 0; font-size: 16px; }
.segment-card .segment-name { margin-top: 6px; color: var(--tw-indigo-500); font-weight: 760; }
.segment-bars { display: grid; gap: 7px; margin-top: 12px; }
.segment-bar { display: grid; grid-template-columns: 92px 1fr 48px; gap: 8px; align-items: center; font-size: 12px; }
.segment-bar .track { height: 8px; border-radius: 999px; background: #e0f2fe; overflow: hidden; }
.segment-bar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--tw-sky-500), var(--tw-emerald-500)); }
.score-pill, .delta-up, .delta-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: 760;
  font-size: 12px;
  white-space: nowrap;
}
.score-pill { color: #4338ca; background: rgba(99,102,241,0.12); }
.delta-up { color: #047857; background: rgba(16,185,129,0.12); }
.delta-down { color: #be123c; background: rgba(244,63,94,0.12); }
.hypothesis-list { display: grid; gap: 10px; }
.hypothesis {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
}
.hypothesis .num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--tw-sky-500), var(--tw-fuchsia-500));
  color: white;
  font-weight: 820;
}
.hypothesis p { margin: 3px 0 0; color: var(--muted); }
.offer-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
}
.offer-lead {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 250px;
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 86% 12%, rgba(255,255,255,0.22), transparent 160px),
    linear-gradient(135deg, var(--brand-red), #f97316 48%, #fbbf24);
  box-shadow: 0 28px 70px rgba(227,30,36,0.18);
}
.offer-lead::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -82px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}
.offer-lead h2 { position: relative; z-index: 1; margin: 0; font-size: 30px; line-height: 1.05; letter-spacing: -0.04em; }
.offer-lead p { position: relative; z-index: 1; max-width: 760px; margin: 12px 0 0; color: rgba(255,255,255,0.84); }
.offer-lead .rule-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.offer-lead .rule-list span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  font-weight: 760;
  font-size: 12px;
}
.offer-method-grid { display: grid; gap: 10px; }
.offer-method {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}
.offer-method strong { display: block; margin-bottom: 6px; }
.offer-method p { margin: 0; color: var(--muted); font-size: 12px; }
.decision-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.decision-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 18px;
  border-radius: 26px;
  color: white;
  box-shadow: 0 26px 62px rgba(15,23,42,0.16);
}
.decision-card::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}
.decision-card:nth-child(1) { background: linear-gradient(135deg, #ef4444, #f97316); }
.decision-card:nth-child(2) { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.decision-card:nth-child(3) { background: linear-gradient(135deg, #10b981, #84cc16); }
.decision-card:nth-child(4) { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.decision-card .eyebrow { position: relative; z-index: 1; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .76; }
.decision-card h3 { position: relative; z-index: 1; margin: 10px 0 0; font-size: 19px; line-height: 1.15; letter-spacing: -0.03em; }
.decision-card .flow { position: relative; z-index: 1; margin-top: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,0.16); font-weight: 820; }
.decision-card .decision-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.decision-card .decision-metrics div { padding: 8px; border-radius: 14px; background: rgba(255,255,255,0.15); }
.decision-card .decision-metrics strong { display: block; font-size: 20px; line-height: 1; }
.decision-card .decision-metrics small { display: block; margin-top: 4px; opacity: .78; }
.offer-visual-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 14px; }
.visual-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
}
.visual-panel h3 { margin: 0; font-size: 18px; }
.visual-panel > p { margin: 5px 0 14px; color: var(--muted); font-size: 13px; }
.offer-bars { display: grid; gap: 10px; }
.offer-bar-row { display: grid; grid-template-columns: minmax(230px, .9fr) 1fr 86px; align-items: center; gap: 12px; font-size: 13px; }
.offer-bar-row strong { display: block; line-height: 1.18; }
.offer-bar-row small { color: var(--muted); }
.offer-bar-track { height: 13px; border-radius: 999px; background: #e0f2fe; overflow: hidden; }
.offer-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-red), var(--tw-orange-500), var(--tw-amber-400)); }
.offer-bar-value { text-align: right; font-weight: 820; color: var(--brand-red-dark); font-variant-numeric: tabular-nums; }
.bubble-plot {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(rgba(148,163,184,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.12) 1px, transparent 1px),
    linear-gradient(135deg, rgba(240,249,255,0.92), rgba(255,247,237,0.86));
  background-size: 100% 25%, 25% 100%, auto;
}
.bubble {
  position: absolute;
  display: grid;
  place-items: center;
  transform: translate(-50%, 50%);
  border-radius: 999px;
  color: white;
  text-align: center;
  font-weight: 820;
  line-height: 1.02;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.42), transparent 28%), linear-gradient(135deg, var(--tw-indigo-500), var(--tw-fuchsia-500));
  box-shadow: 0 16px 36px rgba(99,102,241,0.26);
}
.bubble strong { display: block; font-size: 20px; line-height: 1; }
.bubble small { display: block; margin-top: 3px; font-size: 9px; opacity: .82; font-weight: 720; }
.bubble-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.bubble-legend-item { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; padding: 8px; border-radius: 14px; background: rgba(248,250,252,0.92); }
.bubble-legend-item span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: white; font-weight: 860; background: linear-gradient(135deg, var(--tw-indigo-500), var(--tw-fuchsia-500)); }
.bubble-legend-item strong { display: block; font-size: 12px; line-height: 1.14; }
.bubble-legend-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.axis-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.heatmap-table {
  display: grid;
  gap: 6px;
  overflow-x: auto;
}
.heat-row { display: grid; grid-template-columns: 170px repeat(6, minmax(92px, 1fr)); gap: 6px; align-items: stretch; }
.heat-cell {
  min-height: 54px;
  padding: 8px;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--tw-slate-700);
  font-size: 11px;
  line-height: 1.12;
}
.heat-cell.head { min-height: auto; color: var(--muted); font-weight: 820; text-transform: uppercase; letter-spacing: .05em; }
.heat-cell.anchor { font-weight: 820; color: var(--ink); background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,249,255,0.90)); }
.heat-cell.hot {
  color: white;
  background: linear-gradient(135deg, rgba(239,68,68,var(--heat)), rgba(249,115,22,var(--heat2)));
}
.heat-cell.hot strong { display: block; font-size: 17px; }
.heat-cell.muted { color: #94a3b8; text-align: center; display: grid; place-items: center; }
.offer-score {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  color: white;
  font-weight: 820;
  background: linear-gradient(135deg, var(--tw-indigo-500), var(--tw-fuchsia-500));
}
.confidence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: 760;
  font-size: 12px;
  white-space: nowrap;
}
.confidence.high { color: #047857; background: rgba(16,185,129,0.12); }
.confidence.medium { color: #0369a1; background: rgba(14,165,233,0.12); }
.confidence.soft { color: #b45309; background: rgba(251,191,36,0.16); }
.offer-text {
  padding: 9px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(227,30,36,0.08), rgba(251,191,36,0.10));
  color: var(--tw-slate-700);
  font-weight: 650;
}
.matrix-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.matrix-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
}
.matrix-card h3 { margin: 0; font-size: 18px; }
.matrix-card .meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
.matrix-items { display: grid; gap: 9px; margin-top: 12px; }
.matrix-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(240,249,255,0.86), rgba(255,247,237,0.86));
}
.matrix-item small { display: block; margin-top: 3px; color: var(--muted); }
.channel-list { display: flex; flex-wrap: wrap; gap: 7px; }
.channel-list span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--brand-red-dark);
  background: rgba(227,30,36,0.08);
  font-weight: 760;
  font-size: 12px;
}
.footer { color: var(--muted); margin-top: 34px; font-size: 12px; }
@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .main { padding: 22px 18px 42px; }
  .grid.kpis, .grid.three, .grid.two, .link-grid, .infographic-grid, .target-infographics, .data-ribbon, .analysis-cards, .segment-grid, .offer-hero, .matrix-grid, .decision-grid, .offer-visual-grid { grid-template-columns: 1fr; }
  .bubble-legend { grid-template-columns: 1fr; }
  .offer-bar-row { grid-template-columns: 1fr; }
  .offer-bar-value { text-align: left; }
  .topbar { flex-direction: column; }
  .badges { justify-content: flex-start; }
  .heat { grid-template-columns: 1fr; }
  .heat div { border-right: none; }
}
