:root {
  --bg: #f4f7fa;
  --surface: #ffffff;
  --surface-alt: #ebf0f5;
  --ink: #081a2f;
  --muted: #5f7287;
  --line: #d7dfe7;
  --brand: #ef4242;
  --brand-deep: #bf2e2e;
  --navy: #0b1f35;
  --navy-soft: #17314f;
  --green: #2f9e68;
  --amber: #d18b1f;
  --shadow: 0 18px 60px rgba(8, 26, 47, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Raleway", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 66, 66, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(11, 31, 53, 0.08), transparent 30%),
    var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(244, 247, 250, 0.88);
  border-bottom: 1px solid rgba(215, 223, 231, 0.85);
}

.topbar-inner,
.section,
.footer-inner,
.app-shell,
.apply-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  max-width: 100%;
}

.topbar .brand-logo.header-logo {
  max-height: 40px;
  width: auto;
}

.login-page .brand-logo.login-logo {
  max-width: 160px;
  height: auto;
}

.light-page-logo {
  display: block;
  width: min(220px, 100%);
  height: auto;
}

.landing-page .brand-logo.landing-logo {
  max-width: 240px;
  height: auto;
  margin: 0 auto 18px;
}

.admin-nav .brand-logo.admin-logo,
.admin-nav .brand > img.brand-logo.admin-logo {
  max-height: 48px;
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.admin-nav .brand {
  display: block;
  width: 100%;
}

.topnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-link,
.chip,
.pill {
  border-radius: 999px;
}

.nav-link {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: rgba(11, 31, 53, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 700;
  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease,
    border-color 120ms ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.btn-small {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.btn-google {
  width: 100%;
  justify-content: center;
  gap: 12px;
  color: #3c4043;
  background: white;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #dadce0;
}

.btn-outline-light {
  color: #bfc8d1;
  background: transparent;
  border: 1px solid rgba(191, 200, 209, 0.55);
}

.btn-outline-light:hover {
  background: rgba(191, 200, 209, 0.08);
}

.btn-text-light {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  justify-content: flex-start;
  font-weight: 500;
}

.btn-text-light:hover {
  color: #fff;
  transform: none;
}

.btn-danger-outline {
  color: var(--brand);
  background: white;
  border: 1px solid var(--brand);
}

.btn-danger-outline:hover {
  background: rgba(239, 66, 66, 0.06);
  color: var(--brand-deep);
}

.btn-outline-danger {
  color: var(--brand);
  background: white;
  border: 1px solid var(--brand);
}

.btn-outline-danger:hover {
  background: rgba(239, 66, 66, 0.06);
  color: var(--brand-deep);
}

.builder-surface .btn,
.communications-surface .btn,
.settings-surface .btn,
.staff-page-actions .btn {
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 4px;
  font-weight: 500;
  min-height: 32px;
}

.builder-surface .btn.btn-primary,
.communications-surface .btn.btn-primary,
.settings-surface .btn.btn-primary,
.staff-page-actions .btn.btn-primary {
  background: #ef4242;
  color: #fff;
}

.builder-surface .btn.btn-secondary,
.communications-surface .btn.btn-secondary,
.settings-surface .btn.btn-secondary,
.staff-page-actions .btn.btn-secondary {
  background: #fff;
  color: #12344e;
  border: 1px solid #12344e;
}

.builder-surface .btn.btn-outline-danger,
.communications-surface .btn.btn-outline-danger,
.settings-surface .btn.btn-outline-danger {
  background: #fff;
  color: #ef4242;
  border: 1px solid #ef4242;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px dashed rgba(11, 31, 53, 0.18);
}

.hero {
  padding: 72px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(239, 66, 66, 0.1);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.hero-copy,
.hero-panel,
.card,
.stat,
.admin-layout,
.panel,
.sidebar,
.table-card,
.status-band,
.page-header {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(215, 223, 231, 0.9);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.card,
.panel,
.sidebar,
.table-card,
.page-header {
  border-radius: var(--radius);
}

.hero-copy {
  padding: 34px;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.6rem, 4vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy p,
.lede {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.03rem;
}

.landing-page {
  min-height: calc(100vh - 92px);
  background: #021e2f;
  color: #bfc8d1;
}

.landing-page .topbar {
  background: rgba(2, 30, 47, 0.88);
  border-bottom: 1px solid rgba(191, 200, 209, 0.15);
}

.landing-page .brand,
.landing-page .nav-link,
.landing-page .hero-copy h1,
.landing-page .hero-copy p,
.landing-page .lede,
.landing-page .footer-inner {
  color: #bfc8d1;
}

.landing-page .nav-link:hover,
.landing-page .nav-link.active {
  background: rgba(191, 200, 209, 0.08);
  color: #bfc8d1;
}

.landing-page .hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 0;
}

.landing-page .hero-grid {
  grid-template-columns: 1fr;
  max-width: 780px;
  margin: 0 auto;
}

.landing-page .hero-copy {
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  padding: 48px 24px;
}

.landing-page .hero-actions {
  justify-content: center;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.login-auth-stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.login-alert-slot:not(:empty) {
  margin-top: 8px;
}

.login-form-fields {
  margin-top: 20px;
}

.login-page .chip {
  justify-self: start;
  width: fit-content;
}

.hero-actions,
.inline-actions,
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stat {
  padding: 18px;
  border-radius: 16px;
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, var(--navy), #102945);
  color: white;
  padding: 20px 22px;
}

.panel-head p,
.panel-head small {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.pill {
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
}

.panel-body {
  padding: 20px;
}

.stack {
  display: grid;
  gap: 14px;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.mini-card strong,
.row strong {
  display: block;
  margin-bottom: 4px;
}

.mini-card span,
.row span,
.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 34px 0;
}

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

.section-head h2,
.page-title {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.6rem);
  letter-spacing: -0.04em;
}

.grid-3,
.grid-4,
.metrics-grid,
.form-grid,
.summary-grid {
  display: grid;
  gap: 16px;
}

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

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

.card,
.panel,
.page-header,
.table-card {
  padding: 22px;
}

.card h3,
.panel h3,
.table-card h3 {
  margin: 0 0 8px;
}

.card p,
.panel p,
.table-card p,
.muted {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding: 16px 16px 16px 22px;
  border-left: 3px solid rgba(239, 66, 66, 0.35);
  background: rgba(235, 240, 245, 0.72);
  border-radius: 0 14px 14px 0;
}

.status-band {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  margin-top: 18px;
}

.status-band .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
}

.status-band.approved .dot {
  background: var(--green);
}

.quote {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(11, 31, 53, 0.08);
  background: linear-gradient(180deg, #fff, #f9fbfd);
}

.quote strong {
  display: block;
  margin-top: 10px;
}

.footer {
  margin-top: 40px;
  padding: 34px 0 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  border-top: 1px solid rgba(95, 114, 135, 0.18);
  padding-top: 20px;
}

.hidden {
  display: none !important;
}

.apply-shell,
.app-shell {
  padding: 34px 0 80px;
}

.admin-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.intake-shell {
  min-height: 100vh;
  background: #f3f5f8;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.intake-header {
  background: #021e2f;
  color: white;
  padding: 22px 24px 18px;
}

.intake-header-inner {
  width: min(100%, 1160px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 16px;
}

.intake-header-copy {
  display: grid;
  gap: 6px;
  text-align: center;
}

.intake-header-copy h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  color: white;
}

.intake-header-copy p {
  margin: 0;
  color: rgba(191, 200, 209, 0.92);
}

.intake-header-spacer {
  min-height: 1px;
}

.intake-header-actions {
  display: flex;
  justify-content: flex-end;
}

.intake-main {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 24px 24px 56px;
  display: grid;
  gap: 22px;
}

.intake-progress {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}

.intake-progress-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.intake-progress-circle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #cfd7e1;
  background: white;
  color: #8ea0b4;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.intake-progress-item span {
  color: #7f93a8;
  font-size: 0.74rem;
  font-weight: 600;
}

.intake-progress-item.active .intake-progress-circle {
  background: #ef4242;
  border-color: #ef4242;
  color: white;
}

.intake-progress-item.active span {
  color: #ef4242;
}

.intake-progress-item.complete .intake-progress-circle {
  background: #021e2f;
  border-color: #021e2f;
  color: white;
}

.intake-progress-line {
  position: absolute;
  top: 13px;
  left: calc(50% + 14px);
  width: calc(100% - 28px);
  height: 1px;
  background: #d5dce5;
  z-index: 1;
}

.intake-progress-item.complete .intake-progress-line {
  background: #021e2f;
}

.intake-card {
  width: min(100%, 760px);
  margin: 0 auto;
  background: white;
  border: 1px solid rgba(219, 227, 236, 0.95);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(11, 31, 53, 0.05);
  padding: 22px;
}

.intake-card-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.intake-card-head h2 {
  margin: 0;
}

.intake-card-head p {
  margin: 0;
  color: #7f93a8;
}

.intake-fields {
  display: grid;
  gap: 14px;
}

.intake-actions {
  width: min(100%, 760px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.intake-footer {
  padding: 20px 24px 28px;
  text-align: center;
  color: #7f93a8;
  font-size: 0.9rem;
}

.intake-confirmation-shell {
  min-height: 100vh;
}

.intake-stop-shell .intake-main {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.intake-confirmation-shell .intake-main {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.intake-confirmation-card {
  width: min(100%, 480px);
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 12px 30px rgba(11, 31, 53, 0.08);
}

.intake-stop-card {
  width: min(100%, 640px);
}

.intake-stop-card .intake-card-head {
  justify-items: start;
  gap: 14px;
}

.intake-stop-card .intake-card-head h2,
.intake-stop-card .intake-card-head p {
  text-align: left;
  max-width: none;
}

.intake-confirmation-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fdeaea;
  color: #ef4242;
  font-size: 22px;
  font-weight: 700;
}

.intake-confirmation-card .intake-card-head {
  margin-bottom: 0;
  justify-items: center;
}

.intake-confirmation-card .intake-card-head h2 {
  color: #021e2f;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.intake-confirmation-card .intake-card-head p {
  max-width: 400px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.intake-confirmation-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.intake-confirmation-button {
  min-width: 220px;
  max-width: 220px;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
}

.required-mark {
  color: #ef4242;
}

.page-header {
  margin-bottom: 22px;
  display: grid;
  gap: 14px;
}

.page-header .light-page-logo {
  width: clamp(180px, 22vw, 220px);
}

.admin-main-brand {
  margin-bottom: 20px;
}

.admin-main-brand .light-page-logo {
  width: clamp(180px, 20vw, 210px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(11, 31, 53, 0.06);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.apply-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}

.sidebar {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 98px;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
  margin: 14px 0 18px;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #ff8a8a);
}

.step-list {
  display: grid;
  gap: 10px;
}

.step-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 10px 0;
  color: var(--muted);
}

.step-item.active {
  color: var(--ink);
}

.step-num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  background: rgba(11, 31, 53, 0.08);
}

.step-item.active .step-num {
  background: var(--brand);
  color: white;
}

.panel {
  padding: 24px;
}

.hidden-panel[hidden] {
  display: none;
}

.fields {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field-header-text,
.belief-card-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

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

.field-body-box {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(219, 227, 236, 0.95);
  border-radius: 14px;
  background: #f4f6f8;
  color: #526579;
  overflow: hidden;
}

.upload-field .field-body-box {
  margin-bottom: 12px;
}

.field-body-box p {
  margin: 0;
  line-height: 1.7;
  font-size: 13px;
  color: #6b7280;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.video-prompt-box {
  margin-top: 8px;
  border-color: rgba(239, 66, 66, 0.22);
  background: #fff6f6;
}

.video-prompt-box p {
  color: #8f1f1f;
}

.video-prompt-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #1e293b;
}

.video-prompt-list li {
  line-height: 1.65;
}

#applications-list-alert + .table-card {
  margin-top: 16px;
}

.belief-card {
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(219, 227, 236, 0.95);
  border-radius: 18px;
  background: #fff;
}

.belief-card-question {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
}

.assessment-link-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 16px;
  border: 1px solid #ef4242;
  border-radius: 4px;
  background: #fff;
  color: #ef4242;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.assessment-link-button:hover {
  background: rgba(239, 66, 66, 0.06);
}

.builder-surface,
.communications-surface,
.settings-surface {
  display: grid;
  gap: 18px;
}

.settings-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 14px;
  border: 1px solid #12344e;
  border-radius: 4px;
  background: #fff;
  color: #12344e;
  font-size: 13px;
  font-weight: 500;
}

.settings-tab.active {
  background: #12344e;
  color: #fff;
}

.builder-title {
  margin: 0;
  font-size: 1.05rem;
}

.builder-step-stack,
.builder-field-stack {
  display: grid;
  gap: 14px;
}

.builder-inline-card,
.builder-inline-editor {
  display: grid;
  gap: 14px;
}

.builder-step-row {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(219, 227, 236, 0.95);
  border-radius: 16px;
  background: #fff;
}

.builder-step-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.builder-step-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
}

.builder-step-meta,
.builder-step-copy,
.builder-step-content {
  display: grid;
  gap: 6px;
}

.builder-step-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.builder-step-edit-icon {
  border: 0;
  background: transparent;
  color: #12344e;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.builder-step-title-input {
  width: min(100%, 320px);
  padding: 8px 10px;
  border-radius: 10px;
}

.builder-step-meta {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.builder-step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #edf2f7;
  color: #12344e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.builder-step-copy span,
.builder-step-arrow,
.builder-required-badge,
.builder-field-meta .small {
  color: #7f93a8;
  font-size: 0.84rem;
}

.builder-step-actions,
.builder-field-actions,
.builder-inline-actions,
.builder-step-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.builder-step-actions,
.builder-field-actions {
  align-items: center;
}

.builder-field-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(228, 234, 241, 0.95);
}

.builder-field-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.builder-field-summary,
.builder-field-meta {
  display: grid;
  gap: 6px;
}

.builder-field-meta {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
}

.builder-type-badge,
.builder-required-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4f7fa;
  color: #12344e;
  font-size: 0.77rem;
  font-weight: 600;
}

.builder-save-bar {
  position: sticky;
  bottom: 14px;
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 0;
}

label {
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--ink);
}

textarea {
  min-height: 136px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(239, 66, 66, 0.18);
  border-color: rgba(239, 66, 66, 0.55);
}

.helper {
  color: var(--muted);
  font-size: 0.84rem;
}

.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.alert.error {
  background: #fff1f1;
  color: #8d2f2f;
  border: 1px solid #f1caca;
}

.alert.success {
  background: #edf9f3;
  color: #276d4a;
  border: 1px solid #bfe7cf;
}

.choices {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-shell .summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

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

.page-header-copy {
  display: grid;
  gap: 14px;
}

.summary-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(235, 240, 245, 0.8);
  border: 1px solid rgba(215, 223, 231, 0.9);
}

.summary-item strong {
  display: block;
  margin-bottom: 6px;
}

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

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

.admin-layout {
  display: block;
  gap: 0;
  overflow: visible;
  border-radius: 24px;
}

.admin-mobile-bar,
.admin-mobile-backdrop,
.admin-mobile-close {
  display: none;
}

.admin-nav {
  background: linear-gradient(180deg, var(--navy), #112845);
  color: rgba(255, 255, 255, 0.8);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 228px;
  height: 100vh;
  overflow-y: auto;
  min-height: 100vh;
}

.admin-sidebar-header {
  display: grid;
  gap: 10px;
  padding: 18px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-logo {
  max-height: 40px;
  width: auto;
  display: block;
}

.admin-sidebar-brand-copy {
  display: grid;
  gap: 3px;
}

.admin-sidebar-brand-copy strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
}

.admin-sidebar-brand-copy span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
}

.admin-nav-links {
  display: grid;
  gap: 6px;
  padding: 8px 12px 20px;
  margin: 0;
  align-content: start;
}

.admin-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: inherit;
  font-weight: 500;
  font-size: 13px;
  position: relative;
}

.admin-link.active,
.admin-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.admin-link.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: var(--brand);
}

.admin-link-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
}

