/* ─── SyncSols Onboarding · Design Tokens ─────────────────────────── */
:root {
  /* Brand */
  --brand-700: #1F4F8F;
  --brand-600: #2E6BB4;
  --brand-500: #3F7CC0;
  --brand-400: #6A9AD3;
  --brand-300: #A6C2E2;
  --brand-200: #D6E3F2;
  --brand-100: #ECF2F9;
  --accent-500: #5FA3B8;
  --accent-400: #7FB6C9;
  --accent-200: #CFE3EA;
  --accent-100: #E8F1F4;

  /* Neutrals (cool gray, very slight blue cast) */
  --ink-1000: #0E1620;
  --ink-900: #1B2632;
  --ink-800: #2A3543;
  --ink-700: #3F4B5B;
  --ink-600: #5A6675;
  --ink-500: #78838F;
  --ink-400: #99A2AE;
  --ink-300: #BEC5CE;
  --ink-200: #DFE3E9;
  --ink-150: #ECEFF3;
  --ink-100: #F4F6F9;
  --ink-50:  #F9FAFC;
  --bg:      #FBFCFD;
  --paper:   #FFFFFF;

  /* Status */
  --ok:    #2F8F5E;
  --ok-bg: #E6F4EC;
  --warn:  #C28A0E;
  --warn-bg:#FBF1DA;
  --err:   #B4413B;
  --err-bg:#F8E5E3;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(20, 40, 70, 0.04), 0 1px 1px rgba(20, 40, 70, 0.03);
  --sh-2: 0 4px 10px rgba(20, 40, 70, 0.05), 0 1px 2px rgba(20, 40, 70, 0.04);
  --sh-3: 0 12px 30px rgba(20, 40, 70, 0.08), 0 2px 6px rgba(20, 40, 70, 0.04);
  --sh-focus: 0 0 0 3px rgba(46, 107, 180, 0.22);

  /* Type */
  --ff-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* Density variants (driven by tweak) */
[data-density="compact"]    { --pad-card: 20px; --pad-section: 18px; --gap-md: 12px; --row-h: 40px; }
[data-density="comfortable"]{ --pad-card: 28px; --pad-section: 24px; --gap-md: 16px; --row-h: 44px; }
[data-density="spacious"]   { --pad-card: 36px; --pad-section: 32px; --gap-md: 20px; --row-h: 52px; }

[data-rounded="sharp"] { --r-md: 4px; --r-lg: 6px; --r-xl: 8px; }
[data-rounded="soft"]  { --r-md: 10px; --r-lg: 14px; --r-xl: 20px; }
[data-rounded="pill"]  { --r-md: 14px; --r-lg: 22px; --r-xl: 28px; }

/* Palettes */
[data-palette="ocean"] {
  --brand-700: #0F4C75;
  --brand-600: #156BA5;
  --brand-500: #2480BD;
  --accent-400: #46A6BF;
}
[data-palette="slate"] {
  --brand-700: #344256;
  --brand-600: #475569;
  --brand-500: #64748B;
  --accent-400: #94A3B8;
}

/* Dark mode (subtle) */
[data-dark="true"] {
  --bg:      #0E1620;
  --paper:   #182230;
  --ink-1000: #F3F6FA;
  --ink-900: #E2E8F1;
  --ink-800: #C9D2DD;
  --ink-700: #A6B2C0;
  --ink-600: #8390A1;
  --ink-500: #6B7787;
  --ink-400: #525E6C;
  --ink-300: #3A4654;
  --ink-200: #2A3543;
  --ink-150: #232D3A;
  --ink-100: #1B2632;
  --ink-50:  #182230;
  --brand-100: #19283A;
  --brand-200: #1F324A;
  --sh-1: 0 1px 2px rgba(0,0,0,0.25);
  --sh-2: 0 4px 10px rgba(0,0,0,0.30);
  --sh-3: 0 12px 30px rgba(0,0,0,0.35);
}

/* ─── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-sans);
  font-size: 14.5px;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── App shell ───────────────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: 312px 1fr;
  min-height: 100vh;
}

/* Left rail */
.rail {
  background: var(--paper);
  border-right: 1px solid var(--ink-200);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.rail__brand {
  padding: 24px 24px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--ink-150);
}
.rail__brand img { height: 32px; width: auto; display: block; }
.rail__brand .meta { font-size: 11px; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.rail__brand .meta strong { display:block; color: var(--ink-900); letter-spacing: -0.01em; text-transform: none; font-size: 13px; margin-top: 2px; }

.rail__progress {
  padding: 18px 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rail__progress .pct {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--ink-600); font-weight: 500;
}
.rail__progress .pct strong { color: var(--ink-900); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.bar { height: 6px; background: var(--ink-150); border-radius: 999px; overflow: hidden; }
.bar > span { display:block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--accent-400)); transition: width 600ms cubic-bezier(.2,.7,.2,1); border-radius: 999px; }

.rail__steps {
  list-style: none;
  padding: 8px 12px 12px;
  margin: 0;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rail__steps::-webkit-scrollbar { width: 6px; }
.rail__steps::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 999px; }

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  position: relative;
  transition: background 120ms ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  color: var(--ink-700);
}
.step-item:hover { background: var(--ink-100); }
.step-item[data-active="true"] {
  background: var(--brand-100);
  color: var(--ink-900);
}
.step-item .marker {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink-300);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--ink-600);
  flex-shrink: 0;
  transition: all 200ms ease;
}
.step-item[data-active="true"] .marker {
  border-color: var(--brand-600);
  color: var(--brand-600);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.step-item[data-done="true"] .marker {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}
.step-item .label {
  display: flex; flex-direction: column; line-height: 1.2; gap: 2px;
  font-size: 13.5px; font-weight: 500;
}
.step-item .label small {
  font-size: 11px; color: var(--ink-500); font-weight: 500;
  letter-spacing: 0.02em;
}
.step-item[data-active="true"] .label { font-weight: 600; }

.rail__foot {
  padding: 14px 20px;
  border-top: 1px solid var(--ink-150);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-600);
}
.avatar-mini {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-400));
  color: #fff; font-weight: 600; font-size: 12px;
  display: grid; place-items: center;
  letter-spacing: 0.02em;
}

/* ─── Main canvas ─────────────────────────────────────────────────── */
.canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  border-bottom: 1px solid var(--ink-150);
  background: var(--paper);
  position: sticky; top: 0; z-index: 5;
}
.topbar__crumbs { font-size: 12px; color: var(--ink-500); letter-spacing: 0.02em; }
.topbar__crumbs strong { color: var(--ink-900); font-weight: 600; }
.topbar__actions { display: flex; gap: 8px; align-items: center; }

.scroll {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 40px 120px;
  animation: fadeInUp 420ms cubic-bezier(.2,.7,.2,1) both;
}
@keyframes fadeInUp {
  from { transform: translateY(8px); }
  to   { transform: translateY(0); }
}

.page__eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-600); font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.page__eyebrow::before {
  content: ""; width: 18px; height: 1.5px; background: var(--brand-500);
  display: inline-block;
}
.page__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-1000);
  margin: 0 0 10px;
  line-height: 1.15;
}
.page__lead {
  font-size: 16px;
  color: var(--ink-600);
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 60ch;
}

/* ─── Cards & sections ────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  box-shadow: var(--sh-1);
}
.card + .card { margin-top: 16px; }
.card__h {
  font-size: 15px; font-weight: 600; color: var(--ink-900);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.card__sub { font-size: 13px; color: var(--ink-500); margin: 0 0 18px; }

.section-h {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 700; margin: 28px 0 12px;
}

/* ─── Inputs ──────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 12.5px; font-weight: 600; color: var(--ink-800);
  letter-spacing: 0.01em;
  display: flex; justify-content: space-between; align-items: baseline;
}
.field__label .hint { font-weight: 400; color: var(--ink-500); font-size: 11.5px; }
.input, .select, .textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 0 14px;
  height: var(--row-h, 44px);
  color: var(--ink-900);
  transition: border 120ms ease, box-shadow 120ms ease;
  outline: none;
}
.textarea { padding: 12px 14px; height: auto; min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand-500);
  box-shadow: var(--sh-focus);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--err);
  background: var(--err-bg);
}
.field__err {
  font-size: 12px; color: var(--err); display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid--3 { grid-template-columns: repeat(3, 1fr); }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%235A6675' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5L6 8l3.5-3.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.01em;
  background: var(--paper); color: var(--ink-800);
  border-color: var(--ink-200);
  transition: all 140ms ease;
  white-space: nowrap;
}
.btn:hover { background: var(--ink-100); }
.btn:focus-visible { box-shadow: var(--sh-focus); outline: none; }

.btn--primary {
  background: var(--brand-600); color: #fff;
  border-color: var(--brand-600);
}
.btn--primary:hover { background: var(--brand-700); border-color: var(--brand-700); }

.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-700); }
.btn--ghost:hover { background: var(--ink-100); }

.btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ─── Pills, chips, badges ────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  background: var(--ink-100);
  color: var(--ink-700);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.02em;
}
.chip--brand { background: var(--brand-100); color: var(--brand-700); }
.chip--ok { background: var(--ok-bg); color: var(--ok); }
.chip--warn { background: var(--warn-bg); color: var(--warn); }

/* Toggle (checkbox) */
.check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--ink-300);
  background: var(--paper);
  transition: all 140ms ease;
  cursor: pointer;
  flex-shrink: 0;
}
.check[data-on="true"] {
  background: var(--brand-600); border-color: var(--brand-600);
}
.check[data-on="true"]::after {
  content: ""; width: 5px; height: 9px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Radio card */
.radio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.radio-card {
  border: 1.5px solid var(--ink-200);
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  transition: all 160ms ease;
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
}
.radio-card:hover { border-color: var(--brand-300); }
.radio-card[data-on="true"] {
  border-color: var(--brand-600);
  background: var(--brand-100);
  box-shadow: var(--sh-focus);
}
.radio-card .rc__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--brand-100);
  color: var(--brand-600);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.radio-card[data-on="true"] .rc__icon { background: var(--brand-600); color: #fff; }
.radio-card .rc__title { font-weight: 600; font-size: 14px; color: var(--ink-900); }
.radio-card .rc__sub { font-size: 12px; color: var(--ink-500); line-height: 1.4; }

/* Footer / navigator */
.nav-footer {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--paper) 70%, rgba(255,255,255,0));
  border-top: 1px solid var(--ink-150);
  padding: 16px 36px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 4;
}
.nav-footer .meta { font-size: 12px; color: var(--ink-500); }
.nav-footer .meta strong { color: var(--ink-800); font-weight: 600; }

/* ─── Special components ──────────────────────────────────────────── */

