:root {
  --ink: #17211b;
  --muted: #5c6962;
  --line: #d9dfd8;
  --surface: #f8faf7;
  --panel: #ffffff;
  --green: #1f7a4f;
  --green-dark: #145336;
  --gold: #b97918;
  --blue: #245b8f;
  --shadow: 0 18px 50px rgba(23, 33, 27, 0.1);
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 22px 0 0;
  padding: 18px;
  color: #f4fbf6;
  background: #14231a;
  border-radius: 8px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(248, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--green-dark);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

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

.nav a {
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}

.nav a:hover,
.link-button:hover {
  color: var(--ink);
  background: #ecf1eb;
}

.link-button {
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(31, 122, 79, 0.11), transparent 42%),
    linear-gradient(300deg, rgba(36, 91, 143, 0.12), transparent 35%),
    var(--surface);
}

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

.hero-copy h1 {
  font-size: 5rem;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 6.7rem;
  line-height: 0.94;
}

h2 {
  font-size: 3.4rem;
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.lead {
  color: var(--green-dark);
  font-size: 2rem;
  font-weight: 760;
}

.hero-copy > p:not(.eyebrow):not(.lead) {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.1rem;
}

.kept-message {
  padding-left: 18px;
  border-left: 4px solid var(--gold);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--green-dark);
}

.button.primary:hover {
  background: var(--green);
}

.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.hero-panel,
.summary-card,
.form,
.steps article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: clamp(22px, 3vw, 34px);
}

.hero-panel h2 {
  font-size: 1.4rem;
}

.price {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 5rem;
  line-height: 1;
  font-weight: 860;
}

.hero-panel ul {
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.responsive-offer {
  display: none;
}

.section {
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.page-hero {
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(31, 122, 79, 0.11), transparent 42%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  padding-bottom: clamp(32px, 5vw, 56px);
}

.page-hero h1 {
  max-width: 920px;
  font-size: 5rem;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

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

.steps article {
  min-height: 220px;
  padding: 24px;
}

.steps span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 820;
}

.steps p,
.split > div > p,
.summary-card p,
.fine-print {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
}

label,
fieldset {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 760;
}

fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 6px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfcfb;
  border: 1px solid #cbd4cb;
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(31, 122, 79, 0.16);
}

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

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
}

.checkbox input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.fine-print {
  margin: 4px 0 0;
  font-size: 0.88rem;
  font-weight: 500;
}

.status {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 760;
}

.hidden {
  display: none !important;
}

.center-page {
  display: grid;
  min-height: calc(100vh - 75px);
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.login-card {
  width: min(100%, 520px);
}

.login-card h1 {
  font-size: 3.8rem;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1.3fr);
  gap: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.docs-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 40px);
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 10px;
}

.docs-nav h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.docs-nav a {
  color: var(--muted);
  font-weight: 760;
  text-decoration: none;
}

.docs-nav a:hover {
  color: var(--green-dark);
}

.docs-content {
  display: grid;
  min-width: 0;
  gap: 22px;
}

.docs-nav a,
.doc-block h2 {
  overflow-wrap: anywhere;
}

.doc-block {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doc-block h2 {
  font-size: 2.5rem;
}

.doc-block h3 {
  margin-top: 24px;
}

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

.option-table ul {
  padding-left: 20px;
  color: var(--muted);
}

.field-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(100px, 0.45fr) minmax(240px, 1.75fr);
  gap: 14px;
  padding: 12px 14px;
  background: #fbfcfb;
}

.field-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.field-head {
  color: white;
  background: var(--green-dark);
  font-weight: 820;
}

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

.stat-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 3rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-weight: 760;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 75px);
}

.admin-sidebar {
  position: sticky;
  top: 75px;
  align-self: start;
  min-height: calc(100vh - 75px);
  padding: 28px 20px;
  background: white;
  border-right: 1px solid var(--line);
}