.admin-link-icon svg {
  width: 16px;
  height: 16px;
}

.admin-main {
  padding: 20px 20px 24px 16px;
  background: #f7f9fc;
  margin-left: 228px;
  min-height: 100vh;
  font-size: 13px;
  min-width: 0;
}

.admin-nav-footer {
  margin-top: auto;
  padding: 16px 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user-card {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}

.admin-user-card strong {
  color: #fff;
  font-size: 0.88rem;
}

.admin-user-card span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
}

.nav-logout {
  width: auto;
  font-size: 13px;
  opacity: 0.82;
}

.metrics-grid .card {
  padding: 18px;
}

.dashboard-page {
  background: #fff;
  border-radius: 22px;
}

.admin-main .page-title,
.admin-main .section-head h2,
.admin-main h1 {
  font-size: 22px;
  line-height: 1.2;
}

.admin-main .panel h3,
.admin-main .table-card h3,
.admin-main .section-card h3,
.admin-main .dashboard-panel-head h3 {
  font-size: 15px;
  line-height: 1.3;
}

.admin-main p,
.admin-main label,
.admin-main input,
.admin-main select,
.admin-main textarea,
.admin-main td,
.admin-main .detail-row span,
.admin-main .detail-row strong,
.admin-main .side-empty,
.admin-main .side-detail-line strong,
.admin-main .side-detail-line span {
  font-size: 13px;
}

