/* QualityJob4U public design system */
:root {
  --qj-ink: #1c2230;
  --qj-ink-2: #3b3b3d;
  --qj-muted: #5b6475;
  --qj-line: #e3e6ec;
  --qj-surface: #ffffff;
  --qj-bg: #f5f6f8;
  --qj-brand: #c8141b;
  --qj-brand-dark: #a10f15;
  --qj-brand-soft: #fdecec;
  --qj-success: #146c43;
  --qj-success-soft: #e7f5ee;
  --qj-warn: #8a5300;
  --qj-warn-soft: #fff4e0;
  --qj-closed: #5b6475;
  --qj-closed-soft: #eef0f3;
  --qj-radius: 10px;
  --qj-radius-lg: 14px;
  --qj-shadow: 0 1px 2px rgba(28, 34, 48, .06), 0 4px 16px rgba(28, 34, 48, .06);
  --qj-focus: 0 0 0 3px #fff, 0 0 0 5px #1c5fd6;
  --qj-font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

html[dir="rtl"] { --qj-font: "Almarai", "Segoe UI", Tahoma, sans-serif; }

body.qj {
  margin: 0;
  font-family: var(--qj-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--qj-ink);
  background: var(--qj-bg);
  -webkit-font-smoothing: antialiased;
}

.qj h1, .qj h2, .qj h3, .qj h4 { color: var(--qj-ink); font-weight: 700; letter-spacing: -0.01em; }
.qj a { color: var(--qj-brand-dark); }
.qj a:hover { color: var(--qj-brand); }
.qj :focus-visible { outline: none; box-shadow: var(--qj-focus); border-radius: 6px; }
.qj img { max-width: 100%; height: auto; }

.qj-skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 2000;
  background: var(--qj-ink); color: #fff !important; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.qj-skip:focus { top: 12px; }

.qj-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.qj-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--qj-radius);
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.qj-btn-primary { background: var(--qj-brand); color: #fff !important; }
.qj-btn-primary:hover { background: var(--qj-brand-dark); color: #fff !important; }
.qj-btn-dark { background: var(--qj-ink); color: #fff !important; }
.qj-btn-dark:hover { background: #000; }
.qj-btn-outline { background: transparent; color: var(--qj-ink) !important; border-color: #c4c9d3; }
.qj-btn-outline:hover { border-color: var(--qj-ink); }
.qj-btn-light { background: #fff; color: var(--qj-ink) !important; }
.qj-btn-block { width: 100%; }
.qj-btn[disabled], .qj-btn[aria-disabled="true"] { background: var(--qj-closed-soft); color: var(--qj-closed) !important; cursor: not-allowed; border-color: transparent; }

/* Header */
.qj-header { background: var(--qj-surface); border-bottom: 1px solid var(--qj-line); position: sticky; top: 0; z-index: 1030; }
.qj-header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.qj-logo { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 48px; min-width: 48px; padding: 2px 4px; }
.qj-logo img { height: 48px; width: auto; }
.qj-nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.qj-nav > li > a, .qj-nav > li > button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px;
  color: var(--qj-ink); font-weight: 500; font-size: 15px; text-decoration: none; background: none; border: 0;
}
.qj-nav > li > a:hover, .qj-nav > li > button:hover { background: var(--qj-bg); color: var(--qj-ink); }
.qj-nav > li > a[aria-current="page"] { color: var(--qj-brand-dark); font-weight: 600; }
.qj-header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.qj-menu-toggle { display: none; margin-inline-start: auto; }
.qj .dropdown-menu { border: 1px solid var(--qj-line); border-radius: var(--qj-radius); box-shadow: var(--qj-shadow); padding: 6px; }
.qj .dropdown-item { border-radius: 6px; padding: 9px 12px; font-size: 15px; }
.qj .dropdown-item small { display: block; color: var(--qj-muted); font-size: 13px; }

@media (max-width: 991.98px) {
  .qj-menu-toggle { display: inline-flex; }
  .qj-header-collapse { display: none; width: 100%; padding: 8px 0 16px; }
  .qj-header-collapse.is-open { display: block; }
  .qj-header-inner { flex-wrap: wrap; }
  .qj-nav { flex-direction: column; align-items: stretch; }
  .qj-nav > li > a, .qj-nav > li > button { width: 100%; }
  .qj-header-actions { margin: 12px 0 0; flex-direction: column; align-items: stretch; }
  .qj-header-actions .dropdown > .qj-btn, .qj-header-actions form .qj-btn { width: 100%; }
}
@media (min-width: 992px) {
  .qj-header-collapse { display: flex !important; align-items: center; flex: 1; gap: 16px; }
}

/* Hero */
.qj-hero { background: var(--qj-ink); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.qj-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 85% 20%, rgba(200, 20, 27, .35), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px);
}
.qj-hero .qj-container { position: relative; z-index: 1; }
.qj-hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; max-width: 760px; margin: 0 0 14px; }
.qj-hero p.qj-lead { color: #d5d9e1; font-size: clamp(16px, 1.6vw, 19px); max-width: 680px; margin: 0 0 28px; }
.qj-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }
.qj-hero .qj-btn-outline { color: #fff !important; border-color: rgba(255,255,255,.55); }
.qj-hero .qj-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Search panel */
.qj-search {
  background: #fff; border-radius: var(--qj-radius-lg); padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 14px; align-items: end;
  /* the same width as the row of cards above it, with a clear gap between the two */
  width: 100%; max-width: none; margin: 28px 0 0; box-sizing: border-box;
}
.qj-search .qj-field { margin: 0; }
.qj-search label { color: var(--qj-muted); }
@media (max-width: 767.98px) { .qj-search { grid-template-columns: 1fr; } }

/* Forms */
.qj-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.qj-field label, .qj-label { font-size: 14px; font-weight: 600; color: var(--qj-ink); }
.qj-field .qj-hint { font-size: 13px; color: var(--qj-muted); }
.qj-req { color: var(--qj-brand-dark); }
.qj-input, .qj-select, .qj-textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--qj-ink);
  background: #fff; border: 1.5px solid #c4c9d3; border-radius: var(--qj-radius);
}
.qj-textarea { min-height: 96px; resize: vertical; }
.qj-input:focus, .qj-select:focus, .qj-textarea:focus { border-color: #1c5fd6; outline: none; box-shadow: 0 0 0 3px rgba(28,95,214,.18); }
.qj-input[aria-invalid="true"], .qj-select[aria-invalid="true"] { border-color: var(--qj-brand); }
.qj-error { color: var(--qj-brand-dark); font-size: 13.5px; font-weight: 500; }
.qj-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.qj-check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--qj-brand); }
.qj-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 575.98px) { .qj-grid-2 { grid-template-columns: 1fr; } }
.qj-hp { position: absolute !important; inset-inline-start: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Sections */
.qj-section { padding: 56px 0; }
.qj-section-white { background: #fff; border-top: 1px solid var(--qj-line); border-bottom: 1px solid var(--qj-line); }
.qj-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.qj-section-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0; }
.qj-section-head p { margin: 4px 0 0; color: var(--qj-muted); }
.qj-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--qj-brand-dark); margin-bottom: 6px; }