/* Welcome hero */
.hero {
  background: linear-gradient(135deg, #F4F9FE 0%, #E8F1F4 100%);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(127,182,201,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  margin: 0 0 8px; font-size: 36px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--ink-1000); line-height: 1.1;
  position: relative;
}
.hero h1 span { color: var(--brand-600); }
.hero p { margin: 0; color: var(--ink-700); font-size: 16px; line-height: 1.5; max-width: 50ch; position: relative; }
.hero .stats { display: flex; gap: 32px; margin-top: 28px; position: relative; }
.hero .stat strong { display: block; font-size: 28px; font-weight: 700; color: var(--brand-600); letter-spacing: -0.02em; }
.hero .stat small { font-size: 12px; color: var(--ink-600); }

.tile-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tile {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.tile .num {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--accent-500); margin-bottom: 6px;
}
.tile .ti { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.tile .ts { font-size: 12px; color: var(--ink-500); line-height: 1.45; }

/* Avatar slot for profile picture */
.avatar-up {
  display: flex; align-items: center; gap: 18px;
}
.avatar-up .preview {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--brand-100);
  border: 2px dashed var(--brand-300);
  display: grid; place-items: center;
  color: var(--brand-600);
  font-weight: 700; font-size: 24px;
  overflow: hidden;
  position: relative;
}
.avatar-up .preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-up .actions { display: flex; flex-direction: column; gap: 8px; }
.avatar-up .actions small { color: var(--ink-500); font-size: 12px; }

/* Department cards */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.dept {
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: 18px;
  cursor: pointer;
  text-align: left;
  display: flex; gap: 14px; align-items: flex-start;
  transition: all 160ms ease;
}
.dept:hover { border-color: var(--brand-300); }
.dept[data-on="true"] { border-color: var(--brand-600); background: var(--brand-100); box-shadow: var(--sh-focus); }
.dept__ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-100); color: var(--brand-700);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  border: 1px solid var(--brand-200);
}
.dept[data-on="true"] .dept__ico { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.dept__b { display: flex; flex-direction: column; gap: 4px; }
.dept__t { font-weight: 600; font-size: 14.5px; color: var(--ink-900); }
.dept__d { font-size: 12.5px; color: var(--ink-600); line-height: 1.4; }
.dept__meta { display: flex; gap: 6px; margin-top: 6px; }

/* Policies list */
.policy {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  transition: all 140ms ease;
}
.policy + .policy { margin-top: 8px; }
.policy[data-on="true"] {
  border-color: var(--brand-300);
  background: linear-gradient(0deg, var(--brand-100) 0%, var(--paper) 60%);
}
.policy__h { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-900); }
.policy__h .badge {
  font-size: 10px; padding: 2px 6px;
  border-radius: 999px;
  background: var(--ink-100); color: var(--ink-600);
  font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.policy__h .badge.required { background: var(--brand-100); color: var(--brand-700); }
.policy__d { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; line-height: 1.4; }
.policy__l { font-size: 12px; color: var(--brand-600); font-weight: 600; margin-top: 4px; }

/* Equipment cards */
.equip {
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: 18px;
  cursor: pointer;
  transition: all 160ms ease;
  display: flex; flex-direction: column; gap: 12px;
  text-align: left;
}
.equip:hover { border-color: var(--brand-300); }
.equip[data-on="true"] { border-color: var(--brand-600); box-shadow: var(--sh-focus); }
.equip__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.equip__head .ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--ink-100); color: var(--ink-700);
  display: grid; place-items: center;
}
.equip[data-on="true"] .ico { background: var(--brand-600); color: #fff; }
.equip__t { font-weight: 600; font-size: 14px; color: var(--ink-900); }
.equip__d { font-size: 12px; color: var(--ink-500); line-height: 1.4; }
.equip__price { font-size: 12px; color: var(--ink-700); font-weight: 600; }

/* People cards: manager / buddy */
.person {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 16px 18px;
  background: var(--paper);
}
.person__ava {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-400));
  color: #fff; font-weight: 700;
  font-size: 18px;
  display: grid; place-items: center;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}
.person__b { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.person__n { font-weight: 600; font-size: 15px; color: var(--ink-900); }
.person__r { font-size: 12.5px; color: var(--ink-500); }
.person__l { display: flex; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--brand-600); font-weight: 500; }

/* Training module list */
.module {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--paper);
  transition: all 160ms ease;
}
.module + .module { margin-top: 8px; }
.module[data-done="true"] {
  background: var(--brand-100);
  border-color: var(--brand-200);
}
.module .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-600);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.module[data-done="true"] .num { background: var(--brand-600); color: #fff; }
.module__t { font-weight: 600; font-size: 14px; color: var(--ink-900); }
.module__m { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.module__btn { display: flex; gap: 8px; align-items: center; }

/* ─── Training video player ─── */
.vplayer {
  background: var(--paper); border-radius: var(--r-lg, 16px);
  width: min(840px, 94vw); max-height: 92vh; overflow: auto;
  box-shadow: 0 24px 70px rgba(14,22,32,0.4); display: flex; flex-direction: column;
}
.vplayer__hd {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 18px 14px; border-bottom: 1px solid var(--ink-150);
}
.vplayer__stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0E1620;
  display: grid; place-items: center;
}
.vplayer__frame { width: 100%; height: 100%; border: none; display: block; object-fit: contain; background: #000; }
.vplayer__stub { text-align: center; padding: 28px; max-width: 460px; }
.vplayer__play {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff; display: grid; place-items: center;
}
.vplayer__stub-t { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.vplayer__stub-d { color: rgba(255,255,255,0.66); font-size: 13px; margin-top: 8px; line-height: 1.55; }
.vplayer__notes {
  padding: 14px 18px; font-size: 13px; color: var(--ink-700); line-height: 1.6;
  border-bottom: 1px solid var(--ink-150); background: var(--ink-50);
}
.vplayer__ft {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px;
}
.vplayer__hint { font-size: 12px; color: var(--ink-500); }
@media (max-width: 560px) {
  .vplayer__ft { flex-direction: column; align-items: stretch; }
}

/* Goals / KR list */
.goal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--paper);
}
.goal + .goal { margin-top: 8px; }
.goal__t { font-weight: 600; font-size: 14px; color: var(--ink-900); }
.goal__d { font-size: 12.5px; color: var(--ink-500); margin-top: 3px; line-height: 1.45; }
.goal__when { font-size: 11.5px; color: var(--brand-600); font-weight: 600; }

/* Tool tour cards */
.tool {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.tool__head { display: flex; align-items: center; gap: 10px; }
.tool__logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 14px;
  letter-spacing: -0.02em;
}
.tool__t { font-weight: 600; font-size: 14.5px; color: var(--ink-900); }
.tool__sub { font-size: 12px; color: var(--ink-500); }

/* Calendar / week */
.week {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.day {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: 12px 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 220px;
}
.day__h { display: flex; flex-direction: column; gap: 0; border-bottom: 1px solid var(--ink-150); padding-bottom: 8px; margin-bottom: 4px; }
.day__d { font-size: 11px; color: var(--ink-500); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.day__n { font-size: 20px; color: var(--ink-900); font-weight: 700; letter-spacing: -0.02em; }
.event {
  font-size: 11.5px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: flex; flex-direction: column; gap: 2px;
  line-height: 1.3;
  border-left: 2px solid var(--brand-500);
}
.event small { font-size: 10px; color: var(--ink-600); font-weight: 500; }
.event--accent { background: var(--accent-100); border-left-color: var(--accent-500); color: var(--ink-800); }
.event--neutral { background: var(--ink-100); border-left-color: var(--ink-400); color: var(--ink-700); }

/* Done confetti page */
.celebration {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, #F4F9FE 0%, #E8F1F4 100%);
  border-radius: var(--r-xl);
  border: 1px solid var(--brand-200);
}
.celebration h1 {
  font-size: 44px; letter-spacing: -0.03em; color: var(--ink-1000);
  margin: 24px 0 10px; font-weight: 700;
}
.celebration p {
  font-size: 16px; color: var(--ink-600); max-width: 50ch; margin: 0 auto;
  line-height: 1.5;
}
.checkmark-big {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-400));
  display: inline-grid; place-items: center;
  box-shadow: 0 12px 30px rgba(46, 107, 180, 0.30);
  animation: pop 600ms cubic-bezier(.2,1.4,.2,1) both;
}
@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.checkmark-big::after {
  content: ""; width: 28px; height: 50px;
  border-right: 5px solid #fff; border-bottom: 5px solid #fff;
  transform: rotate(45deg) translate(-3px, -3px);
}

/* Helper note */
.help-note {
  margin-top: 16px;
  background: var(--accent-100);
  border: 1px solid var(--accent-200);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ink-700);
  display: flex; gap: 10px; align-items: flex-start;
  line-height: 1.45;
}
.help-note .ico {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-500); color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}

/* Toast (transient) */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink-1000);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--sh-3);
  z-index: 50;
  animation: toastIn 240ms ease both;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* small helpers */
.row { display: flex; gap: 12px; align-items: center; }
.row--between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--ink-500); }
.mono { font-family: var(--ff-mono); font-size: 12px; }

/* ─── Step transitions ────────────────────────────────────────────── */
.page.is-leaving {
  animation: fadeOutDown 200ms ease both;
}
@keyframes fadeOutDown {
  to { opacity: 0; transform: translateY(-6px); }
}

/* ════════════════════════════════════════════════════════════════════
 * AUTH / LOGIN
 * ════════════════════════════════════════════════════════════════════ */
.auth {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 1fr;
  min-height: 100vh;
  background: var(--bg);
}
.auth__panel {
  background: var(--paper);
  padding: 56px 64px;
  display: flex; flex-direction: column;
  justify-content: center;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.auth__brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 56px;
}
.auth__brand img { height: 36px; }
.auth__brand-name { font-weight: 700; font-size: 16px; color: var(--ink-900); letter-spacing: -0.01em; }
.auth__brand-sub { font-size: 11.5px; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.auth__title {
  font-size: 28px; font-weight: 700; letter-spacing: -0.025em;
  color: var(--ink-1000); margin: 0 0 8px; line-height: 1.2;
}
.auth__lead {
  font-size: 14.5px; color: var(--ink-600); line-height: 1.5;
  margin: 0 0 28px; max-width: 44ch;
}
.auth__form { display: flex; flex-direction: column; gap: 14px; }

.auth__demo { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--ink-150); }
.auth__demo-h {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 700; margin-bottom: 10px;
}
.auth__demo-row { display: flex; flex-direction: column; gap: 8px; }
.auth__demo-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--paper);
  cursor: pointer;
  transition: all 140ms ease;
  text-align: left;
}
.auth__demo-card:hover { border-color: var(--brand-400); background: var(--brand-100); }
.auth__demo-ico {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 11px;
  flex-shrink: 0;
}
.auth__demo-name { font-weight: 600; font-size: 13px; color: var(--ink-900); }
.auth__demo-em { font-size: 11.5px; color: var(--ink-500); }
.auth__demo-card .chip { margin-left: auto; }

