:root {
  --ink: #081a3a;
  --text: #24324d;
  --muted: #6d7890;
  --line: #dbe5f3;
  --line-strong: #b7c7dc;
  --blue: #0069c9;
  --blue-2: #0a89f0;
  --blue-soft: #e9f4ff;
  --navy: #052a55;
  --surface: #ffffff;
  --soft: #f5f9fe;
  --success: #11845b;
  --warning: #b76b09;
  --danger: #b42318;
  --shadow: 0 18px 42px rgba(8, 26, 58, .09);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f7fbff;
  line-height: 1.55;
}
body.portal-locked { overflow: hidden; }
body.public-nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100vw - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hide { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219,229,243,.85);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand img { width: 78px; height: 78px; object-fit: contain; }
.brand-word {
  font-weight: 900;
  letter-spacing: .32em;
  color: var(--ink);
  line-height: 1.05;
}
.brand-word span {
  display: block;
  margin-top: 4px;
  letter-spacing: .28em;
  color: var(--blue);
  font-size: 11px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav a { color: #17233c; position: relative; padding: 32px 0; }
.nav a.active, .nav a:hover { color: var(--blue); }
.nav a.active:after, .nav a:hover:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  background: var(--blue);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 8px; color: var(--ink); }
.mobile-toggle:active { transform: scale(.98); }
.public-backdrop { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px rgba(0,105,201,.22); }
.btn-primary:hover { background: #0059ad; }
.btn-outline { background: rgba(255,255,255,.74); border-color: var(--blue); color: var(--blue); }
.btn-soft { background: var(--blue-soft); color: var(--blue); }
.btn-danger { background: #fff1f0; color: var(--danger); border-color: #ffd8d6; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-block { width: 100%; }

.hero {
  min-height: calc(100svh - 86px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 35%, rgba(255,255,255,.16) 70%), url("img/hero-workforce.png") center right / cover no-repeat;
}
.hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(3,25,53,.56));
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
  padding: 54px 0 150px;
}
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 900;
}
.hero h1 span { color: var(--blue); }
.hero p {
  margin: 22px 0 30px;
  max-width: 500px;
  font-size: 17px;
  color: #253453;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.stat-strip {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: min(1100px, calc(100vw - 80px));
  background: #062d59;
  color: #fff;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 24px 48px rgba(2, 25, 55, .25);
}
.stat-item {
  min-height: 114px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,.18);
}
.stat-item:last-child { border-right: 0; }
.stat-icon {
  width: 46px;
  height: 46px;
  color: var(--blue-2);
  flex: 0 0 auto;
}
.stat-item strong { display: block; font-size: 28px; line-height: 1; color: #fff; }
.stat-item span { display: block; color: rgba(255,255,255,.82); margin-top: 8px; }

.section { padding: 88px 0; background: #fff; }
.section.alt { background: var(--soft); }
.section.dark { background: #052a55; color: #fff; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.15;
  letter-spacing: 0;
}
.section.dark .section-head h2, .section.dark .section-head p { color: #fff; }
.section-head p { margin: 0; max-width: 520px; color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature, .partner, .review, .award, .news-item, .portal-card, .auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(8, 26, 58, .05);
}
.feature { padding: 28px; }
.feature h3, .partner h3, .review h3, .award h3, .news-item h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
}
.feature p, .partner p, .review p, .award p, .news-item p { margin: 0; color: var(--muted); }
.feature-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
  font-weight: 900;
}
.partner { padding: 22px; display: flex; align-items: flex-start; gap: 14px; }
.partner-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: #fff; background: var(--navy); font-weight: 900;
  flex: 0 0 auto;
  overflow: hidden;
}
.partner-logo-generated {
  background:
    radial-gradient(circle at 24% 20%, rgba(255,255,255,.24), transparent 34%),
    linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    0 18px 32px rgba(8, 26, 58, .12);
}
.partner-logo-generated svg {
  width: 34px;
  height: 34px;
  display: block;
}
.partner-logo-file-wrap {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(8, 26, 58, .08);
}
.partner-logo-file {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #fff;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.brand-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(8, 26, 58, .05);
  padding: 24px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.brand-tile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.brand-kicker {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand-tile h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}
.brand-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 17px;
}
.review { padding: 26px; }
.review-stars { color: #f0a000; letter-spacing: 2px; margin-bottom: 14px; }
.review-author { margin-top: 18px; font-weight: 900; color: var(--ink); }
.award { padding: 24px; border-left: 4px solid var(--blue); }
.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.image-panel {
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.98)),
    url("img/hero-workforce.png") center center / contain no-repeat;
  box-shadow: var(--shadow);
}
.process-list { display: grid; gap: 16px; margin-top: 22px; }
.process-row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.process-row span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 900; }
.process-row h3 { margin: 0 0 4px; color: var(--ink); }
.process-row p { margin: 0; color: var(--muted); }
.cta-band {
  background: linear-gradient(90deg, #062d59, #0069c9);
  color: #fff;
  padding: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-band h2 { margin: 0 0 8px; font-size: 34px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255,255,255,.82); }
.site-footer { background: #041b35; color: rgba(255,255,255,.78); padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer-grid h3, .footer-grid h4 { color: #fff; margin: 0 0 12px; }
.footer-grid a { display: block; margin: 8px 0; color: rgba(255,255,255,.74); }

.page-hero {
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.82)), url("img/hero-workforce.png") center / cover no-repeat;
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 0; color: var(--ink); font-size: clamp(36px, 5vw, 58px); line-height: 1.1; }
.page-hero p { max-width: 690px; margin: 18px 0 0; color: #253453; font-size: 17px; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  margin-bottom: 44px;
}
.proof-strip span {
  min-height: 68px;
  display: grid;
  place-items: center start;
  padding: 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
}
.date-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.media-slot {
  width: 100%;
  min-height: 430px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center center;
  box-sizing: border-box;
  padding: 10px;
  box-shadow: var(--shadow);
  background: #fff;
}
.wide-media-slot {
  display: block;
  min-height: 0;
  height: auto;
  aspect-ratio: 6 / 5;
  object-position: center center;
}
.section-visual-slot {
  padding: 0;
  background: #fff;
}
.wide-media-slot.empty-media,
.team-media.empty-media,
.media-slot.empty-media {
  border: 0;
  box-shadow: 0 14px 34px rgba(8, 26, 58, .05);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(244,248,254,.92)),
    linear-gradient(135deg, rgba(12,92,190,.08), rgba(12,92,190,0) 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0, rgba(255,255,255,.55) 1px, transparent 1px, transparent 64px);
}
.route-intro h2,
.team-feature h2,
.review-form-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.15;
}
.route-intro p,
.team-feature p,
.review-form-card p {
  margin: 0;
  color: var(--muted);
}
.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.route-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.route-card,
.team-card,
.review-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(8, 26, 58, .05);
}
.route-card {
  padding: 24px;
  display: flex;
  min-height: 100%;
  flex-direction: column;
}
.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.route-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.route-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
}
.route-card p {
  margin: 0 0 12px;
  color: var(--muted);
}
.route-card p strong { color: var(--ink); }
.route-card .route-actions { margin-top: auto; padding-top: 8px; }
.compact-card {
  padding: 20px;
}
.compact-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.compact-card p {
  font-size: 15px;
  line-height: 1.65;
}
.compact-card .route-meta {
  margin-bottom: 12px;
}
.compact-card .route-meta span {
  min-height: 26px;
  padding: 0 9px;
  font-size: 10px;
}
.feature-tight {
  padding: 24px;
}
.feature-tight h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.feature-tight p {
  font-size: 15px;
  line-height: 1.65;
}
.trust-split {
  align-items: stretch;
}
.trust-copy p {
  line-height: 1.72;
}
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ledger-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(8, 26, 58, .05);
  padding: 20px;
}
.ledger-step {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ledger-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}
.ledger-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}
.team-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.team-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.team-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center center;
  background: #fff;
  box-sizing: border-box;
  padding: 10px;
  flex: 0 0 auto;
}
.team-copy {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.team-copy h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
}
.team-copy p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}
.review-form-card {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 34px;
  padding: 34px;
  align-items: start;
}

.job-toolbar-card {
  display: grid;
  gap: 18px;
}

.job-toolbar-card .section-head h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.job-toolbar-card .section-head p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.job-toolbar-card .date-chip {
  min-height: 34px;
  padding: 0 12px;
  font-size: 10px;
  letter-spacing: .06em;
}

.jobs-scope-tabs {
  gap: 8px;
  margin-bottom: 0;
}

.jobs-scope-tabs a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.jobs-admin-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.jobs-search,
.public-jobs-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 580px;
}

.jobs-search input,
.public-jobs-search input {
  flex: 1 1 auto;
  min-width: 220px;
  min-height: 42px;
  border-radius: 9px;
  font-size: 14px;
}

.jobs-search .btn,
.jobs-per-page .btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.jobs-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jobs-letter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jobs-letter-row a,
.jobs-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.jobs-letter-row a.active,
.jobs-pagination a.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.jobs-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.jobs-table-card th:last-child,
.jobs-table-card td:last-child {
  width: 136px;
}

.jobs-table-card table th,
.jobs-table-card table td {
  font-size: 13px;
}

.jobs-table-card table strong {
  font-size: 13px;
}

.jobs-inline-empty {
  padding: 14px 18px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.action-menu {
  position: relative;
  display: inline-block;
}

.action-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(8, 26, 58, .04);
}

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

.action-menu summary::after {
  content: "▾";
  margin-left: 8px;
  font-size: 10px;
}

.action-menu[open] summary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.action-menu-right .action-menu-list {
  right: 0;
  left: auto;
}

.action-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 210px;
  padding: 7px;
  border: 1px solid #d6e2f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(7, 24, 52, .18);
  display: grid;
  gap: 4px;
}

.action-menu-list a {
  display: block;
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.action-menu-list a:hover {
  background: #edf5ff;
  color: var(--blue);
}

.section-head.compact {
  align-items: flex-start;
  gap: 14px;
}

.section-head.compact h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.section-head.compact p {
  margin: 0;
  font-size: 13px;
}

.public-manage-tabs {
  margin-top: 16px;
}

.public-manage-tabs a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.public-manage-strip,
.hot-jobs-strip {
  margin-top: 14px;
}

.public-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.public-manage-actions .btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.public-media-preview {
  margin-top: 12px;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbff;
  padding: 10px;
}

.public-media-preview.compact {
  max-width: 180px;
  aspect-ratio: 1 / 1;
  padding: 8px;
}

.public-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

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

.hot-upload-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.checkbox-row.compact {
  gap: 8px;
}

.check.compact {
  padding: 8px 10px;
  font-size: 12px;
}

.public-jobs-search-section {
  padding-top: 54px;
  padding-bottom: 28px;
}

.public-jobs-search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.98)),
    radial-gradient(circle at top right, rgba(0,105,201,.08), transparent 28%);
  box-shadow: 0 18px 36px rgba(8, 26, 58, .06);
}

.public-jobs-search-shell h1 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.06;
}

.public-jobs-search-shell p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.job-public-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(8, 26, 58, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease, filter .2s ease;
  display: flex;
  flex-direction: column;
}

.job-public-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(8, 26, 58, .10);
}

.job-public-card.live {
  border-color: rgba(0,105,201,.18);
}

.job-public-card.live .job-live-dot {
  animation: livePulse 1.9s ease-in-out infinite;
}

.job-public-card.closed {
  opacity: .82;
  filter: saturate(.72);
}

.job-public-media {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #eef5ff, #f8fbff);
  padding: 12px;
  border-bottom: 1px solid rgba(0,105,201,.08);
}