.admin-sidebar h1 {
  margin-bottom: 28px;
  font-size: 2rem;
  line-height: 1;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 760;
  text-decoration: none;
}

.admin-menu-count {
  min-width: 24px;
  padding: 2px 7px;
  color: white;
  background: var(--green-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.admin-menu a:hover,
.admin-menu a.active {
  color: var(--green-dark);
  background: #eef5ee;
  border-color: #d4e3d4;
}

.admin-content {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
}

.admin-page-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.admin-page-heading h2 {
  margin-bottom: 10px;
  font-size: 2.25rem;
  line-height: 1.1;
}

.admin-page-heading p:not(.eyebrow) {
  color: var(--muted);
}

.compact-stats {
  margin-bottom: 18px;
}

.worker-health {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid #78827c;
  border-radius: 8px;
}

.worker-health-summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.worker-health-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: 7px;
  background: #78827c;
  border-radius: 50%;
}

.worker-health-eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 820;
  text-transform: uppercase;
}

.worker-health-summary strong {
  display: block;
  margin-top: 1px;
  font-size: 1.25rem;
}

.worker-health-summary p {
  margin: 2px 0 0;
  color: var(--muted);
}

.worker-health-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, auto));
  gap: 8px 20px;
}

.worker-health-details div {
  min-width: 0;
}

.worker-health-details dt {
  font-size: 0.75rem;
}

.worker-health-details dd {
  font-size: 0.88rem;
  font-weight: 720;
}

.worker-health-healthy,
.worker-health-working {
  border-left-color: var(--green);
}

.worker-health-healthy .worker-health-dot,
.worker-health-working .worker-health-dot {
  background: var(--green);
}

.worker-health-starting,
.worker-health-stopping {
  border-left-color: var(--blue);
}

.worker-health-starting .worker-health-dot,
.worker-health-stopping .worker-health-dot {
  background: var(--blue);
}

.worker-health-degraded {
  border-left-color: var(--gold);
}

.worker-health-degraded .worker-health-dot {
  background: var(--gold);
}

.worker-health-paused {
  border-left-color: var(--blue);
}

.worker-health-paused .worker-health-dot {
  background: var(--blue);
}

.worker-health-stale,
.worker-health-stopped,
.worker-health-unavailable {
  border-left-color: #a33d35;
}

.worker-health-stale .worker-health-dot,
.worker-health-stopped .worker-health-dot,
.worker-health-unavailable .worker-health-dot {
  background: #a33d35;
}

.outreach-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.outreach-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.outreach-tabs button span {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  color: var(--muted);
  background: #edf2ec;
  border-radius: 50%;
  font-size: 0.78rem;
}

.outreach-tabs button:hover {
  color: var(--ink);
  background: #f2f5f1;
}

.outreach-tabs button[aria-selected="true"] {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
}

.outreach-tabs button[aria-selected="true"] span {
  color: white;
  background: var(--green-dark);
}

.outreach-section-tabs {
  margin-bottom: 20px;
}

.outreach-section-tabs button {
  min-width: 120px;
  justify-content: center;
}

.outreach-controller-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.controller-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.controller-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.controller-panel-heading .eyebrow {
  margin-bottom: 5px;
}

.controller-panel-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.state-badge {
  padding: 5px 9px;
  color: #6b332d;
  background: #f8e9e7;
  border: 1px solid #ebc7c3;
  border-radius: 6px;
  font-size: 0.82rem;
}

.state-badge-running {
  color: var(--green-dark);
  background: #eaf4ec;
  border-color: #cde1d1;
}

.controller-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.controller-actions .button {
  min-width: 96px;
}

.button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.controller-status {
  margin: 0;
}

.worker-current-activity {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  background: #f2f6f1;
  border-left: 3px solid #6e8975;
}

.worker-current-activity-dot {
  width: 9px;
  height: 9px;
  background: #6e8975;
  border-radius: 50%;
}

