:root {
  color-scheme: dark;
  --bg: #061846;
  --panel: #071b3f;
  --panel-2: #0d244d;
  --panel-3: #09285c;
  --gold: #d4a85a;
  --text: #f7f2e8;
  --muted: #bac4d6;
  --line: rgba(212, 168, 90, 0.28);
  --danger: #f08a78;
  --success: #89d49a;
  --blue: #7cb7ff;
  --ink: #031333;
  --hero-bg: #061846;
  --hero-bg-deep: #051644;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a { color: var(--gold); }

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  align-items: flex-start;
  color: var(--muted);
}

.brand {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}
nav a:hover {
  color: var(--text);
}
main { min-height: calc(100svh - 170px); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.coming-soon {
  width: 100vw;
  min-height: calc(100svh - 170px);
  display: grid;
  place-items: center;
  padding: 0;
}

.coming-soon-art {
  display: block;
  width: 100vw;
  min-height: calc(100svh - 170px);
  object-fit: contain;
}

.public-home-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 56svh, 600px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 700px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) clamp(18px, 8vw, 120px) clamp(28px, 4vw, 46px);
  background:
    linear-gradient(120deg, var(--hero-bg), var(--hero-bg-deep) 58%);
  border-bottom: 1px solid var(--line);
}

.public-home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  min-width: 0;
}

.public-home-hero h1 {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 72px);
}

.public-home-hero p {
  max-width: 620px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
}

.public-home-mark {
  position: relative;
  z-index: 1;
  margin: 0;
  justify-self: end;
  width: min(100%, 400px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(clamp(14px, 2.2vw, 34px), clamp(-34px, -2.4vw, -18px));
}

.public-home-mark--map {
  width: min(100%, 780px);
  aspect-ratio: 1699 / 926;
  transform: translate(clamp(78px, 6.8vw, 112px), clamp(-18px, -1.4vw, -10px));
}

.public-home-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 46px rgba(0, 0, 0, 0.34));
}

.public-home-mark--map img {
  grid-area: 1 / 1;
}

.public-home-mark--map .public-home-map {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.98;
  filter: saturate(1.04) contrast(1.02);
}

.public-home-mark--map .public-home-seal {
  width: min(43%, 330px);
  height: auto;
  object-fit: contain;
  transform: translateY(2%);
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.36));
}

.public-home-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f7f2e8;
  color: #071b3f;
}

.public-home-path a {
  display: grid;
  gap: 6px;
  min-height: 116px;
  align-content: center;
  border-right: 1px solid rgba(7, 27, 63, 0.18);
  padding: 20px clamp(18px, 3vw, 34px);
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.public-home-path a:last-child {
  border-right: 0;
}

.public-home-path a:hover {
  background: #fffaf0;
  color: #031333;
  transform: translateY(-2px);
}

.public-home-path span {
  color: #8a641e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.public-home-path strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.08;
}

.public-home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.public-home-intro h2,
.public-home-contact h2 {
  margin-top: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.public-home-intro p,
.public-home-grid p,
.public-home-contact p {
  color: var(--muted);
}

.public-home-note {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.public-home-note p {
  margin-top: 0;
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.public-home-note strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.public-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: clamp(20px, 4vw, 46px);
}

.public-home-grid article {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.public-home-grid h3 {
  margin-top: 0;
}

.public-home-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.public-home-feature h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.5vw, 44px);
}

.public-home-feature p {
  max-width: 780px;
  color: var(--muted);
}

.public-home-contact {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.public-home-contact > div {
  min-width: 0;
}

.public-home-contact .button {
  flex: 0 1 auto;
  max-width: min(100%, 360px);
  overflow-wrap: anywhere;
}

.match-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  max-width: none;
  min-height: clamp(320px, 38svh, 380px);
  padding: clamp(42px, 5vw, 62px) clamp(18px, 8vw, 120px);
  background:
    linear-gradient(120deg, rgba(6, 24, 70, 0.98), rgba(5, 22, 68, 0.98) 62%);
  border-bottom: 1px solid var(--line);
}

.match-hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 860px);
}

.match-hero h1 {
  margin: 0 0 16px;
  max-width: 780px;
  font-size: clamp(34px, 4.2vw, 56px);
}