.auth__side {
  position: relative;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 60%, var(--accent-500) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 56px;
  overflow: hidden;
  color: #fff;
}
.auth__side-deco {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.10), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none;
}
.auth__side::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 60% 40%, rgba(0,0,0,0.6), transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, rgba(0,0,0,0.6), transparent 70%);
  pointer-events: none;
}
.auth__side-inner { position: relative; z-index: 2; max-width: 460px; }
.auth__quote-eyebrow {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 18px;
}
.auth__quote-title {
  font-size: 48px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.05; margin: 0 0 18px;
}
.auth__quote-body {
  font-size: 16px; line-height: 1.5; color: rgba(255,255,255,0.86);
  margin: 0 0 40px; max-width: 44ch;
}
.auth__quote-stats { display: flex; gap: 36px; }
.auth__quote-stats > div { display: flex; flex-direction: column; gap: 4px; }
.auth__quote-stats strong {
  font-size: 32px; font-weight: 700; letter-spacing: -0.025em;
  color: #fff;
}
.auth__quote-stats span {
  font-size: 12px; color: rgba(255,255,255,0.75);
}
@media (max-width: 1024px) {
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
 * DASHBOARD
 * ════════════════════════════════════════════════════════════════════ */
.dash {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
}

.dash__top {
  background: var(--paper);
  border-bottom: 1px solid var(--ink-150);
  padding: 14px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: sticky; top: 0; z-index: 10;
}
.dash__top-l { display: flex; align-items: center; gap: 12px; }
.dash__logo { height: 28px; }
.dash__brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.dash__brand-text strong { font-size: 14px; color: var(--ink-900); font-weight: 700; letter-spacing: -0.01em; }
.dash__brand-text span { font-size: 11px; color: var(--ink-500); letter-spacing: 0.04em; }
.dash__nav { display: flex; gap: 4px; justify-self: center; flex-wrap: wrap; max-width: 100%; }
.dash__nav button {
  background: transparent; border: none;
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 12.5px; font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  transition: all 120ms ease;
  white-space: nowrap;
}
.dash__nav button:hover { background: var(--ink-100); color: var(--ink-800); }
.dash__nav button[data-on="true"] { background: var(--brand-100); color: var(--brand-700); }
.dash__top-r { display: flex; align-items: center; gap: 10px; justify-self: end; }
.dash__me { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--ink-150); }
.dash__me-text { display: flex; flex-direction: column; line-height: 1.2; }
.dash__me-text strong { font-size: 12.5px; color: var(--ink-900); font-weight: 600; }
.dash__me-text span { font-size: 11px; color: var(--ink-500); }

.dash__body {
  flex: 1;
  padding: 36px 32px 80px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.dash__hero {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 24px;
}
.dash__hero-actions { display: flex; gap: 10px; }
.dash__h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink-1000); margin: 0 0 6px; line-height: 1.15; }
.dash__sub { font-size: 14.5px; color: var(--ink-600); margin: 0; line-height: 1.4; max-width: 60ch; }

.dash__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.dash__stat {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative; overflow: hidden;
}
.dash__stat::before {
  content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--ink-300);
}
.dash__stat--brand::before { background: var(--brand-600); }
.dash__stat--accent::before { background: var(--accent-500); }
.dash__stat--ok::before { background: var(--ok); }
.dash__stat--warn::before { background: var(--warn); }
.dash__stat-val {
  font-size: 30px; font-weight: 700; letter-spacing: -0.025em;
  color: var(--ink-1000); line-height: 1;
}
.dash__stat-lbl {
  font-size: 12px; color: var(--ink-500); font-weight: 500;
  margin-top: 6px;
}

/* Filters */
.dash__filters {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 16px;
}
.dash__search {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 0 14px;
  height: 40px;
  flex: 1;
  max-width: 380px;
  color: var(--ink-500);
}
.dash__search input {
  flex: 1; border: none; background: transparent;
  font-size: 13.5px; outline: none;
  color: var(--ink-900);
}
.dash__filter-group { display: flex; gap: 8px; margin-left: auto; }
.select--sm { height: 40px; font-size: 13px; min-width: 160px; }

/* Table */
.dash__table-wrap {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.dash__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dash__table thead {
  background: var(--ink-50);
  border-bottom: 1px solid var(--ink-200);
}
.dash__table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.dash__table th:hover { color: var(--ink-900); }
.dash__table td {
  padding: 14px 16px;
  border-top: 1px solid var(--ink-150);
  vertical-align: middle;
  color: var(--ink-800);
}
.dash__row { cursor: pointer; transition: background 120ms ease; }
.dash__row:hover { background: var(--brand-100); }

.dash__person { display: flex; align-items: center; gap: 12px; }
.dash__ava {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-400));
  color: #fff; font-weight: 700;
  font-size: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dash__person-n { font-weight: 600; color: var(--ink-900); font-size: 13.5px; }
.dash__person-m { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.dash__progress { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.dash__progress .bar { flex: 1; }
.dash__pct {
  font-size: 12px; font-weight: 700; color: var(--ink-800);
  font-variant-numeric: tabular-nums;
  min-width: 36px; text-align: right;
}
.dash__row-actions { display: flex; gap: 6px; }

/* Status pills */
.st-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
}
.st-neutral { background: var(--ink-100); color: var(--ink-600); }
.st-progress { background: var(--brand-100); color: var(--brand-700); }
.st-overdue { background: var(--warn-bg); color: var(--warn); }
.st-complete { background: var(--ok-bg); color: var(--ok); }

/* Bar large variant */
.bar--lg { height: 8px; }

/* Drawer */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(14, 22, 32, 0.42);
  backdrop-filter: blur(2px);
  z-index: 40;
  animation: scrimIn 200ms ease;
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 520px;
  max-width: 90vw;
  background: var(--paper);
  display: flex; flex-direction: column;
  box-shadow: -12px 0 30px rgba(20,40,70,0.10);
  animation: drawerIn 280ms cubic-bezier(.2,.7,.2,1);
}
@keyframes drawerIn {
  from { transform: translateX(40px); }
  to   { transform: translateX(0); }
}
.drawer__hd {
  padding: 22px 28px;
  border-bottom: 1px solid var(--ink-150);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer__body { padding: 24px 28px 60px; overflow-y: auto; flex: 1; }
.drawer__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  padding: 18px 20px;
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-md);
  margin-bottom: 20px;
}
.drawer__meta > div { display: flex; flex-direction: column; gap: 3px; }
.drawer__meta span { font-size: 11px; color: var(--ink-500); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.drawer__meta strong { font-size: 13px; color: var(--ink-900); font-weight: 600; }
.drawer__pct-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; color: var(--ink-600); font-weight: 500;
  margin-bottom: 8px;
}
.drawer__pct-row strong {
  font-size: 22px; color: var(--ink-900); font-weight: 700;
  letter-spacing: -0.02em;
}

/* Checklist in drawer */
.checklist { display: flex; flex-direction: column; gap: 4px; }
.checklist__row {
  display: grid;
  grid-template-columns: 24px 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-md);
  transition: background 120ms ease;
}
.checklist__row:hover { background: var(--ink-100); }
.checklist__row[data-done="true"] { background: var(--brand-100); }
.checklist__n {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-500);
}
.checklist__t {
  font-size: 13.5px; color: var(--ink-800); font-weight: 500;
}
.checklist__row[data-done="true"] .checklist__t {
  color: var(--ink-900); font-weight: 600;
}

/* Analytics */
.analytics-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.hist {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  align-items: end;
  height: 220px;
  margin-top: 14px;
}
.hist__col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.hist__bar {
  width: 100%;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-400));
  border-radius: 6px 6px 2px 2px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-height: 16px;
  transition: height 600ms cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.hist__lbl {
  font-size: 10px;
  color: var(--ink-500);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: auto;
  transform: rotate(-30deg);
  transform-origin: center;
  white-space: nowrap;
}
.dept-row {
  padding: 6px 0;
}

/* Templates */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tpl {
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  transition: all 140ms ease;
}
.tpl:hover { border-color: var(--brand-400); box-shadow: var(--sh-2); }
.tpl__ico {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.tpl__t { font-weight: 600; color: var(--ink-900); font-size: 15px; }
.tpl__d { font-size: 12.5px; color: var(--ink-500); line-height: 1.4; }
.tpl__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--ink-150);
  font-size: 12px;
}
.tpl__foot a { font-weight: 600; }

/* Impersonate banner inside onboarding rail */
.impersonate-banner {
  margin: 12px 16px 0;
  padding: 12px 14px;
  background: var(--warn-bg);
  border: 1px solid #ECCF8C;
  border-radius: var(--r-md);
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
}

/* ════════════════════════════════════════════════════════════════════
 * AUTH ADVISORY (separation of temp vs M365 credentials)
 * ════════════════════════════════════════════════════════════════════ */
.auth__advisory {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  background: var(--accent-100);
  border: 1px solid var(--accent-200);
  border-left: 3px solid var(--accent-500);
  border-radius: var(--r-md);
  font-size: 12.5px; line-height: 1.5;
  color: var(--ink-800);
  margin-bottom: 22px;
}
.auth__advisory-ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-500); color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.auth__contact {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-md);
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════════════
 * MICROSOFT 365 PROVISIONING CARD (Account step)
 * ════════════════════════════════════════════════════════════════════ */
.m365-card {
  background: linear-gradient(135deg, #F4F9FE 0%, #E8F1F4 100%);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.m365-card__head {
  display: flex; align-items: center; gap: 14px;
}
.m365-card__logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  display: grid; place-items: center;
}
.m365-card__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--brand-200);
}
.m365-card__grid > div { display: flex; flex-direction: column; gap: 3px; }
.m365-card__grid span {
  font-size: 11px; color: var(--ink-500);
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.m365-card__grid strong {
  font-size: 13px; color: var(--ink-900); font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════
 * DASHBOARD: credentials cell + drawer creds + modal
 * ════════════════════════════════════════════════════════════════════ */
.cred-cell {
  display: flex; align-items: center; gap: 6px;
  min-width: 140px;
}
.cred-cell__u {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-800);
  white-space: nowrap;
}
.cred-cell__sub {
  margin-top: 4px;
}

/* Drawer cred panel */
.drawer__creds {
  margin-top: 8px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-md);
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
}

