:root {
  --navy: #1f2937;
  --navy-2: #19222e;
  --red: #475569;
  --orange: #78716c;
  --cyan: #64748b;
  --lime: #94a3b8;
  --red-rgb: 71, 85, 105;
  --orange-rgb: 120, 113, 108;
  --cyan-rgb: 100, 116, 139;
  --lime-rgb: 148, 163, 184;
  --navy-rgb: 31, 41, 55;
  --red-dark: #3a4657;
  --orange-dark: #625d59;
  --cyan-dark: #526071;
  --lime-dark: #7a8697;
  --navy-dark: #19222e;
  --night-bg: #10151c;
  --night-surface: #151c26;
  --night-soft: #1a2330;
  --on-red: #ffffff;
  --on-orange: #ffffff;
  --on-cyan: #ffffff;
  --on-lime: #111827;
  --on-navy: #ffffff;
  --on-night: #ffffff;
  --on-shadow: #ffffff;
  --on-red-rgb: 255, 255, 255;
  --on-orange-rgb: 255, 255, 255;
  --on-cyan-rgb: 255, 255, 255;
  --on-lime-rgb: 17, 24, 39;
  --on-navy-rgb: 255, 255, 255;
  --on-night-rgb: 255, 255, 255;
  --on-shadow-rgb: 255, 255, 255;
  --ink: #1d2636;
  --ink-rgb: 29, 38, 54;
  --muted: #687386;
  --muted-rgb: 104, 115, 134;
  --line: #e6eaf0;
  --line-rgb: 230, 234, 240;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --soft: #f6f8fb;
  --soft-rgb: 246, 248, 251;
  --page-bg: #ffffff;
  --page-bg-rgb: 255, 255, 255;
  --shadow: #1f2937;
  --shadow-rgb: 31, 41, 55;
  --shadow: 0 24px 70px rgba(var(--shadow-rgb), 0.12);
  --shadow-soft: 0 10px 30px rgba(var(--shadow-rgb), 0.08);
  --shadow-medium: 0 18px 48px rgba(var(--shadow-rgb), 0.14);
}

/* v11: theme-aware Jobs discovery and listing cards. */
body.jobs-listing-page {
  background:
    radial-gradient(circle at 88% 4%, rgba(var(--red-rgb), 0.055), transparent 24rem),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg) 42%, var(--soft) 100%);
}

.jobs-listing-page .page-hero {
  width: min(1160px, calc(100vw - 48px)) !important;
  padding: clamp(38px, 4.5vw, 58px) 0 20px !important;
}

.jobs-listing-page .page-hero > div { max-width: 900px; }
.jobs-listing-page .page-hero .eyebrow { margin-bottom: 8px; }
.jobs-listing-page .page-hero h1 { margin-bottom: 12px !important; font-size: clamp(2.55rem, 4.3vw, 4rem) !important; }
.jobs-listing-page .page-hero .hero-lead { margin-bottom: 0; }

.jobs-listing-page .dashboard-shell {
  width: min(1160px, calc(100vw - 48px)) !important;
  padding-top: 0 !important;
  padding-bottom: clamp(54px, 7vw, 84px) !important;
}

.jobs-listing-page .public-search {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) 150px;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
  padding: 8px;
  background: rgba(var(--surface-rgb), 0.96);
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(var(--shadow-rgb), 0.1);
}

.jobs-listing-page .public-search label { align-content: center; min-height: 58px; padding: 6px 20px; }
.jobs-listing-page .public-search span { color: var(--ink); letter-spacing: 0.01em; }
.jobs-listing-page .public-search input { padding: 0; background: transparent; }
.jobs-listing-page .public-search button {
  min-width: 0;
  min-height: 58px;
  color: var(--on-red);
  background: var(--red);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(var(--red-rgb), 0.2);
}

body:not(.admin-console).jobs-listing-page .dashboard-shell > .search-support { margin: 0 0 24px !important; padding: 2px 0 0 !important; }
.jobs-listing-page .public-job-list { gap: 16px; }

.jobs-listing-page .public-job-card {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
  gap: 0 28px;
  overflow: hidden;
  padding: 26px 28px 26px 32px;
  background: linear-gradient(135deg, rgba(var(--red-rgb), 0.025), transparent 42%), var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(var(--shadow-rgb), 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.jobs-listing-page .public-job-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--red), var(--orange), var(--cyan));
  content: "";
}

.jobs-listing-page .public-job-card:hover,
.jobs-listing-page .public-job-card:focus-within {
  border-color: rgba(var(--red-rgb), 0.3);
  box-shadow: 0 18px 46px rgba(var(--shadow-rgb), 0.11);
  transform: translateY(-2px);
}

.jobs-listing-page .public-job-card > div:first-child { padding-right: 6px; }
.jobs-listing-page .public-job-card .small-label { display: inline-flex; margin-bottom: 7px; color: var(--red); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.jobs-listing-page .public-job-card h2 { margin-bottom: 11px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.1; }
.jobs-listing-page .job-meta { display: flex; flex-wrap: wrap; gap: 7px; font-size: 0.88rem; font-weight: 600; }
.jobs-listing-page .job-meta span { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; line-height: 1.25; }
.jobs-listing-page .job-card-body { gap: 10px; margin-top: 19px; padding-top: 18px; border-top: 1px solid var(--line); }
.jobs-listing-page .job-card-body p { max-width: 820px; line-height: 1.58; }
.jobs-listing-page .job-summary { color: var(--muted); font-size: 1rem; }
.jobs-listing-page .job-detail { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px; align-items: start; }
.jobs-listing-page .job-detail strong { color: var(--ink); }
.jobs-listing-page .job-detail span { min-width: 0; }
.jobs-listing-page .job-card-actions { align-self: stretch; align-content: center; min-width: 0; padding-left: 28px; border-left: 1px solid var(--line); }
.jobs-listing-page .job-card-actions .button { min-height: 50px; padding-inline: 20px; border-radius: 10px; }
.jobs-listing-page .job-card-actions .application-complete { box-shadow: none; }

/* v11: configurable legal-page reading experience and editor. */
.legal-public-page { background: var(--soft); }
.legal-public-page main { min-height: 68vh; padding-bottom: 1px; }
.legal-page-hero-v2 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 48px;
  width: min(1160px, calc(100vw - 48px));
  margin: 54px auto 0;
  padding: clamp(42px, 6vw, 72px);
  overflow: hidden;
  color: var(--on-navy);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border: 1px solid rgba(var(--on-navy-rgb), 0.14);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(var(--shadow-rgb), 0.2);
}
.legal-page-hero-v2::after { position: absolute; inset: auto -9% -70% 42%; height: 150%; background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.2), transparent 66%); content: ""; pointer-events: none; }
.legal-page-hero-v2 .legal-hero-copy { position: relative; z-index: 1; min-width: 0; }
.legal-page-hero-v2 .eyebrow { color: var(--orange); }
.legal-page-hero-v2 h1 { max-width: 780px; margin: 10px 0 18px; color: var(--on-navy); font-size: clamp(2.7rem, 5.5vw, 5rem); line-height: 0.98; letter-spacing: -0.055em; }
.legal-page-hero-v2 .legal-hero-copy > p:not(.eyebrow) { max-width: 700px; margin: 0; color: rgba(var(--on-navy-rgb), 0.76); font-size: 1.02rem; line-height: 1.65; }
.legal-hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(var(--on-navy-rgb), 0.15); }
.legal-hero-meta span { display: flex; min-width: 115px; flex-direction: column; gap: 4px; }
.legal-hero-meta small { color: rgba(var(--on-navy-rgb), 0.58); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-hero-meta strong { color: var(--on-navy); font-size: 0.85rem; font-weight: 600; }
.legal-hero-mark { position: relative; z-index: 1; display: flex; width: 158px; height: 158px; align-self: center; padding: 24px; flex-direction: column; justify-content: center; color: var(--on-navy); background: rgba(var(--on-navy-rgb), 0.08); border: 1px solid rgba(var(--on-navy-rgb), 0.16); border-radius: 20px; }
.legal-hero-mark span { color: var(--lime); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.legal-hero-mark strong { margin-top: 5px; color: var(--on-navy); font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; text-transform: uppercase; }
.legal-hero-mark i { width: 34px; height: 4px; margin-top: 22px; background: linear-gradient(90deg, var(--orange), var(--red)); border-radius: 999px; }

.legal-page-shell-v2 { width: min(1160px, calc(100vw - 48px)); margin: 34px auto 78px; }
.legal-document-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: clamp(24px, 4vw, 46px); align-items: start; }
.legal-document-sidebar { position: sticky; top: 96px; display: grid; gap: 14px; }
.legal-toc,
.legal-page-actions { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px rgba(var(--shadow-rgb), 0.055); }
.legal-toc summary { cursor: pointer; color: var(--ink); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; list-style: none; text-transform: uppercase; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after { float: right; color: var(--muted); content: '+'; font-size: 1rem; }
.legal-toc[open] summary::after { content: '−'; }
.legal-toc nav { display: grid; gap: 5px; margin-top: 14px; }
.legal-toc nav a { position: relative; padding: 7px 8px 7px 20px; color: var(--muted); border-radius: 7px; font-size: 0.77rem; line-height: 1.35; text-decoration: none; }
.legal-toc nav a::before { position: absolute; top: 13px; left: 8px; width: 5px; height: 5px; background: var(--red); border-radius: 50%; content: ""; }
.legal-toc nav a:hover,
.legal-toc nav a:focus-visible { color: var(--ink); background: var(--soft); outline: none; }
.legal-page-actions { display: grid; gap: 4px; }
.legal-page-actions button,
.legal-page-actions a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; color: var(--muted); background: none; border: 0; border-radius: 7px; cursor: pointer; font: inherit; font-size: 0.78rem; text-align: left; text-decoration: none; }
.legal-page-actions button:hover,
.legal-page-actions button:focus-visible,
.legal-page-actions a:hover,
.legal-page-actions a:focus-visible { color: var(--ink); background: var(--soft); outline: none; }
.legal-page-actions span { display: grid; width: 24px; height: 24px; place-items: center; color: var(--red); background: rgba(var(--red-rgb), 0.1); border-radius: 6px; }

.legal-copy-v2 { position: relative; min-width: 0; padding: clamp(34px, 5vw, 64px); overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 52px rgba(var(--shadow-rgb), 0.075); }
.legal-copy-v2::before { position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--red), var(--orange), var(--cyan)); content: ""; }
.legal-copy-v2 > :first-child { margin-top: 0; }
.legal-copy-v2 > :last-child { margin-bottom: 0; }
.legal-copy-v2 h2 { margin: 3.1rem 0 1rem; color: var(--ink); font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.2; scroll-margin-top: 110px; }
.legal-copy-v2 h2::after { display: block; width: 42px; height: 3px; margin-top: 13px; background: var(--red); border-radius: 999px; content: ""; }
.portal-employer .legal-copy-v2 h2::after { background: var(--cyan); }
.legal-copy-v2 h3 { margin-top: 2rem; color: var(--ink); font-size: 1.08rem; }
.legal-copy-v2 h4 { color: var(--ink); font-size: 0.98rem; }
.legal-copy-v2 p,
.legal-copy-v2 li { color: var(--muted); line-height: 1.68; }
.legal-copy-v2 strong { color: var(--ink); }
.legal-copy-v2 ul,
.legal-copy-v2 ol { padding-left: 1.3rem; }
.legal-copy-v2 li { margin: 0.55rem 0; padding-left: 0.25rem; }
.legal-copy-v2 li::marker { color: var(--red); font-weight: 700; }
.portal-employer .legal-copy-v2 li::marker { color: var(--cyan); }
.legal-copy-v2 table { width: 100%; margin: 1.7rem 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; }
.legal-copy-v2 th,
.legal-copy-v2 td { min-width: 0; padding: 12px 14px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-copy-v2 th:last-child,
.legal-copy-v2 td:last-child { border-right: 0; }
.legal-copy-v2 tr:last-child > * { border-bottom: 0; }
.legal-copy-v2 th { color: var(--on-navy); background: var(--navy); }
.legal-copy-v2 tbody tr:nth-child(even) td { background: var(--soft); }

.legal-related-policy,
.legal-page-shell-v2 > .public-document-list { display: flex; margin: 24px 0 0 calc(238px + clamp(24px, 4vw, 46px)); padding: 24px; align-items: center; justify-content: space-between; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 38px rgba(var(--shadow-rgb), 0.06); }
.legal-related-policy strong { color: var(--ink); font-size: 1.1rem; }
.legal-related-policy p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }
.legal-page-shell-v2 > .public-document-list { display: grid; }
.legal-page-shell-v2 .public-document-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; width: 100%; align-items: center; gap: 22px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.legal-page-shell-v2 .public-document-card h2 { margin: 5px 0 8px; color: var(--ink); font-size: clamp(1.25rem, 3vw, 1.7rem); }
.legal-page-shell-v2 .public-document-card p:not(.eyebrow) { margin: 0 0 6px; color: var(--muted); }
.legal-page-shell-v2 .public-document-card small { color: var(--muted); }
.legal-page-shell-v2 .public-document-icon { display: grid; width: 64px; height: 64px; place-items: center; color: var(--on-red); background: var(--red); border-radius: 15px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; }
.legal-page-shell-v2 .empty-document-card { grid-template-columns: 1fr; }

.legal-choice-hero { margin-bottom: 0; }
.legal-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; width: min(1160px, calc(100vw - 48px)); margin: 34px auto 78px; }
.legal-choice-card { padding: clamp(30px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: 18px; box-shadow: 0 18px 52px rgba(var(--shadow-rgb), 0.07); transition: transform 180ms ease, box-shadow 180ms ease; }
.legal-choice-card.employer { border-top-color: var(--cyan); }
.legal-choice-card:hover { transform: translateY(-4px); box-shadow: 0 26px 68px rgba(var(--shadow-rgb), 0.12); }
.legal-choice-card h2 { margin: 5px 0 12px; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.legal-choice-card > p:not(.eyebrow) { min-height: 52px; color: var(--muted); line-height: 1.6; }
.legal-choice-icon { display: grid; width: 52px; height: 52px; margin-bottom: 24px; place-items: center; color: var(--on-red); background: var(--red); border-radius: 13px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; }
.legal-choice-card.employer .legal-choice-icon { color: var(--on-cyan); background: var(--cyan); }
.legal-choice-card.employer .button { color: var(--on-cyan); background: var(--cyan); box-shadow: 0 14px 28px rgba(var(--cyan-rgb), 0.24); }
.legal-choice-card .button { margin-top: 10px; }

.legal-editor-tabs { display: flex; margin: 18px 0 22px; padding: 6px; overflow-x: auto; gap: 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.legal-editor-tabs a { flex: 0 0 auto; padding: 9px 12px; color: var(--muted); border: 1px solid transparent; border-radius: 8px; font-size: 0.78rem; font-weight: 700; text-decoration: none; }
.legal-editor-tabs a.active { color: var(--on-red); background: var(--red); border-color: var(--red); }
.legal-editor-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.legal-editor-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.legal-editor-toolbar { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; padding: 9px; background: var(--soft); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
.legal-editor-toolbar button { padding: 7px 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font: inherit; font-size: 0.76rem; }
.legal-rich-editor { min-height: 520px; max-height: 70vh; padding: 24px; overflow: auto; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 10px 10px; font-size: 0.92rem; line-height: 1.65; }
.legal-rich-editor:focus { outline: 3px solid rgba(var(--red-rgb), 0.14); border-color: var(--red); }
.legal-rich-editor h2 { margin: 1.8rem 0 0.65rem; font-size: 1.5rem; }
.legal-rich-editor h3 { margin: 1.4rem 0 0.55rem; font-size: 1.12rem; }
.legal-rich-editor p { margin: 0 0 0.85rem; }
.legal-rich-editor table { width: 100%; border-collapse: collapse; }
.legal-rich-editor th,
.legal-rich-editor td { padding: 8px; border: 1px solid var(--line); vertical-align: top; }
.legal-placeholder-help { margin-top: 10px; color: var(--muted); font-size: 0.78rem; }
.legal-placeholder-help code { white-space: nowrap; }
.public-document-admin-list { display: grid; gap: 12px; margin-top: 20px; }
body.admin-night .legal-editor-tabs,
body.admin-night .legal-editor-toolbar { background: var(--night-bg); border-color: rgba(var(--on-night-rgb), 0.14); }
body.admin-night .legal-editor-toolbar button,
body.admin-night .legal-rich-editor { color: var(--on-night); background: var(--night-surface); border-color: rgba(var(--on-night-rgb), 0.14); }
body.admin-night .legal-rich-editor h2,
body.admin-night .legal-rich-editor h3,
body.admin-night .legal-rich-editor strong { color: var(--on-night); }

@media (max-width: 980px) {
  .jobs-listing-page .public-job-card { grid-template-columns: 1fr; gap: 0; }
  .jobs-listing-page .job-card-actions { grid-column: 1; grid-row: auto; margin-top: 20px; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .jobs-listing-page .job-card-actions .button { width: 100%; justify-content: center; }
}

@media (max-width: 900px) {
  .legal-page-hero-v2 { grid-template-columns: minmax(0, 1fr) 128px; gap: 28px; padding: 46px; }
  .legal-hero-mark { width: 124px; height: 124px; padding: 19px; border-radius: 17px; }
  .legal-hero-mark strong { font-size: 1.42rem; }
  .legal-hero-mark i { margin-top: 14px; }
  .legal-document-layout { grid-template-columns: 1fr; }
  .legal-document-sidebar { position: static; grid-template-columns: minmax(0, 1fr) 220px; }
  .legal-toc nav { max-height: 260px; overflow-y: auto; }
  .legal-related-policy,
  .legal-page-shell-v2 > .public-document-list { margin-left: 0; }
}

@media (max-width: 760px) {
  .jobs-listing-page .page-hero,
  .jobs-listing-page .dashboard-shell { width: min(100% - 24px, 1160px) !important; }
  .jobs-listing-page .page-hero { padding: 30px 0 16px !important; }
  .jobs-listing-page .page-hero h1 { margin-bottom: 10px !important; font-size: clamp(2.2rem, 10.8vw, 3rem) !important; }
  .jobs-listing-page .public-search { grid-template-columns: 1fr; padding: 7px; }
  .jobs-listing-page .public-search label { min-height: 56px; padding: 7px 13px; border-right: 0; border-bottom: 1px solid var(--line); }
  .jobs-listing-page .public-search label:nth-child(2) { border-bottom: 0; }
  .jobs-listing-page .public-search button { min-height: 48px; margin-top: 7px; }
  body:not(.admin-console).jobs-listing-page .dashboard-shell > .search-support { margin-bottom: 18px !important; }
  .jobs-listing-page .public-job-card { padding: 21px 18px 20px 23px; border-radius: 14px; }
  .jobs-listing-page .job-meta { gap: 6px; }
  .jobs-listing-page .job-meta span { min-height: 28px; padding: 4px 9px; font-size: 0.81rem; }
  .jobs-listing-page .job-card-body { margin-top: 16px; padding-top: 15px; }
  .jobs-listing-page .job-detail { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 620px) {
  .legal-page-hero-v2 { display: block; width: min(100% - 24px, 1160px); margin-top: 24px; padding: 34px 24px; border-radius: 17px; }
  .legal-page-hero-v2 h1 { font-size: clamp(2.45rem, 13vw, 3.45rem); }
  .legal-hero-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
  .legal-hero-mark { display: none; }
  .legal-page-shell-v2 { width: min(100% - 24px, 1160px); margin-top: 24px; }
  .legal-document-sidebar { grid-template-columns: 1fr; }
  .legal-toc,
  .legal-page-actions { padding: 16px; }
  .legal-page-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-page-actions button,
  .legal-page-actions a { justify-content: flex-start; }
  .legal-copy-v2 { padding: 32px 20px; border-radius: 14px; }
  .legal-copy-v2 h2 { margin-top: 2.4rem; }
  .legal-copy-v2 table { display: block; overflow-x: auto; border-radius: 8px; }
  .legal-copy-v2 th,
  .legal-copy-v2 td { min-width: 145px; }
  .legal-choice-grid { grid-template-columns: 1fr; width: min(100% - 24px, 1160px); }
  .legal-choice-card > p:not(.eyebrow) { min-height: 0; }
  .legal-related-policy { align-items: flex-start; flex-direction: column; }
  .legal-page-shell-v2 .public-document-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .legal-page-shell-v2 .public-document-card .button { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .legal-editor-panel-heading { flex-direction: column; }
  .legal-editor-heading-actions { justify-content: flex-start; }
  .legal-rich-editor { min-height: 380px; padding: 18px; }
}

@media print {
  .legal-public-page { background: var(--surface) !important; }
  .legal-public-page .site-header,
  .legal-public-page .portal-site-footer,
  .legal-public-page .legal-document-sidebar,
  .legal-public-page .legal-related-policy,
  .legal-public-page .public-document-list,
  .legal-public-page .legal-hero-mark { display: none !important; }
  .legal-page-hero-v2 { display: block; width: 100%; margin: 0; padding: 0 0 24px; color: #000; background: none; border: 0; border-bottom: 2px solid #000; border-radius: 0; box-shadow: none; }
  .legal-page-hero-v2 h1,
  .legal-page-hero-v2 .legal-hero-copy > p:not(.eyebrow),
  .legal-hero-meta strong { color: #000; }
  .legal-page-shell-v2 { width: 100%; margin: 24px 0 0; }
  .legal-copy-v2 { padding: 0; border: 0; box-shadow: none; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page-bg);
  font-family: "Inter", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(var(--surface-rgb), 0.92);
  border-bottom: 1px solid rgba(var(--line-rgb), 0.76);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, min-height 180ms ease;
}

.site-header.is-elevated {
  min-height: 72px;
  box-shadow: 0 10px 30px rgba(var(--shadow-rgb), 0.08);
}

.brand img {
  width: 228px;
  min-width: 180px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex: 1;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--red);
}

.nav-links a.active,
.admin-menu-panel a.active {
  color: var(--red);
}

.admin-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-left: auto;
}

.admin-nav-links {
  flex: 0 1 auto;
  margin-left: 0;
}

.admin-menu {
  position: relative;
}

.admin-menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.admin-menu summary::-webkit-details-marker {
  display: none;
}

.admin-menu summary span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: var(--navy);
  border-radius: 999px;
}

.admin-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-menu-panel a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-weight: 500;
}

.admin-menu-panel a:hover {
  color: var(--red);
  background: var(--soft);
}

.header-action,
.button,
.job-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-action {
  padding: 0 20px;
  color: var(--on-navy);
  background: var(--navy);
}

.button {
  padding: 0 22px;
  border: 0;
  text-decoration: none;
}

.primary {
  color: var(--on-red);
  background: var(--red);
  box-shadow: 0 14px 28px rgba(var(--red-rgb), 0.24);
}

.secondary {
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
}

.button:hover,
.header-action:hover,
.job-search button:hover {
  transform: translateY(-1px);
}

.section-band {
  background:
    linear-gradient(135deg, rgba(var(--cyan-rgb), 0.09), transparent 34%),
    linear-gradient(315deg, rgba(var(--lime-rgb), 0.16), transparent 36%),
    var(--soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.74fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.hero-copy,
.section,
.cta-section,
.site-footer {
  width: min(1160px, calc(100vw - 40px));
  margin-inline: auto;
}

.hero-copy {
  width: auto;
  margin: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--navy-2);
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.96;
  font-weight: 600;
}

h2 {
  margin-bottom: 16px;
  color: var(--navy-2);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.04;
  font-weight: 600;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy-2);
  font-size: 1.22rem;
  line-height: 1.24;
  font-weight: 600;
}

.hero-lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  font-weight: 300;
}

.job-search {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 10px;
  max-width: 810px;
  margin: 32px 0 20px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.job-search label {
  display: grid;
  gap: 4px;
  padding: 4px 14px;
  border-right: 1px solid var(--line);
}

.job-search label:nth-child(2) {
  border-right: 0;
}

.job-search span {
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 600;
}

.job-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
}

.job-search input::placeholder {
  color: var(--muted);
}

.job-search button {
  min-width: 128px;
  border: 0;
  color: var(--on-navy);
  background: var(--navy);
  cursor: pointer;
}

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

.hero-employer-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  max-width: 810px;
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(var(--surface-rgb), 0.78);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(var(--shadow-rgb), 0.07);
}

.hero-employer-note strong {
  color: var(--navy);
}

.hero-employer-note span {
  color: var(--muted);
}

.hero-employer-note a {
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 62px 0 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-card,
.match-card,
.mini-dashboard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(var(--shadow-rgb), 0.11);
}

.status-card {
  padding: 22px;
}

.status-card div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.status-card p,
.match-card span,
.mini-dashboard p,
.choice-card p,
.process article p,
.trust-section p,
.cta-section p,
.site-footer p,
.split-section p,
.feature-list p {
  color: var(--muted);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(var(--lime-rgb), 0.2);
}

.match-card {
  justify-self: end;
  width: min(310px, 92%);
  padding: 22px;
  border-left: 5px solid var(--red);
}

.match-card strong {
  display: block;
  color: var(--navy);
  font-size: 2rem;
}

.small-label {
  margin-bottom: 4px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
}

.mini-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.mini-dashboard div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.mini-dashboard div:last-child {
  border-right: 0;
}

.metric {
  color: var(--cyan);
  font-weight: 600;
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.choice-card,
.process article {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.choice-card {
  min-height: 278px;
}

.choice-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--red);
  font-weight: 600;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 8px;
  color: var(--on-navy);
  font-weight: 600;
}

.icon-tile.cyan {
  background: var(--cyan);
}

.icon-tile.red {
  background: var(--red);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.74fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-inline: clamp(20px, 5vw, 72px);
  background: var(--navy);
  color: var(--on-navy);
  width: 100%;
}

.split-section > * {
  width: min(560px, 100%);
}

.split-section h2,
.split-section p {
  color: var(--on-navy);
}

.split-section .eyebrow {
  color: var(--lime);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 28px;
}

.price-row strong {
  color: var(--orange);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
}

.price-row span {
  color: rgba(var(--on-navy-rgb), 0.78);
}

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

.feature-list div {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  padding: 18px;
  background: rgba(var(--on-navy-rgb), 0.08);
  border: 1px solid rgba(var(--on-navy-rgb), 0.13);
  border-radius: 8px;
}

.feature-list span {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--lime);
}

.feature-list p {
  margin-bottom: 0;
  color: rgba(var(--on-navy-rgb), 0.82);
}

.process {
  background: var(--soft);
  width: 100%;
  padding-inline: clamp(20px, 5vw, 72px);
}

.process .section-heading,
.process-grid {
  width: min(1160px, 100%);
  margin-inline: auto;
}

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

.process article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  color: var(--navy);
  background: var(--lime);
  border-radius: 999px;
  font-weight: 600;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.6fr);
  gap: 34px;
  align-items: start;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
  padding: clamp(34px, 5vw, 54px);
  color: var(--on-navy);
  background:
    linear-gradient(120deg, rgba(var(--cyan-rgb), 0.26), transparent 32%),
    var(--navy-2);
  border-radius: 8px;
}

.cta-section h2,
.cta-section p {
  max-width: 760px;
  color: var(--on-navy);
}

.cta-section .eyebrow {
  color: var(--orange);
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 168px;
}

.site-footer div {
  flex: 1;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer .footer-address {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.55;
}

.site-footer .footer-legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0 clamp(36px, 6vw, 64px);
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 5vw, 5rem);
}