/* Job cards */
.qj-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.qj-card {
  background: var(--qj-surface); border: 1px solid var(--qj-line); border-radius: var(--qj-radius-lg);
  box-shadow: var(--qj-shadow); padding: 20px; display: flex; flex-direction: column; gap: 12px; position: relative;
}
.qj-card:hover { border-color: #c9ced8; }
.qj-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.qj-card-top .qj-chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qj-card-top .qj-status { flex-shrink: 0; }
.qj-card h3 { font-size: 18px; line-height: 1.3; margin: 0; }
.qj-card h3 a { color: var(--qj-ink); text-decoration: none; }
.qj-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--qj-radius-lg); }
.qj-card h3 a:focus-visible { box-shadow: none; }
.qj-card h3 a:focus-visible::after { box-shadow: var(--qj-focus); }
.qj-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--qj-muted); }
.qj-meta li { display: inline-flex; align-items: center; gap: 6px; }
.qj-meta svg { width: 16px; height: 16px; flex-shrink: 0; }
.qj-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--qj-line); font-size: 13.5px; color: var(--qj-muted); }
.qj-card-foot .qj-btn { position: relative; z-index: 1; min-height: 40px; padding: 8px 16px; font-size: 14px; }

.qj-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--qj-bg); color: var(--qj-ink-2); border: 1px solid var(--qj-line); white-space: nowrap; }
.qj-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.qj-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.qj-status-open { background: var(--qj-success-soft); color: var(--qj-success); }
.qj-status-soon { background: var(--qj-warn-soft); color: var(--qj-warn); }
.qj-status-closed { background: var(--qj-closed-soft); color: var(--qj-closed); }
.qj-cert-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

/* Disciplines */
.qj-disciplines { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.qj-discipline {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--qj-line);
  border-radius: var(--qj-radius); text-decoration: none; color: var(--qj-ink) !important; min-height: 64px;
}
.qj-discipline:hover { border-color: var(--qj-brand); }
.qj-discipline img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.qj-discipline span { font-weight: 600; font-size: 15px; line-height: 1.3; }
.qj-discipline small { display: block; font-weight: 500; color: var(--qj-muted); font-size: 13px; }