.job-public-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.job-public-media.placeholder {
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(0,105,201,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,247,255,.98)),
    radial-gradient(circle at top right, rgba(0,105,201,.10), transparent 30%);
}

.job-public-media.placeholder div {
  display: grid;
  gap: 10px;
  text-align: center;
}

.job-public-media.placeholder span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.job-public-media.placeholder strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.08;
}

.job-public-card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
  flex: 1;
}

.job-public-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.job-public-topline strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
}

.job-public-code {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4fb;
  color: #58718f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.job-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #1eb980;
  box-shadow: 0 0 0 0 rgba(30, 185, 128, .38);
  flex: 0 0 auto;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 185, 128, .34); }
  70% { box-shadow: 0 0 0 10px rgba(30, 185, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 185, 128, 0); }
}

.job-public-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-public-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.job-public-card.closed .job-public-meta span {
  background: #eef2f7;
  color: #667a93;
}

.job-public-stats {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.job-public-lines {
  display: grid;
  gap: 10px;
}

.job-public-lines div {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid #edf2f8;
}

.job-public-lines span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.job-public-lines strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.job-public-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.job-public-actions .btn {
  width: 100%;
}

.public-jobs-no-match[hidden] {
  display: none !important;
}

.hot-jobs-home-band,
.hot-jobs-public-band {
  padding-top: 28px;
  padding-bottom: 18px;
}

.hot-jobs-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,249,255,.98)),
    radial-gradient(circle at top right, rgba(0,105,201,.16), transparent 36%),
    radial-gradient(circle at bottom left, rgba(10,137,240,.08), transparent 30%);
  box-shadow: 0 28px 56px rgba(8, 26, 58, .10);
  opacity: 0;
  transform: translateY(22px) scale(.985);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s ease, box-shadow .35s ease;
}

.hot-jobs-shell::before,
.hot-jobs-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hot-jobs-shell::before {
  width: 220px;
  height: 220px;
  right: -60px;
  top: -80px;
  background: radial-gradient(circle, rgba(95, 143, 255, .28), rgba(95, 143, 255, 0));
  filter: blur(16px);
  animation: hotAuraDrift 12s ease-in-out infinite;
}

.hot-jobs-shell::after {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(0, 186, 146, .12), rgba(0, 186, 146, 0));
  filter: blur(18px);
  animation: hotAuraDrift 16s ease-in-out infinite reverse;
}

.hot-jobs-shell.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hot-jobs-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 16px;
}

.hot-jobs-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: .97;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.hot-jobs-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 58ch;
}

.hot-jobs-typebar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hot-jobs-type-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0,105,201,.08);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hot-jobs-type {
  position: relative;
  min-height: 28px;
  padding-right: 14px;
  color: var(--ink);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.hot-jobs-type::after {
  content: "";
  position: absolute;
  right: 0;
  top: 2px;
  width: 2px;
  height: calc(100% - 4px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,105,201,.92), rgba(0,105,201,.18));
  animation: hotTypeCaret .9s steps(1) infinite;
}

.hot-jobs-actions {
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hot-jobs-visual {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hot-jobs-banner {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(183, 199, 220, .68);
  border-radius: 24px;
  background: linear-gradient(135deg, #081b3d, #0f3270 48%, #144ea0);
  box-shadow: 0 24px 56px rgba(8, 26, 58, .18);
  isolation: isolate;
}

.hot-jobs-banner-slides,
.hot-jobs-banner-fallback {
  position: absolute;
  inset: 0;
}

.hot-jobs-banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  transform: scale(1.06) translateX(4%);
  transition: opacity .8s ease, transform 1.6s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}

.hot-jobs-banner-slide:nth-child(even) {
  transform: scale(1.06) translateX(-4%);
}

.hot-jobs-banner-slide.is-active {
  opacity: 1;
  transform: scale(1) translateX(0);
  z-index: 1;
}

.hot-jobs-banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  animation: hotBannerDrift 16s ease-in-out infinite alternate;
  transform: scale(1.04);
}

.hot-jobs-banner-slide:nth-child(2) img {
  animation-delay: -4s;
}

.hot-jobs-banner-slide:nth-child(3) img {
  animation-delay: -8s;
}

.hot-jobs-banner-slide:nth-child(4) img {
  animation-delay: -12s;
}

.hot-jobs-banner-fallback-inner,
.hot-jobs-banner-fallback-inner .job-public-media {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.hot-jobs-banner-fallback-inner .job-public-media {
  padding: 0;
  border: 0;
}

.hot-jobs-banner-fallback-inner .job-public-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-jobs-banner-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 16, 38, .82) 0%, rgba(5, 16, 38, .55) 32%, rgba(5, 16, 38, .14) 64%, rgba(5, 16, 38, .62) 100%),
    radial-gradient(circle at top right, rgba(255, 193, 94, .22), transparent 24%),
    radial-gradient(circle at bottom left, rgba(57, 134, 255, .28), transparent 28%);
  pointer-events: none;
}

.hot-jobs-banner-overlay {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: space-between;
  min-height: 500px;
  padding: 26px;
  pointer-events: none;
}

.hot-jobs-banner-brand,
.hot-jobs-banner-copy,
.hot-jobs-banner-proof {
  max-width: min(72%, 420px);
}

.hot-jobs-banner-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hot-jobs-banner-logo,
.hot-jobs-banner-status,
.hot-jobs-banner-kicker,
.hot-jobs-banner-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.hot-jobs-banner-logo {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hot-jobs-banner-status {
  background: rgba(28, 197, 123, .18);
  color: #ccffe8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hot-jobs-banner-copy {
  display: grid;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 22px;
}

.hot-jobs-banner-kicker {
  width: fit-content;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hot-jobs-banner-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: .96;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.hot-jobs-banner-copy p {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
}

.hot-jobs-banner-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hot-jobs-banner-proof span {
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.hot-jobs-media-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 420px;
  perspective: 1400px;
}

.hot-jobs-media-grid.count-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.hot-jobs-media-grid.count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
  min-height: 320px;
}

.hot-jobs-media-grid.count-2 .media-1 {
  grid-row: auto;
}

.hot-jobs-media-card {
  position: relative;
  appearance: none;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(183, 199, 220, .68);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,251,255,.94)),
    radial-gradient(circle at top right, rgba(0,105,201,.10), transparent 32%);
  padding: 12px;
  box-shadow: 0 18px 38px rgba(8, 26, 58, .08);
  transform: translateY(0) scale(.985);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, border-color .35s ease, filter .35s ease;
  cursor: pointer;
  text-align: left;
  isolation: isolate;
  border-radius: 18px;
}

.hot-jobs-media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.32), rgba(255,255,255,0) 48%, rgba(0,105,201,.10));
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 1;
}

.hot-jobs-media-card.media-1 {
  grid-row: 1 / span 2;
}

.hot-jobs-media-card.is-active,
.hot-jobs-media-card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(0,105,201,.35);
  box-shadow: 0 28px 56px rgba(8, 26, 58, .14);
}

.hot-jobs-media-card.is-active::before,
.hot-jobs-media-card:hover::before {
  opacity: 1;
}

.hot-jobs-media-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 12px;
  transform: scale(1.02);
  transition: transform .8s ease, filter .5s ease;
  animation: hotJobsFloat 16s ease-in-out infinite;
}

.hot-jobs-media-card:nth-child(2) img {
  animation-delay: -4s;
}

.hot-jobs-media-card:nth-child(3) img {
  animation-delay: -8s;
}

.hot-jobs-media-card:nth-child(4) img {
  animation-delay: -12s;
}

.hot-jobs-media-card.is-active img,
.hot-jobs-media-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.06) contrast(1.02);
}

.hot-jobs-media-card-fallback {
  padding: 0;
}

.hot-jobs-media-card-fallback .job-public-media {
  border-bottom: 0;
  min-height: 100%;
  padding: 16px;
}

.hot-jobs-media-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(4, 17, 37, .78);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.hot-jobs-media-dots {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hot-jobs-media-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 26, 58, .16);
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(8, 26, 58, .08);
  transition: transform .25s ease, background .25s ease, width .25s ease;
  cursor: pointer;
}

.hot-jobs-media-dot.is-active,
.hot-jobs-media-dot:hover {
  width: 28px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
}

.hot-jobs-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.hot-job-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98)),
    radial-gradient(circle at top left, rgba(0,105,201,.08), transparent 32%);
  box-shadow: 0 14px 28px rgba(8, 26, 58, .06);
  opacity: 0;
  transform: translateY(18px);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .55s ease, border-color .35s ease, box-shadow .35s ease;
}

.hot-job-mini-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.hot-job-mini-card span {
  color: var(--muted);
  font-size: 12px;
}

.hot-jobs-shell.is-visible ~ .hot-jobs-mini-grid .hot-job-mini-card {
  opacity: 1;
  transform: translateY(0);
}

.hot-jobs-shell.is-visible ~ .hot-jobs-mini-grid .hot-job-mini-card:nth-child(2) {
  transition-delay: .08s;
}

.hot-jobs-shell.is-visible ~ .hot-jobs-mini-grid .hot-job-mini-card:nth-child(3) {
  transition-delay: .16s;
}

.hot-job-mini-card.live:hover,
.hot-job-mini-card.live:focus-within {
  border-color: rgba(0,105,201,.28);
  box-shadow: 0 20px 38px rgba(8, 26, 58, .10);
  transform: translateY(-4px);
}

.hot-job-mini-card.closed {
  opacity: .84;
  filter: saturate(.72);
}

.hot-jobs-grid .hot-card {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: transform .65s cubic-bezier(.2,.8,.2,1), opacity .65s ease, box-shadow .3s ease, border-color .3s ease;
}

.hot-jobs-grid .hot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,105,201,.07), rgba(255,255,255,0) 42%, rgba(11,188,146,.08));
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.hot-jobs-grid .hot-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hot-jobs-grid .hot-card.live:hover::before,
.hot-jobs-grid .hot-card.live.is-visible::before {
  opacity: 1;
}

.hot-jobs-grid .hot-card .job-public-media img {
  animation: hotJobsFloat 18s ease-in-out infinite;
  transition: transform .7s ease, filter .35s ease;
}

.hot-jobs-grid .hot-card.live .job-public-media img {
  filter: saturate(1.03);
}

.hot-jobs-grid .hot-card:hover .job-public-media img {
  transform: scale(1.04);
}

@keyframes hotAuraDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-12px, 14px, 0) scale(1.08); }
}

@keyframes hotTypeCaret {
  0%, 48% { opacity: 1; }
  52%, 100% { opacity: 0; }
}

@keyframes hotBannerDrift {
  0% { transform: scale(1.04) translate3d(-2%, 0, 0); }
  50% { transform: scale(1.1) translate3d(2%, -1.5%, 0); }
  100% { transform: scale(1.06) translate3d(0, 1%, 0); }
}

@keyframes hotJobsFloat {
  0%, 100% { transform: scale(1.02) translate3d(0, 0, 0); }
  35% { transform: scale(1.05) translate3d(0, -8px, 0); }
  68% { transform: scale(1.04) translate3d(10px, -4px, 0); }
}

.job-public-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
}

.job-public-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 17, 37, .62);
}

.job-public-modal-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(980px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 1px solid #d9e5f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(7, 24, 52, .28);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.job-public-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.job-public-modal-head h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.08;
}

.job-public-modal-head p {
  margin: 0;
  color: var(--muted);
}

.job-public-modal-head button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #d7e3f2;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  flex: 0 0 auto;
}

.job-public-modal-body {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  padding: 22px;
  overflow: auto;
}

