/* Workforce Migration — design system.
 *
 * Tokens and components lifted from prototype_v1.html (its inline styles,
 * normalised into classes): navy sidebar, teal accent, IBM Plex, pill badges
 * for fitment bands. Every screen composes these; a screen that needs a new
 * look adds a component here rather than inline styles in its template.
 */
:root {
  /* Red Sea Global brand palette.
   * Main: Navy Blue #04253C, Gold #B89C67, Black #000000.
   * Secondary (charts, statuses): Crystal Waters #54C0E8, Blue Lagoon #007481,
   * Blooming Nature #00946E, Majestic Mountains #852E2C, Thriving Corals #FF5C35,
   * Sandy Dunes #F4B223, Volcanic Ash #6F7271.
   * The *-fill tokens are the pure brand colours for bars, dots and charts;
   * the plain tokens are darkened just enough to read as small text. */
  --rsg-navy: #04253c;
  --rsg-gold: #b89c67;
  --rsg-crystal: #54c0e8;
  --rsg-lagoon: #007481;
  --rsg-nature: #00946e;
  --rsg-mountain: #852e2c;
  --rsg-coral: #ff5c35;
  --rsg-dunes: #f4b223;
  --rsg-ash: #6f7271;

  --navy: var(--rsg-navy);
  --navy-2: #0a3350;
  --ink: #0c1a24;
  --ink-2: #33414c;
  --muted: #5f6668;
  --faint: #979c9b;
  --line: #e2e6ea;
  --line-2: #eef1f3;
  --field: #d3d9de;
  --bg: #eef1f3;
  --panel: #ffffff;
  --soft: #f6f8f9;
  --accent: var(--rsg-navy);
  --accent-2: #0a3a5c;
  --accent-soft: #e5ebf0;
  --accent-tint: #f0f4f7;
  --gold: var(--rsg-gold);
  --gold-ink: #8a6f3e;
  --gold-soft: #f6f1e7;
  --gold-bd: #e4d7bd;
  --good: #007a5b;   --good-bg: #e3f3ee;   --good-bd: #b5dfd2;   --good-fill: var(--rsg-nature);
  --warn: #9a6700;   --warn-bg: #fdf4de;   --warn-bd: #f3dca2;   --warn-fill: var(--rsg-dunes);
  --bad: var(--rsg-mountain); --bad-bg: #f7e9e8; --bad-bd: #e6c3c2; --bad-fill: var(--rsg-mountain);
  --info: var(--rsg-lagoon); --info-bg: #e2f2f4; --info-fill: var(--rsg-crystal);
  --violet: var(--gold-ink); --violet-bg: var(--gold-soft);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 14px 40px rgba(4, 37, 60, .16);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); font-size: 13px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
[x-cloak] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 11px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.right { text-align: right; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-60-40 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3, .grid-60-40 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 236px 1fr; height: 100vh; overflow: hidden;
  /* One full-height row: an overlay wrapper (the confirm dialog) must not open a second row and halve the page. */
  grid-template-rows: 100vh; grid-auto-rows: 0; }