.payment-summary {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.payment-summary strong {
  display: block;
  color: var(--navy);
  font-size: 4rem;
  line-height: 1;
}

.payment-summary span {
  color: var(--muted);
}

.journey-note {
  display: grid;
  gap: 6px;
  max-width: 760px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(var(--shadow-rgb), 0.08);
}

.journey-note strong {
  color: var(--navy);
  font-weight: 700;
}

.journey-note span {
  color: var(--muted);
  line-height: 1.55;
}

.form-shell {
  width: min(980px, calc(100vw - 40px));
  margin: 0 auto clamp(64px, 8vw, 96px);
}

.alert {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  font-weight: 600;
}

.alert.success {
  border-color: rgba(var(--lime-rgb), 0.7);
  background: rgba(var(--lime-rgb), 0.14);
}

.cv-builder-page .alert.success {
  border-color: rgba(var(--red-rgb), 0.38);
  background: rgba(var(--red-rgb), 0.10);
}

.alert.warning {
  border-color: rgba(var(--orange-rgb), 0.55);
  background: rgba(var(--orange-rgb), 0.12);
}

.alert.error {
  border-color: rgba(var(--red-rgb), 0.42);
  background: rgba(var(--red-rgb), 0.08);
}

.cv-form {
  display: grid;
  gap: 18px;
}

.cv-form fieldset {
  margin: 0;
  padding: clamp(22px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cv-form legend {
  padding: 0 8px;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 600;
}

.fieldset-note {
  color: var(--muted);
}

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

.managed-custom-field-grid {
  margin-top: 18px;
}

.managed-checkbox-group {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.managed-checkbox-group .current-choice {
  margin: 0;
}

.cv-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
}

.checkbox-card {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.checkbox-card + .checkbox-card {
  margin-top: 12px;
}

.checkbox-card input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--red);
}

.checkbox-card > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.checkbox-card strong {
  display: block;
  color: inherit;
  line-height: 1.35;
}

.checkbox-card small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
}

.configuration-form .checkbox-card + .configuration-status {
  margin-top: 16px;
}

.cv-form input,
.cv-form select,
.cv-form textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
}

.cv-form textarea {
  resize: vertical;
}

.cv-form input:focus,
.cv-form select:focus,
.cv-form textarea:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(var(--cyan-rgb), 0.16);
}

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

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

.checkbox-grid label,
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkbox-grid input,
.consent-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
}

.category-interest-group {
  display: grid;
  gap: 8px;
  margin: 2px 0;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.category-interest-group h3,
.category-interest-group p {
  margin: 0;
}

.category-interest-group h3 {
  color: var(--navy);
  font-size: 1rem;
}

.category-interest-group p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.category-interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 5px;
}

.cv-form .category-interest-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.cv-form .category-interest-grid input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px !important;
  margin: 0;
  padding: 0;
  accent-color: var(--red);
}

body.admin-console.admin-night .category-interest-group,
body.admin-console.admin-night .category-interest-grid label {
  color: var(--on-navy);
  background: var(--night-bg);
  border-color: rgba(var(--on-navy-rgb),.13);
}

body.admin-console.admin-night .category-interest-group h3 {
  color: var(--on-navy);
}

@media (max-width: 620px) {
  .category-interest-grid {
    grid-template-columns: 1fr;
  }
}

.file-field {
  margin-top: 8px;
}

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

.document-options-heading {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

.document-options-heading h3,
.document-options-heading p {
  margin: 0;
}

.document-upload-card {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 15px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.document-upload-card.is-open {
  background: var(--surface);
  border-color: rgba(var(--lime-rgb), 0.5);
  box-shadow: 0 10px 24px rgba(var(--shadow-rgb), 0.07);
}

.document-upload-card-identification {
  background: var(--soft);
}

.document-choice {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.document-choice {
  cursor: pointer;
}

.document-choice span:not(.document-chevron):not(.document-required-badge),
.document-choice strong {
  min-width: 0;
}

.document-choice-required {
  cursor: pointer;
}

.document-choice-check {
  display: inline-grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--on-lime);
  background: var(--cv-green-dark, var(--lime-dark));
  border-radius: 5px;
  font-size: .74rem;
  font-weight: 700;
}

.document-chevron {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .18s ease;
}

.document-upload-card.is-open .document-chevron {
  transform: rotate(180deg);
}

.document-choice input {
  flex: 0 0 18px;
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--cv-green, var(--lime-dark));
}

.document-required-badge {
  display: inline-flex;
  padding: 4px 8px;
  color: var(--on-lime);
  background: var(--cv-green-dark, var(--lime-dark));
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.document-optional-badge {
  display: inline-flex;
  padding: 4px 8px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.document-file-field {
  display: grid !important;
  gap: 8px;
}

.document-file-field[hidden] {
  display: none !important;
}

.document-file-title {
  display: inline;
}

.document-file-field small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.document-upload-progress {
  display: grid;
  gap: 6px;
  margin-top: 3px;
}

.document-upload-progress[hidden] {
  display: none !important;
}

.document-upload-track {
  display: block;
  height: 8px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.document-upload-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--cv-green, var(--lime-dark)));
  border-radius: inherit;
  transition: width .2s ease;
}

.document-upload-progress.is-complete .document-upload-track > span {
  background: var(--cv-green-dark, var(--lime-dark));
}

.document-upload-progress.is-error .document-upload-track > span {
  background: var(--red-dark);
}

.document-upload-status {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}

.document-upload-progress.is-complete .document-upload-status {
  color: var(--cv-green-dark, var(--lime-dark));
}

.document-upload-progress.is-error .document-upload-status {
  color: var(--red-dark);
}

@media (max-width: 620px) {
  .document-upload-list {
    grid-template-columns: 1fr;
  }

}

.consent-row {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 400;
}

.consent-row a,
.policy-content a {
  color: var(--red);
  font-weight: 600;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0 0;
}

.form-actions p {
  margin: 0;
  color: var(--muted);
}

.form-actions .button {
  border: 0;
  cursor: pointer;
}

.policy-hero {
  grid-template-columns: 1fr;
}

.policy-content {
  width: min(880px, calc(100vw - 40px));
  margin: 0 auto clamp(64px, 8vw, 96px);
  padding: clamp(24px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-content h2 {
  margin-top: 34px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.policy-content p {
  color: var(--muted);
}

.privacy-policy-page {
  background: var(--soft);
}

.privacy-hero {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  padding-bottom: clamp(54px, 7vw, 82px);
}

.privacy-hero-summary {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 30px;
  color: var(--on-navy);
  background: linear-gradient(145deg, var(--navy-2), var(--navy));
  border: 1px solid rgba(var(--on-navy-rgb), 0.14);
  border-radius: 16px;
  box-shadow: 0 26px 60px rgba(var(--shadow-rgb), 0.2);
}

.privacy-hero-summary strong {
  color: var(--lime);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
}

.privacy-hero-summary span {
  margin-top: auto;
  font-weight: 600;
}

.privacy-hero-summary small {
  margin-top: 5px;
  color: rgba(var(--on-navy-rgb), 0.66);
}

.privacy-policy-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: -34px auto clamp(64px, 8vw, 100px);
}

.policy-jump-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 24px -22px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(var(--shadow-rgb), 0.1);
}

.policy-jump-links a {
  padding: 9px 12px;
  color: var(--navy-2);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.policy-jump-links a:hover,
.policy-jump-links a:focus-visible {
  color: var(--on-red);
  background: var(--red);
  outline: none;
}

.policy-content-expanded {
  width: 100%;
  margin: 0;
  padding: clamp(54px, 7vw, 82px) clamp(24px, 6vw, 74px);
  border-radius: 16px;
}

.policy-intro-note {
  padding: 24px 26px;
  color: var(--navy-2);
  background: linear-gradient(90deg, rgba(var(--red-rgb), 0.07), rgba(var(--cyan-rgb), 0.09));
  border-left: 5px solid var(--red);
  border-radius: 10px;
}

.policy-intro-note strong {
  font-size: 1.08rem;
}

.policy-intro-note p {
  margin: 7px 0 0;
}

.policy-section {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 24px;
  padding: 40px 0;
  scroll-margin-top: 24px;
  border-bottom: 1px solid var(--line);
}

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

.policy-section .policy-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0;
  color: var(--red);
  background: rgba(var(--red-rgb), 0.07);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
}

.policy-section h2 {
  margin: 0 0 14px;
  color: var(--navy-2);
  letter-spacing: -0.025em;
}

.policy-section p {
  margin: 0 0 15px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 20px;
  padding-left: 21px;
  color: var(--muted);
}

.policy-section li::marker {
  color: var(--red);
}

.policy-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.policy-card-grid > div,
.retention-grid > div,
.policy-contact-grid > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.policy-card-grid strong,
.retention-grid strong,
.policy-contact-grid strong {
  color: var(--navy-2);
}

.policy-card-grid span,
.retention-grid span,
.policy-contact-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.retention-grid strong {
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 500;
}

.policy-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.policy-contact-grid a {
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .privacy-hero,
  .policy-card-grid,
  .retention-grid,
  .policy-contact-grid {
    grid-template-columns: 1fr;
  }

  .privacy-hero-summary {
    min-height: 160px;
  }

  .privacy-policy-shell {
    margin-top: -20px;
  }

  .policy-jump-links {
    margin-inline: 8px;
  }

  .policy-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.auth-layout,
.dashboard-hero,
.dashboard-shell {
  width: min(1160px, calc(100vw - 40px));
  margin-inline: auto;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.62fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(48px, 8vw, 90px) 0;
}

.employer-auth-layout {
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 0.55fr);
  align-items: start;
  min-height: auto;
  padding-top: clamp(42px, 6vw, 76px);
}

.employer-auth-layout .auth-card {
  position: sticky;
  top: 110px;
}

.employer-auth-image {
  min-height: clamp(220px, 30vw, 360px);
  margin-top: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(var(--shadow-rgb), 0.06), rgba(var(--shadow-rgb), 0.18)),
    url("static-media/employer-feature.jpg") center / cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-intro h1,
.dashboard-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.auth-card,
.dashboard-panel {
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.compact-form {
  gap: 15px;
}

.compact-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--red);
  font-weight: 600;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(46px, 7vw, 86px) 0 34px;
}

.profile-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 176px;
  min-width: 176px;
  height: 176px;
  padding: 20px;
  text-align: center;
  background:
    radial-gradient(circle at center, var(--surface) 58%, transparent 59%),
    conic-gradient(var(--lime), var(--cyan), var(--red), var(--lime));
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.profile-meter span {
  display: block;
  color: var(--navy);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}

.profile-meter p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.dashboard-shell {
  padding-bottom: clamp(64px, 8vw, 96px);
}

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

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.46fr);
  gap: 18px;
  align-items: start;
}

.dashboard-panel {
  box-shadow: none;
}

.dashboard-panel h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

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

