/* Arabtec Recruitment Hub — minimal corporate theme.
   Single red brand accent (logo #d2232a) on a clean neutral system.
   Flat surfaces, hairline borders, restrained shadows, generous whitespace.
   Runtime branding can still override these via CSS variables (applyBranding). */
:root {
  /* Brand — used sparingly as an accent */
  --brand: #d2232a; --brand-dark: #a81b22; --brand-tint: #fdf2f3; --brand-tint-bd: #f6dadd;

  /* Surfaces & background — warm off-white page; cards stay pure white so they lift */
  --bg: #f6f3ec; --surface: #ffffff; --surface-2: #faf8f3;

  /* Ink scale */
  --ink: #16191e; --ink-soft: #4b535d; --muted: #8b939d;

  /* Hairlines */
  --line: #ebedf1; --line-strong: #dde1e6;

  /* Semantic status colors (text-weight) */
  --success: #1f7a44; --warning: #b7791f; --critical: #c0392b; --info: #2563a8;

  /* ============================================================
     APPROVED INTERNAL UI REFERENCE — design tokens
     Source: Arabtec_ATS_Internal_UI_Reference_Approved.html (:root)
     Branding Settings should write to THESE variables only, never to
     component rules. Legacy tokens above (--brand, --surface, --line,
     --ring, --card-radius) are intentionally preserved because the
     approved LOGIN page consumes them — login must not change.
     ============================================================ */
  --brand-primary:#005B96;        /* Arabtec navy */
  --brand-primary-dark:#00456f;
  --brand-primary-tint:#e8f1f8;
  --brand-secondary:#171B21;      /* dark slate — app chrome */
  --brand-accent:#D2232A;         /* Arabtec red — accent only */

  --action-primary:#1976D2;
  --action-primary-hover:#1565C0;
  --action-primary-tint:#e9f2fc;
  --action-success:#0F8A4D;
  --action-success-hover:#0c7040;
  --action-success-tint:#e7f6ee;

  --danger:#D2232A;
  --danger-hover:#b21d23;
  --danger-tint:#fdeced;
  --warning:#F59E0B;
  --warning-tint:#fef4e2;
  --warning-ink:#B7791F;
  --info:#00A3E0;
  --info-tint:#e6f7fd;
  --neutral-tint:#eef0f3;

  --app-bg:#F4F6F8;
  --card-bg:#FFFFFF;
  --border:#E6E9EE;
  --border-soft:#F0F2F5;
  --text:#3D4450;
  --text-strong:#171B21;

  /* Pipeline stage palette (Greenhouse-style board) */
  --stage-sourced:#9AA3AD;
  --stage-matched:#2160A6;
  --stage-shortlisted:#00A3E0;
  --stage-interviewing:#1976D2;
  --stage-waiting:#F59E0B;
  --stage-offer:#B7791F;
  --stage-joined:#1D6E3E;
  --stage-rejected:#C0392B;

  /* Internal-UI action accent (buttons, links, focus, active nav/tabs).
     Deliberately SEPARATE from --brand: red is reserved for errors, destructive
     actions and critical/rejected states. NOTE: --brand/--ticket-accent are
     overridden at runtime by Control Center branding; these --action tokens are
     not, so the internal palette stays stable. */
  --action: var(--action-primary); --action-dark: var(--action-primary-hover);
  --action-tint: var(--action-primary-tint); --action-tint-bd: #bcd9f5;
  --ring-action: 0 0 0 3px rgba(25,118,210,.16);
  /* Neutral slate for identity elements (avatars) that were previously red. */
  --slate: #4b5563; --slate-dark: #3b424d;

  /* Back-compat aliases (existing inline styles reference these) */
  --primary: #16191e;
  --secondary: var(--brand); --accent: var(--brand);
  --text-dark: var(--text-strong); --text-gray: var(--muted);
  /* --border is defined in the reference block above; do NOT re-alias it here. */
  --button: var(--brand);

  /* Ticket accent tokens */
  --ticket-accent: var(--brand); --ticket-accent-dark: var(--brand-dark);
  --ticket-chip-bg: var(--brand-tint); --ticket-chip-border: var(--brand-tint-bd);

  /* Status-chip soft tint tokens (bg / border / text per state) */
  --chip-amber-bg:#fdf6e9;  --chip-amber-bd:#f4e3bd;  --chip-amber-tx:#9a6a12;
  --chip-blue-bg:#eef4fb;   --chip-blue-bd:#d2e2f4;   --chip-blue-tx:#2160a6;
  --chip-brand-bg:#fdf2f3;  --chip-brand-bd:#f6dadd;  --chip-brand-tx:#b21d24;
  --chip-green-bg:#edf7f0;  --chip-green-bd:#cfe9d8;  --chip-green-tx:#1d6e3e;
  --chip-grey-bg:#f3f5f7;   --chip-grey-bd:#e3e7ec;   --chip-grey-tx:#5a636d;
  --chip-red-bg:#fdf1f1;    --chip-red-bd:#f3d6d6;    --chip-red-tx:#a93b34;
  --chip-violet-bg:#f5f2fb; --chip-violet-bd:#e4dbf3; --chip-violet-tx:#6a4ca6;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px; --card-radius: 11px; --pill-radius: 999px;
  --row-h: 44px; --sidebar-w: 232px;

  /* Shadows — softer, layered, more diffuse */
  --shadow-sm: 0 1px 2px rgba(18,22,28,.04);
  --shadow: 0 1px 2px rgba(18,22,28,.04), 0 1px 3px rgba(18,22,28,.05);
  --shadow-card: 0 1px 2px rgba(18,22,28,.04), 0 4px 12px rgba(18,22,28,.05);
  --shadow-pop: 0 12px 32px rgba(18,22,28,.12), 0 2px 8px rgba(18,22,28,.06);
  --ring: 0 0 0 3px rgba(210,35,42,.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--app-bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.boot-loading { padding: 40px; color: var(--muted); }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: var(--font); cursor: pointer; }
h1, h2, h3 { letter-spacing: -0.01em; }

/* ---------------- Login ---------------- */
/* The artwork (/bgats.png) spans the FULL page — both columns — and the white
   sign-in card is layered in front of it. The image's own dark tone is the bleed
   colour, so there is no off-white area behind the card. */
.login-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr;
  background-color: #1a1f2e;
  background-image: url('/bgats.png');
  background-size: cover;
  background-position: left top;
  background-repeat: no-repeat;
  position: relative;
}
.login-brand {
  background: transparent;                 /* artwork is owned by .login-wrap */
  color: #f1f5f9; padding: 64px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; border-right: none;
}
/* Very light bottom-only fade — just enough for text legibility over the artwork.
   Deliberately NOT a full dark overlay, so the image stays visible. */
.login-brand::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(26,31,46,0) 0%, rgba(26,31,46,0.55) 100%);
}
.login-brand > * { position: relative; z-index: 1; }
.login-brand h1 {
  font-size: 32px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.02em;
  position: relative; color: #fff; text-wrap: balance;
}
.login-brand p { font-size: 15px; color: rgba(241,245,249,0.82); max-width: 430px; line-height: 1.65; position: relative; }
/* Small platform label — subtle, avoids repeating the wordmark in the artwork. */
.login-brand-label {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase;
  color: rgba(241,245,249,0.92); background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 999px;
  padding: 6px 12px; margin-bottom: 20px; backdrop-filter: blur(2px);
}
.brand-logo-mark { width: 60px; height: auto; margin-bottom: 26px; position: relative; }
.brand-logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; position: relative; }
.brand-logo-row .brand-logo-mark { width: 46px; margin: 0; }
.brand-logo-row .brand-wordmark { font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.login-logo { /* legacy fallback box */
  width: 60px; height: 60px; border-radius: 12px; background: var(--brand-tint);
  display: grid; place-items: center; font-weight: 700; font-size: 22px; margin-bottom: 26px; color: var(--brand);
}
/* Transparent so the full-page artwork shows through behind the floating card. */
.login-form-side { display: grid; place-items: center; padding: 40px; background: transparent; position: relative; }
.login-card {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--card-radius);
  padding: 36px; position: relative; z-index: 1;
  /* Lifted off the dark artwork rather than sitting flat on a matching panel. */
  box-shadow: 0 18px 50px rgba(8, 12, 22, 0.45), 0 2px 8px rgba(8, 12, 22, 0.30);
}
.login-card h2 { margin: 0 0 4px; font-size: 20px; }
.login-card .sub { color: var(--muted); margin: 0 0 24px; font-size: 13px; }
/* Security / rate-limit note under the sign-in button. Neutral, informational. */
.login-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.5; color: var(--muted);
}
.login-note svg { flex: 0 0 auto; margin-top: 1px; opacity: .7; }
/* Login CTA stays Arabtec red (approved design). Scoped so the internal UI
   primary button remains the neutral --action blue. */
/* Green, like every other primary action in the product. Red stays on the
   brand artwork beside it, where it identifies Arabtec rather than inviting a
   click — a red submit button reads as a destructive one. */