.match-hero p {
  max-width: 720px;
  color: var(--text);
  font-size: clamp(17px, 1.45vw, 20px);
}

.match-hero .hero-program-list {
  display: none;
  margin-bottom: 0;
  color: #e5bf72;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 800;
  line-height: 1.35;
}

.match-hero--compact {
  min-height: clamp(320px, 38svh, 380px);
}

.match-hero--compact h1 {
  max-width: 760px;
  font-size: clamp(34px, 4.2vw, 56px);
}

.match-hero--form {
  min-height: clamp(320px, 38svh, 380px);
}

.match-hero-mark {
  position: absolute;
  z-index: 0;
  margin: 0;
  top: 50%;
  right: clamp(32px, 7vw, 132px);
  bottom: auto;
  width: clamp(260px, 28vw, 430px);
  aspect-ratio: 1699 / 926;
  display: grid;
  place-items: center;
  opacity: 0.11;
  transform: translateY(-50%);
  pointer-events: none;
}

.match-hero-mark img {
  position: relative;
  z-index: 1;
  display: block;
  object-fit: contain;
  grid-area: 1 / 1;
}

.match-hero-map {
  width: 100%;
  height: 100%;
  opacity: 0.95;
  filter: saturate(1.04) contrast(1.02);
}

.match-hero-seal {
  width: min(43%, 170px);
  height: auto;
  transform: translateY(2%);
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.36));
}

.match-action-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f7f2e8;
  color: #071b3f;
}

.match-action-strip--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.match-action-strip a {
  display: grid;
  gap: 6px;
  min-height: 136px;
  align-content: center;
  border-right: 1px solid rgba(7, 27, 63, 0.18);
  padding: 20px clamp(18px, 2.7vw, 34px);
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.match-action-strip a:last-child {
  border-right: 0;
}

.match-action-strip a:hover {
  background: #fffaf0;
  color: #031333;
  transform: translateY(-2px);
}

.match-action-strip span {
  color: #8a641e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.match-action-strip strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
}

.match-action-strip small {
  max-width: 260px;
  color: #263656;
  font-size: 14px;
  line-height: 1.35;
}

.hero,
.section,
.panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 84px) clamp(18px, 4vw, 56px);
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

h1 { font-size: clamp(36px, 6vw, 72px); max-width: 850px; }
.section h2 { margin-top: 0; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 90, 0.38);
  border-radius: 6px;
  padding: 11px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
  white-space: normal;
  text-align: center;
}

.button::before,
button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 42%, transparent 58%);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 180ms ease, transform 360ms ease;
  pointer-events: none;
}

.button.primary,
button.primary {
  background: linear-gradient(180deg, #efcf82, var(--gold));
  color: #111827;
  border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 28px rgba(212, 168, 90, 0.18);
}

.button.danger,
button.danger {
  border-color: rgba(240, 138, 120, 0.78);
  background: rgba(240, 138, 120, 0.08);
  color: #ffd7cf;
}

.button.small,
button.small {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 12px;
  white-space: nowrap;
}

.button:hover,
button:hover {
  border-color: rgba(212, 168, 90, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 26px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.button:hover::before,
button:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.button.primary:hover,
button.primary:hover {
  background: linear-gradient(180deg, #f0cb80, #d8ad5f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 32px rgba(212, 168, 90, 0.24);
}

.button.danger:hover,
button.danger:hover {
  border-color: rgba(240, 138, 120, 0.95);
  background: rgba(240, 138, 120, 0.14);
}

.button:active,
button:active {
  transform: translateY(0) scale(0.99);
  box-shadow: none;
}

.button:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(124, 183, 255, 0.55);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

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

.compact-section {
  padding-top: clamp(20px, 4vw, 44px);
  padding-bottom: clamp(20px, 4vw, 44px);
}

.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(20px, 4vw, 44px);
  align-items: end;
  padding-top: clamp(30px, 5vw, 60px);
  padding-bottom: clamp(26px, 4vw, 52px);
}

.admin-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 5vw, 64px);
}

.status-panel,
.metric-card,
.workflow-card,
.segment-card,
.table-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 27, 63, 0.72);
}

