:root {
  color-scheme: light;
  --ink: #172b3e;
  --muted: #536779;
  --line: #dbe3e9;
  --paper: #fff;
  --canvas: #f3f6f8;
  --navy: #132b43;
  --blue: #176b87;
  --aqua: #d8f0f3;
  --gold: #f0bb59;
  --warning: #fff2cc;
  --danger: #9a3f35;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #e2a728; outline-offset: 3px; }
[hidden] { display: none !important; }

.site-header { min-height: 72px; padding: 12px clamp(16px, 4vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--navy); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--navy); background: #fff; font: 800 22px Manrope, sans-serif; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 16px Manrope, sans-serif; letter-spacing: .01em; }
.brand small { margin-top: 2px; color: #c7d6e2; font-size: 12px; }
.campaign-status { color: #e8f1f5; font-size: 13px; text-align: right; }
.synthetic-banner { padding: 10px 16px; text-align: center; color: #593f11; background: var(--warning); font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.page-shell { width: min(1100px, calc(100% - 32px)); margin: 34px auto 48px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, "DM Sans", sans-serif; }
h1 { margin-bottom: 12px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: 23px; line-height: 1.2; }
h3 { font-size: 17px; }
.eyebrow { margin-bottom: 10px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lede { max-width: 680px; margin-bottom: 24px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.setup-panel { max-width: 720px; margin: 7vh auto 0; }
.card { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 28px #233d520a; }
.form-stack { display: grid; gap: 12px; }
.form-stack label { margin-top: 5px; font-size: 13px; font-weight: 700; }
input, select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bdcbd5; border-radius: 9px; color: var(--ink); background: #fff; }
.button { min-height: 46px; padding: 11px 17px; border: 0; border-radius: 10px; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { margin-top: 7px; color: #fff; background: var(--blue); }
.button-primary:hover { background: #10546c; }
.button-secondary { color: var(--navy); background: var(--aqua); }
.button-quiet { color: var(--blue); background: transparent; }
.button:disabled { cursor: not-allowed; opacity: .52; transform: none; }
.fine-print { margin: 15px 3px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.notice { margin-bottom: 16px; padding: 12px 15px; border: 1px solid #e7c7a1; border-radius: 10px; color: #603d23; background: #fff7eb; }
.notice[data-kind="error"] { border-color: #dfb5b0; color: var(--danger); background: #fff2f0; }
.campaign-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.campaign-heading h1 { margin-bottom: 0; }
.date-chip { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; }
.view-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #e9eff3; }
.view-tabs button { flex: 1 0 auto; min-height: 42px; padding: 8px 15px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 700; }
.view-tabs button[aria-current="page"] { color: var(--navy); background: #fff; box-shadow: 0 1px 4px #132b4318; }
.view-content { padding-top: 22px; }
.view-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); align-items: start; gap: 18px; }
.stack { display: grid; gap: 16px; }
.card-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.card-heading h2, .card-heading h3 { margin-bottom: 8px; }
.sim-tag, .status-tag { display: inline-block; padding: 5px 8px; border-radius: 999px; color: #155468; background: var(--aqua); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.metric span { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin-top: 9px; font: 800 clamp(21px, 3vw, 28px) Manrope, sans-serif; letter-spacing: -.035em; }
.metric small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.priority-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.policy-form { display: grid; grid-template-columns: minmax(90px, 1fr) auto; align-items: end; gap: 12px; }
.policy-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.policy-callout { padding: 14px; border-left: 4px solid var(--gold); border-radius: 4px 10px 10px 4px; color: #584724; background: #fff8e9; font-size: 13px; line-height: 1.5; }
.unmodeled-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; list-style: none; }
.unmodeled-list li { padding: 10px 11px; border: 1px dashed #bcc9d2; border-radius: 9px; color: var(--muted); background: #fafcfd; font-size: 12px; }
.unmodeled-list strong { display: block; margin-bottom: 3px; color: var(--ink); }
.timeline { display: grid; gap: 11px; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 15px 18px; border-left: 2px solid var(--line); }
.timeline li::before { position: absolute; top: 2px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); content: ""; }
.timeline li:last-child { padding-bottom: 0; }
.timeline p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.effect-line { padding: 10px 12px; border-radius: 8px; background: #f1f6f8; font-size: 13px; line-height: 1.5; }
.advisor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.advisor-card { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.advisor-card h3 { margin-bottom: 7px; font-size: 14px; }
.advisor-card p { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.schematic-map { display: grid; grid-template-columns: 1fr .85fr .72fr; grid-template-rows: repeat(3, minmax(70px, auto)); gap: 8px; max-width: 700px; margin: 24px auto; }
.region { display: grid; place-items: center; min-height: 70px; padding: 12px; border: 1px solid #80b6c1; border-radius: 48% 36% 42% 30%; color: #194958; background: #e0f2f4; text-align: center; font-size: 12px; font-weight: 700; }
.region:nth-child(1) { grid-column: 1; grid-row: 1; }
.region:nth-child(2) { grid-column: 2; grid-row: 1; }
.region:nth-child(3) { grid-column: 2; grid-row: 2; }
.region:nth-child(4) { grid-column: 3; grid-row: 2; }
.region:nth-child(5) { grid-column: 2; grid-row: 3; }
.report-banner { padding: 18px; border: 1px solid #9dc9ab; border-radius: 14px; background: #edf8f0; }
.report-banner h2 { margin-bottom: 7px; }
.report-banner p { margin-bottom: 0; color: #45634d; line-height: 1.5; }
.empty-state { padding: 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; padding: 18px clamp(16px, 4vw, 56px); border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 11px; }

@media (max-width: 720px) {
  .page-shell { width: min(600px, calc(100% - 24px)); margin-top: 22px; }
  .campaign-heading { align-items: start; flex-direction: column; }
  .view-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:last-child { grid-column: 1 / -1; }
  .advisor-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 420px) {
  .synthetic-banner { font-size: 10px; }
  .priority-row, .policy-form { grid-template-columns: 1fr; }
  .unmodeled-list { grid-template-columns: 1fr; }
  .view-tabs button { padding-inline: 11px; font-size: 12px; }
  .metric { padding: 12px; }
}