.login-card .btn { background: var(--action); border-color: var(--action-dark); }
.login-card .btn:hover { background: var(--action-dark); border-color: var(--action-dark); }
.login-card .btn:focus-visible { box-shadow: var(--ring); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); font-size: 14px; outline: none; background: #fff; color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--action); box-shadow: var(--ring-action); }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 0 14px;
  font-size: 13.5px; font-weight: 600; line-height: 1;
  border-radius: var(--radius); border: 1px solid var(--action-dark);
  background: var(--action); color: #fff; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease, transform .04s ease;
}
.btn:hover { background: var(--action-dark); }
.btn:active { transform: translateY(.5px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring-action); }
/* One disabled value across the product. arabtec-design-system.css declares
   the canonical .45 and wins the cascade from here; this used to say .5 and
   `.pcard-actions .btn:disabled` used to say .55, so the resolved opacity
   depended on which sheet you happened to read. Aligned, not deleted: the
   value is now the same whichever rule wins. */
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; padding: 12px; }
.btn-secondary { background: var(--card-bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--neutral-tint); border-color: var(--muted); }
/* Positive/confirming actions (import, approve, accept, hire) — green. */
.btn-success { background: var(--action-success); color: #fff; border-color: var(--action-success); box-shadow: 0 1px 2px rgba(15,138,77,.25); }
.btn-success:hover { background: var(--action-success-hover); border-color: var(--action-success-hover); }
/* Navy variant for brand-weight secondary actions. */
.btn-navy { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.btn-navy:hover { background: var(--brand-primary-dark); border-color: var(--brand-primary-dark); }
/* DESTRUCTIVE ONLY — red is reserved for delete/reject/withdraw/close. */
.btn-danger { background: var(--card-bg); color: var(--danger); border: 1px solid #f3c4c6; }
.btn-danger:hover { background: var(--danger-tint); border-color: var(--danger); }
.btn-danger-solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger-solid:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn-outline-blue { background: var(--card-bg); color: var(--action-primary); border: 1px solid var(--action-tint-bd); }
.btn-outline-blue:hover { background: var(--action-primary-tint); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
/* 32px is the compact control height every later sheet resolves to
   (--cl-ctl-sm). This said 30px, so the answer depended on which sheet you
   read. Aligned, not deleted — same treatment as the disabled-opacity and
   card-padding stragglers. Font size deliberately untouched. */
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; }
.error-banner { background: #fdecec; color: var(--critical); border: 1px solid #f3c9c4; padding: 10px 12px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; }
.success-banner { background: #e9f5ee; color: var(--success); border: 1px solid #c2e2cd; padding: 10px 12px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; }

/* ---------------- App shell ---------------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
/* Sidebar — dark slate app chrome (approved reference §02). */
/* Dark slate sidebar (approved reference §02). */
.sidebar { background: var(--brand-secondary); color: #fff; display: flex; flex-direction: column; border-right: none; }
.sidebar.collapsed { --sidebar-w: 66px; }
.sidebar-head { padding: 14px 16px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.08); }
/* White plate behind the logo mark so the artwork stays legible on dark chrome. */
/* No white plate behind the mark — the transparent logo sits directly on the sidebar.
   Sizing/alignment intentionally unchanged. */
.side-mark { width: 34px; height: 34px; border-radius: 8px; background: transparent; display: grid; place-items: center; flex: 0 0 auto; }
.side-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.side-txt strong { font-size: 13.5px; color: #fff; font-weight: 700; }
.side-txt span { font-size: 10.5px; color: rgba(255,255,255,.55); }
.sidebar-logo { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; }
.sidebar-logo img, .brand-logo-mark { display: block; }
.sidebar-title { font-weight: 700; font-size: 14.5px; line-height: 1.15; letter-spacing: .01em; }
.nav { padding: 10px 8px; flex: 1; overflow-y: auto; }
.nav-section { font-size: 9px; text-transform: uppercase; letter-spacing: 1.1px; color: rgba(255,255,255,.32); font-weight: 700; padding: 15px 14px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: var(--radius);
  color: var(--ink-soft); font-size: 13.5px; margin: 1px 0; width: 100%; background: none; border: none; text-align: left;
  border-left: 2px solid transparent; transition: background .12s, color .12s;
}
.nav-item { color: rgba(255,255,255,.74); }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.10); color: #fff; font-weight: 600; border-left-color: var(--action-primary); }
.nav-icon { width: 18px; text-align: center; flex: 0 0 auto; opacity: .9; }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 56px; gap: 14px; padding: 0 22px;
  display: flex; align-items: center;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.tb-brand { display: flex; align-items: center; gap: 10px; padding-right: 14px; margin-right: 4px; border-right: 1px solid var(--border); }
.tb-brand .bn { display: flex; flex-direction: column; line-height: 1.2; }
.tb-brand .bn strong { font-size: 13px; color: var(--text-strong); font-weight: 700; }
.tb-brand .bn span { font-size: 10.5px; color: var(--muted); }
/* Global search trigger.
   OVERLAP FIX: the topbar is a flex row, and .gsearch had `flex: 1` with no
   `min-width: 0`. A flex item's default min-width is `auto`, so it refused to
   shrink below its content width and pushed into / under the brand and profile
   blocks at intermediate widths. `min-width: 0` lets it shrink; the brand and
   right-hand cluster are pinned with `flex-shrink: 0` so text truncates inside
   the search pill instead of colliding. */
.gsearch {
  flex: 1 1 auto; min-width: 0; max-width: 460px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--neutral-tint); color: var(--muted); font-size: 12.5px;
  text-align: left; font: inherit; font-size: 12.5px; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.gsearch:hover { border-color: var(--line-strong); background: var(--card-bg); }
.gsearch:focus-visible { outline: 2px solid var(--action-primary); outline-offset: 1px; }
.gsearch-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.topbar .tb-brand, .topbar .profile, .topbar .notif { flex-shrink: 0; }
.gsearch .kbd { flex-shrink: 0; }
.gsearch .kbd { margin-left: auto; font-size: 10px; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; background: var(--card-bg); }
.topbar .search { flex: 1; max-width: 420px; }
.topbar .search input { width: 100%; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); font-size: 13px; outline: none; }
.topbar .search input:focus { border-color: var(--action); box-shadow: 0 0 0 3px rgba(33,96,166,.10); }
.icon-btn { background: none; border: none; font-size: 18px; color: var(--muted); position: relative; padding: 6px; border-radius: 6px; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; background: var(--action); border-radius: 50%; }
/* Notification bell */
.notif { display: flex; align-items: center; }
.notif-dot { position: absolute; top: 0; right: 0; min-width: 15px; height: 15px; padding: 0 3px; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; color: #fff; background: var(--action); border-radius: 9px; box-sizing: border-box; }
.notif-panel { position: absolute; top: 40px; right: 0; width: 320px; max-width: 86vw; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.16); z-index: 60; overflow: hidden; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.notif-head strong { font-size: 13px; }
.linklike { background: none; border: none; color: var(--action); font-size: 12px; cursor: pointer; padding: 0; }
/* A CV filename opens the CV side panel (production fix 12 Oct 2026): it must
   look and behave like the control it is — pointer, underline, focus ring. */
.cv-file-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 600; color: var(--action); cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.cv-file-link:hover { color: var(--action-dark, var(--action)); }
.cv-file-link:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-empty { padding: 24px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.notif-item { padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: color-mix(in srgb, var(--action) 6%, transparent); }
.notif-item.unread .notif-title::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--action); border-radius: 50%; vertical-align: middle; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.notif-body { font-size: 12px; color: var(--muted); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 4px; }
.profile { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--slate); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; }
.profile-name { font-size: 13px; font-weight: 600; }
.profile-role { font-size: 11px; color: var(--muted); }
.menu { position: absolute; top: 46px; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius); box-shadow: var(--shadow-pop); min-width: 200px; z-index: 50; overflow: hidden; }
.menu-item { padding: 11px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.menu-item:hover { background: var(--surface-2); }
.content { padding: 26px 28px; flex: 1; overflow-y: auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.page-title { font-size: 21px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.page-sub { color: var(--muted); font-size: 13px; margin: 4px 0 0; max-width: 640px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* ---------------- Cards / tables ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); box-shadow: var(--shadow-card); }
/* One card padding across the product. arabtec-design-system.css declares the
   canonical 20px and claude-system.css restates it as --cl-6, so both win the
   cascade from here; this used to say `20px 22px`, the only asymmetric card
   padding in the system, which meant the resolved value depended on which
   sheet you happened to read. Aligned, not deleted. */
.card-pad { padding: 20px; }
.card-head { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.card-head h3 { margin: 0; font-size: 15px; }
.ticket-card { transition: box-shadow .14s, transform .14s, border-color .14s; }
.ticket-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-1px); border-color: var(--line-strong); }
.grid-kpi { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 18px 20px; box-shadow: var(--shadow-card); }
.kpi .label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.kpi .value { font-size: 27px; font-weight: 700; margin-top: 6px; color: var(--ink); }
.kpi .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-weight: 600; }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
.density-compact tbody td, .density-compact thead th { padding: 7px 12px; }
.density-spacious tbody td, .density-spacious thead th { padding: 18px 20px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill-radius); font-size: 11.5px; font-weight: 600; letter-spacing: .1px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); }
.badge-soft { background: var(--surface-2); }
.badge-success { background: var(--chip-green-bg); border-color: var(--chip-green-bd); color: var(--chip-green-tx); }
.badge-warning { background: var(--chip-amber-bg); border-color: var(--chip-amber-bd); color: var(--chip-amber-tx); }
.badge-critical { background: var(--chip-red-bg); border-color: var(--chip-red-bd); color: var(--chip-red-tx); }
.badge-info { background: var(--chip-blue-bg); border-color: var(--chip-blue-bd); color: var(--chip-blue-tx); }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--pill-radius); font-size: 11.5px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); margin: 1px 3px 1px 0; }