.admin-main .lede,
.admin-main .small,
.admin-main .helper-text,
.admin-main .section-block-head p,
.admin-main .side-detail-line span,
.admin-main .admin-subtitle {
  font-size: 12px;
}

.dashboard-surface {
  display: grid;
  gap: 22px;
  max-width: 100%;
  background: #fff;
}

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

.dashboard-metric-card,
.dashboard-panel {
  background: #fff;
  border: 1px solid rgba(215, 223, 231, 0.95);
  border-radius: 18px;
  box-shadow: none;
}

.dashboard-metric-card {
  padding: 16px 18px;
  display: grid;
  gap: 14px;
}

.dashboard-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7b8ea4;
  font-size: 0.82rem;
  font-weight: 600;
}

.dashboard-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.dashboard-metric-icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-metric-card.total .dashboard-metric-icon {
  color: #495f78;
  background: #eef3f8;
}

.dashboard-metric-card.new .dashboard-metric-icon {
  color: #4d72d8;
  background: #edf2ff;
}

.dashboard-metric-card.review .dashboard-metric-icon {
  color: #c48a1b;
  background: #fff5df;
}

.dashboard-metric-card.approved .dashboard-metric-icon {
  color: #3b935c;
  background: #eaf8f0;
}

.dashboard-metric-card.danger .dashboard-metric-icon {
  color: #c53a3a;
  background: #fff1f1;
}