.job-public-modal-body .job-public-media {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.job-public-modal-copy {
  display: grid;
  gap: 16px;
}

.job-public-lines-modal div:first-child {
  padding-top: 0;
  border-top: 0;
}

.jobs-empty-state {
  text-align: center;
  padding-top: 42px;
  padding-bottom: 42px;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; color: #6a7b99; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.input, input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,105,201,.10); transform: translateY(-1px); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--text);
}
.check input { width: auto; }
.flash { padding: 14px 16px; border-radius: 8px; margin: 14px 0; font-weight: 700; }
.flash.success { background: #eaf8f1; color: var(--success); }
.flash.error { background: #fff1f0; color: var(--danger); }
.flash.info { background: var(--blue-soft); color: var(--blue); }

.auth-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 34px 18px;
  background: linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.76)), url("img/hero-workforce.png") center / cover no-repeat;
}
.auth-card { width: min(460px, 100%); padding: 32px; }
.auth-card .brand { justify-content: center; margin-bottom: 18px; }
.auth-card h1 { margin: 0 0 8px; color: var(--ink); text-align: center; }
.auth-card p { text-align: center; color: var(--muted); margin: 0 0 24px; }

.form-surface-card {
  border-radius: 28px;
  padding: 34px;
}

.smart-form-shell,
.portal-card form,
.public-signup-form,
.auth-card form {
  display: grid;
  gap: 20px;
}

.smart-form-shell-compact {
  gap: 16px;
}

.smart-form-head {
  display: grid;
  gap: 20px;
  margin-bottom: 4px;
}

.smart-form-head h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(28px, 2.8vw, 38px);
}

.smart-form-head p {
  margin: 0;
  color: var(--muted);
  text-align: left;
}

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

.smart-step {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.smart-step::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: rgba(0, 105, 201, .18);
}

.smart-step:last-child::after {
  display: none;
}

.smart-step span {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 105, 201, .18);
  background: #eef5ff;
  color: #7a889f;
  font-weight: 800;
}

.smart-step strong {
  font-size: 12px;
  color: #7082a3;
}

.smart-step.is-active span {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 14px 28px rgba(0, 105, 201, .18);
}

.smart-step.is-active strong {
  color: var(--blue);
}

.smart-form-card {
  border: 1px solid #e7effa;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 22px;
  box-shadow: 0 14px 36px rgba(5, 23, 55, .04);
}

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

.smart-form-card-head h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 21px;
}

.smart-form-card-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
}