/* Modal */
.modal {
  background: var(--paper);
  width: 640px;
  max-width: 94vw;
  max-height: 90vh;
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(20,40,70,0.18);
  display: flex; flex-direction: column;
  margin: auto;
  animation: modalIn 240ms cubic-bezier(.2,.7,.2,1);
}
.modal--sm { width: 520px; }
@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.drawer-scrim {
  display: grid; place-items: center;
  padding: 24px;
}
.modal__hd {
  padding: 22px 24px;
  border-bottom: 1px solid var(--ink-150);
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
}
.modal__body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
}
.modal__ft {
  padding: 16px 24px;
  border-top: 1px solid var(--ink-150);
  display: flex; justify-content: flex-end;
  gap: 10px;
  background: var(--ink-50);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* M365 inline preview (in add hire modal) */
.m365-preview {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.m365-preview__logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* Credentials display box */
.cred-box {
  display: flex; flex-direction: column;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
  margin-bottom: 14px;
}
.cred-box__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  gap: 12px;
}
.cred-box__row + .cred-box__row {
  border-top: 1px solid var(--ink-150);
}
.cred-box__lbl {
  font-size: 11px; color: var(--ink-500);
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.cred-box__val {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-1000);
  letter-spacing: 0.02em;
  margin-top: 4px;
  user-select: all;
}

.cred-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px 16px;
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-md);
}
.cred-meta > div { display: flex; flex-direction: column; gap: 4px; }
.cred-meta span {
  font-size: 11px; color: var(--ink-500);
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.cred-meta strong {
  font-size: 13px; color: var(--ink-900); font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════
 * TEMPLATES
 * ════════════════════════════════════════════════════════════════════ */
.tpl-stat {
  display: flex; gap: 20px;
  padding: 10px 0;
  margin-top: 8px;
  border-top: 1px solid var(--ink-150);
  border-bottom: 1px solid var(--ink-150);
}
.tpl-stat > div { display: flex; flex-direction: column; gap: 2px; }
.tpl-stat strong { font-size: 13.5px; color: var(--ink-900); font-weight: 600; line-height: 1.2; }
.tpl-stat span {
  font-size: 10.5px; color: var(--ink-500); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.tpl__steps-mini {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: 4px 0 0;
}
.tpl__step-chip {
  font-size: 11px; padding: 3px 8px;
  background: var(--ink-100);
  color: var(--ink-700);
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.tpl__step-chip--more {
  background: var(--brand-100);
  color: var(--brand-700);
  font-weight: 600;
}
.tpl__foot {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; padding-top: 12px;
  border-top: 1px solid var(--ink-150);
}
.tpl__foot .btn--primary { flex: 1; justify-content: center; }

/* Toggle chip (for departments in editor) */
.chip-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip.chip--toggle {
  cursor: pointer;
  border: 1px solid var(--ink-200);
  background: var(--paper);
  color: var(--ink-700);
  transition: all 140ms ease;
  height: 28px;
  padding: 0 12px;
}
.chip.chip--toggle:hover { border-color: var(--brand-400); }
.chip.chip--toggle[data-on="true"] {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.chk-row {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer;
  padding: 10px 12px;
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-md);
}
.chk-row .check { margin-top: 1px; }

/* Editor layout */
.modal--lg { width: 1080px; max-width: 96vw; max-height: 92vh; }
.tpl-edit-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 32px;
  align-items: start;
}
.tpl-edit__list {
  display: flex; flex-direction: column;
  gap: 6px;
}
.tpl-step {
  display: grid;
  grid-template-columns: 18px 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  transition: all 140ms ease;
  user-select: none;
}
.tpl-step:hover { border-color: var(--brand-300); }
.tpl-step[data-dragging="true"] {
  opacity: 0.4;
  cursor: grabbing;
}
.tpl-step[data-over="true"] {
  border-color: var(--brand-600);
  background: var(--brand-100);
  box-shadow: var(--sh-focus);
}
.tpl-step__grip {
  color: var(--ink-400);
  font-size: 14px;
  line-height: 0.4;
  cursor: grab;
  letter-spacing: -2px;
  font-weight: 700;
}
.tpl-step__grip:active { cursor: grabbing; }
.tpl-step__n {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--ink-100);
  padding: 4px 6px;
  border-radius: 4px;
  text-align: center;
}
.tpl-step__t {
  font-weight: 600; font-size: 13.5px; color: var(--ink-900);
  display: flex; align-items: center;
}
.tpl-step__d {
  font-size: 12px; color: var(--ink-500);
  line-height: 1.4; margin-top: 2px;
}
.tpl-step__meta {
  display: flex; align-items: center; gap: 12px;
}
.tpl-step__actions {
  display: flex; gap: 2px;
}
.iconbtn {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--ink-200);
  background: var(--paper);
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-700);
  cursor: pointer;
  font-weight: 700;
  transition: all 120ms ease;
}
.iconbtn:hover:not(:disabled) { background: var(--ink-100); color: var(--ink-900); }
.iconbtn:disabled { opacity: 0.35; cursor: not-allowed; }
.iconbtn--danger:hover:not(:disabled) {
  background: var(--err-bg); color: var(--err); border-color: var(--err);
}

/* Library (steps not currently in template) */
.tpl-lib {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.tpl-lib-card {
  text-align: left;
  border: 1.5px dashed var(--ink-200);
  background: var(--ink-50);
  border-radius: var(--r-md);
  padding: 12px 14px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: all 140ms ease;
  position: relative;
}
.tpl-lib-card:hover {
  border-color: var(--brand-500);
  background: var(--brand-100);
}
.tpl-lib-card__t {
  font-weight: 600; font-size: 13px; color: var(--ink-900);
  display: flex; align-items: center;
}
.tpl-lib-card__d {
  font-size: 11.5px; color: var(--ink-500); line-height: 1.4;
}
.tpl-lib-card__add {
  position: absolute; top: 10px; right: 12px;
  font-size: 10.5px; font-weight: 700;
  color: var(--brand-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 4px;
  opacity: 0;
  transition: opacity 140ms ease;
}
.tpl-lib-card:hover .tpl-lib-card__add { opacity: 1; }

/* Danger button (delete) */
.btn--danger {
  background: var(--err);
  border-color: var(--err);
  color: #fff;
}
.btn--danger:hover { background: #9C3833; border-color: #9C3833; }
/* ════════════════════════════════════════════════════════════════════
 * ADMIN / SETTINGS TAB
 * ════════════════════════════════════════════════════════════════════ */
.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
.admin-side {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 6px;
  position: sticky; top: 80px;
}
.admin-tab {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none; background: transparent;
  text-align: left; cursor: pointer;
  border-radius: var(--r-md);
  transition: background 120ms ease;
}
.admin-tab:hover { background: var(--ink-100); }
.admin-tab[data-on="true"] { background: var(--brand-100); }
.admin-tab__ico {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--ink-100); color: var(--ink-700);
  display: grid; place-items: center;
}
.admin-tab[data-on="true"] .admin-tab__ico { background: var(--brand-600); color: #fff; }
.admin-tab__t { font-weight: 600; font-size: 13.5px; color: var(--ink-900); display: block; }
.admin-tab__d { font-size: 11.5px; color: var(--ink-500); display: block; margin-top: 1px; }
.admin-tab__count {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--ink-100);
  padding: 3px 7px;
  border-radius: 4px;
}
.admin-tab[data-on="true"] .admin-tab__count { background: var(--brand-200); color: var(--brand-700); }

.admin-main { min-width: 0; }

.adm-list { display: flex; flex-direction: column; gap: 8px; }
.adm-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 120ms ease;
}
.adm-row:hover { border-color: var(--brand-400); box-shadow: var(--sh-1); }
.adm-row__t { font-weight: 600; font-size: 14px; color: var(--ink-900); }
.adm-row__d { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; line-height: 1.4; max-width: 70ch; }
.adm-row__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.adm-row__actions { display: flex; gap: 6px; }

.adm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.adm-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 18px;
}
.adm-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.adm-card__t { font-weight: 600; font-size: 15px; color: var(--ink-900); }
.adm-card__sub { font-size: 12px; color: var(--ink-500); margin-top: 3px; }
.adm-card__actions { display: flex; gap: 6px; }

.adm-team__mgr {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-md);
  margin-bottom: 12px;
}
.adm-team__members { }

/* Team mini-grid */
.team-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}
.team-mini__card {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: var(--paper);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-md);
  min-width: 0;
}
.team-mini__card > div:last-child { min-width: 0; overflow: hidden; }
.team-mini__card > div:last-child > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }

/* Quiz editor */
.quiz-q {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.quiz-q__head { display: flex; justify-content: space-between; align-items: center; }
.quiz-options { display: flex; flex-direction: column; gap: 6px; }
.quiz-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
}

.modal--md { width: 720px; max-width: 96vw; max-height: 92vh; }

/* ════════════════════════════════════════════════════════════════════
 * EMPLOYEE PORTAL
 * ════════════════════════════════════════════════════════════════════ */
.portal { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.portal__top { z-index: 5; }

.portal-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.portal-tile {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  transition: all 140ms ease;
}
.portal-tile:hover {
  border-color: var(--brand-400);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.portal-tile__ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.portal-tile__t { font-weight: 600; font-size: 15px; color: var(--ink-900); letter-spacing: -0.01em; }
.portal-tile__d { font-size: 12.5px; color: var(--ink-500); line-height: 1.4; }

.leaves-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}
.leave-list { display: flex; flex-direction: column; gap: 8px; }
.leave-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
}