.submission-list div {
  display: grid;
  gap: 4px;
  padding: 15px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.submission-list span {
  color: var(--red);
  font-weight: 600;
  text-transform: capitalize;
}

.submission-list small,
.muted-copy {
  color: var(--muted);
}

.next-steps {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.next-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.stat-grid div,
.stat-grid a {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-grid a {
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.stat-grid a:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--red-rgb), 0.28);
  box-shadow: 0 14px 32px rgba(var(--shadow-rgb), 0.08);
}

.stat-grid strong {
  display: block;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.stat-grid span {
  color: var(--muted);
}

.admin-search {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: min(560px, 100%);
}

.admin-search label {
  flex: 1;
}

.admin-search span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-table,
.public-job-list {
  display: grid;
  gap: 14px;
}

.job-row,
.public-job-card,
.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.public-job-card,
.empty-state {
  display: grid;
  align-items: start;
}

.job-row h2,
.public-job-card h2,
.empty-state h2 {
  margin-bottom: 6px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.job-row p,
.public-job-card p,
.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.row-actions form {
  margin: 0;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  color: var(--navy);
  background: var(--soft);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.status-cluster .status-pill {
  margin-bottom: 0;
}

.cv-production-panel .analytics-panel-heading {
  align-items: flex-start;
}

.cv-production-panel .analytics-panel-heading .status-pill {
  flex: 0 0 auto;
  width: auto;
  max-width: 140px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

.status-pill.published {
  color: var(--lime-dark);
  background: rgba(var(--lime-rgb), 0.24);
}

.status-pill.approved,
.status-pill.active {
  color: var(--lime-dark);
  background: rgba(var(--lime-rgb), 0.24);
}

.status-pill.pending,
.status-pill.pending_review,
.status-pill.registered {
  color: var(--orange-dark);
  background: rgba(var(--orange-rgb), 0.14);
}

.status-pill.document-optional {
  color: var(--orange-dark);
  background: rgba(var(--orange-rgb), 0.12);
}

.status-pill.document-required {
  color: var(--red-dark);
  background: rgba(var(--red-rgb), 0.12);
}

.status-pill.suspended,
.status-pill.declined,
.status-pill.rejected,
.status-pill.cv_cancelled {
  color: var(--red-dark);
  background: rgba(var(--red-rgb), 0.12);
}

.status-pill.vetted,
.status-pill.verified {
  color: var(--cyan-dark);
  background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.16), rgba(var(--lime-rgb), 0.18));
}

.status-pill.vetted::before,
.status-pill.verified::before {
  content: "✓";
  margin-right: 4px;
  font-weight: 800;
}

.status-pill.selected,
.status-pill.cv_requested,
.status-pill.payment_pending,
.status-pill.terms_discussion {
  color: var(--red-dark);
  background: rgba(var(--red-rgb), 0.12);
}

.status-pill.archived,
.status-pill.closed_lost {
  color: var(--muted);
  background: var(--soft);
}

.status-pill.identity_released,
.status-pill.placed,
.status-pill.hired {
  color: var(--lime-dark);
  background: rgba(var(--lime-rgb), 0.1);
}

.privacy-note,
.verified-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
}

.verified-note {
  color: var(--cyan-dark);
  background: rgba(var(--cyan-rgb), 0.09);
  border-color: rgba(var(--cyan-rgb), 0.22);
}

.status-pill.applied,
.status-pill.reviewing,
.status-pill.employer_review {
  color: var(--cyan-dark);
  background: rgba(var(--cyan-rgb), 0.09);
}

.status-pill.closed {
  color: var(--muted);
  background: var(--soft);
}

.status-pill.expired {
  color: var(--muted);
  background: var(--soft);
}

.status-pill.new_request,
.status-pill.awaiting_payment {
  color: var(--orange-dark);
  background: rgba(var(--orange-rgb), 0.14);
}

.status-pill.payment_received {
  color: var(--cyan-dark);
  background: rgba(var(--cyan-rgb), 0.09);
}

.status-pill.paid {
  color: var(--cyan-dark);
  background: rgba(var(--cyan-rgb), 0.09);
}

.status-pill.cv_complete {
  color: var(--lime-dark);
  background: rgba(var(--lime-rgb), 0.1);
}

.status-pill.cv_cancelled {
  color: var(--red-dark);
  background: rgba(var(--red-rgb), 0.12);
}

.dashboard-bottom-insights {
  margin-top: 18px;
}

.document-vault {
  margin-top: 18px;
}

.cv-maker-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: var(--surface);
}

.cv-maker-prompt div {
  display: grid;
  gap: 4px;
}

.cv-maker-prompt strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.cv-maker-prompt span {
  color: var(--muted);
}

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

.document-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.document-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.document-card p,
.document-card small {
  margin: 0;
  color: var(--muted);
}

.document-actions {
  display: grid;
  gap: 8px;
}

.document-actions form {
  display: grid;
  gap: 8px;
}

.document-actions input[type="file"] {
  width: 100%;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
  font-weight: 600;
}

body.admin-console.admin-night .document-card,
body.admin-night .document-card {
  background: var(--night-surface);
  border-color: rgba(var(--on-navy-rgb), 0.13);
}

body.admin-night .cv-maker-prompt {
  background: var(--night-surface);
  border-color: rgba(var(--on-navy-rgb), 0.13);
  border-left-color: var(--red);
}

body.admin-night .cv-maker-prompt strong {
  color: var(--on-navy);
}

@media (max-width: 720px) {
  .cv-maker-prompt {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Phase 24: Ready gate, unified application pipeline and role handoffs */
.status-pill.submitted,
.status-pill.reviewed,
.status-pill.shortlisted,
.status-pill.interview {
  color: var(--cyan-dark);
  background: rgba(var(--cyan-rgb), 0.09);
}

.status-pill.employer_selected,
.status-pill.admin_negotiation,
.status-pill.payment_pending {
  color: var(--orange-dark);
  background: rgba(var(--orange-rgb), 0.14);
}

.status-pill.candidate_accepted,
.status-pill.hired {
  color: var(--lime-dark);
  background: rgba(var(--lime-rgb), 0.16);
}

.status-pill.not_selected,
.status-pill.withdrawn,
.status-pill.candidate_declined,
.status-pill.employer_withdrew,
.status-pill.terms_not_agreed,
.status-pill.payment_overdue {
  color: var(--red-dark);
  background: rgba(var(--red-rgb), 0.12);
}

.portal-attention-panel {
  margin-bottom: 24px;
  border-left: 4px solid var(--orange);
}

.employer-application-list .inline-status-form,
.placement-response-actions,
.placement-response-actions form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.employer-application-list select {
  min-width: 155px;
}

.placement-response-card > div:first-child {
  min-width: 0;
}

.portal-notifications {
  margin-top: 24px;
}

.notification-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.notification-list article {
  padding: 15px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.notification-list article p {
  margin: 6px 0;
  color: var(--muted);
}

.notification-list article small {
  color: var(--muted);
}

body.admin-console.admin-night .notification-list article {
  color: var(--on-navy) !important;
  background: var(--night-bg) !important;
  border-color: rgba(var(--on-navy-rgb), 0.13) !important;
}

body.admin-console.admin-night .notification-list article strong {
  color: var(--on-navy) !important;
}

body.admin-console.admin-night .notification-list article p,
body.admin-console.admin-night .notification-list article small {
  color: rgba(var(--on-navy-rgb), .72) !important;
}

@media (max-width: 760px) {
  .notification-list {
    grid-template-columns: 1fr;
  }

  .employer-application-list .inline-status-form,
  .placement-response-actions,
  .placement-response-actions form {
    align-items: stretch;
    width: 100%;
    flex-direction: column;
  }
}

/* Job Seeker dashboard clarity pass */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.job-seeker-dashboard .dashboard-hero {
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: 20px;
}

.job-seeker-dashboard .dashboard-shell {
  padding-top: 12px !important;
}

.profile-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.job-seeker-dashboard .profile-meter {
  width: 118px;
  min-width: 118px;
  height: 118px;
  padding: 14px;
}

.job-seeker-dashboard .profile-meter span {
  font-size: 1.65rem;
}

.new-jobs-bell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 9px 13px 9px 10px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(var(--shadow-rgb), 0.07);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.new-jobs-bell:hover,
.new-jobs-bell:focus-visible {
  color: var(--navy);
  border-color: rgba(var(--red-rgb), 0.35);
  box-shadow: 0 12px 30px rgba(var(--red-rgb), 0.11);
  transform: translateY(-1px);
}

.new-jobs-bell > span:last-child {
  display: grid;
  gap: 1px;
}

.new-jobs-bell strong,
.new-jobs-bell small {
  line-height: 1.25;
}

.new-jobs-bell strong {
  font-size: 0.86rem;
}

.new-jobs-bell small {
  color: var(--muted);
  font-size: 0.72rem;
}

.bell-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  color: var(--red);
  background: rgba(var(--red-rgb), 0.09);
  border-radius: 999px;
}

.bell-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.new-jobs-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  color: var(--on-red);
  background: var(--red);
  border: 2px solid var(--surface);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
}

.job-seeker-dashboard .dashboard-grid {
  grid-template-columns: minmax(0, 1.48fr) minmax(280px, 0.52fr);
  gap: 16px;
}

.job-seeker-dashboard .dashboard-panel {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 14px;
}

.profile-inline-fields,
.profile-form .managed-custom-field-grid,
.profile-form .managed-custom-fields .form-grid {
  gap: 12px;
}

.profile-form .profile-control {
  position: relative;
  gap: 0;
}

.profile-form .profile-control input,
.profile-form .profile-control select,
.profile-form .profile-control textarea,
.profile-form .managed-custom-field-grid input,
.profile-form .managed-custom-field-grid select,
.profile-form .managed-custom-field-grid textarea,
.profile-form .managed-custom-fields input,
.profile-form .managed-custom-fields select,
.profile-form .managed-custom-fields textarea {
  min-height: 50px;
  padding: 14px 15px;
  background: var(--soft);
  border-color: var(--line);
  border-radius: 10px;
}

.profile-form textarea {
  min-height: 104px !important;
}

.profile-form input::placeholder,
.profile-form textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.profile-date-control .profile-date-placeholder {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  color: var(--muted);
  font-weight: 400;
  pointer-events: none;
  transform: translateY(-50%);
}

.profile-date-control:focus-within .profile-date-placeholder,
.profile-date-control.has-value .profile-date-placeholder {
  display: none;
}

.profile-date-control:not(.has-value) input {
  color: transparent;
}

.profile-date-control:not(.has-value):focus-within input {
  color: var(--ink);
}

.job-seeker-dashboard .category-interest-group {
  gap: 7px;
  margin: 2px 0 4px;
  padding: 14px;
  background: var(--soft);
  border-radius: 11px;
}

.job-seeker-dashboard .category-interest-grid {
  gap: 7px;
  margin-top: 2px;
}

.job-seeker-dashboard .cv-form .category-interest-grid label {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.profile-security-card {
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.profile-security-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.profile-security-card summary::-webkit-details-marker {
  display: none;
}

.profile-security-card summary > span:first-child {
  display: grid;
  gap: 2px;
}

.profile-security-card summary strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.profile-security-card summary small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.security-card-action {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-security-card[open] .profile-control {
  padding: 0 16px 16px;
}

.profile-save-button {
  justify-self: start;
  min-width: 150px;
}

.readiness-panel {
  background: linear-gradient(155deg, var(--surface) 0%, rgba(var(--red-rgb), .04) 100%) !important;
}

.readiness-heading {
  display: grid;
  gap: 12px;
}

.readiness-heading h2 {
  margin: 0;
}

.readiness-heading .status-pill {
  justify-self: start;
}

.readiness-copy {
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.readiness-primary-action {
  width: 100%;
  justify-content: center;
}

.readiness-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.readiness-links a {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.readiness-links a:hover {
  color: var(--red);
}

.document-vault {
  margin-top: 16px;
}

.document-intro {
  margin-bottom: 18px;
}

.document-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.document-row + .document-row {
  border-top: 1px solid var(--line);
}

.document-row summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 11px 14px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}

.document-row summary::-webkit-details-marker {
  display: none;
}

.document-row[open] summary,
.document-row summary:hover {
  background: var(--soft);
}

.document-type-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--red);
  background: rgba(var(--red-rgb), 0.08);
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

.document-summary-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.document-summary-copy strong {
  color: var(--navy);
  font-size: 0.92rem;
}

.document-summary-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.document-row[open] .document-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.document-row-controls {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 14px;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.document-row-controls > form:last-child {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-left: auto;
}

.document-row-controls form {
  margin-bottom: 0;
}

.document-file-input {
  display: grid !important;
  gap: 5px !important;
  color: var(--muted) !important;
  font-size: 0.72rem !important;
}

.document-file-input input {
  min-width: 220px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.76rem;
}

.job-seeker-dashboard .application-history,
.job-seeker-dashboard .portal-notifications {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .job-seeker-dashboard .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .readiness-panel {
    order: -1;
  }
}

@media (max-width: 760px) {
  .profile-hero-actions {
    width: 100%;
    justify-content: space-between;
  }

  .new-jobs-bell {
    flex: 1;
    max-width: 220px;
  }

  .job-seeker-dashboard .profile-meter {
    width: 96px;
    min-width: 96px;
    height: 96px;
  }

  .document-row summary {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
  }

  .document-row summary > .status-pill {
    display: none;
  }

  .document-row-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .document-row-controls > form:last-child {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .document-file-input input,
  .document-row-controls .button,
  .document-row-controls form {
    width: 100%;
    min-width: 0;
  }
}

/* v230 configuration dashboard and focused settings pages */
.configuration-hub,
.configuration-detail-page {
  display: grid;
  gap: 22px;
  padding-top: 42px;
  padding-bottom: 70px;
}

.configuration-hub > .eyebrow,
.configuration-hub > h1,
.configuration-detail-page h1,
.configuration-detail-page .configuration-page-copy p {
  margin: 0;
}

.configuration-intro {
  max-width: 760px;
}

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

.configuration-dashboard-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  min-height: 210px;
  padding: 26px;
  color: var(--navy-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(var(--shadow-rgb), 0.06);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.configuration-dashboard-card:hover,
.configuration-dashboard-card:focus-visible {
  border-color: rgba(var(--red-rgb), 0.42);
  box-shadow: 0 18px 46px rgba(var(--shadow-rgb), 0.12);
  transform: translateY(-2px);
}

.configuration-dashboard-icon,
.configuration-page-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--on-red);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 12px;
}

.configuration-dashboard-icon svg,
.configuration-page-icon svg {
  width: 28px;
  height: 28px;
}

.configuration-dashboard-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.configuration-dashboard-title {
  display: block;
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.configuration-dashboard-description {
  display: block;
  margin: 0;
  color: var(--muted);
}

.configuration-dashboard-status {
  align-self: flex-start;
  margin-top: 18px;
}

.configuration-dashboard-action {
  margin-top: auto;
  padding-top: 18px;
  color: var(--red);
  font-weight: 650;
}

.configuration-settings-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.configuration-settings-note p {
  margin: 4px 0 0;
  color: var(--muted);
}

.configuration-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.configuration-breadcrumbs a {
  color: var(--red);
  text-decoration: none;
}

.configuration-page-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 4px;
}

.configuration-page-copy {
  display: grid;
  gap: 4px;
}

.configuration-page-copy .eyebrow {
  margin: 0;
}

.configuration-page-copy p:last-child {
  max-width: 760px;
  color: var(--muted);
}

.configuration-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.configuration-form > *,
.configuration-standalone-panel,
.configuration-route > * {
  min-width: 0;
}

.configuration-form .settings-section,
.configuration-standalone-panel {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 12px;
}

.configuration-form .settings-section h2,
.configuration-standalone-panel h2,
.plan-panel h2 {
  margin: 0 0 10px;
}

.configuration-form .settings-section > .muted-copy,
.plan-panel > .muted-copy {
  margin: 0 0 20px;
}

.configuration-inline-alert {
  margin: 18px 0 0;
}

.configuration-actions,
.configuration-status,
.configuration-test {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.configuration-actions {
  justify-content: flex-start;
}

.configuration-colour-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.configuration-colour-control input[type="color"] {
  width: 64px;
  height: 48px;
  padding: 4px;
}

.configuration-colour-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 650;
}

.configuration-route-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

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

.configuration-action-toggle {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 17px 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.configuration-action-toggle input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.configuration-action-toggle span,
.configuration-action-toggle small {
  display: block;
}

.configuration-action-toggle small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.configuration-route {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(230px, 1fr) minmax(220px, 0.9fr);
  gap: 18px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.configuration-route p {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.configuration-route-enabled,
.configuration-route-users label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.configuration-route-enabled input,
.configuration-route-users input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 3px;
}

.configuration-route-users {
  display: grid;
  align-content: start;
  gap: 8px;
}

.configuration-route-users small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.configuration-detail-page code,
.configuration-detail-page .privacy-note {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.configuration-detail-page .settings-divider {
  height: 1px;
  margin: 26px 0;
  background: var(--line);
}

.email-log-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.email-log-table {
  min-width: 720px;
}

.configuration-test label {
  min-width: min(100%, 360px);
}

.configuration-section-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.configuration-section-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 18px;
  color: var(--navy-2);
  border-radius: 7px;
  font-weight: 650;
  text-decoration: none;
}

.configuration-section-tabs a.active {
  color: var(--on-navy);
  background: var(--navy-2);
}

.configuration-section-tabs a span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 6px;
  color: inherit;
  background: rgba(var(--muted-rgb), 0.16);
  border-radius: 999px;
  font-size: 0.78rem;
}

.plan-manager,
.plan-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.plan-manager-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.plan-manager-toolbar .muted-copy {
  margin: 0;
}

.plan-sort-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.plan-sort-status.is-success {
  color: var(--lime-dark);
}

.plan-sort-status.is-error {
  color: var(--red-dark);
}

.plan-manager-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(2, minmax(150px, 0.65fr)) minmax(110px, 0.45fr);
  align-items: start;
  gap: 14px;
  padding: 20px 20px 20px 64px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.plan-manager-row-new {
  padding-left: 20px;
}

.plan-manager-row.is-dragging {
  opacity: 0.5;
  border-color: var(--red);
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), 0.14);
}

.plan-drag-handle {
  position: absolute;
  top: 20px;
  left: 16px;
  display: grid;
  width: 34px;
  height: 48px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: grab;
  font: inherit;
  font-size: 1.15rem;
  letter-spacing: -0.26em;
  touch-action: none;
}

.plan-drag-handle:hover,
.plan-drag-handle:focus-visible {
  color: var(--red);
  border-color: var(--red);
  outline: none;
}

.plan-drag-handle:active {
  cursor: grabbing;
}

.plan-manager-description {
  grid-column: 1 / -2;
}

.plan-manager-active {
  display: flex !important;
  align-items: center;
  align-self: end;
  gap: 8px;
  min-height: 48px;
}

.plan-manager-active input,
.inline-check input {
  width: 18px;
  height: 18px;
}

.plan-manager-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.plan-manager-code {
  display: block;
  color: var(--muted);
}

.plan-add {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.plan-add h3 {
  margin: 0 0 6px;
}

.employer-plan-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(480px, 1.22fr);
  gap: 18px;
  align-items: start;
}

.plan-panel {
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.plan-card.inactive {
  opacity: 0.66;
}

.plan-card h3,
.plan-card p {
  margin: 0;
}

.plan-card p {
  margin-top: 6px;
  color: var(--muted);
}

.plan-meta,
.fee-preview,
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-meta {
  margin-top: 14px;
}

.plan-meta span {
  padding: 5px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
}

.fee-preview {
  margin-top: 14px;
}

.fee-preview div {
  display: grid;
  min-width: 128px;
  gap: 2px;
  padding: 10px 12px;
  background: var(--surface);
  border-left: 3px solid var(--red);
  border-radius: 6px;
}

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

.plan-actions {
  align-content: flex-start;
  justify-content: flex-end;
}

.plan-actions form {
  margin: 0;
}

body.admin-console.admin-night .configuration-dashboard-card,
body.admin-console.admin-night .configuration-section-tabs,
body.admin-console.admin-night .configuration-form .settings-section,
body.admin-console.admin-night .configuration-standalone-panel,
body.admin-console.admin-night .plan-panel {
  color: rgba(var(--on-navy-rgb), .72);
  background: var(--night-bg);
  border-color: rgba(var(--on-navy-rgb), 0.12);
}

body.admin-console.admin-night .configuration-dashboard-copy p,
body.admin-console.admin-night .configuration-page-copy p:last-child,
body.admin-console.admin-night .configuration-form .muted-copy,
body.admin-console.admin-night .plan-panel .muted-copy,
body.admin-console.admin-night .plan-card p,
body.admin-console.admin-night .configuration-route p,
body.admin-console.admin-night .configuration-route-users small {
  color: rgba(var(--on-navy-rgb), .72);
}

body.admin-console.admin-night .configuration-settings-note,
body.admin-console.admin-night .configuration-route,
body.admin-console.admin-night .configuration-action-toggle,
body.admin-console.admin-night .plan-manager-row,
body.admin-console.admin-night .plan-card {
  background: var(--night-surface);
  border-color: rgba(var(--on-navy-rgb), 0.12);
}

body.admin-console.admin-night .plan-drag-handle {
  color: rgba(var(--on-navy-rgb), .72);
  border-color: rgba(var(--on-navy-rgb), .18);
}

body.admin-console.admin-night .plan-drag-handle:hover,
body.admin-console.admin-night .plan-drag-handle:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
}

body.admin-console.admin-night .plan-sort-status.is-success {
  color: var(--lime);
}

body.admin-console.admin-night .configuration-section-tabs a,
body.admin-console.admin-night .configuration-dashboard-card {
  color: rgba(var(--on-navy-rgb), .72);
}

body.admin-console.admin-night .configuration-section-tabs a.active {
  background: var(--red);
}

body.admin-console.admin-night .plan-meta span,
body.admin-console.admin-night .fee-preview div {
  color: rgba(var(--on-navy-rgb), .72);
  background: var(--night-bg);
  border-color: rgba(var(--on-navy-rgb), 0.1);
}

@media (max-width: 1080px) {
  .configuration-route {
    grid-template-columns: 1fr 1fr;
  }

  .configuration-route > label:last-child {
    grid-column: 1 / -1;
  }

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

  .plan-manager-description {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .configuration-hub,
  .configuration-detail-page {
    gap: 18px;
    padding-top: 26px;
  }

  .configuration-card-grid,
  .configuration-route,
  .configuration-action-grid,
  .plan-manager-row {
    grid-template-columns: 1fr;
  }

  .configuration-dashboard-card {
    min-height: 0;
    padding: 21px;
  }

  .configuration-route > label:last-child,
  .plan-manager-description {
    grid-column: auto;
  }

  .configuration-settings-note,
  .configuration-page-heading,
  .configuration-section-tabs,
  .plan-manager-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .configuration-section-tabs a {
    width: 100%;
    justify-content: space-between;
  }

  .configuration-test {
    align-items: stretch;
    flex-direction: column;
  }

  .configuration-test .button,
  .configuration-actions .button,
  .plan-manager-actions .button {
    width: 100%;
  }

  .configuration-actions,
  .plan-manager-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .plan-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .configuration-dashboard-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .configuration-dashboard-icon,
  .configuration-page-icon {
    width: 46px;
    height: 46px;
  }

  .configuration-dashboard-icon svg,
  .configuration-page-icon svg {
    width: 23px;
    height: 23px;
  }

  .configuration-page-heading {
    flex-direction: row;
  }
}

.placement-history {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.placement-history h3,
.placement-history p {
  margin: 0;
}

.placement-history-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.placement-history-card > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

body.admin-console.admin-night .placement-history-card {
  background: var(--night-surface);
  border-color: rgba(var(--on-navy-rgb),0.13);
}

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

.detail-heading h1 {
  margin-bottom: 10px;
}

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

.detail-panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-panel.wide {
  grid-column: 1 / -1;
}

.detail-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.settings-form {
  display: grid;
  gap: 22px;
}

.settings-section h2 {
  margin-bottom: 20px;
  font-size: clamp(1.9rem, 4.2vw, 4rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.settings-toggle-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 14px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-toggle-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
}

.detail-panel p {
  color: var(--muted);
}

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

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

.detail-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.detail-list dd {
  margin: 0;
  color: var(--navy);
}

.plain-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list span {
  color: var(--muted);
  font-size: 0.86rem;
}

.compact-file-list {
  margin-top: 2px;
}

.compact-file-list a,
.plain-list a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.compact-file-list a:hover,
.plain-list a:hover {
  text-decoration: underline;
}

.compact-edit {
  width: fit-content;
  margin-top: 8px;
  padding: 9px 12px;
  font-size: 0.88rem;
}

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

.admin-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: 86vh;
  padding: 24px;
  overflow: auto;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(var(--shadow-rgb), 0.22);
}

.admin-modal::backdrop {
  background: rgba(var(--shadow-rgb), 0.45);
}

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

.modal-heading h2 {
  margin: 0;
  font-size: 1.65rem;
}

.modal-close {
  padding: 8px 10px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.confirm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cv-production-panel {
  margin-bottom: 22px;
}

.cv-workflow-actions {
  justify-content: flex-start;
  margin: 14px 0 18px;
}

.compact-download {
  width: fit-content;
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

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

.compact-admin-page {
  width: min(920px, calc(100vw - 40px));
}

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

.compact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compact-list a:hover {
  border-color: rgba(var(--red-rgb), 0.35);
}

.compact-list strong {
  color: var(--red);
  font-size: 0.9rem;
}

.instruction-list {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
}

.profile-upload {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.profile-upload img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.admin-footer {
  padding: 24px 20px 34px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.admin-night {
  color: rgba(var(--on-navy-rgb), .72);
  background: var(--night-bg);
}

body.admin-console.admin-night {
  background: var(--night-bg);
}

.admin-night .site-header,
.admin-night .detail-panel,
.admin-night .compact-list a,
.admin-night .job-row,
.admin-night .empty-state {
  background: var(--night-surface);
  border-color: rgba(var(--on-navy-rgb), 0.12);
}

.admin-night h1,
.admin-night h2,
.admin-night .detail-list dd,
.admin-night .compact-list a {
  color: rgba(var(--on-navy-rgb), .72);
}

.public-search {
  max-width: none;
  margin-top: 0;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-nav-wrap {
    margin-left: auto;
  }

  .admin-nav-links {
    order: initial;
    flex-basis: auto;
    max-width: calc(100vw - 270px);
  }

  .header-action {
    margin-left: auto;
  }

  .hero,
  .split-section,
  .trust-section,
  .page-hero,
  .auth-layout,
  .dashboard-grid,
  .detail-grid,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .employer-auth-layout .auth-card {
    position: static;
  }

  .admin-page-heading,
  .admin-search {
    align-items: stretch;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    padding: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    padding-inline: 18px;
  }

  .brand img {
    width: 190px;
  }

  .header-action {
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero {
    padding: 42px 20px 58px;
  }

  .job-search,
  .choice-grid,
  .process-grid,
  .mini-dashboard,
  .form-grid,
  .checkbox-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .job-search label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }

  .job-search label:nth-child(2) {
    border-bottom: 0;
  }

  .mini-dashboard div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mini-dashboard div:last-child {
    border-bottom: 0;
  }

  .cta-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-section .button {
    width: 100%;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

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

  .row-actions .button {
    width: 100%;
  }

  .profile-upload,
  .compact-list a {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Admin console refinement */
body.admin-console {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--surface) 0, var(--surface) 38%, var(--soft) 100%);
}

.admin-header {
  min-height: 86px;
  padding-block: 12px;
}

.admin-header .brand img {
  width: 218px;
}

.admin-nav-wrap {
  flex: 1;
  min-width: 0;
}

.admin-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 30px);
  flex: 1 1 auto;
  margin-left: auto;
}

.admin-nav-links a {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  white-space: nowrap;
}

.admin-nav-links a.active,
.admin-nav-links a:hover {
  color: var(--red);
}

.admin-nav-links a.active::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--red);
  border-radius: 999px;
  content: "";
}

.admin-menu {
  position: relative;
  flex: 0 0 auto;
}

.admin-menu-button {
  display: grid;
  place-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
}

.admin-menu-button:hover img,
.admin-menu-button:focus-visible img {
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.16);
}

.admin-menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 2.5px 0;
  background: var(--navy);
  border-radius: 999px;
}

.admin-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 230px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(var(--shadow-rgb), 0.18);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.admin-menu:hover .admin-menu-panel,
.admin-menu:focus-within .admin-menu-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.admin-menu-panel a {
  padding: 11px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-weight: 600;
}

.admin-menu-panel a:hover,
.admin-menu-panel a.active {
  color: var(--red);
  background: var(--soft);
}

.admin-menu-panel a:last-child {
  margin-top: 8px;
  padding-top: 13px;
  color: var(--navy);
  border-top: 1px solid var(--line);
}

.dashboard-shell {
  width: min(1180px, calc(100vw - 48px));
}

.dashboard-shell,
.compact-admin-page {
  padding-top: clamp(34px, 4.8vw, 58px) !important;
}

.dashboard-shell > .eyebrow,
.admin-page-heading .eyebrow,
.detail-heading .eyebrow {
  margin-bottom: 10px;
}

.dashboard-shell > h1,
.admin-page-heading h1,
.detail-heading h1 {
  margin: 0 0 24px;
  font-size: clamp(2.45rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.dashboard-shell .detail-panel h2,
.dashboard-shell .dashboard-panel h2,
.dashboard-shell > h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.12;
}

.admin-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  align-items: end;
  gap: 22px;
}

.admin-search {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-heading-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
}

.admin-heading-actions .admin-search {
  flex: 1 1 420px;
}

.admin-search input {
  min-height: 44px;
  background: var(--soft);
  border-color: transparent;
}

.job-row,
.empty-state,
.detail-panel,
.dashboard-panel,
.stat-grid div,
.stat-grid a,
.compact-list a {
  box-shadow: 0 12px 38px rgba(var(--shadow-rgb), 0.05);
}

.job-row {
  min-height: 112px;
}

.row-actions .button,
.row-actions button,
.row-actions select {
  min-height: 46px;
}

.compact-list {
  max-width: 760px;
}

.compact-list a {
  flex-direction: row;
  padding: 15px 18px;
}

.instruction-list {
  margin-bottom: 20px;
  padding: 18px 18px 18px 38px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-upload {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-footer {
  width: min(1180px, calc(100vw - 48px));
  margin: auto auto 0;
  padding: 32px 0 42px;
  font-size: 0.9rem;
  text-align: left;
  border-top: 0;
}

@media (max-width: 980px) {
  .admin-header {
    align-items: flex-start;
  }

  .admin-nav-wrap {
    flex: 1 1 100%;
    justify-content: flex-end;
  }

  .admin-nav-links {
    order: 0;
    flex-basis: auto;
    max-width: none;
    overflow-x: auto;
  }

  .admin-page-heading {
    grid-template-columns: 1fr;
  }

  .admin-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .admin-header .brand img {
    width: 176px;
    min-width: 176px;
  }

  .admin-nav-wrap {
    gap: 10px;
  }

  .admin-nav-links {
    gap: 16px;
    font-size: 0.88rem;
  }

  .dashboard-shell,
  .compact-admin-page,
  .admin-footer {
    width: min(100% - 32px, 1180px);
  }

  .dashboard-shell > h1,
  .admin-page-heading h1,
  .detail-heading h1 {
    font-size: clamp(2.15rem, 13vw, 3.4rem);
  }

  .compact-list a {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Backend dark mode final override */
body.admin-console.admin-night {
  color: var(--on-navy) !important;
  background: var(--night-bg) !important;
}

body.admin-console.admin-night .site-header,
body.admin-console.admin-night .admin-menu-panel,
body.admin-console.admin-night .auth-card,
body.admin-console.admin-night .dashboard-panel,
body.admin-console.admin-night .detail-panel,
body.admin-console.admin-night .job-row,
body.admin-console.admin-night .empty-state,
body.admin-console.admin-night .stat-grid div,
body.admin-console.admin-night .stat-grid a,
body.admin-console.admin-night .compact-list a,
body.admin-console.admin-night .admin-search,
body.admin-console.admin-night .profile-upload,
body.admin-console.admin-night .instruction-list,
body.admin-console.admin-night .submission-list div,
body.admin-console.admin-night .admin-modal {
  color: var(--on-navy) !important;
  background: var(--night-surface) !important;
  border-color: rgba(var(--on-navy-rgb), 0.13) !important;
}

body.admin-console.admin-night h1,
body.admin-console.admin-night h2,
body.admin-console.admin-night h3,
body.admin-console.admin-night label,
body.admin-console.admin-night .detail-list dd,
body.admin-console.admin-night .job-row h2,
body.admin-console.admin-night .compact-list span,
body.admin-console.admin-night .compact-list a {
  color: var(--on-navy) !important;
}

body.admin-console.admin-night p,
body.admin-console.admin-night .muted-copy,
body.admin-console.admin-night .job-row p,
body.admin-console.admin-night .detail-list dt,
body.admin-console.admin-night .stat-grid span,
body.admin-console.admin-night .nav-links a {
  color: rgba(var(--on-navy-rgb), .72) !important;
}

body.admin-console.admin-night .nav-links a.active,
body.admin-console.admin-night .nav-links a:hover,
body.admin-console.admin-night .admin-menu-panel a.active,
body.admin-console.admin-night .admin-menu-panel a:hover,
body.admin-console.admin-night .eyebrow {
  color: var(--orange) !important;
}

body.admin-console.admin-night .admin-menu-panel a {
  color: rgba(var(--on-navy-rgb), .72) !important;
}

body.admin-console.admin-night .admin-menu-panel a:last-child {
  color: var(--red) !important;
  border-top-color: rgba(var(--on-navy-rgb), 0.16) !important;
}

body.admin-console.admin-night .admin-menu-panel a:hover,
body.admin-console.admin-night .admin-menu-panel a.active {
  color: var(--orange) !important;
  background: rgba(var(--on-navy-rgb), 0.06) !important;
}

body.admin-console.admin-night input,
body.admin-console.admin-night textarea,
body.admin-console.admin-night select {
  color: var(--on-navy) !important;
  background: var(--night-bg) !important;
  border-color: rgba(var(--on-navy-rgb), 0.18) !important;
}

body.admin-console.admin-night input::placeholder,
body.admin-console.admin-night textarea::placeholder {
  color: rgba(var(--on-navy-rgb), .72) !important;
}

body.admin-console.admin-night .admin-menu-button,
body.admin-console.admin-night .secondary {
  color: var(--on-navy) !important;
  background: var(--night-bg) !important;
  border-color: rgba(var(--on-navy-rgb), 0.16) !important;
}

body.admin-console.admin-night .admin-menu-button {
  background: transparent !important;
  border-color: transparent !important;
}

body.admin-console.admin-night .admin-menu-button:hover img,
body.admin-console.admin-night .admin-menu-button:focus-visible img {
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.28) !important;
}

body.admin-console.admin-night .cv-form fieldset {
  background: rgba(var(--shadow-rgb), 0.72) !important;
  border-color: rgba(var(--on-navy-rgb), 0.14) !important;
}

body.admin-console.admin-night .cv-form legend {
  color: var(--on-navy) !important;
  background: var(--night-surface) !important;
}

body.admin-console.admin-night .checkbox-card {
  color: var(--on-navy) !important;
  background: rgba(var(--shadow-rgb), 0.82) !important;
  border-color: rgba(var(--on-navy-rgb), 0.13) !important;
}

body.admin-console.admin-night .checkbox-card small {
  color: rgba(var(--on-navy-rgb), .72) !important;
}

body.admin-console.admin-night .checkbox-grid label {
  color: var(--on-navy) !important;
  background: rgba(var(--shadow-rgb), 0.82) !important;
  border-color: rgba(var(--on-navy-rgb), 0.12) !important;
}

body.admin-console.admin-night .checkbox-grid input {
  background: var(--night-bg) !important;
  border-color: rgba(var(--on-navy-rgb), 0.28) !important;
}

body.admin-console.admin-night .settings-toggle-row {
  color: var(--on-navy) !important;
  background: rgba(var(--shadow-rgb), 0.82) !important;
  border-color: rgba(var(--on-navy-rgb), 0.12) !important;
}

body.admin-console.admin-night .status-pill {
  color: var(--on-navy) !important;
  background: rgba(var(--on-navy-rgb), 0.08) !important;
}

body.admin-console.admin-night .status-pill.published,
body.admin-console.admin-night .status-pill.approved,
body.admin-console.admin-night .status-pill.active,
body.admin-console.admin-night .status-pill.cv_complete {
  color: var(--lime) !important;
  background: rgba(var(--lime-rgb), 0.18) !important;
}

body.admin-console.admin-night .status-pill.pending,
body.admin-console.admin-night .status-pill.pending_review,
body.admin-console.admin-night .status-pill.registered,
body.admin-console.admin-night .status-pill.new_request,
body.admin-console.admin-night .status-pill.awaiting_payment,
body.admin-console.admin-night .status-pill.document-optional {
  color: var(--orange) !important;
  background: rgba(var(--orange-rgb), 0.2) !important;
}

body.admin-console.admin-night .status-pill.payment_received,
body.admin-console.admin-night .status-pill.paid,
body.admin-console.admin-night .status-pill.applied,
body.admin-console.admin-night .status-pill.reviewing,
body.admin-console.admin-night .status-pill.employer_review {
  color: var(--cyan) !important;
  background: rgba(var(--cyan-rgb), 0.18) !important;
}

body.admin-console.admin-night .status-pill.closed,
body.admin-console.admin-night .status-pill.suspended,
body.admin-console.admin-night .status-pill.declined,
body.admin-console.admin-night .status-pill.rejected,
body.admin-console.admin-night .status-pill.cv_cancelled,
body.admin-console.admin-night .status-pill.document-required {
  color: var(--red) !important;
  background: rgba(var(--red-rgb), 0.22) !important;
}

body.admin-console.admin-night .alert {
  color: var(--on-navy) !important;
  background: rgba(var(--on-navy-rgb), 0.06) !important;
  border-color: rgba(var(--on-navy-rgb), 0.16) !important;
}

body.admin-console.admin-night .alert.success {
  color: var(--lime) !important;
  background: rgba(var(--lime-rgb), 0.16) !important;
  border-color: rgba(var(--lime-rgb), 0.5) !important;
}

body.admin-console.admin-night .alert.warning {
  color: var(--orange) !important;
  background: rgba(var(--orange-rgb), 0.18) !important;
  border-color: rgba(var(--orange-rgb), 0.6) !important;
}

body.admin-console.admin-night .alert.error {
  color: var(--red) !important;
  background: rgba(var(--red-rgb), 0.18) !important;
  border-color: rgba(var(--red-rgb), 0.56) !important;
}

body.admin-console.admin-night .admin-footer {
  color: rgba(var(--on-navy-rgb), .72) !important;
}

/* Admin analytics */
.analytics-section {
  display: grid;
  gap: 16px;
  margin-top: clamp(30px, 5vw, 54px);
}

.analytics-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.analytics-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.analytics-heading > p {
  max-width: 430px;
  margin-bottom: 8px;
  color: var(--muted);
}

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

.insight-card {
  position: relative;
  min-height: 142px;
  padding: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(var(--shadow-rgb), 0.045);
}

.insight-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
}

.insight-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.insight-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
}

.insight-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.accent-red::before {
  background: var(--red);
}

.accent-cyan::before {
  background: var(--cyan);
}

.accent-orange::before {
  background: var(--orange);
}

.accent-lime::before {
  background: var(--lime);
}

.analytics-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 12px;
}

.analytics-panel {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(var(--shadow-rgb), 0.045);
}

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

.analytics-panel-heading h3 {
  margin-bottom: 0;
}

.analytics-panel-heading a {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 600;
}

.pipeline-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.pipeline-bars div {
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pipeline-bars span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.pipeline-bars strong {
  color: var(--navy);
  font-size: 1.6rem;
}

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

.activity-list li {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.activity-list strong {
  color: var(--navy);
}

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

body.admin-console.admin-night .analytics-heading > p,
body.admin-console.admin-night .insight-card span,
body.admin-console.admin-night .insight-card p,
body.admin-console.admin-night .pipeline-bars span,
body.admin-console.admin-night .activity-list small {
  color: rgba(var(--on-navy-rgb), .72) !important;
}

body.admin-console.admin-night .insight-card,
body.admin-console.admin-night .analytics-panel,
body.admin-console.admin-night .activity-list li,
body.admin-console.admin-night .pipeline-bars div {
  color: var(--on-navy) !important;
  background: var(--night-surface) !important;
  border-color: rgba(var(--on-navy-rgb), 0.13) !important;
  box-shadow: none !important;
}

body.admin-console.admin-night .insight-card strong,
body.admin-console.admin-night .pipeline-bars strong,
body.admin-console.admin-night .activity-list strong {
  color: var(--on-navy) !important;
}

body.admin-console.admin-night .analytics-panel-heading a {
  color: var(--red) !important;
}

@media (max-width: 1080px) {
  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .analytics-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

/* Admin polish pass v2 */
body.admin-console {
  min-height: 100vh;
}

.admin-header {
  min-height: 74px !important;
  padding: 10px clamp(24px, 5vw, 72px) !important;
}

.admin-header .brand img {
  width: 194px !important;
  min-width: 168px !important;
}

.admin-nav-wrap {
  width: auto !important;
}

.admin-nav-links {
  gap: clamp(18px, 2vw, 28px) !important;
  font-size: 0.94rem !important;
}

.admin-menu-button {
  width: 42px !important;
  height: 42px !important;
}

.dashboard-shell,
.compact-admin-page {
  width: min(1120px, calc(100vw - 64px)) !important;
  padding-top: clamp(30px, 4vw, 46px) !important;
  padding-bottom: 42px !important;
}

.dashboard-shell > .eyebrow,
.admin-page-heading .eyebrow,
.detail-heading .eyebrow {
  margin-bottom: 8px !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
}

.dashboard-shell > h1,
.admin-page-heading h1,
.detail-heading h1 {
  max-width: 820px;
  margin-bottom: 22px !important;
  font-size: clamp(2.15rem, 4.2vw, 3.7rem) !important;
  line-height: 1.02 !important;
}

.dashboard-shell .detail-panel h2,
.dashboard-shell .dashboard-panel h2,
.dashboard-shell > h2 {
  margin-bottom: 14px !important;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem) !important;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 12px !important;
}

.stat-grid div,
.stat-grid a {
  min-height: 96px;
  padding: 18px 20px !important;
}

.stat-grid strong {
  font-size: 1.75rem !important;
}

.stat-grid span {
  font-size: 0.95rem !important;
}

.stat-grid .stat-card-cv {
  border-left: 4px solid var(--lime) !important;
}

.stat-grid .stat-card-seeker,
.stat-grid .stat-card-applications {
  border-left: 4px solid var(--red) !important;
}

.stat-grid .stat-card-employer,
.stat-grid .stat-card-jobs {
  border-left: 4px solid var(--cyan) !important;
}

.stat-grid .stat-card-cv strong {
  color: var(--lime-dark) !important;
}

.stat-grid .stat-card-seeker strong,
.stat-grid .stat-card-applications strong {
  color: var(--red) !important;
}

.stat-grid .stat-card-employer strong,
.stat-grid .stat-card-jobs strong {
  color: var(--cyan) !important;
}

.job-row,
.detail-panel,
.dashboard-panel,
.empty-state,
.compact-list a,
.stat-grid div,
.stat-grid a {
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(var(--shadow-rgb), 0.045) !important;
}

.job-row {
  min-height: 96px !important;
  padding: 18px 20px !important;
}

.job-row h2,
.public-job-card h2,
.empty-state h2 {
  font-size: clamp(1.1rem, 1.5vw, 1.45rem) !important;
}

.job-row p,
.empty-state p,
.muted-copy {
  font-size: 0.95rem !important;
}

.status-pill {
  margin-bottom: 8px !important;
  padding: 4px 8px !important;
  font-size: 0.7rem !important;
}

.detail-panel {
  padding: 20px !important;
}

.detail-grid {
  gap: 14px !important;
}

.detail-list {
  gap: 10px !important;
}

.detail-list div {
  gap: 2px !important;
}

.admin-page-heading {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px) !important;
  margin-bottom: 16px !important;
}

.admin-search {
  padding: 8px !important;
}

.admin-search span {
  margin-bottom: 5px !important;
}

.admin-search input,
.cv-form input,
.cv-form select,
.cv-form textarea {
  min-height: 42px !important;
  border-radius: 7px !important;
  font-size: 0.95rem !important;
}

.cv-form {
  gap: 14px !important;
}

.form-grid {
  gap: 14px !important;
}

.cv-form fieldset {
  padding: 20px !important;
  border-radius: 8px !important;
}

.cv-form legend {
  padding-inline: 8px !important;
  font-size: 1rem !important;
}

.button,
.header-action,
.job-search button {
  min-height: 42px !important;
  padding-inline: 18px !important;
}

.compact-list {
  max-width: 680px !important;
}

.compact-list a {
  min-height: 56px !important;
  padding: 14px 16px !important;
}

.instruction-list {
  padding: 14px 16px 14px 34px !important;
}

.profile-upload {
  padding: 14px !important;
}

.profile-upload img {
  width: 72px !important;
  height: 72px !important;
}

.admin-footer {
  width: min(1120px, calc(100vw - 64px)) !important;
  margin-top: auto !important;
  padding: 18px 0 28px !important;
  font-size: 0.82rem !important;
}

body.admin-console.admin-night .job-row,
body.admin-console.admin-night .detail-panel,
body.admin-console.admin-night .dashboard-panel,
body.admin-console.admin-night .empty-state,
body.admin-console.admin-night .compact-list a,
body.admin-console.admin-night .stat-grid div,
body.admin-console.admin-night .stat-grid a {
  box-shadow: none !important;
}

@media (max-width: 1080px) {
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 780px) {
  .admin-header {
    align-items: center !important;
    flex-wrap: wrap !important;
  }

  .admin-nav-wrap {
    flex-basis: 100% !important;
  }

  .admin-nav-links {
    justify-content: flex-start !important;
    overflow-x: auto !important;
  }

  .dashboard-shell,
  .compact-admin-page,
  .admin-footer {
    width: min(100% - 32px, 1120px) !important;
  }

  .stat-grid,
  .admin-page-heading {
    grid-template-columns: 1fr !important;
  }
}

/* Public UI polish pass */
body:not(.admin-console) {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--surface) 46%, var(--soft) 100%);
}

body:not(.admin-console) .site-header {
  min-height: 76px;
  padding-block: 10px;
}

body:not(.admin-console) .brand img {
  width: 204px;
  min-width: 172px;
}

body:not(.admin-console) .nav-links {
  gap: clamp(16px, 2vw, 28px);
  font-size: 0.92rem;
}

body:not(.admin-console) .header-action {
  min-height: 42px;
  padding-inline: 18px;
}

body:not(.admin-console) .hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.66fr);
  min-height: calc(100vh - 76px);
  padding-top: clamp(46px, 6vw, 78px);
  padding-bottom: clamp(48px, 6vw, 82px);
}

body:not(.admin-console) h1 {
  max-width: 790px;
  font-size: clamp(2.7rem, 5.4vw, 5.05rem);
  letter-spacing: 0;
}

body:not(.admin-console) h2 {
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  letter-spacing: 0;
}

body:not(.admin-console) .hero-lead {
  max-width: 670px;
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
}

body:not(.admin-console) .job-search {
  max-width: 850px;
  margin-top: 30px;
  padding: 8px;
  border-color: var(--line);
  box-shadow: 0 18px 46px rgba(var(--shadow-rgb), 0.09);
}

body:not(.admin-console) .job-search label {
  padding-inline: 13px;
}

body:not(.admin-console) .job-search button,
body:not(.admin-console) .button,
body:not(.admin-console) .header-action {
  min-height: 42px;
}

body:not(.admin-console) .primary {
  color: var(--on-red);
  background: var(--red);
  box-shadow: 0 12px 26px rgba(var(--red-rgb), 0.2);
}

body:not(.admin-console) .secondary {
  background: rgba(var(--surface-rgb), 0.86);
}

.quick-links,
.search-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 14px 0;
}

.quick-links {
  margin-top: -28px;
  margin-bottom: 22px;
}

.quick-links span,
.search-support span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.quick-links a,
.search-support a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.quick-links a:hover,
.search-support a:hover {
  color: var(--red);
  border-color: rgba(var(--red-rgb), 0.32);
}

body:not(.admin-console) .hero-panel {
  padding: 10px;
}

body:not(.admin-console) .hero-panel::before {
  inset: 54px 0 20px;
  box-shadow: 0 18px 50px rgba(var(--shadow-rgb), 0.09);
}

body:not(.admin-console) .status-card,
body:not(.admin-console) .match-card,
body:not(.admin-console) .mini-dashboard,
body:not(.admin-console) .choice-card,
body:not(.admin-console) .process article,
body:not(.admin-console) .payment-summary,
body:not(.admin-console) .cv-form fieldset,
body:not(.admin-console) .policy-content,
body:not(.admin-console) .public-job-card,
body:not(.admin-console) .empty-state {
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(var(--shadow-rgb), 0.055);
}

body:not(.admin-console) .section {
  padding-top: clamp(56px, 7vw, 86px);
  padding-bottom: clamp(56px, 7vw, 86px);
}

body:not(.admin-console) .choice-card,
body:not(.admin-console) .process article {
  min-height: auto;
  padding: 24px;
}

body:not(.admin-console) .split-section {
  padding-top: clamp(58px, 7vw, 88px);
  padding-bottom: clamp(58px, 7vw, 88px);
}

body:not(.admin-console) .feature-list div {
  padding: 16px;
}

body:not(.admin-console) .trust-section {
  align-items: center;
}

body:not(.admin-console) .cta-section {
  margin-top: 12px;
  margin-bottom: 56px;
  box-shadow: 0 20px 54px rgba(var(--shadow-rgb), 0.16);
}

body:not(.admin-console) .page-hero {
  padding-top: clamp(44px, 6vw, 76px);
}

body:not(.admin-console) .page-hero h1 {
  font-size: clamp(2.35rem, 4.7vw, 4.35rem);
}

.search-support {
  width: 100%;
  margin: 8px 0 18px;
  padding: 0;
}

.public-job-list {
  gap: 12px;
}

.public-job-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  padding: 22px 24px;
}

.public-job-card > div:first-child,
.job-card-body {
  grid-column: 1;
}

.job-card-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  gap: 10px;
  min-width: 190px;
}