/* ---------------- Status chip system (workflow states) ---------------- */
.status-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .1px;
  border-radius: var(--pill-radius); white-space: nowrap;
  border: 1px solid var(--chip-grey-bd); background: var(--chip-grey-bg); color: var(--chip-grey-tx);
}
.status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; flex: 0 0 auto; }
.status-chip.pending  { background: var(--chip-amber-bg);  border-color: var(--chip-amber-bd);  color: var(--chip-amber-tx); }
.status-chip.sourcing, .status-chip.progress, .status-chip.reopened { background: var(--chip-blue-bg); border-color: var(--chip-blue-bd); color: var(--chip-blue-tx); }
.status-chip.partial  { background: var(--chip-brand-bg);  border-color: var(--chip-brand-bd);  color: var(--chip-brand-tx); }
.status-chip.filled   { background: var(--chip-green-bg);  border-color: var(--chip-green-bd);  color: var(--chip-green-tx); }
.status-chip.closed, .status-chip.expired { background: var(--chip-grey-bg); border-color: var(--chip-grey-bd); color: var(--chip-grey-tx); }
.status-chip.hold     { background: var(--chip-violet-bg); border-color: var(--chip-violet-bd); color: var(--chip-violet-tx); }
.status-chip.rejected, .status-chip.cancelled { background: var(--chip-red-bg); border-color: var(--chip-red-bd); color: var(--chip-red-tx); }
.meta-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  font-size: 11.5px; font-weight: 600; line-height: 1; border-radius: var(--pill-radius); white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft);
}

/* ---------------- Ticket header card (calm white, brand left accent) ---------------- */
.ticket-header-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--card-radius); box-shadow: var(--shadow-card);
  padding: 18px 22px 18px 24px; margin-bottom: 16px; overflow: hidden;
}
.ticket-header-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ticket-accent, var(--brand)); }
.ticket-header-card .th-logo { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; flex: 0 0 auto; }
.ticket-header-card .th-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.ticket-header-card .th-title { margin: 3px 0 8px; font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.ticket-header-card .th-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ticket-header-card .th-meta .th-sep { color: var(--line-strong); }
.ticket-header-card .th-ticketno { font-weight: 600; color: var(--ink-soft); }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input, .toolbar select { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 13px; background: #fff; }
.spacer { flex: 1; }

.empty { padding: 48px; text-align: center; color: var(--muted); }
.empty .ico { font-size: 32px; opacity: .35; }
.skeleton { background: linear-gradient(90deg, #eef1f4 25%, #f6f8fa 50%, #eef1f4 75%); background-size: 200% 100%; animation: sh 1.3s infinite; border-radius: 6px; height: 14px; margin: 8px 0; }
@keyframes sh { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------------- Modal ---------------- */
/* The overlay host and its slot in .shell carry no box of their own: they only
   give dialogs a DOM home outside <main> (see OVERLAY_HOST in app.jsx). */
.overlay-slot, .overlay-host { display: contents; }
.modal-overlay { position: fixed; inset: 0; background: rgba(20,24,28,.42); display: grid; place-items: center; z-index: 100; padding: 20px; backdrop-filter: blur(1px); }
.modal { background: #fff; border-radius: var(--card-radius); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-pop); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 16.5px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.muted { color: var(--muted); font-size: 12.5px; }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type=color] { width: 44px; height: 34px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
.section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 22px 0 12px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.tag-toggle { padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12.5px; background: #fff; color: var(--ink-soft); cursor: pointer; transition: all .12s; }
.tag-toggle:hover { border-color: var(--muted); }
.tag-toggle.on { background: var(--action); color: #fff; border-color: var(--action); }

/* ---------------- Pipeline funnel mini-bar (request cards) ---------------- */
.funnel-mini { margin-top: 4px; }
.funnel-mini .fm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.funnel-mini .fm-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.funnel-mini .fm-total { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.funnel-mini .fm-track { display: flex; height: 8px; border-radius: var(--pill-radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.funnel-mini .fm-seg { height: 100%; min-width: 3px; transition: opacity .12s; }
.funnel-mini .fm-seg:hover { opacity: .8; }
.funnel-mini .fm-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 7px; }
.funnel-mini .fm-leg { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ink-soft); }
.funnel-mini .fm-dot { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.funnel-mini .fm-empty { font-size: 11.5px; color: var(--muted); padding: 2px 0; }

/* ---------------- Segmented stage tabs (candidate board) ---------------- */
.seg-tabs { display: flex; flex-wrap: wrap; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; margin-bottom: 16px; }
.seg-tab { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: none; background: none; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: background .12s, color .12s; white-space: nowrap; }
.seg-tab:hover { background: rgba(0,0,0,.03); color: var(--ink); }
.seg-tab.active { background: var(--surface); color: var(--action); box-shadow: var(--shadow-sm); }
.seg-tab .seg-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill-radius); background: var(--line); color: var(--ink-soft); font-size: 10.5px; font-weight: 700; }
.seg-tab.active .seg-count { background: var(--action-tint); color: var(--action-dark); }

/* ---------------- Source attribution chip ---------------- */
.src-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; font-size: 11px; font-weight: 600; border-radius: var(--pill-radius); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); }
.src-chip .src-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.src-linkedin .src-dot { background: #0a66c2; } .src-linkedin { color: #0a66c2; border-color: #cfe0f3; background: #eef4fb; }
.src-careers  .src-dot { background: #1d6e3e; } .src-careers  { color: #1d6e3e; border-color: var(--chip-green-bd); background: var(--chip-green-bg); }
.src-referral .src-dot { background: #6a4ca6; } .src-referral { color: #6a4ca6; border-color: var(--chip-violet-bd); background: var(--chip-violet-bg); }
.src-agency   .src-dot { background: #b7791f; } .src-agency   { color: #9a6a12; border-color: var(--chip-amber-bd); background: var(--chip-amber-bg); }
.src-direct   .src-dot { background: #5a636d; }

/* ---------------- Qualified / Disqualified group headers ---------------- */
.group-head { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; }
.group-head .gh-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); }
.group-head .gh-count { font-size: 11px; font-weight: 700; color: var(--muted); }
.group-head .gh-rule { flex: 1; height: 1px; background: var(--line); }
.group-head.disq .gh-title { color: var(--chip-red-tx); }

/* ---------------- Candidate cards grid (board) ---------------- */
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; }
.cand-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; cursor: pointer; transition: box-shadow .14s, transform .14s, border-color .14s; }
.cand-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-1px); border-color: var(--line-strong); }
.cand-card .cc-top { display: flex; align-items: center; gap: 11px; }
.cand-card .cc-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--slate); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: 0 0 auto; }
.cand-card .cc-name { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.cand-card .cc-headline { font-size: 12px; color: var(--muted); }
.cand-card .cc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------------- Reports / analytics ---------------- */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.report-grid .full { grid-column: 1 / -1; }
.metric-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.metric-row .mr-label { width: 150px; font-size: 12.5px; color: var(--ink-soft); flex: 0 0 auto; }
.metric-row .mr-track { flex: 1; height: 20px; background: var(--surface-2); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.metric-row .mr-fill { height: 100%; min-width: 3px; border-radius: 4px 0 0 4px; }
.metric-row .mr-val { width: 44px; text-align: right; font-size: 12.5px; font-weight: 700; flex: 0 0 auto; }
.report-funnel-step { position: relative; margin: 5px auto; height: 30px; border-radius: 5px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #fff; font-size: 12.5px; font-weight: 600; }
.report-conv { text-align: center; font-size: 10.5px; color: var(--muted); margin: 1px 0; }

/* ---------------- Tabbed candidate profile header ---------------- */
.profile-header { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; }
.profile-header .ph-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--slate); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 19px; flex: 0 0 auto; }
.profile-header .ph-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.profile-header .ph-headline { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.profile-header .ph-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.profile-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 22px; }
.profile-tab { padding: 10px 14px; border: none; background: none; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .12s, border-color .12s; }
.profile-tab:hover { color: var(--ink); }
.profile-tab.active { color: var(--action); border-bottom-color: var(--action); }

@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
}


/* ============================================================================
   APPROVED INTERNAL UI REFERENCE — shared surfaces, tables, stages, states.
   Source of truth: Arabtec_ATS_Internal_UI_Reference_Approved.html
   These rules intentionally sit LAST so they align the existing internal
   components (cards, tables, badges, tabs, KPIs) with the approved reference
   without touching any .login-* rule above.
   ============================================================================ */

/* --- Surfaces ------------------------------------------------------------- */
.card { background: var(--card-bg); border-color: var(--border); }
.card-head { border-bottom-color: var(--border-soft); }
.shell, .page-head { color: var(--text); }
.page-head h1, .page-head h2 { color: var(--text-strong); }

/* --- Tables: calmer density, stronger header, clickable rows -------------- */
table.table thead th, .table thead th {
  background: var(--neutral-tint); color: var(--muted);
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
  border-bottom: 1px solid var(--border);
}
table.table tbody td, .table tbody td { border-bottom: 1px solid var(--border-soft); color: var(--text); }
table.table tbody tr:hover, .table tbody tr:hover { background: var(--action-primary-tint); }

/* --- KPI cards ------------------------------------------------------------ */
.kpi { background: var(--card-bg); border-color: var(--border); }

/* --- Tabs ----------------------------------------------------------------- */
.tabs { border-bottom-color: var(--border); }

/* --- Pipeline stage accents (Greenhouse-style board) ---------------------- */
.stage-sourced      { --stage: var(--stage-sourced); }
.stage-matched      { --stage: var(--stage-matched); }
.stage-shortlisted  { --stage: var(--stage-shortlisted); }
.stage-interviewing { --stage: var(--stage-interviewing); }
.stage-waiting      { --stage: var(--stage-waiting); }
.stage-offer        { --stage: var(--stage-offer); }
.stage-joined       { --stage: var(--stage-joined); }
.stage-rejected     { --stage: var(--stage-rejected); }
.stage-col-head { border-top: 3px solid var(--stage, var(--border)); }
.stage-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stage, var(--muted)); display: inline-block; }

/* --- Bulk action bar: navy, destructive stays red ------------------------- */
.bulk-bar {
  background: var(--brand-primary); color: #fff; border-radius: var(--radius);
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
}
.bulk-bar .btn-ghost { color: rgba(255,255,255,.85); }

/* --- Reusable states ------------------------------------------------------ */
.state-empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.state-empty .se-title { color: var(--text-strong); font-weight: 600; margin: 8px 0 4px; }
.field-error { color: var(--danger); font-size: 11.5px; margin-top: 5px; }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: var(--danger); }
.notice { border: 1px solid var(--border); border-radius: var(--radius-sm, 7px); padding: 10px 12px; font-size: 12.5px; }
.notice-info { background: var(--info-tint); }
.notice-warn { background: var(--warning-tint); color: var(--warning-ink); }
.notice-danger { background: var(--danger-tint); color: var(--danger); }
.notice-success { background: var(--action-success-tint); }