.worker-current-activity[data-state="working"] {
  border-left-color: var(--green-dark);
}

.worker-current-activity[data-state="working"]
  .worker-current-activity-dot {
  background: #1c7a4d;
  box-shadow: 0 0 0 4px rgb(28 122 77 / 14%);
}

.worker-current-activity[data-state="degraded"],
.worker-current-activity[data-state="stale"] {
  border-left-color: #a94d43;
  background: #fbefed;
}

.worker-current-activity[data-state="degraded"]
  .worker-current-activity-dot,
.worker-current-activity[data-state="stale"] .worker-current-activity-dot {
  background: #a94d43;
}

.worker-current-activity div {
  min-width: 0;
}

.worker-current-activity div > span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  text-transform: uppercase;
}

.worker-current-activity strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.worker-current-activity time {
  color: var(--muted);
  font: 650 0.78rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  white-space: nowrap;
}

.worker-activity-console {
  min-width: 0;
  overflow: hidden;
  color: #e8f1e9;
  background: #14231a;
  border: 1px solid #243b2c;
  border-radius: 6px;
}

.worker-activity-console header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 12px;
  color: #c9d8cc;
  background: #1b2d22;
  border-bottom: 1px solid #304638;
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.worker-activity-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8ed6a5;
}

.worker-activity-live::before {
  width: 7px;
  height: 7px;
  background: #53bd78;
  border-radius: 50%;
  content: "";
}

.worker-activity-live.is-paused {
  color: #e3c76b;
}

.worker-activity-live.is-paused::before {
  background: #e3c76b;
}

.worker-activity-log {
  display: block;
  height: 238px;
  margin: 0;
  padding: 8px 0;
  overflow: auto;
  list-style: none;
  font: 500 0.78rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  scrollbar-color: #526c5a #14231a;
}

.worker-activity-log:focus-visible {
  outline: 2px solid #75d596;
  outline-offset: -2px;
}

.worker-activity-log li {
  display: grid;
  grid-template-columns: 86px 64px minmax(0, 1fr);
  gap: 8px;
  padding: 4px 12px;
}

.worker-activity-log li:hover {
  background: rgb(255 255 255 / 4%);
}

.worker-activity-log time {
  color: #81988a;
  white-space: nowrap;
}

.worker-activity-level {
  color: #9bb6a3;
  font-weight: 780;
  text-transform: uppercase;
}

.worker-activity-success .worker-activity-level {
  color: #75d596;
}

.worker-activity-warning .worker-activity-level {
  color: #e3c76b;
}

.worker-activity-error .worker-activity-level {
  color: #ef9287;
}

.worker-activity-empty {
  display: block !important;
  color: #90a497;
}

.number-input-row {
  display: grid;
  grid-template-columns: minmax(100px, 180px) auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 650;
}

.controller-config-group {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.controller-config-group legend {
  padding: 0 8px 0 0;
  color: var(--ink);
  font-weight: 780;
}

.controller-config-group textarea {
  min-height: 74px;
  resize: vertical;
  font: 500 0.84rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
}

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

.controller-config-grid.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.controller-advanced-settings {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.controller-advanced-settings summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 780;
}

.controller-advanced-settings[open] summary {
  margin-bottom: 14px;
}

.task-options {
  gap: 14px;
}

.task-options .checkbox span,
.task-options .checkbox strong {
  display: block;
}

.task-options .checkbox strong {
  color: var(--ink);
}

.outreach-workflow {
  gap: 0;
}

.workflow-master {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.discovery-pipeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 0 4px 34px;
  list-style: none;
}

.discovery-pipeline li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
}

.discovery-pipeline li:not(:last-child)::after {
  position: absolute;
  top: 40px;
  bottom: -4px;
  left: 13px;
  width: 1px;
  background: #c8d5ca;
  content: "";
}

.workflow-step-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: white;
  background: var(--green-dark);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 820;
}