.dashboard-metric-card strong {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
}

.dashboard-panel {
  padding: 22px;
}

.dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-panel-head h3 {
  margin: 0;
  font-size: 1rem;
}

.dashboard-inline-link {
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 600;
}

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

.status-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(228, 234, 241, 0.95);
  border-left-width: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: transparent;
  border: 0;
}

.status-breakdown-row strong {
  color: #021e2f;
}

.status-breakdown-row.status-new {
  border-left-color: #3b82f6;
}

.status-breakdown-row.status-in-review {
  border-left-color: #f59e0b;
}

.status-breakdown-row.status-interview-1 {
  border-left-color: #f97316;
}

.status-breakdown-row.status-interview-2 {
  border-left-color: #8b5cf6;
}

.status-breakdown-row.status-approved {
  border-left-color: #10b981;
}

.status-breakdown-row.status-denied {
  border-left-color: #ef4242;
}

.status-breakdown-row.status-on-hold {
  border-left-color: #6b7280;
}

.status-breakdown-row.status-onboarding-complete {
  border-left-color: #14b8a6;
}

.status-breakdown-row.status-straight-to-the-board {
  border-left-color: #12344e;
}

.status-pill.status-new {
  color: #3b82f6;
}

.status-pill.status-in-review {
  color: #f59e0b;
}

.status-pill.status-interview-1 {
  color: #f97316;
}

.status-pill.status-interview-2 {
  color: #8b5cf6;
}

.status-pill.status-approved {
  color: #10b981;
}

.status-pill.status-denied {
  color: #ef4242;
}

.status-pill.status-on-hold {
  color: #6b7280;
}

.status-pill.status-onboarding-complete {
  color: #14b8a6;
}

.status-pill.status-straight-to-the-board {
  color: #12344e;
}

.status-pill.hold {
  background: #f2eefc;
  color: #7159bb;
}

.dashboard-application-list {
  display: grid;
}

.dashboard-application-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6px;
  border-top: 1px solid rgba(228, 234, 241, 0.95);
}

.dashboard-application-row:first-child {
  border-top: 0;
  padding-top: 4px;
}

.dashboard-application-row strong {
  display: block;
  color: var(--ink);
}

.dashboard-application-row span {
  color: #7f94a9;
}

.dashboard-sla-copy {
  font-size: 0.8rem;
  font-weight: 600;
}

.dashboard-sla-copy.sla-on-track,
.badge.sla-on-track {
  color: #1f6f46;
}

.dashboard-sla-copy.sla-due-soon,
.badge.sla-due-soon {
  color: #9b6709;
}

.dashboard-sla-copy.sla-overdue,
.badge.sla-overdue {
  color: #b13838;
}

.dashboard-sla-copy.sla-complete,
.badge.sla-complete {
  color: #275b8c;
}

.dashboard-sla-copy.sla-unknown,
.badge.sla-unknown {
  color: #66778a;
}

.badge.sla-on-track {
  background: #e9f7ef;
}

.badge.sla-due-soon {
  background: #fff4df;
}

.badge.sla-overdue {
  background: #fff1f1;
}

.badge.sla-complete {
  background: #edf4fb;
}

.badge.sla-unknown {
  background: #edf1f5;
}

.applications-filter-row {
  margin-bottom: 16px;
}

.applications-filter-field {
  max-width: 240px;
}

.applications-filter-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4f6277;
}

.table-card {
  overflow: hidden;
}

.table-wrap {
  overflow: auto;
}

.table-row-active {
  background: rgba(239, 66, 66, 0.06);
}

tbody tr[data-action="select-application"] {
  cursor: pointer;
}