/* --- Branding Settings preview (tokens are the single source of truth) ---- */
.swatch { width: 100%; height: 34px; border-radius: 6px; border: 1px solid var(--border); }
.swatch-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.swatch-brand-primary  { background: var(--brand-primary); }
.swatch-brand-secondary{ background: var(--brand-secondary); }
.swatch-brand-accent   { background: var(--brand-accent); }
.swatch-action         { background: var(--action-primary); }
.swatch-success        { background: var(--action-success); }
.swatch-warning        { background: var(--warning); }
.swatch-danger         { background: var(--danger); }

/* ==========================================================================
   Dashboard (Stage 3B) — reference-first visual rebuild.
   All selectors are .dash-* scoped so no other page is affected.
   ========================================================================== */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.dash-head .page-title { font-size: 25px; letter-spacing: -0.02em; }
.dash-head .page-sub { margin-top: 6px; font-size: 13.5px; }
.dash-sub-note { color: var(--muted); }
.dash-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-top: 20px; }
.dash-actions .btn { display: inline-flex; align-items: center; gap: 7px; }

/* KPI cards ------------------------------------------------------------- */
.dash-kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dash-kpi { position: relative; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 17px 18px 16px; box-shadow: var(--shadow-card); overflow: hidden; }
.dash-kpi::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--kc, var(--brand-primary)); }
.dash-kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dash-kpi-label { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.dash-kpi .dash-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; color: var(--kc, var(--brand-primary)); background: color-mix(in srgb, var(--kc, var(--brand-primary)) 11%, #fff); }
.dash-kpi-val { font-size: 30px; font-weight: 700; line-height: 1.1; margin: 12px 0 5px; color: var(--text-strong); letter-spacing: -0.02em; }
.dash-kpi-val small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.dash-kpi-hint { font-size: 11.5px; color: var(--muted); }
.dash-kpi-skel { padding-top: 20px; }
.dash-kpi-skel::before { background: var(--border); }
/* Clickable variant of the same card — a real <button>, not a div, so it stays
   keyboard-reachable and screen-reader-announced. Only applied when the card
   actually has somewhere to go; a card with no onClick renders as a plain div
   with none of this, on purpose (see KpiCard's comment). */
.dash-kpi-link { cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; appearance: none; -webkit-appearance: none; transition: box-shadow .14s, transform .14s, border-color .14s; }
.dash-kpi-link:hover, .dash-kpi-link:focus-visible { box-shadow: var(--shadow-pop); transform: translateY(-1px); border-color: var(--line-strong); }
.dash-kpi-link:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

/* Panels ---------------------------------------------------------------- */
.dash-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dash-grid-2 > .card { display: flex; flex-direction: column; min-width: 0; }
.dash-grid-2 > .card > .card-pad, .dash-grid-2 > .card > .dash-listpad { flex: 1; }
.dash-headnote { font-size: 11.5px; color: var(--muted); }

/* Funnel ---------------------------------------------------------------- */
.dash-frow { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.dash-fl { width: 168px; flex: 0 0 168px; font-size: 12.5px; color: var(--text); display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-fl i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.dash-ftrack { flex: 1; min-width: 0; height: 20px; background: var(--neutral-tint, #f1f3f6); border-radius: 5px; overflow: hidden; }
.dash-fbar { display: block; height: 100%; border-radius: 5px; min-width: 3px; transition: width .35s ease; }
.dash-fn { width: 34px; text-align: right; font-size: 13px; color: var(--text-strong); }
.dash-fp { width: 38px; text-align: right; font-size: 11.5px; color: var(--muted); }
.dash-frow-muted { margin-top: 8px; padding-top: 11px; border-top: 1px dashed var(--border); }
.dash-frow-muted .dash-fl, .dash-frow-muted .dash-fn { color: var(--muted); }

/* Horizontal bar lists --------------------------------------------------- */
.dash-bars { display: flex; flex-direction: column; gap: 11px; }
.dash-bar { display: flex; align-items: center; gap: 12px; }
.dash-bar-l { width: 150px; flex: 0 0 150px; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-bar-track { flex: 1; min-width: 0; height: 9px; background: var(--neutral-tint, #f1f3f6); border-radius: 5px; overflow: hidden; }
.dash-bar-fill { display: block; height: 100%; border-radius: 5px; min-width: 3px; transition: width .35s ease; }
.dash-bar-n { width: 32px; text-align: right; font-size: 13px; color: var(--text-strong); }

/* SLA health ------------------------------------------------------------- */
.dash-sla { display: flex; align-items: center; gap: 22px; }
.dash-donut { width: 104px; height: 104px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; }
.dash-donut span { width: 68px; height: 68px; border-radius: 50%; background: var(--card-bg); display: grid; place-items: center; font-size: 21px; font-weight: 700; color: var(--text-strong); }
.dash-sla-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dash-kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.dash-kv span { display: flex; align-items: center; gap: 8px; color: var(--text); }
.dash-kv i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.dash-kv em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.dash-kv strong { font-size: 14px; color: var(--text-strong); }
/* A `.dash-kv` row rendered as a real button when it opens a filtered list —
   same layout, just interactive: full width, no default button chrome, a
   visible hover/focus state so it reads as a control rather than a label. */
.dash-kv-link { width: 100%; border: none; background: none; padding: 2px 0; font: inherit; cursor: pointer; border-radius: 4px; transition: background-color .12s; }
.dash-kv-link:hover, .dash-kv-link:focus-visible { background: var(--surface-2); }
.dash-kv-link:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.dash-kv-link strong { color: var(--brand-primary); }

/* List rows -------------------------------------------------------------- */
.dash-listpad { padding: 6px 10px 10px; }
.dash-lrow { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 8px; }
.dash-lrow + .dash-lrow { border-top: 1px solid var(--border-soft, var(--border)); }
.dash-lmain { flex: 1; min-width: 0; }
.dash-lmain strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-strong); }
.dash-lmeta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dash-lright { flex: 0 0 auto; }
.dash-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; }
.dash-ico-navy { color: var(--brand-primary); background: var(--brand-primary-tint); }
.dash-ico-blue { color: var(--action-primary); background: var(--action-primary-tint); }
.dash-ico-amber { color: var(--warning-ink); background: var(--warning-tint); }
.dash-ico-green { color: var(--action-success); background: var(--action-success-tint); }
.dash-ico-grey  { color: var(--muted); background: var(--neutral-tint, #f1f3f6); }
.dash-link { background: none; border: 0; padding: 4px 6px; font: inherit; font-size: 12px; font-weight: 600; color: var(--action-primary); cursor: pointer; border-radius: 6px; }
.dash-link:hover { background: var(--action-primary-tint); }

/* Non-blocking state panel ---------------------------------------------- */
.dash-state { padding: 54px 24px; text-align: center; }
.dash-state-ico { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px; display: grid; place-items: center; color: var(--muted); background: var(--neutral-tint, #f1f3f6); }
.dash-state h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--text-strong); }
.dash-state p { margin: 0; font-size: 13px; color: var(--muted); }

@media (max-width: 1180px) {
  .dash-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dash-grid-2 { grid-template-columns: 1fr; }
  .dash-sla { flex-direction: column; align-items: flex-start; }
  .dash-actions { padding-top: 0; }
}
@media (max-width: 560px) {
  .dash-kpi-row { grid-template-columns: 1fr; }
  .dash-fl, .dash-bar-l { width: 120px; flex-basis: 120px; }
}

/* ==========================================================================
   Stage 3C — Core ATS pages visual pass.
   Shared page-level chrome (header, filter bar, tables, empty/loading states)
   so Hiring Requests / Talent Pool / Interviews / Offers / Reports read as one
   product alongside the Stage 3B Dashboard.
   ========================================================================== */

/* Page header ------------------------------------------------------------ */
.page-head { align-items: flex-start; margin-bottom: 20px; }
.page-head-main { min-width: 0; }
.page-head .breadcrumb { font-size: 11.5px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.page-head .page-title { font-size: 25px; letter-spacing: -0.02em; color: var(--text-strong); }
.page-head .page-sub { margin-top: 6px; font-size: 13.5px; max-width: 720px; }
.page-head-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; padding-top: 20px; }

/* Segmented view toggle --------------------------------------------------- */
.view-toggle { display: inline-flex; background: var(--neutral-tint); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 2px; }
.view-toggle-btn { border: 0; background: none; padding: 5px 13px; border-radius: 6px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .12s, color .12s; }
.view-toggle-btn:hover { color: var(--text-strong); }
.view-toggle-btn.active { background: var(--card-bg); color: var(--action-primary); box-shadow: var(--shadow-sm); }

/* Filter bar -------------------------------------------------------------- */
.toolbar { gap: 8px; padding: 12px 14px; margin-bottom: 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--card-radius); box-shadow: var(--shadow-sm); }
.toolbar input, .toolbar select { padding: 7px 11px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; background: var(--card-bg); color: var(--text); transition: border-color .12s, box-shadow .12s; }
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--action-primary); box-shadow: var(--ring-action); }
.toolbar input::placeholder { color: var(--muted); }
.count-pill { display: inline-flex; align-items: baseline; gap: 4px; padding: 5px 11px; border-radius: var(--pill-radius); background: var(--neutral-tint); font-size: 12px; font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.count-pill em { font-style: normal; font-weight: 500; color: var(--muted); }

/* Tables ------------------------------------------------------------------ */
/* Wide tables must SCROLL, not be clipped. `overflow: hidden` was added here for
   corner rounding, but it silently cut off columns on narrow viewports (worst on
   the 11-column candidate board). overflow-y stays hidden so the radius still
   clips vertically. */
.card.flush { overflow-x: auto; overflow-y: hidden; }
.card.flush > table { border-radius: inherit; }
table.table thead th { position: sticky; top: 0; z-index: 1; background: var(--neutral-tint); border-bottom: 1px solid var(--border); font-size: 10.5px; letter-spacing: .6px; padding: 11px 16px; white-space: nowrap; }
table.table tbody td { padding: 13px 16px; vertical-align: middle; }
table.table tbody tr { transition: background .1s; }
tr.row-link { cursor: pointer; }
table.table tbody tr.row-link:hover { background: var(--action-primary-tint); }
.cell-strong { font-size: 13.5px; font-weight: 600; color: var(--text-strong); display: block; line-height: 1.35; }
.cell-sub { font-size: 11.5px; color: var(--muted); display: block; margin-top: 2px; line-height: 1.35; }
.cell-sub-only { font-size: 12.5px; color: var(--muted); }
.code-pill { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--brand-primary-tint); color: var(--brand-primary); font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.pipe-count { display: inline-flex; align-items: baseline; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--text-strong); }
.pipe-count em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted); }
.datecell { display: block; white-space: nowrap; }

/* Identity cell (avatar + name) ------------------------------------------ */
.idcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.idcell-av { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: var(--slate); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.idcell-txt { min-width: 0; }
.idcell-tags { margin-top: 5px; margin-left: 40px; }

/* SLA / health indicator -------------------------------------------------- */
.sla { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sla i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.sla em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.sla-green { color: var(--action-success); } .sla-green i { background: var(--action-success); }
.sla-amber { color: var(--warning-ink); }    .sla-amber i { background: var(--warning); }
.sla-red   { color: var(--danger); }         .sla-red i   { background: var(--danger); }

/* Request card grid ------------------------------------------------------- */
.ats-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.ats-card-grid .ticket-card { transition: box-shadow .14s, transform .14s, border-color .14s; }
.ats-card-grid .ticket-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-1px); border-color: var(--border); }

/* Empty states ------------------------------------------------------------ */
.empty { padding: 58px 28px; }
.empty .ico { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 16px; background: var(--neutral-tint); color: var(--muted); font-size: 0; }
.empty-title { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; color: var(--text-strong); }
.empty p { margin: 0 auto; font-size: 13px; color: var(--muted); max-width: 400px; line-height: 1.6; }
.empty-action { margin-top: 16px; }

/* List loading placeholder ------------------------------------------------ */
.list-skel { overflow: hidden; }
.list-skel-head { height: 38px; background: var(--neutral-tint); border-bottom: 1px solid var(--border); }
.list-skel-row { display: flex; align-items: center; gap: 16px; padding: 15px 16px; border-bottom: 1px solid var(--border-soft); }
.list-skel-row:last-child { border-bottom: none; }
.list-skel-row .skeleton { margin: 0; }

/* Screening tabs ---------------------------------------------------------- */
.seg-tabs { background: var(--card-bg); border-color: var(--border); box-shadow: var(--shadow-sm); }
.seg-tab.active { background: var(--action-primary-tint); color: var(--action-primary); box-shadow: none; }

/* Reports grid ------------------------------------------------------------ */
.report-grid { gap: 16px; }
.report-grid > .card { display: flex; flex-direction: column; min-width: 0; }

@media (max-width: 1100px) {
  .report-grid { grid-template-columns: 1fr; }
  .page-head-actions { padding-top: 0; }
}

/* ==========================================================================
   Stage 3D — Request Detail / Candidate Board.
   Scoped to the detail view; no list-page or Shell selectors are redefined.
   ========================================================================== */

/* Back link + header card ------------------------------------------------ */
.detail-back { margin-bottom: 12px; }
.back-link { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--action-primary); cursor: pointer; }
.back-link:hover { text-decoration: underline; }

.ticket-header-card { padding: 20px 24px; margin-bottom: 14px; border-color: var(--border); }
/* Accent rail softened from red to brand navy — red is reserved for danger. */
.ticket-header-card::before { width: 3px; background: var(--brand-primary); }
.ticket-header-card .th-row { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.ticket-header-card .th-main { flex: 1; min-width: 260px; }
.ticket-header-card .th-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.ticket-header-card .th-title { margin: 5px 0 11px; font-size: 23px; font-weight: 700; color: var(--text-strong); letter-spacing: -.02em; line-height: 1.2; }
.ticket-header-card .th-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 13px; }
.ticket-header-card .th-sub { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 12.5px; color: var(--text); }
.ticket-header-card .th-sub span { display: inline-flex; align-items: baseline; gap: 7px; }
.ticket-header-card .th-sub em { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.ticket-header-card .th-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 0 0 auto; padding-top: 4px; }

/* Collapsible details ----------------------------------------------------- */
.detail-disclosure { margin-bottom: 14px; overflow: hidden; }
.disclosure-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 18px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; }
.disclosure-btn:hover { background: var(--neutral-tint); }
.disclosure-label { font-size: 13.5px; font-weight: 600; color: var(--text-strong); flex: 0 0 auto; }
.disclosure-hint { font-size: 12px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disclosure-caret { font-size: 11.5px; font-weight: 600; color: var(--action-primary); flex: 0 0 auto; }
.disclosure-body { padding: 4px 18px 18px; border-top: 1px solid var(--border-soft); }

/* Tab bar ----------------------------------------------------------------- */
.tabbar { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabbar-btn { border: 0; background: none; padding: 11px 16px; margin-bottom: -1px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; transition: color .12s, border-color .12s; }
.tabbar-btn:hover { color: var(--text-strong); }
.tabbar-btn.active { color: var(--action-primary); border-bottom-color: var(--action-primary); }

/* Kanban ------------------------------------------------------------------ */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 16px; align-items: flex-start; }
.kan-col { flex: 0 0 300px; width: 300px; background: var(--neutral-tint); border: 1px solid var(--border); border-radius: var(--card-radius); display: flex; flex-direction: column; max-height: 72vh; }
.kan-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex: 0 0 auto; }
.kan-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.kan-title { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kan-count { flex: 0 0 auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: var(--pill-radius); background: var(--card-bg); border: 1px solid var(--border); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--text-strong); }
.kan-body { padding: 12px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; flex: 1; }
.kan-empty { padding: 26px 12px; text-align: center; font-size: 11.5px; color: var(--muted); border: 1px dashed var(--border); border-radius: 9px; background: rgba(255,255,255,.5); }

/* Candidate card ---------------------------------------------------------- */
.pcard { position: relative; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 13px 14px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .14s, border-color .14s; }
.pcard:hover { box-shadow: var(--shadow-card); border-color: var(--border); }
.pcard.selected { border-color: var(--action-primary); box-shadow: var(--ring-action); }
.pcard-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pcard-check { flex: 0 0 auto; margin: 0; }
.pcard-av { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: var(--slate); color: #fff; font-size: 11px; font-weight: 700; }
.pcard-id { flex: 1; min-width: 0; }
.pcard-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-strong); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-role { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.pcard-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard-facts:empty { display: none; }
.pcard-facts .fact { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; background: var(--neutral-tint); font-size: 11px; color: var(--text); white-space: nowrap; }
.pcard-status { display: flex; }
.pcard-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.pcard-wide { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; padding: 15px 18px; }
.pcard-wide .pcard-top { flex: 1 1 260px; }
.pcard-wide .pcard-facts { flex: 0 1 auto; }
.pcard-wide .pcard-actions { border-top: none; padding-top: 0; margin-left: auto; }
.pipe-list { display: grid; gap: 12px; }

@media (max-width: 900px) {
  .kan-col { flex-basis: 268px; width: 268px; }
  .ticket-header-card .th-actions { padding-top: 0; }
}

/* ==========================================================================
   Hiring Requests — equal-height ticket cards.
   The grid stretches every card to the tallest in its row; the card is a flex
   column with a pushed-down footer, so head / title / meta / pipeline / footer
   line up horizontally across the row regardless of content length.
   ========================================================================== */
.ats-card-grid { align-items: stretch; }          /* was `start` — that caused ragged heights */
.ats-card-grid > * { min-width: 0; }

.rq-card { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 236px; overflow: hidden; cursor: pointer; }
/* Brand navy, deliberately NOT var(--ticket-accent): red is reserved for
   destructive/critical states, and --ticket-accent is overridden at runtime by
   Control Center branding, which would drift this rail away from the navy
   code-pill and the Request Detail header rail. */
.rq-rail { display: block; height: 4px; flex: 0 0 auto; background: var(--brand-primary); }
.rq-body { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 15px; min-width: 0; }

/* Row 1 — ticket code + priority */
.rq-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex: 0 0 auto; }

/* Row 2 — title, clamped to two lines so cards with long titles stay aligned */
.rq-title {
  margin: 0 0 12px; font-size: 15.5px; font-weight: 600; line-height: 1.32;
  color: var(--text-strong); letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(15.5px * 1.32 * 2); flex: 0 0 auto;
}

/* Row 3 — label/value meta, one line per value */
.rq-meta { margin: 0 0 12px; display: flex; flex-direction: column; gap: 5px; flex: 0 0 auto; }
.rq-meta > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.rq-meta dt { flex: 0 0 84px; font-size: 10.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.rq-meta dd { margin: 0; flex: 1; min-width: 0; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Row 4 — pipeline mini-funnel. Reserves its slot even when absent, so cards
   with and without pipeline data keep the footer on the same line. */
.rq-pipe { flex: 1 1 auto; min-height: 26px; display: flex; align-items: flex-start; margin-bottom: 12px; }
.rq-pipe > * { width: 100%; }

/* Row 5 — footer pinned to the bottom of every card */
.rq-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border-soft); }

.rq-card:hover { box-shadow: var(--shadow-card); transform: translateY(-1px); border-color: var(--border); }

@media (max-width: 560px) {
  .rq-card { min-height: 0; }
  .rq-meta dt { flex-basis: 74px; }
}

/* ==========================================================================
   Candidate pipeline movement — pending / busy states.
   Applies only while a stage move is in flight; nothing here affects the
   resting appearance of the board.
   ========================================================================== */
.pcard { transition: box-shadow .14s, border-color .14s, opacity .16s; }
.pcard-pending { opacity: .62; border-color: var(--action-primary); pointer-events: none; }
.pcard-pending .pcard-actions { opacity: .7; }
.pcard-busy {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: var(--pill-radius);
  background: var(--action-primary-tint); color: var(--action-primary);
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
}
.spin {
  width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Table view equivalent */
tr.row-pending { opacity: .6; }
tr.row-pending td { pointer-events: none; }

/* Disabled controls inside a card carry the same .45 as every other disabled
   button. This said .55 and was the third of three different values; it is also
   DEAD — `.pcard-actions` holds only an `.icon-btn` and a `.menu` in every JSX
   file — so aligning it costs nothing and removes the divergence. Deleting it
   belongs to the dead-rule backlog. */
.pcard-actions .btn:disabled { opacity: .45; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; border-top-color: currentColor; opacity: .6; }
  .pcard { transition: none; }
}

/* ==========================================================================
   User password create / reset dialogs.
   ========================================================================== */
.pw-input { display: flex; align-items: center; gap: 8px; }
.pw-input input { flex: 1; min-width: 0; }
.field-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

.radio-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 9px; cursor: pointer; transition: border-color .12s, background .12s; }
.radio-row:hover { border-color: var(--action-primary); background: var(--action-primary-tint); }
.radio-row input { margin-top: 2px; flex: 0 0 auto; }
.radio-row span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.radio-row strong { font-size: 13.5px; font-weight: 600; color: var(--text-strong); }
.radio-row em { font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.45; }