.payslip-list { display: flex; flex-direction: column; gap: 10px; }
.payslip-row {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 18px 22px;
}
.payslip-row__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-150); }
.payslip-row__m { font-weight: 700; font-size: 17px; color: var(--ink-1000); letter-spacing: -0.02em; }
.payslip-row__amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.payslip-row__amounts > div { display: flex; flex-direction: column; gap: 4px; }
.payslip-row__amounts span {
  font-size: 11px; color: var(--ink-500); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.payslip-row__amounts strong {
  font-size: 18px; color: var(--ink-1000); font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; flex-direction: row; flex-wrap: wrap; overflow-x: auto; }
  .leaves-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════
 * HR LIFECYCLE / PAY / ATTENDANCE
 * ════════════════════════════════════════════════════════════════════ */

/* Drawer tabs */
.drawer--wide { width: 640px; }
.drawer__tabs {
  display: flex;
  border-bottom: 1px solid var(--ink-150);
  padding: 0 28px;
  gap: 4px;
  background: var(--paper);
}
.drawer__tabs button {
  background: transparent; border: none;
  padding: 12px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 120ms ease;
}
.drawer__tabs button:hover { color: var(--ink-900); }
.drawer__tabs button[data-on="true"] {
  color: var(--brand-700);
  border-bottom-color: var(--brand-600);
}

/* CTC preview chips inside add-existing modal */
.ctc-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.ctc-preview > div {
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.ctc-preview span {
  font-size: 11px; color: var(--ink-500);
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.ctc-preview strong {
  font-size: 14px; color: var(--ink-900); font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Lifecycle card */
.lifecycle-card {
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.lifecycle-card__head { margin-bottom: 14px; }
.lifecycle-card__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}
.lifecycle-card__grid > div { display: flex; flex-direction: column; gap: 4px; }
.lifecycle-card__grid span {
  font-size: 11px; color: var(--ink-500);
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.lifecycle-card__grid strong {
  font-size: 13.5px; color: var(--ink-900); font-weight: 600;
}
.st-pill--lg {
  height: 28px;
  padding: 0 14px;
  font-size: 13px;
}

/* Payslip layout */
.payslip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}
.payslip__col {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.payslip__hd {
  font-size: 11px; font-weight: 700;
  color: var(--ink-500); letter-spacing: 0.06em; text-transform: uppercase;
  padding-bottom: 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--ink-150);
}
.payslip__rows { display: flex; flex-direction: column; }
.payslip__row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 8px 0;
  font-size: 13px;
  gap: 8px;
}
.payslip__row > span { color: var(--ink-700); }
.payslip__row strong {
  color: var(--ink-900); font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.payslip__total {
  display: flex; justify-content: space-between;
  margin-top: 6px; padding-top: 10px;
  border-top: 1px dashed var(--ink-200);
  font-size: 14px;
}
.payslip__total > span { color: var(--ink-600); font-weight: 500; }
.payslip__total strong { color: var(--ink-1000); font-weight: 700; font-variant-numeric: tabular-nums; }
.payslip__net {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #F4F9FE 0%, #E8F1F4 100%);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-lg);
  gap: 24px;
}

/* Payslip grid (portal) */
.payslip-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
}
.payslip-months {
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 80px;
}
.payslip-month {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 12px 14px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 3px;
  transition: all 120ms ease;
}
.payslip-month:hover { border-color: var(--brand-400); }
.payslip-month[data-on="true"] { background: var(--brand-100); border-color: var(--brand-600); }
.payslip-month__m { font-size: 12.5px; font-weight: 600; color: var(--ink-900); }
.payslip-month__n {
  font-size: 14px; font-weight: 700; color: var(--brand-700);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.payslip__hdline {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; margin-bottom: 8px;
  border-bottom: 1px solid var(--ink-150);
}

@media (max-width: 980px) {
  .payslip { grid-template-columns: 1fr; }
  .payslip-grid { grid-template-columns: 1fr; }
  .payslip-months { position: static; flex-direction: row; flex-wrap: wrap; }
  .payslip-month { flex: 1 1 140px; }
}

/* ─── Role history (lifecycle) ─── */
.role-history { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--brand-200); margin: 6px 0 6px 6px; }
.role-history__row { display: flex; gap: 14px; padding: 8px 0 8px 16px; position: relative; }
.role-history__row::before {
  content: ""; position: absolute; left: -6px; top: 13px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand-600);
}
.role-history__date { flex: 0 0 92px; font-size: 11.5px; color: var(--ink-500); font-weight: 600; padding-top: 1px; }
.role-history__body { display: flex; flex-direction: column; gap: 2px; }
.role-history__body strong { font-size: 13.5px; color: var(--ink-900); font-weight: 600; }
.role-history__body span { font-size: 12px; color: var(--ink-600); }

/* ─── Active-state toggle button (e.g. helpdesk archive) ─── */
.btn[data-on="true"] {
  background: var(--brand-100);
  border-color: var(--brand-600);
  color: var(--brand-700);
}

/* ─── CTC box (salary editor) ─── */
.ctc-box {
  margin-top: 10px;
  border: 1px solid var(--brand-200);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--brand-50, #F6F9FC);
}
.ctc-box__h {
  padding: 10px 14px; font-size: 12px; font-weight: 700; color: var(--brand-700);
  letter-spacing: 0.02em; border-bottom: 1px solid var(--brand-200);
  background: var(--brand-100);
}
.ctc-box__h span { font-weight: 500; color: var(--ink-500); text-transform: none; letter-spacing: 0; }
.ctc-box__rows { padding: 6px 14px; }
.ctc-box__rows > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12.5px; }
.ctc-box__rows span { color: var(--ink-600); }
.ctc-box__rows strong { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.ctc-box__total {
  display: flex; gap: 24px; padding: 12px 14px; border-top: 1px solid var(--brand-200);
  background: var(--paper);
}
.ctc-box__total > div { display: flex; flex-direction: column; gap: 2px; }
.ctc-box__total span { font-size: 10.5px; color: var(--ink-500); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ctc-box__total strong { font-size: 18px; color: var(--brand-700); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ─── Formal payslip document ─── */
.pslip {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 24px 26px;
  margin-top: 14px;
  color: var(--ink-900);
}
.pslip__lh {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding-bottom: 14px; border-bottom: 2px solid var(--brand-600);
}
.pslip__co-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-1000); }
.pslip__co-addr { font-size: 11.5px; color: var(--ink-600); margin-top: 4px; line-height: 1.45; }
.pslip__co-ids { font-size: 10.5px; color: var(--ink-500); margin-top: 5px; font-variant-numeric: tabular-nums; }
.pslip__lh-doc { text-align: right; flex-shrink: 0; }
.pslip__doc-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-700); }
.pslip__doc-month { font-size: 17px; font-weight: 700; color: var(--ink-1000); letter-spacing: -0.01em; margin-top: 2px; }
.pslip__doc-no { font-size: 11px; color: var(--ink-500); margin-top: 3px; }
.pslip__meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--ink-150); border-radius: var(--r-sm, 6px);
  margin: 16px 0; overflow: hidden;
}
.pslip__meta-row {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 12px; border-right: 1px solid var(--ink-150); border-bottom: 1px solid var(--ink-150);
}
.pslip__meta-row span { font-size: 9.5px; color: var(--ink-500); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.pslip__meta-row strong { font-size: 12.5px; color: var(--ink-900); font-weight: 600; }
.pslip__tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pslip__t { border: 1px solid var(--ink-150); border-radius: var(--r-sm, 6px); overflow: hidden; }
.pslip__t-hd {
  display: flex; justify-content: space-between; padding: 8px 12px;
  background: var(--ink-50); font-size: 10px; font-weight: 700; color: var(--ink-600);
  letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 1px solid var(--ink-150);
}
.pslip__t-row {
  display: flex; justify-content: space-between; padding: 7px 12px;
  font-size: 12.5px; border-bottom: 1px solid var(--ink-100);
}
.pslip__t-row span { color: var(--ink-700); }
.pslip__t-row strong { color: var(--ink-900); font-weight: 600; font-variant-numeric: tabular-nums; }
.pslip__t-total {
  display: flex; justify-content: space-between; padding: 9px 12px;
  background: var(--ink-50); font-size: 13px;
}
.pslip__t-total span { color: var(--ink-800); font-weight: 700; }
.pslip__t-total strong { color: var(--ink-1000); font-weight: 800; font-variant-numeric: tabular-nums; }
.pslip__net {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 16px; padding: 14px 18px; border-radius: var(--r-md);
  background: var(--brand-100); border: 1px solid var(--brand-200);
}
.pslip__net-words { display: flex; flex-direction: column; gap: 3px; }
.pslip__net-words span { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-700); }
.pslip__net-words strong { font-size: 13px; color: var(--ink-900); font-weight: 600; }
.pslip__net-amt { font-size: 28px; font-weight: 800; color: var(--brand-700); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pslip__emp { margin-top: 16px; border: 1px dashed var(--ink-200); border-radius: var(--r-md); overflow: hidden; }
.pslip__emp-hd {
  padding: 8px 14px; font-size: 11px; font-weight: 700; color: var(--ink-700);
  background: var(--ink-50); border-bottom: 1px solid var(--ink-150);
}
.pslip__emp-hd span { font-weight: 500; color: var(--ink-500); }
.pslip__emp-rows { padding: 4px 14px; }
.pslip__emp-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12px; border-bottom: 1px solid var(--ink-100); }
.pslip__emp-row span { color: var(--ink-700); }
.pslip__emp-row small { color: var(--ink-400); }
.pslip__emp-row strong { color: var(--ink-900); font-variant-numeric: tabular-nums; }
.pslip__emp-row--total { border-bottom: none; }
.pslip__emp-row--total span, .pslip__emp-row--total strong { font-weight: 700; color: var(--ink-1000); }
.pslip__ctc {
  padding: 9px 14px; font-size: 12px; color: var(--ink-700);
  background: var(--accent-100); border-top: 1px solid var(--ink-150);
}
.pslip__ctc strong { color: var(--brand-700); font-weight: 800; font-variant-numeric: tabular-nums; }
.pslip__sign { display: flex; justify-content: space-between; gap: 40px; margin-top: 30px; }
.pslip__sign > div { flex: 1; font-size: 11px; color: var(--ink-600); }
.pslip__sign-line { border-top: 1px solid var(--ink-400); margin-bottom: 6px; }
.pslip__foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--ink-150); font-size: 9.5px; color: var(--ink-400); line-height: 1.5; }
@media (max-width: 720px) {
  .pslip__meta { grid-template-columns: repeat(2, 1fr); }
  .pslip__tables { grid-template-columns: 1fr; }
  .pslip__net { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════════════
 * EXIT / RELIEVING / TERMINATION
 * ════════════════════════════════════════════════════════════════════ */
.exit-hd {
  background: linear-gradient(135deg, var(--warn-bg) 0%, #FBF6E7 100%);
  border: 1px solid #ECCF8C;
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin: 8px 0 18px;
}
.exit-hd__sub { font-size: 12.5px; color: var(--ink-700); margin-top: 4px; }
.exit-hd__sub strong { color: var(--ink-900); }
.exit-hd__pct { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.exit-hd__num { font-size: 28px; font-weight: 700; color: var(--ink-1000); letter-spacing: -0.025em; line-height: 1; text-align: right; }
.exit-hd__num span { font-size: 14px; color: var(--ink-500); font-weight: 500; }
.exit-hd__bar { height: 5px; background: rgba(0,0,0,0.06); border-radius: 999px; overflow: hidden; }
.exit-hd__bar > span { display: block; height: 100%; background: var(--warn); border-radius: 999px; transition: width 400ms cubic-bezier(.2,.7,.2,1); }

.exit-steps { display: flex; flex-direction: column; gap: 6px; }
.exit-step {
  display: grid;
  grid-template-columns: 24px 32px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  transition: background 120ms ease;
}
.exit-step[data-done="true"] {
  background: linear-gradient(0deg, var(--brand-100) 0%, var(--paper) 60%);
  border-color: var(--brand-200);
}
.exit-step__n {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-500);
  background: var(--ink-100);
  padding: 4px 6px;
  border-radius: 4px;
  text-align: center;
  margin-top: 2px;
}
.exit-step[data-done="true"] .exit-step__n { background: var(--brand-200); color: var(--brand-700); }
.exit-step__t { font-weight: 600; font-size: 13.5px; color: var(--ink-900); }
.exit-step__d { font-size: 12.5px; color: var(--ink-500); line-height: 1.45; margin-top: 3px; }
.exit-step__owner { display: flex; gap: 6px; margin-top: 8px; font-size: 11px; align-items: center; }
.exit-step__owner span { color: var(--ink-500); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.exit-step__owner strong { color: var(--ink-800); font-weight: 600; }

.exit-docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.exit-doc {
  display: grid;
  grid-template-columns: 36px 1fr 14px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 140ms ease;
  text-align: left;
}
.exit-doc:hover { border-color: var(--brand-500); background: var(--brand-100); transform: translateY(-1px); box-shadow: var(--sh-1); }
.exit-doc__ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--brand-100); color: var(--brand-700);
  display: grid; place-items: center;
}
.exit-doc:hover .exit-doc__ico { background: var(--brand-600); color: #fff; }
.exit-doc__t { font-weight: 600; font-size: 13px; color: var(--ink-900); }
.exit-doc__d { font-size: 11px; color: var(--ink-500); margin-top: 1px; }

/* HR-side doc card: preview + issue control side by side */
.exit-doc--hr {
  display: flex; align-items: stretch; gap: 0; padding: 0; overflow: hidden;
  cursor: default;
}
.exit-doc--hr:hover { transform: none; box-shadow: none; border-color: var(--ink-200); background: var(--paper); }
.exit-doc__main {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center;
  flex: 1; min-width: 0; padding: 12px 14px; background: transparent; border: none;
  cursor: pointer; text-align: left; transition: background 140ms ease;
}
.exit-doc__main:hover { background: var(--brand-100); }
.exit-doc__main:hover .exit-doc__ico { background: var(--brand-600); color: #fff; }
.exit-doc__issue {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; border: none; border-left: 1px solid var(--ink-200);
  background: var(--ink-50); color: var(--ink-700);
  font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: all 140ms ease; white-space: nowrap;
}
.exit-doc__issue:hover { background: var(--brand-600); color: #fff; }
.exit-doc__issue.is-issued { background: var(--ok-bg, #E7F4EC); color: var(--ok, #2F8F5E); }
.exit-doc__issue.is-issued:hover { background: var(--ok, #2F8F5E); color: #fff; }
@media (max-width: 560px) {
  .exit-doc--hr { flex-direction: column; }
  .exit-doc__issue { border-left: none; border-top: 1px solid var(--ink-200); padding: 9px 14px; justify-content: center; }
}

/* Exit banner in portal */
.exit-banner {
  background: linear-gradient(135deg, var(--warn-bg) 0%, #FBF6E7 100%);
  border: 1px solid #ECCF8C;
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.exit-banner__t { font-weight: 700; font-size: 15px; color: var(--ink-900); letter-spacing: -0.01em; }
.exit-banner__d { font-size: 12.5px; color: var(--ink-700); margin-top: 4px; }
.exit-banner__d strong { color: var(--ink-900); }

/* Row menu (lifecycle quick actions in table) */
.row-menu { position: relative; }
.row-menu__pop {
  position: absolute;
  top: 100%; right: 0;
  margin-top: 4px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  min-width: 200px;
  padding: 4px;
  display: none;
  z-index: 10;
}
.row-menu:hover .row-menu__pop,
.row-menu:focus-within .row-menu__pop { display: block; }
.row-menu__pop button {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  background: transparent; border: none;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-800);
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
}
.row-menu__pop button:hover { background: var(--ink-100); }
.row-menu__danger:hover { background: var(--err-bg) !important; color: var(--err); }

/* ════════════════════════════════════════════════════════════════════
 * DOCUMENT PREVIEW (printable letters)
 * ════════════════════════════════════════════════════════════════════ */
.doc-scrim {
  background: rgba(14, 22, 32, 0.55);
  display: grid; place-items: center; padding: 32px;
  overflow-y: auto;
}
.doc {
  width: 800px;
  max-width: 96vw;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(20,40,70,0.30);
  display: flex; flex-direction: column;
  max-height: 92vh;
}
.doc__hd {
  padding: 18px 24px;
  border-bottom: 1px solid var(--ink-150);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.doc__page {
  padding: 56px 64px 80px;
  overflow-y: auto;
  flex: 1;
  background: var(--paper);
  color: #1A2330;
  font-family: "Plus Jakarta Sans", Georgia, "Times New Roman", serif;
  line-height: 1.65;
  font-size: 14px;
}
.doc__letterhead {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--brand-600);
}
.doc__letterhead img { height: 36px; }
.doc__company { font-weight: 700; font-size: 14px; color: var(--ink-1000); letter-spacing: -0.01em; }
.doc__addr { font-size: 11.5px; color: var(--ink-600); margin-top: 4px; line-height: 1.45; }
.doc__ref { font-size: 12px; color: var(--ink-500); margin-top: 20px; }
.doc__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-1000);
  letter-spacing: -0.01em;
  margin: 26px 0 22px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.doc__body p { margin: 0 0 8px; color: #1A2330; }
.doc__footer {
  margin-top: 36px; padding-top: 18px;
  border-top: 1px solid var(--ink-200);
  font-size: 11px; color: var(--ink-500);
  font-style: italic;
}
.doc__sections { display: flex; flex-direction: column; gap: 18px; }
.doc__sec-h {
  font-size: 11px; font-weight: 700;
  color: var(--brand-700); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.doc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.doc__table tr { border-bottom: 1px solid var(--ink-150); }
.doc__table td { padding: 8px 0; }
.doc__table td:first-child { color: var(--ink-600); }
.doc__table td:last-child { text-align: right; font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.doc__total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-md);
}
.doc__total span { color: var(--ink-700); font-weight: 600; }
.doc__total strong {
  font-size: 22px;
  color: var(--brand-700);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

@media print {
  body > * { display: none !important; }
  .doc-scrim { position: static !important; background: white !important; display: block !important; padding: 0 !important; overflow: visible !important; }
  .doc-scrim { display: block !important; }
  .doc { box-shadow: none !important; border-radius: 0 !important; max-height: none !important; width: 100% !important; max-width: 100% !important; }
  .no-print { display: none !important; }
  .doc__page { overflow: visible !important; padding: 40px 56px !important; }
}

/* Report print isolation — show ONLY the generated report, never the console.
 * Overrides the generic "hide body > *" above so the report's ancestors render,
 * then uses visibility to blank everything except #report-doc. */
@media print {
  body.printing-report > * { display: revert !important; }
  body.printing-report * { visibility: hidden !important; }
  body.printing-report #report-doc, body.printing-report #report-doc * { visibility: visible !important; }
  body.printing-report .adminc__top,
  body.printing-report .adminc__side,
  body.printing-report .adminc__head,
  body.printing-report .reports__controls,
  body.printing-report .announce { display: none !important; }
  body.printing-report #report-doc {
    position: absolute; left: 0; top: 0; width: 100%;
    margin: 0; border: none; border-radius: 0; box-shadow: none;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  body.printing-report .report__kpi, body.printing-report .report__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Live password-policy checklist (account create / reset) */
.pwhints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pwhint {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  background: var(--ink-100); color: var(--ink-500);
}
.pwhint[data-ok="true"] { background: var(--ok-bg, #E8F5EE); color: var(--ok, #1F8A5B); }

/* ── Sign-in: SSO buttons, divider, footer, solo (force-change) layout ── */
.auth__sso { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.auth__ssobtn {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 44px;
  padding: 0 14px; background: var(--paper); border: 1px solid var(--ink-200);
  border-radius: var(--r-md); font-size: 13.5px; font-weight: 600; color: var(--ink-800);
  cursor: pointer; transition: all 120ms ease;
}
.auth__ssobtn:hover { border-color: var(--ink-300); background: var(--ink-50); transform: translateY(-1px); box-shadow: var(--sh-1); }
.auth__ssoico { display: grid; place-items: center; width: 22px; }
.auth__divider { display: flex; align-items: center; gap: 12px; margin: 8px 0 2px; color: var(--ink-400); font-size: 11.5px; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--ink-200); }
.auth__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ink-150); font-size: 11.5px; color: var(--ink-500); }
.auth__ver { font-family: var(--ff-mono); color: var(--ink-400); }
.auth--center { place-items: center; }
.auth__panel--solo { max-width: 460px; margin: 0 auto; }
.ssomodal__logo { display: grid; place-items: center; padding: 8px 0 18px; }

/* ── Admin · Authentication providers ── */
.authprov { border: 1px solid var(--ink-150); border-radius: var(--r-lg); background: var(--paper); margin-bottom: 12px; overflow: hidden; }
.authprov[data-on="true"] { border-color: var(--brand-200); }
.authprov__head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.authprov__ico { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--ink-50); border: 1px solid var(--ink-150); flex-shrink: 0; }
.authprov__meta { flex: 1; min-width: 0; }
.authprov__name { font-size: 14px; font-weight: 700; color: var(--ink-900); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.authprov__blurb { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.authprov__tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.authprov__tag--on { background: var(--ink-100); color: var(--ink-600); }
.authprov__tag--ok { background: var(--ok-bg, #E8F5EE); color: var(--ok, #1F8A5B); }
.authprov__tag--warn { background: var(--warn-bg, #FDF0E3); color: var(--warn, #B45309); }
.authprov__tag--primary { background: var(--brand-100); color: var(--brand-700); }
.authprov__body { padding: 4px 18px 18px; border-top: 1px solid var(--ink-100); }
.authprov__body .field-grid { margin-top: 14px; }
.authprov__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.authprov__primary { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-800); cursor: pointer; }
.authprov__primary input { accent-color: var(--brand-600); width: 15px; height: 15px; }
.authprov__hint { font-size: 11.5px; color: var(--ink-500); }

/* ── Org lists (offices / departments) ── */
.orglist { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.orglist__row { display: flex; align-items: center; gap: 10px; }
.orglist__row .input { flex: 1; }
.orglist__id { font-size: 11px; color: var(--ink-400); min-width: 70px; text-align: right; }
.orglist__add { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--ink-200); }
.orglist__add .input { flex: 1; }

/* ── HR config panes (payroll / leave) ── */
.hrcfg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.hrcfg__h { font-size: 18px; font-weight: 700; color: var(--ink-1000); margin: 0; letter-spacing: -0.02em; }
.hrcfg__sub { font-size: 13px; color: var(--ink-500); margin: 4px 0 0; max-width: 560px; }
.comp-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 60px 36px; gap: 10px; align-items: center; padding: 6px 0; }
.comp-grid--head { padding-bottom: 8px; border-bottom: 1px solid var(--ink-150); margin-bottom: 4px; }
.comp-grid--head span { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-500); }
.comp-unit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--ink-500); pointer-events: none; }
.weekrow { display: flex; gap: 6px; flex-wrap: wrap; }

/* Boot splash spinner */
.boot-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ink-150, #E6EBF0); border-top-color: var(--brand-600, #2E6BB4); animation: boot-spin 0.8s linear infinite; }
@keyframes boot-spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════════
 * PASS A · EMPLOYEE MASTER
 * ════════════════════════════════════════════════════════════════════ */
.master-id {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--brand-100) 0%, var(--accent-100) 100%);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-lg);
  margin-bottom: 18px;
  gap: 16px;
}
.master-id__meta {
  display: grid; grid-template-columns: repeat(3, auto); gap: 14px 28px;
}
.master-id__meta > div { display: flex; flex-direction: column; gap: 2px; }
.master-id__meta span { font-size: 10.5px; color: var(--ink-500); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.master-id__meta strong { font-size: 13px; color: var(--ink-900); font-weight: 600; }

.master-row {
  display: grid;
  grid-template-columns: 1fr 160px 140px auto;
  gap: 8px;
}
.cert-row {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.cert-row__head { display: flex; gap: 8px; }
.cert-row__foot { display: flex; gap: 8px; align-items: center; }
.doc-list { display: flex; flex-direction: column; gap: 6px; }
.doc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
}
.doc-row__ico {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: grid; place-items: center;
}
.doc-row__t { font-weight: 600; font-size: 13.5px; color: var(--ink-900); }
.doc-row__d { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.chip--warn { background: var(--warn-bg); color: var(--warn); }

/* ════════════════════════════════════════════════════════════════════
 * PASS A · PERFORMANCE
 * ════════════════════════════════════════════════════════════════════ */
.perf-cycle {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--brand-100) 0%, var(--paper) 100%);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-lg);
  margin-bottom: 18px;
  gap: 16px;
}
.perf-cycle__phase { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.goal-list { display: flex; flex-direction: column; gap: 8px; }
.goal-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.goal-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.goal-card__head .iconbtn { margin-left: auto; }
.goal-progress { display: flex; align-items: center; gap: 12px; }

.pip-card {
  background: var(--warn-bg);
  border: 1px solid #ECCF8C;
  border-left: 3px solid var(--warn);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
}

/* ════════════════════════════════════════════════════════════════════
 * PASS B · ATTENDANCE
 * ════════════════════════════════════════════════════════════════════ */
.att-controls {
  display: flex; gap: 14px; align-items: flex-end;
  margin-bottom: 16px;
}
.att-controls > .field { width: 200px; }
.att-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 18px;
}
.att-cell {
  aspect-ratio: 1.2;
  background: var(--paper);
  border: 1px solid var(--ink-150);
  border-radius: 6px;
  padding: 6px;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px;
}
.att-cell__d { font-weight: 700; color: var(--ink-700); font-size: 12px; }
.att-cell__h { font-size: 11px; color: var(--ink-800); font-weight: 600; font-family: var(--ff-mono); }
.att-cell__hol { font-size: 9px; color: var(--ink-600); font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.att-cell__abs { font-size: 9.5px; color: var(--ink-500); font-weight: 600; }
.att-cell--present { background: rgba(47, 143, 94, 0.08); border-color: rgba(47, 143, 94, 0.25); }
.att-cell--partial { background: var(--warn-bg); border-color: #ECCF8C; }
.att-cell--absent  { background: var(--paper); }
.att-cell--leave   { background: var(--brand-100); border-color: var(--brand-200); }
.att-cell--holiday { background: var(--accent-100); border-color: var(--accent-200); }
.att-cell--weekend { background: var(--ink-100); }

.att-list { display: flex; flex-direction: column; gap: 4px; }
.att-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-md);
  font-size: 13px;
}
.att-row__date { width: 130px; font-weight: 600; color: var(--ink-900); }

.clock-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--brand-100) 0%, var(--accent-100) 100%);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-lg);
  margin-bottom: 24px;
  gap: 16px;
}

/* ════════════════════════════════════════════════════════════════════
 * PASS C · RECRUITMENT (Kanban)
 * ════════════════════════════════════════════════════════════════════ */
.kanban {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 18px;
  overflow-x: auto;
}
.kanban__col {
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-md);
  display: flex; flex-direction: column;
  min-width: 180px;
}
.kanban__h {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-700);
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--ink-150);
  display: flex; align-items: center;
  letter-spacing: 0.02em;
}
.kanban__count {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-600);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.kanban__body { padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.kanban__card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 120ms ease;
  display: flex; flex-direction: column; gap: 4px;
}
.kanban__card:hover { border-color: var(--brand-400); box-shadow: var(--sh-1); transform: translateY(-1px); }
.kanban__name { font-weight: 600; font-size: 13px; color: var(--ink-900); }
.kanban__role { font-size: 11.5px; color: var(--ink-600); }
.kanban__meta { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.kanban__src { font-size: 10.5px; color: var(--ink-500); margin-top: 4px; }

.stage-bar {
  display: flex; gap: 4px;
  margin-bottom: 16px;
  background: var(--ink-50);
  padding: 4px;
  border-radius: var(--r-md);
  border: 1px solid var(--ink-200);
}
.stage-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  border-radius: 6px;
  transition: all 120ms ease;
}
.stage-btn:hover { background: var(--paper); }
.stage-btn[data-on="true"] { background: var(--brand-600); color: #fff; }
.stage-btn--reject[data-on="true"] { background: var(--err); }

.scorecard {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.scorecard__head { display: flex; gap: 8px; align-items: center; }

/* ════════════════════════════════════════════════════════════════════
 * PASS C · HELPDESK
 * ════════════════════════════════════════════════════════════════════ */
.ticket-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 16px;
  padding: 14px 16px;
  background: var(--ink-50);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.ticket-meta > div { display: flex; flex-direction: column; gap: 4px; }
.ticket-meta span { font-size: 11px; color: var(--ink-500); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ticket-meta strong { font-size: 13px; color: var(--ink-900); font-weight: 600; }

.comments { display: flex; flex-direction: column; gap: 10px; }
.comment {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.comment__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
  font-size: 12px; color: var(--ink-700);
}
.comment__head strong { color: var(--ink-900); font-weight: 600; }
.comment__head span { color: var(--ink-500); font-size: 11px; }
.comment__body { font-size: 13px; color: var(--ink-800); line-height: 1.5; white-space: pre-wrap; }
.comment-form {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.comment-form button { align-self: flex-end; }

/* ════════════════════════════════════════════════════════════════════
 * PORTAL · PROFILE TABS
 * ════════════════════════════════════════════════════════════════════ */
.profile-tabs {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 18px;
}
.profile-tabs button {
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  border-radius: 6px;
}
/* Communication */
.ann-list { display: flex; flex-direction: column; gap: 10px; }
.ann-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.ann-card[data-pinned="true"] {
  background: linear-gradient(0deg, var(--brand-100) 0%, var(--paper) 60%);
  border-color: var(--brand-200);
}
.ann-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ann-card__t { font-weight: 700; font-size: 16px; color: var(--ink-1000); letter-spacing: -0.01em; margin-bottom: 6px; }
.ann-card__b { font-size: 13.5px; color: var(--ink-700); line-height: 1.5; white-space: pre-wrap; }

.poll-list { display: flex; flex-direction: column; gap: 12px; }
.poll-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.poll-card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 14px; }
.poll-card__q { font-weight: 600; font-size: 15px; color: var(--ink-900); letter-spacing: -0.01em; }
.poll-card__options { display: flex; flex-direction: column; gap: 6px; }
.poll-option {
  position: relative;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; text-align: left;
  overflow: hidden;
  font-size: 13px;
  color: var(--ink-800);
}
.poll-option:hover:not(:disabled) { border-color: var(--brand-400); }
.poll-option:disabled { cursor: default; }
.poll-option[data-mine="true"] { border-color: var(--brand-600); background: var(--brand-100); }
.poll-option__bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(46, 107, 180, 0.10); pointer-events: none; transition: width 400ms cubic-bezier(.2,.7,.2,1); }
.poll-option__lbl { position: relative; font-weight: 500; }
.poll-option__pct { position: relative; font-weight: 600; color: var(--ink-700); font-variant-numeric: tabular-nums; font-size: 12px; }

.feed-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}
.feed-aside { position: sticky; top: 80px; }
.celeb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--ink-150);
  border-radius: var(--r-md);
}