.job-card-actions .button {
  width: 100%;
}

.job-card-actions .compact-form {
  width: min(340px, 34vw);
}

.job-meta {
  font-weight: 600;
}

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

.job-card-body p {
  max-width: 760px;
}

body:not(.admin-console) .form-shell {
  width: min(1040px, calc(100vw - 40px));
}

body:not(.admin-console) .cv-form {
  gap: 14px;
}

body:not(.admin-console) .cv-form fieldset {
  padding: clamp(20px, 3vw, 28px);
}

body:not(.admin-console) .fieldset-note {
  max-width: 760px;
  margin-bottom: 16px;
}

body:not(.admin-console) .cv-form input,
body:not(.admin-console) .cv-form select,
body:not(.admin-console) .cv-form textarea {
  min-height: 44px;
  padding: 11px 13px;
}

body:not(.admin-console) .site-footer {
  padding-top: 24px;
  padding-bottom: 34px;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  body:not(.admin-console) .site-header {
    align-items: center;
  }

  body:not(.admin-console) .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  body:not(.admin-console) .hero,
  .public-job-card {
    grid-template-columns: 1fr;
  }

  .job-card-actions,
  .public-job-card > div:first-child,
  .job-card-body {
    grid-column: 1;
  }

  .job-card-actions {
    grid-row: auto;
    min-width: 0;
  }

  .job-card-actions .compact-form {
    width: 100%;
  }

  .quick-links {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  body:not(.admin-console) .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 10px 18px 12px;
  }

  body:not(.admin-console) .brand img {
    width: 150px;
    min-width: 0;
  }

  body:not(.admin-console) .header-action {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    padding-inline: 14px;
  }

  body:not(.admin-console) .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    flex-basis: auto;
    gap: 18px;
    width: 100%;
    padding: 0 0 2px;
  }

  body:not(.admin-console) h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  body:not(.admin-console) .hero {
    padding-inline: 18px;
  }

  .hero-employer-note {
    grid-template-columns: 1fr;
  }

  .hero-employer-note a {
    white-space: normal;
  }

  body:not(.admin-console) .job-search {
    gap: 0;
  }

  .quick-links,
  .search-support {
    gap: 8px;
  }

  .quick-links a,
  .search-support a {
    min-height: 30px;
    padding-inline: 10px;
  }

  body:not(.admin-console) .site-footer {
    gap: 14px;
  }
}

/* Portal dashboard polish */
.portal-seeker {
  --portal-accent: var(--red);
  --portal-accent-rgb: var(--red-rgb);
  --portal-accent-on: var(--on-red);
  --portal-accent-soft: rgba(var(--portal-accent-rgb), 0.09);
  --portal-accent-border: rgba(var(--portal-accent-rgb), 0.24);
}

.portal-employer {
  --portal-accent: var(--cyan);
  --portal-accent-rgb: var(--cyan-rgb);
  --portal-accent-on: var(--on-cyan);
  --portal-accent-soft: rgba(var(--portal-accent-rgb), 0.1);
  --portal-accent-border: rgba(var(--portal-accent-rgb), 0.28);
}

.portal-seeker,
.portal-employer {
  background:
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg) 34%, var(--soft) 100%);
}

.portal-seeker .eyebrow,
.portal-seeker .nav-links a:hover,
.portal-seeker .nav-links a.active {
  color: var(--red);
}

.portal-employer .eyebrow,
.portal-employer .nav-links a:hover,
.portal-employer .nav-links a.active {
  color: var(--cyan);
}

.portal-employer .header-action,
.portal-employer .primary,
.portal-employer .job-search button {
  background: var(--cyan);
  color: var(--on-cyan);
  box-shadow: 0 12px 26px rgba(var(--portal-accent-rgb), 0.18);
}

.portal-employer .primary {
  color: var(--on-cyan);
}

.portal-seeker .dashboard-hero,
.portal-employer .dashboard-hero {
  padding-top: clamp(54px, 7vw, 94px);
  padding-bottom: clamp(30px, 5vw, 52px);
}

.portal-seeker .dashboard-hero h1,
.portal-employer .dashboard-hero h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1;
}

.portal-seeker .dashboard-shell,
.portal-employer .dashboard-shell {
  padding-bottom: clamp(48px, 7vw, 82px);
}

.portal-seeker .dashboard-panel,
.portal-employer .dashboard-panel,
.portal-seeker .job-row,
.portal-employer .job-row,
.portal-seeker .stat-grid div,
.portal-employer .stat-grid div {
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(var(--shadow-rgb), 0.055);
}

.portal-seeker .dashboard-panel,
.portal-employer .dashboard-panel {
  position: relative;
  overflow: hidden;
}

.portal-seeker .dashboard-panel::before,
.portal-employer .dashboard-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--portal-accent);
  content: "";
}

.panel-kicker {
  margin-bottom: 8px;
  color: var(--portal-accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-dashboard-grid {
  margin-bottom: 28px;
}

.portal-section-heading {
  margin-top: clamp(34px, 5vw, 54px);
  margin-bottom: 18px;
}

.portal-section-heading h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
}

.portal-seeker .profile-meter {
  background:
    radial-gradient(circle at center, var(--surface) 58%, transparent 59%),
    conic-gradient(var(--red), var(--red-dark), var(--cyan), var(--lime));
}

.portal-seeker .cv-form input:focus,
.portal-seeker .cv-form select:focus,
.portal-seeker .cv-form textarea:focus {
  border-color: var(--red);
  outline-color: rgba(var(--red-rgb), 0.16);
}

.portal-employer .cv-form input:focus,
.portal-employer .cv-form select:focus,
.portal-employer .cv-form textarea:focus {
  border-color: var(--cyan);
  outline-color: rgba(var(--cyan-rgb), 0.16);
}

.portal-footer {
  margin-top: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 600;
}

.footer-link.seeker-link {
  color: var(--red);
  background: rgba(var(--red-rgb), 0.08);
}

.footer-link.employer-link {
  color: var(--cyan-dark);
  background: rgba(var(--cyan-rgb), 0.1);
}

.footer-link.seeker-link:hover,
.footer-link.employer-link:hover {
  color: var(--navy);
}

@media (max-width: 980px) {
  .portal-seeker .dashboard-hero,
  .portal-employer .dashboard-hero {
    align-items: flex-start;
  }

  .portal-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .portal-seeker .dashboard-hero h1,
  .portal-employer .dashboard-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
  }

  .portal-footer .footer-link {
    width: 100%;
    justify-content: center;
  }
}

/* Front-end audit corrections */
body:not(.admin-console) main > .quick-links,
body:not(.admin-console) .dashboard-shell > .search-support {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: min(1160px, calc(100vw - 40px)) !important;
  margin-inline: auto !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
}

body:not(.admin-console) main > .quick-links {
  margin-top: -18px !important;
  margin-bottom: 22px !important;
  padding: 0 !important;
}

body:not(.admin-console) .dashboard-shell > .search-support {
  width: 100% !important;
  margin: 10px 0 20px !important;
  padding: 0 !important;
}

body:not(.admin-console) main > .quick-links span,
body:not(.admin-console) .dashboard-shell > .search-support span {
  color: var(--navy) !important;
  font-weight: 600 !important;
}

body:not(.admin-console) main > .quick-links a,
body:not(.admin-console) .dashboard-shell > .search-support a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 0 13px !important;
  color: var(--navy) !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 18px rgba(var(--shadow-rgb), 0.035) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
}

body:not(.admin-console) main > .quick-links a:hover,
body:not(.admin-console) .dashboard-shell > .search-support a:hover {
  color: var(--red) !important;
  border-color: rgba(var(--red-rgb), 0.32) !important;
}

body:not(.admin-console) .site-footer {
  align-items: center !important;
  gap: 16px !important;
  padding: 26px 0 36px !important;
}

body:not(.admin-console) .site-footer img {
  width: 150px !important;
}

body:not(.admin-console) .site-footer .footer-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  font-weight: 600 !important;
}

body:not(.admin-console) .site-footer .seeker-link {
  color: var(--red) !important;
  background: rgba(var(--red-rgb), 0.08) !important;
}

body:not(.admin-console) .site-footer .employer-link {
  color: var(--cyan-dark) !important;
  background: rgba(var(--cyan-rgb), 0.1) !important;
}

body:not(.admin-console) .site-footer .footer-link:hover {
  color: var(--navy) !important;
}

@media (max-width: 980px) {
  body:not(.admin-console) main > .quick-links {
    margin-top: 0 !important;
  }

  body:not(.admin-console) .job-search {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 760px) {
  body:not(.admin-console) main > .quick-links,
  body:not(.admin-console) .dashboard-shell > .search-support {
    gap: 8px !important;
  }

  body:not(.admin-console) main > .quick-links a,
  body:not(.admin-console) .dashboard-shell > .search-support a {
    min-height: 32px !important;
    padding-inline: 11px !important;
  }

  body:not(.admin-console) .site-footer .footer-link {
    width: 100% !important;
    justify-content: center !important;
  }

  body:not(.admin-console) .site-footer .footer-address {
    width: 100% !important;
    max-width: none !important;
    text-align: center !important;
  }
}

/* Landing account feature sections */
body:not(.admin-console) .account-features {
  display: grid;
  gap: 22px;
  padding-top: clamp(60px, 8vw, 96px);
}

body:not(.admin-console) .account-features .section-heading {
  max-width: 830px;
  margin-bottom: 8px;
}

.account-feature {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: 430px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(var(--shadow-rgb), 0.07);
}

.account-feature + .account-feature {
  margin-top: 8px;
}

.account-feature.employer-feature {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
}

.account-feature.employer-feature .account-feature-media {
  order: 2;
}

.account-feature-media {
  position: relative;
  min-height: clamp(260px, 31vw, 390px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.account-feature-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(var(--shadow-rgb), 0.22));
  content: "";
}

.account-feature-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.account-feature-copy {
  max-width: 650px;
}

.account-feature-copy .eyebrow {
  margin-bottom: 12px;
}

.account-feature-copy h3 {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--navy-2);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
}

.account-feature-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
}

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

.seeker-feature .primary {
  background: var(--red);
  color: var(--on-red);
}

.employer-feature .primary {
  background: var(--cyan);
  color: var(--on-cyan);
  box-shadow: 0 12px 26px rgba(var(--cyan-rgb), 0.18);
}

.employer-feature .eyebrow {
  color: var(--cyan);
}

@media (max-width: 980px) {
  .account-feature,
  .account-feature.employer-feature {
    grid-template-columns: 1fr;
  }

  .account-feature.employer-feature .account-feature-media {
    order: 0;
  }
}

@media (max-width: 760px) {
  .account-feature {
    padding: 16px;
  }

  .account-feature-media {
    min-height: 220px;
  }

  .account-feature-copy h3 {
    font-size: clamp(1.8rem, 9vw, 2.55rem);
  }

  .feature-actions .button {
    flex: 1 1 150px;
  }
}

/* Final role colour corrections */
body:not(.admin-console) .employer-feature .primary,
.portal-employer .primary,
.portal-employer .header-action,
.portal-employer button.primary {
  color: var(--on-cyan) !important;
  background: var(--cyan) !important;
  box-shadow: 0 12px 26px rgba(var(--cyan-rgb), 0.2) !important;
}

.portal-employer .dashboard-panel::before,
.portal-employer .job-row::before {
  background: var(--cyan) !important;
}

.portal-seeker .primary,
.portal-seeker button.primary {
  color: var(--on-red) !important;
  background: var(--red) !important;
}

.portal-seeker .eyebrow,
.portal-seeker .panel-kicker,
.portal-seeker .nav-links a:hover,
.portal-seeker .nav-links a.active {
  color: var(--red) !important;
}

.portal-employer .eyebrow,
.portal-employer .panel-kicker,
.portal-employer .nav-links a:hover,
.portal-employer .nav-links a.active {
  color: var(--cyan) !important;
}

.cv-builder-page {
  --cv-green: var(--lime-dark);
  --cv-green-dark: var(--lime-dark);
  --cv-green-soft: rgba(var(--lime-rgb), 0.16);
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--surface) 42%, rgba(var(--lime-rgb), 0.1) 100%);
}

.cv-builder-page .eyebrow,
.cv-builder-page .small-label,
.cv-builder-page .nav-links a:hover,
.cv-builder-page .nav-links a.active {
  color: var(--cv-green-dark) !important;
}

.cv-builder-page .header-action,
.cv-builder-page .primary,
.cv-builder-page button.primary {
  color: var(--on-lime) !important;
  background: var(--cv-green-dark) !important;
  box-shadow: 0 12px 26px rgba(var(--lime-rgb), 0.18) !important;
}

.cv-builder-page .payment-summary {
  border-left-color: var(--cv-green) !important;
  background:
    linear-gradient(135deg, var(--cv-green-soft), transparent 48%),
    var(--surface) !important;
}

.cv-builder-page .payment-summary strong {
  color: var(--cv-green-dark) !important;
}

.cv-builder-page .journey-note {
  border-left-color: var(--cv-green) !important;
  background:
    linear-gradient(135deg, var(--cv-green-soft), transparent 54%),
    var(--surface) !important;
}

.cv-builder-page .cv-form fieldset {
  border-color: rgba(var(--lime-rgb), 0.22) !important;
}

.cv-builder-page .cv-form legend {
  color: var(--cv-green-dark) !important;
}

.cv-builder-page .cv-form input:focus,
.cv-builder-page .cv-form select:focus,
.cv-builder-page .cv-form textarea:focus {
  border-color: var(--cv-green) !important;
  outline-color: rgba(var(--lime-rgb), 0.16) !important;
}

.cv-builder-page .checkbox-grid label,
.cv-builder-page .consent-row {
  background: rgba(var(--lime-rgb), 0.1) !important;
  border-color: rgba(var(--lime-rgb), 0.2) !important;
}

/* Account choice page */
.account-choice-page {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--surface) 46%, var(--soft) 100%);
}

.account-choice-hero {
  padding-bottom: 28px;
}

.account-choice-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.3rem);
  line-height: 0.98;
  color: var(--navy-2);
}

.account-choice-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.account-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 0;
}

.choice-panel {
  display: grid;
  grid-template-rows: 260px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(var(--shadow-rgb), 0.08);
}

.choice-image {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.choice-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(var(--shadow-rgb), 0.24));
}

.choice-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.choice-copy {
  padding: 30px;
}

.choice-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
  color: var(--navy-2);
}

.choice-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.55;
}

.seeker-choice .primary {
  color: var(--on-red);
  background: var(--red);
}

.employer-choice .eyebrow {
  color: var(--cyan);
}

.employer-choice .primary {
  color: var(--on-cyan);
  background: var(--cyan);
  box-shadow: 0 12px 26px rgba(var(--cyan-rgb), 0.18);
}

@media (max-width: 860px) {
  .account-choice-grid {
    grid-template-columns: 1fr;
  }

  .choice-panel {
    grid-template-rows: 220px 1fr;
  }
}

/* Admin density and responsive polish */
body.admin-console .dashboard-shell {
  width: min(1230px, calc(100% - 32px));
}

body.admin-console .job-table {
  gap: 8px !important;
}

body.admin-console .job-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 68px !important;
  padding: 12px 16px !important;
  box-shadow: 0 8px 22px rgba(var(--shadow-rgb), 0.035) !important;
}

body.admin-console .job-row > div:first-child {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 12px !important;
  min-width: 0 !important;
}

body.admin-console .job-row h2 {
  flex: 0 1 auto !important;
  min-width: min(100%, 220px) !important;
  margin: 0 !important;
  font-size: 1.02rem !important;
  line-height: 1.15 !important;
}

body.admin-console .job-row p {
  display: inline !important;
  margin: 0 !important;
  font-size: 0.86rem !important;
  line-height: 1.25 !important;
}

body.admin-console .job-row p + p::before {
  content: " | ";
  color: var(--muted);
}

body.admin-console .job-row .status-pill {
  margin: 0 !important;
  padding: 3px 8px !important;
  font-size: 0.72rem !important;
  white-space: nowrap !important;
}

body.admin-console .row-actions {
  flex-wrap: nowrap !important;
  gap: 7px !important;
}

body.admin-console .row-actions .button,
body.admin-console .row-actions button,
body.admin-console .row-actions select {
  min-height: 36px !important;
  padding: 8px 12px !important;
  font-size: 0.86rem !important;
}

body.admin-console .inline-status-form {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
}

body.admin-console .job-row.employer-row {
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
}

body.admin-console .employer-logo-cell {
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: var(--surface) !important;
}

body.admin-console .employer-logo-cell img,
.employer-logo-editor img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body.admin-console .job-row.employer-row > div:first-child {
  flex-wrap: nowrap !important;
  gap: 0 !important;
  min-width: 48px !important;
}

body.admin-console .job-row.employer-row > div:nth-child(2) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 12px !important;
  min-width: 0 !important;
}

.employer-logo-editor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.employer-logo-editor img {
  width: 96px !important;
  height: 72px !important;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface);
}

.portal-logo-editor {
  margin-bottom: 18px;
}

body.admin-console.admin-night .employer-logo-cell,
body.admin-console.admin-night .employer-logo-editor img {
  background: var(--surface) !important;
}

body.admin-console .admin-footer {
  width: min(1230px, calc(100% - 32px));
  margin-inline: auto;
}

body.admin-console .status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -18px 0 20px;
}

body.admin-console .status-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

body.admin-console .status-tabs a.active,
body.admin-console .status-tabs a:hover {
  color: var(--red);
  background: var(--surface);
  border-color: rgba(var(--red-rgb), 0.28);
}

body.admin-console .status-tabs span {
  min-width: 24px;
  padding: 2px 7px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  text-align: center;
}

body.admin-console .status-pill.job_seeker {
  color: var(--red-dark);
  background: rgba(var(--red-rgb), 0.12);
}

body.admin-console .status-pill.employer {
  color: var(--cyan-dark);
  background: rgba(var(--cyan-rgb), 0.13);
}

body.admin-console .status-pill.admin {
  color: var(--orange-dark);
  background: rgba(var(--orange-rgb), 0.14);
}

body.admin-console.admin-night .status-tabs a {
  color: rgba(var(--on-navy-rgb), .72);
  background: var(--night-surface);
  border-color: rgba(var(--on-navy-rgb), 0.13);
}

body.admin-console.admin-night .status-tabs a.active,
body.admin-console.admin-night .status-tabs a:hover {
  color: var(--orange);
  background: var(--night-surface);
  border-color: rgba(var(--orange-rgb), 0.44);
}

body.admin-console.admin-night .status-tabs span {
  color: var(--on-navy);
  background: var(--night-bg);
  border-color: rgba(var(--on-navy-rgb), 0.16);
}

@media (max-width: 980px) {
  body.admin-console .site-header.admin-header {
    align-items: center !important;
    gap: 12px !important;
    min-height: 72px !important;
    padding: 10px 16px !important;
  }

  body.admin-console .admin-nav-wrap {
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    width: auto !important;
    gap: 10px !important;
  }

  body.admin-console .admin-nav-links {
    display: none !important;
  }

  body.admin-console .admin-page-heading {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.admin-console .admin-heading-actions {
    justify-content: stretch !important;
  }

  body.admin-console .admin-heading-actions .admin-search {
    flex-basis: 100% !important;
  }

  body.admin-console .dashboard-shell h1 {
    font-size: clamp(2.25rem, 8vw, 4rem) !important;
  }
}

@media (max-width: 680px) {
  body.admin-console .dashboard-shell {
    width: min(100% - 22px, 1230px);
    padding-top: 26px !important;
  }

  body.admin-console .brand img {
    max-width: 190px !important;
  }

  body.admin-console .admin-theme-toggle button {
    width: 50px !important;
    height: 28px !important;
  }

  body.admin-console .admin-menu-panel {
    right: -4px !important;
    min-width: min(285px, calc(100vw - 24px)) !important;
  }

  body.admin-console .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.admin-console .stat-grid a,
  body.admin-console .stat-grid div {
    min-height: 76px !important;
    padding: 13px 14px !important;
  }

  body.admin-console .stat-grid strong {
    font-size: 1.45rem !important;
  }

  body.admin-console .stat-grid span {
    font-size: 0.82rem !important;
  }

  body.admin-console .admin-search {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    width: 100% !important;
  }

  body.admin-console .admin-search label {
    grid-column: 1 / -1 !important;
  }

  body.admin-console .job-row {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    padding: 12px !important;
  }

  body.admin-console .job-row > div:first-child {
    display: grid !important;
    gap: 4px !important;
  }

  body.admin-console .job-row p {
    display: block !important;
  }

  body.admin-console .job-row p + p::before {
    content: "";
  }

  body.admin-console .row-actions,
  body.admin-console .inline-status-form {
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }

  body.admin-console .job-row.employer-row {
    grid-template-columns: 44px minmax(0, 1fr) !important;
  }

  body.admin-console .job-row.employer-row .row-actions {
    grid-column: 1 / -1 !important;
  }

  body.admin-console .employer-logo-cell {
    width: 44px !important;
    height: 44px !important;
  }
}

body.admin-console.admin-night .status-pill.vetted,
body.admin-console.admin-night .status-pill.verified,
body.admin-console.admin-night .status-pill.identity_released,
body.admin-console.admin-night .status-pill.placed,
body.admin-console.admin-night .status-pill.hired {
  color: var(--lime) !important;
  background: rgba(var(--lime-rgb), 0.16) !important;
}

body.admin-console.admin-night .status-pill.cv_requested,
body.admin-console.admin-night .status-pill.payment_pending,
body.admin-console.admin-night .status-pill.terms_discussion,
body.admin-console.admin-night .status-pill.selected {
  color: var(--orange) !important;
  background: rgba(var(--orange-rgb), 0.16) !important;
}

body.admin-console.admin-night .status-pill.archived,
body.admin-console.admin-night .status-pill.closed_lost {
  color: rgba(var(--on-navy-rgb), .72) !important;
  background: rgba(var(--on-navy-rgb), 0.16) !important;
}

body.admin-console.admin-night .privacy-note,
body.admin-console.admin-night .verified-note,
.portal-employer .privacy-note,
.portal-employer .verified-note {
  border-radius: 8px;
}

body.admin-console.admin-night .privacy-note,
body.admin-console.admin-night .verified-note {
  color: var(--on-navy) !important;
  background: rgba(var(--shadow-rgb), 0.82) !important;
  border-color: rgba(var(--on-navy-rgb), 0.12) !important;
}

/* Candidate questionnaire, application review and history */
.questionnaire-page [hidden],
.application-review-modal [hidden] {
  display: none !important;
}

.questionnaire-hero {
  align-items: stretch;
}

.questionnaire-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
}

.questionnaire-form fieldset {
  scroll-margin-top: 100px;
}

.questionnaire-error-summary {
  display: none;
  margin-bottom: 20px;
  padding: 18px 20px;
  color: var(--red-dark);
  background: rgba(var(--red-rgb), 0.12);
  border: 1px solid rgba(var(--red-rgb), 0.42);
  border-left: 5px solid var(--red-dark);
  border-radius: 10px;
  outline: none;
}

.questionnaire-error-summary.is-visible {
  display: grid;
  gap: 9px;
}

.questionnaire-error-summary ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 20px;
}

.questionnaire-form .field-error {
  scroll-margin-top: 120px;
  animation: questionnaire-error-pulse 0.7s ease 1;
}

.questionnaire-form label.field-error,
.questionnaire-form .service-choice-card.field-error,
.questionnaire-form .current-choice.field-error,
.questionnaire-form .category-interest-group.field-error,
.questionnaire-form .checkbox-grid.field-error,
.questionnaire-form .document-upload-card.field-error,
.questionnaire-form .managed-checkbox-group.field-error {
  color: var(--red-dark) !important;
}

.questionnaire-form .field-error input,
.questionnaire-form .field-error select,
.questionnaire-form .field-error textarea,
.questionnaire-form input[aria-invalid="true"],
.questionnaire-form select[aria-invalid="true"],
.questionnaire-form textarea[aria-invalid="true"] {
  border-color: var(--red-dark) !important;
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.13);
}

.questionnaire-form .service-choice-card.field-error,
.questionnaire-form .consent-row.field-error,
.questionnaire-form .category-interest-group.field-error,
.questionnaire-form .checkbox-grid.field-error,
.questionnaire-form .document-upload-card.field-error {
  background: rgba(var(--red-rgb), 0.12) !important;
  border-color: var(--red-dark) !important;
}

@keyframes questionnaire-error-pulse {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

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

.reference-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(var(--lime-rgb), 0.075), var(--surface) 42%);
  border: 1px solid rgba(var(--lime-rgb), 0.31);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(var(--shadow-rgb), 0.05);
}

.reference-card-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(var(--lime-rgb), 0.22);
}