/* Employer band */
.qj-band { background: var(--qj-brand); color: #fff; border-radius: var(--qj-radius-lg); padding: 36px; display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; }
.qj-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); }
.qj-band p { margin: 0; color: #fde3e4; max-width: 620px; }
.qj-band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qj-band .qj-btn-outline { color: #fff !important; border-color: rgba(255,255,255,.7); }
@media (max-width: 767.98px) { .qj-band { grid-template-columns: 1fr; padding: 26px; } }

/* Steps */
.qj-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.qj-steps li { background: #fff; border: 1px solid var(--qj-line); border-radius: var(--qj-radius-lg); padding: 22px; counter-increment: step; }
.qj-steps li::before { content: counter(step); display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; background: var(--qj-ink); color: #fff; font-weight: 700; margin-bottom: 12px; }
.qj-steps h3 { font-size: 17px; margin: 0 0 6px; }
.qj-steps p { margin: 0; color: var(--qj-muted); font-size: 15px; }
@media (max-width: 767.98px) { .qj-steps { grid-template-columns: 1fr; } }

/* Clients */
.qj-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.qj-logos li { background: #fff; border: 1px solid var(--qj-line); border-radius: var(--qj-radius); display: flex; align-items: center; justify-content: center; padding: 12px; height: 84px; }
.qj-logos img { max-height: 56px; width: auto; object-fit: contain; }

/* Listing page */
.qj-page-head { background: #fff; border-bottom: 1px solid var(--qj-line); padding: 28px 0 22px; }
.qj-page-head h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.qj-page-head p { margin: 0; color: var(--qj-muted); }
.qj-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 14px; color: var(--qj-muted); }
.qj-breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: #aab0bb; }
.qj-breadcrumb a { color: var(--qj-muted); }
.qj-filters { background: #fff; border: 1px solid var(--qj-line); border-radius: var(--qj-radius-lg); padding: 16px; display: grid; grid-template-columns: 1.6fr 1fr 1fr auto auto; gap: 10px; align-items: end; margin: 22px 0; }
.qj-filters .qj-field { margin: 0; }
@media (max-width: 991.98px) { .qj-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .qj-filters { grid-template-columns: 1fr; } }
.qj-results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--qj-muted); font-size: 14.5px; flex-wrap: wrap; }
.qj-empty { background: #fff; border: 1px dashed #c4c9d3; border-radius: var(--qj-radius-lg); padding: 40px 20px; text-align: center; }
.qj-empty h2 { font-size: 20px; }
.qj-pagination { display: flex; justify-content: center; margin-top: 28px; }
.qj-pagination .pagination { gap: 4px; }
.qj-pagination .small, .qj-pagination .text-muted { color: var(--qj-muted) !important; font-size: 14px; }
.qj-pagination .page-link { border-radius: 8px !important; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--qj-ink); border-color: var(--qj-line); }
.qj-pagination .page-item.active .page-link { background: var(--qj-ink); border-color: var(--qj-ink); color: #fff; }

/* Job detail */
.qj-detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; padding: 28px 0 56px; }
@media (max-width: 991.98px) { .qj-detail { grid-template-columns: 1fr; } }
.qj-panel { background: #fff; border: 1px solid var(--qj-line); border-radius: var(--qj-radius-lg); box-shadow: var(--qj-shadow); padding: 24px; }
.qj-panel + .qj-panel { margin-top: 18px; }
.qj-panel h2 { font-size: 19px; margin: 0 0 14px; }
.qj-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 0; }
.qj-facts div { background: var(--qj-bg); border-radius: var(--qj-radius); padding: 12px 14px; }
.qj-facts dt { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--qj-muted); margin-bottom: 2px; }
.qj-facts dd { margin: 0; font-weight: 600; font-size: 15px; }
.qj-description { font-size: 15.5px; overflow-wrap: anywhere; }
.qj-description img { border-radius: var(--qj-radius); }
.qj-description table { width: 100%; }
.qj-apply { position: sticky; top: 92px; scroll-margin-top: 88px; }
.qj-apply-jump { margin-top: 14px; }
@media (max-width: 991.98px) { .qj-apply { position: static; } }
@media (min-width: 992px) { .qj-apply-jump { display: none; } }
.qj-apply-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.qj-apply p.qj-sub { margin: 0 0 18px; color: var(--qj-muted); font-size: 14.5px; }
.qj-file { border: 1.5px dashed #c4c9d3; border-radius: var(--qj-radius); padding: 14px; background: var(--qj-bg); }
.qj-file input { font-size: 14px; width: 100%; }
.qj-alert { border-radius: var(--qj-radius); padding: 14px 16px; margin-bottom: 16px; font-size: 15px; }
.qj-alert-success { background: var(--qj-success-soft); color: #0b4a2d; border: 1px solid #b7e1cb; }
.qj-alert-error { background: var(--qj-brand-soft); color: #7c0a0f; border: 1px solid #f5c2c4; }
.qj-alert-info { background: #eef4ff; color: #173a7a; border: 1px solid #c9dafb; }
.qj-alert h2, .qj-alert h3 { font-size: 17px; color: inherit; margin: 0 0 6px; }
.qj-alert ol, .qj-alert ul { margin: 8px 0 0; padding-inline-start: 20px; }
.qj-original summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* Footer */
.qj-footer { background: var(--qj-ink); color: #dfe3ea; padding: 48px 0 24px; font-size: 15px; }
.qj-footer h2 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.qj-footer a { color: #fff; text-decoration: none; }
.qj-footer a:hover { text-decoration: underline; color: #fff; }
.qj-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qj-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 28px; }
@media (max-width: 767.98px) { .qj-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479.98px) { .qj-footer-grid { grid-template-columns: 1fr; } }
.qj-footer-logo { background: #fff; border-radius: 10px; padding: 6px 10px; display: inline-block; margin-bottom: 12px; }
.qj-footer-logo img { height: 42px; }
.qj-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Header CV button */
.qj-btn-cv { background: #fff; color: var(--qj-brand-dark) !important; border-color: var(--qj-brand); }
.qj-btn-cv:hover { background: var(--qj-brand-soft); }
.qj-cv-mobile { display: none; margin-inline-start: auto; padding: 8px 12px; }
@media (max-width: 991.98px) {
  .qj-cv-mobile { display: inline-flex; }
  .qj-cv-mobile ~ .qj-menu-toggle { margin-inline-start: 0; }
  .qj-header-actions > .qj-btn-cv { display: none; }
}
.qj-badge-free { background: var(--qj-brand); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 2px 7px; text-transform: uppercase; letter-spacing: .04em; }

/* CV builder */
.qj-features { grid-template-columns: repeat(4, 1fr); }
.qj-features li::before { content: none; }
@media (max-width: 991.98px) { .qj-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .qj-features { grid-template-columns: 1fr; } }
.qj-faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.qj-faq + .qj-faq { margin-top: 10px; }
.qj-builder { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 24px 20px 64px; align-items: start; }
@media (max-width: 991.98px) { .qj-builder { grid-template-columns: 1fr; } }
.qj-stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 92px; }
.qj-stepper button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--qj-ink); font-size: 14.5px; text-align: start; }
.qj-stepper button:hover { background: #fff; }
.qj-stepper button[aria-current="step"] { background: #fff; font-weight: 700; box-shadow: var(--qj-shadow); }
.qj-stepper-num { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--qj-closed-soft); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.qj-stepper button[aria-current="step"] .qj-stepper-num { background: var(--qj-brand); color: #fff; }
.qj-stepper button.is-done .qj-stepper-num { background: var(--qj-success); color: #fff; }
@media (max-width: 991.98px) {
  .qj-stepper { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .qj-stepper-label { display: none; }
  .qj-stepper button { width: auto; padding: 6px; }
}
.qj-import { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--qj-bg); border: 1.5px dashed #aab0bb; border-radius: var(--qj-radius-lg); padding: 16px 18px; margin-bottom: 16px; }
.qj-import-title { font-size: 17px !important; margin: 0 0 4px !important; }
.qj-import-btn { cursor: pointer; }
.qj-import-btn:focus-within { box-shadow: var(--qj-focus); }
.qj-step-count { color: var(--qj-muted); font-size: 14px; margin: 0 0 6px; }
#cvb { scroll-margin-top: 90px; }
.qj-step h2 { font-size: 22px; margin: 0 0 6px; }
.qj-step h2:focus { outline: none; }
.qj-sub { color: var(--qj-muted); }
.qj-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.qj-choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid #c4c9d3; border-radius: var(--qj-radius); cursor: pointer; min-height: 52px; font-weight: 600; background: #fff; }
.qj-choice input { width: 18px; height: 18px; accent-color: var(--qj-brand); flex-shrink: 0; }
.qj-choice:has(input:checked) { border-color: var(--qj-brand); background: var(--qj-brand-soft); }
.qj-repeat { border: 1px solid var(--qj-line); border-radius: var(--qj-radius-lg); padding: 16px; margin: 0 0 14px; background: #fbfbfc; }
.qj-repeat-title { font-size: 15px; font-weight: 700; padding: 0 6px; width: auto; float: none; margin: 0; }
.qj-remove { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.qj-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.qj-chip-btn { border: 1px dashed #aab0bb; background: #fff; color: var(--qj-ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; min-height: 36px; text-align: start; }
.qj-chip-btn:hover { border-color: var(--qj-brand); color: var(--qj-brand-dark); }
.qj-builder-nav { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--qj-line); margin-top: 24px; padding-top: 16px; }
.qj-builder-nav [data-nav="next"] { margin-inline-start: auto; }
.qj-score { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.qj-score-num { font-size: 34px; font-weight: 700; color: var(--qj-ink); width: 72px; height: 72px; border-radius: 50%; border: 5px solid var(--qj-brand); display: inline-flex; align-items: center; justify-content: center; }
.qj-check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.qj-check-list li { padding: 10px 12px; border-radius: 8px; font-size: 14.5px; }
.qj-check-list li.is-fix { background: var(--qj-brand-soft); }
.qj-check-list li.is-improve { background: var(--qj-warn-soft); }
.qj-check-list li.is-tip { background: #eef4ff; }
.qj-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.qj-template { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1.5px solid #c4c9d3; border-radius: var(--qj-radius-lg); background: #fff; cursor: pointer; position: relative; }
.qj-template:has(input:checked) { border-color: var(--qj-brand); box-shadow: 0 0 0 3px var(--qj-brand-soft); }
.qj-template:has(input:focus-visible) { box-shadow: var(--qj-focus); }
.qj-template-name { font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qj-template-desc { font-size: 13px; color: var(--qj-muted); line-height: 1.4; }
.qj-tier { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.qj-tier-free { background: var(--qj-success-soft); color: var(--qj-success); }
.qj-tier-premium { background: #fff4e0; color: #8a5300; }
.qj-template-thumb { display: block; height: 260px; border: 1px solid var(--qj-line); border-radius: 6px; background: #fff; position: relative; overflow: hidden; --s: .26; }
.qj-template-thumb iframe { width: 794px; height: 1123px; border: 0; transform: scale(var(--s)); transform-origin: top left; pointer-events: none; background: #fff; }
.qj-template-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); }
.qj-template-pick { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.qj-template-pick input { position: static; width: 18px; height: 18px; accent-color: var(--qj-brand); }
.qj-template-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.qj-extra-disciplines { border: 1px solid var(--qj-line); border-radius: var(--qj-radius); padding: 12px 14px; background: var(--qj-bg); }
.qj-extra-disciplines summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qj-extra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 16px; border: 0; padding: 0; margin: 0; }
.qj-premium-options { border: 1.5px dashed #e0b56a; border-radius: var(--qj-radius-lg); padding: 12px 14px; background: #fffaf0; }
.qj-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.qj-swatch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1.5px solid #c4c9d3; border-radius: 999px; background: #fff; cursor: pointer; font-size: 13.5px; min-height: 40px; }
.qj-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qj-swatch:has(input:checked) { border-color: var(--qj-ink); box-shadow: 0 0 0 2px var(--qj-ink) inset; }
.qj-swatch:has(input:focus-visible) { box-shadow: var(--qj-focus); }
.qj-swatch-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.qj-group-title { font-size: 15px !important; text-transform: uppercase; letter-spacing: .05em; color: var(--qj-muted) !important; margin: 18px 0 10px; }
.qj-btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.qj-swatch.is-suggested { border-style: dashed; border-color: var(--qj-brand); }
/* Sample dialog: large on desktop, full screen on phones, one scroll area. */
.qj-dialog { width: min(1040px, 94vw); height: 92vh; max-height: none; padding: 0; border: 0; border-radius: var(--qj-radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; }
.qj-dialog[open] { display: flex; flex-direction: column; }
.qj-dialog::backdrop { background: rgba(28, 34, 48, .6); }
.qj-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--qj-line); flex-wrap: wrap; background: #fff; }
.qj-dialog-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 24px 0; }
.qj-dialog-body .qj-paper-view { flex: 1; min-height: 0; }
@media (max-width: 575.98px) {
  .qj-dialog { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
  .qj-dialog-head { position: sticky; top: 0; z-index: 2; padding: 10px 16px; }
  .qj-dialog-body { padding: 10px 16px 0; }
}
.qj-link-btn { background: none; border: 0; padding: 0; color: var(--qj-brand-dark); text-decoration: underline; font: inherit; cursor: pointer; }

/* Paper viewer: real PDF pages as white A4 sheets on a grey desk. */
.qj-paper { display: flex; flex-direction: column; border: 1px solid var(--qj-line); border-radius: var(--qj-radius); overflow: hidden; background: #e4e7ec; }
.qj-preview-wrap .qj-paper { height: 720px; }
.qj-example-view { min-height: 200px; }
.qj-experts { border-inline-start: 4px solid var(--qj-brand); }
/* Homepage: trust strip under the hero, and the worldwide region chips */
.qj-trust { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.qj-trust li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--qj-radius); padding: 12px 14px; }
.qj-trust strong { display: block; color: #fff; font-size: 15.5px; }
.qj-trust span { display: block; color: #d5d9e1; font-size: 13.5px; margin-top: 2px; }
.qj-regions { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.qj-regions li { background: #fff; border: 1px solid var(--qj-line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }
/* Legal pages and the footer legal links */
.qj-legal { max-width: 860px; }
.qj-legal h2 { font-size: 19px; margin: 22px 0 8px; }
.qj-legal h2:first-child { margin-top: 0; }
.qj-legal-summary { background: var(--qj-bg); border-inline-start: 4px solid var(--qj-brand); border-radius: var(--qj-radius); padding: 14px 16px; margin-bottom: 8px; }
.qj-legal-summary h2 { font-size: 17px; }
.qj-legal-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 15px; display: block; overflow-x: auto; }
.qj-legal-table th, .qj-legal-table td { border: 1px solid var(--qj-line); padding: 8px 10px; text-align: start; vertical-align: top; }
.qj-legal-table th { background: var(--qj-bg); font-size: 14px; }
.qj-footer-legal { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }
.qj-terms-check { background: #fff; border: 1.5px solid var(--qj-ink); border-radius: var(--qj-radius); padding: 10px 12px; }
/* "How inspectors get shortlisted" article */
.qj-shortlist { padding-inline-start: 1.4em; margin: 0; }
.qj-shortlist > li { padding: 10px 0 14px; border-bottom: 1px solid var(--qj-line); }
.qj-shortlist > li:last-child { border-bottom: 0; }
.qj-shortlist h3 { font-size: 17px; margin: 0 0 4px; }
.qj-shortlist-how { background: var(--qj-bg); border-inline-start: 3px solid var(--qj-brand); padding: 6px 10px; border-radius: 4px; font-size: 15px; }
.qj-checklist { list-style: none; padding: 0; margin: 0; columns: 2 260px; }
.qj-checklist li { break-inside: avoid; padding: 4px 0 4px 28px; position: relative; }
.qj-checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 17px; height: 17px; border: 2px solid var(--qj-ink); border-radius: 4px; }
.qj-recruiter-checks { counter-reset: rc; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.qj-recruiter-checks li { counter-increment: rc; background: #fff; border: 1px solid var(--qj-line); border-radius: var(--qj-radius); padding: 12px 14px; font-weight: 600; }
.qj-recruiter-checks li::before { content: counter(rc); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-end: 8px; border-radius: 50%; background: var(--qj-brand); color: #fff; font-size: 14px; }
.qj-example-view.qj-paper { height: 640px; }
@media (max-width: 575.98px) { .qj-example-view.qj-paper { height: 520px; } }
@media (max-width: 575.98px) { .qj-preview-wrap .qj-paper { height: 560px; } }
.qj-paper-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--qj-line); }
.qj-paper-count { font-size: 14px; color: var(--qj-muted); }
.qj-paper-zoom { display: flex; gap: 6px; }
.qj-paper-zoom .qj-btn[aria-pressed="true"], .qj-paper-zoom .qj-btn[aria-pressed="true"]:hover { background: var(--qj-ink); color: #fff !important; border-color: var(--qj-ink); }
.qj-paper-desk { flex: 1; min-height: 0; overflow: auto; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; touch-action: pan-x pan-y pinch-zoom; }
.qj-paper-desk.is-zoomed { align-items: flex-start; }
@media (max-width: 575.98px) { .qj-paper-desk { padding: 16px; } }
.qj-sheet { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qj-sheet canvas { display: block; background: #fff; box-shadow: 0 2px 10px rgba(20, 30, 50, .18); }
.qj-sheet figcaption { font-size: 12.5px; color: #4f5869; }
.qj-paper.is-loading .qj-paper-desk { opacity: .55; }
.qj-paper.is-loading .qj-paper-desk:empty::before { content: "Preparing preview…"; color: #4f5869; margin: auto; }
.qj-paper-error { margin: auto; color: #4f5869; text-align: center; }

.qj-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .qj *, .qj *::before, .qj *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Sign-in and registration pages */
.qj-auth { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; padding: 32px 0 56px; }
@media (max-width: 860px) { .qj-auth { grid-template-columns: 1fr; } }

/* Legacy pages (profile, old apply form) inside the new layout: make Bootstrap controls match the site */
.qj-legacy-form { padding: 24px 20px 56px; }
.qj-legacy-form .card { border: 1px solid var(--qj-line); border-radius: var(--qj-radius-lg); box-shadow: var(--qj-shadow); background: #fff; }
.qj-legacy-form .card-body { padding: 20px; }
.qj-legacy-form .form-label { font-size: 14px; font-weight: 600; color: var(--qj-ink); margin-bottom: 6px; }
.qj-legacy-form .form-control, .qj-legacy-form .form-select {
  min-height: 46px; padding: 10px 12px; font-size: 15px; color: var(--qj-ink);
  border: 1.5px solid #c4c9d3; border-radius: var(--qj-radius); background: #fff;
}
.qj-legacy-form .form-control:focus, .qj-legacy-form .form-select:focus {
  border-color: #1c5fd6; box-shadow: 0 0 0 3px rgba(28,95,214,.18);
}
.qj-legacy-form .btn { min-height: 44px; padding: 10px 20px; border-radius: var(--qj-radius); font-weight: 600; font-size: 15px; }
.qj-legacy-form .btn-primary { background: var(--qj-brand); border-color: var(--qj-brand); }
.qj-legacy-form .btn-primary:hover { background: var(--qj-brand-dark); border-color: var(--qj-brand-dark); }
.qj-legacy-form .btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.qj-legacy-form h2, .qj-legacy-form h3 { font-size: 19px; }
.qj-legacy-form .btn-primary, .qj-legacy-form .btn-danger, .qj-legacy-form .btn-success,
.qj-legacy-form .btn-info, .qj-legacy-form .btn-secondary, .qj-legacy-form .btn-dark { color: #fff !important; }
.qj-legacy-form .btn-danger { background: var(--qj-brand-dark); border-color: var(--qj-brand-dark); }
.qj-legacy-form .btn-success { background: var(--qj-success); border-color: var(--qj-success); }
.qj-legacy-form .btn-info { background: #1c5fd6; border-color: #1c5fd6; }
.qj-legacy-form .text-primary, .qj-legacy-form h4 { color: var(--qj-ink) !important; }
.qj-legacy-form .alert-danger { background: var(--qj-brand-soft); border: 1px solid #f3c2c4; color: var(--qj-brand-dark); border-radius: var(--qj-radius); }
.qj-legacy-form .alert-success { background: var(--qj-success-soft); border: 1px solid #bfe3d0; color: var(--qj-success); border-radius: var(--qj-radius); }

/* Discipline cards: one line-drawn brand icon per discipline */
.qj-discipline-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: inline-grid; place-items: center;
  background: var(--qj-brand-soft); color: var(--qj-brand-dark);
}
.qj-discipline-icon svg { width: 24px; height: 24px; }
.qj-discipline:hover .qj-discipline-icon { background: var(--qj-brand); color: #fff; }

/* Employer dashboard: list of their vacancies */
.qj-vacancies { display: grid; gap: 16px; padding-top: 24px; }
.qj-vacancies .qj-facts { margin: 8px 0 0; }

/* Destructive actions: deleting an account. Red enough to give pause, still readable (AA). */
.qj-btn-danger { background: #b3261e; color: #fff; border: 1px solid #b3261e; }
.qj-btn-danger:hover, .qj-btn-danger:focus { background: #8f1d17; border-color: #8f1d17; color: #fff; }
.qj-danger-zone { border: 1px solid #f0c4c1; background: #fdf6f5; border-radius: 12px; padding: 20px; margin: 32px 0; }
.qj-danger-zone h2 { font-size: 18px; margin: 0 0 6px; }
.qj-danger-zone p { margin: 0 0 12px; }

/* ---- Candidate card: the same summary wherever a person appears ---- */
.qj-candidate { border: 1px solid #e3e7ee; border-radius: 12px; padding: 18px; background: #fff; }
.qj-candidate + .qj-candidate { margin-top: 14px; }
.qj-candidate-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.qj-candidate-photo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
    background: #eef1f6; color: #4a5468; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.qj-candidate-photo img { width: 100%; height: 100%; object-fit: cover; }
.qj-candidate-id { flex: 1 1 200px; min-width: 0; }
.qj-candidate-id h3 { font-size: 17px; margin: 0 0 2px; }
.qj-candidate-id h3 a { text-decoration: none; }
.qj-candidate-id h3 a:hover { text-decoration: underline; }
.qj-candidate .qj-facts { margin-top: 12px; }
.qj-candidate h4.qj-label { margin: 14px 0 6px; }
.qj-candidate-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef1f6; }
.qj-candidate-compact { padding: 14px; }
.qj-chip-good { background: #e7f5ec; color: #11633a; border-color: #bfe3cd; }
.qj-chip-warn { background: #fdf2e3; color: #7a4a06; border-color: #f2d9ad; }

/* ---- Staff area: same look as the public site, different menu ---- */
.qj-staff .qj-header { border-bottom: 3px solid #e8453c; }
.qj-staff-who { display: flex; flex-direction: column; line-height: 1.2; margin-inline-end: 6px; }
.qj-staff-who small { color: #5b6476; font-size: 12px; }
.qj-footer-slim { padding: 18px 0; }
.qj-footer-slim .qj-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.qj-roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.qj-role-mine { border: 2px solid #11633a; }
.qj-mine { border-inline-start: 4px solid #e8453c; }
.qj-checklist { list-style: none; padding: 0; margin: 0; }
.qj-checklist li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; }
.qj-checklist li span[aria-hidden] { flex: 0 0 16px; font-weight: 700; }
.qj-checklist li.is-yes span[aria-hidden] { color: #11633a; }
.qj-checklist li.is-no span[aria-hidden] { color: #b3261e; }
.qj-checklist li.is-no { color: #4a5468; }

/* ---- Staff dashboard: the numbers that start the day ---- */
.qj-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.qj-stat { border: 1px solid #e3e7ee; border-radius: 12px; padding: 16px; background: #fff; }
.qj-stat strong { display: block; font-size: 28px; line-height: 1.1; }
.qj-stat span { color: #4a5468; font-size: 14px; }
.qj-stat.is-action { border-color: #f2c7c4; background: #fdf6f5; }
.qj-stat.is-action strong { color: #b3261e; }

/* ---- Simple staff tables and lists ---- */
.qj-table { width: 100%; border-collapse: collapse; }
.qj-table th, .qj-table td { text-align: start; padding: 10px 8px; border-bottom: 1px solid #eef1f6; vertical-align: top; }
.qj-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #4a5468; }
.qj-table tbody tr:hover { background: #f7f9fc; }
.qj-plain-list { list-style: none; padding: 0; margin: 0; }
.qj-plain-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center;
    padding: 8px 0; border-bottom: 1px solid #eef1f6; }
.qj-plain-list li:last-child { border-bottom: 0; }

/* ---- One-time code entry: big, spaced digits that are easy to read back ---- */
.qj-code-input { font-size: 28px; letter-spacing: .4em; text-align: center; font-weight: 700;
    max-width: 260px; padding: 12px 10px; font-variant-numeric: tabular-nums; }

/* ---- Picking things for a coordinator ---- */
.qj-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.qj-pick-tall { max-height: 360px; overflow-y: auto; padding: 8px; border: 1px solid #e3e7ee; border-radius: 10px; }
.qj-candidate-picklist { display: grid; gap: 10px; max-height: 560px; overflow-y: auto; padding: 4px; }
.qj-candidate-pick { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.qj-candidate-pick > input { margin-top: 20px; flex: 0 0 auto; width: 20px; height: 20px; }
.qj-candidate-pick > article { flex: 1 1 auto; }
.qj-candidate-pick:has(input:checked) > article { border-color: #11633a; background: #f6fbf8; }

/* A stat that is also a link to the screen that deals with it. */
a.qj-stat { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.qj-stat:hover, a.qj-stat:focus-visible { border-color: #b9c3d4; transform: translateY(-1px); }
a.qj-stat.is-action:hover, a.qj-stat.is-action:focus-visible { border-color: #b3261e; }
.qj-section-head { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: #4a5468; margin: 4px 0 12px; }

/* ---- Candidate search ---- */
.qj-filters { position: sticky; top: 0; z-index: 5; }
.qj-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 14px; margin-top: 10px; }
.qj-filter-grid .qj-field { margin-bottom: 6px; }
.qj-inline-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 6px 0 2px; margin: 0; }
.qj-assign-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; padding: 12px 16px; margin-top: 14px;
    box-shadow: 0 -4px 14px rgba(16,24,40,.06); }
.qj-assign-bar label { margin: 0; font-weight: 600; }
@media (max-width: 640px) { .qj-filters { position: static; } }

/* =====================================================================================
   Messenger: one chat design for the team inbox and for candidates, employers, coordinators
   ===================================================================================== */
.qj-msgr { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 210px); min-height: 520px;
    background: var(--qj-surface); border: 1px solid var(--qj-line); border-radius: 14px; overflow: hidden; }
.qj-msgr-solo { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; height: calc(100vh - 260px); }

/* The list of conversations */
.qj-msgr-side { display: flex; flex-direction: column; border-inline-end: 1px solid var(--qj-line); min-height: 0; }
.qj-msgr-side-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--qj-line); }
.qj-msgr-side-head h2 { font-size: 18px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.qj-msgr-search { width: 100%; border: 1px solid var(--qj-line); border-radius: 999px; padding: 8px 14px; font-size: 14px; background: var(--qj-bg); }
.qj-msgr-pills { display: flex; gap: 6px; margin-top: 10px; }
.qj-msgr-pill { border: 1px solid var(--qj-line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--qj-ink); text-decoration: none; }
.qj-msgr-pill[aria-current="true"] { background: var(--qj-ink); border-color: var(--qj-ink); color: #fff; }
.qj-msgr-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.qj-msgr-item { display: flex; gap: 10px; padding: 11px 14px; text-decoration: none; color: var(--qj-ink); border-bottom: 1px solid #f0f2f5; }
.qj-msgr-item:hover, .qj-msgr-item:focus-visible { background: var(--qj-bg); }
.qj-msgr-item[aria-current="true"] { background: var(--qj-brand-soft); }
.qj-msgr-avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; }
.qj-msgr-avatar.is-user { background: #2f5d8a; } .qj-msgr-avatar.is-customer { background: #146c43; } .qj-msgr-avatar.is-coordinator { background: #7a4a06; }
.qj-msgr-item-main { min-width: 0; flex: 1; }
.qj-msgr-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.qj-msgr-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qj-msgr-when { font-size: 12px; color: var(--qj-muted); white-space: nowrap; }
.qj-msgr-preview { font-size: 13.5px; color: var(--qj-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.qj-msgr-item.is-unread .qj-msgr-name, .qj-msgr-item.is-unread .qj-msgr-preview { color: var(--qj-ink); font-weight: 700; }
.qj-msgr-badge { background: var(--qj-brand); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; }
.qj-msgr-role { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--qj-muted); }
.qj-msgr-empty { padding: 28px 18px; color: var(--qj-muted); text-align: center; }

/* The conversation */
.qj-msgr-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.qj-msgr-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--qj-line); }
.qj-msgr-head h2 { font-size: 17px; margin: 0; }
.qj-msgr-head small { color: var(--qj-muted); display: block; }
.qj-msgr-back { display: none; }
.qj-msgr-stream { flex: 1; overflow-y: auto; padding: 18px; background: var(--qj-bg); position: relative; scroll-behavior: smooth; }
.qj-msgr-day { text-align: center; font-size: 12px; color: var(--qj-muted); margin: 14px 0 10px; }
.qj-msgr-row { display: flex; margin-top: 2px; }
.qj-msgr-row.is-mine { justify-content: flex-end; }
.qj-msgr-row.is-first { margin-top: 10px; }
.qj-msgr-bubble { max-width: min(78%, 560px); padding: 8px 13px; border-radius: 18px; line-height: 1.4; font-size: 15px;
    white-space: pre-wrap; overflow-wrap: anywhere; background: #e9ecf1; color: var(--qj-ink); }
.qj-msgr-row.is-mine .qj-msgr-bubble { background: var(--qj-brand); color: #fff; }
.qj-msgr-row.is-mine .qj-msgr-bubble a { color: #fff; }
.qj-msgr-bubble a { text-decoration: underline; }
.qj-msgr-row.is-pending .qj-msgr-bubble { opacity: .65; }
.qj-msgr-row.is-failed .qj-msgr-bubble { background: #fff; color: #a10f15; border: 1px dashed #a10f15; cursor: pointer; }
.qj-msgr-meta { font-size: 11.5px; color: var(--qj-muted); margin: 3px 4px 0; text-align: end; }
.qj-msgr-meta.is-theirs { text-align: start; }
.qj-msgr-new { position: sticky; bottom: 6px; display: none; margin: 0 auto; background: var(--qj-ink); color: #fff; border: 0;
    border-radius: 999px; padding: 6px 16px; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.qj-msgr-new.is-visible { display: block; }
.qj-msgr-offline { display: none; background: var(--qj-warn-soft); color: var(--qj-warn); font-size: 13px; padding: 6px 18px; text-align: center; }
.qj-msgr-offline.is-visible { display: block; }
.qj-msgr-blank { margin: auto; text-align: center; color: var(--qj-muted); padding: 40px 20px; }

/* Writing */
.qj-msgr-compose { border-top: 1px solid var(--qj-line); padding: 10px 14px 12px; background: var(--qj-surface); }
.qj-msgr-quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.qj-msgr-quick button { flex: 0 0 auto; border: 1px solid var(--qj-line); background: var(--qj-bg); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--qj-ink); cursor: pointer; white-space: nowrap; }
.qj-msgr-quick button:hover, .qj-msgr-quick button:focus-visible { background: var(--qj-brand-soft); border-color: var(--qj-brand); }
.qj-msgr-quick button.is-assist { border-color: var(--qj-ink); font-weight: 600; }
.qj-msgr-box { display: flex; gap: 8px; align-items: flex-end; }
.qj-msgr-input { flex: 1; resize: none; border: 1px solid var(--qj-line); border-radius: 20px; padding: 9px 15px; font-size: 15px; line-height: 1.35;
    max-height: 160px; min-height: 42px; background: var(--qj-bg); }
.qj-msgr-input:focus { outline: 2px solid var(--qj-ink); outline-offset: 1px; background: #fff; }
.qj-msgr-send { flex: 0 0 auto; height: 42px; padding: 0 20px; border-radius: 999px; }
.qj-msgr-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--qj-muted); margin-top: 6px; }
.qj-msgr-assist-note { background: var(--qj-warn-soft); color: var(--qj-warn); border-radius: 10px; padding: 6px 12px; font-size: 13px; margin-bottom: 8px; }

/* The staff-menu / site-menu unread dot */
.qj-nav-badge { background: var(--qj-brand); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px;
    padding: 0 5px; display: inline-grid; place-items: center; margin-inline-start: 4px; vertical-align: middle; }
.qj-nav-badge[hidden] { display: none; }

@media (max-width: 860px) {
    .qj-msgr { grid-template-columns: 1fr; height: calc(100vh - 150px); }
    .qj-msgr.has-open .qj-msgr-side { display: none; }
    .qj-msgr:not(.has-open) .qj-msgr-main { display: none; }
    .qj-msgr-back { display: inline-flex; }
    .qj-msgr-bubble { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) { .qj-msgr-stream { scroll-behavior: auto; } }

/* The right-hand pane wraps the header, stream and composer, and is what hides on a phone. */
.qj-msgr-main-wrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.qj-msgr-main-wrap > .qj-msgr-main { flex: 1; }
@media (max-width: 860px) {
    .qj-msgr:not(.has-open) .qj-msgr-main-wrap { display: none; }
}

/* A long one-line preview must shrink to fit, not widen the whole screen. */
.qj-msgr > * { min-width: 0; }
.qj-msgr-preview > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qj-msgr-role, .qj-msgr-badge { flex: 0 0 auto; }

/* The site's link colour must not repaint names in the chat list: bold ink means unread, red is for the badge. */
.qj-msgr a.qj-msgr-item { color: var(--qj-ink); }
.qj-msgr a.qj-msgr-item .qj-msgr-preview, .qj-msgr a.qj-msgr-item .qj-msgr-when { color: var(--qj-muted); }
.qj-msgr a.qj-msgr-item.is-unread .qj-msgr-preview { color: var(--qj-ink); }

/* The header line under a name must truncate, not push the layout wider. */
.qj-msgr-head > div { min-width: 0; flex: 1; }
.qj-msgr-head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qj-msgr-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* On a phone an open chat is the whole screen: the box to type in must be on screen without scrolling. */
@media (max-width: 860px) {
    body:has(.qj-msgr.has-open) .qj-page-head, body:has(.qj-msgr.has-open) .qj-footer { display: none; }
    body:has(.qj-msgr.has-open) .qj-container > .qj-hint { display: none; }
    .qj-msgr.has-open { height: calc(100dvh - 96px); min-height: 360px; border-radius: 0; border-left: 0; border-right: 0; margin: 0 -16px; }
}

/* Admin candidates: search bar first, filters in an expandable panel, candidates right underneath */
.qj-finder { margin: 22px 0 14px; }
.qj-searchbar { position: relative; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--qj-line);
  border-radius: var(--qj-radius-lg); padding: 10px; box-shadow: var(--qj-shadow); }
.qj-searchbar-icon { position: absolute; inset-inline-start: 24px; color: var(--qj-muted); pointer-events: none; }
.qj-searchbar-input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 10px 14px 10px 46px; font-size: 16px; color: var(--qj-ink);
  border: 1.5px solid #c4c9d3; border-radius: var(--qj-radius); background: #fff; }
.qj-searchbar-input:focus { outline: none; border-color: #1c5fd6; box-shadow: 0 0 0 3px rgba(28,95,214,.18); }
.qj-filterbox { margin-top: 10px; background: #fff; border: 1px solid var(--qj-line); border-radius: var(--qj-radius-lg); padding: 0 16px; }
.qj-filterbox > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0; cursor: pointer; font-weight: 700; list-style: none; }
.qj-filterbox > summary::-webkit-details-marker { display: none; }
.qj-filterbox > summary::before { content: "\25B8"; color: var(--qj-brand); font-size: 14px; transition: transform .15s; }
.qj-filterbox[open] > summary::before { transform: rotate(90deg); }
.qj-filterbox[open] { padding-bottom: 16px; }
.qj-filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; padding-top: 4px; }
.qj-filter-fields .qj-field { margin: 0; }
.qj-note { margin: 0 0 16px; font-size: 14px; color: var(--qj-muted); }
.qj-note > summary { cursor: pointer; font-weight: 600; }
.qj-note .qj-inline-stats { margin: 8px 0 4px; }
@media (max-width: 575.98px) { .qj-searchbar { flex-wrap: wrap; } .qj-searchbar .qj-btn { width: 100%; } .qj-searchbar-icon { top: 26px; } }

/* A section that holds just one coloured band: a normal gap to its neighbours, not two full sections of padding */
.qj-section-band { padding: 0 0 28px; }
.qj-section-white + .qj-section-band { padding-top: 40px; }

/* Header: calm and short. One profile button holds the account links. */
.qj-nav > li > a, .qj-nav > li > button, .qj-header-actions .qj-btn { white-space: nowrap; }
.qj-header-actions .qj-btn { padding-inline: 16px; }
.qj-profile-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--qj-line); border-radius: 999px; padding: 4px 12px 4px 4px; color: var(--qj-ink); font: inherit; font-weight: 600; cursor: pointer; position: relative; }
.qj-profile-btn:hover, .qj-profile-btn[aria-expanded="true"] { border-color: var(--qj-ink); }
.qj-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--qj-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.qj-profile-btn .qj-nav-badge { position: absolute; top: -6px; inset-inline-end: -4px; }
.qj-profile-menu { min-width: 240px; padding: 8px; border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.14); border: 1px solid var(--qj-line); }
.qj-profile-head { padding: 8px 12px; display: flex; flex-direction: column; }
.qj-profile-head small { color: var(--qj-muted, #667085); word-break: break-all; }
.qj-profile-menu .dropdown-item { border-radius: 8px; padding: 9px 12px; }
.qj-profile-menu form .dropdown-item { width: 100%; text-align: start; background: none; border: 0; }
@media (max-width: 991px) { .qj-profile-name { display: inline; } .qj-profile-btn { width: 100%; } }
/* Languages: mirrored layouts, scripts that need room, the language menu and the first-visit banner */
html[lang="hi"] body, html[lang="bn"] body { line-height: 1.75; }
html[lang="ar"] body, html[lang="ur"] body { line-height: 1.8; }
html[lang="ur"] body { line-height: 2.1; }
html[dir="rtl"] * { letter-spacing: 0 !important; }
html[dir="rtl"] .qj-flip { transform: scaleX(-1); }
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="url"], html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="number"] { direction: ltr; text-align: end; }
.qj-nav > li > a, .qj-nav > li > button { white-space: nowrap; }
.qj-lang-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--qj-line); border-radius: 999px; padding: 8px 12px; color: var(--qj-ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.qj-lang-btn:hover, .qj-lang-btn[aria-expanded="true"] { border-color: var(--qj-ink); }
.qj-lang-menu { min-width: 170px; padding: 6px; border-radius: 12px; border: 1px solid var(--qj-line); box-shadow: 0 12px 32px rgba(15,23,42,.14); }
.qj-lang-menu .dropdown-item { border-radius: 8px; padding: 9px 12px; font-size: 16px; }
.qj-lang-menu .dropdown-item[aria-current="true"] { font-weight: 700; color: var(--qj-brand-dark); }
.qj-lang-banner { background: #fff7ed; border-bottom: 1px solid #fed7aa; }
.qj-lang-banner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 10px; }
.qj-lang-banner p { margin: 0; font-weight: 600; }
.qj-lang-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.qj-lang-banner-actions .qj-btn { padding: 8px 16px; }
/* Phones: only the globe, beside Menu. Desktop: the full button inside the header, no globe beside Menu. */
.qj-lang--compact { display: none; }
.qj-lang--compact .qj-lang-btn { padding: 8px 10px; }
@media (max-width: 991.98px) {
  .qj-lang--compact { display: block; }
  .qj-lang--full { display: none; }
  .qj-cv-mobile ~ .qj-lang--compact { margin-inline-start: 0; }
  .qj-lang--compact + .qj-menu-toggle { margin-inline-start: 0; }
}

.qj-english-note { font-size: 13px; color: var(--qj-muted); margin: 0 0 10px; }

@media (max-width: 430px) { .qj-cv-mobile .qj-badge-free { display: none; } .qj-cv-mobile { padding-inline: 10px; } .qj-header-inner { gap: 8px; } }

/* Compact admin workspace; public and coordinator layouts keep their own spacing. */
.qj-admin { --qj-sidebar-width: 224px; }
.qj-admin-bar { display:flex; align-items:center; gap:12px; min-height:64px; padding:8px 20px; }
.qj-admin-brand { display:flex; align-items:center; gap:10px; color:var(--qj-ink) !important; font-weight:700; text-decoration:none; }
.qj-admin-brand img { width:32px; height:32px; object-fit:contain; }
.qj-admin-tools { display:flex; align-items:center; gap:8px; margin-inline-start:auto; min-width:0; }
.qj-admin .qj-btn-sm { min-height:36px; padding:7px 10px; font-size:13px; gap:6px; }
.qj-admin-account span { max-width:130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.qj-admin-sidebar { position:fixed; inset-inline-start:0; top:64px; bottom:0; width:var(--qj-sidebar-width); overflow-y:auto; background:#fff; border-inline-end:1px solid var(--qj-line); padding:16px 10px; z-index:1025; }
.qj-admin-sidebar a { display:block; text-decoration:none; color:var(--qj-ink); font-size:13px; padding:8px 12px; border-radius:6px; }
.qj-admin-sidebar a:hover { background:var(--qj-bg); }
.qj-admin-sidebar a[aria-current="page"] { background:var(--qj-brand-soft); color:var(--qj-brand-dark); font-weight:600; }
.qj-sidebar-home { font-weight:700; margin-bottom:8px; }
.qj-sidebar-group { border-top:1px solid var(--qj-line); padding:5px 0; }
.qj-sidebar-group summary { padding:9px 10px; font-size:13px; font-weight:600; cursor:pointer; }
.qj-sidebar-group a { margin-inline-start:10px; }
.qj-admin #main, .qj-admin > .qj-footer { margin-inline-start:var(--qj-sidebar-width); }
.qj-admin.qj-sidebar-closed #main, .qj-admin.qj-sidebar-closed > .qj-footer { margin-inline-start:0; }
.qj-sidebar-closed .qj-admin-sidebar { display:none; }
.qj-admin-shade { display:none; }
.qj-admin .qj-container { max-width:1440px; padding-inline:24px; }
.qj-admin .qj-page-head { padding:20px 0 14px; }
.qj-admin .qj-page-head h1 { font-size:24px; margin-bottom:5px; }
.qj-admin .qj-page-head p { font-size:13px; margin-bottom:0; }
.qj-admin .qj-panel { padding:16px; margin-bottom:16px; }
.qj-admin .qj-table { font-size:13px; margin-bottom:0; }
.qj-admin .qj-table th, .qj-admin .qj-table td { padding:10px 12px; }
.qj-admin .qj-table td { overflow-wrap:anywhere; }
.qj-admin .qj-stat-grid { grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:10px; }
.qj-admin .qj-stat { padding:12px 14px; }
.qj-admin .qj-stat strong { font-size:23px; }
.qj-admin .qj-stat span { font-size:12px; }
.qj-admin .qj-section-head { font-size:17px; margin-bottom:10px; }
.qj-request-menu { width:300px; max-width:calc(100vw - 24px); }
.qj-monitor-heading { font-size:13px; font-weight:600; padding:9px 12px; }
.qj-monitor-heading small { display:block; color:var(--qj-muted); font-size:11px; font-weight:400; }
.qj-request-link { display:flex !important; justify-content:space-between; gap:12px; }
.qj-monitor-all { border-top:1px solid var(--qj-line); margin-top:6px; font-weight:600; }
.qj-monitor-status { display:block; padding:8px 12px; font-size:11px; color:var(--qj-muted); }
.qj-panel-toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.qj-panel-toolbar h2 { font-size:17px; margin:0; }
.qj-panel-toolbar > .qj-btn { margin-inline-start:auto; }
.qj-queue-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.qj-queue-filters label:first-child { flex:1; min-width:190px; }
.qj-queue-scroll { max-height:360px; overflow:auto; }
.qj-queue-scroll .qj-table { min-width:600px; }
.qj-queue-scroll th { position:sticky; top:0; background:#fff; z-index:1; }
.qj-queue-scroll tr[hidden] { display:none; }
.qj-admin-fold > summary { cursor:pointer; font-size:15px; font-weight:600; }
.qj-admin-fold[open] > summary { margin-bottom:14px; }
.qj-admin-fold summary small { color:var(--qj-muted); font-weight:400; margin-inline-start:6px; }
.qj-admin-bottom { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.qj-admin-bottom .qj-panel { min-width:0; }
.qj-admin-overflow { overflow:auto; }
@media(max-width:991.98px) {
  .qj-admin #main, .qj-admin > .qj-footer { margin-inline-start:0; }
  .qj-admin-sidebar { display:none; }
  .qj-sidebar-open .qj-admin-sidebar { display:block; }
  .qj-sidebar-open .qj-admin-shade { display:block; position:fixed; inset:64px 0 0 var(--qj-sidebar-width); border:0; background:rgba(28,34,48,.3); z-index:1024; }
  .qj-admin .qj-container { padding-inline:16px; }
  .qj-admin-bar { gap:8px; padding-inline:12px; }
}
@media(max-width:600px) {
  .qj-admin-bar { flex-wrap:wrap; }
  .qj-admin-tools { width:100%; justify-content:space-between; margin:0; }
  .qj-admin-sidebar { top:104px; }
  .qj-sidebar-open .qj-admin-shade { top:104px; }
  .qj-admin-bottom { grid-template-columns:1fr; gap:0; }
  .qj-admin-tools .qj-btn-sm { padding-inline:8px; font-size:12px; }
  .qj-admin-account span { max-width:80px; }
}
.qj-admin-sidebar { top:var(--qj-admin-header-height,67px); }
.qj-sidebar-open .qj-admin-shade { top:var(--qj-admin-header-height,67px); }
@media(max-width:430px) {
  .qj-admin-tools { gap:4px; }
  .qj-admin-tools .qj-btn-sm { font-size:11px; padding-inline:6px; gap:3px; }
  .qj-admin-account span { max-width:40px; }
}
.qj-admin .qj-work-queue > .qj-hint { font-size:12px; }
@media(max-width:360px) {
  .qj-admin-tools .qj-btn-sm { padding-inline:4px; }
}
