:root {
  --bg: #f3f7fb;
  --bg-alt: #e7eef6;
  --surface: #ffffff;
  --text: #1a2331;
  --muted: #5c6d84;
  --line: #d5e0eb;
  --line-strong: #aebfd4;
  --navy: #10233d;
  --navy-2: #23486f;
  --blue: #2d6cdf;
  --blue-soft: #e7f0ff;
  --teal: #4b89e8;
  --teal-deep: #1f5ab7;
  --teal-soft: #eef5ff;
  --coral: #4f79c7;
  --amber: #7aa0dd;
  --violet: #6a84c9;
  --shadow: 0 24px 70px rgba(16, 35, 61, 0.15);
  --shadow-soft: 0 14px 38px rgba(16, 35, 61, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
}

/* Unified administration portal */
.admin-portal-menu button { width: 100%; border: 0; border-radius: 10px; padding: 0.78rem 0.9rem; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.job-company-highlight { display: inline-flex; width: fit-content; margin: 0.7rem 0 0.45rem; padding: 0.5rem 0.85rem; border: 1px solid rgba(255,255,255,0.42); border-radius: 999px; background: rgba(255,255,255,0.16); color: #fff; font-weight: 800; letter-spacing: 0.02em; }
.admin-portal-menu button:hover,.admin-portal-menu button.active { background: #258cf4; color: #fff; }
.admin-menu-label { padding: 1rem 0.9rem 0.35rem; color: #6d7885; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-portal-topbar p { margin: 0.35rem 0 0; color: #6f7882; }
.admin-record-workspace { display: grid; grid-template-columns: minmax(230px, 30%) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.admin-record-list { min-width: 0; }
.admin-record-list > label { display: grid; gap: 0.35rem; font-weight: 700; }
.admin-record-list input,.admin-record-editor input,.admin-record-editor select,.admin-record-editor textarea,.admin-settings input,.admin-settings select,.admin-settings textarea,.admin-report-filters input,.admin-report-filters select { width: 100%; border: 1px solid #ccd5df; border-radius: 10px; padding: 0.72rem 0.8rem; background: #fff; color: #1f252b; font: inherit; }
.admin-record-items { display: grid; gap: 0.45rem; margin-top: 0.8rem; }
.admin-record-button { width: 100%; border: 1px solid transparent; border-radius: 11px; padding: 0.8rem; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.admin-record-button:hover { background: #edf6ff; }
.admin-record-button.selected { border-color: #258cf4; background: #edf6ff; }
.admin-record-button span { display: flex; justify-content: space-between; gap: 0.5rem; }
.admin-record-button strong,.admin-record-button small { display: block; }
.admin-record-button small { margin-top: 0.25rem; color: #75808b; }
.admin-editor-heading,.admin-section-heading,.admin-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-editor-heading { padding-bottom: 1rem; border-bottom: 1px solid #dce2e8; }
.admin-editor-heading h2,.admin-section-heading h3,.admin-section-heading p { margin: 0; }
.admin-section-heading { margin: 1.4rem 0 0.8rem; }
.admin-section-heading p,.admin-help { color: #75808b; }
.admin-record-editor h3,.admin-settings h2 { margin: 1.4rem 0 0.7rem; }
.admin-status-pill { border-radius: 999px; padding: 0.35rem 0.65rem; background: #e8f4ff; color: #1676c4; font-size: 0.82rem; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.admin-form-grid label { display: grid; gap: 0.35rem; font-weight: 700; }
.admin-form-grid .wide { grid-column: 1 / -1; }
.admin-contact-row { padding: 0.9rem 0; border-top: 1px solid #dce2e8; }
.admin-contact-row:first-child { border-top: 0; }
.admin-form-actions { justify-content: flex-end; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid #dce2e8; }
.button.danger { margin-right: auto; background: #fff0f0; color: #b52727; border-color: #eec2c2; }
.button.small { padding: 0.4rem 0.65rem; }
.admin-restricted { margin-top: 1.3rem; padding: 1rem; border-left: 4px solid #258cf4; background: #edf6ff; }
.admin-restricted p { margin: 0.3rem 0 0; color: #607080; }
.admin-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.admin-permission-grid label,.admin-theme-options label { display: flex; gap: 0.55rem; align-items: center; }
.admin-permission-grid input,.admin-theme-options input { width: auto; }
.admin-report-filters,.admin-report-tabs,.admin-settings-tabs,.admin-theme-options { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.admin-report-filters label { display: grid; gap: 0.3rem; }
.admin-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 1.2rem 0; }
.admin-report-panel { padding: 1.1rem 0; border-bottom: 1px solid #dce2e8; }
.admin-report-panel h2 { margin-top: 0; }
.admin-report-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid #edf0f3; }
.admin-settings-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 0.65rem 0.2rem; background: transparent; font: inherit; }
.admin-settings-tabs button.active { border-color: #258cf4; }
.admin-empty { padding: 2rem 0; color: #75808b; text-align: center; }
[data-dashboard-theme="night"] body.agent-app { background: #121820; color: #e8eef5; }
[data-dashboard-theme="night"] .agent-sidebar { background: #182432; color: #e8eef5; }
[data-dashboard-theme="night"] .agent-main { background: #121820; }
[data-dashboard-theme="night"] .admin-record-list input,[data-dashboard-theme="night"] .admin-record-editor input,[data-dashboard-theme="night"] .admin-record-editor select,[data-dashboard-theme="night"] .admin-record-editor textarea,[data-dashboard-theme="night"] .admin-settings input,[data-dashboard-theme="night"] .admin-settings select,[data-dashboard-theme="night"] .admin-settings textarea { background: #1c2632; border-color: #3b4857; color: #eef3f8; }
[data-dashboard-theme="night"] .admin-record-button:hover,[data-dashboard-theme="night"] .admin-record-button.selected { background: #1b3045; }
@media (prefers-color-scheme: dark) { [data-dashboard-theme="system"] body.agent-app { background: #121820; color: #e8eef5; } [data-dashboard-theme="system"] .agent-sidebar { background: #182432; color: #e8eef5; } [data-dashboard-theme="system"] .agent-main { background: #121820; } }
@media (max-width: 760px) { .admin-record-workspace,.admin-report-grid { grid-template-columns: 1fr; } .admin-form-grid,.admin-permission-grid { grid-template-columns: 1fr; } .admin-form-grid .wide { grid-column: auto; } }

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #f7faff 0%, #edf3fb 46%, #f6f9fe 100%);
  font-family: "Segoe UI", "Aptos", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 108, 223, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 90, 183, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 32%);
  opacity: 0.34;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(18, 37, 29, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(18, 37, 29, 0.08);
}

.nav-shell,
.hero .section-inner,
.page-hero .section-inner,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(18, 37, 29, 0.1);
  box-shadow: 0 12px 28px rgba(18, 37, 29, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand span:last-child {
  font-size: 21px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #4d5459;
  font-size: 15px;
  font-weight: 650;
}

.main-nav a {
  padding: 11px 12px;
  border-radius: 10px;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  background: linear-gradient(135deg, rgba(45, 108, 223, 0.1), rgba(75, 137, 232, 0.12));
  box-shadow: inset 0 0 0 1px rgba(45, 108, 223, 0.08);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-size: 0;
  cursor: pointer;
}

.nav-toggle::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(12, 31, 62, 0.95) 0%, rgba(29, 62, 111, 0.9) 48%, rgba(70, 122, 215, 0.72) 100%),
    url("office-hero-background.jpg") center / cover no-repeat;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%),
    radial-gradient(circle at 18% 24%, rgba(45, 108, 223, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(12, 31, 62, 0.24), transparent 72%);
}

.hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 68px 0 60px;
}

.page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 56px 0 50px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 880px);
  gap: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.section.accent .eyebrow {
  color: #d8e7ff;
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.03;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.hero-summary li,
.tag,
.pill-list li {
  border-radius: 999px;
  padding: 8px 12px;
  color: #eef1f3;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 750;
}

.hero-visual {
  display: none;
}

.hero-visual,
.image-frame,
.visual-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(244, 248, 250, 0.22);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.hero-visual img,
.image-frame img,
.visual-panel img {
  width: 100%;
  object-fit: cover;
}

.hero-visual img,
.image-frame img {
  aspect-ratio: 4 / 3;
}

.visual-panel img {
  min-height: 360px;
  aspect-ratio: auto;
}

.hero-visual figcaption,
.image-frame figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  background: linear-gradient(180deg, #ffffff, #f5f8f2);
}

.section {
  padding: 78px 0;
}

.section.soft {
  background: rgba(237, 243, 251, 0.86);
  border-top: 1px solid rgba(16, 35, 61, 0.06);
  border-bottom: 1px solid rgba(16, 35, 61, 0.06);
}

.section.accent {
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 10%, rgba(45, 108, 223, 0.28), transparent 30%),
    linear-gradient(135deg, #10233d 0%, #23486f 56%, #4b89e8 100%);
}

.section-head {
  max-width: 800px;
  margin-bottom: 32px;
}

.stack-gap {
  margin-top: 24px;
}

.section-head h2,
.split h2,
.page-hero h1 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-head h2,
.split h2 {
  font-size: clamp(26px, 3.4vw, 46px);
}

.section-head p,
.split p,
.card p,
.opening p,
.blog-item p,
.review-card p,
.job-detail-section p,
.contact-intro {
  color: var(--muted);
}

.page-hero p {
  max-width: 760px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 46px;
  align-items: center;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card,
.opening,
.blog-item,
.review-card,
.job-card,
.job-detail-panel,
.contact-list a,
.contact-list div,
.job-empty,
.job-button,
.form-status,
.field input,
.field select,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card,
.opening,
.blog-item,
.review-card {
  padding: 24px;
  box-shadow: 0 14px 36px rgba(18, 37, 29, 0.07);
}

.card h3,
.opening h3,
.blog-item h3,
.review-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--navy);
}

.card p,
.opening p,
.blog-item p,
.review-card p {
  margin: 0;
}

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

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(18, 37, 29, 0.03);
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  font-weight: 800;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--navy);
}

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

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

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--coral));
}

.admin-sheet {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.admin-sheet .button {
  width: 100%;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.pill-list li {
  color: #244066;
  background: var(--teal-soft);
  border: 1px solid rgba(45, 108, 223, 0.12);
}

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

.stat {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: #ffffff;
}

.stat p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.opening-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.opening-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #40474c;
  background: #f2f3f4;
  font-size: 13px;
  font-weight: 700;
}

.card,
.opening,
.blog-item,
.review-card,
.job-card,
.job-detail-panel {
  overflow: hidden;
}

.job-controls {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

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

.field span {
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
}

.field input,
.field select,
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

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

.hero-visual,
.image-frame,
.visual-panel,
.job-detail-panel,
.job-card,
.card,
.opening,
.blog-item,
.review-card,
.contact-list a,
.contact-list div {
  box-shadow: 0 1px 0 rgba(18, 37, 29, 0.03);
}

.job-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}

.job-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.job-empty {
  padding: 24px;
  border-style: dashed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
}

.job-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.job-card {
  display: flex;
  min-height: 590px;
  flex-direction: column;
  border: 1px solid #b8c0c5;
  background: #ffffff;
  padding: 26px 20px 24px;
  box-shadow: 0 10px 22px rgba(18, 37, 29, 0.12);
}

.job-card.highlight {
  border-color: rgba(45, 108, 223, 0.22);
  background: #edf4ff;
}

.job-card.inactive {
  opacity: 0.88;
  background: #edf4ff;
}

.job-status-row {
  display: flex;
  justify-content: flex-end;
  min-height: 28px;
  margin-bottom: 8px;
}

.job-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.status-active {
  border-color: rgba(45, 108, 223, 0.16);
  color: #214e97;
  background: #e8f1ff;
}

.status-inactive {
  border-color: rgba(120, 126, 131, 0.16);
  color: #6b7277;
  background: #f4f5f6;
}

.job-card h3 {
  min-height: 72px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
  text-align: center;
  font-weight: 700;
}

.job-facts,
.job-detail-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
}

.job-facts div,
.job-detail-facts div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 6px;
}

.job-facts dt,
.job-detail-facts dt {
  color: var(--navy);
  font-weight: 850;
  text-transform: uppercase;
}

.job-facts dd,
.job-detail-facts dd {
  margin: 0;
  color: var(--text);
}

.job-preview {
  margin-top: 10px;
}

.job-preview h4,
.job-detail-section h2 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.job-preview p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.job-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: inherit;
  font-weight: 850;
  font-size: 15px;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

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

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  box-shadow: 0 16px 32px rgba(45, 108, 223, 0.2);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.button.dark,
.job-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  box-shadow: 0 16px 32px rgba(45, 108, 223, 0.18);
}

.button.light {
  color: var(--navy);
  background: #edf4ff;
  border-color: rgba(45, 108, 223, 0.08);
}

.button.light:hover {
  background: #e1ebff;
}

.job-share-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 18, 34, 0.56);
  backdrop-filter: blur(10px);
}

.job-share-dialog {
  width: min(540px, 100%);
  padding: 22px;
  border: 1px solid rgba(18, 37, 29, 0.14);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 26px 64px rgba(16, 35, 61, 0.24);
}

.job-share-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.job-share-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.15;
}

.job-share-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

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

.job-share-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.live-chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: grid;
  justify-items: end;
  gap: 10px;
  width: min(390px, calc(100vw - 24px));
}

.live-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 18px 34px rgba(16, 35, 61, 0.22);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  font-size: 15px;
}

.live-chat-launcher-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.live-chat-launcher-text {
  white-space: nowrap;
}

.live-chat-widget.is-open .live-chat-launcher {
  border-radius: 18px 18px 0 0;
}

.live-chat-panel {
  width: 100%;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(18, 37, 29, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(16, 35, 61, 0.18);
  backdrop-filter: blur(18px);
}

.live-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.live-chat-eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-chat-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.2;
}

.live-chat-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.live-chat-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px 22px;
}

.live-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 290px;
  overflow: auto;
  padding-right: 4px;
}

.live-chat-bubble {
  max-width: 92%;
  padding: 13px 15px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
}

.live-chat-bubble--bot {
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid rgba(45, 108, 223, 0.12);
}

.live-chat-bubble--user {
  margin-left: auto;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
}

.live-chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-chat-chip {
  border: 1px solid rgba(45, 108, 223, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  padding: 10px 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.live-chat-chip:hover {
  background: var(--blue-soft);
}

.live-chat-form {
  display: grid;
  gap: 10px;
}

.live-chat-composer {
  display: grid;
  gap: 10px;
}

.live-chat-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.live-chat-step-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.live-chat-input,
.live-chat-file {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.live-chat-input:focus,
.live-chat-file:focus {
  outline: none;
  border-color: rgba(45, 108, 223, 0.42);
  box-shadow: 0 0 0 4px rgba(45, 108, 223, 0.1);
}

.live-chat-form textarea {
  width: 100%;
  min-height: 88px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  resize: vertical;
}

.live-chat-form textarea:focus {
  outline: none;
  border-color: rgba(45, 108, 223, 0.42);
  box-shadow: 0 0 0 4px rgba(45, 108, 223, 0.1);
}

.job-button {
  min-height: 42px;
  border-color: transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
}

.job-button.disabled,
.job-button.disabled:hover {
  color: #ffffff;
  background: #7a8085;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.job-detail-panel {
  padding: 30px 20px 20px;
  border: 1px solid rgba(18, 37, 29, 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 37, 29, 0.12);
}

.job-detail-facts {
  max-width: 760px;
  gap: 10px;
}

.job-detail-facts div {
  grid-template-columns: 190px 1fr;
}

.job-detail-section {
  margin-top: 26px;
}

.job-detail-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.job-detail-section li,
.job-detail-section p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.job-detail-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 38px;
}

.job-button.wide {
  min-width: 400px;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: start;
}

form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 7px;
  color: #52595f;
  font-weight: 750;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  border-color: rgba(45, 108, 223, 0.18);
  color: #214e97;
  background: #edf4ff;
}

.form-status.error {
  border-color: rgba(120, 126, 131, 0.18);
  color: #666d72;
  background: #f4f5f6;
}

.button:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.contact-list a,
.contact-list div {
  display: block;
  padding: 16px;
  background: #ffffff;
}

.review-stars {
  color: var(--blue);
  font-size: 18px;
  letter-spacing: 0;
}

.blog-date {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.faq-shell {
  max-width: 1040px;
}

.faq-section-head {
  max-width: 860px;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.qa-pair {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: stretch;
}

.qa-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(18, 37, 29, 0.03);
}

.question-card {
  border-left: 4px solid var(--teal);
}

.answer-card {
  background: rgba(255, 255, 255, 0.82);
}

.qa-label {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.35;
}

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

.qa-card .qa-label {
  margin: 0 0 10px;
  color: var(--teal);
}

.answer-card p:not(.qa-label) + p {
  margin-top: 12px;
}

.contact-intro {
  max-width: 520px;
  margin: 12px 0 0;
  font-size: 16px;
}

.site-footer {
  color: #e3efff;
  background: #10233d;
  padding: 54px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .hero-layout,
  .split,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .stats,
  .footer-grid,
  .job-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-card {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .main-nav a {
    padding: 12px 14px;
  }

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

  .page-hero {
    padding: 56px 0 54px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-layout {
    gap: 22px;
  }

  .grid.three,
  .grid.two,
  .qa-pair,
  .stats,
  .footer-grid,
  .field-grid,
  .job-listing-grid,
  .job-controls {
    grid-template-columns: 1fr;
  }

  .job-controls {
    margin-bottom: 14px;
  }

  .hero-actions,
  .actions,
  .job-detail-actions,
  .job-card-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .job-card-actions,
  .job-detail-actions {
    gap: 12px;
  }

  .job-share-options {
    grid-template-columns: 1fr;
  }

  .button,
  .job-button.wide {
    width: 100%;
    min-width: 0;
  }

  .live-chat-widget {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    justify-items: stretch;
  }

  .brand span:last-child {
    font-size: 20px;
  }

  .main-nav {
    font-size: 14px;
  }

  .live-chat-launcher,
  .live-chat-panel {
    width: 100%;
  }

  .live-chat-panel {
    min-height: 0;
  }

  .live-chat-bubble {
    max-width: 100%;
    font-size: 14px;
  }

  .live-chat-options {
    grid-template-columns: 1fr;
  }

  .job-facts div,
  .job-detail-facts div {
    grid-template-columns: 124px 1fr;
    font-size: 14px;
  }

  .job-detail-panel {
    padding: 24px 16px 16px;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    width: min(1180px, calc(100% - 22px));
  }

  .hero .section-inner,
  .page-hero .section-inner,
  .section-inner,
  .footer-inner {
    width: min(1180px, calc(100% - 22px));
  }

  .brand span:last-child {
    font-size: 17px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .hero p,
  .page-hero p {
    font-size: 18px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .card,
  .opening,
  .blog-item,
  .review-card {
    padding: 20px;
  }

  .job-card {
    padding: 22px 16px 20px;
  }

  .job-card h3 {
    min-height: auto;
    font-size: 19px;
  }

  .job-detail-actions {
    margin-top: 30px;
  }
}

.dashboard-public {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(12, 31, 62, 0.92), rgba(45, 108, 223, 0.84)),
    url("office-hero-background.jpg") center / cover no-repeat fixed;
}

.agent-login-section {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 52px 16px;
}

.agent-login-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
}

.agent-login-copy {
  color: #ffffff;
}

.agent-login-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.03;
}

.agent-login-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.agent-login-form {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.agent-app {
  min-height: 100vh;
  background: #e8f1ff;
}

.agent-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.agent-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px 16px;
  color: #e4e7e9;
  background: #10233d;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 850;
}

.agent-sidebar .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.agent-menu {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding-right: 4px;
}

.agent-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 780;
}

.agent-menu a:hover,
.agent-menu a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.agent-sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.agent-sidebar-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 760;
}

.agent-main {
  min-width: 0;
  padding: 28px;
}

.agent-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

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

.candidate-selection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.agent-topbar h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.05;
}

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

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

.metric-card {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(18, 37, 29, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 37, 29, 0.07);
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.candidate-summary-panel {
  margin-bottom: 22px;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-title-row h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}

.candidate-summary-table {
  max-height: 360px;
  overflow: auto;
}

.agent-filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(18, 37, 29, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(18, 37, 29, 0.06);
}

.summary-filter-panel {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  margin-bottom: 18px;
}

.summary-filter-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.summary-filter-actions .button {
  min-width: 110px;
}

.candidate-count-row {
  margin: 18px 0 12px;
}

.candidate-grid {
  display: grid;
  gap: 16px;
}

.candidate-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.candidate-page-button,
.candidate-page-ellipsis {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
}

.candidate-page-button {
  cursor: pointer;
}

.candidate-page-button.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
}

.candidate-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.candidate-page-ellipsis {
  border-color: transparent;
  background: transparent;
  padding-inline: 6px;
}

.candidate-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(18, 37, 29, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(18, 37, 29, 0.08);
}

.candidate-card.selected {
  border-color: rgba(75, 137, 232, 0.65);
  box-shadow: 0 16px 34px rgba(75, 137, 232, 0.14);
}

.candidate-card.candidate-return-card {
  border-color: rgba(30, 111, 73, 0.55);
  box-shadow: 0 16px 36px rgba(30, 111, 73, 0.16);
}

.candidate-check {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 1px solid var(--blue);
  border-radius: 3px;
}

.candidate-check-select {
  display: grid;
  place-items: center;
  margin-top: 4px;
  border-color: transparent;
  cursor: pointer;
}

.candidate-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.candidate-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.candidate-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #214e97;
  background: #e8f1ff;
  font-weight: 850;
}

.candidate-title {
  min-width: 0;
}

.candidate-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}

.candidate-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.candidate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0;
  color: #3b5f99;
  font-size: 14px;
}

.candidate-details {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-left: 4px solid #4b89e8;
  border-radius: 10px;
  background: #edf4ff;
}

.candidate-details div,
.profile-facts div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
}

.candidate-details dt,
.profile-facts dt {
  color: #3b5f99;
  font-size: 13px;
  font-weight: 760;
}

.candidate-details dd,
.profile-facts dd {
  min-width: 0;
  margin: 0;
  color: #3f464b;
}

.profile-facts a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.profile-facts a:hover {
  text-decoration: underline;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tags span {
  padding: 4px 8px;
  border-radius: 7px;
  color: #214e97;
  background: #e8f1ff;
  font-size: 12px;
  font-weight: 780;
}

.candidate-actions {
  min-width: 170px;
  display: grid;
  align-content: end;
  gap: 10px;
}

.candidate-follow-up-date {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #b9d2f5;
  border-radius: 10px;
  color: #214e97;
  background: #edf4ff;
  text-align: center;
}

.candidate-follow-up-date span {
  font-size: 12px;
  font-weight: 750;
}

.candidate-follow-up-date strong {
  color: var(--navy);
  font-size: 14px;
}

.candidate-contact-button,
.profile-whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.candidate-contact-button svg,
.profile-whatsapp-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.candidate-call-action {
  color: #ffffff;
  border-color: #2563b8;
  background: #2563b8;
}

.candidate-whatsapp-action,
.profile-whatsapp-button {
  color: #ffffff;
  border-color: #128c4a;
  background: #128c4a;
}

.candidate-call-action:hover,
.candidate-whatsapp-action:hover,
.profile-whatsapp-button:hover {
  color: #ffffff;
  filter: brightness(0.94);
}

.candidate-lock-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: #ffffff;
}

.candidate-loading-state {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  min-height: 88px;
}

.candidate-loading-state > span {
  grid-row: 1 / span 2;
  font-size: 26px;
}

.candidate-loading-state > strong {
  color: var(--ink);
}

.candidate-loading-state > small {
  display: block;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.status-panel,
.profile-card,
.summary-table-wrap {
  border: 1px solid rgba(18, 37, 29, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 37, 29, 0.07);
}

.status-panel {
  position: sticky;
  top: 20px;
  padding: 18px;
}

.status-panel h2,
.profile-card h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}

.profile-card {
  margin-bottom: 18px;
  padding: 20px;
}

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

.profile-head .candidate-avatar {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.profile-head-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-head h2 {
  margin: 0;
  font-size: 24px;
}

.profile-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.profile-call-button {
  min-width: 180px;
  justify-content: center;
}

.profile-call-placeholder {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  color: var(--muted);
  font-weight: 700;
}

.profile-contact a,
.profile-contact div {
  min-height: 56px;
  display: grid;
  align-content: center;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--navy);
  background: #edf4ff;
  font-weight: 800;
}

.profile-copy-lock {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.profile-facts {
  display: grid;
  gap: 10px;
}

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

.activity-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #edf4ff;
}

.activity-item time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.activity-item p {
  margin: 0;
  color: var(--text);
}

.summary-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 8px 0 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.summary-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #ffffff;
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.summary-tabs button.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
}

.summary-table-wrap {
  overflow-x: auto;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

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

.summary-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  background: #edf4ff;
}

.summary-table td {
  color: var(--text);
  font-weight: 720;
}

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

.joining-record-filters {
  grid-template-columns: minmax(260px, 2fr) minmax(220px, 1fr) auto;
}

.joining-record-grid {
  display: block;
}

.joining-record-section-stack {
  display: grid;
  gap: 18px;
}

.joining-record-entry-panel,
.joining-record-list-panel {
  margin-bottom: 0;
}

.joining-record-helper {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.joining-record-table-wrap {
  width: 100%;
  max-height: calc(100vh - 285px);
  overflow: auto;
  border: 1px solid rgba(18, 37, 29, 0.1);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(18, 37, 29, 0.08);
  scrollbar-color: #7da8e9 #e8f1ff;
  scrollbar-width: thin;
}

.joining-record-table {
  width: 100%;
  min-width: 4300px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
  font-size: 13px;
}

.joining-record-table th,
.joining-record-table td {
  min-width: 132px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.joining-record-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #244066;
  background: #dceaff;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.joining-record-table tbody tr:nth-child(even) td {
  background: #f7faff;
}

.joining-record-table tbody tr:hover td {
  background: #edf4ff;
}

.joining-record-table th:first-child,
.joining-record-table td:first-child {
  left: 0;
  min-width: 78px;
  position: sticky;
  z-index: 2;
  background: #ffffff;
}

.joining-record-table th:nth-child(2),
.joining-record-table td:nth-child(2) {
  left: 78px;
  min-width: 156px;
  position: sticky;
  z-index: 2;
  background: #ffffff;
  box-shadow: 8px 0 14px rgba(16, 35, 61, 0.06);
}

.joining-record-table th:first-child,
.joining-record-table th:nth-child(2) {
  z-index: 5;
  background: #dceaff;
}

.joining-record-table tbody tr:nth-child(even) td:first-child,
.joining-record-table tbody tr:nth-child(even) td:nth-child(2) {
  background: #f7faff;
}

.joining-record-table tbody tr:hover td:first-child,
.joining-record-table tbody tr:hover td:nth-child(2) {
  background: #edf4ff;
}

.joining-candidate-link {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.joining-candidate-link:hover {
  text-decoration: underline;
}

.retention-badge,
.joining-status-badge,
.joining-record-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.retention-badge.pending,
.joining-record-state {
  color: #8a5700;
  background: #fff0c8;
}

.retention-badge.completed,
.joining-record-state.saved,
.joining-status-badge.joined {
  color: #12643e;
  background: #dff6e9;
}

.joining-status-badge.absconded {
  color: #8b2f25;
  background: #ffe3df;
}

.joining-status-badge.resigned {
  color: #5f4b14;
  background: #f6edc9;
}

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

.joining-record-heading .eyebrow {
  margin-bottom: 5px;
}

.joining-record-heading h2 {
  margin-bottom: 0;
}

.joining-derived-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(105px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.joining-derived-grid > div {
  min-height: 76px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid #cfe0f8;
  border-radius: 10px;
  background: #edf4ff;
}

.joining-derived-grid span:not(.retention-badge) {
  color: #3b5f99;
  font-size: 12px;
  font-weight: 800;
}

.joining-derived-grid strong:not(.retention-badge) {
  color: var(--navy);
  font-size: 17px;
}

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

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

.joining-form-grid label {
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.joining-form-grid textarea {
  min-height: 96px;
}

.joining-form-wide {
  grid-column: span 3;
}

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

.joining-section-actions {
  margin-top: 2px;
}

.joining-form-actions .form-status {
  flex: 1 1 260px;
  margin: 0;
}

@media (max-width: 1180px) {
  .agent-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .joining-derived-grid {
    grid-template-columns: repeat(4, minmax(105px, 1fr));
  }

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

  .joining-form-wide {
    grid-column: span 2;
  }
}

@media (max-width: 920px) {
  .agent-login-shell,
  .agent-shell,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .agent-sidebar {
    position: static;
    height: auto;
  }

  .agent-menu {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

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

  .status-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .agent-main {
    padding: 18px 12px;
  }

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

  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .agent-filter-panel,
  .agent-metrics,
  .agent-menu,
  .profile-contact {
    grid-template-columns: 1fr;
  }

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

  .joining-form-wide {
    grid-column: auto;
  }

  .joining-record-table-wrap {
    max-height: calc(100vh - 220px);
  }

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

  .summary-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .candidate-card {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .candidate-actions {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .candidate-lock-note {
    text-align: left;
  }

  .candidate-details div,
  .profile-facts div,
  .activity-item {
    grid-template-columns: 1fr;
  }
}