.smart-form-kicker {
  display: inline-block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.smart-form-note {
  border: 1px solid #e7effa;
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8fbff;
  color: #48607f;
  font-size: 13px;
  line-height: 1.7;
}

.smart-form-note.success {
  background: #eefbf2;
  border-color: #caefd6;
  color: #1e6b47;
}

.legal-submit-row {
  display: flex;
  justify-content: flex-start;
}

.btn-bank-submit {
  min-width: 220px;
  padding: 13px 22px;
  border-radius: 14px;
  font-size: 14px;
  letter-spacing: .02em;
  box-shadow: 0 12px 28px rgba(0, 105, 201, .16);
}

.btn-success-submit {
  min-width: 240px;
  padding: 14px 24px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #16a34a 0%, #0f9f5f 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 12px 28px rgba(15, 159, 95, .18);
}

.direct-app-wizard {
  gap: 24px;
}

.wizard-panel {
  display: none;
  gap: 20px;
}

.wizard-panel.is-active {
  display: grid;
}

.smart-step.is-complete span {
  background: #fff;
  color: var(--blue);
  border-color: rgba(0, 105, 201, .28);
}

.smart-step.is-complete strong {
  color: var(--blue);
}

.smart-step.is-complete::after,
.smart-step.is-active::after {
  background: var(--blue);
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wizard-actions-end {
  justify-content: flex-end;
}

.wizard-actions-spacer {
  flex: 1 1 auto;
}

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

.review-card-list {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.review-list-card {
  border: 1px solid #e7effa;
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
}

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

.review-copy {
  display: grid;
  gap: 6px;
}

.review-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.review-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.review-edit {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.direct-app-legal-box .legal-acceptance {
  margin: 0;
  border-radius: 18px;
}

.form-upload-grid input[type="file"],
.form-grid input[type="file"] {
  min-height: 132px;
  border-style: dashed;
  border-width: 1.5px;
  border-color: #bfd5f6;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
  padding: 18px 16px;
}

.form-upload-grid input[type="file"]::file-selector-button,
.form-grid input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 105, 201, .1);
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.portal-shell { min-height: 100svh; display: grid; grid-template-columns: 280px 1fr; background: #f4f8fd; }
.sidebar {
  background: #062d59;
  color: #fff;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: auto;
}
.sidebar .brand { color: #fff; margin-bottom: 28px; min-width: 0; }
.sidebar .brand img { width: 54px; height: 54px; }
.sidebar .brand-word { color: #fff; font-size: 13px; letter-spacing: .18em; }
.side-user { border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 14px; margin-bottom: 20px; background: rgba(255,255,255,.06); }
.side-user strong { display: block; color: #fff; }
.side-user span { color: rgba(255,255,255,.72); font-size: 12px; }
.side-nav { display: grid; gap: 6px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 7px;
  color: rgba(255,255,255,.82);
  font-weight: 800;
  font-size: 13px;
}
.side-nav a.active, .side-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidebar-mobile-head,
.portal-mobile-toggle,
.portal-backdrop,
.sidebar-close { display: none; }
.portal-main { min-width: 0; }
.portal-top {
  min-height: 74px;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
}
.portal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.portal-top h1 { margin: 0; color: var(--ink); font-size: 24px; }
.portal-content { padding: 28px; }
.portal-card { padding: 22px; }
.portal-card h2, .portal-card h3 { margin: 0 0 14px; color: var(--ink); }
.form-toggle { padding: 18px 22px; }
.form-toggle summary {
  width: fit-content;
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,105,201,.22);
}
.form-toggle summary::-webkit-details-marker { display: none; }
.form-toggle[open] summary { margin-bottom: 20px; background: #0059ad; }
.selection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.kpi span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.kpi strong { display: block; color: var(--ink); margin-top: 8px; font-size: 28px; line-height: 1; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table-wrap { -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f8fbff; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.badge.success { color: var(--success); background: #eaf8f1; }
.badge.warning { color: var(--warning); background: #fff6e8; }
.badge.danger { color: var(--danger); background: #fff1f0; }
.badge.info { color: var(--blue); background: var(--blue-soft); }
.badge.muted { color: var(--muted); background: #eef2f7; }
.status-stack { display: grid; gap: 8px; }
.status-stack .small { display: inline-block; margin-bottom: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs a { padding: 10px 13px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 800; }
.tabs a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.profile-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.detail { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; }
.detail span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.detail strong { display: block; margin-top: 4px; color: var(--ink); overflow-wrap: anywhere; }
.job-detail-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
.job-info-block { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.job-info-block h3 { margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.info-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .02em;
}
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.doc-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; }
.doc-card strong { display: block; color: var(--ink); margin-bottom: 6px; }
.doc-card a { color: var(--blue); font-weight: 800; }
.timeline { display: grid; gap: 12px; }
.timeline-item { display: grid; gap: 4px; padding: 14px; border-left: 3px solid var(--blue); background: #fff; border-radius: 8px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline-item.action-link { transition: .2s ease; }
.timeline-item.action-link:hover { transform: translateY(-1px); border-color: var(--blue); box-shadow: 0 10px 24px rgba(8, 26, 58, .08); }
.job-status-note { margin: 6px 0 0; color: var(--text); }
.bar-chart { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 90px; gap: 12px; align-items: center; }
.bar-track { height: 12px; background: #e7eef7; border-radius: 999px; overflow: hidden; }
.bar-track[data-tip] { overflow: visible; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.bar-track[data-tip] .bar-fill { border-radius: inherit; }
.due-total { font-size: 38px; color: var(--ink); font-weight: 900; line-height: 1; }
.privacy-note { background: #eef7ff; color: #174b78; border: 1px solid #cde6ff; border-radius: 8px; padding: 14px; }
.finance-dashboard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 14px 32px rgba(8, 26, 58, .05);
}
.finance-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.finance-hero h2 { margin: 0 0 8px; color: var(--ink); font-size: 30px; }
.finance-hero p { margin: 0; }
.finance-status {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.finance-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.finance-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.finance-card-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.finance-card-head strong { display: block; color: var(--ink); font-size: 26px; margin-top: 6px; }
.finance-ring {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  margin: 18px 0;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--ring) var(--pct), #e7eef7 0);
  position: relative;
}
.finance-ring:before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: inherit;
  background: #fff;
}
.finance-ring span { position: relative; z-index: 1; color: var(--ink); font-weight: 900; }
.finance-lines { display: grid; gap: 8px; }
.finance-lines div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.finance-lines span { color: var(--muted); font-size: 12px; font-weight: 800; }
.finance-lines strong { color: var(--ink); font-size: 13px; text-align: right; }
[data-tip] { position: relative; }
[data-tip]:hover:after {
  content: attr(data-tip);
  position: absolute;
  left: 12px;
  bottom: calc(100% + 8px);
  width: min(280px, 70vw);
  background: #071a34;
  color: #fff;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  z-index: 60;
  box-shadow: 0 12px 30px rgba(8, 26, 58, .18);
}

@media (max-width: 980px) {
  .site-header {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(18px);
  }
  .header-inner { min-height: 82px; }
  .brand {
    gap: 12px;
    flex: 1;
    min-width: 0;
  }
  .brand img { width: 62px; height: 62px; }
  .brand-word {
    font-size: 14px;
    letter-spacing: .22em;
  }
  .brand-word span {
    margin-top: 3px;
    font-size: 12px;
    letter-spacing: .18em;
  }
  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(196, 212, 233, .95);
    box-shadow: 0 10px 24px rgba(8, 26, 58, .08);
    font-size: 24px;
    font-weight: 900;
  }
  .nav {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    top: 94px;
    z-index: 70;
    background: rgba(255,255,255,.99);
    border: 1px solid rgba(219,229,243,.95);
    border-radius: 22px;
    box-shadow: 0 26px 52px rgba(8, 26, 58, .16);
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-height: calc(100svh - 112px);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(.985);
    transform-origin: top center;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13px;
    letter-spacing: .04em;
    background: transparent;
  }
  .nav a.active,
  .nav a:hover {
    color: var(--ink);
    background: var(--blue-soft);
  }
  .nav a:after { display: none; }
  .public-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    border: 0;
    background: rgba(4, 23, 46, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  .public-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  .hero {
    min-height: auto;
    display: block;
    padding: 12px 0 30px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 46%, rgba(255,255,255,.3) 100%),
      url("img/hero-workforce.png") 68% bottom / cover no-repeat;
  }
  .hero:after { height: 24%; }
  .hero-copy {
    max-width: 620px;
    padding: 28px 0 0;
  }
  .stat-strip {
    position: relative;
    transform: none;
    left: auto;
    bottom: auto;
    width: min(100vw - 40px, 1180px);
    margin: 24px auto 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-item {
    min-height: 110px;
    padding: 20px 22px;
    border-right: 0;
    border-radius: 18px;
    background: #062d59;
    box-shadow: 0 18px 36px rgba(2, 25, 55, .16);
  }
  .grid-2, .grid-3, .grid-4, .split-band, .footer-grid, .profile-grid, .route-grid, .route-grid.compact, .team-grid, .team-feature, .review-form-card, .brand-grid, .ledger-grid { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-slot { min-height: 320px; }
  .wide-media-slot {
    min-height: 0;
    aspect-ratio: 5 / 4;
  }
  .team-media {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .portal-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 320px);
    height: 100svh;
    transform: translateX(-100%);
    transition: transform .22s ease;
    z-index: 60;
    padding: 18px 14px 24px;
    box-shadow: 0 18px 40px rgba(8, 26, 58, .24);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255,255,255,.8);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .sidebar-close,
  .portal-mobile-toggle { display: inline-grid; place-items: center; }
  .sidebar-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 24px;
    line-height: 1;
  }
  .portal-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(4, 23, 46, .44);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    z-index: 55;
  }
  .portal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  .portal-top { padding: 12px 18px; }
  .portal-content { padding: 18px; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .job-detail-list, .finance-grid { grid-template-columns: 1fr; }
  .finance-hero { display: block; }
  .finance-status { display: inline-flex; margin-top: 14px; }
  .jobs-admin-filters,
  .public-jobs-search-shell,
  .public-jobs-search {
    grid-template-columns: 1fr;
    display: grid;
  }
  .jobs-search {
    width: 100%;
  }
  .jobs-per-page,
  .jobs-letter-row {
    width: 100%;
  }
  .job-public-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hot-jobs-shell,
  .hot-jobs-mini-grid,
  .hot-upload-grid {
    grid-template-columns: 1fr;
  }
  .hot-jobs-shell {
    gap: 18px;
    padding: 20px;
  }
  .hot-jobs-banner,
  .hot-jobs-banner-overlay,
  .hot-jobs-banner-fallback-inner,
  .hot-jobs-banner-fallback-inner .job-public-media {
    min-height: 420px;
  }
  .hot-jobs-banner-brand,
  .hot-jobs-banner-copy,
  .hot-jobs-banner-proof {
    max-width: 100%;
  }
  .hot-jobs-media-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(auto-fit, minmax(200px, 1fr));
  }
  .hot-jobs-media-card.media-1 {
    grid-row: auto;
  }
  .hot-jobs-media-dots {
    justify-content: center;
    right: 0;
    left: 0;
    bottom: 18px;
  }
  .job-public-modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container { width: min(100vw - 24px, 1180px); }
  .header-inner { min-height: 78px; }
  .brand img { width: 52px; height: 52px; }
  .brand-word {
    font-size: 12px;
    letter-spacing: .18em;
  }
  .brand-word span {
    font-size: 11px;
    letter-spacing: .16em;
  }
  .header-actions .btn { display: none; }
  .header-actions { gap: 8px; }
  .mobile-toggle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .nav {
    left: 10px;
    right: 10px;
    top: 86px;
    padding: 12px;
    border-radius: 20px;
    max-height: calc(100svh - 98px);
  }
  .nav a {
    padding: 13px 14px;
    font-size: 12px;
  }
  .hero {
    padding: 6px 0 22px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 52%, rgba(255,255,255,.24) 100%),
      url("img/hero-workforce.png") 72% bottom / cover no-repeat;
  }
  .hero-copy { padding: 18px 0 0; }
  .hero h1 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.04;
    max-width: 9ch;
  }
  .hero p,
  .page-hero p {
    font-size: 15px;
    line-height: 1.6;
  }
  .hero p {
    margin: 16px 0 22px;
    max-width: 100%;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stat-strip {
    grid-template-columns: 1fr;
    width: min(100vw - 24px, 1180px);
    gap: 10px;
    margin-top: 20px;
  }
  .stat-item {
    min-height: 0;
    padding: 18px;
    gap: 14px;
  }
  .stat-icon {
    width: 38px;
    height: 38px;
  }
  .stat-item strong { font-size: 30px; }
  .stat-item span {
    margin-top: 6px;
    font-size: 15px;
  }
  .feature,
  .partner,
  .review,
  .award,
  .news-item,
  .portal-card,
  .auth-card,
  .route-card,
  .review-form-card,
  .kpi,
  .ledger-card,
  .brand-tile { padding: 18px; }
  .section { padding: 58px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .date-chip { margin-top: 14px; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip span { min-height: 56px; }
  .media-slot { min-height: 240px; }
  .wide-media-slot {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .team-media {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .review-form-card { padding: 24px; }
  .form-grid, .detail-list, .doc-grid, .kpi-grid, .selection-list { grid-template-columns: 1fr; }
  .table-wrap { border-radius: 6px; }
  table { min-width: 620px; }
  th, td { padding: 12px 10px; font-size: 13px; }
  .tabs {
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 4px;
  }
  .tabs a {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .portal-top {
    padding: 12px 14px;
    gap: 10px;
    align-items: center;
  }
  .portal-title-row { gap: 10px; }
  .portal-top h1 {
    font-size: 22px;
    line-height: 1.12;
  }
  .portal-content { padding: 14px; }
  .portal-content .actions {
    align-items: stretch;
  }
  .portal-content .actions .btn,
  .portal-content .actions form {
    width: 100%;
  }
  .portal-content .actions form .btn,
  .route-actions .btn,
  .hero-actions .btn,
  .cta-band .btn,
  .review-form-card .btn {
    width: 100%;
  }
  .jobs-search,
  .public-jobs-search {
    display: grid;
    grid-template-columns: 1fr;
  }
  .jobs-search input,
  .public-jobs-search input {
    min-width: 0;
  }
  .jobs-per-page,
  .jobs-letter-row,
  .jobs-pagination {
    width: 100%;
  }
  .jobs-per-page .btn,
  .jobs-letter-row a,
  .jobs-pagination a {
    flex: 1 1 calc(33.333% - 8px);
  }
  .public-jobs-search-section {
    padding-top: 54px;
    padding-bottom: 24px;
  }
  .public-jobs-search-shell {
    padding: 20px;
  }
  .public-jobs-search-shell h1 {
    font-size: clamp(28px, 10vw, 38px);
  }
  .job-public-card-body {
    padding: 18px;
  }
  .job-public-topline {
    align-items: flex-start;
    flex-direction: column;
  }
  .job-public-topline strong {
    font-size: 22px;
  }
  .job-public-media {
    aspect-ratio: 5 / 4;
  }
  .job-public-card-grid {
    grid-template-columns: 1fr;
  }
  .public-manage-actions .btn,
  .hot-job-mini-card .btn {
    width: 100%;
  }
  .hot-jobs-copy h2 {
    font-size: clamp(26px, 11vw, 34px);
  }
  .hot-jobs-shell {
    padding: 18px;
  }
  .hot-jobs-banner,
  .hot-jobs-banner-overlay,
  .hot-jobs-banner-fallback-inner,
  .hot-jobs-banner-fallback-inner .job-public-media {
    min-height: 340px;
  }
  .hot-jobs-typebar {
    gap: 10px;
  }
  .hot-jobs-type {
    font-size: 15px;
  }
  .hot-jobs-banner-overlay {
    padding: 18px;
  }
  .hot-jobs-banner-copy {
    gap: 10px;
    margin-bottom: 16px;
  }
  .hot-jobs-banner-copy h3 {
    font-size: clamp(24px, 8vw, 34px);
  }
  .hot-jobs-banner-copy p {
    font-size: 13px;
    line-height: 1.5;
  }
  .hot-jobs-banner-logo,
  .hot-jobs-banner-status,
  .hot-jobs-banner-kicker,
  .hot-jobs-banner-proof span {
    min-height: 30px;
    padding: 0 11px;
    font-size: 10px;
  }
  .hot-jobs-media-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
  }
  .hot-jobs-media-card.media-1 {
    grid-row: auto;
  }
  .hot-jobs-media-card {
    padding: 10px;
    border-radius: 14px;
  }
  .hot-jobs-media-badge {
    left: 14px;
    top: 14px;
  }
  .hot-jobs-mini-grid {
    gap: 12px;
  }
  .job-public-actions {
    grid-template-columns: 1fr;
  }
  .job-public-modal-card {
    width: min(100vw - 20px, 980px);
    max-height: calc(100vh - 20px);
  }
  .job-public-modal-head {
    padding: 16px;
  }
  .job-public-modal-head h3 {
    font-size: 22px;
  }
  .job-public-modal-body {
    padding: 16px;
    gap: 16px;
  }
  .finance-ring {
    width: 96px;
    height: 96px;
  }
  .finance-ring:before { inset: 11px; }
  .due-total { font-size: 30px; }
  .cta-band { display: block; padding: 30px; }
  .cta-band .btn { margin-top: 18px; }
  .bar-row { grid-template-columns: 1fr; }
  .finance-card-head strong { font-size: 22px; }
  .site-footer { padding: 36px 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-grid > div {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .footer-grid > div:first-child {
    padding-top: 0;
    border-top: 0;
  }
  .footer-grid h3,
  .footer-grid h4 {
    margin-bottom: 10px;
  }
  .footer-grid a {
    margin: 10px 0;
    font-size: 16px;
  }
}

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

.footer-note {
  margin: 14px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.58);
  font-size: 13px;
}

.legal-section {
  background:
    radial-gradient(circle at top left, rgba(0,105,201,.08), transparent 30%),
    linear-gradient(180deg, #f4f8fd 0%, #ffffff 35%);
}

.legal-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 16px;
}

.legal-side-card,
.legal-content {
  background: #fff;
  border: 1px solid #d9e5f3;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(7, 24, 52, .06);
}

.legal-side-card {
  padding: 22px;
}

.legal-side-card h2,
.legal-side-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
}

.legal-meta-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.legal-meta-list div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.legal-meta-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legal-meta-list strong {
  color: var(--ink);
  font-size: 14px;
}

.legal-nav {
  display: grid;
  gap: 8px;
}

.legal-nav a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
  background: #fff;
}

.legal-nav a.active {
  border-color: rgba(0,105,201,.22);
  background: #edf5ff;
  color: var(--blue);
}

.legal-content {
  padding: 30px;
}

.legal-content .legal-note {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #f5f9ff;
  border: 1px solid #dce9f8;
  color: #264266;
  line-height: 1.75;
}

.legal-content .legal-article + .legal-article {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.25;
}

.legal-content p {
  margin: 0 0 14px;
  color: #44536f;
  font-size: 16px;
  line-height: 1.88;
}

.consent-block {
  display: grid;
  gap: 8px;
}

.consent-check {
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
}

.consent-check input {
  margin-top: 4px;
  flex: 0 0 auto;
}

.consent-copy {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.consent-copy a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.consent-block.compact .consent-check {
  padding: 10px 12px;
  gap: 10px;
}

.consent-block.compact .consent-copy {
  font-size: 12px;
  line-height: 1.65;
}

.consent-block.compact .consent-meta {
  font-size: 11px;
}

.legal-evidence-summary {
  display: grid;
  gap: 18px;
}

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

.legal-evidence-meta-grid div {
  border: 1px solid #e7effa;
  border-radius: 18px;
  background: #fbfdff;
  padding: 16px 18px;
  display: grid;
  gap: 7px;
}

.legal-evidence-meta-grid span {
  color: #7890b0;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
}

.legal-evidence-meta-grid strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.legal-evidence-table-card table td {
  vertical-align: top;
}

.evidence-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evidence-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.evidence-details {
  min-width: 280px;
}

.evidence-details summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 800;
  list-style: none;
}

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

.evidence-details[open] {
  display: grid;
  gap: 14px;
}

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

.evidence-detail-grid div {
  border: 1px solid #e7effa;
  border-radius: 14px;
  background: #fbfdff;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.evidence-detail-grid span {
  color: #7890b0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.evidence-detail-grid strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.mono-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.payment-compact-form {
  display: grid;
  gap: 10px;
  min-width: 290px;
}

.payment-compact-form input,
.payment-compact-form select,
.payment-compact-form .btn {
  width: 100%;
}

.payment-compact-form input[type="file"] {
  padding: 10px 12px;
}

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

  .smart-stepper,
  .wizard-doc-grid,
  .legal-evidence-meta-grid,
  .evidence-detail-grid {
    grid-template-columns: 1fr;
  }

  .direct-app-wizard .smart-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .smart-form-card-head {
    display: grid;
  }

  .legal-submit-row {
    justify-content: stretch;
  }

  .btn-bank-submit {
    width: 100%;
    min-width: 0;
  }

  .btn-success-submit {
    width: 100%;
    min-width: 0;
  }

  .wizard-actions,
  .wizard-actions-end {
    display: grid;
    grid-template-columns: 1fr;
  }

  .review-row {
    display: grid;
  }

  .review-edit {
    justify-self: start;
  }

  .direct-app-wizard .smart-step::after {
    left: calc(50% + 22px);
    width: calc(100% - 44px);
  }

  .direct-app-wizard .smart-step span {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .direct-app-wizard .smart-step strong {
    font-size: 11px;
    line-height: 1.4;
  }

  .form-surface-card {
    padding: 22px;
  }

  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-content {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .direct-app-wizard .smart-form-head h2 {
    font-size: 32px;
  }

  .direct-app-wizard .smart-step strong {
    font-size: 10px;
  }

  .wizard-doc-grid {
    grid-template-columns: 1fr;
  }

  .form-upload-grid input[type="file"],
  .form-grid input[type="file"] {
    min-height: 112px;
  }

  .smart-form-card {
    padding: 18px;
    border-radius: 20px;
  }

  .footer-bottom {
    display: grid;
    justify-content: initial;
  }

  .legal-content {
    padding: 18px;
  }

  .legal-content p {
    font-size: 15px;
    line-height: 1.8;
  }

  .consent-check {
    padding: 12px;
  }

  .payment-compact-form {
    min-width: 0;
  }
}

.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #0a5fd1, #073f8e);
  color: #fff;
  box-shadow: 0 18px 38px rgba(7, 40, 94, .28);
  display: inline-grid;
  place-items: center;
  z-index: 85;
  transition: transform .18s ease, box-shadow .18s ease;
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(7, 40, 94, .34);
}

.chat-fab.admin {
  text-decoration: none;
}

.chat-fab-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
}

.chat-fab-icon svg {
  width: 24px;
  height: 24px;
}

.chat-fab-badge {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff;
  color: #0b57c7;
  font-size: 11px;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(7, 40, 94, .2);
}

.chat-popup {
  position: fixed;
  right: 24px;
  bottom: 98px;
  width: min(420px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid #d7e3f2;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(7, 24, 52, .22);
  overflow: hidden;
  z-index: 84;
  opacity: 0;
  transform: translateY(18px) scale(.98);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(8px);
}

.chat-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #052b57, #0a4ca7);
  color: #fff;
}

.chat-popup-head strong {
  display: block;
  font-size: 16px;
}

.chat-popup-head span,
.chat-popup-actions a {
  color: rgba(255,255,255,.78);
  font-size: 12px;
}

.chat-popup-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-popup-actions button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.chat-page {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 180px);
  align-items: stretch;
}

.single-chat-page {
  grid-template-columns: 1fr;
}

.chat-main-panel {
  min-width: 0;
}

.chat-main-panel.full {
  max-width: 1040px;
}

.chat-thread-list,
.chat-window {
  background: #fff;
  border: 1px solid #d7e3f2;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(7, 24, 52, .06);
}

.chat-thread-list {
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 180px);
  max-height: calc(100vh - 180px);
  overflow: hidden;
}

.chat-list-head h2 {
  margin: 6px 0 8px;
  color: var(--ink);
}

.chat-target-picker {
  border: 1px solid #d7e3f2;
  border-radius: 14px;
  background: #f8fbff;
  overflow: hidden;
}

.chat-target-picker summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  color: var(--ink);
}

.chat-target-picker summary::-webkit-details-marker {
  display: none;
}

.chat-target-items {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
  max-height: 360px;
  overflow: auto;
}

.chat-target-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.chat-thread-items {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.chat-thread-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.chat-thread-item.active {
  border-color: rgba(0,105,201,.26);
  background: #f4f9ff;
}

.chat-thread-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a5fd1, #073f8e);
  color: #fff;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
}

.chat-thread-copy {
  min-width: 0;
}

.chat-thread-copy strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.chat-thread-copy span,
.chat-thread-copy p {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.chat-thread-copy p {
  margin: 7px 0 0;
}

.chat-thread-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--muted);
  font-size: 12px;
}

.chat-unread-pill {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #0b57c7;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.chat-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: calc(100vh - 180px);
  max-height: calc(100vh - 180px);
  overflow: hidden;
}

.chat-window.compact {
  min-height: 0;
  height: min(68vh, 620px);
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.chat-window-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(180deg, #fff, #f9fbff);
}

.chat-window-head h2 {
  margin: 0 0 6px;
  color: var(--ink);
}

.chat-window-head p {
  margin: 0;
  color: var(--muted);
}

.chat-messages {
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(248,251,255,.95), rgba(248,251,255,.75)),
    radial-gradient(circle at top right, rgba(0,105,201,.08), transparent 28%);
}

.chat-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  color: var(--muted);
}

.chat-empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}

.message-row {
  display: flex;
}

.chat-day-separator {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

.chat-day-separator span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 24, 52, .06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.message-row.own {
  justify-content: flex-end;
}

.message-row.other {
  justify-content: flex-start;
}

.message-bubble {
  width: min(100%, 540px);
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dbe6f4;
  box-shadow: 0 10px 28px rgba(7, 24, 52, .06);
}

.message-row.own .message-bubble {
  background: linear-gradient(135deg, #0a5fd1, #07489b);
  border-color: transparent;
  color: #fff;
}

.message-bubble.media-only {
  width: auto;
  max-width: 244px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message-row.own .message-bubble.media-only {
  background: transparent;
}

.message-bubble.attachment-only {
  max-width: 360px;
}

.message-text,
.message-text a {
  color: inherit;
  line-height: 1.75;
}

.message-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.message-reply-quote {
  border-left: 3px solid rgba(0,105,201,.5);
  background: rgba(0,105,201,.08);
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 10px;
}

.message-row.own .message-reply-quote {
  border-left-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.12);
}

.message-reply-quote strong,
.message-reply-quote span {
  display: block;
}

.message-reply-quote strong {
  font-size: 12px;
  margin-bottom: 4px;
}

.message-reply-quote span {
  font-size: 12px;
  line-height: 1.45;
  opacity: .88;
}

.chat-attachment {
  display: inline-grid;
  gap: 6px;
  margin-top: 10px;
  position: relative;
}

.chat-attachment.image {
  width: min(228px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
}

.chat-attachment.image img {
  width: 100%;
  height: 176px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(7, 24, 52, .10);
  box-shadow: 0 8px 22px rgba(7, 24, 52, .10);
}

.message-row.own .chat-attachment.image img {
  border-color: rgba(10, 95, 209, .18);
}

.chat-attachment.audio audio {
  width: min(250px, 100%);
  height: 36px;
}

.chat-attachment.file {
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(7, 24, 52, .05);
  border: 1px solid rgba(7, 24, 52, .08);
  color: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.message-row.own .chat-attachment.file {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}

.chat-file-main {
  min-width: 0;
}

.chat-attachment.file span {
  font-size: 12px;
  opacity: .72;
}

.chat-attachment.file strong {
  font-size: 14px;
  display: block;
  line-height: 1.45;
  word-break: break-word;
}

.chat-attachment-stamp {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(7, 24, 52, .66);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.chat-attachment.file .chat-attachment-stamp,
.chat-attachment.audio .chat-attachment-stamp {
  position: static;
  justify-self: end;
  align-self: end;
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(44, 63, 92, .78);
}

.message-row.own .message-meta {
  justify-content: flex-end;
  color: rgba(255,255,255,.82);
}

.message-bubble.media-only .message-meta {
  margin-top: 8px;
}

.message-row.own .message-bubble.media-only .message-meta {
  color: rgba(44, 63, 92, .78);
}

.chat-composer {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  display: grid;
  gap: 10px;
}

.chat-input-shell {
  display: grid;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #d7e3f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.chat-input-shell textarea {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
  resize: none;
  min-height: 28px;
  max-height: 180px;
  overflow-y: hidden;
  line-height: 1.55;
}

.chat-input-shell textarea:focus {
  outline: 0;
  box-shadow: none;
}

.chat-draft-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chat-draft-chip,
.chat-recording-live {
  min-height: 34px;
  max-width: min(100%, 210px);
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 10px;
  background: #f4f9ff;
  border: 1px solid #d7e5f6;
  flex: 0 0 auto;
}

.chat-recording-live {
  width: 100%;
  max-width: none;
}

.chat-recording-live strong,
.chat-recording-live span,
.chat-draft-copy strong,
.chat-draft-copy span {
  display: block;
}

.chat-recording-live strong,
.chat-draft-copy strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-recording-live span,
.chat-draft-copy span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.chat-draft-chip .chat-draft-copy span {
  display: none;
}

.chat-recording-copy {
  min-width: 0;
}

.chat-recording-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .4);
  animation: chatPulse 1.4s infinite;
}

@keyframes chatPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .35);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.chat-draft-thumb {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7e5f6;
}

.chat-draft-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-draft-icon {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0a5fd1, #073f8e);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
}

.chat-draft-chip.audio audio {
  width: min(112px, 100%);
  height: 24px;
  margin-top: 2px;
}

.chat-draft-remove {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #d7e3f2;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

.chat-recording-meter {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 22px;
}

.chat-recording-meter span {
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0a5fd1, #073f8e);
  height: 8px;
  transform-origin: bottom center;
}

.chat-reply-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f9ff;
  border: 1px solid #d7e5f6;
}

.chat-reply-strip strong,
.chat-reply-strip span {
  display: block;
}

.chat-reply-strip strong {
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 2px;
}

.chat-reply-strip span {
  color: var(--muted);
  font-size: 12px;
}

.chat-reply-cancel {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.chat-composer-tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-composer-left {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}

.chat-attach-menu {
  position: relative;
}

.chat-plus-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #d8e4f3;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(7, 24, 52, .08);
}

.chat-plus-toggle[aria-expanded="true"] {
  background: #f4f9ff;
  border-color: rgba(10, 95, 209, .32);
}

.chat-attach-pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  display: grid;
  gap: 8px;
  padding: 10px;
  min-width: 150px;
  border-radius: 14px;
  border: 1px solid #d7e3f2;
  background: #fff;
  box-shadow: 0 22px 40px rgba(7, 24, 52, .14);
  z-index: 6;
}

.chat-attach-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d8e4f3;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.chat-attach-action:hover {
  border-color: rgba(10, 95, 209, .32);
  background: #f4f9ff;
  transform: translateY(-1px);
}

.chat-attach-action input {
  display: none;
}

.chat-primary-action {
  min-width: 88px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #0a5fd1, #073f8e);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  padding: 0 18px;
  box-shadow: 0 14px 30px rgba(7, 40, 94, .18);
}

.chat-primary-action[data-state="stop"] {
  background: #ef4444;
}

.chat-target-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
}

.chat-target-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 24, 52, .4);
}

.chat-target-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100vw - 32px));
  max-height: min(78vh, 680px);
  transform: translate(-50%, -50%);
  border-radius: 18px;
  background: #fff;
  border: 1px solid #d7e3f2;
  box-shadow: 0 30px 80px rgba(7, 24, 52, .24);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.chat-target-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.chat-target-card-head strong {
  color: var(--ink);
  font-size: 18px;
}

.chat-target-card-head button,
.chat-image-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #d7e3f2;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.chat-image-caption {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.chat-image-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
}

.chat-image-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 10, 24, .82);
}

.chat-image-modal-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(960px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  transform: translate(-50%, -50%);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.chat-image-modal-card img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
}

.chat-image-caption {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.message-context-menu {
  position: fixed;
  z-index: 120;
  padding: 6px;
  border-radius: 12px;
  background: #0b1f40;
  box-shadow: 0 20px 40px rgba(7, 24, 52, .28);
}

.message-context-menu button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  min-width: 146px;
}

.message-context-menu button:hover {
  background: rgba(255,255,255,.08);
}

.message-context-menu button[data-destructive="true"] {
  color: #fecaca;
}

@media (max-width: 1200px) {
  .chat-page {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .chat-page {
    grid-template-columns: 1fr;
  }

  .chat-thread-list,
  .chat-window {
    min-height: 0;
  }

  .chat-thread-list {
    order: 2;
    max-height: none;
    grid-template-rows: auto minmax(0, 420px);
  }

  .chat-window {
    order: 1;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .chat-fab {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .chat-popup {
    left: 10px;
    right: 10px;
    bottom: 84px;
    width: auto;
    border-radius: 20px;
  }

  .chat-popup-head {
    padding: 14px 15px;
  }

  .chat-window.compact {
    height: min(74vh, 640px);
  }

  .chat-window-head,
  .chat-messages,
  .chat-composer,
  .chat-thread-list {
    padding-left: 14px;
    padding-right: 14px;
  }

  .message-bubble {
    width: min(100%, 92vw);
  }

  .chat-composer-tools {
    flex-wrap: nowrap;
    align-items: center;
  }

  .chat-primary-action {
    min-width: 84px;
  }

  .chat-input-shell textarea {
    max-height: 140px;
  }

  .chat-draft-row {
    flex-wrap: nowrap;
  }

  .chat-draft-chip,
  .chat-recording-live {
    max-width: 100%;
  }

  .chat-thread-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .chat-thread-meta {
    grid-column: 2;
    justify-items: start;
    grid-auto-flow: column;
    align-items: center;
  }

  .chat-window-head h2 {
    font-size: 22px;
  }

  .chat-window-head p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Portal redesign layer */
.portal-body {
  background:
    radial-gradient(circle at top right, rgba(43, 113, 255, .08), transparent 28%),
    linear-gradient(180deg, #f5f9ff 0%, #edf4fd 100%);
  color: #10264d;
}

.portal-shell {
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 18px;
  background: transparent;
  padding: 18px;
}

.sidebar {
  border-radius: 30px;
  padding: 16px;
  background: linear-gradient(180deg, #062250 0%, #081d45 100%);
  border: 1px solid rgba(115, 156, 240, .16);
  box-shadow: 0 26px 52px rgba(3, 15, 40, .24);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 18px;
  margin-bottom: 18px;
}

.portal-brand img,
.sidebar .brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.sidebar .brand-word {
  font-size: 12px;
  letter-spacing: .14em;
  line-height: 1.2;
}

.sidebar .brand-word span {
  display: block;
  margin-top: 4px;
  color: #2b73ff;
}

.side-user-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(172, 196, 244, .18);
  margin-bottom: 18px;
}

.side-user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0a4ca7;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(11, 87, 199, .12);
}

.side-user-copy {
  min-width: 0;
}

.side-user-copy strong {
  font-size: 13px;
  line-height: 1.4;
}

.side-user-copy span {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.45;
}

.side-user-caret {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, .72);
}

.side-user-caret svg,
.side-nav-icon svg,
.portal-icon-shell svg,
.btn-icon svg,
.portal-crumb-sep svg,
.portal-search-icon svg,
.mobile-toggle svg {
  width: 100%;
  height: 100%;
}

.side-nav {
  gap: 8px;
}

.side-nav a {
  position: relative;
  padding: 13px 14px;
  border-radius: 18px;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.side-nav a.active,
.side-nav a:hover {
  background: linear-gradient(135deg, #0b5dd7 0%, #0f72ff 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(11, 93, 215, .26);
}

.side-nav-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.side-nav a > span:last-child:not(.side-nav-badge) {
  min-width: 0;
  flex: 1;
}

.side-nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
}

.portal-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}

.portal-top {
  min-height: 92px;
  margin: 0;
  padding: 20px 24px;
  border: 1px solid #dfe8f6;
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 48px rgba(15, 39, 83, .06);
}

.portal-page-copy {
  min-width: 0;
}

.portal-top h1 {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}

.portal-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #7c90b3;
  font-size: 13px;
}

.portal-breadcrumbs a {
  color: inherit;
}

.portal-crumb strong {
  color: #6b7e9d;
  font-weight: 700;
}

.portal-crumb-sep {
  width: 12px;
  height: 12px;
  color: #b1c0d9;
}

.portal-top-actions {
  gap: 14px;
  align-items: center;
}

.portal-icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #dde8f7;
  background: #fff;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(15, 39, 83, .06);
}

.portal-icon-shell {
  width: 18px;
  height: 18px;
  color: #173b79;
}

.portal-alert-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1f6fff;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
}

.portal-website-button {
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
}

.btn-icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
}

.portal-content {
  padding: 0;
  display: grid;
  gap: 18px;
}

.portal-card,
.chat-thread-list,
.chat-window {
  border: 1px solid #dfe8f6;
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 48px rgba(15, 39, 83, .04);
}

.portal-card {
  padding: 24px;
}

.portal-card h2,
.portal-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.02em;
}