tbody tr[data-action="select-application"]:hover {
  background: rgba(11, 31, 53, 0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(215, 223, 231, 0.85);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.badge.new {
  background: #ecf3ff;
  color: #2351a6;
}

.badge.review {
  background: #fff4df;
  color: #9b6709;
}

.badge.approved {
  background: #eaf8f0;
  color: #25734d;
}

.badge.denied {
  background: #fff1f1;
  color: #a12d2d;
}

.badge.inactive {
  background: #edf1f5;
  color: #66778a;
}

.badge.hold {
  background: #f0eefc;
  color: #5d4f9e;
}

.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-form select {
  width: auto;
  min-width: 150px;
}

.empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
}

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

.row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbfc);
}

.detail-panel {
  margin-top: 0;
}

.detail-main,
.detail-side,
.stack-panel {
  display: grid;
  gap: 22px;
}

.application-focus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.application-detail-main {
  display: grid;
  gap: 16px;
}

.application-detail-meta {
  display: grid;
  align-content: start;
  gap: 16px;
}

.application-detail-meta .side-panel {
  display: grid;
  gap: 12px;
}

.side-panel h3,
.panel-subsection h4 {
  margin: 0 0 8px;
}

.workspace-layout {
  align-items: start;
}

.aligned-side .side-panel {
  min-width: 0;
}

.detail-page-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.application-detail-page {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.detail-save-indicator {
  min-height: 18px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.detail-save-indicator.is-visible {
  opacity: 1;
}

.detail-save-indicator.is-saving {
  color: #6b7280;
}

.detail-save-indicator.is-saved {
  color: #2e8b57;
}

.detail-save-indicator.is-error {
  color: #ef4242;
}

.detail-page-copy {
  display: grid;
  gap: 8px;
  justify-items: start;
  text-align: left;
}

.detail-page-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.application-detail-page .page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.detail-back-link {
  width: fit-content;
  color: #5b7591;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.detail-back-link:hover {
  color: var(--navy);
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7388a0;
  margin: 0;
  font-size: 14px;
}

.detail-meta-line span {
  color: #9db0c0;
}

.section-card {
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.section-card.interview-section {
  padding: 16px;
}

.section-block-head {
  margin-bottom: 16px;
}

.section-block-head h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.application-detail-page .section-block-head p,
.application-detail-page .side-empty,
.application-detail-page .small {
  font-size: 13px;
}

.response-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.response-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--ink);
}

.detail-row-list {
  display: grid;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(229, 234, 240, 0.9);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row span {
  color: #6f87a3;
  font-size: 14px;
}

.detail-row strong {
  text-align: right;
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
}

.upload-detail-list .detail-row span {
  color: #6f87a3;
}

.upload-inline-link {
  color: var(--brand);
  font-weight: 500;
  font-size: 0.92rem;
}

.detail-meta-card {
  padding: 18px 20px;
}

.detail-meta-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.detail-meta-rows .detail-row {
  padding: 10px 0;
}

.side-card-stack {
  display: grid;
  gap: 12px;
}

.side-empty {
  color: #8aa0b5;
}

.side-note-input {
  min-height: 44px;
}

.side-detail-line {
  display: grid;
  gap: 4px;
}

.side-detail-line span {
  color: #7d93a9;
  font-size: 12px;
}

.side-detail-line strong {
  color: var(--ink);
}

.detail-action-button,
.application-focus-layout .btn,
.detail-page-actions .btn {
  min-height: 32px;
  max-height: 32px;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.application-detail-page label,
.application-detail-page input,
.application-detail-page select,
.application-detail-page textarea,
.application-detail-page .field-value,
.application-detail-page .response-card p,
.application-detail-page .side-detail-line strong {
  font-size: 14px;
}

.application-detail-page .side-detail-line span {
  font-size: 13px;
}

.detail-page-actions .btn-danger-outline,
.application-focus-layout .btn-danger-outline {
  color: #ef4242;
  border-color: #ef4242;
  background: #fff;
}

.detail-action-button svg {
  width: 14px;
  height: 14px;
}

.detail-icon-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  background: #ef4242;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-icon-button svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.detail-icon-button:hover {
  background: #d93838;
}

.note-compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: start;
}

.interview-admin-only-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.field-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.field-toggle .toggle-switch {
  margin-top: 8px;
}

.status-label-list {
  gap: 12px;
}

.status-label-row {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.status-label-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
}

.notes-list,
.communications-list {
  display: grid;
  gap: 10px;
}

.communications-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}

.communications-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 53, 0.14);
  background: #f3f6fa;
  color: #55708d;
  font-size: 0.9rem;
  font-weight: 600;
}

.communications-tab.active {
  color: var(--navy);
  background: white;
  border-color: var(--navy);
  box-shadow: 0 1px 2px rgba(11, 31, 53, 0.06);
}

.inline-section-head {
  margin-bottom: 14px;
}

.communications-list-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.communications-row,
.status-automation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(215, 223, 231, 0.85);
}

.status-automation-row {
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) 64px;
  column-gap: 18px;
}

.status-automation-row > strong {
  font-size: 13px;
  color: #12344e;
}

.status-automation-row select {
  min-width: 0;
}

.status-automation-toggle {
  justify-self: end;
  min-width: 40px;
  width: 40px;
}

.status-automation-toggle span {
  margin-left: -40px;
}

.communications-row:last-child,
.status-automation-row:last-child {
  border-bottom: 0;
}

.communications-row-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
  color: #6f87a3;
  font-size: 0.88rem;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.communications-editor {
  padding: 20px;
}

.communications-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: start;
}

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

.template-mode-toggle {
  display: inline-flex;
  gap: 8px;
}

.template-mode {
  border: 1px solid rgba(11, 31, 53, 0.16);
  background: #f5f7fa;
  color: #55708d;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.template-mode.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.template-variable-palette {
  display: grid;
  gap: 10px;
}