.status-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
}

.status-title {
  width: 100%;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.status-pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.status-pill.good,
.status-chip.high {
  border-color: rgba(137, 212, 154, 0.45);
  color: #d8ffe0;
}

.status-pill.lock,
.status-chip.low {
  border-color: rgba(212, 168, 90, 0.5);
  color: #ffe3aa;
}

.status-chip.medium_warm,
.status-chip.confirmed_route {
  border-color: rgba(124, 183, 255, 0.5);
  color: #d9eaff;
}

.status-chip.hold {
  border-color: rgba(240, 138, 120, 0.5);
  color: #ffd7cf;
}

.status-chip.sent,
.status-chip.test {
  border-color: rgba(137, 212, 154, 0.45);
  color: #d8ffe0;
}

.status-chip.skipped {
  border-color: rgba(212, 168, 90, 0.5);
  color: #ffe3aa;
}

.status-chip.error {
  border-color: rgba(240, 138, 120, 0.5);
  color: #ffd7cf;
}

.status-chip.suppressed,
.status-chip.bounced,
.status-chip.wrong_contact,
.status-chip.inactive,
.status-chip.do_not_send,
.status-chip.wrong_contact,
.status-chip.confirmed_inactive {
  border-color: rgba(240, 138, 120, 0.5);
  color: #ffd7cf;
}

.status-chip.confirmed_active {
  border-color: rgba(137, 212, 154, 0.45);
  color: #d8ffe0;
}

.status-chip.needs_follow_up {
  border-color: rgba(212, 168, 90, 0.5);
  color: #ffe3aa;
}

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

.metric-card {
  padding: 18px;
}

.metric-card span,
.segment-card span,
.step-label {
  display: block;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.metric-card > strong,
.segment-card > strong,
.big-number {
  display: block;
  margin: 8px 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.metric-card small,
.subtext {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

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

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

.workflow-tight {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.workflow-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 22px;
}

.workflow-card.primary-lane {
  background: linear-gradient(180deg, var(--panel-3), var(--panel));
  border-color: rgba(212, 168, 90, 0.56);
}

.workflow-card h3,
.segment-card h3 {
  margin-bottom: 0;
}

.workflow-card p,
.segment-card p {
  color: var(--muted);
}

.segment-card p strong {
  color: var(--text);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.inline-actions {
  margin-top: 0;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.audience-lane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.audience-lane-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 27, 63, 0.72);
  padding: 18px;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.audience-lane-card.active {
  border-color: rgba(212, 168, 90, 0.66);
  background:
    linear-gradient(180deg, rgba(212, 168, 90, 0.12), rgba(7, 27, 63, 0.78));
}

.audience-lane-card:hover {
  border-color: rgba(212, 168, 90, 0.48);
  background-color: rgba(255, 255, 255, 0.035);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.audience-lane-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.audience-lane-card strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1;
}

.audience-lane-card p {
  margin: 0;
  color: var(--muted);
}

.audience-lane-card b {
  color: var(--text);
}

.audience-lane-card .button {
  width: fit-content;
  min-height: 40px;
  margin-top: 4px;
  padding: 8px 12px;
}

.audience-review-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(212, 168, 90, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 45, 99, 0.58), rgba(7, 27, 63, 0.82));
  padding: clamp(18px, 3vw, 24px);
  margin-bottom: 18px;
}

.audience-review-panel h3 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.audience-review-panel p {
  margin: 0;
  color: var(--muted);
}

.audience-review-panel p + p {
  margin-top: 8px;
}

.audience-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.segment-card {
  padding: 20px;
}

.segment-card a {
  font-size: 14px;
}

.copy-panel {
  margin-top: 18px;
}

.send-control-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 16px;
  align-items: start;
}

.send-runway {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  align-items: start;
}

.send-panel {
  max-width: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 27, 63, 0.72);
  padding: clamp(18px, 3vw, 24px);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.send-panel--test {
  border-color: rgba(212, 168, 90, 0.34);
}

.send-panel--pilot {
  border-color: rgba(240, 138, 120, 0.36);
}

.send-checklist-panel {
  border: 1px solid rgba(212, 168, 90, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(212, 168, 90, 0.08), rgba(7, 27, 63, 0.74));
  padding: clamp(18px, 2.5vw, 22px);
  position: sticky;
  top: 86px;
}

.send-steps {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.send-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: start;
}

.send-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(212, 168, 90, 0.44);
  border-radius: 50%;
  background: rgba(212, 168, 90, 0.14);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.send-steps strong,
.send-steps small {
  display: block;
  grid-column: 2;
}

.send-steps strong {
  color: var(--text);
  line-height: 1.25;
}

.send-steps small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.segment-card,
.metric-card,
.action-card,
.send-panel,
.copy-panel {
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.segment-card:hover,
.action-card:hover,
.send-panel:hover {
  border-color: rgba(212, 168, 90, 0.46);
  background-color: rgba(255, 255, 255, 0.035);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.send-panel h3 {
  margin: 0;
}

.send-alert {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 16px;
}

.send-alert.success {
  border-color: rgba(137, 212, 154, 0.45);
  color: #d8ffe0;
}

.send-alert.warning {
  border-color: rgba(212, 168, 90, 0.5);
  color: #ffe3aa;
}

.send-alert.error {
  border-color: rgba(240, 138, 120, 0.55);
  color: #ffd7cf;
}

.copy-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.copy-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 220px;
}

.copy-actions button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.subject-line {
  color: var(--muted);
}

.copy-block {
  white-space: pre-wrap;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink);
  color: var(--text);
  padding: 16px;
  font: 14px/1.55 Arial, Helvetica, sans-serif;
}

.status-list {
  color: var(--muted);
  padding-left: 20px;
}

.checklist {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.checklist span {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.checklist span.done {
  background: var(--success);
  border-color: var(--success);
}

form {
  display: grid;
  gap: 16px;
  max-width: 820px;
}

.public-form {
  max-width: 980px;
  gap: 22px;
}

.form-card {
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 90, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 45, 99, 0.78), rgba(7, 27, 63, 0.92)),
    radial-gradient(circle at 18% 0%, rgba(212, 168, 90, 0.14), transparent 34%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  padding: clamp(18px, 3vw, 26px);
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #efcf82, rgba(212, 168, 90, 0.14));
}

.form-section {
  padding-top: clamp(30px, 5vw, 58px);
}

.form-card h2,
.form-card legend {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
}

.form-card h2::after,
.form-card legend::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 12px;
  background: var(--gold);
  opacity: 0.78;
}

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

.span-2 {
  grid-column: 1 / -1;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 2px;
}

.form-actions .button,
.form-actions button {
  min-width: 190px;
}

.error-list {
  max-width: 980px;
  border: 1px solid rgba(240, 138, 120, 0.55);
  border-radius: 8px;
  background: rgba(240, 138, 120, 0.09);
  color: #ffd7cf;
  padding: 16px 18px;
}

.error-list ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.inline-form {
  display: inline;
}

.empty-panel {
  max-width: none;
}

.send-status-action {
  display: block;
  margin-top: 8px;
}

.send-status-action button {
  min-width: 72px;
}

.filter-bar {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  margin: 28px 0;
}

fieldset {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid rgba(212, 168, 90, 0.24);
  border-radius: 7px;
  background: rgba(3, 19, 51, 0.42);
  color: var(--text);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.checkbox-grid input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--gold);
}

.checkbox-grid input:checked {
  box-shadow: 0 0 0 4px rgba(212, 168, 90, 0.14);
}

.checkbox-grid label:has(input:checked) {
  border-color: rgba(212, 168, 90, 0.72);
  background: rgba(212, 168, 90, 0.11);
}

.checkbox-grid label:hover {
  border-color: rgba(212, 168, 90, 0.52);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(212, 168, 90, 0.32);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(4, 21, 53, 0.96), rgba(3, 19, 51, 0.86));
  color: var(--text);
  min-height: 46px;
  padding: 12px 13px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(124, 183, 255, 0.75);
  background: rgba(6, 24, 59, 0.96);
  box-shadow: 0 0 0 4px rgba(124, 183, 255, 0.1);
  transform: translateY(-1px);
}