@media (max-width: 980px) {
  .feed-grid { grid-template-columns: 1fr; }
  .feed-aside { position: static; }
}

/* Knowledge base */
.kb-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}
.kb-cats {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 6px;
  position: sticky; top: 80px;
}
.kb-cat {
  display: flex; justify-content: space-between; align-items: center;
  background: transparent; border: none;
  padding: 9px 12px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
}
.kb-cat:hover { background: var(--ink-100); }
.kb-cat[data-on="true"] { background: var(--brand-100); color: var(--brand-700); font-weight: 600; }

.kb-list { display: flex; flex-direction: column; gap: 8px; }
.kb-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: all 120ms ease;
}
.kb-row:hover { border-color: var(--brand-400); box-shadow: var(--sh-1); }
.kb-row__t { font-weight: 600; font-size: 14px; color: var(--ink-900); }
.kb-row__b { font-size: 12.5px; color: var(--ink-500); line-height: 1.45; margin-top: 4px; max-width: 70ch; }
.kb-row__chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .kb-layout { grid-template-columns: 1fr; }
  .kb-cats { position: static; flex-direction: row; flex-wrap: wrap; }
}



/* ═════════════════════════════════════════════════════════════════
 * UAT round 1 additions
 * ═════════════════════════════════════════════════════════════════ */