.template-variable-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-variable-chip {
  border: 1px solid rgba(11, 31, 53, 0.12);
  background: #f7f9fc;
  color: #48627d;
  border-radius: 999px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.communications-preview-card {
  border: 1px solid rgba(215, 223, 231, 0.9);
  border-radius: 16px;
  background: #f8fafc;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.communications-preview-card h4 {
  margin: 0;
}

.communications-preview-subject {
  padding: 12px 14px;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(215, 223, 231, 0.9);
  font-weight: 600;
}

.communications-preview-body {
  min-height: 220px;
  padding: 14px;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(215, 223, 231, 0.9);
  color: var(--ink);
}

.communications-preview-body pre {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
}

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

.communications-settings-grid > .panel:last-child {
  grid-column: 2;
}

.settings-checklist {
  margin-top: 14px;
  border: 1px solid rgba(234, 179, 8, 0.3);
  background: #fffaf0;
  border-radius: 14px;
  padding: 14px 16px;
  color: #8c5a0a;
}

.settings-checklist strong {
  display: block;
  margin-bottom: 8px;
}

.settings-checklist ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.variable-reference-list {
  display: grid;
  gap: 10px;
}

.variable-reference-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(215, 223, 231, 0.85);
}

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

.variable-reference-list code {
  display: inline-flex;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #415a73;
  font-size: 0.82rem;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f87a3;
  font-size: 0.88rem;
  cursor: pointer;
}

.toggle-switch input {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  background: #d7e0ea;
  position: relative;
  transition: background 0.2s ease;
  outline: none;
  cursor: pointer;
}

.toggle-switch span {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 22px;
  margin-left: -48px;
  pointer-events: none;
}

.toggle-switch span::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: transparent;
}

.toggle-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(2, 30, 47, 0.18);
  transition: transform 0.2s ease;
}

.toggle-switch input:checked {
  background: #ef4242;
}

.toggle-switch input:checked + span::after {
  transform: translateX(18px);
}

.field-toggle {
  display: flex;
  align-items: end;
}

.field-toggle .toggle-switch {
  margin-top: 8px;
}

.applicant-dashboard-page .topbar {
  background: #021e2f;
  border-bottom: 1px solid rgba(191, 200, 209, 0.18);
}

.applicant-dashboard-page .nav-link {
  color: #bfc8d1;
}

.applicant-dashboard-page .nav-link:hover,
.applicant-dashboard-page .nav-link.active {
  color: #fff;
  background: rgba(191, 200, 209, 0.1);
}

.info-banner {
  margin-bottom: 14px;
  background: #fffaf0;
  border: 1px solid rgba(234, 179, 8, 0.28);
  color: #8c5a0a;
}

.is-hidden {
  display: none;
}

.note-item,
.communication-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(229, 234, 240, 0.9);
}

.note-item:last-child,
.communication-item:last-child {
  border-bottom: 0;
}

.note-item p {
  margin: 0;
  color: var(--ink);
}

.note-item span,
.communication-item span {
  color: #8aa0b5;
  font-size: 0.84rem;
}