.portal-body .btn,
.portal-body button.btn,
.portal-body .form-toggle summary {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: none;
}

.portal-body .btn-soft,
.portal-body .btn-outline {
  background: #fff;
  border: 1px solid #d8e3f4;
  color: #1663db;
}

.portal-body .btn-primary {
  background: linear-gradient(135deg, #0b5dd7 0%, #0f72ff 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 14px 28px rgba(11, 93, 215, .2);
}

.portal-body .btn-danger {
  border: 1px solid #ffd0cb;
  background: #fff6f5;
  color: #da5142;
}

.portal-body input,
.portal-body select,
.portal-body textarea {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid #d8e4f4;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.portal-body textarea {
  min-height: 120px;
}

.page-toolbar-inline {
  display: flex;
  justify-content: flex-start;
}

.compact-toggle {
  width: fit-content;
}

.compact-toggle.form-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.compact-toggle.form-toggle summary {
  margin: 0;
}

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

.stat-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid #dfe8f6;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 36px rgba(15, 39, 83, .04);
}

.stat-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(17, 92, 213, .1);
}

.stat-card-icon svg {
  width: 24px;
  height: 24px;
}

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

.stat-card-copy small {
  color: #7a8cab;
  font-size: 12px;
  font-weight: 700;
}

.stat-card-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  line-height: 1;
  color: #112a54;
}