.reference-card-heading > span {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--on-lime);
  background: var(--cv-green-dark, var(--lime-dark));
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.reference-card-heading > div {
  display: grid;
  gap: 2px;
}

.reference-card-heading small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reference-card-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

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

.questionnaire-form.cv-form > label.consent-row {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  column-gap: 11px;
  row-gap: 0;
}

.questionnaire-form.cv-form > label.consent-row input[type="checkbox"] {
  grid-column: 1;
  width: 20px !important;
  min-width: 20px;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
}

.questionnaire-form.cv-form > label.consent-row > span {
  grid-column: 2;
  min-width: 0;
  line-height: 1.55;
}

.picker-only-date {
  cursor: pointer;
}

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

.questionnaire-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.questionnaire-actions .button.secondary {
  color: var(--cv-green-dark, var(--navy));
  border: 1px solid rgba(var(--lime-rgb), 0.62);
}

.questionnaire-actions > p {
  max-width: 760px;
  margin: 0;
}

@media (max-width: 780px) {
  .reference-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .questionnaire-action-buttons,
  .questionnaire-action-buttons .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .questionnaire-form .field-error {
    animation: none;
  }
}

.repeatable-section {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.repeatable-heading,
.repeatable-card-heading,
.application-history-heading,
.application-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.repeatable-heading h3,
.repeatable-card-heading strong,
.application-history-heading h2 {
  margin: 0;
}

.repeatable-heading > div {
  display: grid;
  gap: 4px;
}

.repeatable-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.compact-add {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.86rem;
}

.compact-add:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.application-complete:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.repeatable-section [data-row-list] {
  display: grid;
  gap: 16px;
}

.repeatable-card {
  position: relative;
  display: grid;
  gap: 16px;
  margin-left: 22px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(var(--shadow-rgb), 0.055);
}

.repeatable-card:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 42px;
  bottom: -18px;
  left: -23px;
  width: 1px;
  background: rgba(var(--lime-rgb), 0.32);
}

.repeatable-card-heading {
  min-height: 30px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.repeatable-entry-label {
  display: inline-flex;
  align-items: center;
}

.repeatable-index {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: -38px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--cv-green-dark, var(--navy));
  background: var(--surface);
  border: 1px solid rgba(var(--lime-rgb), 0.45);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.repeatable-remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 7px;
  color: var(--red);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.repeatable-remove span {
  font-size: 1.15rem;
  line-height: 1;
}

.repeatable-remove:hover,
.repeatable-remove:focus-visible {
  background: rgba(var(--red-rgb), 0.08);
  outline: none;
}

.repeatable-actions {
  padding-left: 22px;
}

.repeatable-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 16px;
  color: var(--cv-green-dark, var(--navy));
  background: var(--surface);
  border: 1px dashed rgba(var(--lime-rgb), 0.62);
  box-shadow: none;
}

.repeatable-add:hover,
.repeatable-add:focus-visible {
  background: rgba(var(--lime-rgb), 0.08);
  border-style: solid;
  outline: 3px solid rgba(var(--lime-rgb), 0.14);
}

.repeatable-add-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--on-lime);
  background: var(--cv-green-dark, var(--navy));
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.repeatable-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.current-choice,
.school-leaver-choice {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.current-choice:has(input:checked),
.school-leaver-choice:has(input:checked) {
  background: rgba(var(--lime-rgb), 0.09);
  border-color: rgba(var(--lime-rgb), 0.42);
}

.current-choice input[type="checkbox"],
.school-leaver-choice input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--cv-green-dark, var(--red));
}

.current-choice span {
  color: var(--navy);
  line-height: 1.45;
}

.text-button,
.text-link {
  padding: 0;
  color: var(--red);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.text-link:hover,
.text-button:hover {
  text-decoration: underline;
}

.school-leaver-choice {
  margin: 18px 0;
}

.school-leaver-choice span,
.service-choice-card span {
  display: grid;
  gap: 4px;
}

.school-leaver-choice small,
.service-choice-card small {
  color: var(--muted);
  font-weight: 400;
}

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

.service-choice-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 112px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.service-choice-card:has(input:checked) {
  background: rgba(var(--red-rgb), 0.045);
  border-color: rgba(var(--red-rgb), 0.38);
  box-shadow: 0 10px 26px rgba(var(--red-rgb), 0.08);
}

.service-choice-card input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--red);
}

.service-payment-note {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(var(--orange-rgb), 0.08);
  border: 1px solid rgba(var(--orange-rgb), 0.3);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
}

.service-payment-note span {
  color: var(--muted);
  font-size: 0.9rem;
}

.application-history {
  margin-top: 24px;
}

.application-history-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.application-history-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.application-history-list article > div {
  display: grid;
  gap: 2px;
}

.application-history-list span,
.application-history-list small {
  color: var(--muted);
}

.application-history-list .status-pill {
  color: var(--navy);
}

.compact-empty {
  margin-top: 18px;
  padding: 22px;
}

.application-review-modal {
  width: min(720px, calc(100vw - 30px));
  max-height: min(820px, calc(100vh - 30px));
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(var(--shadow-rgb), 0.28);
}

.application-review-modal::backdrop {
  background: rgba(var(--shadow-rgb), 0.58);
  backdrop-filter: blur(3px);
}

.application-review-form {
  padding: 26px;
}

.application-review-form .modal-heading {
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.application-review-form .modal-heading h2,
.application-review-form .panel-kicker {
  margin: 0;
}

.review-job-summary {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  background: var(--navy-2);
  border-radius: 11px;
}

.review-job-summary strong {
  color: var(--on-navy);
  font-size: 1.1rem;
}

.review-job-summary span {
  color: rgba(var(--on-navy-rgb), .72);
}

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

.application-review-grid section {
  padding: 17px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.application-review-grid h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1rem;
}

.review-detail-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.review-detail-list div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
}

.review-detail-list dt,
.review-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.review-detail-list dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-check {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-bottom: 11px;
}

.review-check > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--lime-dark);
  background: rgba(var(--lime-rgb), 0.16);
  border-radius: 999px;
  font-weight: 800;
}

.review-check-optional > span {
  color: var(--orange-dark);
  background: rgba(var(--orange-rgb), 0.14);
}

.review-check div {
  display: grid;
  gap: 2px;
}

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

.application-review-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 720px) {
  .service-choice-grid,
  .application-review-grid {
    grid-template-columns: 1fr;
  }

  .repeatable-heading,
  .application-history-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .repeatable-card {
    margin-left: 16px;
    padding: 16px;
  }

  .repeatable-index {
    left: -31px;
  }

  .repeatable-card:not(:last-child)::before {
    left: -16px;
  }

  .repeatable-card-heading {
    align-items: flex-start;
  }

  .repeatable-actions {
    padding-left: 16px;
  }

  .repeatable-add {
    width: 100%;
  }

  .application-history-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .application-review-form {
    padding: 20px;
  }

  .application-review-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* v205 responsive type and layout standard */
:root {
  --type-page-admin: clamp(2.35rem, 4.2vw, 3.35rem);
  --type-page-portal: clamp(2.45rem, 4.7vw, 3.75rem);
  --type-section: clamp(1.35rem, 2vw, 1.75rem);
  --type-body: 1rem;
  --type-small: 0.875rem;
}

body {
  font-size: var(--type-body);
  line-height: 1.6;
}

h1,
h2,
h3,
.hero-lead,
.muted-copy,
.configuration-intro,
.ops-intro {
  overflow-wrap: anywhere;
}

.eyebrow,
.panel-kicker {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.35 !important;
}

body.admin-console .dashboard-shell > h1,
body.admin-console .configuration-page-heading h1,
body.admin-console .admin-page-heading h1,
body.admin-console .detail-heading h1,
body.admin-console .users-heading h1,
body.admin-console .report-heading h1 {
  max-width: 820px !important;
  margin: 0 !important;
  font-size: var(--type-page-admin) !important;
  font-weight: 650 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.04 !important;
}

body.admin-console .dashboard-shell > h1 {
  margin-bottom: 12px !important;
}

body.admin-console .users-heading > div,
body.admin-console .report-heading > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body.admin-console .users-heading h1 + p,
body.admin-console .report-heading h1 + p,
body.admin-console .configuration-intro,
body.admin-console .ops-intro {
  max-width: 780px;
  margin: 0 !important;
  color: var(--muted);
  font-size: 1rem !important;
  line-height: 1.55 !important;
}

body.admin-console .dashboard-shell .detail-panel h2,
body.admin-console .dashboard-shell .dashboard-panel h2,
body.admin-console .dashboard-shell > h2,
body.admin-console .report-section-heading h2,
body.admin-console .users-heading h2 {
  font-size: var(--type-section) !important;
  font-weight: 650 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.16 !important;
}

body.admin-console.admin-night .ops-stat-card span {
  color: rgba(var(--on-navy-rgb), .72) !important;
}

body.admin-console.admin-night .ops-intro,
body.admin-console.admin-night .configuration-intro,
body.admin-console.admin-night .users-heading h1 + p,
body.admin-console.admin-night .report-heading h1 + p {
  color: rgba(var(--on-navy-rgb), .72) !important;
}

body:not(.admin-console) .page-hero h1,
body:not(.admin-console) .auth-intro h1,
body:not(.admin-console).portal-seeker .dashboard-hero h1,
body:not(.admin-console).portal-employer .dashboard-hero h1,
body:not(.admin-console) .account-choice-hero h1 {
  max-width: 850px;
  margin-bottom: 16px;
  font-size: var(--type-page-portal) !important;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04 !important;
}

/* Keep every Job Seeker surface on the configured primary accent. */
body.portal-seeker.cv-builder-page .eyebrow,
body.portal-seeker.cv-builder-page .small-label,
body.portal-seeker.cv-builder-page .nav-links a:hover,
body.portal-seeker.cv-builder-page .nav-links a.active,
body.portal-seeker.cv-builder-page .payment-summary strong {
  color: var(--red) !important;
}

body.portal-seeker.cv-builder-page .header-action,
body.portal-seeker.cv-builder-page .primary,
body.portal-seeker.cv-builder-page button.primary {
  color: var(--on-red) !important;
  background: var(--red) !important;
  box-shadow: 0 12px 26px rgba(var(--red-rgb), 0.2) !important;
}

body.portal-seeker.cv-builder-page .payment-summary {
  border-left-color: var(--red) !important;
  background: linear-gradient(135deg, rgba(var(--red-rgb), 0.09), transparent 48%), var(--surface) !important;
}

body:not(.admin-console) .hero-lead,
body:not(.admin-console) .account-choice-hero > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem !important;
  line-height: 1.55 !important;
}

body:not(.admin-console) .dashboard-panel h2,
body:not(.admin-console) .detail-panel h2,
body:not(.admin-console) .portal-section-heading h2 {
  font-size: var(--type-section) !important;
  font-weight: 650 !important;
  line-height: 1.16 !important;
}

body.admin-console main > *,
body:not(.admin-console) main > *,
.admin-page-heading > *,
.dashboard-grid > *,
.detail-grid > *,
.form-grid > *,
.report-filter > *,
.users-heading > *,
.users-toolbar > * {
  min-width: 0;
}

@media (max-width: 980px) {
  body.admin-console .users-toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  body.admin-console .users-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    width: 100% !important;
  }

  body.admin-console .users-search input {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-console .report-filter {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: end !important;
  }

  body.admin-console .report-filter label,
  body.admin-console .report-filter input,
  body.admin-console .report-filter .button {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-console .report-period {
    grid-column: 1 / -1;
    margin-left: 0 !important;
  }

  body:not(.admin-console) .dashboard-hero {
    padding-top: 46px !important;
  }

  body:not(.admin-console) .profile-meter {
    width: 148px;
    min-width: 148px;
    height: 148px;
  }
}

@media (min-width: 601px) and (max-width: 980px) {
  body:not(.admin-console).portal-seeker .dashboard-hero,
  body:not(.admin-console).portal-employer .dashboard-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 28px !important;
  }

  body:not(.admin-console).portal-seeker .profile-meter,
  body:not(.admin-console).portal-employer .profile-meter {
    width: 132px;
    min-width: 132px;
    height: 132px;
  }
}

@media (max-width: 720px) {
  :root {
    --type-page-admin: clamp(2rem, 10vw, 2.65rem);
    --type-page-portal: clamp(2.05rem, 10.5vw, 2.75rem);
    --type-section: clamp(1.22rem, 6vw, 1.5rem);
  }

  body {
    font-size: 0.975rem;
  }

  body.admin-console .dashboard-shell,
  body.admin-console .compact-admin-page,
  body.admin-console .admin-footer,
  body:not(.admin-console) .page-hero,
  body:not(.admin-console) .auth-layout,
  body:not(.admin-console) .dashboard-hero,
  body:not(.admin-console) .dashboard-shell {
    width: min(100% - 24px, 1230px) !important;
  }

  body.admin-console .users-heading,
  body.admin-console .report-heading {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  body.admin-console .users-heading > .button,
  body.admin-console .report-heading > .button {
    width: 100% !important;
  }

  body.admin-console .users-search,
  body.admin-console .report-filter {
    grid-template-columns: 1fr !important;
  }

  body.admin-console .report-period {
    grid-column: auto;
  }

  body.admin-console .ops-actions {
    grid-template-columns: 1fr !important;
  }

  body.admin-console .admin-modal,
  body:not(.admin-console) .application-review-modal {
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    border-radius: 12px !important;
  }

  body.admin-console .admin-modal {
    padding: 16px !important;
  }

  body:not(.admin-console) .application-review-modal {
    padding: 0 !important;
  }

  body.admin-console .modal-heading {
    align-items: flex-start;
  }

  body.admin-console .button,
  body.admin-console button,
  body.admin-console input,
  body.admin-console select,
  body:not(.admin-console) .button,
  body:not(.admin-console) button,
  body:not(.admin-console) input,
  body:not(.admin-console) select {
    min-height: 44px !important;
  }

  body:not(.admin-console) .auth-card,
  body:not(.admin-console) .dashboard-panel,
  body:not(.admin-console) .detail-panel {
    padding: 18px !important;
  }

  body:not(.admin-console) .hero-lead,
  body:not(.admin-console) .account-choice-hero > p:not(.eyebrow) {
    font-size: 1rem !important;
  }

  .application-history-list article,
  .placement-response-actions,
  .employer-application-list .inline-status-form {
    width: 100%;
  }
}

@media (max-width: 420px) {
  body:not(.admin-console) .site-header {
    padding-inline: 12px !important;
  }

  body:not(.admin-console) .brand img {
    width: 132px !important;
  }

  body:not(.admin-console) .header-action {
    padding-inline: 11px !important;
    font-size: 0.82rem !important;
  }

  body:not(.admin-console) .nav-links {
    gap: 14px !important;
    font-size: 0.86rem !important;
  }
}

/* v272-15: Employer candidate directory and profile review */
.candidate-browser-shell {
  display: grid;
  gap: 24px;
}

.candidate-hero-summary {
  display: grid;
  min-width: 230px;
  padding: 22px 24px;
  color: var(--on-navy);
  background: linear-gradient(145deg, var(--navy) 0%, var(--cyan-dark) 100%);
  border: 1px solid rgba(var(--cyan-rgb), 0.28);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(var(--shadow-rgb), 0.18);
}

.candidate-hero-summary span {
  color: var(--on-navy);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 0.95;
}

.candidate-hero-summary strong {
  margin-top: 8px;
  font-size: 1.05rem;
}

.candidate-hero-summary small {
  margin-top: 7px;
  color: rgba(var(--on-navy-rgb), 0.74);
  line-height: 1.45;
}

.candidate-browser-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.portal-employer .employer-access-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 20px 22px;
}

.portal-employer .employer-access-panel h2,
.portal-employer .employer-access-panel p {
  margin: 0;
}

.portal-employer .employer-access-panel h2 {
  margin-bottom: 5px;
  font-size: 1.25rem;
}

.candidate-access-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--on-navy);
  background: linear-gradient(145deg, var(--cyan), var(--cyan-dark));
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(var(--cyan-rgb), 0.22);
  font-size: 1.15rem;
}

.candidate-search {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(var(--shadow-rgb), 0.055);
}

.candidate-search > label {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.candidate-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.candidate-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.candidate-search input:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(var(--cyan-rgb), 0.14);
}

.candidate-search .button {
  min-height: 44px;
}

.candidate-search-clear {
  padding: 8px 2px;
  color: var(--cyan-dark);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
}

.candidate-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-bottom: 1px solid var(--line);
}

.candidate-results-heading h2,
.candidate-results-heading p {
  margin: 0;
}

.candidate-results-heading h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

.candidate-results-heading > span {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

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

.candidate-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(var(--shadow-rgb), 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

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

.candidate-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--cyan-rgb), 0.4);
  box-shadow: 0 18px 42px rgba(var(--shadow-rgb), 0.11);
}

.candidate-card > header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.candidate-avatar {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--on-navy);
  background: linear-gradient(145deg, var(--cyan) 0%, var(--cyan-dark) 72%, var(--navy) 100%);
  border: 3px solid rgba(var(--cyan-rgb), .18);
  border-radius: 16px;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
}

.candidate-card-title {
  min-width: 0;
}

.candidate-card-title h2 {
  margin: 3px 0 1px;
  color: var(--navy);
  font-size: 1.3rem;
}

.candidate-card-title small,
.candidate-card-footer > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.candidate-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.candidate-status-row .status-pill {
  margin: 0 !important;
}

.candidate-role-block {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  background: linear-gradient(135deg, var(--soft), var(--soft));
  border: 1px solid var(--line);
  border-radius: 10px;
}

.candidate-role-block strong {
  color: var(--navy);
  font-size: 1.06rem;
}

.candidate-role-block span {
  color: var(--muted);
  font-size: 0.85rem;
}

.candidate-card-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.candidate-card-facts > div {
  min-width: 0;
  padding: 10px 11px;
  background: var(--soft);
  border-radius: 8px;
}

.candidate-card-facts dt,
.candidate-profile-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.candidate-card-facts dd,
.candidate-profile-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 0.83rem;
  font-weight: 700;
}

.candidate-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 3px;
}

.candidate-card-footer .button {
  min-height: 42px;
  padding-inline: 15px;
  white-space: nowrap;
}

.candidate-profile-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: min(90vh, 940px);
  padding: 0;
  overflow: hidden auto;
  border: 0;
  border-radius: 16px;
}

.candidate-profile-shell {
  display: grid;
  gap: 0;
}

.candidate-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  color: var(--on-navy);
  background: linear-gradient(145deg, var(--navy) 0%, var(--cyan-dark) 100%);
}

.candidate-profile-hero .panel-kicker {
  margin: 0 0 6px;
  color: var(--on-navy) !important;
}

.candidate-profile-hero h2,
.candidate-profile-hero p {
  margin: 0;
}

.candidate-profile-hero h2 {
  color: var(--on-navy);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.candidate-profile-hero p:last-child {
  margin-top: 5px;
  color: rgba(var(--on-navy-rgb), 0.75);
}

.candidate-profile-hero .modal-close {
  align-self: start;
  color: var(--on-navy);
  background: rgba(var(--on-navy-rgb), 0.1);
  border-color: rgba(var(--on-navy-rgb), 0.2);
}

.candidate-avatar-large {
  width: 68px;
  height: 68px;
  border-color: rgba(var(--on-navy-rgb), 0.24);
  border-radius: 19px;
  background: rgba(var(--on-navy-rgb), 0.12);
  font-size: 1.7rem;
}

.candidate-profile-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 18px 28px 0;
}

.candidate-profile-status .status-pill {
  margin: 0 !important;
}

.candidate-profile-section {
  display: grid;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.candidate-profile-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.candidate-profile-section-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--cyan-dark);
  background: rgba(var(--cyan-rgb), .12);
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 800;
}

.candidate-profile-section-heading small {
  display: block;
  color: var(--cyan-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.candidate-profile-section-heading h3 {
  margin: 1px 0 0;
  color: var(--navy);
  font-size: 1.2rem;
}

.candidate-profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.candidate-profile-facts > div {
  padding: 13px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.candidate-profile-summary {
  padding: 16px 18px;
  background: var(--soft);
  border-left: 4px solid var(--cyan);
  border-radius: 9px;
}

.candidate-profile-summary small {
  color: var(--cyan-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.candidate-profile-summary p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.candidate-timeline {
  display: grid;
  gap: 0;
}

.candidate-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 18px;
}

.candidate-timeline article:not(:last-child)::before {
  position: absolute;
  top: 15px;
  bottom: -2px;
  left: 6px;
  width: 2px;
  background: var(--line);
  content: "";
}

.candidate-timeline article > span {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  background: var(--cyan);
  border: 3px solid rgba(var(--cyan-rgb), .18);
  border-radius: 50%;
}

.candidate-timeline h4,
.candidate-timeline p {
  margin: 0;
}

.candidate-timeline h4,
.candidate-education-grid h4 {
  color: var(--navy);
  font-size: 1rem;
}

.candidate-timeline .candidate-timeline-meta {
  margin: 3px 0 7px;
  color: var(--cyan-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.candidate-timeline p:not(.candidate-timeline-meta) {
  color: var(--muted);
  line-height: 1.55;
}

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

.candidate-education-grid article {
  padding: 15px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.candidate-education-grid small {
  color: var(--cyan-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.candidate-education-grid h4,
.candidate-education-grid p {
  margin: 5px 0 0;
}

.candidate-education-grid p,
.candidate-empty-copy {
  color: var(--muted);
}

.candidate-privacy-banner,
.candidate-fee-banner {
  display: flex;
  gap: 12px;
  margin: 20px 28px 0;
  padding: 15px 17px;
  border-radius: 10px;
}

.candidate-privacy-banner {
  color: var(--navy);
  background: var(--soft);
  border: 1px solid rgba(var(--cyan-rgb), .24);
}

.candidate-privacy-banner strong,
.candidate-privacy-banner p {
  margin: 0;
}

.candidate-privacy-banner p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.candidate-fee-banner {
  display: block;
  margin-top: 10px;
  color: var(--orange-dark);
  background: rgba(var(--orange-rgb), .1);
  border: 1px solid rgba(var(--orange-rgb), .28);
  font-size: 0.86rem;
  line-height: 1.55;
}

.candidate-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px 28px 26px;
}

.candidate-profile-actions form {
  margin: 0;
}

.candidate-empty-state {
  grid-column: 1 / -1;
  justify-items: center;
  padding: 48px 24px !important;
  text-align: center;
}

.candidate-empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: rgba(var(--cyan-rgb), .1);
  border-radius: 15px;
  font-size: 1.35rem;
}

@media (max-width: 980px) {
  .candidate-browser-toolbar,
  .candidate-card-grid {
    grid-template-columns: 1fr;
  }

  .candidate-hero-summary {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .portal-employer .employer-access-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .portal-employer .employer-access-panel .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .candidate-search > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .candidate-search-clear {
    grid-column: 1 / -1;
  }

  .candidate-card-facts,
  .candidate-profile-facts,
  .candidate-education-grid {
    grid-template-columns: 1fr;
  }

  .candidate-card-footer,
  .candidate-profile-hero {
    align-items: stretch;
  }

  .candidate-card-footer {
    flex-direction: column;
  }

  .candidate-card-footer .button {
    width: 100%;
    text-align: center;
  }

  .candidate-profile-hero {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 22px 20px;
  }

  .candidate-profile-hero .modal-close {
    grid-column: 1 / -1;
    width: 100%;
  }

  .candidate-profile-status,
  .candidate-profile-section {
    padding-inline: 20px;
  }

  .candidate-privacy-banner,
  .candidate-fee-banner {
    margin-inline: 20px;
  }

  .candidate-profile-actions {
    padding-inline: 20px;
  }

  .candidate-profile-actions,
  .candidate-profile-actions form,
  .candidate-profile-actions .button {
    width: 100%;
  }
}

/* Guide libraries - v229 */
.guide-library-page {
  background: var(--soft);
}

.guide-library-main {
  min-height: 70vh;
}

.guide-library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(56px, 8vw, 108px) clamp(22px, 7vw, 104px);
  color: var(--on-navy);
  background:
    radial-gradient(circle at 84% 14%, rgba(var(--cyan-rgb), 0.34), transparent 30%),
    linear-gradient(125deg, var(--navy-2) 0%, var(--navy) 68%, var(--navy-dark) 100%);
}

.user-guide-library .guide-library-hero {
  grid-template-columns: minmax(0, 1fr);
  padding-top: clamp(54px, 7vw, 84px);
  padding-bottom: clamp(54px, 7vw, 84px);
}

.user-guide-library .guide-library-hero > div {
  width: min(100%, 1320px);
  margin-inline: auto;
}

.guide-library-hero .eyebrow {
  color: var(--cyan);
}

.guide-library-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--on-navy) !important;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.guide-library-hero .hero-lead {
  max-width: 770px;
  margin: 0;
  color: rgba(var(--on-navy-rgb), 0.76) !important;
}

.internal-guide-hero {
  background:
    radial-gradient(circle at 84% 14%, rgba(var(--red-rgb), 0.34), transparent 30%),
    linear-gradient(125deg, var(--night-bg) 0%, var(--navy-2) 68%, var(--navy-dark) 100%);
}

.internal-guide-hero .eyebrow {
  color: var(--red);
}

.guide-library-summary {
  display: grid;
  align-content: center;
  min-height: 220px;
  padding: 34px;
  border: 1px solid rgba(var(--on-navy-rgb), 0.2);
  border-radius: 18px;
  background: rgba(var(--on-navy-rgb), 0.08);
  box-shadow: 0 22px 60px rgba(var(--shadow-rgb), 0.22);
  backdrop-filter: blur(12px);
}

.guide-library-summary strong {
  color: var(--lime);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.9;
}

.internal-guide-library .guide-library-summary strong {
  color: var(--red);
}

.guide-library-summary span {
  margin-top: 14px;
  font-size: 1.12rem;
  font-weight: 600;
}

.guide-library-summary small {
  margin-top: 5px;
  color: rgba(var(--on-navy-rgb), 0.65);
}

.guide-role-section {
  padding: clamp(56px, 7vw, 92px) clamp(22px, 7vw, 104px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.guide-role-section:nth-of-type(odd) {
  background: var(--soft);
}

.guide-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  align-items: end;
  gap: 36px;
  max-width: 1320px;
  margin: 0 auto 34px;
}

.guide-section-heading h2 {
  margin: 0;
  color: var(--navy-2);
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -0.04em;
}

.guide-section-heading > p {
  margin: 0;
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
}

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

.user-guide-library .guide-role-section:first-of-type {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(var(--red-rgb), 0.04) 100%);
}

.user-guide-library .employer-guide-section {
  background: linear-gradient(180deg, rgba(var(--cyan-rgb), 0.09) 0%, rgba(var(--cyan-rgb), 0.09) 100%);
}

.guide-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(var(--shadow-rgb), 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--red), var(--cyan));
}

.guide-card:hover,
.guide-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--red-rgb), 0.36);
  box-shadow: 0 24px 54px rgba(var(--shadow-rgb), 0.13);
  outline: none;
}

.guide-card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 70px;
  color: var(--on-red);
  background: var(--red);
  border-radius: 8px 8px 12px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: inset 0 -8px 0 rgba(var(--shadow-rgb), 0.12);
}