/* Policy preview/download links (buttons) */
.policy__l {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.policy__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.policy__link:hover { text-decoration: underline; }

/* Template editor: locked / anchored steps */
.tpl-step[data-anchored="true"] {
  background: var(--ink-50);
  border-style: dashed;
}
.tpl-step[data-anchored="true"] .tpl-step__n {
  background: var(--ink-100);
  color: var(--ink-600);
}

/* Portal home — Holidays + Team absence side-by-side cards */
.portal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.portal-card { padding: 18px 20px; }
.portal-card__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.portal-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.holiday-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--ink-150);
  background: var(--paper);
}
.holiday-row__date {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--brand-100);
  color: var(--brand-700);
  flex-shrink: 0;
}
.holiday-row__date strong { font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.holiday-row__date span { font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
.holiday-row__name { font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.holiday-row__meta { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }

.absence-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--ink-150);
  background: var(--paper);
}
.absence-row__name { font-size: 13.5px; font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.absence-row__meta { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }

/* Performance — redesigned cycle banner */
.perf-banner {
  background: linear-gradient(135deg, var(--brand-100) 0%, var(--paper) 100%);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-md);
  padding: 18px 20px 16px;
  margin-top: 4px;
}
.perf-banner__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.perf-banner__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.perf-banner__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-1000);
  margin-top: 2px;
}
.perf-banner__sub {
  font-size: 12.5px;
  color: var(--ink-600);
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.perf-banner__late { color: var(--err); font-weight: 600; }
.perf-banner__soon { color: var(--warn); font-weight: 600; }
.perf-banner__action { flex-shrink: 0; }

.perf-phases {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  align-items: center;
}
.perf-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  position: relative;
}
.perf-phase:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: var(--ink-200);
  z-index: 0;
}
.perf-phase[data-state="done"]::after { background: var(--brand-500); }
.perf-phase__bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-300);
  color: var(--ink-500);
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  z-index: 1;
}
.perf-phase[data-state="done"] .perf-phase__bullet {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}
.perf-phase[data-state="current"] .perf-phase__bullet {
  background: var(--paper);
  border-color: var(--brand-600);
  color: var(--brand-700);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.perf-phase__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-600);
  text-align: center;
  line-height: 1.2;
}
.perf-phase[data-state="current"] .perf-phase__label { color: var(--brand-700); }

.perf-banner__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--brand-200);
}
.perf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  font-size: 12px;
  color: var(--ink-700);
  font-weight: 500;
}
.perf-chip__ico {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-200);
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 700;
}
.perf-chip.is-done {
  background: #E6F4EA;
  border-color: #B7E0C2;
  color: #166534;
}
.perf-chip.is-done .perf-chip__ico {
  background: #1E7E34;
  color: #fff;
}

/* Cancelled-leave row style cue */
.leave-row .st-pill.st-neutral { background: var(--ink-100); color: var(--ink-600); }

/* ════════════════════════════════════════════════════════════════════
 * ADMIN CONSOLE  (role: admin)
 * ════════════════════════════════════════════════════════════════════ */
.adminc { min-height: 100vh; background: var(--ink-50); display: flex; flex-direction: column; }
.adminc__top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px;
  background: var(--paper); border-bottom: 1px solid var(--ink-150);
}
.adminc__brand { display: flex; align-items: center; gap: 12px; }
.adminc__brand img { width: 34px; height: 34px; border-radius: 8px; }
.adminc__brand strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink-1000); letter-spacing: -0.01em; }
.adminc__brand span { display: block; font-size: 11px; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.adminc__top-r { display: flex; align-items: center; gap: 10px; }
.adminc__me { display: flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 1px solid var(--ink-150); }
.adminc__me-txt strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-900); }
.adminc__me-txt span { display: block; font-size: 11px; color: var(--ink-500); }

.adminc__body { display: grid; grid-template-columns: 248px 1fr; gap: 0; flex: 1; min-height: 0; }
.adminc__side {
  background: var(--paper); border-right: 1px solid var(--ink-150);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 59px; align-self: start; max-height: calc(100vh - 59px); overflow-y: auto;
}
.adminc__navgroup { display: flex; flex-direction: column; gap: 2px; }
.adminc__navlabel { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); padding: 4px 10px 2px; }
.adminc__navbtn {
  display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center;
  background: transparent; border: none; padding: 8px 10px; border-radius: var(--r-md);
  cursor: pointer; text-align: left; transition: background 120ms ease;
}
.adminc__navbtn:hover { background: var(--ink-100); }
.adminc__navbtn[data-on="true"] { background: var(--brand-100); }
.adminc__navico { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-500); background: var(--ink-100); }
.adminc__navbtn[data-on="true"] .adminc__navico { background: var(--brand-600); color: #fff; }
.adminc__navt { display: block; font-size: 13px; font-weight: 600; color: var(--ink-900); }
.adminc__navbtn[data-on="true"] .adminc__navt { color: var(--brand-700); }
.adminc__navd { display: block; font-size: 10.5px; color: var(--ink-500); margin-top: 1px; }
.adminc__main { padding: 28px 32px 60px; min-width: 0; max-width: 1100px; }

.adminc__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.adminc__h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; color: var(--ink-1000); margin: 0; }
.adminc__sub { font-size: 13.5px; color: var(--ink-600); margin: 6px 0 0; max-width: 64ch; line-height: 1.5; }
.adminc__head-actions { display: flex; gap: 8px; flex-shrink: 0; }

.adminc__stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 22px; }
.adminc__stat { background: var(--paper); border: 1px solid var(--ink-150); border-radius: var(--r-lg); padding: 14px 16px; position: relative; overflow: hidden; }
.adminc__stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ink-300); }
.adminc__stat--brand::before { background: var(--brand-600); }
.adminc__stat--accent::before { background: var(--accent-500); }
.adminc__stat--ok::before { background: var(--ok); }
.adminc__stat--warn::before { background: var(--warn); }
.adminc__stat--neutral::before { background: var(--ink-300); }
.adminc__stat-v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink-1000); font-variant-numeric: tabular-nums; }
.adminc__stat-l { font-size: 11.5px; color: var(--ink-600); font-weight: 500; margin-top: 2px; }