.stat-card-copy span {
  margin-top: 7px;
  color: #8b9ab3;
  font-size: 12px;
}

.stat-blue .stat-card-icon {
  background: #eef5ff;
  color: #0f67ea;
}

.stat-green .stat-card-icon {
  background: #edf9f2;
  color: #1ca363;
}

.stat-amber .stat-card-icon {
  background: #fff6ea;
  color: #ef8b1d;
}

.stat-violet .stat-card-icon {
  background: #f2edff;
  color: #7c53f7;
}

.stat-rose .stat-card-icon {
  background: #fff1f2;
  color: #ef476f;
}

.list-screen-card {
  display: grid;
  gap: 16px;
}

.list-screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.list-screen-head p {
  margin: 0;
  max-width: 760px;
}

.list-screen-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-search-bar {
  min-width: 320px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe6f5;
  border-radius: 16px;
  background: #fff;
}

.portal-search-icon {
  width: 16px;
  height: 16px;
  color: #7e93b6;
}

.portal-search-bar input {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.portal-search-bar input:focus {
  outline: 0;
  box-shadow: none;
}

.kpi-grid {
  gap: 16px;
  margin-bottom: 0;
}

.kpi {
  border: 1px solid #dfe8f6;
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  padding: 18px 20px;
  box-shadow: 0 18px 36px rgba(15, 39, 83, .04);
}

.kpi span {
  font-size: 12px;
  color: #7c8dae;
  font-weight: 700;
  letter-spacing: 0;
}

.kpi strong {
  margin-top: 8px;
  font-size: 36px;
  line-height: 1;
}

.kpi small {
  display: block;
  margin-top: 8px;
  color: #96a4bd;
  font-size: 12px;
}

.jobs-scope-tabs,
.tabs {
  gap: 10px;
}

.jobs-scope-tabs a,
.tabs a {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.jobs-scope-tabs a.active,
.tabs a.active {
  box-shadow: 0 12px 26px rgba(11, 93, 215, .18);
}

.jobs-admin-filters {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.jobs-search {
  gap: 12px;
}

.jobs-search input {
  min-height: 48px;
}

.jobs-search .btn,
.jobs-per-page .btn {
  min-width: 104px;
}

.jobs-letter-row {
  gap: 8px;
}

.jobs-letter-row a,
.jobs-pagination a {
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.jobs-table-card table strong {
  color: #112a54;
}

.table-wrap {
  border-radius: 22px;
  border: 1px solid #dfe8f6;
  overflow: auto;
  background: #fff;
}

table {
  min-width: 760px;
}

th,
td {
  padding: 18px 16px;
  font-size: 14px;
}

th {
  background: #fff;
  color: #788dad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

tbody tr {
  transition: background .18s ease;
}

tbody tr:hover {
  background: #fbfdff;
}

.badge {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}

.detail-list {
  gap: 14px;
}

.detail {
  border-radius: 18px;
  padding: 16px 18px;
  border-color: #e0e9f6;
  background: linear-gradient(180deg, #fff, #fcfdff);
}

.detail span {
  font-size: 11px;
  letter-spacing: .02em;
}

.detail strong {
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.45;
}

.doc-grid {
  gap: 14px;
}

.doc-card {
  min-height: 130px;
  border-radius: 20px;
  padding: 16px;
  border-color: #e0e9f6;
}

.profile-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.timeline {
  gap: 14px;
}

.timeline-item {
  border-left-width: 0;
  border-radius: 18px;
  border: 1px solid #e0e9f6;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fff, #fcfdff);
}

.timeline-ledger .timeline-item {
  position: relative;
  padding-left: 76px;
}

.timeline-ledger .timeline-item::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2b73ff;
  box-shadow: 0 0 0 7px rgba(43, 115, 255, .1);
}

.finance-dashboard {
  padding: 24px;
  border-radius: 24px;
}

.finance-hero h2 {
  font-size: 20px;
}

.finance-card {
  border-radius: 22px;
}

.chat-page {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.chat-thread-list,
.chat-window {
  border-radius: 24px;
}

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

.chat-thread-list {
  padding: 18px;
}

.chat-thread-item {
  border-radius: 18px;
  padding: 14px;
}

.chat-thread-item.active {
  background: #f5f9ff;
  border-color: #cfe0ff;
  box-shadow: inset 0 0 0 1px rgba(43, 115, 255, .06);
}

.chat-window-head {
  padding: 18px 22px;
}

.chat-window-head h2 {
  font-size: 18px;
}

.chat-messages {
  padding: 18px 22px;
}

.message-bubble {
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(15, 39, 83, .05);
}

.message-row.own .message-bubble {
  box-shadow: 0 14px 30px rgba(11, 93, 215, .18);
}

.chat-attachment.image {
  width: min(216px, 100%);
}

.chat-attachment.image img {
  height: 164px;
  border-radius: 16px;
  border-width: 1px;
  box-shadow: 0 10px 22px rgba(15, 39, 83, .08);
}

.chat-composer {
  padding: 16px 20px 20px;
}

.chat-input-shell {
  gap: 8px;
  padding: 10px 14px;
  border-radius: 20px;
}

.chat-input-shell textarea {
  min-height: 26px;
  line-height: 1.5;
}

.chat-plus-toggle {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.chat-primary-action {
  min-width: 90px;
  height: 42px;
  border-radius: 14px;
  font-size: 13px;
}

.chat-draft-chip,
.chat-recording-live {
  border-radius: 12px;
}

.message-context-menu {
  border-radius: 16px;
}

.action-menu summary {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #d8e3f4;
  background: #fff;
  color: #1663db;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

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

.action-menu-list {
  min-width: 220px;
  border-radius: 18px;
  border: 1px solid #d8e3f4;
  background: #fff;
  box-shadow: 0 24px 44px rgba(15, 39, 83, .12);
  padding: 10px;
}

.action-menu-list a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: #16366d;
  font-size: 13px;
  font-weight: 700;
}

.action-menu-list a:hover {
  background: #f4f8ff;
}

.jobs-inline-empty {
  padding: 12px 4px 0;
  color: #8397b7;
  font-size: 13px;
}

.dashboard-lower-grid {
  align-items: start;
}

.profile-hero-card {
  padding: 20px 22px;
}

.profile-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-hero-avatar {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf4ff 0%, #f8fbff 100%);
  color: #135ed8;
  font-size: 28px;
  font-weight: 900;
  border: 1px solid #dbe8fb;
  box-shadow: inset 0 0 0 1px rgba(18, 95, 220, .04);
}

.profile-hero-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.profile-hero-eyebrow {
  color: #7f93b2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-hero-card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.profile-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #7185a5;
  font-size: 13px;
}

.profile-hero-meta span {
  position: relative;
}

.profile-hero-meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 999px;
  background: #c1cee0;
}

.slim-tabs-card {
  padding: 12px 14px;
}

.profile-tabs {
  gap: 10px;
}

.profile-tabs a {
  min-height: 40px;
  padding: 0 14px;
}

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

.job-info-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e4ecf8;
}

.job-info-block h3 {
  margin-bottom: 8px;
}

.job-status-note {
  margin-top: 10px;
  color: #586d90;
  line-height: 1.6;
}

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

.selection-list .check {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #dde6f5;
  background: #fff;
}

.public-manage-shell,
.public-manage-form {
  display: grid;
  gap: 16px;
}

.public-manage-shell .section-head.compact,
.job-toolbar-card .section-head {
  align-items: center;
}

.proof-strip.public-manage-strip {
  margin-top: 0;
}

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

.public-media-preview {
  margin-top: 12px;
  width: min(100%, 320px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #dfe8f6;
  background: #f9fbff;
}

.public-media-preview img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.public-media-preview.compact {
  width: 100%;
}

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

.hot-upload-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #e2eaf7;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

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

  .chat-page {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .job-detail-list,
  .selection-list,
  .hot-upload-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .portal-shell {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .sidebar {
    width: min(88vw, 320px);
    border-radius: 0 28px 28px 0;
  }

  .portal-top {
    padding: 16px 18px;
    min-height: 84px;
    border-radius: 22px;
  }

  .portal-top-actions {
    gap: 10px;
  }

  .portal-website-button {
    min-width: 0;
    padding: 0 14px;
  }

  .page-metrics,
  .kpi-grid,
  .profile-grid,
  .list-screen-head,
  .jobs-admin-filters,
  .chat-page {
    grid-template-columns: 1fr;
  }

  .profile-hero-main {
    align-items: flex-start;
  }

  .list-screen-head,
  .portal-top {
    align-items: flex-start;
  }

  .list-screen-tools,
  .portal-search-bar {
    width: 100%;
    min-width: 0;
  }

  .chat-thread-list,
  .chat-window {
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .portal-shell {
    padding: 10px;
    gap: 10px;
  }

  .portal-top {
    border-radius: 18px;
    padding: 14px 14px;
  }

  .portal-top h1 {
    font-size: 18px;
  }

  .profile-hero-main {
    flex-direction: column;
  }

  .profile-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 24px;
  }

  .profile-hero-card h2 {
    font-size: 22px;
  }

  .portal-breadcrumbs {
    font-size: 12px;
  }

  .portal-icon-button,
  .chat-plus-toggle {
    width: 40px;
    height: 40px;
  }

  .portal-card,
  .chat-thread-list,
  .chat-window,
  .kpi,
  .stat-card {
    border-radius: 18px;
  }

  .portal-card,
  .kpi,
  .stat-card {
    padding: 18px;
  }

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

  .portal-search-bar {
    min-height: 44px;
  }

  .jobs-scope-tabs,
  .tabs {
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 2px;
  }

  .jobs-scope-tabs a,
  .tabs a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  th,
  td {
    padding: 14px 12px;
    font-size: 13px;
  }

  .message-bubble {
    width: min(100%, 90vw);
  }
}

/* Portal premium alignment v2 */
.portal-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.portal-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-page-copy {
  display: grid;
  gap: 2px;
}

.portal-top-search {
  width: min(100%, 348px);
  min-width: 300px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid #d8e4f4;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 39, 83, .05);
}

.portal-top-search input {
  min-height: 0;
  height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.portal-top-search input:focus {
  outline: 0;
  box-shadow: none;
}

.portal-top-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.portal-search-shortcut {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf4ff;
  color: #3071da;
  font-size: 10px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  letter-spacing: .02em;
}

.portal-top-actions {
  justify-content: flex-end;
}

.portal-content {
  gap: 20px;
}

.portal-card {
  overflow: hidden;
}

.portal-card h2 {
  font-size: 16px;
}

.portal-card h3 {
  font-size: 15px;
}

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

.compact-toggle.form-toggle summary {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  text-transform: none;
  letter-spacing: -.01em;
  font-size: 14px;
}

.route-dashboard .page-metrics,
.route-kyc .page-metrics,
.route-users .page-metrics,
.route-applicants .page-metrics,
.route-devices .page-metrics,
.route-payments .page-metrics {
  gap: 14px;
}

.route-dashboard .page-metrics .stat-card,
.route-payments .page-metrics .stat-card,
.route-devices .page-metrics .stat-card,
.route-kyc .page-metrics .stat-card,
.route-users .page-metrics .stat-card,
.route-applicants .page-metrics .stat-card {
  min-height: 118px;
}

.route-dashboard .stat-card-copy strong,
.route-payments .stat-card-copy strong {
  font-size: 22px;
}

.route-dashboard .dashboard-lower-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.route-dashboard .timeline .timeline-item.action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.route-dashboard .timeline .timeline-item.action-link strong {
  flex: 1;
}

.list-screen-card {
  padding: 0;
}

.list-screen-head {
  padding: 22px 22px 0;
}

.list-screen-head h2 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.2;
}

.list-screen-head p {
  max-width: 760px;
  font-size: 13px;
  color: #7084a5;
}

.list-screen-tools {
  justify-content: flex-end;
}

.list-screen-card > .table-wrap {
  margin: 0 22px 18px;
}

.list-screen-card > .timeline {
  margin: 0 22px 14px;
}

.list-screen-card > .jobs-inline-empty {
  padding: 0 22px 22px;
}

.portal-search-bar {
  min-height: 44px;
  border-radius: 15px;
}

.portal-search-bar input {
  font-size: 13px;
}

.route-jobs .job-toolbar-card {
  gap: 16px;
}

.route-jobs .job-toolbar-card .section-head {
  align-items: center;
}

.route-jobs .job-toolbar-card .section-head h2 {
  font-size: 15px;
}

.route-jobs .job-toolbar-card .section-head p {
  font-size: 13px;
}

.route-jobs .job-toolbar-card .date-chip {
  min-height: 36px;
  padding: 0 14px;
  font-size: 11px;
}

.route-jobs .jobs-scope-tabs {
  gap: 10px;
}

.route-jobs .jobs-scope-tabs a {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 13px;
  font-size: 11px;
}

.route-jobs .jobs-admin-filters {
  gap: 12px;
}

.route-jobs .jobs-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.route-jobs .jobs-search input {
  min-height: 46px;
  border-radius: 15px;
  font-size: 13px;
}

.route-jobs .jobs-per-page {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.route-jobs .jobs-per-page .btn {
  min-width: 92px;
}

.route-jobs .jobs-letter-row {
  flex-wrap: wrap;
}

.route-jobs .jobs-letter-row a {
  min-width: 38px;
  min-height: 38px;
  border-radius: 12px;
}

.route-jobs .jobs-table-card td:nth-child(1) strong {
  display: inline-block;
  max-width: 220px;
  line-height: 1.35;
}

.route-jobs .jobs-table-card td:nth-child(2) {
  min-width: 180px;
}

.route-jobs .action-menu summary {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 12px;
}

.route-jobs .action-menu-list {
  min-width: 212px;
}

.route-jobs .action-menu-list a {
  padding: 10px 11px;
  font-size: 12px;
}

.route-jobs .action-menu-list form {
  margin: 0;
}

.route-jobs .action-menu-list .action-menu-item,
.route-jobs .action-menu-list a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 11px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #16366d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.route-jobs .action-menu-list .action-menu-item:hover,
.route-jobs .action-menu-list a:hover {
  background: #f4f8ff;
  color: var(--blue);
}

.route-jobs .action-menu-list .action-danger {
  color: #c53929;
}

.route-jobs .action-menu-list .action-danger:hover {
  background: #fff1ef;
  color: #c53929;
}

.assign-job-modal-card {
  max-width: 1380px;
}

.assign-job-modal .job-public-modal-head {
  align-items: flex-start;
}

.assign-job-modal .job-public-modal-head p {
  max-width: 920px;
}

.assign-job-modal-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
}

.assign-job-modal-side {
  display: grid;
  gap: 18px;
  align-self: start;
}

.compact-detail-list {
  gap: 10px;
}

.compact-detail-list .detail {
  padding: 12px 14px;
}

.compact-detail-list .detail span {
  font-size: 11px;
}

.compact-detail-list .detail strong {
  font-size: 13px;
}

.assign-assigned-note .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assign-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.assign-toolbar-smart {
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(138px, .62fr)) auto auto auto;
}

.assign-toolbar-smart .field-inline {
  margin: 0;
}

.assign-toolbar-smart .field-inline select {
  min-height: 48px;
}

.assign-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d8e3f4;
  border-radius: 14px;
  background: #f8fbff;
  color: #17386f;
  font-size: 12px;
  font-weight: 700;
}

.assign-toolbar .btn-link {
  min-height: 48px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #d12626;
  font-weight: 700;
  cursor: pointer;
}

.assign-directory-card {
  overflow: hidden;
}

.assign-directory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.assign-directory-head h4 {
  margin: 0 0 6px;
}

.assign-directory-table {
  max-height: 460px;
  overflow: auto;
  border: 1px solid #e3ebf8;
  border-radius: 18px;
}

.assign-directory-table table {
  min-width: 940px;
}

.assign-directory-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbff;
}

.assign-target-row td {
  vertical-align: middle;
}

.assign-target-row[data-assign-status="assigned"] {
  background: #fcfdff;
}

.assign-target-row.is-selected {
  background: #f2f7ff;
}

.cell-check {
  width: 48px;
}

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

.assign-person strong,
.assign-person span {
  display: block;
}

.assign-person span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.assign-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #1755c7;
  background: linear-gradient(180deg, #eaf2ff 0%, #f7fbff 100%);
}

.assign-bottom-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.assign-total-hero {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.assign-total-hero input {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  padding-left: 0;
  padding-right: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.assign-total-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f66da;
  background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
}

.assign-breakdown-grid {
  gap: 10px 12px;
}

.assign-footer-bar {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e4edf9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.assign-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

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

.assigned-management-card .table-wrap {
  margin-bottom: 4px;
}

.route-activity .timeline-ledger {
  position: relative;
  padding-left: 4px;
}

.route-activity .timeline-ledger::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #dbe7fb 0%, #edf3fd 100%);
}

.route-activity .timeline-ledger .timeline-item {
  margin-left: 20px;
  padding-right: 20px;
}

.route-activity .timeline-ledger .timeline-item:nth-child(3n + 1)::before {
  background: #2b73ff;
  box-shadow: 0 0 0 7px rgba(43, 115, 255, .12);
}

.route-activity .timeline-ledger .timeline-item:nth-child(3n + 2)::before {
  background: #1cb669;
  box-shadow: 0 0 0 7px rgba(28, 182, 105, .12);
}

.route-activity .timeline-ledger .timeline-item:nth-child(3n)::before {
  background: #8b5cf6;
  box-shadow: 0 0 0 7px rgba(139, 92, 246, .11);
}

.route-user-view .profile-grid,
.route-applicant-view .profile-grid {
  align-items: start;
}

.profile-section-block {
  position: relative;
}

.profile-section-block .detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-side-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.profile-side-card h3 {
  margin-bottom: 14px;
}

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

.profile-side-card .field {
  margin: 0;
}

.profile-side-meta {
  gap: 12px;
}

.profile-side-meta div {
  display: grid;
  gap: 4px;
}

.profile-side-meta span {
  color: #7c90b3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.profile-side-meta strong {
  color: #112a54;
  font-size: 13px;
  line-height: 1.45;
}

.profile-divider {
  height: 1px;
  margin: 4px 0;
  background: #e5edf8;
}

.route-user-view .slim-tabs-card,
.route-applicant-view .slim-tabs-card {
  padding: 12px;
}

.route-user-view .profile-tabs,
.route-applicant-view .profile-tabs {
  gap: 8px;
  flex-wrap: wrap;
}

.route-user-view .profile-tabs a,
.route-applicant-view .profile-tabs a {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 12px;
}

.route-user-view .doc-card,
.route-applicant-view .doc-card {
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.route-messages .portal-top-search {
  min-width: 340px;
}

.admin-chat-page {
  align-items: start;
}

.chat-main-panel {
  min-width: 0;
}

.chat-thread-list {
  min-height: 760px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.chat-thread-items {
  display: grid;
  gap: 10px;
  align-content: start;
}

.chat-thread-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: 88px;
}

.chat-thread-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #175fe8 0%, #7547ff 100%);
}

.chat-thread-copy {
  min-width: 0;
}

.chat-thread-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #10264d;
}

.chat-thread-copy span {
  display: block;
  margin-top: 4px;
  color: #7185a5;
  font-size: 12px;
}

.chat-thread-copy p {
  margin: 8px 0 0;
  color: #5f7395;
  font-size: 13px;
  line-height: 1.45;
}

.chat-thread-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: #7388ab;
  font-size: 11px;
  font-weight: 700;
}

.chat-window {
  min-height: 760px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.chat-window-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chat-window-head p {
  margin: 6px 0 0;
  color: #7185a5;
  font-size: 14px;
}

.chat-messages {
  padding-top: 22px;
  padding-bottom: 16px;
}

.message-bubble {
  max-width: min(72%, 520px);
  border-radius: 22px;
}

.message-row.other {
  justify-content: flex-start;
}

.message-row.own {
  justify-content: flex-end;
}

.message-meta {
  margin-top: 10px;
  font-size: 11px;
}

.message-meta strong {
  font-size: 11px;
}

.chat-attachment.image {
  width: min(188px, 100%);
}

.chat-attachment.image img {
  height: 146px;
  object-fit: contain;
  padding: 6px;
  background: #f8fbff;
  border: 1px solid #d7e4f4;
  box-shadow: none;
}

.chat-composer {
  padding-top: 14px;
}

.chat-input-shell {
  gap: 10px;
  padding: 12px 14px;
  border-radius: 22px;
}

.chat-draft-row {
  display: grid;
  gap: 8px;
}

.chat-draft-chip {
  padding: 10px 12px;
  border-radius: 14px;
  align-items: center;
}

.chat-draft-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f8ff;
}

.chat-draft-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-draft-copy {
  min-width: 0;
}

.chat-draft-copy strong {
  font-size: 12px;
}

.chat-draft-copy span {
  font-size: 11px;
}

.chat-draft-copy audio {
  margin-top: 6px;
  width: min(270px, 100%);
  height: 34px;
}

.chat-primary-action {
  min-width: 88px;
}

.chat-plus-toggle {
  background: #fff;
}

.chat-attach-pop {
  border-radius: 16px;
  border: 1px solid #dce7f6;
  box-shadow: 0 22px 40px rgba(15, 39, 83, .12);
}

.chat-attach-action {
  min-height: 40px;
  border-radius: 12px;
}

.route-payments .finance-dashboard {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #dfe8f6;
  box-shadow: 0 24px 48px rgba(15, 39, 83, .04);
}

.route-payments .finance-grid {
  margin-top: 18px;
}

.route-payments .table-wrap td form.actions {
  display: grid;
  gap: 8px;
}

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

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

.signup-surface {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .88fr);
  gap: 22px;
  align-items: start;
}

.login-surface {
  grid-template-columns: minmax(0, .96fr) minmax(320px, .9fr);
}

.portal-access-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(8, 26, 58, .05);
  padding: 28px;
}

.portal-access-card h2 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.14;
}

