:root {
  --navy-950: #071727;
  --navy-900: #0a2034;
  --navy-800: #12314d;
  --blue-600: #2357e8;
  --blue-500: #3471ff;
  --aqua-500: #20bfae;
  --coral-500: #ff765a;
  --gold-500: #f3bd4c;
  --ink: #10253a;
  --muted: #627487;
  --muted-2: #8997a6;
  --line: #dce4eb;
  --line-strong: #c8d3dd;
  --canvas: #f3f6f9;
  --surface: #ffffff;
  --surface-blue: #eef4ff;
  --success: #168777;
  --shadow-sm: 0 1px 2px rgba(7, 23, 39, 0.05);
  --shadow-md: 0 18px 45px rgba(7, 23, 39, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% -10%, rgba(52, 113, 255, 0.11), transparent 32rem),
    var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(52, 113, 255, 0.32);
  outline-offset: 2px;
}

.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px clamp(18px, 3vw, 44px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(32, 191, 174, 0.08), transparent 32%),
    var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-950);
  background: var(--aqua-500);
  font-weight: 900;
  letter-spacing: -0.08em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin: 1px 0 0;
  color: #aab8c6;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.btn-primary {
  color: #fff;
  background: var(--blue-600);
  box-shadow: 0 9px 22px rgba(35, 87, 232, 0.26);
}

.btn-primary:hover {
  background: #174ad2;
}

.btn-light {
  color: #eef6ff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.workspace {
  width: min(1580px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 2.5vw, 36px) 56px;
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.builder {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.builder-head {
  padding: 22px 23px 18px;
  background:
    linear-gradient(135deg, rgba(52, 113, 255, 0.1), rgba(32, 191, 174, 0.07)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: var(--blue-600);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--aqua-500);
}

.builder h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.82rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.builder-head p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

.form-body {
  padding: 6px 22px 22px;
}

.form-section {
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
}

.section-legend {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0 0 15px;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 820;
  letter-spacing: -0.01em;
}

.section-number {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.7rem;
}

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

.field {
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  display: block;
  margin: 0 0 6px;
  color: #41576b;
  font-size: 0.77rem;
  font-weight: 720;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  transition: border 160ms ease, box-shadow 160ms ease;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #a9b9c7;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(52, 113, 255, 0.11);
  outline: none;
}

.textarea {
  min-height: 68px;
  resize: vertical;
  line-height: 1.35;
}

.input-prefix {
  position: relative;
}

.input-prefix span {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
}

.input-prefix .input {
  padding-left: 29px;
}

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

.range-row input[type="range"] {
  width: 100%;
  accent-color: var(--blue-600);
}

.range-value {
  min-width: 51px;
  padding: 5px 7px;
  border-radius: 8px;
  color: var(--blue-600);
  background: var(--surface-blue);
  font-size: 0.77rem;
  font-weight: 800;
  text-align: center;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.preset {
  min-height: 33px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #486074;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 760;
}

.preset:hover {
  border-color: #9fb4c5;
}

.preset.is-active {
  color: #fff;
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.season-editor {
  height: 90px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  padding: 10px 8px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(to top, rgba(17, 52, 81, 0.05) 1px, transparent 1px);
  background-size: 100% 20px;
}

.season-control {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
}

.season-control-bar {
  width: 100%;
  max-width: 16px;
  min-height: 8px;
  height: var(--bar-height);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--aqua-500), var(--blue-600));
  transition: height 180ms ease, filter 180ms ease;
}

.season-control:hover .season-control-bar {
  filter: brightness(1.12);
}

.season-control-label {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
}

.microcopy {
  margin: 7px 0 0;
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.35;
}

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

.channel-option {
  min-width: 0;
  cursor: pointer;
}

.channel-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.channel-option-card {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--muted);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border 160ms ease, background 160ms ease, transform 160ms ease;
}

.channel-option:hover .channel-option-card {
  transform: translateY(-1px);
  border-color: #9eb2c3;
}

.channel-option input:focus-visible + .channel-option-card {
  outline: 3px solid rgba(52, 113, 255, 0.32);
  outline-offset: 2px;
}

.channel-option input:checked + .channel-option-card {
  color: var(--ink);
  border-color: var(--blue-500);
  background: var(--surface-blue);
  box-shadow: inset 0 0 0 1px rgba(52, 113, 255, 0.14);
}

.channel-initial {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--navy-800);
  font-size: 0.68rem;
  font-weight: 900;
}

.channel-option input:checked + .channel-option-card .channel-initial {
  background: var(--blue-600);
}

.channel-option-card strong,
.channel-option-card small {
  display: block;
}

.channel-option-card strong {
  font-size: 0.78rem;
  line-height: 1.15;
}

.channel-option-card small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.75rem;
  line-height: 1.25;
}

.source-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.source-note a {
  color: var(--blue-600);
  font-weight: 760;
}

.acs-details {
  margin-top: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
}

.acs-details summary {
  padding: 10px 12px;
  color: #40576c;
  font-size: 0.78rem;
  font-weight: 780;
  cursor: pointer;
}

.acs-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 2px 11px 12px;
}

.acs-field {
  min-width: 0;
}

.acs-field label {
  min-height: 27px;
  display: flex;
  align-items: flex-end;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 720;
  line-height: 1.2;
}

.acs-input {
  min-height: 37px;
  padding: 7px 8px;
  font-size: 0.8rem;
}

.evidence-caution {
  color: #6b5871;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding-top: 4px;
}

.form-actions .btn {
  border-radius: 12px;
}

.btn-reset {
  min-width: 46px;
  padding-inline: 12px;
  color: var(--muted);
  background: #eef2f6;
}

.results {
  min-width: 0;
}

.hero-card {
  --hero-image: url("./assets/travel-neutral-planner.png");
  min-height: 230px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 18, 31, 0.93) 0%, rgba(4, 18, 31, 0.67) 47%, rgba(4, 18, 31, 0.18) 100%),
    var(--hero-image) center / cover no-repeat;
  box-shadow: var(--shadow-md);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(4, 18, 31, 0.52));
  pointer-events: none;
}