.adminc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adminc__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.adminc__quickbtn {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-align: left;
  background: var(--ink-50); border: 1px solid var(--ink-150); border-radius: var(--r-md); cursor: pointer;
  color: var(--brand-600); transition: all 120ms ease;
}
.adminc__quickbtn:hover { border-color: var(--brand-400); background: var(--brand-100); transform: translateY(-1px); box-shadow: var(--sh-1); }
.adminc__quickbtn span { display: flex; flex-direction: column; gap: 1px; }
.adminc__quickbtn strong { font-size: 13px; font-weight: 600; color: var(--ink-900); }
.adminc__quickbtn small { font-size: 11px; color: var(--ink-500); }

.adminc__feed { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.adminc__feeditem { display: grid; grid-template-columns: 10px 1fr; gap: 10px; }
.adminc__feeddot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--ink-300); }
.adminc__feeddot--ok { background: var(--ok); }
.adminc__feeddot--info { background: var(--brand-500); }
.adminc__feeddot--warn { background: var(--warn); }
.adminc__feedt { font-size: 12.5px; color: var(--ink-700); }
.adminc__feedt strong { color: var(--ink-900); font-weight: 600; }
.adminc__feedd { font-size: 11.5px; color: var(--ink-500); margin-top: 1px; }
.adminc__feedts { font-size: 10.5px; color: var(--ink-400); margin-top: 2px; }

.adminc__filters { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.adminc__table { background: var(--paper); border: 1px solid var(--ink-150); border-radius: var(--r-lg); overflow: hidden; }
.adminc__tr { display: grid; grid-template-columns: 1.6fr 1.2fr 0.9fr 1fr 0.8fr auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--ink-100); }
.adminc__tr:last-child { border-bottom: none; }
.adminc__tr--head { background: var(--ink-50); font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-500); }
.adminc__acct { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adminc__acct-n { font-size: 13px; font-weight: 600; color: var(--ink-900); display: flex; align-items: center; gap: 6px; }
.adminc__acct-t { font-size: 11px; color: var(--ink-500); }
.adminc__you { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--brand-100); color: var(--brand-700); padding: 1px 5px; border-radius: 4px; }
.adminc__uname { font-size: 12px; color: var(--ink-700); }
.adminc__rowactions { display: flex; align-items: center; gap: 5px; justify-self: end; }
.adminc__rowactions .select--sm { height: 30px; min-width: 92px; font-size: 12px; }

.rolechip { display: inline-flex; align-items: center; height: 21px; padding: 0 9px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; }
.rolechip--admin { background: var(--ink-800); color: #fff; }
.rolechip--hr { background: var(--brand-100); color: var(--brand-700); }
.rolechip--emp { background: var(--ink-100); color: var(--ink-600); }
.status-pill { display: inline-flex; align-items: center; height: 21px; padding: 0 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; }

.adminc__modal-eye { font-size: 11px; color: var(--brand-600); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.adminc__modal-h { font-size: 20px; font-weight: 700; color: var(--ink-1000); margin: 4px 0 0; letter-spacing: -0.02em; }
.adminc__cred-note { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-500); margin-top: 10px; }
.adminc__err { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--err-bg); color: var(--err); border-radius: var(--r-md); font-size: 12.5px; font-weight: 500; margin-top: 12px; }

/* segmented control */
.seg { display: inline-flex; background: var(--ink-100); border: 1px solid var(--ink-200); border-radius: var(--r-md); padding: 3px; gap: 2px; }
.seg__btn { flex: 1; background: transparent; border: none; padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-600); border-radius: 6px; cursor: pointer; white-space: nowrap; transition: all 120ms ease; }
.seg__btn:hover { color: var(--ink-900); }
.seg__btn[data-on="true"] { background: var(--paper); color: var(--brand-700); box-shadow: var(--sh-1); }

/* permission matrix */
.permtable { width: 100%; }
.permtable__head, .permtable__row { display: grid; grid-template-columns: 1fr 130px 90px 100px; align-items: center; gap: 8px; padding: 12px 18px; }
.permtable__head { background: var(--ink-50); border-bottom: 1px solid var(--ink-150); }
.permtable__row { border-bottom: 1px solid var(--ink-100); }
.permtable__row:last-child { border-bottom: none; }
.permtable__role { display: flex; justify-content: center; }
.permtable__t { font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.permtable__d { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.check--locked { opacity: 0.5; cursor: not-allowed; }

/* form columns shared by content/branding/security/system panes */
.adminc__formcols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.adminc__steps { display: flex; flex-direction: column; gap: 6px; }
.adminc__steprow { display: grid; grid-template-columns: 110px 1fr 1.4fr; gap: 8px; align-items: center; }
.adminc__stepid { font-family: var(--ff-mono); font-size: 11px; color: var(--ink-500); font-weight: 600; }
.input--sm { height: 36px; font-size: 13px; }

.adminc__logo { display: flex; align-items: center; gap: 14px; }
.adminc__logo-prev { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--ink-200); background: var(--ink-50); display: grid; place-items: center; overflow: hidden; }
.adminc__logo-prev img { width: 100%; height: 100%; object-fit: contain; }
.adminc__swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.adminc__swatch { width: 34px; height: 34px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.adminc__swatch[data-on="true"] { border-color: var(--ink-900); box-shadow: 0 0 0 2px var(--paper) inset; }
.adminc__brandprev { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 12px 14px; background: var(--ink-50); border: 1px solid var(--ink-150); border-radius: var(--r-md); }

.adminc__toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.adminc__toggle-t { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.adminc__toggle-d { display: block; font-size: 11.5px; color: var(--ink-500); margin-top: 1px; }

.auditlog { display: flex; flex-direction: column; }
.auditlog__row { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--ink-100); }
.auditlog__row:last-child { border-bottom: none; }
.auditlog__t { font-size: 13px; color: var(--ink-700); }
.auditlog__t strong { color: var(--ink-900); font-weight: 600; }
.auditlog__d { font-size: 11.5px; color: var(--ink-500); margin-top: 1px; }
.auditlog__ts { font-size: 11px; color: var(--ink-400); white-space: nowrap; }

/* reports */
.reports__controls { padding: 16px 18px; }
.reports__ctrlrow { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.reports__ctrlrow .field { margin: 0; }
.report { background: var(--paper); border: 1px solid var(--ink-200); border-radius: var(--r-lg); padding: 32px 36px; margin-top: 18px; }
.report__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--brand-600); }
.report__brand { display: flex; align-items: center; gap: 14px; }
.report__brand img { width: 40px; height: 40px; border-radius: 8px; }
.report__brand strong { display: block; font-size: 17px; font-weight: 800; color: var(--ink-1000); letter-spacing: -0.02em; }
.report__brand span { display: block; font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.report__period { text-align: right; }
.report__period-l { font-size: 22px; font-weight: 800; color: var(--ink-1000); letter-spacing: -0.02em; }
.report__period-s { font-size: 11px; color: var(--ink-500); margin-top: 2px; }
.report__section { margin-top: 22px; }
.report__h { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 12px; }
.report__kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.report__kpis--2 { grid-template-columns: repeat(2, 1fr); }
.report__kpi { background: var(--ink-50); border: 1px solid var(--ink-150); border-radius: var(--r-md); padding: 12px 14px; position: relative; overflow: hidden; }
.report__kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ink-300); }
.report__kpi--brand::before { background: var(--brand-600); }
.report__kpi--ok::before { background: var(--ok); }
.report__kpi--warn::before { background: var(--warn); }
.report__kpi--neutral::before { background: var(--ink-300); }
.report__kpi-v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-1000); font-variant-numeric: tabular-nums; }
.report__kpi-l { font-size: 11.5px; color: var(--ink-700); font-weight: 600; margin-top: 3px; }
.report__kpi-s { font-size: 10.5px; color: var(--ink-500); margin-top: 1px; }
.report__table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.report__table th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-500); padding: 8px 10px; border-bottom: 1px solid var(--ink-200); }
.report__table th:not(:first-child), .report__table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.report__table td { padding: 8px 10px; border-bottom: 1px solid var(--ink-100); color: var(--ink-800); }
.report__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.report__foot { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--ink-150); font-size: 10.5px; color: var(--ink-400); }

/* video upload (training editor) */
.vid-drop { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px dashed var(--ink-300); border-radius: var(--r-md); cursor: pointer; color: var(--brand-600); background: var(--ink-50); transition: all 120ms ease; }
.vid-drop:hover { border-color: var(--brand-500); background: var(--brand-100); }
.vid-drop span { display: flex; flex-direction: column; }
.vid-drop strong { font-size: 13px; font-weight: 600; color: var(--ink-900); }
.vid-drop small { font-size: 11px; color: var(--ink-500); }
.vid-chip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--ink-200); border-radius: var(--r-md); background: var(--paper); }
.vid-chip__name { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vid-chip__prev { width: 64px; height: 40px; border-radius: 6px; object-fit: cover; background: #000; }

/* announcement banner (site-wide) */
.announce { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 12.5px; font-weight: 600; }
.announce--info { background: var(--brand-600); color: #fff; }
.announce--warn { background: #B45309; color: #fff; }
.announce--maintenance { background: #9F1239; color: #fff; }

@media (max-width: 1100px) {
  .adminc__stats { grid-template-columns: repeat(3, 1fr); }
  .adminc__cols, .adminc__formcols, .report__cols { grid-template-columns: 1fr; }
  .report__kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .adminc__body { grid-template-columns: 1fr; }
  .adminc__side { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; }
  .adminc__navgroup { flex: 1 1 200px; }
  .adminc__tr { grid-template-columns: 1.4fr 1fr auto; }
  .adminc__tr > div:nth-child(4), .adminc__tr > div:nth-child(5) { display: none; }
}

/* ─── In-app dialogs (ssConfirm / ssAlert / ssDownload) ──────────────── */
.ss-dlg-scrim {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(14, 22, 32, 0.46);
  backdrop-filter: blur(2px);
  display: grid; place-items: center;
  padding: 24px;
  animation: scrimIn 160ms ease;
}
.ss-dlg {
  background: var(--paper);
  width: 440px; max-width: 94vw;
  border-radius: var(--r-xl, 16px);
  box-shadow: 0 24px 60px rgba(20, 40, 70, 0.22);
  overflow: hidden;
  animation: ssDlgIn 200ms cubic-bezier(.2, .7, .2, 1);
}
@keyframes ssDlgIn {
  from { transform: translateY(12px) scale(.985); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.ss-dlg__bd {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 22px 18px;
}
.ss-dlg__icon {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand-700);
}
.ss-dlg__icon.is-danger { background: var(--err-bg); color: var(--err); }
.ss-dlg__txt { padding-top: 2px; }
.ss-dlg__title {
  margin: 0 0 4px; font-size: 16px; font-weight: 700;
  color: var(--ink-1000); letter-spacing: -0.01em;
}
.ss-dlg__msg { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-700); }
.ss-dlg__detail { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-500); }
.ss-dlg__ft {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 22px; background: var(--ink-50);
  border-top: 1px solid var(--ink-150);
}
.ss-dlg__ft .btn { text-decoration: none; }
@media (max-width: 480px) {
  .ss-dlg__ft { flex-direction: column-reverse; }
  .ss-dlg__ft .btn { width: 100%; justify-content: center; }
}

/* Onboarding rail: steps that aren't reachable yet (must be done in order) */
.step-item[data-locked="true"] { opacity: 0.5; }
.step-item[data-locked="true"] .marker { color: var(--ink-400); }
.step-item[data-locked="true"]:hover { background: transparent; cursor: not-allowed; }