.portal-access-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.portal-access-side {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portal-access-side .route-actions {
  margin-top: 22px;
}

.public-signup-form {
  margin-top: 18px;
}

.public-signup-form .form-grid {
  gap: 14px;
}

.public-signup-form .field.full .legal-check {
  margin-top: 2px;
}

.public-auth-card {
  width: 100%;
  padding: 30px;
}

.access-link-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.access-link-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 16px;
  border: 1px solid #dbe5f5;
  border-radius: 8px;
  color: var(--ink);
  background: #fdfefe;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.access-link-row strong {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.access-link-row:hover {
  border-color: #bdd4f7;
  box-shadow: 0 12px 24px rgba(8, 26, 58, .06);
  transform: translateY(-1px);
}

.mini-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-proof-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.audience-visibility-grid {
  gap: 16px;
}

.guide-stack {
  display: grid;
  gap: 20px;
}

.portal-guide-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(8, 26, 58, .05);
  padding: 24px;
}

.portal-guide-card > p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

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

.portal-guide-head h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.16;
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-directory-grid,
  .signup-surface,
  .login-surface {
    grid-template-columns: 1fr;
  }

  .portal-top {
    grid-template-columns: 1fr;
  }

  .portal-top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .portal-top-search {
    flex: 1;
    width: 100%;
    max-width: none;
  }

  .route-dashboard .dashboard-lower-grid,
  .profile-grid,
  .admin-chat-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .portal-guide-head {
    display: block;
  }

  .portal-guide-head .route-actions {
    margin-top: 14px;
  }

  .service-directory-grid {
    grid-template-columns: 1fr;
  }

  .portal-top-actions {
    flex-wrap: wrap;
  }

  .portal-top-search,
  .route-messages .portal-top-search {
    min-width: 0;
  }

  .profile-section-block .detail-list,
  .job-detail-list {
    grid-template-columns: 1fr;
  }

  .route-jobs .jobs-search {
    grid-template-columns: 1fr;
  }

  .assign-job-modal-body,
  .assign-bottom-grid {
    grid-template-columns: 1fr;
  }

  .assign-toolbar-smart {
    grid-template-columns: 1fr 1fr;
  }

  .assign-directory-table table {
    min-width: 760px;
  }

  .chat-thread-list,
  .chat-window {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .portal-access-card,
  .public-auth-card,
  .portal-guide-card {
    padding: 20px;
  }

  .portal-access-card h2,
  .portal-guide-head h3 {
    font-size: 24px;
  }

  .portal-top-search {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .portal-search-shortcut {
    display: none;
  }

  .route-jobs .jobs-scope-tabs a,
  .route-user-view .profile-tabs a,
  .route-applicant-view .profile-tabs a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .assign-job-modal-card {
    width: min(100vw - 20px, 1380px);
  }

  .assign-job-modal-head h3 {
    font-size: 24px;
  }

  .assign-toolbar-smart,
  .assign-footer-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .assign-footer-bar {
    justify-items: stretch;
  }

  .assign-modal-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .assign-modal-actions .btn {
    width: 100%;
  }

  .chat-thread-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .chat-thread-meta {
    grid-column: 2;
    justify-items: start;
  }

  .message-bubble {
    max-width: 88%;
  }
}

.checkbox-stack,
.inline-check-grid,
.compact-selection {
  display: grid;
  gap: 12px;
}

.checkbox-stack {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.inline-check-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
}

.check-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 78, 193, 0.12);
  border-radius: 18px;
  background: #fff;
}