.hero-content {
  width: 100%;
  position: relative;
  z-index: 1;
  padding: clamp(22px, 4vw, 34px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
}

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

.hero-kicker {
  margin: 0 0 8px;
  color: #84e3d8;
  font-size: 0.76rem;
  font-weight: 840;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-desc {
  max-width: 610px;
  margin: 12px 0 0;
  color: #d9e4ec;
  font-size: 0.9rem;
  line-height: 1.48;
}

.hero-stamp {
  flex: 0 0 auto;
  width: 102px;
  height: 102px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(7, 23, 39, 0.48);
  backdrop-filter: blur(8px);
  text-align: center;
  transform: rotate(-5deg);
}

.hero-stamp span {
  display: block;
  font-size: 0.59rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-stamp strong {
  display: block;
  color: var(--gold-500);
  font-size: 1.24rem;
  line-height: 1.1;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.metric {
  min-width: 0;
  padding: 16px 18px;
  background: #fff;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 780;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 3px;
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-note {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.69rem;
}

.output-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tablist {
  display: flex;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.tab {
  min-height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 780;
}

.tab-badge {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: #eef2f6;
  font-size: 0.65rem;
}

.tab:hover {
  background: #f1f5f8;
}

.tab[aria-selected="true"] {
  color: var(--blue-600);
  background: var(--surface-blue);
}

.tab[aria-selected="true"] .tab-badge {
  color: #fff;
  background: var(--blue-600);
}

.panel {
  padding: clamp(18px, 2.7vw, 28px);
}

.panel[hidden] {
  display: none;
}

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

.panel-title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.03em;
}

.panel-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.quality-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--success);
  background: #e8f7f4;
  font-size: 0.71rem;
  font-weight: 800;
  white-space: nowrap;
}

.quality-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

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

.persona-card {
  --persona: var(--blue-600);
  min-width: 0;
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.persona-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--persona);
}

.persona-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 26px rgba(7, 23, 39, 0.08);
}

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

.persona-index {
  margin: 0 0 5px;
  color: var(--persona);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.persona-card h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.persona-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.share-ring {
  --share: 25;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--persona) calc(var(--share) * 1%), #e7edf2 0);
}

.share-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.share-ring strong {
  position: relative;
  z-index: 1;
  font-size: 0.76rem;
  letter-spacing: -0.02em;
}

.persona-why {
  min-height: 61px;
  margin: 14px 0;
  padding: 11px 12px;
  border-radius: 10px;
  color: #304a60;
  background: #f4f7fa;
  font-size: 0.76rem;
  line-height: 1.42;
}

.persona-evidence {
  margin: -4px 0 14px;
  padding: 10px 11px;
  border: 1px solid #d9e4f7;
  border-radius: 10px;
  background: #f3f7ff;
}

.persona-evidence span {
  display: block;
  color: var(--blue-600);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.persona-evidence p {
  margin: 3px 0 0;
  color: #3b5672;
  font-size: 0.75rem;
  line-height: 1.35;
}

.persona-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 0;
}

.persona-facts div {
  min-width: 0;
}

.persona-facts dt {
  margin: 0 0 2px;
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 770;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.persona-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 670;
  line-height: 1.3;
}

.creative-hook {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.creative-hook span {
  display: block;
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.creative-hook p {
  margin: 4px 0 0;
  color: #29455c;
  font-size: 0.74rem;
  line-height: 1.4;
}

.places-loading {
  min-height: 156px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px;
  border: 1px solid #d6e2f7;
  border-radius: var(--radius-md);
  color: #29455c;
  background: linear-gradient(135deg, #f4f8ff, #f0fbf9);
}

.places-loading h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.places-loading p {
  max-width: 620px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.places-idle {
  justify-content: space-between;
}

.places-idle > div {
  max-width: 650px;
}

.places-spinner {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 4px solid rgba(35, 87, 232, 0.14);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: places-spin 850ms linear infinite;
}

@keyframes places-spin {
  to { transform: rotate(360deg); }
}

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

.place-skeleton-grid span {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(110deg, #f3f6f8 20%, #e9eef3 35%, #f3f6f8 50%);
  background-size: 220% 100%;
  animation: places-shimmer 1.5s linear infinite;
}

@keyframes places-shimmer {
  to { background-position-x: -220%; }
}

.places-source-note {
  margin: 11px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.places-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.places-toolbar > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.places-toolbar strong,
.places-toolbar small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.places-toolbar strong {
  font-size: 0.875rem;
}

.places-toolbar small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.75rem;
}

.places-live-mark {
  width: 9px;
  height: 9px;
  grid-row: 1 / 3;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(22, 135, 119, 0.1);
}

.btn-inline {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid #cbd9ef;
  color: var(--blue-600);
  background: #f5f8ff;
  box-shadow: none;
}

.btn-inline:hover {
  color: #174ad2;
  background: #eaf1ff;
}

.places-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 15px;
  border: 1px solid #f1d5a2;
  border-radius: 12px;
  background: #fff8eb;
}

.places-alert strong {
  font-size: 0.875rem;
}

.places-alert p {
  margin: 3px 0 0;
  color: #725e3e;
  font-size: 0.82rem;
}

.place-persona-list {
  display: grid;
  gap: 16px;
}

.place-persona-section {
  --persona: var(--blue-600);
  position: relative;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.place-persona-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #fff;
  box-shadow: inset 0 -6px 0 var(--persona);
}

.place-persona-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.place-persona-heading {
  min-width: 0;
}

.place-persona-index {
  display: block;
  margin-bottom: 3px;
  color: var(--persona);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.place-persona-heading h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.place-persona-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.place-persona-heading p strong {
  color: #36536e;
}

.place-category-link {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--blue-600);
  background: var(--surface-blue);
  font-size: 0.76rem;
  font-weight: 780;
  text-decoration: none;
}

.place-category-link:hover,
.place-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.place-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid #dbe4eb;
  border-radius: 13px;
  background: #f9fbfc;
}

.place-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.place-type {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #176f65;
  background: #e7f7f4;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.place-distance {
  color: var(--muted-2);
  font-size: 0.7rem;
  white-space: nowrap;
}

.place-card h4 {
  margin: 11px 0 0;
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.place-address {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.place-fit {
  flex: 1;
  margin: 12px 0;
  color: #435d73;
  font-size: 0.8rem;
  line-height: 1.45;
}

.place-fit strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.place-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.place-link {
  color: #506b82;
  font-size: 0.75rem;
  font-weight: 720;
  text-decoration: none;
}

.place-link-primary {
  color: var(--blue-600);
}

.place-search-fallback {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 0.82rem;
}

.place-search-fallback a {
  color: var(--blue-600);
  font-weight: 750;
}

.places-source-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 13px;
  color: #d8e4ee;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.places-source-card strong {
  color: #fff;
  font-size: 0.88rem;
}

.places-source-card p {
  margin: 4px 0 0;
  color: #b9c8d5;
  font-size: 0.78rem;
  line-height: 1.48;
}

.places-source-card a {
  color: #9cded7;
}

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

.media-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.media-table th,
.media-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.media-table th {
  color: var(--muted);
  background: #f5f8fa;
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-table tr:last-child td {
  border-bottom: 0;
}

.media-table td:nth-child(3),
.media-table td:nth-child(4),
.media-table td:nth-child(5),
.media-table th:nth-child(3),
.media-table th:nth-child(4),
.media-table th:nth-child(5) {
  text-align: right;
}

.channel-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 780;
}

.channel-label-stack {
  display: grid;
  gap: 2px;
}

.channel-label-stack strong {
  font-size: 0.78rem;
}

.channel-label-stack small {
  width: fit-content;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--blue-600);
  background: var(--surface-blue);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.channel-mark {
  width: 9px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--channel);
}

.channel-role {
  color: var(--muted);
  line-height: 1.35;
}

.share-cell {
  font-weight: 800;
}

.table-total td {
  color: var(--navy-900);
  background: #f1f6ff;
  font-weight: 850;
}

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

.plan-note {
  min-width: 0;
  padding: 14px;
  border-radius: 13px;
  background: var(--navy-900);
  color: #fff;
}

.plan-note-label {
  color: #8fabc0;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.plan-note strong {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  line-height: 1.3;
}

.season-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, 0.75fr);
  gap: 16px;
}

.chart-card,
.insight-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.chart-card {
  padding: 18px 16px 15px;
}

.chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.chart-heading h3,
.insight-card h3 {
  margin: 0;
  font-size: 0.88rem;
}

.chart-heading span {
  color: var(--muted);
  font-size: 0.68rem;
}

.allocation-chart {
  height: 275px;
  display: grid;
  grid-template-columns: repeat(12, minmax(22px, 1fr));
  align-items: end;
  gap: 8px;
  padding: 18px 3px 4px;
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(to top, rgba(16, 37, 58, 0.055) 1px, transparent 1px);
  background-size: 100% 25%;
}

.month-column {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.month-spend {
  color: #425a70;
  font-size: clamp(0.48rem, 0.7vw, 0.64rem);
  font-weight: 760;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: 58px;
  overflow: hidden;
}

.month-bar {
  width: min(30px, 80%);
  min-height: 10px;
  height: var(--height);
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, var(--aqua-500), var(--blue-600));
  box-shadow: 0 7px 13px rgba(35, 87, 232, 0.14);
}

.month-label {
  color: var(--muted);
  font-size: clamp(0.54rem, 0.75vw, 0.67rem);
  font-weight: 820;
  text-transform: uppercase;
}

.insight-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.insight-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.insight-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.insight-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.insight-list dt {
  color: var(--muted-2);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.insight-list dd {
  margin: 3px 0 0;
  color: #29445a;
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1.4;
}

.evidence-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.evidence-section + .evidence-section,
.method-card {
  margin-top: 15px;
}

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

.evidence-kicker {
  margin: 0 0 3px !important;
  color: var(--blue-600) !important;
  font-size: 0.75rem !important;
  font-weight: 840;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.evidence-heading h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.evidence-heading p {
  max-width: 670px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.source-button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #cbd9f4;
  border-radius: 999px;
  color: var(--blue-600);
  background: #f4f7ff;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.source-button:hover {
  border-color: var(--blue-500);
  background: var(--surface-blue);
}

.evidence-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.evidence-metric {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: #f4f7fa;
}

.evidence-metric > span {
  display: block;
  min-height: 28px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.evidence-metric strong {
  display: block;
  margin-top: 3px;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.evidence-metric small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.75rem;
}

.local-evidence-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.source-signal-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.45fr);
  gap: 22px;
  margin-top: 12px;
  padding: 15px;
  border-radius: 13px;
  color: #fff;
  background: var(--navy-900);
}

.source-signal-card h4 {
  margin: 0;
  font-size: 0.85rem;
}

.source-signal-card p {
  margin: 4px 0 0;
  color: #9fb2c3;
  font-size: 0.75rem;
  line-height: 1.4;
}

.source-bars {
  display: grid;
  gap: 8px;
}

.source-bar > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #d9e5ee;
  font-size: 0.75rem;
}

.source-bar-track {
  height: 5px;
  display: block;
  margin-top: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.source-bar-track span {
  width: var(--source-width);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua-500), #7de3d8);
}

.evidence-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.evidence-table th,
.evidence-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.evidence-table th {
  color: var(--muted);
  background: #f5f8fa;
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.evidence-table tr:last-child td {
  border-bottom: 0;
}

.evidence-table a,
.evidence-links a {
  color: var(--blue-600);
  font-weight: 760;
}

.method-card {
  padding: 18px;
  border-radius: var(--radius-md);
  color: #fff;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.method-card h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

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

.method-grid p {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

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

.method-grid strong {
  color: #89e7dc;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.method-grid span {
  margin-top: 4px;
  color: #c1d0dc;
  font-size: 0.75rem;
  line-height: 1.42;
}

.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
}

.evidence-links a {
  color: #b9d4ff;
  font-size: 0.75rem;
}

.assumption-box {
  margin-top: 15px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid #d3def5;
  color: #3b5672;
  background: #f0f5ff;
  font-size: 0.72rem;
  line-height: 1.42;
}

.assumption-box strong {
  color: var(--blue-600);
}

.empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
}

.empty-inner {
  max-width: 470px;
}

.empty-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-600);
  background: var(--surface-blue);
  font-size: 1.6rem;
}

.empty h2 {
  margin: 0;
  font-size: 1.35rem;
}

.empty p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--navy-900);
  box-shadow: 0 16px 40px rgba(7, 23, 39, 0.28);
  font-size: 0.79rem;
  font-weight: 700;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Sleek interface refresh */