textarea { min-height: 120px; }

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

.table-shell {
  overflow-x: auto;
}

.contacts-table {
  min-width: 1240px;
  table-layout: fixed;
}

.contacts-table th:nth-child(1),
.contacts-table td:nth-child(1) {
  width: 170px;
}

.contacts-table th:nth-child(2),
.contacts-table td:nth-child(2) {
  width: 120px;
}

.contacts-table th:nth-child(3),
.contacts-table td:nth-child(3) {
  width: 150px;
}

.contacts-table th:nth-child(4),
.contacts-table td:nth-child(4) {
  width: 124px;
}

.contacts-table th:nth-child(5),
.contacts-table td:nth-child(5) {
  width: 64px;
}

.contacts-table th:nth-child(6),
.contacts-table td:nth-child(6) {
  width: 140px;
}

.contacts-table th:nth-child(7),
.contacts-table td:nth-child(7) {
  width: 260px;
  overflow-wrap: anywhere;
}

.contacts-table th:nth-child(8),
.contacts-table td:nth-child(8) {
  width: 240px;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th { color: var(--gold); }
th:last-child,
td:last-child {
  width: 136px;
}
.notice { color: var(--muted); max-width: 760px; }
.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
}

.filter-summary strong {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--text);
  font-size: 13px;
}
.field-note {
  margin: -8px 0 2px;
  color: var(--muted);
  font-size: 14px;
  max-width: 760px;
  line-height: 1.55;
}