.otp-warn { padding: 12px 14px; border-radius: 9px; background: var(--warning-tint); border: 1px solid #f4e3bd; color: var(--warning-ink); font-size: 12.5px; line-height: 1.55; margin-bottom: 16px; }
.otp-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-bottom: 14px; }
.otp-meta div { display: flex; flex-direction: column; gap: 2px; }
.otp-meta span { font-size: 10.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.otp-meta strong { font-size: 13.5px; color: var(--text-strong); }
.otp-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 9px; background: var(--neutral-tint); }
.otp-value { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--text-strong); word-break: break-all; user-select: all; }

/* ==========================================================================
   Responsive — tablet / narrow-desktop.
   CSS only: no JSX changes. The sidebar collapse control already exists in the
   topbar, so this simply makes the rail the default below 1180px, where a
   240px sidebar leaves too little room for the content.
   ========================================================================== */
@media (max-width: 1180px) {
  /* .shell sets `grid-template-columns: var(--sidebar-w) 1fr`, and --sidebar-w is
     an inline style, so override the resolved columns rather than the variable. */
  .shell { grid-template-columns: 66px 1fr; }

  /* Hide the text so the rail shows icons only. Labels stay in the DOM (React
     renders them), so they remain available to screen readers via title/aria. */
  .sidebar .side-txt,
  .sidebar .nav-section,
  .sidebar .nav-item > span:not(.nav-icon) { display: none; }

  .sidebar .nav-item { justify-content: center; padding-left: 0; padding-right: 0; }
  .sidebar-head { justify-content: center; padding-left: 8px; padding-right: 8px; }
  .nav { padding: 10px 6px; }

  /* Reclaim horizontal room in the topbar at the same breakpoint. */
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar .search { max-width: 260px; }
}