.guide-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.guide-card-role {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-card-content > strong {
  color: var(--navy-2);
  font-size: 1.35rem;
  line-height: 1.22;
}

.guide-card-content > span:not(.guide-card-role) {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-card-content small {
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
}

.guide-card-action {
  grid-column: 1 / -1;
  align-self: end;
  color: var(--navy-2);
  font-size: 0.88rem;
  font-weight: 600;
}

.guide-card-action b {
  color: var(--cyan);
  font-size: 1rem;
}

.job-seeker-guide-card::before {
  background: linear-gradient(var(--red), var(--red-dark));
}

.job-seeker-guide-card .guide-card-icon {
  background: linear-gradient(145deg, var(--red-dark), var(--red-dark));
}

.job-seeker-guide-card .guide-card-role,
.job-seeker-guide-card .guide-card-action b {
  color: var(--red);
}

.job-seeker-guide-card:hover,
.job-seeker-guide-card:focus-visible {
  border-color: rgba(var(--red-rgb), 0.42);
}

.employer-guide-card::before {
  background: linear-gradient(var(--cyan-dark), var(--cyan-dark));
}

.employer-guide-card .guide-card-icon {
  background: linear-gradient(145deg, var(--cyan), var(--cyan-dark));
}

.employer-guide-card .guide-card-role,
.employer-guide-card .guide-card-action b {
  color: var(--cyan-dark);
}

.employer-guide-card:hover,
.employer-guide-card:focus-visible {
  border-color: rgba(var(--cyan-rgb), 0.42);
}

.internal-guide-card::before {
  background: linear-gradient(var(--red), var(--orange));
}

.internal-guide-notice {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(22px, 7vw, 104px);
  color: var(--on-red);
  background: var(--red);
}

.internal-guide-notice strong {
  flex: 0 0 auto;
}

.internal-guide-notice span {
  color: rgba(var(--on-red-rgb), 0.82);
}

.guide-library-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(48px, 6vw, 80px) clamp(22px, 7vw, 104px);
  color: var(--on-navy);
  background: var(--navy-2);
}

.guide-library-help h2,
.guide-library-help p {
  margin: 0;
}

.guide-library-help h2 {
  color: var(--on-navy) !important;
  font-size: clamp(1.75rem, 3.2vw, 2.7rem) !important;
  line-height: 1.08 !important;
}

.guide-library-help .eyebrow {
  margin-bottom: 8px;
  color: var(--cyan);
}

.guide-library-help p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 8px;
  color: rgba(var(--on-navy-rgb), 0.7);
}

.guide-library-help .button.secondary {
  flex: 0 0 auto;
  color: var(--navy-2) !important;
  background: var(--surface) !important;
  border-color: var(--surface) !important;
  box-shadow: 0 12px 28px rgba(var(--shadow-rgb), 0.2);
}

.guide-library-help .button.secondary:hover,
.guide-library-help .button.secondary:focus-visible {
  color: var(--navy-2) !important;
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
}

@media (max-width: 1040px) {
  .guide-grid,
  .user-guide-library .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .guide-library-hero,
  .guide-section-heading {
    grid-template-columns: 1fr;
  }

  .guide-library-summary {
    min-height: 170px;
  }

  .guide-grid,
  .user-guide-library .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 230px;
  }

  .internal-guide-notice,
  .guide-library-help {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-library-help .button.secondary {
    width: 100%;
  }
}

/* Keep the Job Seeker dashboard's compact hierarchy above later shared rules. */
body.job-seeker-dashboard .dashboard-hero {
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: 20px;
}

body.job-seeker-dashboard .dashboard-shell {
  padding-top: 12px !important;
}

body.job-seeker-dashboard .profile-form .profile-control input,
body.job-seeker-dashboard .profile-form .profile-control select,
body.job-seeker-dashboard .profile-form .profile-control textarea,
body.job-seeker-dashboard .profile-form .managed-custom-field-grid input,
body.job-seeker-dashboard .profile-form .managed-custom-field-grid select,
body.job-seeker-dashboard .profile-form .managed-custom-field-grid textarea,
body.job-seeker-dashboard .profile-form .managed-custom-fields input,
body.job-seeker-dashboard .profile-form .managed-custom-fields select,
body.job-seeker-dashboard .profile-form .managed-custom-fields textarea {
  min-height: 50px;
  padding: 14px 15px;
}

@media (max-width: 760px) {
  body.job-seeker-dashboard .dashboard-hero {
    padding-top: 36px;
    padding-bottom: 16px;
  }
}

body.job-seeker-dashboard #profile,
body.job-seeker-dashboard .readiness-panel {
  grid-column: 1 / -1;
}

body.job-seeker-dashboard .profile-floating-field {
  position: relative;
  display: block;
}

body.job-seeker-dashboard .profile-floating-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 15px;
  max-width: calc(100% - 42px);
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 140ms ease, color 140ms ease, font-size 140ms ease, transform 140ms ease;
}

body.job-seeker-dashboard .profile-floating-field:focus-within .profile-floating-label,
body.job-seeker-dashboard .profile-floating-field.has-value .profile-floating-label {
  top: 9px;
  color: var(--red);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  transform: none;
}

body.job-seeker-dashboard .profile-form .profile-floating-field input,
body.job-seeker-dashboard .profile-form .profile-floating-field select,
body.job-seeker-dashboard .profile-form .profile-floating-field textarea,
body.job-seeker-dashboard .profile-form .managed-custom-field-grid .profile-floating-field input,
body.job-seeker-dashboard .profile-form .managed-custom-field-grid .profile-floating-field select,
body.job-seeker-dashboard .profile-form .managed-custom-field-grid .profile-floating-field textarea,
body.job-seeker-dashboard .profile-form .managed-custom-fields .profile-floating-field input,
body.job-seeker-dashboard .profile-form .managed-custom-fields .profile-floating-field select,
body.job-seeker-dashboard .profile-form .managed-custom-fields .profile-floating-field textarea {
  min-height: 56px;
  padding: 21px 15px 7px;
}

/* Safari keeps native selects on their intrinsic line box unless their height and
   appearance are both defined. Keep their value below the floating label. */
body.job-seeker-dashboard .profile-form .profile-floating-field select,
body.job-seeker-dashboard .profile-form .managed-custom-field-grid .profile-floating-field select,
body.job-seeker-dashboard .profile-form .managed-custom-fields .profile-floating-field select {
  -webkit-appearance: none;
  appearance: none;
  height: 56px !important;
  min-height: 56px !important;
  padding: 21px 44px 7px 15px !important;
  line-height: 1.2 !important;
  text-indent: 0;
  background-color: var(--soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' fill='none' stroke='%23313b52' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

body.job-seeker-dashboard .profile-floating-textarea .profile-floating-label {
  top: 18px;
  transform: none;
}

body.job-seeker-dashboard .profile-floating-textarea:focus-within .profile-floating-label,
body.job-seeker-dashboard .profile-floating-textarea.has-value .profile-floating-label {
  top: 9px;
}

body.job-seeker-dashboard .profile-form .profile-floating-textarea textarea {
  min-height: 112px !important;
  padding-top: 25px;
}

body.job-seeker-dashboard .profile-half-field {
  grid-column: auto !important;
}

body.job-seeker-dashboard .profile-security-card .managed-field-description {
  display: none !important;
}

body.job-seeker-dashboard .readiness-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "kicker action"
    "heading action"
    "copy action"
    "links links";
  align-items: center;
  column-gap: clamp(28px, 5vw, 72px);
}

body.job-seeker-dashboard .readiness-panel > .panel-kicker {
  grid-area: kicker;
}

body.job-seeker-dashboard .readiness-heading {
  grid-area: heading;
  grid-template-columns: minmax(0, auto) auto;
  align-items: center;
  justify-content: start;
}

body.job-seeker-dashboard .readiness-copy {
  grid-area: copy;
  max-width: 760px;
  margin-bottom: 0;
}

body.job-seeker-dashboard .readiness-primary-action {
  grid-area: action;
  width: auto;
  min-width: 180px;
  justify-content: center;
}

body.job-seeker-dashboard .readiness-links {
  grid-area: links;
  margin-top: 16px;
}

@media (max-width: 760px) {
  body.job-seeker-dashboard .readiness-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "heading"
      "copy"
      "action"
      "links";
  }

  body.job-seeker-dashboard .readiness-primary-action {
    width: 100%;
    margin-top: 18px;
  }
}

/* v246 Job Seeker dashboard columns, summary sidebar and notification controls. */
body.job-seeker-dashboard .profile-hero-actions {
  margin-left: auto;
  justify-content: flex-end;
}

.seeker-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  align-items: start;
  gap: 18px;
}

.seeker-dashboard-main,
.seeker-dashboard-sidebar {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 16px;
}

body.job-seeker-dashboard .seeker-dashboard-main > .document-vault,
body.job-seeker-dashboard .seeker-dashboard-main > .application-history,
body.job-seeker-dashboard .seeker-dashboard-sidebar > .application-history {
  margin-top: 0;
}

.sidebar-profile-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.sidebar-profile-card .panel-kicker {
  margin-bottom: 0;
}

body.job-seeker-dashboard .sidebar-profile-card .profile-meter {
  width: 132px;
  min-width: 132px;
  height: 132px;
}

.sidebar-text-link {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
}

.sidebar-text-link:hover,
.sidebar-text-link:focus-visible {
  text-decoration: underline;
}

.sidebar-next-step .readiness-heading {
  gap: 10px;
}

.sidebar-next-step .readiness-heading h2,
.sidebar-applications h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.sidebar-next-step .readiness-copy {
  margin-bottom: 16px;
}

.sidebar-applications .application-history-heading {
  align-items: flex-start;
}

.sidebar-applications .application-history-list {
  margin-top: 14px;
}

.sidebar-applications .application-history-list article {
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: 13px;
}

.sidebar-applications .application-history-list .status-pill {
  justify-self: start;
}

.sidebar-applications .compact-empty {
  padding: 16px;
}

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

.notification-heading h2,
.notification-heading form {
  margin: 0;
}

.sidebar-notifications {
  margin-top: 0 !important;
}

.sidebar-notifications .notification-heading h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.12;
}

body.job-seeker-dashboard .notification-preview-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}

body.job-seeker-dashboard .notification-card {
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 13px 14px;
  gap: 8px;
}

body.job-seeker-dashboard .notification-extra[hidden] {
  display: none !important;
}

.notification-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

body.job-seeker-dashboard .notification-title-row > strong {
  color: var(--navy);
  line-height: 1.3;
}

body.job-seeker-dashboard .notification-card > p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

body.job-seeker-dashboard .notification-card > small {
  display: block;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  line-height: 1.35;
}

.notification-dismiss {
  position: static;
  flex: 0 0 auto;
  margin: 0;
}

.notification-dismiss button,
.notification-clear-all,
.notification-toggle {
  color: var(--red);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.notification-dismiss button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
}

.notification-dismiss button:hover,
.notification-dismiss button:focus-visible {
  color: var(--on-red);
  background: var(--red);
  outline: none;
}

.notification-clear-all {
  margin-left: auto;
  padding: 6px 0;
  font-size: 0.82rem;
  text-align: right;
  white-space: nowrap;
}

.notification-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px auto 0;
  padding: 8px 10px;
  font-size: 0.84rem;
}

.notification-toggle-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.notification-toggle[aria-expanded="true"] .notification-toggle-arrow {
  transform: rotate(225deg) translate(-1px, -1px);
}

.sidebar-applications .application-history-heading > .sidebar-text-link {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .seeker-dashboard-layout {
    grid-template-columns: 1fr;
  }

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

  .seeker-dashboard-sidebar .sidebar-applications {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  body.job-seeker-dashboard .notification-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .seeker-dashboard-sidebar {
    grid-template-columns: 1fr;
  }

  .seeker-dashboard-sidebar .sidebar-applications {
    grid-column: auto;
  }

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

/* v248 compact floating fields for the Job Seeker Questionnaire. */
body.questionnaire-page .questionnaire-form {
  gap: 14px;
}

body.questionnaire-page .questionnaire-form fieldset {
  padding: clamp(19px, 3vw, 25px);
  border-radius: 13px;
}

body.questionnaire-page .questionnaire-form legend {
  font-size: 1.08rem;
}

body.questionnaire-page .questionnaire-form fieldset > .fieldset-note {
  max-width: 820px;
  margin: 3px 0 16px;
  font-size: 0.84rem;
  line-height: 1.5;
}

body.questionnaire-page .questionnaire-form .form-grid {
  gap: 12px;
}

body.questionnaire-page .questionnaire-floating-field {
  position: relative;
  display: block;
  gap: 0;
}

body.questionnaire-page .questionnaire-floating-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 15px;
  max-width: calc(100% - 45px);
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 140ms ease, color 140ms ease, font-size 140ms ease, transform 140ms ease;
}

body.questionnaire-page .questionnaire-floating-field:focus-within .questionnaire-floating-label,
body.questionnaire-page .questionnaire-floating-field.has-value .questionnaire-floating-label {
  top: 9px;
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  transform: none;
}

body.questionnaire-page .questionnaire-form .questionnaire-floating-field > input,
body.questionnaire-page .questionnaire-form .questionnaire-floating-field > select,
body.questionnaire-page .questionnaire-form .questionnaire-floating-field > textarea {
  min-height: 54px;
  padding: 20px 15px 7px;
  background-color: var(--soft);
}

body.questionnaire-page .questionnaire-form .questionnaire-floating-field > select {
  -webkit-appearance: none;
  appearance: none;
  height: 54px !important;
  min-height: 54px !important;
  padding: 20px 44px 7px 15px !important;
  line-height: 1.2 !important;
  text-indent: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' fill='none' stroke='%23313b52' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

body.questionnaire-page .questionnaire-floating-textarea .questionnaire-floating-label {
  top: 17px;
  transform: none;
}

body.questionnaire-page .questionnaire-floating-textarea:focus-within .questionnaire-floating-label,
body.questionnaire-page .questionnaire-floating-textarea.has-value .questionnaire-floating-label {
  top: 9px;
}

body.questionnaire-page .questionnaire-form .questionnaire-floating-textarea > textarea {
  min-height: 104px;
  padding-top: 24px;
}

body.questionnaire-page .repeatable-section {
  gap: 13px;
  margin-top: 16px;
}

body.questionnaire-page .repeatable-section [data-row-list] {
  gap: 13px;
}

body.questionnaire-page .repeatable-card {
  gap: 13px;
  padding: 17px;
}

body.questionnaire-page .repeatable-card-heading {
  padding-bottom: 9px;
}

body.questionnaire-page .reference-card {
  gap: 14px;
  padding: 17px;
}

body.questionnaire-page .category-interest-group {
  padding: 14px;
}

@media (max-width: 700px) {
  body.questionnaire-page .questionnaire-form fieldset {
    padding: 17px;
  }

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

  body.questionnaire-page .questionnaire-form .span-2 {
    grid-column: auto;
  }
}

/* Context-aware public footer */
body:not(.admin-console) .portal-site-footer {
  display: block !important;
  width: 100% !important;
  margin-top: clamp(48px, 7vw, 90px) !important;
  padding: clamp(42px, 6vw, 68px) 20px !important;
  color: var(--on-navy) !important;
  background: var(--navy) !important;
  border-top: 0 !important;
  font-size: .9rem !important;
}
.portal-site-footer .footer-columns {
  display: grid !important;
  width: min(1160px, 100%) !important;
  margin: 0 auto !important;
  gap: clamp(30px, 5vw, 68px) !important;
  align-items: start !important;
}
.portal-site-footer .footer-columns-4 { grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(150px, 1fr)) !important; }
.portal-site-footer .footer-columns-3 { grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(170px, 1fr)) !important; }
.portal-site-footer .footer-brand-column,
.portal-site-footer .footer-link-column { min-width: 0; }
body:not(.admin-console) .portal-site-footer .footer-brand-column img {
  display: block !important;
  width: min(190px, 100%) !important;
  max-height: 74px !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: drop-shadow(0 8px 18px rgba(var(--shadow-rgb), .16));
}
.portal-site-footer .footer-brand-column p {
  margin: 20px 0 0 !important;
  color: rgba(var(--on-navy-rgb), .72) !important;
  line-height: 1.65 !important;
}
.portal-site-footer .footer-brand-column strong { color: var(--on-navy) !important; }
.portal-site-footer .footer-link-column {
  display: grid !important;
  gap: 10px !important;
  font-size: .9rem !important;
}
.portal-site-footer .footer-link-column h2 {
  margin: 0 0 9px !important;
  color: var(--on-navy) !important;
  font-size: .98rem !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
}
body:not(.admin-console) .portal-site-footer .footer-link-column a {
  display: inline-flex !important;
  width: fit-content !important;
  min-height: 0 !important;
  padding: 3px 0 !important;
  color: rgba(var(--on-navy-rgb), .76) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-weight: 500 !important;
  font-size: .9rem !important;
  line-height: 1.45 !important;
}
body:not(.admin-console) .portal-site-footer .footer-link-column a:hover,
body:not(.admin-console) .portal-site-footer .footer-link-column a:focus-visible {
  color: var(--orange) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

/* Public documents */
.public-documents-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}
.public-documents-intro {
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.public-document-grid { display: grid; gap: 16px; }
.public-document-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.public-document-card h2 { margin: 3px 0 6px; font-size: 1.15rem; }
.public-document-card p { margin: 0 0 8px; color: var(--muted); }
.public-document-card small { color: var(--muted); }
.public-document-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 66px;
  color: var(--on-red);
  background: var(--red);
  border-radius: 8px 8px 12px 8px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.empty-document-card { grid-template-columns: 1fr; }

/* Public document management */
.public-document-manager { display: grid; gap: 24px; margin-top: 28px; }
.public-document-upload { display: grid; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.public-document-list { display: grid; gap: 12px; }
.public-document-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.public-document-admin-row > div:first-child { display: grid; gap: 4px; }
.public-document-admin-row span,
.public-document-admin-row p { margin: 0; color: var(--muted); font-size: .82rem; }
.public-document-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.public-document-actions form { margin: 0; }
.button.danger { color: var(--red) !important; border-color: rgba(var(--red-rgb), .32) !important; }
body.admin-night .public-document-upload,
body.admin-night .public-document-admin-row { border-color: rgba(var(--on-navy-rgb), .14); }
body.admin-night .public-document-admin-row { background: var(--night-bg); }

@media (max-width: 900px) {
  .portal-site-footer .footer-columns-4,
  .portal-site-footer .footer-columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .portal-site-footer .footer-brand-column { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body:not(.admin-console) .portal-site-footer { padding-inline: 24px !important; }
  .portal-site-footer .footer-columns-4,
  .portal-site-footer .footer-columns-3 { grid-template-columns: 1fr !important; }
  .portal-site-footer .footer-brand-column { grid-column: auto; }
  .public-document-card,
  .public-document-admin-row { grid-template-columns: 1fr; align-items: start; }
  .public-document-card .button { width: 100%; justify-content: center; }
  .public-document-actions { justify-content: flex-start; }
}

/* v249 slimmer Questionnaire introduction. */
body.questionnaire-page .questionnaire-hero-compact {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  align-items: end;
  gap: clamp(26px, 4vw, 48px);
  padding-top: clamp(38px, 5vw, 60px);
  padding-bottom: clamp(26px, 4vw, 38px);
}

body.questionnaire-page .questionnaire-hero-compact h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 4vw, 3.55rem) !important;
  line-height: 1.02 !important;
}

body.questionnaire-page .questionnaire-hero-copy > .hero-lead {
  max-width: 700px;
  margin-bottom: 0;
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
}

.questionnaire-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.questionnaire-hero-facts > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
  padding: 0 14px;
}

.questionnaire-hero-facts > div:first-child {
  padding-left: 0;
}

.questionnaire-hero-facts > div + div {
  border-left: 1px solid var(--line);
}

.questionnaire-fact-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--on-red);
  background: var(--red);
  font-size: 0.68rem;
  font-weight: 700;
}

.questionnaire-hero-facts > div > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.questionnaire-hero-facts strong {
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.3;
}

.questionnaire-hero-facts small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

body.questionnaire-page .questionnaire-summary-compact {
  align-self: end;
  min-height: 0;
  padding: 20px 22px;
  box-shadow: 0 10px 28px rgba(var(--shadow-rgb), 0.05);
}

.questionnaire-summary-compact .small-label {
  margin-bottom: 8px;
}

.questionnaire-price {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

body.questionnaire-page .questionnaire-summary-compact .questionnaire-price strong {
  display: inline;
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.25rem);
  white-space: nowrap;
}

.questionnaire-price > span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.questionnaire-summary-compact > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  body.questionnaire-page .questionnaire-hero-compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  body.questionnaire-page .questionnaire-summary-compact {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 18px;
    width: 100%;
    max-width: none;
  }

  .questionnaire-summary-compact .small-label {
    grid-column: 1 / -1;
    margin: 0;
  }

  .questionnaire-summary-compact > p:last-child {
    margin: 0;
  }
}

@media (max-width: 700px) {
  .questionnaire-hero-facts {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
  }

  .questionnaire-hero-facts > div {
    padding: 0;
  }

  .questionnaire-hero-facts > div + div {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  body.questionnaire-page .questionnaire-summary-compact {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* v250 Employer login and dashboard workspace. */
body.employer-dashboard .dashboard-hero {
  padding-top: clamp(42px, 5vw, 68px);
  padding-bottom: 20px;
}

body.employer-dashboard .dashboard-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 4.4vw, 4.15rem) !important;
}

body.employer-dashboard .dashboard-hero .hero-lead {
  max-width: 680px;
  margin-bottom: 0;
}

.employer-hero-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
}

body.employer-dashboard .dashboard-shell {
  padding-top: 12px;
}

.employer-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
  align-items: start;
  gap: 18px;
}

.employer-dashboard-main,
.employer-dashboard-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

body.employer-dashboard .dashboard-panel {
  padding: clamp(21px, 3vw, 28px);
  border-radius: 14px !important;
}

.employer-job-status-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 0 !important;
  overflow: hidden;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(var(--shadow-rgb), 0.055);
}

body.employer-dashboard .employer-job-status-strip > div {
  min-width: 0;
  min-height: 0 !important;
  padding: 15px 13px !important;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.employer-job-status-strip > div + div {
  border-left: 1px solid var(--line) !important;
}

.employer-job-status-strip strong {
  margin-bottom: 5px;
  color: var(--cyan-dark) !important;
  font-size: 1.45rem !important;
}

.employer-job-status-strip span {
  display: block;
  font-size: 0.69rem !important;
  line-height: 1.35;
}

.employer-profile-section {
  min-width: 0;
}

.employer-profile-panel > .muted-copy {
  max-width: 760px;
  margin-bottom: 18px;
}

.employer-brand-editor {
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 4px;
  padding: 16px;
  background: linear-gradient(135deg, var(--surface), var(--soft));
  border: 1px solid var(--line);
  border-radius: 11px;
}

.employer-brand-preview {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 12px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.employer-brand-preview img {
  width: 126px !important;
  height: 76px !important;
  object-fit: contain;
}

.employer-brand-preview span {
  max-width: 110px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.employer-brand-upload-copy {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}

.employer-brand-upload-copy > small {
  color: var(--muted);
  font-size: 0.72rem;
}

.employer-logo-upload {
  display: grid;
  gap: 5px;
  color: var(--navy);
  font-size: 0.78rem;
}

.employer-logo-upload input {
  width: 100%;
  padding: 7px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.75rem;
}

.employer-profile-form,
.employer-login-form {
  gap: 12px;
}

.employer-profile-fields {
  gap: 12px;
}

.employer-floating-field {
  position: relative;
  display: block;
  min-width: 0;
  gap: 0;
}

.employer-floating-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 15px;
  max-width: calc(100% - 45px);
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 140ms ease, color 140ms ease, font-size 140ms ease, transform 140ms ease;
}

.employer-floating-field:focus-within .employer-floating-label,
.employer-floating-field.has-value .employer-floating-label {
  top: 9px;
  color: var(--cyan-dark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  transform: none;
}

.employer-profile-form .employer-floating-field > input,
.employer-profile-form .employer-floating-field > select,
.employer-profile-form .employer-floating-field > textarea,
.employer-login-form .employer-floating-field > input {
  min-height: 54px !important;
  padding: 20px 15px 7px !important;
  background-color: var(--soft);
  border-color: var(--line);
  border-radius: 10px !important;
}

.employer-profile-form .employer-floating-field > select {
  -webkit-appearance: none;
  appearance: none;
  height: 54px !important;
  min-height: 54px !important;
  padding: 20px 44px 7px 15px !important;
  line-height: 1.2 !important;
  text-indent: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' fill='none' stroke='%23313b52' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.employer-floating-textarea .employer-floating-label {
  top: 17px;
  transform: none;
}

.employer-floating-textarea:focus-within .employer-floating-label,
.employer-floating-textarea.has-value .employer-floating-label {
  top: 9px;
}

.employer-profile-form .employer-floating-textarea > textarea {
  min-height: 104px !important;
  padding-top: 24px !important;
}

.employer-security-card .security-card-action {
  color: var(--cyan-dark);
}

.employer-security-card[open] .employer-floating-field {
  padding: 0 16px 16px;
}

.employer-profile-save {
  justify-self: start;
  min-width: 190px;
}

body.employer-dashboard .application-history {
  margin-top: 0;
}

body.employer-dashboard .application-history-list {
  margin-top: 16px;
}

body.employer-dashboard .application-history-list article {
  padding: 14px;
  border-radius: 10px;
}

body.employer-dashboard .portal-section-heading {
  margin: 15px 0 0;
}

body.employer-dashboard .portal-section-heading h2 {
  margin-bottom: 0;
}

body.employer-dashboard .job-table {
  gap: 12px;
}

body.employer-dashboard .job-row {
  padding: 18px 20px;
  border-radius: 12px !important;
}

body.employer-dashboard .job-row h2 {
  margin: 8px 0 3px;
  font-size: 1.22rem;
}

body.employer-dashboard .job-row p {
  margin-bottom: 0;
  font-size: 0.83rem;
}

.employer-sidebar-heading,
.employer-access-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.employer-sidebar-heading h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.12;
}

.employer-sidebar-heading .panel-kicker {
  margin-bottom: 5px;
}

.employer-attention-count {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  color: var(--on-cyan);
  background: var(--cyan-dark);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
}

.employer-dashboard-sidebar .muted-copy {
  margin: 13px 0 15px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.employer-sidebar-link {
  display: inline-flex;
  justify-self: start;
  color: var(--cyan-dark);
}

.employer-sidebar-link:hover,
.employer-sidebar-link:focus-visible {
  color: var(--cyan-dark);
}

.employer-access-summary {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  background: rgba(var(--cyan-rgb), 0.07);
  border: 1px solid rgba(var(--cyan-rgb), 0.2);
  border-radius: 11px;
}

.employer-access-heading {
  align-items: center;
}

.employer-access-heading > strong {
  color: var(--navy);
  font-size: 0.86rem;
}

.employer-access-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.employer-sidebar-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.employer-sidebar-actions .button,
.employer-sidebar-primary {
  justify-content: center;
  width: 100%;
}

.employer-sidebar-notifications {
  margin-top: 0;
}

.employer-sidebar-notifications h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.employer-sidebar-notifications .notification-list {
  gap: 9px;
  margin-top: 13px;
}

.employer-sidebar-notifications .notification-list article {
  padding: 12px 13px;
}

.employer-sidebar-notifications .notification-list article strong {
  font-size: 0.84rem;
  line-height: 1.3;
}

.employer-sidebar-notifications .notification-list article p {
  margin: 5px 0 8px;
  font-size: 0.76rem;
  line-height: 1.45;
}

.employer-sidebar-notifications .notification-list article small {
  display: block;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
}

/* Employer login uses the same compact in-field treatment as the portal dashboard. */
body.employer-login-page .employer-login-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: center;
  min-height: calc(100vh - 148px);
  padding: clamp(46px, 7vw, 82px) 0;
}

.employer-login-intro {
  max-width: 650px;
}

body.employer-login-page .employer-login-intro h1 {
  margin-bottom: 14px;
  font-size: clamp(2.65rem, 5vw, 4.45rem) !important;
}

.employer-login-intro .hero-lead {
  max-width: 590px;
  margin-bottom: 0;
}

.employer-login-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.employer-login-benefits > div {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
  padding: 0 13px;
}

.employer-login-benefits > div:first-child {
  padding-left: 0;
}

.employer-login-benefits > div + div {
  border-left: 1px solid var(--line);
}

.employer-login-benefits > div > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--on-cyan);
  background: var(--cyan-dark);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.employer-login-benefits p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.employer-login-benefits strong {
  color: var(--navy);
  font-size: 0.8rem;
  line-height: 1.3;
}

.employer-login-benefits small {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.4;
}

body.employer-login-page .employer-login-card {
  position: relative;
  top: auto;
  overflow: hidden;
  padding: clamp(25px, 4vw, 34px);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(var(--shadow-rgb), 0.09);
}

.employer-login-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--cyan);
  content: "";
}

.employer-login-card h2 {
  margin-bottom: 7px;
  font-size: clamp(1.65rem, 2.5vw, 2.05rem);
}

.employer-login-card > .muted-copy {
  margin-bottom: 20px;
  font-size: 0.84rem;
}

.employer-login-form .button {
  min-height: 48px;
  margin-top: 2px;
}

.employer-login-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.employer-login-links p {
  margin: 0;
}