:root {
  --navy-950: #101928;
  --navy-900: #182337;
  --navy-800: #26354b;
  --blue-600: #3f5bd8;
  --blue-500: #5470ee;
  --aqua-500: #2aa99c;
  --ink: #172235;
  --muted: #647184;
  --muted-2: #778396;
  --line: #e2e6ec;
  --line-strong: #cdd4dd;
  --canvas: #f5f6f8;
  --surface-blue: #f0f3ff;
  --shadow-sm: 0 1px 2px rgba(16, 25, 40, 0.04);
  --shadow-md: 0 10px 32px rgba(16, 25, 40, 0.07);
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

body {
  background: var(--canvas);
}

.topbar {
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px clamp(16px, 3vw, 40px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: var(--navy-950);
  box-shadow: none;
  font-size: 0.86rem;
}

.brand-name {
  font-size: 0.96rem;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.75rem;
}

.btn {
  min-height: 40px;
  border-radius: 9px;
  padding: 8px 14px;
  box-shadow: none;
  font-size: 0.875rem;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.btn:hover {
  transform: none;
}

.btn-primary {
  background: var(--blue-600);
  box-shadow: none;
}

.btn-light {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-light:hover {
  background: #f6f7f9;
  border-color: var(--line-strong);
}

.workspace {
  width: min(1500px, 100%);
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px clamp(14px, 2.4vw, 34px) 48px;
}

.builder {
  top: 82px;
  max-height: calc(100vh - 100px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.builder-head {
  padding: 20px 20px 16px;
  background: #fff;
}

.eyebrow {
  margin-bottom: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  width: 12px;
  background: var(--blue-600);
}

.builder h1 {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.builder-head p:last-child {
  margin-top: 7px;
  font-size: 0.82rem;
}

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

.form-section {
  padding: 17px 0;
}

.section-legend {
  gap: 8px;
  margin-bottom: 13px;
  font-size: 0.84rem;
}

.section-number {
  width: auto;
  height: auto;
  border-radius: 0;
  color: var(--muted-2);
  background: transparent;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
}

.field label,
.field-label {
  color: #4f5e71;
  font-size: 0.875rem;
}

.input,
.select,
.textarea {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f9fafb;
  box-shadow: none;
}

.input:focus,
.select:focus,
.textarea:focus {
  background: #fff;
}

.textarea {
  min-height: 64px;
}

.channel-selector {
  gap: 6px;
}

.channel-option-card {
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 8px;
  box-shadow: none;
  text-align: center;
}

.channel-option:hover .channel-option-card {
  transform: none;
}

.channel-initial,
.channel-option-card small {
  display: none;
}

.channel-option-card strong {
  font-size: 0.82rem;
}

.range-value,
.preset,
.quality-pill,
.place-type,
.channel-label-stack small {
  border-radius: 7px;
}

.form-disclosure {
  border-bottom: 1px solid var(--line);
}

.form-disclosure > summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  color: var(--ink);
  cursor: pointer;
}

.form-disclosure > summary::-webkit-details-marker,
.persona-detail > summary::-webkit-details-marker,
.place-persona-head::-webkit-details-marker {
  display: none;
}

.form-disclosure > summary strong,
.form-disclosure > summary small {
  display: block;
}

.form-disclosure > summary strong {
  font-size: 0.875rem;
}

.form-disclosure > summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
}

.disclosure-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--blue-600);
  background: var(--surface-blue);
  font-size: 1rem;
  transition: transform 160ms ease;
}

.form-disclosure[open] .disclosure-mark {
  transform: rotate(45deg);
}

.disclosure-body {
  border-top: 1px solid var(--line);
}

.form-section-nested {
  padding: 17px 0;
}

.form-section-nested:last-child {
  border-bottom: 0;
}

.form-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 14px 0 1px;
  background: #fff;
}

.form-actions .btn {
  border-radius: 9px;
}

.hero-card {
  min-height: 186px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(8, 17, 30, 0.91) 0%, rgba(8, 17, 30, 0.66) 58%, rgba(8, 17, 30, 0.24) 100%),
    var(--hero-image) center 47% / cover no-repeat;
  box-shadow: none;
}

.hero-card::after {
  display: none;
}

.hero-content {
  padding: clamp(20px, 3vw, 28px);
  gap: 20px;
}

.hero-kicker {
  margin-bottom: 6px;
  color: #b7e8e3;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.02;
}

.hero-desc {
  margin-top: 8px;
  font-size: 0.875rem;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 17, 30, 0.5);
  backdrop-filter: blur(8px);
  font-size: 0.73rem;
}