.side { background: var(--navy); color: #e8edf3; display: flex; flex-direction: column; overflow-y: auto; }
.brand { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-logo { display: block; height: 40px; width: auto; max-width: 100%; }
.brand-app { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.25; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; letter-spacing: .02em; color: #fff; flex-shrink: 0; }
.brand-t { font-size: 14px; font-weight: 600; line-height: 1.2; }
.brand-s { font-size: 11px; color: #8fa3b5; }
.brand-mark.gold { background: var(--gold); }
.nav { padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-head { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6c8098; padding: 0 10px 6px; }
.nav-group { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6c8098; padding: 14px 10px 6px; }
.nav > div:first-child .nav-group { padding-top: 0; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: #b7c5d1; border: 0; background: none; width: 100%; text-align: left; font-size: 13px; font-weight: 500; }
.nav-item:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-item.active { background: rgba(184,156,103,.22); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav-item.active .nav-ico { color: var(--gold); }
.nav-item.sub { padding: 9px 10px 9px 32px; color: #93a7b8; }
.nav-item.parent-active { color: #fff; }
.nav-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0; }
.nav-chev { font-size: 10px; opacity: .6; transition: transform .15s; }
.nav-chev.open { transform: rotate(90deg); }
.nav-ico { width: 18px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-badge { margin-left: auto; background: var(--rsg-coral); color: #fff; font-size: 10px; font-weight: 600; border-radius: 9px; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.side-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: #6c8098; }

.main { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 55px; }
.topbar-title { font-size: 14px; font-weight: 600; }
.content { flex: 1; overflow-y: auto; padding: 24px 24px 60px; }
.content-inner { width: 100%; }

.page-h { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h h1 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.page-h p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; max-width: 760px; line-height: 1.55; }
.crumb { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; margin-bottom: 6px; cursor: pointer; background: none; border: 0; padding: 0; }
.crumb:hover { color: var(--accent); }

/* ── Header controls ───────────────────────────────────────────────────── */
.ex-switch { position: relative; }
.ex-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); background: #f1f5f8; border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.ex-btn:hover { border-color: var(--accent); }
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 60; padding: 6px; }
.menu.right { left: auto; right: 0; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 600; background: none; border: 0; width: 100%; text-align: left; }
.menu-item:hover { background: var(--accent-tint); }
.menu-sep { border-top: 1px solid var(--line-2); margin: 6px 0; }
.me { display: flex; align-items: center; gap: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.me-name { font-size: 12px; font-weight: 600; line-height: 1.2; }
.me-role { font-size: 10px; color: var(--muted); }

/* ── Cards, KPIs ───────────────────────────────────────────────────────── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 20px; }
.card-h { padding: 12px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card-t { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-b { padding: 16px 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; border-left: 3px solid var(--accent); }
.kpi-v { font-size: 24px; font-weight: 700; line-height: 1; }
.kpi-l { font-size: 12px; font-weight: 600; margin-top: 8px; }
.kpi-s { font-size: 11px; color: var(--muted); margin-top: 2px; }
.hero { background: linear-gradient(135deg, var(--rsg-navy) 0%, #0a3a5a 65%, var(--rsg-lagoon) 140%); color: #e8edf3; border-radius: 14px; padding: 24px 28px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero h2 { margin: 0; font-size: 18px; }
.hero p { margin: 6px 0 0; color: #c6d3de; font-size: 12.5px; }
.hero h2 { color: #fff; }
.hero-stat { text-align: left; min-width: 90px; }
.hero-stat b { display: block; font-size: 28px; font-weight: 700; line-height: 1; color: #fff; }
.hero-stat span { display: block; font-size: 11px; color: #9fb4c6; margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }

/* ── Bars, donut, funnel ───────────────────────────────────────────────── */
.bar { flex: 1; background: #f1f4f6; border-radius: 6px; height: 26px; overflow: hidden; position: relative; }
.bar > i { display: flex; align-items: center; justify-content: flex-end; height: 100%; border-radius: 6px; background: var(--accent); padding-right: 8px; color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; font-style: normal; min-width: 26px; transition: width .3s; }
/* Funnel stages step through the brand palette, as the prototype does. */
.funnel > .row:nth-of-type(2) .bar > i { background: var(--rsg-lagoon); }
.funnel > .row:nth-of-type(3) .bar > i { background: var(--rsg-gold); }
.funnel > .row:nth-of-type(4) .bar > i { background: var(--gold-ink); }
.funnel > .row:nth-of-type(5) .bar > i { background: var(--rsg-nature); }
.bar.thin { height: 8px; }
.bar.thin > i { padding: 0; min-width: 0; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #d3dbe1; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; flex: none; }
.spinner.light { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.donut { width: 118px; height: 118px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.donut > div { width: 78px; height: 78px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.legend b, .legend .mono { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ── Buttons & fields ──────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--field); background: #fff; color: var(--ink-2); border-radius: 7px; padding: 8px 13px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); color: #fff; }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { background: var(--gold-ink); border-color: var(--gold-ink); color: #fff; }
.btn.good-o { border-color: var(--good-bd); color: var(--good); }
.btn.good-o.on { background: var(--good); border-color: var(--good); color: #fff; }
.btn.bad-o { border-color: var(--bad-bd); color: var(--bad); }
.btn.bad-o.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 11px; border-radius: 6px; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
.ico { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--field); color: var(--ink-2); }
.btn.primary:disabled:hover { background: var(--accent); color: #fff; }
.input, .select, .textarea { border: 1px solid var(--field); border-radius: 7px; padding: 8px 10px; font-size: 12px; background: #fff; width: 100%; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid rgba(4,37,60,.18); border-color: var(--accent); }
.textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.search { width: 240px; max-width: 100%; border-radius: 8px; padding: 8px 12px; }
.label { font-size: 11px; color: var(--muted); margin-bottom: 4px; display: block; font-weight: 500; }
.field { display: flex; flex-direction: column; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; }
.errors { color: var(--bad); font-size: 11.5px; margin-top: 4px; }
.req { color: var(--bad); font-weight: 700; }
/* Add employee steps */
.steps { display: flex; gap: 2px; padding: 10px 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.step { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 0; background: none; border-radius: 999px; font: inherit; font-size: 12px; color: var(--muted, #64748b); cursor: pointer; white-space: nowrap; }
.step-n { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e8eef3; font-size: 11px; font-weight: 700; }
.step.on { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.step.on .step-n { background: var(--accent); color: #fff; }
.step.done .step-n { background: var(--good-fill); color: #fff; }
.dropzone { border: 1.5px dashed #c3cdd6; border-radius: 12px; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.dropzone.filled { border-style: solid; border-color: var(--accent); background: var(--accent-tint); }
.dropzone.bad { border-color: var(--bad); }
.dz-t { font-weight: 600; }
.btn.ai { background: linear-gradient(135deg, var(--rsg-navy), var(--rsg-lagoon)); color: #fff; border-color: transparent; display: inline-flex; align-items: center; gap: 6px; }
.btn.ai:disabled { opacity: .7; }
.btn.icon { padding: 4px 8px; }
.entry-table { max-height: calc(100vh - 330px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.entry-table .t td { padding: 6px 8px; }
.entry-table .t th { padding: 8px; }
.entry-table .input, .entry-table .select { width: 100%; }
.empty-box { border: 1px dashed var(--line); border-radius: 10px; padding: 22px; text-align: center; color: var(--muted, #64748b); font-size: 13px; }
.skill-tags .tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 12.5px; }
.tag-x { border: 0; background: none; cursor: pointer; color: inherit; opacity: .6; padding: 0; font-size: 11px; }
.tag-x:hover { opacity: 1; }
.input.bad, .select.bad { border-color: var(--bad); }

.seg { display: inline-flex; background: #e3e8ec; border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; border-radius: 6px; padding: 6px 16px; font-size: 12px; font-weight: 600; cursor: pointer; background: transparent; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(4,37,60,.08); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { border: 0; background: none; padding: 9px 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--accent); border-bottom-color: var(--gold); }

/* ── Pills & tags ──────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; border-radius: 4px; padding: 2px 7px; white-space: nowrap; background: #f1f3f5; color: var(--muted); }
.pill.High, .pill.good { background: var(--good-bg); color: var(--good); }
.pill.Medium, .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.Low, .pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill.violet { background: var(--violet-bg); color: var(--violet); }
.pill.dark { background: var(--navy); color: #fff; }
.tag { display: inline-flex; font-size: 10px; font-weight: 600; border-radius: 4px; padding: 2px 7px; background: #f1f3f5; color: var(--faint); white-space: nowrap; }
.tag.ok { background: var(--good-bg); color: var(--good); }
.tag.no { background: var(--bad-bg); color: var(--bad); }
.tag.hi { background: var(--violet-bg); color: var(--violet); }
.tag.info { background: var(--info-bg); color: var(--info); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pct { font-family: var(--mono); font-weight: 600; }
.ref { display: inline-flex; font-size: 10px; font-weight: 600; color: var(--info); background: var(--info-bg); border-radius: 4px; padding: 1px 6px; letter-spacing: .02em; }

/* ── Tables ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 12px; }
table.t th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); background: transparent; white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t th:first-child, table.t td:first-child { padding-left: 20px; }
table.t th:last-child, table.t td:last-child { padding-right: 20px; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover td { background: var(--soft); }
.who { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.who-n { font-size: 13px; font-weight: 500; }
.who-s { font-size: 11px; color: var(--muted); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }

.pager { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.pager button { min-width: 30px; height: 30px; border: 1px solid var(--field); background: #fff; color: var(--ink-2); border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 600; }
.pager button:hover:not(:disabled):not(.on) { border-color: var(--accent); }
.pager button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ── Options (role pickers) ────────────────────────────────────────────── */
.option { display: flex; align-items: center; gap: 12px; border: 1.5px solid #dbe1e6; border-radius: 10px; padding: 12px 14px; background: #fff; cursor: pointer; }
.option:hover { border-color: var(--accent); }
.option.on { border-color: var(--accent); background: var(--accent-tint); }
.option.off { opacity: .55; cursor: default; }
.radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c3cbd1; background: #fff; flex-shrink: 0; }
.option.on .radio { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.rank { width: 24px; height: 24px; border-radius: 6px; background: #f1f3f5; color: var(--muted); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── Notices ───────────────────────────────────────────────────────────── */
.notice { border-radius: 10px; padding: 12px 14px; font-size: 12.5px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; border: 1px solid; }
.notice.info { background: var(--info-bg); border-color: #bfe0e4; color: #00535c; }
.notice.warn { background: var(--warn-bg); border-color: var(--warn-bd); color: #6b4800; }
.notice.bad { background: var(--bad-bg); border-color: var(--bad-bd); color: #6a2422; }
.notice.good { background: var(--good-bg); border-color: var(--good-bd); color: #005a43; }

/* ── Drawer, modal, toast ──────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(4,37,60,.4); z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100%; background: #fff; z-index: 90; box-shadow: -12px 0 40px rgba(4,37,60,.18); display: flex; flex-direction: column; }
.drawer.wide { width: 720px; }
.drawer.wide.xl { width: 900px; }
.drawer-h { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.drawer-t { font-size: 14px; font-weight: 700; flex: 1; }
.drawer-b { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.x { border: 0; background: #f1f3f5; color: var(--muted); border-radius: 7px; width: 28px; height: 28px; cursor: pointer; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 520px; max-width: calc(100% - 32px); max-height: calc(100% - 48px); overflow: auto; background: #fff; z-index: 90; border-radius: 12px; box-shadow: 0 24px 60px rgba(4,37,60,.3); }
.modal.wide { width: 760px; }
.toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 120; }
.toast { background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 9px; font-size: 12.5px; box-shadow: var(--shadow); max-width: 420px; }
.toast.bad { background: var(--bad); }
.toast.good { background: var(--good); }
.toast.gold { background: var(--gold); }

/* ── Record (employee / job detail) ────────────────────────────────────── */
.record { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .record { grid-template-columns: 1fr; } }
.secnav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.secnav button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.secnav button.on { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.kv > div { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.kv dt { font-size: 11px; color: var(--muted); margin: 0 0 3px; }
.kv dd { margin: 0; font-size: 13px; font-weight: 500; word-break: break-word; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 4px; flex-shrink: 0; }

.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.score-cell { background: var(--soft); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; }
.score-cell b { font-family: var(--mono); font-size: 15px; }
.score-cell span { display: block; font-size: 10.5px; color: var(--muted); }

.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix .matrix-group td { background: var(--soft); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 7px; padding-bottom: 7px; }
table.t.matrix td.matrix-sub { padding-left: 36px; }
[dir="rtl"] table.t.matrix td.matrix-sub { padding-left: 12px; padding-right: 36px; }
.info-tip { position: relative; display: inline-block; color: var(--faint); font-weight: 400; cursor: help; outline: none; }
.info-tip:hover, .info-tip:focus { color: var(--accent); }
.info-tip-body { display: none; position: absolute; z-index: 30; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 240px;
  padding: 8px 10px; border-radius: 6px; background: #1f2a37; color: #fff; font-size: 12px; font-weight: 400; line-height: 1.4; text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.info-tip:hover .info-tip-body, .info-tip:focus .info-tip-body { display: block; }

/* ── Auth & public pages ───────────────────────────────────────────────── */
.auth { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 100vh; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none !important; } }
.auth-art { position: relative; background: linear-gradient(150deg, var(--rsg-navy) 0%, #0a3a5a 55%, var(--rsg-lagoon) 130%); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 44px; color: #fff; }
.auth-art h1 { font-size: 32px; line-height: 1.2; max-width: 460px; margin: 0; }
.auth-art p { font-size: 14px; color: #c6d3de; max-width: 420px; line-height: 1.6; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-box { width: 100%; max-width: 360px; }
.auth-logo { display: block; height: 48px; width: auto; margin-bottom: 22px; align-self: flex-start; }
.auth-art-logo { display: block; height: 52px; width: auto; align-self: flex-start; }
.auth-box h2 { font-size: 22px; margin: 0 0 6px; }
.pub-logo { display: block; height: 40px; width: auto; flex-shrink: 0; }
.public { max-width: 720px; margin: 0 auto; padding: 36px 20px 60px; }

[dir="rtl"] .nav-item, [dir="rtl"] .menu-item, [dir="rtl"] table.t th { text-align: right; }
[dir="rtl"] .nav-item.sub { padding-left: 10px; padding-right: 32px; }
[dir="rtl"] .nav-item.active { box-shadow: inset -3px 0 0 var(--gold); }
[dir="rtl"] .nav-chev { transform: rotate(180deg); }
[dir="rtl"] .nav-chev.open { transform: rotate(90deg); }
[dir="rtl"] .nav-badge { margin-left: 0; margin-right: auto; }
[dir="rtl"] .drawer { right: auto; left: 0; }

/* Employee record — view mode */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 24px; }
.rv-l { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.rv-v { font-size: 14px; margin-top: 4px; font-weight: 500; }
.rv-big { font-size: 20px; font-weight: 700; margin-top: 4px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fbfcfc; }
.org-path { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .org-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } .org-step::after { display: none; } }
.org-step { display: inline-flex; flex-direction: column; padding: 8px 14px 8px 12px; background: var(--accent-tint); border-radius: 10px; position: relative; }
.org-step:not(:last-child)::after { content: "›"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--gold); font-weight: 700; }
.org-l { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.org-v { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 2px; }
.perf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .perf-grid { grid-template-columns: 1fr; } }
.perf-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.perf-score { font-size: 28px; font-weight: 700; margin: 6px 0 8px; }
.perf-bar { height: 6px; background: #edf0f2; border-radius: 3px; overflow: hidden; }
.perf-bar span { display: block; height: 100%; border-radius: 3px; }
.perf-label { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; display: inline-block; margin-top: 6px; }
.perf-card .perf-label { margin-top: 0; }
.perf-label.exceeds, .perf-bar .exceeds { background: var(--good-bg); color: var(--good); }
.perf-label.meets, .perf-bar .meets { background: var(--info-bg); color: var(--info); }
.perf-label.partial, .perf-bar .partial { background: var(--warn-bg); color: var(--warn); }
.perf-label.below, .perf-bar .below { background: var(--bad-bg); color: var(--bad); }
.perf-label.none { background: var(--line-2); color: var(--muted); }
.perf-bar .exceeds { background: var(--good-fill); } .perf-bar .meets { background: var(--info); } .perf-bar .partial { background: var(--warn-fill); } .perf-bar .below { background: var(--bad-fill); }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--good); background: var(--good-bg); border-color: var(--good-bd); }
.status.bad { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-bd); }
.status.hi { color: var(--gold-ink); background: var(--gold-soft); border-color: var(--gold-bd); }
.status.off { color: var(--muted); background: #f3f5f6; border-color: var(--line); }
.tline { position: relative; padding-left: 4px; }
.tl-item { display: grid; grid-template-columns: 18px 120px 1fr; gap: 12px; position: relative; padding-bottom: 20px; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: -2px; width: 2px; background: #d8dfe4; }
.tl-mark { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--accent); background: #fff; margin-top: 3px; position: relative; z-index: 1; }
.tl-item.now .tl-mark { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.tl-when { font-size: 12.5px; font-weight: 600; color: var(--accent); padding-top: 2px; }
.tl-t { font-weight: 600; }
.tl-s { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; }
.tag.skill { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-soft); padding: 6px 12px; font-size: 12.5px; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.cert { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cert-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--good-bg); color: var(--good); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }

/* Jobs — search, filter popover, Add job steps, record */
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.search-box { position: relative; max-width: 420px; }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-box .input { padding-left: 32px; }
.filter-wrap { position: relative; margin-left: auto; }
.icon-btn { position: relative; width: 36px; height: 34px; padding: 0; }
.icon-btn.on { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.icon-btn .badge { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.filter-pop { position: absolute; top: calc(100% + 8px); right: 0; width: 460px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 70; }
[dir="rtl"] .filter-pop { right: auto; left: 0; }
.filter-pop-h { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: 13px; }
.filter-pop-b { padding: 14px 16px; max-height: 60vh; overflow-y: auto; }
.filter-pop-f { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line-2); background: var(--soft); border-radius: 0 0 var(--radius) var(--radius); }
.link-btn { border: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.step-head { margin-bottom: 18px; }
.step-t { font-size: 16px; font-weight: 700; }
.dz-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.input-unit { position: relative; }
.input-unit span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--faint); pointer-events: none; }
.input-unit .input { padding-right: 52px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--field); background: #fff; border-radius: 999px; padding: 6px 12px 6px 7px; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip-ic { width: 18px; height: 18px; border-radius: 50%; background: #eef1f4; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.chip.on { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-2); font-weight: 600; }
.chip.on .chip-ic { background: var(--accent); color: #fff; }
.comp-group { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; --ct: var(--muted); --ct-bg: #f3f5f7; }
.comp-group.ct-core { --ct: var(--accent); --ct-bg: var(--accent-tint); }
.comp-group.ct-leadership { --ct: var(--gold-ink); --ct-bg: var(--gold-soft); }
.comp-group.ct-technical { --ct: var(--info); --ct-bg: var(--info-bg); }
.comp-group-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--ct-bg); font-weight: 700; font-size: 12.5px; color: var(--ct); }
.comp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ct); }
.comp-row { display: grid; grid-template-columns: 1fr 170px 34px; gap: 8px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--line-2); }
.comp-row .comp-desc { grid-column: 1 / -1; font-size: 12px; }
.comp-empty { padding: 12px 14px; font-size: 12px; color: var(--faint); border-top: 1px solid var(--line-2); }
.comp-view { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--line-2); }
.lvl { display: inline-flex; gap: 3px; }
.lvl i { width: 14px; height: 6px; border-radius: 3px; background: #e3e8ec; }
.lvl i.on { background: var(--ct); }
.lvl-l { font-size: 12px; font-weight: 600; color: var(--ink-2); min-width: 80px; }
.switch-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.switch-row b { display: block; font-size: 13px; margin-bottom: 2px; }
.switch { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: #cdd4d9; position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(4,37,60,.2); transition: transform .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(16px); }
.job-mark { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--rsg-lagoon), var(--rsg-navy)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 13px; flex-shrink: 0; margin-top: 18px; }
.file-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.file-card:hover { border-color: var(--accent); text-decoration: none; }
.file-card b { display: block; font-size: 13px; }
.file-ic { width: 36px; height: 40px; border-radius: 6px; background: var(--accent-tint); color: var(--accent); font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .04em; }
.jd-text { white-space: pre-wrap; line-height: 1.7; font-size: 13px; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; max-height: 60vh; overflow-y: auto; }
.link-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--ink); }
.link-row:hover { border-color: var(--accent); text-decoration: none; }
@media (max-width: 720px) { .comp-row { grid-template-columns: 1fr 34px; } .comp-row .select { grid-column: 1 / -1; grid-row: 2; } .filter-pop .form-grid { grid-template-columns: 1fr; } }
.field > .seg { align-self: flex-start; }

/* The app's dropdown (static/js/dropdown.js) — stands in for every <select class="select"> and datalist */
.select.dd-native { display: none !important; }
.dd-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; border: 1px solid var(--field); border-radius: 7px; padding: 7px 10px; font: inherit; font-size: 12px; color: var(--ink); background: #fff; cursor: pointer; text-align: left; }
.dd-btn .dd-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn svg { color: var(--faint); flex-shrink: 0; transition: transform .15s; }
.dd-btn:hover { border-color: #b5c0c8; }
.dd-btn:focus-visible, .dd-btn.open { outline: 2px solid rgba(4,37,60,.18); border-color: var(--accent); }
.dd-btn.open svg { transform: rotate(180deg); color: var(--accent); }
.dd-btn.placeholder .dd-v { color: var(--faint); }
.dd-btn.bad { border-color: var(--bad); }
.dd-btn:disabled { background: var(--soft); color: var(--faint); cursor: not-allowed; }
.dd-menu { position: fixed; z-index: 200; max-width: min(420px, calc(100vw - 16px)); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(4,37,60,.16), 0 2px 6px rgba(4,37,60,.06); padding: 4px; display: flex; flex-direction: column; }
.dd-search { border: 0; border-bottom: 1px solid var(--line-2); padding: 8px 10px; margin: -4px -4px 4px; font: inherit; font-size: 12.5px; outline: none; border-radius: 10px 10px 0 0; }
.dd-list { max-height: 260px; overflow-y: auto; }
.dd-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.dd-item .dd-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-item.active { background: var(--soft); color: var(--ink); }
.dd-item.on { color: var(--accent); font-weight: 600; }
.dd-item.on.active { background: var(--accent-tint); }
.dd-item svg { color: var(--accent); flex-shrink: 0; }
.dd-item.disabled { opacity: .45; cursor: not-allowed; }
.dd-empty { padding: 10px; font-size: 12px; color: var(--faint); text-align: center; }

/* ── Assessments: the employee's page (voice interview, test) ── */
.as-list { margin: 0; padding-left: 18px; color: var(--ink-2); line-height: 1.7; }
.as-call { align-items: center; text-align: center; padding-top: 32px; }
.as-call > .row { align-self: stretch; }
.as-orb { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); transition: background .3s; }
.as-orb span { width: 64px; height: 64px; border-radius: 50%; background: var(--faint); transition: transform .3s, background .3s; }
.as-orb.speaking span { background: var(--accent); animation: as-pulse 1.1s ease-in-out infinite; }
.as-orb.listening { background: var(--good-bg); }
.as-orb.listening span { background: var(--good-fill); }
@keyframes as-pulse { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.12); } }
.as-state { font-size: 15px; font-weight: 600; }
/* The interview call: two participants that glow while they talk, and the clock */
.as-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 600px; }
.as-party { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 12px 20px; border-radius: 14px; background: var(--line-2); transition: background .3s; }
.as-avatar { width: 132px; height: 132px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; background: #fff; transition: box-shadow .25s, transform .25s, background .3s, color .3s; }
.as-party.ai .as-avatar { color: var(--rsg-navy); border: 2px solid var(--rsg-gold); }
.as-party.you .as-avatar { color: var(--good); border: 2px solid var(--good-fill);
  box-shadow: 0 0 calc(6px + var(--lvl, 0) * 26px) calc(var(--lvl, 0) * 10px) rgba(0, 122, 91, calc(.15 + var(--lvl, 0) * .45)); }
.as-party.ai.active { background: #fbf7ef; }
.as-party.ai.active .as-avatar { background: var(--rsg-navy); color: var(--rsg-gold); animation: as-glow-ai 1.4s ease-in-out infinite; }
.as-party.you.active { background: var(--good-bg); }
.as-party.you.active .as-avatar { transform: scale(1.04); }
.as-party.waiting { opacity: .55; }
.as-party.you.muted .as-avatar { color: var(--bad); border-color: var(--bad-bd); box-shadow: none; }
.as-party.you.muted .as-sub { color: var(--bad); font-weight: 600; }
.as-name { font-weight: 700; font-size: 15px; text-align: center; }
.as-sub { font-size: 12px; color: var(--muted); min-height: 16px; }
.as-party.active .as-sub { color: var(--ink); font-weight: 600; }
@keyframes as-glow-ai {
  0%, 100% { box-shadow: 0 0 10px 2px rgba(184, 156, 103, .45); }
  50% { box-shadow: 0 0 30px 12px rgba(184, 156, 103, .75); }
}
.as-clock { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; max-width: 600px; }
.as-clock-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.as-clock-v { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--ink); }
.as-clock-v.urgent { color: var(--bad); }
.as-clock-bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.as-clock-bar i { display: block; height: 100%; background: var(--rsg-navy); transition: width .5s linear; }
.as-clock-bar i.urgent { background: var(--bad); }
@media (max-width: 480px) { .as-avatar { width: 96px; height: 96px; } .as-avatar svg { width: 44px; height: 44px; } .as-clock-v { font-size: 18px; } }
.as-end { display: flex; justify-content: center; }
.as-end-confirm { width: 100%; flex-wrap: wrap; }
/* The parts of one interview link, taken one after the other */
.as-parts { display: flex; flex-direction: column; gap: 6px; }
.as-part { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.as-part-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 13px; background: var(--line-2); color: var(--muted); }
.as-part.on { border-color: var(--accent); }
.as-part.on .as-part-n { background: var(--accent); color: #fff; }
.as-part.done { border-color: var(--good-bd); background: var(--good-bg); }
.as-part.done .as-part-n { background: var(--good-fill); color: #fff; }
.as-part-tag { align-self: center; font-size: 12px; font-weight: 600; color: var(--muted); }
/* The setup check before an interview */
.as-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.as-check { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.as-check .as-meter { width: 100%; max-width: 260px; margin-top: 6px; }
.as-check-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 13px; background: var(--line-2); color: var(--muted); }
.as-check.running .as-check-ic { border: 2px solid var(--line); border-top-color: var(--accent); background: none; animation: as-spin .8s linear infinite; }
.as-check.ok { border-color: var(--good-bd); background: var(--good-bg); }
.as-check.ok .as-check-ic { background: var(--good-fill); color: #fff; }
.as-check.warn { border-color: var(--warn-bd); background: var(--warn-bg); }
.as-check.warn .as-check-ic { background: var(--warn); color: #fff; }
.as-check.bad { border-color: var(--bad-bd); background: var(--bad-bg); }
.as-check.bad .as-check-ic { background: var(--bad-fill); color: #fff; }
@keyframes as-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .as-party.ai.active .as-avatar { animation: none; box-shadow: 0 0 22px 8px rgba(184, 156, 103, .6); } }
.as-meter { width: 220px; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.as-meter i { display: block; height: 100%; background: var(--good-fill); transition: width .12s; }
.as-caption { max-width: 560px; min-height: 44px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.as-timer { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--ink); }
.as-timer.urgent { color: var(--bad); }
.as-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.as-dots button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--field); background: #fff; font: 600 12px var(--sans); color: var(--muted); cursor: pointer; }
.as-dots button.done { background: var(--accent-soft); color: var(--accent); border-color: #cbd6df; }
.as-dots button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-tint); }

/* ── Assessments Management: one cell per assessment type ── */
.as-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 118px; }
.as-cell .as-score { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.as-cell .as-na { color: var(--faint); font-size: 12px; }
.as-cell .as-head { display: flex; align-items: center; gap: 8px; }
.as-cell .row-actions { margin-top: 2px; }
/* The interview's parts inside its one cell: each opens its own result */
.as-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.as-chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel, #fff); color: var(--ink, inherit); cursor: pointer; }
.as-chip b { font-family: var(--mono); font-size: 12px; }
.as-chip:hover:not(:disabled) { border-color: var(--accent); }
.as-chip:disabled { cursor: default; color: var(--faint); }
.as-chip.completed { border-color: var(--good-bd); background: var(--good-bg); }
.as-chip.incomplete { border-color: var(--warn-bd); background: var(--warn-bg); }
.as-chip.in_progress { border-color: var(--accent); }
.as-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.as-comp { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.as-rec { display: flex; flex-direction: column; gap: 4px; }
.as-rec audio { width: 100%; height: 36px; }
.as-turn { font-size: 12.5px; line-height: 1.55; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.as-turn b { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.as-turn.employee b { color: var(--accent); }
.as-q { font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
/* Potential assessment (public page) */
.as-passage { background: var(--line-2); border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.as-stem { font-size: 16px; font-weight: 600; line-height: 1.5; }
.option.ok { border-color: var(--good-fill); background: var(--good-bg); }
.as-stmt { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.as-stmt-t { font-size: 14px; line-height: 1.55; margin-bottom: 8px; }
.as-scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.as-scale button { height: 36px; border-radius: 8px; border: 1.5px solid #dbe1e6; background: #fff; font: 600 13px var(--sans); color: var(--ink-2); cursor: pointer; }
.as-scale button:hover { border-color: var(--accent); }
.as-scale button.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.as-scale-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.as-q .ok { color: var(--good); font-weight: 600; }
.as-q .no { color: var(--bad); font-weight: 600; }

/* ── Employees Nomination: one card per employee (prototype layout) ── */
.nm-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nm-list { gap: 12px; }
.nm-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.nm-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nm-av { width: 38px; height: 38px; font-size: 13px; }
.nm-name { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.nm-name:hover { color: var(--accent); text-decoration: underline; }
.nm-sub { font-size: 11px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nm-status { padding: 4px 10px; border-radius: 5px; }
.nm-card .tags { gap: 6px; }
.nm-card .tag { font-size: 9px; }
.tag.mid { background: var(--warn-bg); color: var(--warn); }
.nm-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nm-box { background: #f8fafb; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; }
.nm-box.nom { background: var(--accent-tint); border-color: var(--accent-soft); }
.nm-cap { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.nm-v { font-size: 12px; font-weight: 600; margin-top: 2px; }
.nm-v.on { color: var(--accent); }
.nm-v.faint { color: var(--faint); }
.nm-m { font-size: 10px; color: var(--muted); }
.nm-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nm-match { border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; display: flex; flex-direction: column; gap: 3px; }
.nm-rank { width: 17px; height: 17px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.nm-mt { font-size: 11px; font-weight: 600; flex: 1; min-width: 0; }
.nm-match .pct { font-size: 12px; color: var(--ink); }
.btn.accent-o { border-color: var(--accent); color: var(--accent); }
.btn.accent-o:hover { background: var(--accent-tint); }
.btn.warn-o { border-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.nm-actions .btn.bad-o { background: var(--bad-bg); border-color: var(--bad); }
.btn .ico { width: 13px; height: 13px; }
.pager-bare .pager { border-top: 0; padding: 0; }
@media (max-width: 900px) { .nm-boxes, .nm-top { grid-template-columns: 1fr; } }

/* ── Potential (HiPo) assessment, employee side ────────────────────────────
 * Its own layout (templates/public/assessment.html, the non-interview branch):
 * a navy header with the three parts and overall progress, then one card per
 * step. Larger type than the workspace: this is read by a candidate, once. */
.hp { --hp-bg: #f5f3ee; --hp-ink: #0c1a24; --hp-soft: #faf8f3; --hp-ring: rgba(184, 156, 103, .35);
  min-height: 100%; background: var(--hp-bg); color: var(--hp-ink); font-size: 15px; line-height: 1.55; display: flex; flex-direction: column; }
.hp svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp svg .fill { fill: currentColor; stroke: none; }

.hp-hero { position: relative; overflow: hidden; color: #fff; padding: 28px 20px 0;
  background: radial-gradient(900px 320px at 85% -10%, rgba(184, 156, 103, .38), transparent 60%),
              radial-gradient(700px 300px at 0% 120%, rgba(84, 192, 232, .22), transparent 60%),
              linear-gradient(160deg, #04253c 0%, #0a3a5c 100%); }
.hp-waves { position: absolute; inset: auto 0 0 0; width: 100%; height: 70px; opacity: .35; pointer-events: none; }
.hp-waves path { stroke: var(--rsg-gold); stroke-width: 1.2; }
.hp-waves path:nth-child(2) { stroke: var(--rsg-crystal); opacity: .6; }
.hp-waves path:nth-child(3) { opacity: .4; }
.hp-hero-in { position: relative; max-width: 860px; margin: 0 auto; padding-bottom: 26px; }
.hp-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hp-logo { height: 38px; width: auto; }
.hp-brand-t { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .25); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.hp-kicker { color: var(--rsg-gold); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hp-h1 { margin: 6px 0 22px; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.hp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hp-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); transition: background .3s, color .3s, border-color .3s; }
.hp-step-n { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  border: 1.5px solid rgba(255, 255, 255, .3); }
.hp-step-n svg { width: 16px; height: 16px; stroke-width: 2.6; }
.hp-step-t { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.25; }
.hp-step-t small { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.hp-step.on { background: rgba(255, 255, 255, .12); border-color: rgba(184, 156, 103, .7); color: #fff; }
.hp-step.on .hp-step-n { background: var(--rsg-gold); border-color: var(--rsg-gold); color: var(--rsg-navy); box-shadow: 0 0 0 5px rgba(184, 156, 103, .22); }
.hp-step.done { color: rgba(255, 255, 255, .85); }
.hp-step.done .hp-step-n { background: var(--rsg-nature); border-color: var(--rsg-nature); color: #fff; }
.hp-progress { position: relative; height: 4px; background: rgba(255, 255, 255, .1); margin: 0 -20px; }
.hp-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--rsg-gold), #e3cc98); transition: width .6s cubic-bezier(.2, .7, .2, 1); }

.hp-main { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 28px 20px 40px; display: flex; flex-direction: column; gap: 16px; }
.hp-flow { display: flex; flex-direction: column; gap: 16px; }
.hp-card { background: #fff; border-radius: 18px; padding: 28px; border: 1px solid #ebe6db; box-shadow: 0 1px 2px rgba(4, 37, 60, .04), 0 12px 32px -18px rgba(4, 37, 60, .25); }
.hp-in { animation: hp-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hp-hello { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.hp-lead { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 640px; }
.hp-h2 { margin: 10px 0 6px; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.hp-sec-t { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin: 26px 0 12px; }
.hp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink);
  border: 1px solid var(--gold-bd); font-size: 12px; font-weight: 600; letter-spacing: .02em; }

.hp-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.hp-part { position: relative; padding: 18px; border-radius: 14px; background: var(--hp-soft); border: 1px solid #eee8dc; display: flex; flex-direction: column; gap: 4px;
  transition: transform .2s, box-shadow .2s; }
.hp-part:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(4, 37, 60, .45); }
.hp-part-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; background: var(--rsg-navy); color: var(--rsg-gold); }
.hp-part-ic svg { width: 22px; height: 22px; }
.hp-part small { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hp-part h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.hp-part p { margin: 4px 0 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.hp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-tags span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid #e6e0d3; color: var(--ink-2); }
.hp-tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-tips li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--hp-soft); font-size: 14px; color: var(--ink-2); }
.hp-tips svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--rsg-lagoon); margin-top: 1px; }
.hp-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: 14px; }
.hp-consent { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #e6e0d3; cursor: pointer; font-weight: 600; transition: border-color .2s, background .2s; }
.hp-consent input { position: absolute; opacity: 0; pointer-events: none; }
.hp-box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #c9c2b3; flex-shrink: 0; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.hp-consent:has(input:checked) { border-color: var(--rsg-navy); background: var(--accent-tint); }
.hp-consent input:checked + .hp-box { background: var(--rsg-navy); border-color: var(--rsg-navy); }
.hp-consent input:checked + .hp-box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.hp-consent input:focus-visible + .hp-box { box-shadow: 0 0 0 4px var(--hp-ring); }

.hp-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hp-actions.split { justify-content: space-between; }
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1.5px solid #d9d2c3;
  background: #fff; color: var(--hp-ink); font: 600 15px var(--sans); cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; }
.hp-btn svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .2s; }
.hp-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(4, 37, 60, .5); }
.hp-btn:hover:not(:disabled) svg { transform: translateX(3px); }
.hp-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--hp-ring); }
.hp-btn.primary { background: var(--rsg-navy); border-color: var(--rsg-navy); color: #fff; }
.hp-btn.primary:hover:not(:disabled) { background: #0a3a5c; }
.hp-btn.lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.hp-btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.hp-btn:disabled { opacity: .45; cursor: not-allowed; }
.hp-err { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.hp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.hp-stats div { padding: 16px; border-radius: 14px; background: var(--hp-soft); border: 1px solid #eee8dc; text-align: center; }
.hp-stats b { display: block; font-size: 28px; line-height: 1.1; color: var(--rsg-navy); }
.hp-stats span { font-size: 12.5px; color: var(--muted); }
.hp-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hp-rules li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 14.5px; }
.hp-rules li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--rsg-gold); box-shadow: 0 0 0 4px var(--gold-soft); }

/* Part 1 */
.hp-qbar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px; padding: 14px 18px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid #ebe6db; border-radius: 16px; box-shadow: 0 10px 24px -20px rgba(4, 37, 60, .5); }
.hp-qmeta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hp-chip { padding: 4px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--rsg-navy); font-size: 12.5px; font-weight: 600; }
.hp-qnum { font-size: 14px; color: var(--muted); }
.hp-qnum b { color: var(--hp-ink); font-size: 16px; }
.hp-segs { grid-column: 1 / -1; display: flex; gap: 4px; }
.hp-segs i { flex: 1; height: 5px; border-radius: 3px; background: #ece7dc; transition: background .3s; }
.hp-segs i.done { background: var(--rsg-navy); }
.hp-segs i.on { background: var(--rsg-gold); }
.hp-ring { position: relative; width: 64px; height: 64px; display: grid; place-items: center; grid-row: 1; grid-column: 2; }
.hp-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hp-ring circle { stroke-width: 3.5; }
.hp-ring .trk { stroke: #ece7dc; }
.hp-ring .val { stroke: var(--rsg-navy); stroke-dasharray: 119.4; transition: stroke-dashoffset .5s linear, stroke .3s; }
.hp-ring span { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.hp-ring.urgent .val { stroke: var(--rsg-coral); }
.hp-ring.urgent span { color: var(--bad); animation: hp-blink 1s steps(2, start) infinite; }
@keyframes hp-blink { to { opacity: .45; } }
.hp-passage { padding: 16px 18px; margin-bottom: 18px; border-radius: 12px; background: var(--hp-soft); border-left: 4px solid var(--rsg-gold); }
.hp-passage small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.hp-passage p { margin: 0; font-size: 15.5px; line-height: 1.7; }
.hp-stem { margin: 0 0 18px; font-size: 19px; line-height: 1.45; font-weight: 600; }
.hp-opts { display: flex; flex-direction: column; gap: 10px; }
.hp-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #e3ddcf; background: #fff;
  font: 500 15.5px var(--sans); color: var(--hp-ink); cursor: pointer; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.hp-opt:hover { border-color: var(--rsg-navy); transform: translateX(2px); }
.hp-opt:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--hp-ring); }
.hp-key { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--hp-soft); border: 1px solid #e3ddcf;
  font: 700 13px var(--mono); color: var(--muted); transition: background .15s, color .15s; }
.hp-opt-t { flex: 1; }
.hp-tick { width: 22px; height: 22px; stroke-width: 2.6; color: var(--rsg-gold); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s; }
.hp-opt.on { border-color: var(--rsg-navy); background: var(--accent-tint); box-shadow: 0 8px 20px -14px rgba(4, 37, 60, .6); }
.hp-opt.on .hp-key { background: var(--rsg-navy); border-color: var(--rsg-navy); color: #fff; }
.hp-opt.on .hp-tick { opacity: 1; transform: none; }
.hp-hint { font-size: 12.5px; color: var(--muted); }
.hp-hint kbd { display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: 5px; border: 1px solid #ddd6c7; border-bottom-width: 2px; background: #fff; font: 600 11px var(--mono); text-align: center; }

/* Parts 2 and 3: ratings */
.hp-legend { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hp-legend i { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #eadfca, #b89c67 50%, #04253c); }
.hp-stmt { padding: 20px 22px; transition: border-color .25s, box-shadow .25s; }
.hp-stmt.answered { border-color: #cfe6dd; }
.hp-stmt-top { display: flex; gap: 14px; align-items: flex-start; }
.hp-stmt-top p { margin: 3px 0 0; font-size: 16px; font-weight: 500; line-height: 1.5; }
.hp-stmt-n { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--hp-soft); border: 1px solid #e6e0d3;
  font-size: 12.5px; font-weight: 700; color: var(--muted); transition: background .25s, color .25s; }
.hp-stmt-n svg { width: 16px; height: 16px; stroke-width: 2.8; }
.hp-stmt.answered .hp-stmt-n { background: var(--rsg-nature); border-color: var(--rsg-nature); color: #fff; }
.hp-scale { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 18px 0 8px 44px; }
.hp-scale::before { content: ""; position: absolute; left: 7%; right: 7%; top: 50%; height: 2px; background: linear-gradient(90deg, #eadfca, #b89c67 50%, #04253c); opacity: .5; }
.hp-scale button { position: relative; aspect-ratio: 1; max-width: 48px; width: 100%; justify-self: center; border-radius: 50%; border: 1.5px solid #ddd6c7; background: #fff;
  font: 700 14px var(--sans); color: var(--muted); cursor: pointer; transition: transform .15s, background .15s, border-color .15s, color .15s, box-shadow .2s; }
.hp-scale button:hover { transform: scale(1.1); border-color: var(--rsg-navy); color: var(--rsg-navy); }
.hp-scale button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--hp-ring); }
.hp-scale button.on { background: var(--rsg-navy); border-color: var(--rsg-navy); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 4px var(--hp-ring); animation: hp-pop .3s; }
@keyframes hp-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.2); } 100% { transform: scale(1.12); } }
.hp-scale-l { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-left: 44px; font-size: 12px; color: var(--muted); }
.hp-scale-l b { color: var(--rsg-navy); font-size: 12.5px; }
.hp-scale-l span:last-child { text-align: right; }
.hp-prefs .hp-sec-t { margin-top: 0; }
.hp-pref + .hp-pref { margin-top: 22px; padding-top: 22px; border-top: 1px solid #f0ebe1; }
.hp-pref p { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.hp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-pills button { padding: 10px 16px; border-radius: 999px; border: 1.5px solid #e3ddcf; background: #fff; font: 600 14px var(--sans); color: var(--ink-2); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s; }
.hp-pills button:hover { border-color: var(--rsg-navy); transform: translateY(-1px); }
.hp-pills button.on { background: var(--rsg-navy); border-color: var(--rsg-navy); color: #fff; }
.hp-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px 14px 20px; border-radius: 16px;
  background: rgba(4, 37, 60, .96); color: #fff; backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(4, 37, 60, .8); }
.hp-bar-p { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.hp-mini { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.hp-mini i { display: block; height: 100%; background: var(--rsg-gold); transition: width .4s; }
.hp-bar .hp-btn.primary { background: var(--rsg-gold); border-color: var(--rsg-gold); color: var(--rsg-navy); }
.hp-bar .hp-btn.primary:hover:not(:disabled) { background: #cdb582; }
.hp-bar .hp-btn:disabled { opacity: .35; }
.hp-bar .hp-err { flex-basis: 100%; order: 3; margin: 0; }

/* Part 2: spoken answers */
.hp-quote { position: relative; margin: 18px 0 16px; padding: 22px 24px 22px 56px; border-radius: 16px; background: var(--hp-soft); font-size: 18px; line-height: 1.55; font-weight: 600; }
.hp-quote::before { content: "\201C"; position: absolute; left: 16px; top: 4px; font: 700 56px/1 Georgia, serif; color: var(--rsg-gold); }
.hp-star { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-star span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid #e6e0d3; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hp-star b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--rsg-navy); color: #fff; font-size: 11px; }
.hp-rec { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; padding: 26px 16px; border-radius: 18px;
  background: radial-gradient(420px 200px at 50% 0%, rgba(84, 192, 232, .12), transparent 70%), var(--hp-soft); }
.hp-mic-wrap { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.hp-rec-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hp-rec-ring circle { stroke-width: 4; }
.hp-rec-ring .trk { stroke: #e8e2d5; }
.hp-rec-ring .val { stroke: var(--rsg-coral); stroke-dasharray: 351.9; transition: stroke-dashoffset .25s linear; }
.hp-mic { position: relative; width: 96px; height: 96px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: linear-gradient(160deg, #0a3a5c, #04253c); box-shadow: 0 14px 30px -12px rgba(4, 37, 60, .7), 0 0 0 calc(var(--lvl, 0) * 22px) rgba(255, 92, 53, .18);
  transition: transform .15s, box-shadow .12s, background .3s; }
.hp-mic svg { width: 38px; height: 38px; stroke-width: 2; }
.hp-mic:hover:not(:disabled) { transform: scale(1.05); }
.hp-mic:focus-visible { outline: none; box-shadow: 0 0 0 6px var(--hp-ring); }
.hp-mic:disabled { cursor: default; opacity: .55; }
.hp-rec.idle .hp-mic::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--rsg-gold); animation: hp-halo 2s ease-out infinite; }
@keyframes hp-halo { from { opacity: .8; transform: scale(.92); } to { opacity: 0; transform: scale(1.25); } }
.hp-rec.recording .hp-mic { background: linear-gradient(160deg, #ff7a57, #d9441f); }
.hp-rec.recorded .hp-mic { background: linear-gradient(160deg, #13a57f, #00946e); }
.hp-rec-time { font: 600 20px var(--mono); color: var(--hp-ink); }
.hp-rec-time.urgent { color: var(--bad); }
.hp-wave { display: flex; align-items: center; gap: 4px; height: 44px; }
.hp-wave i { width: 4px; border-radius: 2px; background: var(--rsg-coral);
  height: calc(6px + var(--lvl, 0) * 38px * var(--h, .6)); animation: hp-bob .9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -70ms);
  transition: height .12s; }
@keyframes hp-bob { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.hp-rec-l { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.hp-audio { width: 100%; max-width: 380px; height: 40px; }

/* Finished and closed */
.hp-done { position: relative; overflow: hidden; text-align: center; padding: 48px 28px 40px; }
.hp-done .hp-lead { margin: 0 auto; }
.hp-check { width: 96px; height: 96px; margin: 0 auto 6px; display: block; }
.hp-check circle { stroke: var(--rsg-nature); stroke-width: 3; fill: var(--good-bg); stroke-dasharray: 227; stroke-dashoffset: 227; animation: hp-draw .7s ease-out forwards; }
.hp-check path { stroke: var(--rsg-nature); stroke-width: 5; stroke-dasharray: 50; stroke-dashoffset: 50; animation: hp-draw .45s .55s ease-out forwards; }
@keyframes hp-draw { to { stroke-dashoffset: 0; } }
.hp-done-list { list-style: none; padding: 0; margin: 24px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.hp-done-list li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--good-bg); color: var(--good); font-size: 13px; font-weight: 600; }
.hp-done-list svg { width: 15px; height: 15px; stroke-width: 2.8; }
.hp-fine { margin-top: 18px; font-size: 13px; color: var(--muted); }
.hp-confetti { position: absolute; inset: 0; pointer-events: none; }
.hp-confetti i { position: absolute; top: -12px; left: calc(var(--i) * 5.4%); width: 8px; height: 14px; border-radius: 2px; opacity: 0;
  background: var(--rsg-gold); animation: hp-fall 2.6s calc(var(--i) * 90ms) ease-in forwards; }
.hp-confetti i:nth-child(3n) { background: var(--rsg-crystal); }
.hp-confetti i:nth-child(4n) { background: var(--rsg-navy); width: 6px; height: 6px; border-radius: 50%; }
.hp-confetti i:nth-child(5n) { background: var(--rsg-coral); }
@keyframes hp-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(420px) rotate(540deg); } }
.hp-status { text-align: center; padding: 44px 28px; }
.hp-status h2 { margin: 12px 0 6px; font-size: 22px; }
.hp-status p { margin: 0; color: var(--ink-2); }
.hp-status-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.hp-status-ic svg { width: 32px; height: 32px; stroke-width: 2.4; }
.hp-status.good .hp-status-ic { background: var(--good-bg); color: var(--good); }
.hp-status.warn .hp-status-ic { background: var(--warn-bg); color: var(--warn); }
.hp-foot { text-align: center; padding: 8px 20px 28px; font-size: 12px; color: var(--faint); letter-spacing: .04em; }

@media (max-width: 720px) {
  .hp-hero { padding-top: 20px; }
  .hp-brand { margin-bottom: 18px; }
  .hp-steps { gap: 6px; }
  .hp-step { padding: 8px; gap: 8px; }
  .hp-step-t small { display: none; }
  .hp-step:not(.on) .hp-step-t { display: none; }
  .hp-step.on { grid-column: span 1; }
  .hp-parts, .hp-tips { grid-template-columns: 1fr; }
  .hp-card { padding: 20px; border-radius: 16px; }
  .hp-main { padding: 18px 14px 32px; }
  .hp-stem { font-size: 17px; }
  .hp-scale { gap: 5px; margin-left: 0; }
  .hp-scale-l { margin-left: 0; }
  .hp-stats b { font-size: 22px; }
  .hp-hint { display: none; }
  .hp-actions .hp-btn.lg, .hp-actions .hp-btn.primary { flex: 1; }
  .hp-quote { font-size: 16px; padding: 18px 18px 18px 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp *, .hp *::before, .hp *::after { animation: none !important; transition: none !important; }
  .hp-check circle, .hp-check path { stroke-dashoffset: 0; }
  .hp-confetti { display: none; }
}

/* ── AI Matching Engine: one card per employee (prototype) ── */
.mt-list { display: flex; flex-direction: column; gap: 12px; }
.mt-card { display: grid; grid-template-columns: minmax(220px, 280px) 1fr auto; align-items: center; gap: 20px; padding: 16px 20px; }
.mt-card.click { cursor: pointer; }
.mt-card.click:hover { border-color: var(--accent); }
.mt-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mt-av { width: 54px; height: 54px; font-size: 17px; flex-shrink: 0; }
.mt-who-t { min-width: 0; }
.mt-name { font-weight: 700; font-size: 15px; }
.mt-mail { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-org { font-size: 13px; color: var(--muted); }
.mt-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mt-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mt-role { border: 1px solid var(--line); border-radius: 10px; background: #f8fafb; padding: 9px 12px; min-width: 0; }
.mt-role.current { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.mt-role.none { grid-column: span 3; display: flex; align-items: center; background: none; border-style: dashed; }
.mt-role-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mt-cur { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; border-radius: 4px; padding: 2px 6px; }
.mt-rank { width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; flex-shrink: 0; }
.mt-pct { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.mt-pct.High { color: var(--good); }
.mt-pct.Medium { color: var(--warn); }
.mt-pct.Low { color: var(--bad); }
.mt-role-t { font-weight: 700; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-role-s { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 1100px) {
  .mt-card { grid-template-columns: 1fr; }
  .mt-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-act { flex-direction: row; align-items: center; justify-content: space-between; }
}