.communication-item strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.interview-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.interview-tab {
  border: 1px solid #021e2f;
  background: #fff;
  color: #021e2f;
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.interview-tab:hover {
  border-color: rgba(2, 30, 47, 0.28);
}

.interview-tab.active {
  background: #021e2f;
  color: #fff;
  border-color: #021e2f;
}

.interview-workspace {
  display: grid;
  gap: 12px;
}

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

.interview-workspace .field {
  gap: 4px;
}

.interview-workspace textarea {
  min-height: 96px;
}

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

.interview-actions {
  display: grid;
  gap: 8px;
  align-items: start;
  margin-top: 16px;
}

.interview-actions .btn {
  width: fit-content;
}

.interview-file-panel {
  border-top: 1px solid rgba(229, 234, 240, 0.9);
  padding-top: 12px;
  display: grid;
  gap: 10px;
}

.interview-file-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.interview-file-head strong {
  font-size: 0.82rem;
}

.interview-file-head strong span {
  color: #8da1b6;
  font-weight: 400;
}

.interview-file-copy {
  color: #6f87a3;
  font-size: 0.86rem;
}

.interview-file-current {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.interview-file-current-name {
  color: #24384d;
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.interview-upload-dropzone {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 78px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed #d8e0ea;
  background: #fff;
  color: #6f87a3;
}

.interview-upload-icon {
  font-size: 1.2rem;
  color: #8296ac;
}

.interview-upload-title {
  font-weight: 500;
  color: #6380a0;
}

.interview-upload-types {
  font-size: 0.8rem;
  color: #96a8ba;
}

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

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(215, 223, 231, 0.85);
}

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

.detail-list span {
  color: var(--muted);
  text-align: right;
}

.compact-list {
  gap: 10px;
}

.compact-row {
  padding: 12px 14px;
}

.upload-field {
  border: 1px solid rgba(215, 223, 231, 0.9);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f9fbfd);
  display: grid;
  gap: 14px;
}

.upload-field-compact {
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.upload-field.is-pending {
  border-color: rgba(209, 139, 31, 0.4);
}

.upload-field.is-error {
  border-color: rgba(161, 45, 45, 0.4);
}

.upload-field.is-success {
  border-color: rgba(39, 115, 77, 0.35);
}

.upload-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.upload-field-compact .upload-meta {
  align-items: baseline;
  gap: 8px;
}

.upload-field-compact .upload-meta > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.upload-field-compact .upload-meta label {
  font-size: 12px;
  font-weight: 500;
  color: #7f8b96;
}

.upload-field-compact .helper {
  font-size: 12px;
  font-weight: 400;
  color: #9aa6b2;
}

@media (max-width: 860px) {
  .intake-header-inner {
    grid-template-columns: 1fr;
  }

  .intake-header-copy,
  .intake-header-actions {
    justify-content: center;
    text-align: center;
  }

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

  .intake-progress-line {
    display: none;
  }

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

  .application-focus-layout {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .dashboard-metrics-grid,
  .status-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .communications-editor-layout,
  .communications-settings-grid,
  .communications-row,
  .status-automation-row {
    grid-template-columns: 1fr;
  }

  .status-automation-toggle {
    justify-self: start;
  }

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

  .interview-tab {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .app-shell,
  .admin-shell,
  .admin-main,
  .dashboard-surface,
  .communications-surface,
  .settings-surface {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .admin-layout {
    position: relative;
    overflow: hidden;
    border-radius: 0;
  }

  .admin-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 32;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #021e2f;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .admin-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .admin-mobile-brand .admin-sidebar-logo {
    max-height: 28px;
  }

  .admin-mobile-brand span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
  }

  .admin-mobile-menu-button {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .admin-mobile-menu-icon {
    font-size: 16px;
    line-height: 1;
  }

  .admin-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    border: 0;
    background: rgba(2, 30, 47, 0.28);
    opacity: 0;
    pointer-events: none;
  }

  .admin-mobile-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .admin-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 34;
    width: min(82vw, 280px);
    max-width: 280px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 20px 48px rgba(8, 26, 47, 0.24);
  }

  .admin-nav.is-open,
  .admin-layout.mobile-nav-open .admin-nav {
    transform: translateX(0);
  }

  .admin-mobile-close {
    display: inline-flex;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
  }

  .admin-sidebar-header {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .admin-sidebar-header > .admin-sidebar-logo,
  .admin-sidebar-header > .admin-sidebar-brand-copy {
    grid-column: 1;
  }

  .admin-sidebar-header > .admin-mobile-close {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .admin-main {
    margin-left: 0;
    padding: 16px 14px 24px;
  }

  .admin-main .page-title,
  .admin-main .section-head h2,
  .admin-main h1 {
    font-size: 20px;
  }

  .admin-main .panel h3,
  .admin-main .table-card h3,
  .admin-main .section-card h3,
  .admin-main .dashboard-panel-head h3 {
    font-size: 15px;
  }

  .admin-main p,
  .admin-main label,
  .admin-main input,
  .admin-main select,
  .admin-main textarea,
  .admin-main td,
  .admin-main .detail-row span,
  .admin-main .detail-row strong,
  .admin-main .side-empty,
  .admin-main .side-detail-line strong,
  .admin-main .side-detail-line span,
  .communications-tab,
  .settings-tab,
  .admin-link {
    font-size: 12px;
  }

  .dashboard-panel,
  .dashboard-metric-card,
  .section-card,
  .table-card,
  .panel,
  .page-header {
    padding: 16px;
  }

  .section-head,
  .dashboard-panel-head,
  .detail-page-head,
  .page-header-actions,
  .staff-page-actions,
  .row-actions,
  .staff-row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-tabs,
  .communications-tabs,
  .template-mode-toggle {
    width: 100%;
    flex-wrap: wrap;
  }

  .settings-tab,
  .communications-tab,
  .template-mode {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    min-width: 140px;
  }

  .application-focus-layout,
  .communications-editor-layout,
  .communications-settings-grid,
  .detail-grid,
  .editor-grid,
  .settings-layout,
  .builder-layout,
  .detail-page-head,
  .application-detail-page {
    max-width: 100%;
  }

  .communications-settings-grid > .panel:last-child {
    grid-column: auto;
  }

  .summary-grid,
  .form-grid,
  .grid-3,
  .grid-4,
  .metrics-grid,
  .dashboard-metrics-grid,
  .status-breakdown-grid,
  .communications-editor-layout,
  .communications-settings-grid,
  .detail-grid,
  .editor-grid,
  .settings-layout,
  .builder-layout,
  .application-focus-layout {
    grid-template-columns: 1fr;
  }

  .status-breakdown-row,
  .dashboard-application-row,
  .upload-row,
  .row {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-wrap {
    overflow-x: visible;
  }

  .staff-table-card td:last-child,
  .staff-table-card th:last-child {
    width: auto;
  }
}

.upload-kind {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 31, 53, 0.08);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.upload-dropzone {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(11, 31, 53, 0.2);
  background: rgba(235, 240, 245, 0.45);
}

.upload-dropzone-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px dashed #bfc8d1;
  background: #f9fafb;
}

.upload-title {
  font-weight: 700;
}

.upload-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.upload-dropzone-compact .upload-subtitle {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.88rem;
}

.upload-inline-icon {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: #7f8b96;
}

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

.upload-input::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--navy);
  color: white;
  font-weight: 700;
}

.upload-choose {
  flex: 0 0 auto;
}

.upload-status {
  font-size: 0.92rem;
  font-weight: 600;
}

.upload-status.success {
  color: #25734d;
}

.upload-status.error {
  color: #a12d2d;
}

.upload-status.pending {
  color: #9b6709;
}

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

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

.upload-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(215, 223, 231, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbfc);
}

.upload-row-copy {
  display: grid;
  gap: 4px;
}

.upload-row-copy span,
.upload-empty {
  color: var(--muted);
}

.dashboard-documents-stack {
  display: grid;
  gap: 14px;
}

.dashboard-documents-actions {
  display: flex;
  justify-content: flex-start;
}

.dashboard-upload-input {
  display: none;
}

.dashboard-document-row {
  align-items: flex-start;
}

.dashboard-upload-status {
  margin-top: -2px;
}

.upload-origin-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(239, 66, 66, 0.1);
  color: #ef4242;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.staff-card {
  display: grid;
  gap: 8px;
}

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