.employer-login-links a {
  color: var(--cyan-dark);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .employer-dashboard-layout {
    grid-template-columns: 1fr;
  }

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

  .employer-sidebar-notifications {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  body.employer-login-page .employer-login-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
  }

  .employer-login-intro {
    max-width: none;
  }

  body.employer-login-page .employer-login-card {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body.employer-dashboard .dashboard-hero {
    padding-top: 36px;
    padding-bottom: 16px;
  }

  .employer-hero-actions,
  .employer-hero-actions .button {
    width: 100%;
  }

  .employer-hero-actions .button {
    justify-content: center;
  }

  .employer-job-status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .employer-job-status-strip > div:nth-child(4) {
    border-left: 0 !important;
  }

  .employer-job-status-strip > div:nth-child(n + 4) {
    border-top: 1px solid var(--line) !important;
  }

  .employer-dashboard-sidebar {
    grid-template-columns: 1fr;
  }

  .employer-sidebar-notifications {
    grid-column: auto;
  }

  .employer-profile-fields {
    grid-template-columns: 1fr;
  }

  .employer-brand-editor {
    grid-template-columns: minmax(0, 1fr) 126px;
  }

  .employer-brand-preview img {
    width: 104px !important;
    height: 58px !important;
  }

  .employer-profile-save {
    width: 100%;
  }

  .employer-login-benefits {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .employer-login-benefits > div {
    padding: 0;
  }

  .employer-login-benefits > div + div {
    padding-top: 11px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .employer-job-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .employer-job-status-strip > div:nth-child(odd) {
    border-left: 0 !important;
  }

  .employer-job-status-strip > div:nth-child(n + 3) {
    border-top: 1px solid var(--line) !important;
  }

  .employer-brand-editor {
    grid-template-columns: 1fr;
  }

  .employer-login-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* PayFast return verification */
.payment-return-page {
  min-height: 100vh;
  color: var(--navy-2);
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--cyan-rgb), 0.12), transparent 34%),
    var(--soft);
}

.payment-return-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 6vw, 72px) 20px;
}

.payment-return-card {
  width: min(100%, 760px);
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(var(--shadow-rgb), 0.11);
}

.payment-return-card .eyebrow {
  margin-bottom: 20px;
  color: var(--red);
}

.payment-return-card h1 {
  max-width: none !important;
  margin: 18px 0 14px !important;
  color: var(--navy-2) !important;
  font-size: clamp(2.25rem, 7vw, 4.8rem) !important;
  line-height: 0.98 !important;
}

.payment-return-indicator {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border: 5px solid rgba(var(--cyan-rgb), 0.18);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: payment-return-spin 900ms linear infinite;
}

.payment-return-indicator.confirmed,
.payment-return-indicator.stopped {
  display: grid;
  place-items: center;
  border-color: var(--lime);
  animation: none;
}

.payment-return-indicator.confirmed::after {
  content: "";
  width: 12px;
  height: 23px;
  margin-top: -5px;
  border-right: 4px solid var(--lime-dark);
  border-bottom: 4px solid var(--lime-dark);
  transform: rotate(42deg);
}

.payment-return-indicator.stopped {
  border-color: var(--orange);
}

.payment-return-indicator.stopped::after {
  content: "!";
  color: var(--orange-dark);
  font-size: 1.5rem;
  font-weight: 800;
}

.payment-return-message {
  max-width: 610px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.payment-return-order {
  margin: 22px 0 12px;
}

.payment-return-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 24px;
  padding: 7px 13px;
  color: var(--cyan-dark);
  background: rgba(var(--cyan-rgb), 0.12);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
}

.payment-return-status.confirmed {
  color: var(--lime-dark);
  background: rgba(var(--lime-rgb), 0.22);
}

.payment-return-status.stopped {
  color: var(--orange-dark);
  background: rgba(var(--orange-rgb), 0.16);
}

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

.payment-return-note {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .payment-return-indicator {
    animation-duration: 1800ms;
  }
}

@media (max-width: 520px) {
  .payment-return-card {
    padding: 30px 22px;
    border-radius: 14px;
  }

  .payment-return-card .button {
    width: 100%;
  }
}

/* Account choice spacing and role colours */
body.account-choice-page .account-choice-hero {
  padding-bottom: clamp(22px, 2.5vw, 34px);
}

body.account-choice-page .account-choice-grid {
  padding-top: clamp(12px, 1.6vw, 22px);
}

body.account-choice-page .seeker-choice .button.primary {
  color: var(--on-red) !important;
  background: var(--red) !important;
  border-color: var(--red) !important;
}

body.account-choice-page .employer-choice .button.primary {
  color: var(--on-cyan) !important;
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 12px 26px rgba(var(--cyan-rgb), 0.22) !important;
}

body.account-choice-page .employer-choice .button.primary:hover,
body.account-choice-page .employer-choice .button.primary:focus-visible {
  background: var(--cyan-dark) !important;
  border-color: var(--cyan-dark) !important;
}

/* v251 focused Admin login. */
body.admin-login-page {
  min-height: 100vh;
  color: var(--on-navy);
  background:
    radial-gradient(circle at 14% 16%, rgba(var(--red-rgb), 0.16), transparent 30%),
    radial-gradient(circle at 84% 76%, rgba(var(--cyan-rgb), 0.12), transparent 32%),
    var(--night-bg);
}

body.admin-login-page .admin-login-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(44px, 7vw, 86px);
  min-height: 100vh;
  padding: clamp(44px, 7vw, 76px) 0;
}

.admin-login-intro {
  max-width: 680px;
}

.admin-login-brand {
  width: 210px;
  margin-bottom: clamp(38px, 7vw, 72px);
  filter: drop-shadow(0 10px 24px rgba(var(--shadow-rgb), 0.18));
}

body.admin-login-page .admin-login-intro .eyebrow,
body.admin-login-page .admin-login-card .panel-kicker {
  color: var(--orange);
}

body.admin-login-page .admin-login-intro h1 {
  max-width: 650px;
  margin-bottom: 15px;
  color: var(--on-navy);
  font-size: clamp(2.75rem, 5vw, 4.65rem) !important;
  line-height: 1.01 !important;
}

body.admin-login-page .admin-login-intro .hero-lead {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(var(--on-navy-rgb), .72);
}

.admin-login-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--on-navy-rgb), 0.13);
}

.admin-login-features > div {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 0 13px;
}

.admin-login-features > div:first-child {
  padding-left: 0;
}

.admin-login-features > div + div {
  border-left: 1px solid rgba(var(--on-navy-rgb), 0.13);
}

.admin-login-features > div > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--on-orange); background: var(--orange);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.admin-login-features p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.admin-login-features strong {
  color: var(--on-navy);
  font-size: 0.8rem;
  line-height: 1.3;
}

.admin-login-features small {
  color: rgba(var(--on-navy-rgb), .72);
  font-size: 0.69rem;
  line-height: 1.4;
}

body.admin-login-page .admin-login-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 35px);
  color: var(--on-navy);
  background: var(--night-surface);
  border-color: rgba(var(--on-navy-rgb), 0.13);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(var(--shadow-rgb), 0.28);
}

.admin-login-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--orange);
  content: "";
}

.admin-login-card h2 {
  margin-bottom: 7px;
  color: var(--on-navy);
  font-size: clamp(1.75rem, 2.6vw, 2.15rem);
}

.admin-login-copy {
  margin-bottom: 20px;
  color: rgba(var(--on-navy-rgb), .72);
  font-size: 0.84rem;
}

body.admin-login-page .admin-login-card .alert {
  margin-bottom: 16px;
  padding: 13px 15px;
  color: var(--on-navy);
  background: rgba(var(--on-navy-rgb), 0.055);
  border-color: rgba(var(--on-navy-rgb), 0.16);
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
}

body.admin-login-page .admin-login-card .alert.success {
  color: var(--lime);
  background: rgba(var(--lime-rgb), 0.12);
  border-color: rgba(var(--lime-rgb), 0.46);
}

body.admin-login-page .admin-login-card .alert.warning {
  color: var(--orange);
  background: rgba(var(--orange-rgb), 0.12);
  border-color: rgba(var(--orange-rgb), 0.52);
}

body.admin-login-page .admin-login-card .alert.error {
  color: var(--red);
  background: rgba(var(--red-rgb), 0.14);
  border-color: rgba(var(--red-rgb), 0.5);
}

.admin-login-form {
  gap: 12px !important;
}

.admin-login-field {
  position: relative;
  display: block;
  gap: 0;
}

.admin-login-field > span {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 14px;
  color: var(--orange);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  line-height: 1;
  pointer-events: none;
}

body.admin-login-page .admin-login-field > input {
  min-height: 56px !important;
  padding: 21px 14px 7px !important;
  color: var(--on-navy);
  background: var(--night-bg);
  border: 1px solid rgba(var(--on-navy-rgb), 0.17);
  border-radius: 10px !important;
}

body.admin-login-page .admin-login-field > input:focus {
  border-color: var(--orange);
  outline-color: rgba(var(--orange-rgb), 0.16);
}

body.admin-login-page .admin-login-field > input:-webkit-autofill,
body.admin-login-page .admin-login-field > input:-webkit-autofill:hover,
body.admin-login-page .admin-login-field > input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--on-navy) !important;
  caret-color: var(--on-navy);
  box-shadow: 0 0 0 1000px var(--night-bg) inset !important;
}

body.admin-login-page .admin-login-form .button {
  min-height: 50px;
  margin-top: 2px;
  color: var(--on-orange) !important;
  background: var(--orange) !important;
  box-shadow: 0 12px 28px rgba(var(--orange-rgb), 0.17) !important;
}

.admin-login-note {
  margin: 18px 0 0;
  padding-top: 15px;
  color: rgba(var(--on-navy-rgb), .72);
  border-top: 1px solid rgba(var(--on-navy-rgb), 0.11);
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 980px) {
  body.admin-login-page .admin-login-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
  }

  .admin-login-intro {
    max-width: none;
  }

  .admin-login-brand {
    margin-bottom: 38px;
  }
}

@media (max-width: 700px) {
  .admin-login-features {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .admin-login-features > div {
    padding: 0;
  }

  .admin-login-features > div + div {
    padding-top: 11px;
    border-top: 1px solid rgba(var(--on-navy-rgb), 0.13);
    border-left: 0;
  }
}

/* Job Seeker login, registration and password access journey. */
body.job-seeker-access-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--red-rgb), 0.055), transparent 29%),
    linear-gradient(180deg, var(--surface) 0%, var(--soft) 100%);
}

.job-seeker-access-page .job-seeker-auth-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 442px);
  gap: clamp(42px, 7vw, 88px);
  min-height: calc(100vh - 218px);
  padding: clamp(56px, 7vw, 86px) 0;
}

.job-seeker-access-page .auth-intro {
  max-width: 690px;
}

.job-seeker-access-page .auth-intro h1 {
  max-width: 680px;
  margin-bottom: 15px;
  font-size: clamp(2.65rem, 4.8vw, 4.35rem) !important;
  line-height: 1.03 !important;
}

.job-seeker-access-page .auth-intro .hero-lead {
  max-width: 650px;
  margin-bottom: 0;
}

.job-seeker-access-page .job-seeker-auth-card {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 4vw, 34px);
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(var(--shadow-rgb), 0.105);
}

.job-seeker-access-page .job-seeker-auth-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--red);
  content: "";
}

.job-seeker-access-page .job-seeker-auth-card .panel-kicker {
  margin: 0 0 4px;
  color: var(--red);
}

.job-seeker-access-page .job-seeker-auth-card > h2 {
  margin: 0 0 21px;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.job-seeker-access-page .job-seeker-auth-card .alert {
  border-radius: 10px;
}

.job-seeker-access-page .job-seeker-auth-card .compact-form {
  gap: 12px;
}

.job-seeker-access-page .job-seeker-auth-field {
  position: relative;
  display: block;
  min-width: 0;
  gap: 0;
}

.job-seeker-access-page .job-seeker-auth-field > span {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 14px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.job-seeker-access-page .job-seeker-auth-field > input {
  width: 100% !important;
  min-height: 56px !important;
  padding: 21px 14px 7px !important;
  background: var(--soft) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
}

.job-seeker-access-page .job-seeker-auth-field > input:focus {
  border-color: var(--red) !important;
  outline: 3px solid rgba(var(--red-rgb), 0.12) !important;
}

.job-seeker-access-page .job-seeker-auth-card .button.primary {
  min-height: 48px !important;
  margin-top: 2px;
  border-radius: 9px !important;
}

.job-seeker-access-page .job-seeker-auth-card .auth-switch {
  margin-top: 15px;
  font-size: 0.86rem;
}

.job-seeker-access-page .job-seeker-auth-card .consent-row {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  margin-top: 2px !important;
  padding: 14px !important;
  border-radius: 10px !important;
}

.job-seeker-access-page .job-seeker-auth-card .consent-row > input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 2px 0 0 !important;
}

.job-seeker-access-page .job-seeker-auth-card .consent-row > span {
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.job-seeker-access-page .site-footer {
  margin-top: 0;
}

.job-seeker-access-page .site-footer > div strong,
.job-seeker-access-page .site-footer > div p {
  font-size: 0.8rem;
  line-height: 1.45;
}

.job-seeker-access-page .site-footer > div p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .job-seeker-access-page .job-seeker-auth-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
  }

  .job-seeker-access-page .auth-intro,
  .job-seeker-access-page .job-seeker-auth-card {
    max-width: 680px;
  }

  .job-seeker-access-page .job-seeker-auth-card {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .job-seeker-access-page .job-seeker-auth-layout {
    padding: 40px 0 48px;
  }

  .job-seeker-access-page .auth-intro h1 {
    font-size: clamp(2.25rem, 11vw, 3.1rem) !important;
  }

  .job-seeker-access-page .site-footer {
    align-items: flex-start !important;
  }
}

/* Employer registration and password pages extend the v250 Employer login system. */
body.employer-access-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 22%, rgba(var(--cyan-rgb), 0.06), transparent 30%),
    linear-gradient(180deg, var(--surface) 0%, var(--soft) 100%);
}

body.employer-register-page .employer-login-layout,
body.employer-password-page .employer-login-layout {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 442px);
  align-items: center;
  gap: clamp(42px, 7vw, 88px);
  min-height: calc(100vh - 218px);
  padding: clamp(52px, 7vw, 82px) 0;
}

body.employer-register-page .employer-login-intro h1,
body.employer-password-page .employer-login-intro h1 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: clamp(2.65rem, 5vw, 4.45rem) !important;
  line-height: 1.03 !important;
}

body.employer-access-page .employer-login-card {
  position: relative;
  top: auto;
}

body.employer-access-page .employer-login-card .panel-kicker {
  color: var(--cyan-dark);
}

body.employer-access-page .employer-login-form .employer-floating-field > input,
body.employer-access-page .employer-login-form .employer-floating-field > select {
  min-height: 54px !important;
  padding: 20px 15px 7px !important;
  background-color: var(--soft) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
}

body.employer-access-page .employer-login-form .employer-floating-field > select {
  -webkit-appearance: none;
  appearance: none;
  height: 54px !important;
  padding-right: 44px !important;
  line-height: 1.2 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' fill='none' stroke='%23313b52' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

body.employer-access-page .employer-login-form .employer-floating-field > input:focus,
body.employer-access-page .employer-login-form .employer-floating-field > select:focus {
  border-color: var(--cyan) !important;
  outline: 3px solid rgba(var(--cyan-rgb), 0.12) !important;
}

body.employer-access-page .employer-register-form {
  gap: 12px !important;
}

body.employer-access-page .employer-login-card .consent-row {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  margin-top: 2px !important;
  padding: 14px !important;
  border-radius: 10px !important;
}

body.employer-access-page .employer-login-card .consent-row > input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 2px 0 0 !important;
}

body.employer-access-page .employer-login-card .consent-row > span {
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

body.employer-access-page .site-footer {
  margin-top: 0;
}

body.employer-access-page .site-footer > div strong,
body.employer-access-page .site-footer > div p {
  font-size: 0.8rem;
  line-height: 1.45;
}

body.employer-access-page .site-footer > div p {
  color: var(--muted);
}

@media (max-width: 980px) {
  body.employer-register-page .employer-login-layout,
  body.employer-password-page .employer-login-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
  }

  body.employer-register-page .employer-login-card,
  body.employer-password-page .employer-login-card {
    width: 100%;
  }
}

@media (max-width: 600px) {
  body.employer-register-page .employer-login-layout,
  body.employer-password-page .employer-login-layout {
    padding: 40px 0 48px;
  }

  body.employer-register-page .employer-login-intro h1,
  body.employer-password-page .employer-login-intro h1 {
    font-size: clamp(2.25rem, 11vw, 3.1rem) !important;
  }

  body.employer-access-page .site-footer {
    align-items: flex-start !important;
  }
}

/* Post-v252: keep the Job Seeker and Employer access journeys visually aligned. */
body.job-seeker-login-page .job-seeker-auth-layout,
body.job-seeker-password-page .job-seeker-auth-layout,
body.employer-login-page .employer-login-layout,
body.employer-password-page .employer-login-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 442px);
  align-items: center;
  gap: clamp(42px, 7vw, 88px);
  min-height: calc(100vh - 218px);
  padding: clamp(56px, 7vw, 86px) 0;
}

body.job-seeker-login-page .job-seeker-auth-card,
body.job-seeker-password-page .job-seeker-auth-card,
body.employer-login-page .employer-login-card,
body.employer-password-page .employer-login-card {
  align-self: start;
  margin-top: clamp(78px, 7vw, 96px);
}

body.job-seeker-access-page .auth-intro,
body.employer-access-page .employer-login-intro {
  max-width: 690px;
}

body.job-seeker-access-page .auth-intro h1,
body.employer-access-page .employer-login-intro h1 {
  max-width: 680px;
  margin-bottom: 15px;
  font-size: clamp(2.65rem, 4.8vw, 4.35rem) !important;
  line-height: 1.03 !important;
}

body.job-seeker-access-page .auth-intro .hero-lead,
body.employer-access-page .employer-login-intro .hero-lead {
  max-width: 650px;
  margin-bottom: 0;
}

body.job-seeker-access-page .job-seeker-auth-card,
body.employer-access-page .employer-login-card {
  position: relative;
  top: auto;
  width: 100%;
  overflow: hidden;
  padding: clamp(25px, 4vw, 34px);
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(var(--shadow-rgb), 0.105);
}

body.job-seeker-access-page .job-seeker-auth-card > h2,
body.employer-access-page .employer-login-card > h2 {
  margin: 0 0 7px;
  font-size: clamp(1.55rem, 2.5vw, 2rem) !important;
  line-height: 1.1;
}

body.job-seeker-access-page .job-seeker-auth-card > .muted-copy,
body.employer-access-page .employer-login-card > .muted-copy {
  margin: 0 0 20px;
  font-size: 0.84rem;
  line-height: 1.5;
}

body.job-seeker-register-page .job-seeker-auth-card > h2,
body.job-seeker-password-page .job-seeker-auth-card > h2,
body.employer-register-page .employer-login-card > h2,
body.employer-password-page .employer-login-card > h2 {
  margin-bottom: 21px;
}

body.employer-access-page .employer-floating-label {
  top: 9px !important;
  color: var(--cyan-dark) !important;
  font-size: 0.62rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.025em;
  transform: none !important;
  transition: none;
}

body.employer-access-page .employer-login-form .employer-floating-field > input,
body.employer-access-page .employer-login-form .employer-floating-field > select {
  min-height: 56px !important;
  padding: 21px 15px 7px !important;
}

body.employer-access-page .employer-login-form .employer-floating-field > select {
  height: 56px !important;
  padding-right: 44px !important;
}

.access-login-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.access-login-links p {
  margin: 0;
}

.access-login-links a {
  font-weight: 700;
  white-space: nowrap;
}

body.job-seeker-access-page .access-login-links a {
  color: var(--red);
}

body.employer-access-page .access-login-links a {
  color: var(--cyan-dark);
}

body.employer-register-page .consent-row a,
body.employer-register-page .auth-switch a {
  color: var(--cyan-dark) !important;
}

body.job-seeker-register-page .job-seeker-auth-layout,
body.employer-register-page .employer-login-layout {
  grid-template-columns: minmax(0, 1fr) minmax(560px, 600px);
  align-items: center;
  gap: clamp(36px, 5vw, 68px);
  min-height: calc(100vh - 218px);
  padding: clamp(44px, 6vw, 72px) 0;
}

body.job-seeker-register-page .job-seeker-auth-card,
body.employer-register-page .employer-login-card {
  align-self: start;
  margin-top: 18px;
}

body.job-seeker-register-page .job-seeker-register-form,
body.employer-register-page .employer-register-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
}

body.job-seeker-register-page .job-seeker-register-form > .register-wide-field,
body.job-seeker-register-page .job-seeker-register-form > .consent-row,
body.job-seeker-register-page .job-seeker-register-form > .button,
body.employer-register-page .employer-register-form > .consent-row,
body.employer-register-page .employer-register-form > .button {
  grid-column: 1 / -1;
}

body.job-seeker-register-page .job-seeker-auth-card .auth-switch,
body.employer-register-page .employer-login-card .auth-switch {
  margin-top: 15px;
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  body.job-seeker-login-page .job-seeker-auth-layout,
  body.job-seeker-register-page .job-seeker-auth-layout,
  body.job-seeker-password-page .job-seeker-auth-layout,
  body.employer-login-page .employer-login-layout,
  body.employer-register-page .employer-login-layout,
  body.employer-password-page .employer-login-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
  }

  body.job-seeker-access-page .auth-intro,
  body.job-seeker-access-page .job-seeker-auth-card,
  body.employer-access-page .employer-login-intro,
  body.employer-access-page .employer-login-card {
    width: 100%;
    max-width: 760px;
  }

  body.job-seeker-access-page .job-seeker-auth-card,
  body.employer-access-page .employer-login-card {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  body.job-seeker-register-page .job-seeker-register-form,
  body.employer-register-page .employer-register-form {
    grid-template-columns: 1fr;
  }

  body.job-seeker-register-page .job-seeker-register-form > *,
  body.employer-register-page .employer-register-form > * {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  body.job-seeker-access-page .job-seeker-auth-layout,
  body.employer-access-page .employer-login-layout {
    padding: 40px 0 48px;
  }

  body.job-seeker-access-page .auth-intro h1,
  body.employer-access-page .employer-login-intro h1 {
    font-size: clamp(2.25rem, 11vw, 3.1rem) !important;
  }
}

@media (max-width: 520px) {
  .access-login-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* v257 Jobs homepage redesign. */
html.homepage-redesign-root {
  overflow-x: hidden;
}

body.homepage-redesign {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(var(--lime-rgb), 0.11), transparent 24%),
    linear-gradient(180deg, var(--surface) 0%, var(--soft) 100%);
}

.homepage-redesign .site-header {
  min-height: 76px;
  border-bottom-color: rgba(var(--line-rgb), 0.9);
}

.homepage-redesign .site-header.is-elevated {
  min-height: 70px;
}

.homepage-redesign .nav-links {
  font-weight: 400;
}

.homepage-redesign .home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.82fr);
  gap: clamp(42px, 6vw, 84px);
  align-items: center;
  width: min(1220px, calc(100vw - 40px));
  min-height: min(720px, calc(100vh - 76px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 88px) 0;
}

.homepage-redesign .home-hero::before {
  position: absolute;
  z-index: -1;
  top: 5%;
  right: -18%;
  width: 620px;
  height: 620px;
  content: "";
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.12), rgba(var(--lime-rgb), 0.05) 42%, transparent 70%);
  border-radius: 999px;
  pointer-events: none;
}

.home-hero-copy {
  max-width: 650px;
}

.homepage-redesign .home-hero-copy .eyebrow {
  margin-bottom: 15px;
}

.homepage-redesign .home-hero-copy h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(3.35rem, 6.2vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.homepage-redesign .home-hero-copy .hero-lead {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.homepage-redesign .home-hero-actions .button {
  min-height: 48px;
  padding-inline: 23px;
}

.home-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.78rem;
}

.home-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-hero-points b {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  color: var(--lime-dark);
  background: rgba(var(--lime-rgb), 0.32);
  border-radius: 999px;
  font-size: 0.67rem;
}

.home-employer-link {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 25px 0 0;
  padding-top: 19px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.home-employer-link a {
  color: var(--cyan-dark);
  font-weight: 600;
}

.home-hero-visual {
  position: relative;
  min-width: 0;
  min-height: clamp(480px, 48vw, 610px);
  overflow: visible;
}

.home-hero-visual::before {
  position: absolute;
  inset: -13px 22px 24px -13px;
  content: "";
  background: linear-gradient(145deg, rgba(var(--red-rgb), 0.95), rgba(var(--cyan-rgb), 0.82) 58%, rgba(var(--lime-rgb), 0.9));
  border-radius: 26px;
}

.home-hero-visual > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% center;
  border: 7px solid var(--surface);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(var(--shadow-rgb), 0.2);
}

.home-hero-card {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: -34px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 176px;
  padding: 12px 15px;
  background: rgba(var(--surface-rgb), 0.94);
  border: 1px solid rgba(var(--surface-rgb), 0.88);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(var(--shadow-rgb), 0.17);
  backdrop-filter: blur(12px);
}

.home-hero-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: var(--lime-dark);
  background: rgba(var(--lime-rgb), 0.42);
  border-radius: 999px;
  font-weight: 600;
}

.home-hero-card p {
  display: grid;
  gap: 1px;
  margin: 0;
}

.home-hero-card small,
.home-hero-card strong {
  display: block;
}

.home-hero-card small {
  color: var(--muted);
  font-size: 0.64rem;
}

.home-hero-card strong {
  color: var(--navy-2);
  font-size: 0.88rem;
}

.home-hero-caption {
  --on-navy: var(--on-shadow);
  --on-navy-rgb: var(--on-shadow-rgb);
  position: absolute;
  z-index: 2;
  right: -20px;
  bottom: 28px;
  display: grid;
  gap: 3px;
  max-width: 245px;
  padding: 15px 17px;
  color: var(--on-navy);
  background: rgba(var(--shadow-rgb), 0.93);
  border: 1px solid rgba(var(--on-navy-rgb), 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(var(--shadow-rgb), 0.24);
  backdrop-filter: blur(12px);
}

.home-hero-caption strong {
  font-size: 0.83rem;
}

.home-hero-caption span {
  color: rgba(var(--on-navy-rgb), .72);
  font-size: 0.69rem;
  line-height: 1.4;
}

.homepage-redesign .account-features {
  padding-top: clamp(72px, 9vw, 110px);
}

.homepage-redesign .home-cv-story {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
  gap: 0;
  width: min(1160px, calc(100vw - 40px));
  margin-top: clamp(20px, 4vw, 46px);
  padding: 0;
  overflow: hidden;
  color: var(--on-navy);
  background: var(--night-surface);
  border: 1px solid rgba(var(--shadow-rgb), 0.12);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(var(--shadow-rgb), 0.17);
}

.home-cv-media {
  position: relative;
  min-height: 590px;
  overflow: hidden;
}

.home-cv-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 54%, rgba(var(--shadow-rgb), 0.38));
}

.home-cv-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
}

.home-cv-badge {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: grid;
  min-width: 114px;
  padding: 12px 15px;
  color: var(--navy-2);
  background: rgba(var(--surface-rgb), 0.93);
  border-radius: 11px;
  box-shadow: 0 15px 34px rgba(var(--shadow-rgb), 0.2);
}

.home-cv-badge strong {
  color: var(--red);
  font-size: 1.3rem;
  line-height: 1;
}

.home-cv-badge span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.home-cv-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 5vw, 62px);
}

.homepage-redesign .home-cv-copy .eyebrow {
  color: var(--cyan);
}

.homepage-redesign .home-cv-copy h2 {
  max-width: 570px;
  margin-bottom: 18px;
  color: var(--on-navy);
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
}

.home-cv-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(var(--on-navy-rgb), .72);
  font-size: 0.98rem;
  line-height: 1.65;
}

.home-cv-options {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.home-cv-options > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 13px;
  background: rgba(var(--on-navy-rgb), 0.055);
  border: 1px solid rgba(var(--on-navy-rgb), 0.1);
  border-radius: 10px;
}

.home-cv-options > div > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--on-orange); background: var(--orange);
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
}

.home-cv-options p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.home-cv-options strong {
  color: var(--on-navy);
  font-size: 0.82rem;
}

.home-cv-options small {
  color: rgba(var(--on-navy-rgb), .72);
  font-size: 0.7rem;
  line-height: 1.45;
}

.home-cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: 26px;
}