.discovery-pipeline strong,
.discovery-pipeline small,
.workflow-delivery small {
  display: block;
}

.discovery-pipeline strong {
  margin-bottom: 3px;
  color: var(--ink);
}

.discovery-pipeline small,
.workflow-delivery small {
  margin-top: 6px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 760;
}

.workflow-delivery {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.workflow-delivery.is-unavailable {
  color: #777f79;
}

.workflow-delivery.is-unavailable small {
  color: #8b4b42;
}

.workflow-delivery input:disabled {
  cursor: not-allowed;
}

.controller-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.controller-details div {
  min-width: 0;
  padding: 14px 16px;
  background: white;
}

.controller-details dt,
.controller-details dd {
  overflow-wrap: anywhere;
}

.controller-details dd {
  margin-top: 4px;
  font-weight: 720;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.table-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.table-header span {
  color: var(--muted);
  font-weight: 760;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: white;
}

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

.admin-table th {
  color: var(--green-dark);
  background: #f1f6f1;
  font-size: 0.88rem;
  font-weight: 820;
}

.admin-table td {
  color: var(--ink);
  font-size: 0.92rem;
}

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

.admin-table code {
  word-break: break-all;
}

.summary-card {
  padding: 24px;
}

.review-panel + .review-panel {
  margin-top: 18px;
}

.review-panel .table-header > div p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.review-table {
  min-width: 840px;
}

.review-actions {
  display: flex;
  gap: 8px;
}

.review-actions .button {
  padding: 7px 11px;
  font-size: 0.84rem;
}

.review-reject {
  color: #8a2828;
  border-color: #d7aaaa;
}

.review-queue-status {
  min-height: 1.4em;
  margin: -8px 0 12px;
  color: var(--green-dark);
  font-weight: 700;
}

.review-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: #f7faf7;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.review-decision {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.review-decision.approved {
  color: #175c36;
  background: #dff2e6;
}

.review-decision.rejected {
  color: #842323;
  background: #f8e0e0;
}

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

.analytics-toolbar > div {
  display: grid;
  gap: 2px;
}

.analytics-toolbar > div span,
.analytics-status,
.analytics-card small {
  color: var(--muted);
}

.analytics-toolbar label {
  width: min(100%, 180px);
}

.analytics-toolbar select {
  min-height: 38px;
  padding: 7px 10px;
}

.analytics-status {
  min-height: 1.4em;
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

#analyticsStats .stat-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

#analyticsStats .stat-card strong {
  font-size: clamp(2rem, 3vw, 3rem);
  overflow-wrap: anywhere;
}

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

.analytics-wide {
  grid-column: 1 / -1;
}

.analytics-card {
  min-width: 0;
}

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

.analytics-heading .eyebrow {
  margin-bottom: 4px;
}

.analytics-heading h3 {
  margin: 0;
  font-size: 1.3rem;
}

.analytics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.analytics-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.analytics-legend .registration,
.analytics-day-bars .registration {
  background: var(--green);
}

.analytics-legend .need,
.analytics-day-bars .need {
  background: var(--blue);
}

.analytics-chart-scroll {
  padding-top: 8px;
  overflow-x: auto;
}

.analytics-chart {
  height: 250px;
  padding: 0 6px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to bottom, transparent 24%, #edf1ed 25%, transparent 26%),
    linear-gradient(to bottom, transparent 49%, #edf1ed 50%, transparent 51%),
    linear-gradient(to bottom, transparent 74%, #edf1ed 75%, transparent 76%);
}

.analytics-bars {
  display: grid;
  gap: 3px;
  height: 100%;
}

.analytics-day {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 28px;
  min-width: 0;
}

.analytics-day-bars {
  display: flex;
  gap: 2px;
  align-items: end;
  justify-content: center;
  min-height: 0;
}

.analytics-day-bars i {
  width: min(7px, 45%);
  min-height: 0;
  border-radius: 3px 3px 0 0;
}

.analytics-day > span {
  align-self: end;
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.analytics-period-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.analytics-period-summary strong {
  color: var(--ink);
}

.analytics-funnel,
.analytics-urgencies {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analytics-funnel li > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.analytics-funnel li > i,
.analytics-share i,
.analytics-type-grid i {
  display: block;
  height: 8px;
  overflow: hidden;
  background: #e5ebe5;
  border-radius: 999px;
}

.analytics-funnel li > i b,
.analytics-share i b,
.analytics-type-grid i b {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.analytics-funnel small {
  display: block;
  margin-top: 5px;
}

.analytics-rate-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.analytics-rate-summary span {
  padding: 12px;
  color: var(--muted);
  background: #f3f7f3;
  border-radius: 7px;
  font-size: 0.82rem;
}

.analytics-rate-summary strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.35rem;
}

.analytics-urgencies li {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  gap: 2px 14px;
  align-items: center;
}

.analytics-urgencies li small {
  grid-column: 1 / -1;
}

.analytics-urgency {
  display: inline-flex;
  width: max-content;
  padding: 4px 9px;
  color: #425248;
  background: #e8eee9;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.analytics-urgency.critical,
.analytics-urgency.high {
  color: #842323;
  background: #f8e0e0;
}

.analytics-urgency.medium {
  color: #73500e;
  background: #f7ebd0;
}

.analytics-table {
  min-width: 720px;
}

.analytics-share {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 52px;
  gap: 10px;
  align-items: center;
}

.analytics-share span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.analytics-type-grid > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  padding: 14px;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.analytics-type-grid > div span {
  overflow-wrap: anywhere;
  font-weight: 760;
}

.analytics-type-grid i,
.analytics-type-grid small {
  grid-column: 1 / -1;
}

.analytics-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: #f7faf7;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.announcement-layout {
  display: grid;
  gap: 18px;
}

.announcement-composer .table-header > div p,
.announcement-history-panel .table-header > div p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.announcement-form {
  display: grid;
  gap: 16px;
}

.announcement-optional {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.announcement-targeting-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
}

.announcement-targeting-heading p,
.announcement-targeting-heading > span {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.announcement-targeting-heading > span {
  max-width: 260px;
  text-align: right;
}

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

.announcement-targeting fieldset {
  min-width: 0;
  background: #f9fbf9;
}

.announcement-target-options {
  display: grid;
  gap: 8px;
  max-height: 190px;
  padding-right: 4px;
  overflow-y: auto;
}

.announcement-target-options .checkbox span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.announcement-target-options .checkbox small {
  flex: 0 0 auto;
  color: var(--muted);
}

.announcement-empty-facet {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.announcement-composer-actions,
.announcement-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.announcement-status {
  min-height: 1.4em;
  margin: -4px 0 0;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.announcement-preview {
  padding: 16px;
  background: #eef5ee;
  border: 1px solid #cedfce;
  border-radius: 8px;
}

.announcement-preview > div {
  display: grid;
  gap: 3px;
}

.announcement-preview > div span,
.announcement-preview li span,
.announcement-preview > small {
  color: var(--muted);
  font-size: 0.84rem;
}

.announcement-preview ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #cedfce;
  list-style: none;
}

.announcement-preview li {
  display: grid;
}

.announcement-preview > p {
  margin: 12px 0 0;
}

.announcement-table {
  min-width: 980px;
}

.announcement-table td:first-child {
  min-width: 270px;
  max-width: 420px;
}

.announcement-table td:first-child p {
  display: -webkit-box;
  margin: 5px 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.announcement-table td:first-child a {
  display: block;
  max-width: 320px;
  overflow: hidden;
  color: var(--green-dark);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-table td > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.announcement-table-actions .button {
  padding: 7px 11px;
  font-size: 0.84rem;
}

.announcement-state {
  display: inline-block;
  padding: 3px 8px;
  color: #614f1c;
  background: #f5edcf;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.announcement-state.published,
.announcement-state.delivered {
  color: #175c36;
  background: #dff2e6;
}

.announcement-state.read {
  color: #264f77;
  background: #deebf6;
}

.announcement-delivery-audit {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.announcement-delivery-audit .table-header {
  align-items: center;
}

.announcement-audit-table {
  min-width: 900px;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 9px 16px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-weight: 760;
}

dd {
  margin: 0;
}

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

.request-item {
  padding: 14px;
  background: #f4f7f3;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.request-item p {
  margin-bottom: 6px;
}

.request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.request-meta span {
  padding: 4px 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #eef3ed;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.payment-return-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--surface);
}

.payment-return {
  width: min(100%, 640px);
}

.payment-return .brand-lockup {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 48px;
  color: var(--ink);
  font-size: 1.1rem;
  text-decoration: none;
}

.payment-return h1 {
  margin-bottom: 16px;
  font-size: 3rem;
  letter-spacing: 0;
}

.payment-return p {
  max-width: 58ch;
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.65;
}

.payment-return .primary-link {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 900px) {
  h1 {
    font-size: 4.5rem;
  }

  .hero-copy h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .page-hero h1 {
    font-size: 4rem;
  }

  .price {
    font-size: 4rem;
  }

  .login-card h1 {
    font-size: 3.2rem;
  }

  .doc-block h2 {
    font-size: 2.1rem;
  }

  .stat-card strong {
    font-size: 2.5rem;
  }

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

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .dashboard,
  .dashboard-grid,
  .docs-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

  .responsive-offer {
    display: block;
    padding: 36px clamp(18px, 5vw, 72px);
    color: white;
    background: var(--green-dark);
  }

  .responsive-offer .eyebrow,
  .responsive-offer .price {
    color: white;
  }

  .responsive-offer .price {
    margin-bottom: 16px;
  }

  .responsive-offer p:last-child {
    max-width: 62ch;
    margin-bottom: 0;
  }

  .docs-nav {
    position: static;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .hero {
    min-height: auto;
  }

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

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

  .worker-health {
    grid-template-columns: 1fr;
  }

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

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

  .controller-config-grid,
  .controller-config-grid.three-column {
    grid-template-columns: 1fr;
  }

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

  .announcement-targeting {
    grid-template-columns: 1fr;
  }

  .analytics-wide {
    grid-column: auto;
  }

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

  .option-table {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  h1,
  .page-hero h1 {
    font-size: 3rem;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .worker-current-activity {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .worker-current-activity time {
    grid-column: 2;
  }

  .worker-activity-log li {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0 10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .worker-activity-log li > span:last-child {
    grid-column: 1 / -1;
  }

  h2 {
    font-size: 2.25rem;
  }

  .lead {
    font-size: 1.5rem;
  }

  .price {
    font-size: 3.5rem;
  }

  .login-card h1 {
    font-size: 2.6rem;
  }

  .doc-block h2 {
    font-size: 1.8rem;
  }

  .stat-card strong {
    font-size: 2.2rem;
  }

  .payment-return h1 {
    font-size: 2.25rem;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .topbar,
  .section,
  .hero,
  .footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .nav a {
    padding: 7px 8px;
    font-size: 0.92rem;
  }

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

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

  .worker-health-details {
    grid-template-columns: 1fr;
  }

  .controller-details {
    grid-template-columns: 1fr;
  }

  .controller-actions .button {
    flex: 1 1 120px;
  }

  .admin-page-heading h2 {
    font-size: 2rem;
  }

  .analytics-toolbar,
  .analytics-heading,
  .announcement-targeting-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .announcement-targeting-heading > span {
    max-width: none;
    text-align: left;
  }

  .analytics-type-grid,
  .analytics-rate-summary,
  .announcement-preview ul {
    grid-template-columns: 1fr;
  }
}