/* Tablet and below — stop long headers and toolbars forcing the page wider. */
@media (max-width: 900px) {
  .topbar { padding: 0 12px; }
  .topbar .search { display: none; }        /* placeholder-only control; no loss */
  .tb-brand .bn span { display: none; }     /* keep the title, drop the subtitle */
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head-actions { padding-top: 4px; }
  .page-head .page-title { font-size: 21px; word-break: break-word; }
  .toolbar { padding: 10px 12px; }
  .toolbar input, .toolbar select { flex: 1 1 160px; min-width: 0; }
}

/* Phones — single column everywhere, nothing fixed-width. */
@media (max-width: 560px) {
  .shell { grid-template-columns: 56px 1fr; }
  .ats-card-grid, .cand-grid { grid-template-columns: 1fr; }
  .page-head .page-title { font-size: 19px; }
  .modal { max-width: 100%; margin: 0 8px; }
  .otp-box { flex-direction: column; align-items: stretch; gap: 8px; }
  .otp-value { font-size: 13.5px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar input, .toolbar select { width: 100%; flex: 1 1 auto; }
  .count-pill { align-self: flex-start; }
}

/* ==========================================================================
   Password policy UI + forced rotation gate.
   ========================================================================== */
.pw-rules { list-style: none; margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--neutral-tint); display: grid; gap: 6px; }
.pw-rules li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); }
.pw-rules li span { width: 14px; text-align: center; font-weight: 700; flex: 0 0 auto; }
.pw-rules li.ok { color: var(--action-success); }

.forced-pw-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--app-bg); }
.forced-pw-card { width: 100%; max-width: 460px; padding: 30px 32px; }
.forced-pw-head { margin-bottom: 22px; }
.forced-pw-head h1 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text-strong); }
.forced-pw-head p { margin: 0 0 8px; font-size: 13.5px; color: var(--text); line-height: 1.6; }
.forced-pw-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft); text-align: center; }

/* ==========================================================================
   Talent Pool — sortable sticky table, parse quality, filter chips, pager.
   ========================================================================== */
/* Sticky header so column meaning survives long scrolls. */
.card.flush > table.table thead th { position: sticky; top: 0; z-index: 2; }

.sort-th { cursor: pointer; user-select: none; white-space: nowrap; transition: color .12s; }
.sort-th:hover { color: var(--action-primary); }
.sort-th.active { color: var(--action-primary); }
.sort-th .sort-caret { font-style: normal; font-size: 9px; margin-left: 5px; opacity: .9; }
.sort-th:focus-visible { outline: 2px solid var(--action-primary); outline-offset: -2px; }

/* Parse quality — read-only indicator. */
.pq { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--pill-radius);
      font-size: 11px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pq i { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; background: currentColor; }
.pq em { font-style: normal; font-weight: 500; opacity: .75; }
.pq-green { color: var(--chip-green-tx); background: var(--chip-green-bg); border-color: var(--chip-green-bd); }
.pq-amber { color: var(--chip-amber-tx); background: var(--chip-amber-bg); border-color: var(--chip-amber-bd); }
.pq-red   { color: var(--chip-red-tx);   background: var(--chip-red-bg);   border-color: var(--chip-red-bd); }
.pq-grey  { color: var(--chip-grey-tx);  background: var(--chip-grey-bg);  border-color: var(--chip-grey-bd); }