.home-cv-actions > span {
  color: rgba(var(--on-navy-rgb), .72);
  font-size: 0.72rem;
}

.homepage-redesign .process-grid article {
  border-radius: 14px;
}

.homepage-redesign .trust-section {
  margin-top: 8px;
  padding: clamp(34px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(var(--shadow-rgb), 0.055);
}

.homepage-redesign .home-contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
  width: min(1160px, calc(100vw - 40px));
  margin-top: clamp(58px, 8vw, 92px);
  padding: clamp(34px, 5vw, 58px);
  overflow: hidden;
  color: var(--on-navy);
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--cyan-rgb), 0.16), transparent 34%),
    var(--night-surface);
  border-radius: 20px;
  box-shadow: 0 24px 62px rgba(var(--shadow-rgb), 0.16);
}

.home-contact-copy {
  max-width: 500px;
}

.homepage-redesign .home-contact-copy .eyebrow {
  color: var(--cyan);
}

.homepage-redesign .home-contact-copy h2 {
  color: var(--on-navy);
  font-size: clamp(2.3rem, 4.2vw, 3.7rem);
}

.home-contact-copy > p:not(.eyebrow) {
  color: rgba(var(--on-navy-rgb), .72);
  font-size: 0.92rem;
  line-height: 1.65;
}

.home-contact-details {
  display: grid;
  gap: 9px;
  margin-top: 26px;
}

.home-contact-details a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 11px;
  align-items: center;
  padding: 11px 12px;
  color: var(--on-navy);
  background: rgba(var(--on-navy-rgb), 0.055);
  border: 1px solid rgba(var(--on-navy-rgb), 0.1);
  border-radius: 10px;
}

.home-contact-details a > span {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--on-orange); background: var(--orange);
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
}

.home-contact-details small,
.home-contact-details strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-contact-details small {
  color: rgba(var(--on-navy-rgb), .72);
  font-size: 0.61rem;
}

.home-contact-details strong {
  color: rgba(var(--on-navy-rgb), .72);
  font-size: 0.76rem;
  font-weight: 400;
}

.home-contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 34px);
  color: var(--navy-2);
  background: var(--surface);
  border-radius: 15px;
  box-shadow: 0 20px 54px rgba(var(--shadow-rgb), 0.24);
}

.home-contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.home-contact-form-heading .panel-kicker {
  margin-bottom: 5px;
  color: var(--red);
}

.home-contact-form-heading h3 {
  margin: 0;
  font-size: 1.45rem;
}

.home-contact-section {
  display: grid;
  gap: 4px;
  padding-top: 4px;
}

.home-contact-section strong {
  color: var(--navy-2);
  font-size: 0.95rem;
}

.home-contact-section small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.home-contact-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.home-contact-choices legend {
  padding: 0 5px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 600;
}

.home-contact-choices label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
}

.home-contact-choices input {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

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

.home-contact-field {
  position: relative;
  display: block;
  min-width: 0;
}

.home-contact-field > span {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 13px;
  color: var(--red);
  font-size: 0.61rem;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.home-contact-field > input,
.home-contact-field > select,
.home-contact-field > textarea {
  width: 100%;
  min-height: 54px;
  padding: 21px 13px 7px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  font: inherit;
  font-size: 0.88rem;
}

.home-contact-field > select {
  -webkit-appearance: none;
  appearance: none;
  height: 54px;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' fill='none' stroke='%23303850' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 8px;
}

.home-contact-field > textarea {
  min-height: 116px;
  padding-top: 24px;
  resize: vertical;
}

.home-contact-field > input:focus,
.home-contact-field > select:focus,
.home-contact-field > textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.1);
}

.home-contact-wide {
  grid-column: 1 / -1;
}

.home-contact-form .button {
  width: 100%;
  min-height: 48px;
  cursor: pointer;
}

.home-contact-note {
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.4;
  text-align: center;
}

.home-contact-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 15px 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.home-contact-consent > input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--red);
}

.home-contact-consent a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-contact-consent a:hover {
  color: var(--navy-2);
}

.homepage-redesign .cta-section {
  width: min(1160px, calc(100vw - 40px));
  margin-top: clamp(46px, 7vw, 76px);
  margin-bottom: clamp(46px, 7vw, 72px);
  color: var(--navy-2);
  background:
    linear-gradient(135deg, rgba(var(--red-rgb), 0.08), rgba(var(--cyan-rgb), 0.07)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(var(--shadow-rgb), 0.08);
}

.homepage-redesign .cta-section h2,
.homepage-redesign .cta-section p {
  color: inherit;
}

.homepage-redesign .cta-section .eyebrow {
  color: var(--red);
}

.homepage-redesign .home-footer {
  display: block;
  width: 100%;
  margin: 0;
  padding: clamp(48px, 6vw, 68px) clamp(20px, 5vw, 72px) 24px;
  color: rgba(var(--on-navy-rgb), .72);
  background: var(--night-bg);
  border-top: 0;
}

.home-footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(130px, 0.72fr));
  gap: clamp(28px, 4vw, 58px);
  width: min(1160px, 100%);
  margin: 0 auto;
}

.home-footer-brand {
  max-width: 360px;
}

.home-footer-brand > span {
  display: inline-flex;
  padding: 10px 13px;
  background: var(--surface);
  border-radius: 10px;
}

.homepage-redesign .home-footer-brand img {
  width: 178px;
}

.home-footer-brand p {
  margin: 18px 0 0;
  color: rgba(var(--on-navy-rgb), .72);
  font-size: 0.79rem;
  line-height: 1.6;
}

.home-footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.home-footer-links strong {
  margin-bottom: 3px;
  color: var(--on-navy);
  font-size: 0.78rem;
}

.homepage-redesign .home-footer-links a {
  min-width: 0;
  overflow: hidden;
  color: rgba(var(--on-navy-rgb), .72);
  font-size: 0.74rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homepage-redesign .home-footer-links a:hover {
  color: var(--on-navy);
}

.home-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1160px, 100%);
  margin: 42px auto 0;
  padding-top: 20px;
  color: rgba(var(--on-navy-rgb), .72);
  border-top: 1px solid rgba(var(--on-navy-rgb), 0.1);
  font-size: 0.67rem;
}

@media (max-width: 1040px) {
  .homepage-redesign .home-hero {
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  }

  .home-hero-card {
    left: -18px;
  }

  .home-hero-caption {
    right: -10px;
  }

  .homepage-redesign .home-contact {
    grid-template-columns: minmax(0, 0.72fr) minmax(410px, 1fr);
  }
}

@media (max-width: 900px) {
  .homepage-redesign .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 54px;
  }

  .home-hero-copy {
    max-width: 700px;
  }

  .home-hero-visual {
    min-height: min(68vw, 560px);
    margin: 16px 12px 0;
  }

  .home-hero-card {
    left: -12px;
  }

  .homepage-redesign .home-cv-story,
  .homepage-redesign .home-contact {
    grid-template-columns: 1fr;
  }

  .home-cv-media {
    min-height: min(68vw, 520px);
  }

  .home-cv-copy {
    padding: 40px;
  }

  .home-contact-copy {
    max-width: 680px;
  }

  .home-footer-main {
    grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(130px, 0.7fr));
  }

  .home-footer-links:last-child {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .homepage-redesign .site-header {
    gap: 9px 12px;
  }

  .homepage-redesign .nav-links {
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 3px;
    font-size: 0.76rem;
    scrollbar-width: none;
  }

  .homepage-redesign .nav-links::-webkit-scrollbar {
    display: none;
  }

  .homepage-redesign .home-hero {
    width: min(100% - 32px, 620px);
    padding: 44px 0 58px;
  }

  .homepage-redesign .home-hero-copy h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .home-hero-actions .button {
    flex: 1 1 150px;
  }

  .home-hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-employer-link {
    display: grid;
  }

  .home-hero-visual {
    min-height: 390px;
    margin: 16px 7px 0;
  }

  .home-hero-visual::before {
    inset: -8px 14px 15px -8px;
    border-radius: 20px;
  }

  .home-hero-visual > img {
    border-width: 5px;
    border-radius: 18px;
  }

  .home-hero-card {
    top: 18px;
    left: -7px;
    min-width: 154px;
    padding: 10px 12px;
  }

  .home-hero-caption {
    right: -7px;
    bottom: 17px;
    max-width: 218px;
    padding: 12px 14px;
  }

  .homepage-redesign .account-features,
  .homepage-redesign .process,
  .homepage-redesign .trust-section {
    width: min(100% - 32px, 620px);
  }

  .homepage-redesign .home-cv-story,
  .homepage-redesign .home-contact,
  .homepage-redesign .cta-section {
    width: min(100% - 32px, 620px);
  }

  .home-cv-media {
    min-height: 340px;
  }

  .home-cv-copy {
    padding: 30px 22px 34px;
  }

  .homepage-redesign .home-cv-copy h2,
  .homepage-redesign .home-contact-copy h2 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .homepage-redesign .home-contact {
    gap: 28px;
    padding: 30px 18px 18px;
    border-radius: 16px;
  }

  .home-contact-details {
    margin-top: 20px;
  }

  .home-contact-form {
    padding: 22px 16px;
  }

  .home-contact-grid {
    grid-template-columns: 1fr;
  }

  .home-contact-wide {
    grid-column: 1;
  }

  .homepage-redesign .cta-section {
    align-items: flex-start;
    padding: 28px 24px;
  }

  .homepage-redesign .home-footer {
    padding: 44px 20px 22px;
  }

  .home-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }

  .home-footer-brand {
    grid-column: 1 / -1;
  }

  .home-footer-links:last-child {
    grid-column: 1 / -1;
  }

  .home-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 34px;
  }
}

@media (max-width: 420px) {
  .homepage-redesign .site-header .brand img {
    width: 136px;
  }

  .homepage-redesign .header-action {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 0.75rem;
  }

  .home-hero-points,
  .home-footer-main {
    grid-template-columns: 1fr;
  }

  .home-footer-brand,
  .home-footer-links:last-child {
    grid-column: 1;
  }

  .home-hero-visual {
    min-height: 345px;
  }

  .home-hero-card-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .home-hero-caption {
    max-width: 195px;
  }
}

/* v258: align the landing footer with the Job Seeker and Employer access pages. */
.homepage-redesign .home-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 26px 0 36px;
  color: var(--navy);
  background: transparent;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.homepage-redesign .home-footer > img {
  width: 150px;
}

.homepage-redesign .home-footer > div {
  flex: 1;
}

.homepage-redesign .home-footer > div strong,
.homepage-redesign .home-footer > div p {
  font-size: 0.8rem;
  line-height: 1.45;
}

.homepage-redesign .home-footer > div p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .homepage-redesign .home-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 0 36px;
  }

  .homepage-redesign .home-footer > div {
    width: 100%;
  }
}

/* v262: make the authenticated Employer header usable on narrow phones. */
@media (max-width: 520px) {
  body.portal-employer .site-header .nav-links {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 8px !important;
    overflow: visible;
    white-space: normal;
  }

  body.portal-employer .site-header .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 34px;
    padding: 6px 4px;
    text-align: center;
    background: rgba(var(--cyan-rgb), 0.06);
    border: 1px solid rgba(var(--cyan-rgb), 0.14);
    border-radius: 7px;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  body.portal-employer .site-header .nav-links a.active {
    background: rgba(var(--cyan-rgb), 0.13);
    border-color: rgba(var(--cyan-rgb), 0.32);
  }
}

/* v6 white-label theme: final semantic cascade. */
.primary,
.button.primary,
.portal-seeker .primary,
.portal-seeker button.primary,
.seeker-feature .primary,
.seeker-choice .primary {
  color: var(--on-red) !important;
  background-color: var(--red) !important;
}

.portal-employer .primary,
.portal-employer button.primary,
.portal-employer .header-action,
.employer-feature .primary,
.employer-choice .primary,
.portal-employer .job-search button {
  color: var(--on-cyan) !important;
  background-color: var(--cyan) !important;
}

.header-action,
.split-section,
.guide-library-hero {
  color: var(--on-navy);
}

.header-action {
  background-color: var(--navy);
}

.icon-tile.red,
.guide-card-icon,
.job-seeker-guide-card .guide-card-icon {
  color: var(--on-red);
}

.icon-tile.cyan,
.employer-guide-card .guide-card-icon,
.billing-step span {
  color: var(--on-cyan);
}

.admin-console .primary,
.admin-login-page .primary,
.admin-page .primary,
.notification-filter.active,
.notification-search .primary,
.message-tab.active,
.message-compose-actions .primary,
.backup-head .primary,
.enquiry-tab.active {
  color: var(--on-orange) !important;
  background-color: var(--orange) !important;
  border-color: var(--orange) !important;
}

.secondary,
.dashboard-panel,
.detail-panel,
.auth-card,
.choice-card,
.process article,
.job-row,
.stat-grid > div,
.admin-menu-panel {
  background-color: var(--surface);
}

body.admin-night,
body.admin-console.admin-night {
  --on-navy: var(--on-night);
  --on-navy-rgb: var(--on-night-rgb);
  color: var(--on-navy);
  background-color: var(--night-bg);
}

body.admin-login-page,
.homepage-redesign .home-cv-story,
.homepage-redesign .home-contact,
.homepage-redesign .home-footer {
  --on-navy: var(--on-night);
  --on-navy-rgb: var(--on-night-rgb);
}

/* Legal page management */
.legal-admin-page { max-width: 1440px; }
.legal-format-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
}
.legal-format-guide strong { color: var(--navy); margin-right: 4px; }
.legal-format-guide code {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
}
.legal-pages-form { display: grid; gap: 22px; }
.legal-editor-card { display: grid; gap: 16px; }
.legal-editor-heading,
.legal-editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.legal-editor-heading h2 { margin: 3px 0 5px; }
.legal-editor-heading p { margin: 0; color: var(--muted); }
.legal-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.legal-status.is-published {
  border-color: rgba(var(--lime-rgb), .55);
  background: rgba(var(--lime-rgb), .14);
  color: var(--lime-dark);
}
.legal-toolbar { display: flex; flex-wrap: wrap; gap: 7px; }
.legal-toolbar button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 650;
  cursor: pointer;
}
.legal-toolbar button:hover,
.legal-toolbar button:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}
.legal-editor {
  width: 100%;
  min-height: 390px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem;
  line-height: 1.65;
}
.legal-publish-toggle {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 11px !important;
  align-items: start !important;
  margin: 0 !important;
}
.legal-publish-toggle input { width: auto !important; margin-top: 4px; }
.legal-publish-toggle strong,
.legal-publish-toggle small { display: block; }
.legal-publish-toggle small { margin-top: 3px; color: var(--muted); }
.legal-save-bar {
  position: sticky;
  z-index: 5;
  bottom: 14px;
  justify-content: flex-end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(var(--shadow-rgb), .13);
  backdrop-filter: blur(12px);
}
.legal-document-shell { display: block; max-width: 1040px; }
.legal-document-content { width: 100%; max-width: none; }
.legal-document-content h2 { margin-top: 2.25rem; }
.legal-document-content h2:first-child { margin-top: 0; }
.legal-document-content h3 { margin: 1.6rem 0 .55rem; color: var(--navy); }
.legal-document-content ul,
.legal-document-content ol { margin: .8rem 0 1.2rem; padding-left: 1.5rem; }
.legal-document-content li { margin: .38rem 0; line-height: 1.7; }
.legal-document-content a { color: var(--cyan); text-underline-offset: 3px; }
.legal-page-hero { min-height: 280px; }
body.admin-night .legal-format-guide,
body.admin-night .legal-toolbar button,
body.admin-night .legal-save-bar {
  border-color: rgba(var(--on-navy-rgb), .14);
  background: var(--night-surface);
}
body.admin-night .legal-format-guide strong { color: var(--on-navy); }
body.admin-night .legal-format-guide code { border-color: rgba(var(--on-navy-rgb), .14); background: var(--night-bg); color: var(--on-navy); }
body.admin-night .legal-toolbar button { color: var(--on-navy); }
@media (max-width: 700px) {
  .legal-editor-heading,
  .legal-editor-footer { align-items: flex-start; flex-direction: column; }
  .legal-editor { min-height: 300px; }
  .legal-save-bar { bottom: 8px; }
}
/* v272: questionnaire-led CV workflow and polished Employer job library. */
.generated-cv-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(var(--red-rgb), 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--red-rgb), 0.08), rgba(var(--cyan-rgb), 0.06));
}

.generated-cv-card > div {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.generated-cv-card .document-summary-copy {
  min-width: 0;
}

.generated-cv-card .document-summary-copy small {
  overflow-wrap: anywhere;
}

.employer-job-library {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, var(--surface) 0%, var(--soft) 100%);
  box-shadow: 0 14px 36px rgba(var(--shadow-rgb), 0.07);
}

body.employer-dashboard .employer-job-library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}

.employer-job-library-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.employer-job-library-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.employer-job-library-actions > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.employer-dashboard .employer-job-grid {
  gap: 14px;
}

body.employer-dashboard .employer-job-card {
  position: relative;
  align-items: center;
  padding: 20px 20px 20px 24px;
  overflow: hidden;
  border-color: rgba(var(--shadow-rgb), 0.13);
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(var(--shadow-rgb), 0.055);
}

body.employer-dashboard .employer-job-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--cyan), var(--red));
}

.employer-job-card-content {
  min-width: 0;
}

.employer-job-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body.employer-dashboard .employer-job-card-title h2 {
  margin: 0;
  font-size: 1.18rem;
}

.employer-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.employer-job-meta span {
  padding: 5px 9px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

body.employer-dashboard .employer-job-notice {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  line-height: 1.45;
}

.employer-job-notice.rejected {
  color: var(--ink);
  background: rgba(var(--red-rgb), 0.08);
}

.employer-job-notice.review {
  color: var(--ink);
  background: rgba(var(--orange-rgb), 0.11);
}

.employer-job-actions {
  justify-content: flex-end;
  padding-left: 10px;
}

@media (max-width: 760px) {
  .generated-cv-card,
  body.employer-dashboard .employer-job-library-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .generated-cv-card .button,
  .employer-job-library-actions .button {
    justify-content: center;
  }

  .employer-job-library-actions {
    justify-content: space-between;
  }

  body.employer-dashboard .employer-job-card {
    align-items: stretch;
  }

  .employer-job-actions {
    justify-content: flex-start;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .employer-job-library {
    padding: 16px;
    border-radius: 14px;
  }

  .employer-job-library-actions,
  .employer-job-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .employer-job-actions .button,
  .employer-job-actions form,
  .employer-job-actions form .button {
    width: 100%;
  }
}

/* v272-16: Employer job builder */
.employer-job-builder-page {
  background: var(--soft);
}

.employer-job-builder-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.55fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: 34px;
}

.employer-job-builder-hero > div {
  max-width: 760px;
}

.employer-job-builder-summary {
  display: grid;
  gap: 0;
  padding: 8px 20px;
  color: var(--on-navy);
  background: linear-gradient(145deg, var(--navy) 0%, var(--cyan-dark) 100%);
  border: 1px solid rgba(var(--cyan-rgb), 0.25);
  border-radius: 15px;
  box-shadow: 0 18px 42px rgba(var(--shadow-rgb), 0.17);
}

.employer-job-builder-summary > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px 0;
}

.employer-job-builder-summary > div + div {
  border-top: 1px solid rgba(var(--on-navy-rgb), 0.13);
}

.employer-job-builder-summary span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--navy);
  background: var(--on-navy);
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 900;
}

.employer-job-builder-summary p,
.employer-job-builder-summary strong,
.employer-job-builder-summary small {
  display: block;
  margin: 0;
}

.employer-job-builder-summary small {
  margin-top: 3px;
  color: rgba(var(--on-navy-rgb), 0.7);
  font-size: 0.76rem;
  line-height: 1.35;
}

.employer-job-builder-shell {
  max-width: 1120px;
  padding-top: 0;
}

.employer-job-builder-form {
  gap: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body:not(.admin-console) .employer-job-builder-form fieldset.employer-job-builder-section {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 14px 38px rgba(var(--shadow-rgb), 0.065);
}

.employer-job-builder-section legend {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-left: -2px;
  padding: 0 10px 0 0;
  color: var(--navy);
  background: var(--surface);
  font-size: 1.22rem;
}

.employer-job-builder-section legend span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--on-navy);
  background: linear-gradient(145deg, var(--cyan), var(--cyan-dark));
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.employer-job-builder-intro {
  max-width: 780px;
  margin: -3px 0 2px;
  color: var(--muted);
  line-height: 1.55;
}

.employer-job-builder-grid {
  gap: 14px;
}

.employer-job-builder-form label {
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

.employer-job-builder-form label > span {
  color: var(--cyan-dark);
  font-size: 0.76rem;
  letter-spacing: 0.025em;
}

.employer-job-builder-form label > small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
}

.employer-job-builder-form input,
.employer-job-builder-form select,
.employer-job-builder-form textarea {
  background: var(--soft);
  border-color: var(--line);
  border-radius: 9px;
}

.employer-job-builder-form input,
.employer-job-builder-form select {
  min-height: 52px;
}

.employer-job-builder-form textarea {
  min-height: 118px;
  line-height: 1.55;
}

.employer-job-builder-form input:focus,
.employer-job-builder-form select:focus,
.employer-job-builder-form textarea:focus {
  background: var(--surface);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.12);
}

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

.employer-job-builder-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 0;
  padding: 21px 24px;
  background: linear-gradient(135deg, var(--soft), var(--soft));
  border: 1px solid var(--line);
  border-radius: 13px;
}

.employer-job-builder-actions > div:first-child {
  display: grid;
  gap: 3px;
}

.employer-job-builder-actions p,
.employer-job-builder-actions strong,
.employer-job-builder-actions small {
  margin: 0;
}

.employer-job-builder-actions strong {
  color: var(--navy);
}

.employer-job-builder-actions small {
  color: var(--muted);
}

.employer-job-builder-actions > div:last-child {
  display: flex;
  gap: 9px;
}

@media (max-width: 860px) {
  .employer-job-builder-hero,
  .employer-job-builder-text-grid {
    grid-template-columns: 1fr;
  }

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

  .employer-job-builder-summary > div {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .employer-job-builder-summary > div + div {
    padding-left: 15px;
    border-top: 0;
    border-left: 1px solid rgba(var(--on-navy-rgb), 0.13);
  }
}

@media (max-width: 640px) {
  .employer-job-builder-summary {
    grid-template-columns: 1fr;
  }

  .employer-job-builder-summary > div + div {
    padding-left: 0;
    border-top: 1px solid rgba(var(--on-navy-rgb), 0.13);
    border-left: 0;
  }

  body:not(.admin-console) .employer-job-builder-form fieldset.employer-job-builder-section {
    padding: 20px 17px;
  }

  .employer-job-builder-actions {
    grid-template-columns: 1fr;
  }

  .employer-job-builder-actions > div:last-child {
    display: grid;
  }

  .employer-job-builder-actions .button {
    width: 100%;
  }
}

/* v272-16: Employer subscription plans */
.employer-subscriptions-page {
  background: var(--soft);
}

.subscription-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  align-items: center;
  gap: 44px;
}

.subscription-hero > div {
  max-width: 820px;
}

.subscription-hero-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 20px;
  color: var(--on-navy);
  background: linear-gradient(145deg, var(--navy), var(--cyan-dark));
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(var(--shadow-rgb), 0.16);
}

.subscription-hero-card > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--navy);
  background: var(--on-navy);
  border-radius: 13px;
  font-size: 1.2rem;
  font-weight: 900;
}

.subscription-hero-card strong,
.subscription-hero-card small {
  display: block;
}

.subscription-hero-card small {
  margin-top: 4px;
  color: rgba(var(--on-navy-rgb), 0.72);
  line-height: 1.4;
}

.subscription-shell {
  display: grid;
  gap: 24px;
  max-width: 1240px;
}

.billing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 12px 32px rgba(var(--shadow-rgb), 0.05);
}

.billing-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 19px 21px;
}

.billing-step + .billing-step {
  border-left: 1px solid var(--line);
}

.billing-step > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--on-navy);
  background: linear-gradient(145deg, var(--cyan), var(--cyan-dark));
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.billing-step h2,
.billing-step p {
  margin: 0;
}

.billing-step h2 {
  color: var(--navy);
  font-size: 0.98rem;
}

.billing-step p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

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

.subscription-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(var(--shadow-rgb), 0.075);
}

.subscription-card-featured {
  border-color: rgba(var(--cyan-rgb), 0.42);
  box-shadow: 0 20px 52px rgba(var(--shadow-rgb), 0.11);
}

.subscription-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 26px;
  background: linear-gradient(145deg, var(--surface) 0%, var(--soft) 100%);
  border-top: 5px solid var(--cyan);
}

.subscription-card:nth-child(even) .subscription-card-header {
  border-top-color: var(--cyan-dark);
}

.subscription-card-header h2,
.subscription-card-header p {
  margin: 0;
}

.subscription-card-header h2 {
  color: var(--navy);
  font-size: 1.55rem;
}

.subscription-card-header > div:first-child > p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.subscription-price {
  min-width: 128px;
  text-align: right;
}

.subscription-price strong,
.subscription-price small {
  display: block;
}

.subscription-price strong {
  color: var(--cyan-dark);
  font-size: 1.65rem;
  line-height: 1.05;
}

.subscription-price small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.subscription-plan-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.subscription-plan-metrics > div {
  display: grid;
  gap: 3px;
  padding: 15px 17px;
  text-align: center;
}

.subscription-plan-metrics > div + div {
  border-left: 1px solid var(--line);
}

.subscription-plan-metrics strong {
  color: var(--navy);
  font-size: 1.2rem;
}

.subscription-plan-metrics span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.subscription-fees,
.subscription-checkout-panel {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
}

.subscription-fees {
  background: var(--surface);
}

.subscription-checkout-panel {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.subscription-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.subscription-section-heading h3,
.subscription-section-heading p {
  margin: 0;
}

.subscription-section-heading h3 {
  color: var(--navy);
  font-size: 1.08rem;
}

.subscription-section-heading > span {
  max-width: 150px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: right;
}

.admin-fee-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-fee-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.admin-fee-row + .admin-fee-row {
  border-top: 1px solid var(--line);
}

.admin-fee-row > span strong,
.admin-fee-row small {
  display: block;
}

.admin-fee-row > span strong,
.admin-fee-row > strong {
  color: var(--navy);
  font-size: 0.82rem;
}

.admin-fee-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.subscription-checkout-panel form,
.subscription-negotiate form {
  display: grid;
  gap: 12px;
}

.subscription-checkout-panel label,
.subscription-negotiate label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
}

.subscription-checkout-panel select,
.subscription-checkout-panel textarea,
.subscription-negotiate input,
.subscription-negotiate textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.subscription-checkout-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subscription-checkout-action > span {
  color: var(--muted);
  font-size: 0.72rem;
}

.subscription-checkout-action > span strong {
  color: var(--navy);
}

.subscription-negotiate {
  border-top: 1px solid var(--line);
}

.subscription-negotiate summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  color: var(--cyan-dark);
  cursor: pointer;
}

.subscription-negotiate summary span:first-child strong,
.subscription-negotiate summary span:first-child small {
  display: block;
}

.subscription-negotiate summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.subscription-negotiate summary > span:last-child {
  font-size: 0.72rem;
  font-weight: 800;
}

.subscription-negotiate form {
  padding: 0 24px 22px;
}

.subscription-empty {
  grid-column: 1 / -1;
  padding: 42px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 13px;
}

.portal-order-link {
  display: flex;
  justify-content: center;
}

@media (max-width: 980px) {
  .subscription-hero,
  .subscription-grid {
    grid-template-columns: 1fr;
  }

  .subscription-hero-card {
    max-width: 480px;
  }
}

@media (max-width: 760px) {
  .billing-steps {
    grid-template-columns: 1fr;
  }

  .billing-step + .billing-step {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .subscription-card-header {
    grid-template-columns: 1fr;
    padding: 22px 19px;
  }

  .subscription-price {
    text-align: left;
  }

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

  .subscription-plan-metrics > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .subscription-fees,
  .subscription-checkout-panel {
    padding-inline: 19px;
  }

  .subscription-section-heading,
  .subscription-checkout-action,
  .subscription-negotiate summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .subscription-section-heading > span {
    max-width: none;
    text-align: left;
  }

  .subscription-checkout-action .button {
    width: 100%;
  }
}