.check-card input {
  margin-top: 4px;
}

.check-card span {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.check-card strong,
.check-card b {
  color: var(--ink);
  font-size: 14px;
}

.inline-check {
  grid-template-columns: 18px auto;
  padding: 10px 12px;
  min-height: auto;
}

.compact-selection {
  max-height: 280px;
  overflow: auto;
  padding-right: 6px;
}

.compact-selection label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(22, 78, 193, 0.1);
  border-radius: 14px;
  background: rgba(244, 247, 255, 0.8);
}

.compact-selection small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

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

.attendance-self-form .route-actions {
  margin: 14px 0 10px;
}

.attendance-self-form .btn-danger {
  margin-top: 10px;
}

.form-mini-head {
  display: grid;
  gap: 4px;
  padding-top: 4px;
}

.form-mini-head h3 {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

.form-mini-head p {
  margin: 0;
  font-size: 12px;
  color: #7084a5;
}

.portal-panel-head {
  display: grid;
  gap: 16px;
}

.portal-panel-head .list-screen-head {
  margin-bottom: 0;
}

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

.portal-scope-tabs a {
  min-height: 52px;
  min-width: 110px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(22, 78, 193, 0.14);
  background: #fff;
  color: #16325f;
  box-shadow: 0 10px 22px rgba(17, 39, 82, 0.04);
  transition: .18s ease;
}

.portal-scope-tabs a:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 78, 193, 0.24);
  box-shadow: 0 14px 28px rgba(17, 39, 82, 0.08);
}

.portal-scope-tabs a.active {
  background: linear-gradient(135deg, #1763e9, #1855cb);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(22, 99, 233, 0.24);
}

.portal-scope-tabs a span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.portal-scope-tabs a small {
  font-size: 11px;
  color: #7084a5;
}

.portal-scope-tabs a.active small {
  color: rgba(255,255,255,.82);
}

.portal-scope-tabs-compact a {
  min-width: 96px;
  min-height: 48px;
  padding: 9px 12px;
}

.portal-scope-tabs.secondary a {
  min-width: 92px;
  border-radius: 14px;
  background: #f7faff;
}

.attendance-desk-card {
  margin-bottom: 22px;
}

.attendance-desk-card .portal-scope-tabs + .portal-scope-tabs {
  margin-top: 12px;
}

.attendance-layout-grid {
  margin-bottom: 22px;
}

.attendance-summary-card h2 {
  margin-bottom: 14px;
}

.location-picker-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(22, 78, 193, 0.12);
  border-radius: 18px;
  background: #fbfdff;
}

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

.location-picker-summary {
  font-size: 13px;
  color: #4d6487;
}

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

.location-picker-canvas {
  height: 220px;
  border-radius: 16px;
  border: 1px solid rgba(22, 78, 193, 0.12);
  overflow: hidden;
}

@media (max-width: 780px) {
  .portal-scope-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-scope-tabs a,
  .portal-scope-tabs-compact a,
  .portal-scope-tabs.secondary a {
    min-width: 0;
  }

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

  .location-picker-coords {
    grid-template-columns: 1fr;
  }

  .location-picker-canvas {
    height: 200px;
  }
}