/* Active filter chips — filters are never hidden from the recruiter. */
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.chip-filter { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px 4px 11px; border-radius: var(--pill-radius);
               background: var(--action-primary-tint); color: var(--action-primary); border: 1px solid var(--action-tint-bd);
               font-size: 12px; font-weight: 600; }
.chip-filter button { border: 0; background: none; cursor: pointer; color: inherit; font-size: 12px; line-height: 1;
                      padding: 2px 4px; border-radius: 4px; }
.chip-filter button:hover { background: rgba(0,0,0,.08); }
/* Category chips in the candidate Activity log use .chip-filter as a toggle button. */
.filter-chips .chip-filter.on { background: var(--action-primary); color: #fff; border-color: var(--action-primary); cursor: pointer; }

/* Pager */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
         margin-top: 14px; padding: 12px 14px; background: var(--card-bg); border: 1px solid var(--border);
         border-radius: var(--card-radius); box-shadow: var(--shadow-sm); }
.pager-info { font-size: 12.5px; color: var(--muted); }
.pager-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager-page { font-size: 12.5px; color: var(--text); padding: 0 6px; white-space: nowrap; }
.pager-controls select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 7px;
                         font-size: 12.5px; background: var(--card-bg); color: var(--text); }

@media (max-width: 700px) {
  .pager { flex-direction: column; align-items: stretch; }
  .pager-controls { justify-content: space-between; }
}


/* ==========================================================================
   Ctrl/Cmd+K command palette (plain React — no build step in this project).
   ========================================================================== */