label .field-note {
  margin: 0;
  font-weight: 500;
}

.field-note strong {
  color: var(--text);
}
.error { color: var(--danger); }

@media (max-width: 720px) {
  .site-header,
  .site-footer { display: grid; }
  .site-header nav {
    max-width: 100%;
    gap: 12px 16px;
    align-items: flex-start;
  }
  .site-header nav a {
    line-height: 1.2;
  }
  .admin-hero,
  .section-heading,
  .audience-review-panel,
  .public-home-intro,
  .public-home-grid,
  .public-home-feature {
    display: grid;
    grid-template-columns: 1fr;
  }
  .public-home-path {
    grid-template-columns: 1fr;
  }
  .public-home-path a {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(7, 27, 63, 0.18);
  }
  .public-home-path a:last-child {
    border-bottom: 0;
  }
  .public-home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }
  .public-home-hero__content,
  .public-home-hero h1,
  .public-home-hero p {
    max-width: 100%;
  }
  .match-hero {
    min-height: 400px;
    padding-top: 42px;
    padding-bottom: 44px;
  }
  .match-hero-mark {
    display: none;
  }
  .match-hero-seal {
    width: min(44%, 180px);
  }
  .match-hero .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .match-hero .actions .button {
    width: 100%;
    padding-inline: 10px;
  }
  .match-action-strip {
    grid-template-columns: 1fr;
  }
  .match-action-strip a {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(7, 27, 63, 0.18);
  }
  .match-action-strip a:last-child {
    border-bottom: 0;
  }
  .public-home-mark {
    order: -1;
    justify-self: center;
    width: min(72vw, 280px);
    transform: translateY(-6px);
  }
  .public-home-mark--map {
    width: min(100%, 500px);
    aspect-ratio: 1699 / 926;
    transform: translateY(-6px);
  }
  .public-home-mark--map .public-home-seal {
    width: min(44%, 210px);
  }
  .public-home-hero .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .public-home-hero .actions .button {
    width: 100%;
  }
  .public-home-note {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }
  .public-home-contact {
    display: grid;
    gap: 20px;
    align-items: start;
  }
  .public-home-contact .button {
    width: 100%;
    max-width: 100%;
  }
  .audience-review-actions {
    justify-content: stretch;
  }
  .audience-review-actions .button,
  .audience-lane-card .button {
    width: 100%;
  }
  .form-grid,
  .checkbox-grid,
  .send-runway,
  .send-control-grid {
    grid-template-columns: 1fr;
  }
  .send-checklist-panel {
    position: static;
  }
  .form-actions .button,
  .form-actions button {
    width: 100%;
  }
  .copy-header { display: grid; }
  table { min-width: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes target-breathe {
  0%, 100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.025);
  }
}