.staff-page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-table-card td:last-child,
.staff-table-card th:last-child {
  width: 170px;
}

.staff-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.staff-row-actions .btn {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 500;
}

.staff-row-actions .btn.btn-secondary {
  color: #12344e;
  background: white;
  border: 1px solid #12344e;
}

.staff-row-actions .btn.btn-outline-danger {
  color: #ef4242;
  background: white;
  border: 1px solid #ef4242;
}

.role-badge {
  border: 0;
}

.staff-modal-backdrop,
.staff-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 30, 47, 0.22);
  display: flex;
  z-index: 40;
}

.staff-modal-backdrop {
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.staff-drawer-backdrop {
  justify-content: flex-end;
}

.staff-modal,
.staff-role-drawer {
  width: min(100%, 720px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(11, 31, 53, 0.18);
}

.add-applicant-backdrop {
  align-items: flex-start;
  padding: 24px 20px;
}

.add-applicant-modal {
  width: min(100%, 880px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.add-applicant-modal-body {
  overflow-y: auto;
  padding-right: 6px;
  align-content: start;
}

.add-applicant-section-title {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.add-applicant-choice-group {
  gap: 12px;
}

.add-applicant-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  cursor: pointer;
}

.add-applicant-choice input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.add-applicant-choice span {
  flex: 1;
}

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

.add-applicant-modal-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(219, 227, 236, 0.95);
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 1;
}

.staff-role-drawer {
  width: min(100%, 560px);
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
}

.staff-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.staff-modal-head h3,
.staff-role-create h4 {
  margin: 0 0 4px;
}

.staff-role-list,
.staff-role-create {
  display: grid;
  gap: 14px;
}

.staff-role-row {
  align-items: end;
}

.staff-role-row-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 14px;
  width: 100%;
}

.locked-note {
  display: inline-block;
}

.settings-layout {
  display: grid;
  gap: 20px;
}

.mono {
  font-family: "Raleway", sans-serif;
}

@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .apply-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .grid-3,
  .grid-4,
  .metrics-grid,
  .dashboard-metrics-grid,
  .status-breakdown-grid,
  .form-grid,
  .app-shell .summary-grid,
  .detail-grid,
  .editor-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .topbar-inner,
  .section,
  .footer-inner,
  .app-shell,
  .apply-shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy,
  .panel,
  .page-header,
  .table-card,
  .card {
    padding: 18px;
  }

  .hero-stats,
  .grid-3,
  .grid-4,
  .metrics-grid,
  .form-grid,
  .app-shell .summary-grid,
  .detail-grid,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .topbar-inner,
  .row,
  .status-band {
    flex-direction: column;
    align-items: start;
  }

  .topbar .brand-logo.header-logo {
    max-height: 40px;
    width: auto;
  }

  .login-page .brand-logo.login-logo {
    max-width: 160px;
    height: auto;
  }

  .landing-page .brand-logo.landing-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 14px;
  }

  .page-header .light-page-logo,
  .admin-main-brand .light-page-logo {
    width: min(180px, 100%);
  }

  .upload-meta,
  .upload-row,
  .detail-list div,
  .page-header-actions,
  .detail-page-head {
    flex-direction: column;
    align-items: start;
  }

  .staff-page-actions,
  .staff-row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .staff-role-row-fields {
    grid-template-columns: 1fr;
  }

  .staff-modal-backdrop,
  .staff-drawer-backdrop {
    padding: 0;
  }

  .staff-modal,
  .staff-role-drawer {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .add-applicant-backdrop {
    padding: 0;
  }

  .add-applicant-modal {
    max-height: 100vh;
  }

  .add-applicant-spouse-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-row strong {
    text-align: left;
  }

  .admin-link.active::before {
    left: 0;
  }

  .detail-list span {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .topbar-inner,
  .section,
  .footer-inner,
  .app-shell,
  .apply-shell {
    width: min(calc(100% - 16px), var(--max));
  }

  .hero {
    padding: 22px 0 18px;
  }

  .landing-page .hero-copy {
    padding: 28px 16px;
  }

  .landing-page .brand-logo.landing-logo {
    max-width: 150px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
    line-height: 1.02;
  }

  .hero-copy p,
  .lede,
  .intake-card-head p,
  .intake-header-copy p {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .intake-header {
    padding: 18px 14px 14px;
  }

  .intake-header-copy h1 {
    font-size: 1.5rem;
  }

  .intake-main {
    padding: 18px 14px 40px;
  }

  .intake-card,
  .intake-confirmation-card,
  .intake-stop-card {
    padding: 18px;
    border-radius: 16px;
  }

  .intake-progress {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .intake-progress-item {
    justify-items: start;
    text-align: left;
    grid-template-columns: 28px 1fr;
    gap: 0 10px;
  }

  .intake-progress-item span {
    align-self: center;
  }

  .intake-progress-circle {
    grid-row: 1 / span 2;
  }

  .intake-actions {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .intake-actions > div,
  .intake-actions .btn {
    width: 100%;
  }

  .admin-mobile-bar {
    padding: 12px 12px;
  }

  .admin-main {
    padding: 12px 10px 20px;
  }

  .admin-main .page-title,
  .admin-main .section-head h2,
  .admin-main h1 {
    font-size: 18px;
  }

  .settings-tab,
  .communications-tab,
  .template-mode {
    flex-basis: 100%;
    min-width: 0;
  }

  .btn {
    width: 100%;
  }

  .form-actions {
    width: 100%;
  }

  .form-actions .btn,
  .page-header-actions .btn,
  .staff-row-actions .btn,
  .staff-page-actions .btn,
  .row-actions .btn {
    width: 100%;
  }
}