.cmdk-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(23, 27, 33, .38); backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 16px;
}
.cmdk {
  width: 100%; max-width: 620px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .22); overflow: hidden;
}
.cmdk-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.cmdk-input input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 15px; color: var(--text-strong); }
.cmdk-input input::placeholder { color: var(--muted); }
.cmdk-list { max-height: min(52vh, 420px); overflow-y: auto; padding: 6px; }
.cmdk-hint { padding: 22px 14px; text-align: center; font-size: 13px; color: var(--muted); }
.cmdk-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px; cursor: pointer;
}
.cmdk-row.is-active { background: var(--neutral-tint); }
.cmdk-av {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: var(--brand-secondary); color: #fff;
}
.cmdk-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cmdk-name { font-size: 13.5px; font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Candidate cards — education-first face, one action control, fixed height so
   the grid stays aligned. Company left the face on purpose: it lives in the drawer. */
.cand-card { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; min-height: 156px; }
.cand-card .cc-face {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; align-items: start;
}
.cand-card .cc-avatar { grid-row: 1 / span 2; width: 38px; height: 38px; }
.cand-card .cc-id { min-width: 0; }
.cand-card .cc-name {
  font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3;
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.cand-card .cc-headline {
  font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cand-card .cc-uni { min-width: 0; text-align: right; }
.cand-card .cc-uni-name, .cand-card .cc-uni-major {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cand-card .cc-uni-name { font-size: 12.5px; font-weight: 600; color: var(--text-strong); }
.cand-card .cc-uni-major { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cand-card .cc-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-soft, var(--border));
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.cand-card .cc-grad { font-size: 12px; color: var(--ink-soft); }
.cand-card .cc-grad.missing { color: var(--muted); }
/* Pinned right: on a phone the "graduation year not recorded" label is hidden,
   and space-between with one child would push the action to the left edge. */
.cand-card .cc-action-wrap { flex: 0 0 auto; margin-left: auto; }
.field-hint { margin-top: 6px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.hist-badge-btn { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; vertical-align: middle; }
.hist-badge-btn:focus-visible { outline: 2px solid var(--action-primary); outline-offset: 2px; border-radius: 999px; }
.act-log { display: flex; flex-direction: column; }
.act-item {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--border-soft, var(--border));
}
.act-item:last-child { border-bottom: none; }
.act-ico { color: var(--muted); display: grid; place-items: center; padding-top: 2px; }
.act-sentence { font-size: 13.5px; color: var(--text-strong); line-height: 1.45; }
.act-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
/* Interview assessment — interactive form. Calm and spacious: dark neutral
   headings, light-gray dividers only between sections and rows, green (the
   app's action colour) for selections, red kept for warnings and errors. The
   printable form keeps the approved sheet styling (lib/assessment.js).
   Scoped to .assess / .assess-* so nothing else in the ATS changes. */
.assess { --assess-red: var(--brand-dark, #b01420); --assess-line: var(--border, #e6e9ee); --assess-soft: var(--border-soft, #f0f2f5); --assess-accent: var(--green, #008064); --assess-accent-dark: var(--green-700, #00664f); --assess-accent-tint: var(--green-50, #e6f4f0); }
.assess-doc { background: #fff; color: var(--ink); border: 0; padding: 24px; max-width: 920px; line-height: 1.5; }
.assess-doc-title { color: var(--ink); font-size: 18px; font-weight: 600; text-align: left; letter-spacing: 0; margin: 0 0 24px; }
.assess-sec { margin: 0; }
.assess-sec + .assess-sec { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--assess-soft); }
.assess-sec-title { color: var(--ink); font-size: 16px; font-weight: 600; margin: 0 0 4px; padding: 0; border: 0; }
.assess-sec-meta { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.assess-instruction { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.assess-muted { color: var(--muted); font-size: 12px; }
/* Candidate context: one quiet panel, label above value. */
.assess-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0; padding: 16px 24px; background: var(--surface-2, #f4f5f7); border-radius: 8px; border: 0; }
.assess-info-cell { border: 0; min-width: 0; }
/* An odd field out (a withheld neighbour) takes the full row instead of leaving a hole. */
.assess-info-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
.assess-info dt { background: none; color: var(--muted); font-weight: 500; font-size: 12px; padding: 0; margin: 0 0 4px; }
.assess-info dd { margin: 0; padding: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.assess-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; margin-top: 4px; }
/* The score column is sized for its six buttons at every width; Notes takes the rest (AR-05). */
.assess-col-crit { width: 18%; } .assess-col-desc { width: 28%; } .assess-col-score { width: 248px; }
.assess-table thead th { background: none; color: var(--muted); text-align: left; font-weight: 600; font-size: 12px; text-transform: none; letter-spacing: normal; padding: 0 12px 8px; border: 0; border-bottom: 1px solid var(--assess-line); }
.assess-table td, .assess-table tbody th { border: 0; border-bottom: 1px solid var(--assess-soft); padding: 12px; vertical-align: middle; text-align: left; }
.assess-table tbody tr:last-child td, .assess-table tbody tr:last-child th { border-bottom: 0; }
.assess-table tbody th { font-weight: 600; color: var(--ink); }
.assess-desc { color: var(--ink-soft); }
.assess-seg { display: inline-flex; gap: 4px; border: 0; overflow: visible; }
.assess-seg-btn { border: 1px solid var(--assess-line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; min-width: 32px; height: 32px; padding: 0 4px; cursor: pointer; }
.assess-seg-btn:last-child { min-width: 40px; }
.assess-seg-btn:hover { background: var(--assess-accent-tint); border-color: var(--green-border, #b7dcd3); }
.assess-seg-btn.on { background: var(--assess-accent); border-color: var(--assess-accent); color: #fff; }
.assess-seg-btn:focus-visible { outline: 2px solid var(--assess-accent); outline-offset: 2px; position: relative; }
.assess-score-val { display: inline-flex; align-items: baseline; gap: 4px; }
.assess-score-val strong { color: var(--ink); font-size: 15px; }
.assess-score-val span { color: var(--ink-soft); font-size: 13px; }
.assess-score-empty { color: var(--muted); }
.assess-notes textarea { width: 100%; min-height: 40px; resize: vertical; border: 1px solid var(--assess-line); background: #fff; padding: 8px; font: inherit; font-size: 13px; border-radius: 8px; }
.assess-notes textarea:hover { border-color: var(--green-border, #b7dcd3); }
.assess-notes textarea:focus-visible { outline: 2px solid var(--assess-accent); outline-offset: 0; border-color: var(--assess-accent); }
.assess-notes-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.assess-guide { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.assess-summary { font-size: 13px; margin: 8px 0 0; text-align: right; color: var(--ink-soft); }
.assess-note { font-size: 13px; margin: 12px 0; line-height: 1.5; }
.assess-warn { color: var(--assess-red); }
.assess-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 4px 0; font-size: 13px; }
.assess-flags + .assess-flags { margin-top: 12px; }
.assess-flags-who { flex-basis: 100%; font-size: 12px; font-weight: 600; color: var(--muted); }
.assess-flag { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.assess-flag input:focus-visible, .assess-choice input:focus-visible { outline: 2px solid var(--assess-accent); outline-offset: 2px; }
.assess-flag input, .assess-choice input { accent-color: var(--assess-accent); }
.assess-final { margin-bottom: 16px; }
.assess-decision, .assess-fit-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; margin: 0 0 12px; }
.assess-box { white-space: nowrap; color: var(--ink-soft); }
.assess-box.on { color: var(--assess-accent-dark); font-weight: 600; }
.assess-choice { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.assess-fit { border-top: 1px solid var(--assess-soft); padding-top: 16px; margin-top: 16px; }
.assess-fit-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 16px; align-items: start; margin: 12px 0; font-size: 13px; }
.assess-fit-row label { color: var(--ink-soft); padding-top: 8px; }
.assess-fit-row select, .assess-fit-row textarea { width: 100%; font: inherit; font-size: 13px; }
.assess-fit-row textarea { min-height: 64px; border-radius: 8px; }
.assess-fit-row select { max-width: 320px; }
.assess-fit-value { padding-top: 8px; color: var(--ink); }
.assess-just-text { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 24px; }
.assess-final-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.assess-bar { background: var(--surface-2, #f4f5f7); border-top: 1px solid var(--assess-line); margin: 32px -24px -24px; padding: 16px 24px; display: grid; gap: 12px; }
.assess-bar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.assess-bar-state { font-size: 13px; }
.assess-actions { display: flex; justify-content: flex-end; margin-top: 12px; max-width: 920px; }
.assess-drawer { max-width: 960px; margin-left: auto; height: 100vh; border-radius: 0; display: flex; flex-direction: column; }
.assess-drawer .modal-body { flex: 1; overflow-y: auto; }
.assess-pol { overflow-x: auto; }
.assess-pol-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.assess-pol-table th, .assess-pol-table td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; }
.assess-pol-table thead th { font-size: 12px; color: var(--muted); font-weight: 700; }
.assess-pol-cell { text-align: center; white-space: nowrap; }
.assess-pol-section th { font-weight: 700; }
.assess-pol-field th { padding-left: 24px; font-weight: 500; }
.assess-pol-group th { background: var(--brand-tint, #fcefef); color: var(--brand-dark, #b01420); font-weight: 700; }
.assess-pol-reset { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 4px; font-size: 12px; }
/* Tablet and phone: each criterion becomes a stacked card — name, guidance,
   score row, then full-width notes — instead of four squeezed columns. */
@media (max-width: 900px) {
  .assess-table, .assess-table tbody, .assess-table tr, .assess-table td, .assess-table tbody th { display: block; width: 100%; }
  .assess-table thead, .assess-table colgroup { display: none; }
  .assess-table tr { border-bottom: 1px solid var(--assess-soft); padding: 16px 0; }
  .assess-table tbody tr:last-child { border-bottom: 0; }
  .assess-table td, .assess-table tbody th { border: 0; padding: 0; }
  .assess-table tbody th { font-size: 14px; }
  .assess-table .assess-desc { margin-top: 4px; }
  .assess-table .assess-score { margin-top: 12px; }
  .assess-table .assess-notes { margin-top: 8px; }
}
@media (max-width: 640px) {
  .assess-doc { padding: 16px; }
  .assess-info { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .assess-info-cell:last-child:nth-child(odd) { grid-column: auto; }
  .assess-fit-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .assess-fit-row label { padding-top: 0; }
  .assess-bar { margin: 24px -16px -16px; padding: 16px; }
  .assess-seg-btn { min-width: 40px; height: 40px; }
}

/* Sign-in — the system's own palette: light grey canvas (as inside the app),
   one white bordered card, Arabtec red only as hard accents (top rule, eyebrow
   dash, full stop), a 4% logo watermark. Own signin-* classes; the legacy
   .login-* rules above (artwork background, dark card) are no longer rendered. */
.signin { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--canvas, #f4f5f7); color: var(--ink); border-top: 4px solid var(--brand, #d01827); }
.signin-header { position: relative; z-index: 1; padding: 24px 32px 0; }
.signin-main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1120px; margin-inline: auto; padding: 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 32px; }
.signin-intro { max-width: 520px; }
.signin-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.signin-dash { flex: none; width: 24px; height: 2px; background: var(--brand, #d01827); }
.signin-title { font-family: var(--font-display, 'Inter Tight', Inter, Arial, sans-serif); font-size: clamp(36px, 5vw, 60px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1; color: var(--ink); margin: 0 0 24px; }
.signin-stop { color: var(--brand, #d01827); }
.signin-lede { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 440px; margin: 0; }
.signin-card { width: 100%; background: var(--surface, #fff); border: 1px solid var(--line, rgba(26, 26, 26, .1));
  border-radius: var(--card-radius, 10px); padding: 32px; }
.signin-heading { font-family: var(--font-display, 'Inter Tight', Inter, Arial, sans-serif); font-size: 22px; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink); margin: 0 0 4px; }
.signin-sub { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.signin-card .field { margin-bottom: 16px; }
.signin-card .field input { width: 100%; background: var(--surface, #fff); }
.signin-card .error-banner { margin-bottom: 16px; }
.signin-password { position: relative; }
.signin-password input { padding-inline-end: 32px; }
.signin-reveal { position: absolute; top: 50%; inset-inline-end: 8px; transform: translateY(-50%); display: grid; place-items: center;
  border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 4px; cursor: pointer; }
.signin-reveal:hover { color: var(--ink); }
.signin-reveal:focus-visible, .signin-link:focus-visible { outline: 2px solid var(--green-700, #00664f); outline-offset: 2px; }
.signin-hint { font-size: 12px; color: var(--brand-dark, #b01420); margin: 4px 0 0; }
.signin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 24px; font-size: 13px; }
.signin-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--green-700, #00664f); cursor: pointer; border-radius: 4px; }
.signin-link:hover { text-decoration: underline; }
.signin-info { font-size: 13px; line-height: 1.5; color: var(--ink-soft); background: var(--canvas, #f4f5f7); border: 1px solid var(--line, rgba(26, 26, 26, .1));
  border-radius: 8px; padding: 12px; margin-bottom: 16px; }
.signin-footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  padding: 16px 32px 24px; font-size: 12px; color: var(--muted); }
.signin-watermark { position: absolute; z-index: 0; inset-inline-end: -32px; inset-block-end: -32px; width: 420px;
  opacity: .025; pointer-events: none; user-select: none; }
@media (max-width: 860px) {
  .signin-header { padding: 16px 16px 0; }
  .signin-main { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: 24px; padding: 24px 16px; }
  .signin-lede { font-size: 15px; }
  .signin-card { padding: 24px; }
  .signin-footer { flex-direction: column; padding: 16px; }
  .signin-watermark { display: none; }
}

/* Footer quotes editor (Control Center › Footer quotes). */
.kl-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.kl-toolbar input[type=search] { flex: 1 1 240px; min-width: 0; }
.kl-bulk { border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 16px; background: var(--surface-2, #f4f5f7); }
.kl-bulk label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.kl-editor .kl-bulk textarea { width: 100%; min-height: 240px; }
.kl-form { display: grid; grid-template-columns: minmax(0, 1fr) 200px 160px; gap: 12px 16px; align-items: start; border: 1px solid var(--green-border, #b7dcd3); background: var(--green-50, #e6f4f0); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.kl-form .field { margin: 0; }
.kl-form textarea, .kl-form input, .kl-form select { width: 100%; }
.kl-editor .kl-form textarea { min-height: 64px; }
.kl-form-quote { position: relative; }
.kl-count { display: block; text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.kl-count.error, .kl-form-error { color: var(--critical, #c0392b); }
.kl-form-error { grid-column: 1 / -1; font-size: 13px; }
.kl-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.kl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kl-table thead th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 12px 8px; border-bottom: 1px solid var(--border); }
.kl-table td { padding: 12px; border-bottom: 1px solid var(--border-soft, #f0f2f5); vertical-align: top; }
.kl-table .kl-q { color: var(--ink); line-height: 1.5; }
.kl-table .kl-by { color: var(--ink-soft); white-space: nowrap; }
.kl-table .kl-t { color: var(--ink-soft); white-space: nowrap; text-transform: capitalize; }
.kl-table .kl-actions { white-space: nowrap; text-align: right; }
.kl-table .kl-form { margin: 0; }
.kl-savebar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--border); padding-top: 12px; }
@media (max-width: 640px) {
  .kl-form { grid-template-columns: minmax(0, 1fr); }
  .kl-table .kl-by, .kl-table .kl-t { white-space: normal; }
}

/* Director dashboard (owner review, 4 Oct 2026): narrow-down bar, attention
   list first, six figures, details on demand. */
.dash-view-switch { margin: 0 0 16px; }
.dash-view-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.dash-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0 0 16px; }
.dash-filter label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); min-width: 180px; }
.dash-filter select { min-width: 180px; }
.dash-filter-scope { font-size: 13px; color: var(--ink-soft); padding-bottom: 8px; }
.dash-attention { margin-bottom: 16px; }
.dash-allclear { padding: 16px 24px; font-size: 14px; color: var(--ink-soft); }
.dash-more { margin: 4px 16px 12px; }
.dash-kpi-row.dash-kpi-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dash-details-toggle { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; margin: 16px 0; }
.dash-details-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dash-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .dash-kpi-row.dash-kpi-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .dash-filter label, .dash-filter select { min-width: 0; width: 100%; }
  .dash-kpi-row.dash-kpi-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Hiring Requests — role panels (owner review, 4 Oct 2026). */
.req-overview, .req-control { margin: 0 0 16px; }
.req-overview .dash-details-toggle { margin: 12px 0; }
.req-process { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.req-step { display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); position: relative; }
.req-step:hover { border-color: var(--green-border, #b7dcd3); background: var(--green-50, #e6f4f0); }
.req-step:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.req-step-n { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.req-step-l { font-size: 13px; color: var(--ink-soft); }
.req-step-arrow { color: var(--muted); margin-left: 4px; }
.req-mine { display: inline-flex; gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: 8px; background: var(--surface-2, #f4f5f7); }
.owner-cell { display: grid; gap: 4px; }
.owner-actions { display: inline-flex; gap: 4px; }
.text-risk { color: var(--critical, #c0392b); font-weight: 600; }
.req-control-stack { display: grid; gap: 12px; }