.hero-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64d5c9;
}

.metric-strip {
  margin: 12px 0;
  border-radius: var(--radius-md);
  box-shadow: none;
}

.metric {
  padding: 13px 15px;
}

.metric-label {
  font-size: 0.67rem;
}

.metric strong {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.metric-note {
  margin-top: 2px;
  font-size: 0.7rem;
}

.output-card {
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: none;
}

.tablist {
  gap: 20px;
  padding: 0 18px;
}

.tab {
  min-height: 50px;
  padding: 13px 0 11px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 0.875rem;
}

.tab:hover {
  color: var(--ink);
  background: transparent;
}

.tab[aria-selected="true"] {
  color: var(--blue-600);
  border-bottom-color: var(--blue-600);
  background: transparent;
}

.panel {
  padding: clamp(18px, 2.3vw, 25px);
}

.panel-head {
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-title {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.panel-copy {
  font-size: 0.875rem;
}

.quality-pill {
  padding: 5px 8px;
  font-size: 0.7rem;
}

.persona-grid {
  gap: 12px;
}

.persona-card {
  padding: 18px;
  border-radius: var(--radius-md);
  transition: none;
}

.persona-card::before {
  inset: 0 0 auto;
  width: auto;
  height: 3px;
}

.persona-card:hover {
  transform: none;
  box-shadow: none;
}

.persona-index {
  font-size: 0.68rem;
}

.persona-card h3 {
  font-size: 1.03rem;
}

.persona-subtitle {
  font-size: 0.79rem;
}

.share-ring {
  width: auto;
  height: auto;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--persona);
  background: #f1f3f8;
}

.share-ring::before {
  display: none;
}

.share-ring strong {
  font-size: 0.75rem;
}

.persona-why {
  min-height: 0;
  margin: 13px 0;
  padding: 0;
  color: #44546a;
  background: transparent;
  font-size: 0.875rem;
}

.persona-quick {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line);
}

.persona-quick > span {
  min-width: 0;
  padding: 9px 10px;
  background: #f8f9fb;
}

.persona-quick small,
.persona-quick strong {
  display: block;
}

.persona-quick small {
  color: var(--muted);
  font-size: 0.68rem;
}

.persona-quick strong {
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.creative-hook {
  margin-top: 13px;
  padding-top: 0;
  border-top: 0;
}

.creative-hook span,
.persona-facts dt,
.persona-evidence span {
  font-size: 0.68rem;
}

.creative-hook p {
  font-size: 0.8rem;
}

.persona-detail {
  margin-top: 13px;
  border-top: 1px solid var(--line);
}

.persona-detail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 0;
  list-style: none;
  color: var(--blue-600);
  font-size: 0.84rem;
  font-weight: 760;
  cursor: pointer;
}

.persona-detail > summary::after {
  content: "+";
  color: var(--muted);
  font-size: 0.95rem;
  transition: transform 160ms ease;
}

.persona-detail[open] > summary::after {
  transform: rotate(45deg);
}

.persona-detail-body {
  padding-top: 13px;
}

.persona-evidence {
  margin: 0 0 13px;
  border-radius: 9px;
}

.persona-evidence p,
.persona-facts dd {
  font-size: 0.78rem;
}

.place-persona-list {
  gap: 10px;
}

.place-persona-section {
  padding: 0;
  border-radius: var(--radius-md);
}

.place-persona-section::before {
  height: 3px;
}

.place-persona-head {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 16px;
  list-style: none;
  cursor: pointer;
}

.place-persona-heading,
.place-persona-heading > span,
.place-persona-name {
  display: block;
}

.place-persona-name {
  font-size: 0.98rem;
  line-height: 1.22;
}

.place-persona-interest {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.79rem;
}

.place-persona-interest strong {
  color: #40536a;
}

.place-disclosure-cue {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.73rem;
}

.place-disclosure-cue > span:last-child {
  font-size: 1rem;
  transition: transform 160ms ease;
}

.place-persona-section[open] .place-disclosure-cue > span:last-child {
  transform: rotate(45deg);
}

.place-persona-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.place-category-link {
  display: inline-block;
  margin: 13px 0;
  padding: 0;
  background: transparent;
}

.place-card {
  border-radius: 9px;
  background: #fff;
}

.places-source-card,
.method-card {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8f9fb;
}

.places-source-card strong,
.method-card h3 {
  color: var(--ink);
}

.places-source-card p,
.method-grid span {
  color: var(--muted);
}

.places-source-card a,
.evidence-links a {
  color: var(--blue-600);
}

.method-grid p {
  border-color: var(--line);
  background: #fff;
}

.method-grid strong {
  color: var(--blue-600);
}

.table-wrap,
.chart-card,
.insight-card,
.source-signal-card,
.evidence-metric,
.assumption-box {
  border-radius: var(--radius-md);
  box-shadow: none;
}

.assumption-box {
  color: #4d5d72;
  border-color: var(--line);
  background: #f8f9fb;
  font-size: 0.76rem;
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .persona-grid {
    grid-template-columns: 1fr;
  }

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

  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }

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

  .plan-notes {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .places-source-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
  }

  .brand-sub {
    white-space: normal;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }

  .builder {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .hero-card {
    min-height: 220px;
  }

  .hero-content {
    align-items: flex-start;
  }

  .hero-stamp {
    width: 86px;
    height: 86px;
  }
}

@media (max-width: 600px) {
  .topbar {
    min-height: auto;
    position: static;
    flex-direction: column;
    padding: 13px 16px 15px;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .top-actions .btn {
    min-height: 38px;
    padding: 7px 11px;
  }

  .workspace {
    padding-inline: 12px;
    gap: 15px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

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

  .channel-option-card {
    min-height: 42px;
  }

  .hero-card {
    min-height: 220px;
    background-position: 58% center;
  }

  .hero-content {
    min-height: 220px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .hero-status {
    padding: 6px 8px;
  }

  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    padding: 13px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .place-persona-head {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .evidence-heading {
    flex-direction: column;
    gap: 9px;
  }

  .evidence-metric-grid,
  .local-evidence-grid {
    grid-template-columns: 1fr 1fr;
  }

  .source-signal-card {
    grid-template-columns: 1fr;
  }

  .persona-facts {
    grid-template-columns: 1fr;
  }

  .places-toolbar,
  .places-alert,
  .place-search-fallback {
    align-items: flex-start;
    flex-direction: column;
  }

  .places-toolbar .btn-inline,
  .places-alert .btn-inline {
    width: 100%;
  }

  .place-grid,
  .place-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .places-loading {
    align-items: flex-start;
    flex-direction: column;
  }

  .places-idle .btn {
    width: 100%;
  }

  .allocation-chart {
    gap: 4px;
    height: 235px;
  }

  .month-spend {
    display: none;
  }
}

@media (max-width: 420px) {
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric strong {
    white-space: normal;
  }

  .tablist {
    gap: 16px;
    padding-inline: 14px;
  }

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

  .place-count {
    display: none;
  }
}

@media print {
  @page {
    margin: 0.55in;
  }

  body {
    background: #fff;
    color: #111;
  }

  .topbar,
  .builder,
  .tablist,
  .toast {
    display: none !important;
  }

  .workspace {
    display: block;
    width: 100%;
    padding: 0;
  }

  .hero-card,
  .output-card,
  .persona-card,
  .chart-card,
  .insight-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .output-card {
    border: 0;
  }

  .panel,
  .panel[hidden] {
    display: block !important;
    padding: 22px 0;
    border-bottom: 1px solid #ccc;
  }

  .persona-grid {
    grid-template-columns: 1fr 1fr;
  }

  .season-layout {
    grid-template-columns: 1.7fr 0.75fr;
  }

  .persona-detail:not([open]) > .persona-detail-body,
  .place-persona-section:not([open]) > .place-persona-body {
    display: block;
  }
}

@media print {
  @page {
    margin: 0.45in;
    size: landscape;
  }

  body {
    background: #fff;
    color: #000;
  }

  .topbar,
  .builder,
  .tablist,
  .toast {
    display: none !important;
  }

  .workspace {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .hero-card {
    min-height: 190px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .hero-card,
  .hero-content {
    min-height: 190px;
  }

  .metric-strip {
    break-inside: avoid;
  }

  .output-card {
    border: 0;
    box-shadow: none;
  }

  .panel,
  .panel[hidden] {
    display: block !important;
    padding: 20px 0;
    break-before: page;
  }

  .persona-card,
  .place-persona-section,
  .place-card,
  .table-wrap,
  .chart-card,
  .insight-card {
    break-inside: avoid;
  }

  .persona-grid {
    grid-template-columns: 1fr 1fr;
  }

  .season-layout {
    grid-template-columns: 1.7fr 0.8fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .places-spinner,
  .place-skeleton-grid span {
    animation: none !important;
  }
}

/* Agency editorial direction */
:root {
  --navy-950: #1b1818;
  --navy-900: #252121;
  --navy-800: #363030;
  --blue-600: #2e4bee;
  --blue-500: #455ff0;
  --aqua-500: #16a57a;
  --coral-500: #fc5c16;
  --gold-500: #f6d31e;
  --ink: #1b1818;
  --muted: #655f5a;
  --muted-2: #7e7770;
  --line: #cbc5bb;
  --line-strong: #1b1818;
  --canvas: #f1efe7;
  --surface: #fffef9;
  --surface-blue: #edf0ff;
  --success: #0b795b;
  --shadow-sm: none;
  --shadow-md: none;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

small {
  font-size: 0.875rem;
}

.season-control-label,
.place-type,
.place-distance,
.place-fit strong,
.media-table th,
.evidence-table th,
.plan-note-label,
.chart-heading span,
.insight-list dt,
.channel-label-stack small,
.place-count,
.month-spend,
.month-label {
  font-size: 0.75rem;
}

::selection {
  color: #fff;
  background: var(--blue-600);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #f6d31e;
  outline-offset: 3px;
}

.topbar {
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px clamp(18px, 3vw, 48px);
  color: var(--ink);
  background: rgba(255, 254, 249, 0.96);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: transparent;
  background: var(--ink);
  box-shadow: none;
}

.brand-mark::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 45deg, #74f21b 0 25%, #f6d31e 0 50%, #fc5c16 0 75%, #2e4bee 0);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.8rem;
}

.top-actions {
  gap: 8px;
}

.btn {
  min-height: 44px;
  padding: 9px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn-primary {
  color: var(--ink);
  background: #74f21b;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-primary:hover {
  color: #fff;
  background: var(--blue-600);
}

.btn-light,
.btn-inline,
.btn-reset {
  color: var(--ink);
  background: #fffef9;
  border-color: var(--ink);
  box-shadow: none;
}

.btn-light:hover,
.btn-inline:hover,
.btn-reset:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.workspace {
  width: min(1560px, 100%);
  grid-template-columns: minmax(330px, 380px) minmax(0, 1fr);
  gap: 22px;
  padding: 22px clamp(16px, 2.5vw, 40px) 64px;
}

.builder {
  top: 92px;
  max-height: calc(100vh - 112px);
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.builder-head {
  padding: 24px 22px 20px;
  color: #fff;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.eyebrow {
  margin-bottom: 10px;
  color: #74f21b;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  width: 22px;
  height: 3px;
  background: #fc5c16;
}

.builder h1 {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(1.8rem, 2.3vw, 2.45rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.builder-head p:last-child {
  max-width: 38ch;
  margin-top: 12px;
  color: #d6d0c8;
  font-size: 0.875rem;
}

.form-body {
  padding: 0 20px 20px;
}

.form-section,
.form-disclosure {
  border-color: rgba(255, 255, 255, 0.25);
}

.form-section {
  padding: 20px 0;
}

.section-legend {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section-number {
  color: #f6d31e;
  font-size: 0.75rem;
}

.field label,
.field-label,
.acs-field label {
  color: #e4ded5;
  font-size: 0.875rem;
}

.input,
.select,
.textarea {
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fffef9;
  box-shadow: none;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #f6d31e;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #74f21b;
  background: #fff;
  box-shadow: none;
}

.textarea {
  min-height: 78px;
}

.input-prefix > span {
  color: var(--ink);
}

.channel-selector {
  gap: 7px;
}

.channel-option-card {
  min-height: 44px;
  padding: 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: #2b2727;
  box-shadow: none;
}

.channel-option-card strong {
  color: inherit;
  font-size: 0.875rem;
}

.channel-option input:checked + .channel-option-card {
  color: var(--ink);
  border-color: #74f21b;
  background: #74f21b;
  box-shadow: none;
}

.channel-option input:focus-visible + .channel-option-card {
  outline-color: #f6d31e;
}

.range-row input[type="range"] {
  accent-color: #74f21b;
}

.range-value {
  color: var(--ink);
  background: #f6d31e;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 0.8rem;
}

.microcopy,
.source-note,
.source-note a,
.evidence-caution,
.form-disclosure > summary small {
  color: #c9c2b9;
  font-size: 0.8rem;
}

.source-note a {
  color: #f6d31e;
}

.form-disclosure > summary {
  min-height: 68px;
  color: #fff;
}

.form-disclosure > summary strong {
  font-size: 0.875rem;
}

.disclosure-mark {
  color: var(--ink);
  background: #f6d31e;
  border-radius: 6px;
}

.disclosure-body,
.acs-details {
  border-color: rgba(255, 255, 255, 0.22);
}

.acs-details {
  background: #2b2727;
}

.acs-details summary {
  color: #fff;
  font-size: 0.875rem;
}

.preset {
  min-height: 38px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: #2b2727;
}

.preset:hover,
.preset.is-active {
  color: var(--ink);
  border-color: #f6d31e;
  background: #f6d31e;
}

.season-control-label {
  color: #d6d0c8;
}

.season-control-bar {
  background: #2e4bee;
}

.season-control:hover .season-control-bar {
  background: #74f21b;
}

.form-actions {
  padding-top: 16px;
  background: var(--ink);
}

.form-actions .btn-primary {
  flex: 1;
}

.results {
  min-width: 0;
}

.hero-card {
  min-height: 330px;
  overflow: hidden;
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(27, 24, 24, 0.94) 0%, rgba(27, 24, 24, 0.72) 52%, rgba(27, 24, 24, 0.22) 100%),
    var(--hero-image) center 48% / cover no-repeat;
  box-shadow: none;
}

.hero-card::after {
  content: "";
  display: block;
  width: 92px;
  height: 92px;
  position: absolute;
  right: 28px;
  bottom: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #74f21b 0 3px, transparent 4px) 0 0 / 18px 18px;
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  min-height: 330px;
  align-items: flex-end;
  padding: clamp(26px, 4vw, 46px);
}

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

.hero-kicker {
  margin-bottom: 12px;
  color: #f6d31e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.hero-title {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(2.9rem, 6vw, 6.4rem);
  font-weight: 700;
  line-height: 0.87;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-desc {
  max-width: 760px;
  margin-top: 20px;
  color: #f1efe7;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-status {
  z-index: 1;
  align-self: flex-start;
  padding: 9px 12px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: #74f21b;
  backdrop-filter: none;
  font-size: 0.8rem;
}

.hero-status span {
  background: var(--ink);
}

.metric-strip {
  margin: 16px 0;
  gap: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--ink);
  box-shadow: none;
}

.metric {
  min-height: 120px;
  padding: 18px;
  border-right: 2px solid var(--ink);
  background: #fffef9;
}

.metric:last-child {
  border-right: 0;
}

.metric:nth-child(2) {
  background: #f6d31e;
}

.metric:nth-child(3) {
  background: #dfe4ff;
}

.metric:nth-child(4) {
  background: #d9ffc7;
}

.metric-label,
.metric-note {
  color: #514b46;
  font-size: 0.78rem;
}

.metric-label {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.metric strong {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  letter-spacing: -0.05em;
}

.output-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: #fffef9;
  box-shadow: none;
}

.tablist {
  gap: 4px;
  padding: 8px;
  background: var(--ink);
  border-bottom: 0;
  scrollbar-width: thin;
}

.tab {
  min-height: 46px;
  flex: 0 0 auto;
  padding: 10px 15px;
  color: #fff;
  border: 0;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tab:hover {
  color: var(--ink);
  background: #f6d31e;
}

.tab[aria-selected="true"] {
  color: var(--ink);
  border: 0;
  background: #74f21b;
}

.panel {
  padding: clamp(22px, 3vw, 36px);
  background: #fffef9;
}

.panel-head {
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.panel-title {
  max-width: 18ch;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.panel-copy {
  max-width: 62ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.quality-pill {
  padding: 7px 10px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: #f6d31e;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.persona-grid {
  gap: 16px;
}

.persona-card {
  padding: 22px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: none;
  transition: transform 160ms ease;
}

.persona-card:nth-child(even) {
  background: #f8f5ed;
}

.persona-card::before {
  inset: 0 0 auto;
  width: auto;
  height: 8px;
  background: var(--persona);
}

.persona-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.persona-card-head {
  gap: 16px;
}

.persona-index,
.origin-persona-index,
.place-persona-index {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.persona-card h3 {
  max-width: 25ch;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.65vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.persona-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.share-ring {
  min-width: 54px;
  padding: 8px 9px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--persona);
}

.share-ring strong {
  color: var(--ink);
  font-size: 0.875rem;
}

.persona-why {
  margin: 16px 0;
  color: #403b37;
  font-size: 0.95rem;
}

.persona-quick {
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
}

.persona-quick > span {
  padding: 11px 12px;
  background: #f1efe7;
}

.persona-quick > span + span {
  border-left: 2px solid var(--ink);
}

.persona-quick small,
.persona-quick strong {
  font-size: 0.8rem;
}

.persona-origin-summary {
  margin-top: 14px;
  padding: 12px;
  color: #fff;
  border-radius: 9px;
  background: var(--ink);
}

.persona-origin-summary > span {
  display: block;
  color: #74f21b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.persona-origin-summary p {
  margin: 5px 0 0;
  color: #fff;
  font-size: 0.83rem;
  line-height: 1.45;
}

.persona-origin-summary.is-pending {
  color: var(--ink);
  border: 1px dashed var(--ink);
  background: #f1efe7;
}

.persona-origin-summary.is-pending > span,
.persona-origin-summary.is-pending p {
  color: var(--muted);
}

.creative-hook {
  margin-top: 16px;
  padding: 14px 0 0;
  border-top: 2px solid var(--ink);
}

.creative-hook span,
.persona-facts dt,
.persona-evidence span {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
}

.creative-hook p {
  font-size: 0.9rem;
}

.persona-detail {
  margin-top: 16px;
  border-top: 2px solid var(--ink);
}

.persona-detail > summary {
  padding-top: 14px;
  color: var(--blue-600);
  font-size: 0.875rem;
}

.persona-detail-body {
  padding-top: 16px;
}

.demographic-profile {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: #f1efe7;
}

.demographic-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.demographic-profile-head span,
.demographic-profile-head strong {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demographic-profile-head strong {
  color: var(--blue-600);
  text-align: right;
}

.demographic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  background: #cbc5bb;
}

.demographic-grid > span {
  min-width: 0;
  padding: 10px;
  background: #fffef9;
}

.demographic-grid small,
.demographic-grid strong {
  display: block;
}

.demographic-grid small {
  color: var(--muted);
  font-size: 0.75rem;
}

.demographic-grid strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.35;
}

.demographic-profile > p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.persona-evidence {
  border: 1px solid #aaa39a;
  border-radius: 9px;
  background: #fff;
}

.persona-evidence p,
.persona-facts dd {
  font-size: 0.82rem;
}

.assumption-box {
  margin-top: 20px;
  padding: 14px 16px;
  color: #423d38;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: #f6d31e;
  font-size: 0.875rem;
}

.origins-loading,
.places-loading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--ink);
}

.origins-loading h3,
.places-loading h3 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.15;
}

.origins-loading p,
.places-loading p {
  margin: 7px 0 0;
  color: #cec7bf;
  font-size: 0.9rem;
}

.origins-source-note,
.places-source-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.origins-spinner,
.places-spinner {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #74f21b;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.origin-skeleton,
.place-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.origin-skeleton span,
.place-skeleton-grid span {
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e4e0d6;
}

.origins-toolbar,
.places-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
}

.origins-toolbar > div,
.places-toolbar > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 9px;
}

.origins-toolbar strong,
.origins-toolbar small,
.places-toolbar strong,
.places-toolbar small {
  display: block;
}

.origins-toolbar strong,
.places-toolbar strong {
  color: #fff;
  font-size: 0.9rem;
}

.origins-toolbar small,
.places-toolbar small {
  grid-column: 2;
  color: #cfc8c0;
  font-size: 0.78rem;
}

.origins-live-mark,
.places-live-mark {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #74f21b;
}

.origins-alert,
.places-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 15px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #ffe1d2;
}

.origins-alert p,
.places-alert p {
  margin: 4px 0 0;
  color: #57473e;
  font-size: 0.85rem;
}

.origin-persona-list,
.place-persona-list {
  display: grid;
  gap: 12px;
}

.origin-persona-section,
.place-persona-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: #fff;
}

.origin-persona-section::before,
.place-persona-section::before {
  content: "";
  width: 8px;
  height: 100%;
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--persona);
}

.origin-persona-head,
.place-persona-head {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 16px 18px 16px 24px;
  list-style: none;
  color: var(--ink);
  cursor: pointer;
}

.origin-persona-head > span:first-child,
.origin-persona-head strong,
.origin-persona-head small {
  display: block;
}

.origin-persona-head strong,
.place-persona-name {
  max-width: 46ch;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.origin-persona-head small,
.place-persona-interest {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.origin-disclosure-cue,
.place-disclosure-cue > span:last-child {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 6px;
  background: var(--ink);
  font-size: 1rem;
  transition: transform 160ms ease;
}

.origin-persona-section[open] .origin-disclosure-cue,
.place-persona-section[open] .place-disclosure-cue > span:last-child {
  transform: rotate(45deg);
}

.origin-persona-body,
.place-persona-body {
  padding: 18px 18px 20px 24px;
  border-top: 2px solid var(--ink);
  background: #f8f5ed;
}

.origin-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
}

.origin-profile-grid > span {
  min-width: 0;
  padding: 12px;
  background: #fffef9;
}

.origin-profile-grid > span + span {
  border-left: 1px solid var(--ink);
}

.origin-profile-grid small,
.origin-profile-grid strong {
  display: block;
}

.origin-profile-grid small {
  color: var(--muted);
  font-size: 0.75rem;
}

.origin-profile-grid strong {
  margin-top: 4px;
  font-size: 1rem;
}

.origin-market-list {
  display: grid;
  gap: 12px;
}

.origin-market {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  background: #fff;
}

.origin-market::before {
  content: "";
  height: 5px;
  position: absolute;
  inset: 0 0 auto;
  background: var(--persona);
}

.origin-market-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.origin-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.origin-market-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.origin-market-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.origin-confidence {
  padding: 5px 7px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: #f6d31e;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.origin-allocation {
  margin-top: 15px;
}

.origin-allocation > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.origin-allocation strong {
  color: var(--ink);
  text-align: right;
}

.origin-bar {
  height: 12px;
  display: block;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #e4e0d6;
}

.origin-bar > span {
  width: var(--origin-share);
  height: 100%;
  display: block;
  background: var(--persona);
}

.origin-allocation > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.origin-demographics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  background: #cbc5bb;
}

.origin-demographics > span {
  min-width: 0;
  padding: 9px;
  background: #f8f5ed;
}

.origin-demographics small,
.origin-demographics strong {
  display: block;
}

.origin-demographics small {
  color: var(--muted);
  font-size: 0.75rem;
}

.origin-demographics strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.82rem;
}

.origin-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.origin-reasons li {
  padding: 5px 8px;
  color: #fff;
  border-radius: 5px;
  background: var(--ink);
  font-size: 0.75rem;
}

.origin-inclusion {
  margin: 12px 0 0;
  padding: 9px;
  color: #5e554f;
  border-left: 4px solid var(--persona);
  background: #f1efe7;
  font-size: 0.78rem;
}

.origin-method {
  margin-top: 12px;
  border-top: 1px solid var(--ink);
}

.origin-method > summary {
  padding-top: 10px;
  color: var(--blue-600);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.origin-method > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.origin-method > div span {
  padding: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8f5ed;
  font-size: 0.75rem;
}

.origin-method p,
.origin-method a {
  font-size: 0.78rem;
}

.origin-method a {
  color: var(--blue-600);
  font-weight: 700;
}

.origin-caution {
  margin-top: 18px;
  padding: 18px;
  color: #fff;
  border-radius: 12px;
  background: var(--ink);
}

.origin-caution strong {
  color: #74f21b;
  font-size: 0.9rem;
}

.origin-caution p {
  margin: 7px 0 0;
  color: #d6d0c8;
  font-size: 0.85rem;
}

.place-card,
.table-wrap,
.chart-card,
.insight-card,
.source-signal-card,
.evidence-metric {
  border: 1px solid var(--ink);
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
}

.place-card {
  background: #fff;
}

.place-type,
.source-button {
  border: 1px solid var(--ink);
  border-radius: 5px;
}

.place-link-primary,
.source-button {
  color: #fff;
  background: var(--blue-600);
}

.places-source-card,
.method-card {
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--ink);
}

.places-source-card strong,
.method-card h3 {
  color: #fff;
}

.places-source-card p,
.method-grid span {
  color: #d2cbc3;
}

.places-source-card a,
.evidence-links a,
.method-grid strong {
  color: #74f21b;
}

.media-table thead th,
.evidence-table thead th {
  color: #fff;
  background: var(--ink);
}

.table-total td {
  color: var(--ink);
  background: #f6d31e;
}

.month-bar {
  background: var(--blue-600);
}

.insight-card {
  background: #f6d31e;
}

.evidence-section {
  padding: 0 0 26px;
  border-bottom: 2px solid var(--ink);
}

.evidence-section + .evidence-section,
.method-card {
  margin-top: 28px;
  padding-top: 28px;
}

.evidence-heading h3 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.evidence-heading p {
  font-size: 0.9rem;
}

.evidence-kicker {
  color: var(--blue-600) !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-metric-grid {
  gap: 10px;
}

.source-signal-card {
  background: #f8f5ed;
}

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

.dataset-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  background: #fff;
}

.dataset-card:nth-child(4n + 2) {
  background: #edf0ff;
}

.dataset-card:nth-child(4n + 3) {
  background: #fff0e8;
}

.dataset-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.dataset-card-head span,
.dataset-card-head small {
  font-size: 0.75rem;
  font-weight: 700;
}

.dataset-card-head span {
  color: var(--blue-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dataset-card-head small {
  color: var(--muted);
  text-align: right;
}

.dataset-card h4 {
  margin: 13px 0 0;
  font-size: 1rem;
  line-height: 1.2;
}

.dataset-card h4 a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dataset-card p {
  margin: 9px 0 0;
  color: #4e4843;
  font-size: 0.82rem;
}

.dataset-card .dataset-caveat {
  padding-top: 9px;
  border-top: 1px solid #cbc5bb;
}

.dataset-caveat strong {
  color: #b63c08;
}

.method-card {
  padding: 24px;
}

.method-card h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.method-grid {
  gap: 10px;
}

.method-grid p {
  border: 1px solid #514b4b;
  border-radius: 9px;
  background: #272323;
}

.method-formula {
  margin-top: 16px;
  padding: 16px;
  color: var(--ink);
  border-radius: 10px;
  background: #74f21b;
}

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

.method-formula span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.method-formula strong {
  margin-top: 5px;
  font-size: 1.05rem;
}

.method-formula p {
  margin: 6px 0 0;
  font-size: 0.82rem;
}

.evidence-links {
  border-top-color: #514b4b;
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .persona-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .topbar {
    position: static;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding: 16px 14px 44px;
  }

  .builder {
    position: static;
    max-height: none;
  }

  .hero-card,
  .hero-content {
    min-height: 300px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 12vw, 5rem);
  }

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

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 2px solid var(--ink);
  }

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

  .origin-profile-grid > span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .origin-profile-grid > span:nth-child(4) {
    border-top: 1px solid var(--ink);
  }

  .dataset-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .topbar {
    align-items: flex-start;
    padding: 12px;
  }

  .brand-sub {
    display: none;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .btn {
    flex: 1;
    padding-inline: 10px;
  }

  .builder-head,
  .form-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-card,
  .hero-content {
    min-height: 330px;
  }

  .hero-content {
    align-items: flex-start;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding: 24px 20px;
  }

  .hero-card::after {
    width: 68px;
    height: 68px;
    right: 14px;
    bottom: 14px;
  }

  .hero-title {
    font-size: clamp(2.35rem, 14vw, 4.2rem);
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .metric {
    min-height: 104px;
    padding: 14px;
  }

  .metric strong {
    font-size: 1.4rem;
  }

  .tablist {
    scroll-padding-inline: 8px;
  }

  .panel {
    padding: 20px 14px;
  }

  .panel-head {
    flex-direction: column;
  }

  .persona-card {
    padding: 18px 15px;
  }

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

  .origins-loading,
  .places-loading,
  .origins-toolbar,
  .places-toolbar,
  .origins-alert,
  .places-alert {
    align-items: flex-start;
    flex-direction: column;
  }

  .origins-toolbar .btn,
  .places-toolbar .btn,
  .origins-alert .btn,
  .places-alert .btn {
    width: 100%;
  }

  .origin-persona-head,
  .place-persona-head {
    padding: 15px 14px 15px 20px;
  }

  .origin-persona-body,
  .place-persona-body {
    padding: 14px 12px 16px 18px;
  }

  .origin-market {
    padding: 15px 12px;
  }

  .origin-market-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .origin-confidence {
    grid-column: 2;
    width: fit-content;
  }

  .origin-allocation > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .origin-allocation strong {
    text-align: left;
  }

  .origin-method > div {
    grid-template-columns: 1fr;
  }

  .place-grid,
  .place-skeleton-grid,
  .origin-skeleton {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(2) {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .origin-profile-grid,
  .demographic-grid,
  .origin-demographics {
    grid-template-columns: 1fr;
  }

  .origin-profile-grid > span + span,
  .origin-profile-grid > span:nth-child(3),
  .origin-profile-grid > span:nth-child(4) {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }
}

@media print {
  @page {
    margin: 0.45in;
    size: landscape;
  }

  body {
    color: #000;
    background: #fff;
  }

  .workspace {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .hero-card,
  .hero-content {
    min-height: 190px;
  }

  .hero-card {
    border-color: #000;
  }

  .output-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-card,
  .metric-strip,
  .output-card,
  .persona-card,
  .origin-persona-section,
  .origin-market,
  .place-persona-section,
  .place-card,
  .dataset-card {
    border-color: #000;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .panel,
  .panel[hidden] {
    display: block !important;
    padding: 20px 0;
    break-before: page;
  }

  .persona-detail > .persona-detail-body,
  .origin-persona-section > .origin-persona-body,
  .origin-method > :not(summary),
  .place-persona-section > .place-persona-body {
    display: block !important;
  }

  .origin-market,
  .origin-persona-section,
  .dataset-card,
  .demographic-profile {
    break-inside: avoid;
  }

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

@media (prefers-reduced-motion: reduce) {
  .origins-spinner,
  .origin-skeleton span {
    animation: none !important;
  }
}

/* Origin heatmap + persona comparison */
.persona-comparison-card,
.origin-heatmap-card {
  margin: 0 0 26px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.visual-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  color: #fff;
  background: var(--ink);
}

.visual-card-head > div:first-child {
  max-width: 640px;
}

.visual-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-500);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.visual-card-head h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-transform: uppercase;
}

.visual-card-head p {
  max-width: 650px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.visual-control {
  display: grid;
  flex: 0 1 250px;
  gap: 7px;
  min-width: 220px;
}

.visual-control > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.visual-control > span::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--series, var(--coral-500));
  content: "";
}

.visual-control select {
  width: 100%;
  min-height: 46px;
  padding: 9px 38px 9px 12px;
  border: 2px solid #fff;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 750;
}

.radar-controls {
  display: flex;
  flex: 0 1 510px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.radar-controls .visual-control {
  flex: 1 1 210px;
  min-width: 190px;
}

.persona-comparison-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
}

.radar-stage {
  min-width: 0;
  overflow-x: auto;
  padding: 18px 20px 15px;
  border-right: 1px solid var(--ink);
  background: #f6f3e9;
}

.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  min-height: 24px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.radar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.radar-legend span::before {
  width: 28px;
  border-top: 3px solid var(--series);
  content: "";
}

.radar-legend .is-dashed::before {
  border-top-style: dashed;
}

.persona-radar-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  margin: 2px auto 0;
  overflow: visible;
}

.radar-grid-ring {
  fill: none;
  stroke: #c4bdb2;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.radar-axis {
  stroke: #aaa297;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.radar-axis-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.radar-shape {
  fill: var(--series);
  fill-opacity: 0.12;
  stroke: var(--series);
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.radar-shape-b {
  fill-opacity: 0.08;
  stroke-dasharray: 9 6;
}

.radar-node {
  fill: #fff;
  stroke: var(--series);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.radar-node-b {
  stroke-dasharray: 2 1;
}

.visual-chart-note {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.radar-table-wrap {
  min-width: 0;
  overflow-x: auto;
  background: var(--surface);
}

.radar-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.35;
}

.radar-table th,
.radar-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.radar-table thead th {
  position: relative;
  padding-top: 17px;
  color: var(--ink);
  background: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.radar-table thead th:nth-child(2)::before,
.radar-table thead th:nth-child(3)::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--series);
  content: "";
}

.radar-table tbody tr:last-child > * {
  border-bottom: 0;
}

.radar-table tbody th {
  width: 34%;
  font-weight: 750;
}

.radar-table strong,
.radar-table small {
  display: block;
}

.radar-table small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.radar-delta {
  display: inline-block;
  min-width: 58px;
  padding: 4px 7px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.radar-delta.is-positive {
  background: #fff0e8;
}

.radar-delta.is-negative {
  background: #edf0ff;
}

.origin-heatmap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.65fr);
}

.origin-map-stage {
  min-width: 0;
  padding: 16px 18px 13px;
  border-right: 1px solid var(--ink);
  background-color: #f6f3e9;
  background-image:
    linear-gradient(rgba(27, 24, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 24, 24, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

.origin-heatmap-svg {
  display: block;
  width: 100%;
  height: auto;
}

.origin-map-outline {
  fill: #fffef9;
  stroke: var(--ink);
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.origin-map-guide {
  fill: none;
  stroke: #c5beb3;
  stroke-dasharray: 5 7;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.origin-region-label {
  fill: #817a72;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.heatmap-halo {
  fill: var(--heat-color);
  fill-opacity: 0.26;
  stroke: var(--heat-color);
  stroke-opacity: 0.4;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.heatmap-core {
  fill: var(--heat-color);
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.heatmap-label {
  fill: var(--ink);
  stroke: #fffef9;
  stroke-linejoin: round;
  stroke-width: 4px;
  paint-order: stroke;
  font-size: 12px;
  font-weight: 800;
}

.heatmap-ranking-panel {
  min-width: 0;
  background: var(--surface);
}

.heatmap-ranking-head {
  display: grid;
  gap: 2px;
  padding: 19px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.heatmap-ranking-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.heatmap-ranking-head strong {
  font-size: 1rem;
}

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

.heatmap-ranking li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.heatmap-ranking li:last-child {
  border-bottom: 0;
}

.heatmap-rank {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.heatmap-market-copy,
.heatmap-market-value {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.heatmap-market-copy strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heatmap-market-copy small,
.heatmap-market-value small {
  color: var(--muted);
  font-size: 0.68rem;
}

.heatmap-market-value {
  justify-items: end;
  text-align: right;
}

.heatmap-market-value strong {
  font-size: 0.88rem;
}

.heatmap-mini-bar {
  width: 100%;
  height: 4px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.heatmap-mini-bar > span {
  display: block;
  width: var(--heat-share);
  height: 100%;
  border-radius: inherit;
  background: var(--heat-color);
}

@media (max-width: 1120px) {
  .persona-comparison-layout {
    grid-template-columns: 1fr;
  }

  .radar-stage {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .radar-table {
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .visual-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .visual-card-head > div:first-child {
    max-width: none;
  }

  .visual-control,
  .radar-controls {
    width: 100%;
    max-width: none;
  }

  .origin-heatmap-layout {
    grid-template-columns: 1fr;
  }

  .origin-map-stage {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
}

@media (max-width: 600px) {
  .persona-comparison-card,
  .origin-heatmap-card {
    border-radius: var(--radius-md);
  }

  .visual-card-head {
    gap: 18px;
    padding: 19px 16px;
  }

  .radar-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .radar-controls .visual-control,
  .visual-control {
    min-width: 0;
  }

  .radar-stage {
    padding: 14px 8px 12px;
  }

  .persona-radar-svg {
    min-width: 520px;
  }

  .radar-axis-label {
    font-size: 13px;
  }

  .radar-table {
    min-width: 580px;
  }

  .origin-map-stage {
    padding: 12px 8px 10px;
  }

  .heatmap-label {
    display: none;
  }

  .heatmap-ranking li {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media print {
  .persona-comparison-card,
  .origin-heatmap-card {
    break-inside: avoid;
    border-color: #000;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .visual-control,
  .radar-controls {
    display: none;
  }

  .persona-comparison-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
  }

  .radar-stage,
  .origin-map-stage {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
