/* ============================================================================================
   HRM Admin Panel - design system
   Light, professional colour scheme. Responsive from 360px upward (UI/UX section 2).

   Layout model
     :root sets the palette, spacing scale and radii used by every component below, so the
     whole panel can be re-themed from one block.
   ============================================================================================ */

:root {
  /* Brand - a restrained professional blue */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;

  /* Neutrals - the light surface scheme */
  --bg:         #f4f6fb;
  --surface:    #ffffff;
  --surface-2:  #fafbfd;
  --surface-3:  #f1f4f9;
  --line:       #e4e9f2;
  --line-dark:  #d3dae6;

  /* Text */
  --ink:        #1a2233;
  --ink-2:      #475569;
  --ink-3:      #6b7a90;
  --ink-muted:  #94a3b8;
  --on-brand:   #ffffff;

  /* Semantic */
  --success:    #059669;
  --success-bg: #ecfdf5;
  --warning:    #b45309;
  --warning-bg: #fffbeb;
  --danger:     #dc2626;
  --danger-bg:  #fef2f2;
  --info:       #0369a1;
  --info-bg:    #f0f9ff;
  --purple:     #7c3aed;
  --purple-bg:  #f5f3ff;
  --teal:       #0d9488;
  --teal-bg:    #f0fdfa;

  /* Shape and depth */
  --r-sm: 6px;
  --r:    9px;
  --r-lg: 14px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow:    0 4px 12px rgba(16, 24, 40, .07), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12), 0 4px 8px rgba(16, 24, 40, .05);

  /* Structure */
  --sidebar-w: 254px;
  --sidebar-w-collapsed: 72px;
  --header-h: 62px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Monaco, monospace;
}

/* ---- Reset ------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.3; color: var(--ink); }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p  { margin: 0 0 10px; }
a  { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Visible focus for keyboard navigation (UI/UX section 16) */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

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

/* Skip link for screen-reader and keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 10px 18px; background: var(--brand-600); color: #fff; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ============================================================================================
   Application shell
   ============================================================================================ */

.app { min-height: 100vh; }

/* ---- Sidebar ---- */

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 60;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  transition: transform .22s ease, width .22s ease;
}

.sidebar__brand {
  display: flex; align-items: center; gap: 11px;
  height: var(--header-h); padding: 0 18px; flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: -.02em;
  box-shadow: var(--shadow-xs);
}

.brand-text { min-width: 0; }
.brand-text strong { display: block; font-size: 14.5px; letter-spacing: -.01em; }
.brand-text span { display: block; font-size: 10.5px; color: var(--ink-muted); letter-spacing: .06em; text-transform: uppercase; }

.sidebar__nav { flex: 1 1 auto; overflow-y: auto; padding: 12px 10px 20px; }

.nav-section {
  margin: 16px 8px 6px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted);
}
.nav-section:first-child { margin-top: 4px; }

.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; margin-bottom: 2px;
  border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 500; font-size: 13.5px;
  text-decoration: none; transition: background .14s, color .14s;
}
.nav-link:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }

.nav-link.is-active {
  background: var(--brand-50); color: var(--brand-700); font-weight: 600;
  box-shadow: inset 2.5px 0 0 var(--brand-600);
}

.nav-link svg { flex: 0 0 auto; width: 17px; height: 17px; opacity: .85; }
.nav-link.is-active svg { opacity: 1; }
.nav-link__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-badge {
  flex: 0 0 auto; min-width: 20px; padding: 1px 6px; border-radius: var(--r-pill);
  background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; text-align: center;
}

/* ---- Header ---- */

.header {
  position: fixed; top: 0; right: 0; left: var(--sidebar-w); z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: left .22s ease;
}

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 36px; height: 36px; flex: 0 0 auto;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }

.sidebar-toggle { display: none; }

.header__search { flex: 1 1 auto; max-width: 420px; position: relative; }
.header__search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-muted); pointer-events: none;
}
.header__search input {
  width: 100%; height: 37px; padding: 0 12px 0 34px;
  border: 1px solid var(--line-dark); border-radius: var(--r-sm);
  background: var(--surface-2); font: inherit; font-size: 13.5px; color: var(--ink);
  transition: border-color .14s, box-shadow .14s, background .14s;
}
.header__search input::placeholder { color: var(--ink-muted); }
.header__search input:focus {
  outline: none; background: var(--surface);
  border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-100);
}

.header__spacer { flex: 1 1 auto; }

.badge-dot {
  position: absolute; top: 6px; right: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: var(--r-pill); background: var(--danger);
  color: #fff; font-size: 9.5px; font-weight: 700; line-height: 1;
  border: 2px solid var(--surface);
}

/* ---- User menu ---- */

.user-menu { position: relative; flex: 0 0 auto; }

.user-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 9px 5px 5px; border: 1px solid transparent; border-radius: var(--r-pill);
  background: transparent; cursor: pointer; font: inherit; color: var(--ink);
  transition: background .14s, border-color .14s;
}
.user-btn:hover { background: var(--surface-3); border-color: var(--line); }

.avatar {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 31px; height: 31px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  color: #fff; font-weight: 600; font-size: 12px; letter-spacing: .02em;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 60px; height: 60px; font-size: 21px; }
.avatar--xl { width: 88px; height: 88px; font-size: 30px; }
.avatar--sm { width: 26px; height: 26px; font-size: 10.5px; }

.user-btn__meta { text-align: left; line-height: 1.25; }
.user-btn__meta strong { display: block; font-size: 13px; font-weight: 600; }
.user-btn__meta span { display: block; font-size: 11px; color: var(--ink-3); }

.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 80;
  min-width: 232px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-5px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown--wide { min-width: 340px; max-width: calc(100vw - 32px); padding: 0; }

.dropdown__head {
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.dropdown__head strong { font-size: 13.5px; }

.dropdown__body { max-height: 340px; overflow-y: auto; }

.dropdown__foot {
  padding: 9px 14px; border-top: 1px solid var(--line);
  background: var(--surface-2); border-radius: 0 0 var(--r) var(--r);
  text-align: center; font-size: 12.5px;
}

.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 13.5px; text-decoration: none;
  background: none; border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer;
}
.dropdown-item:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.dropdown-item svg { width: 16px; height: 16px; flex: 0 0 auto; opacity: .8; }
.dropdown-item--danger { color: var(--danger); }
.dropdown-item--danger:hover { background: var(--danger-bg); color: var(--danger); }
.dropdown__divider { height: 1px; margin: 5px 4px; background: var(--line); }

/* ---- Notification list ---- */

.notif {
  display: flex; gap: 11px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.notif:hover { background: var(--surface-2); text-decoration: none; }
.notif:last-child { border-bottom: 0; }
.notif.is-unread { background: var(--brand-50); }
.notif.is-unread:hover { background: var(--brand-100); }

.notif__icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--ink-2);
}
.notif__icon svg { width: 16px; height: 16px; }
.notif__body { min-width: 0; flex: 1 1 auto; }
.notif__body strong { display: block; font-size: 13px; margin-bottom: 1px; }
.notif__body p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.notif__time { font-size: 11px; color: var(--ink-muted); margin-top: 3px; display: block; }

/* ---- Main region ---- */

.main {
  margin-left: var(--sidebar-w); padding-top: var(--header-h);
  min-height: 100vh; transition: margin-left .22s ease;
}
.main__inner { padding: 22px 24px 44px; max-width: 1560px; }

/* Collapsed sidebar (desktop) */
body.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .sidebar .brand-text,
body.sidebar-collapsed .sidebar .nav-link__label,
body.sidebar-collapsed .sidebar .nav-section,
body.sidebar-collapsed .sidebar .nav-badge { display: none; }
body.sidebar-collapsed .sidebar__brand { justify-content: center; padding: 0; }
body.sidebar-collapsed .nav-link { justify-content: center; padding: 10px; }
body.sidebar-collapsed .header { left: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .main { margin-left: var(--sidebar-w-collapsed); }

.scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(15, 23, 42, .45);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* ============================================================================================
   Page furniture
   ============================================================================================ */

.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.page-head__text { min-width: 0; }
.page-head h1 { margin-bottom: 3px; letter-spacing: -.015em; }
.page-head p { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.page-head__actions { display: flex; gap: 9px; flex-wrap: wrap; flex: 0 0 auto; }

.crumbs {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-bottom: 12px; font-size: 12.5px; color: var(--ink-muted);
  list-style: none; padding: 0;
}
.crumbs a { color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: var(--line-dark); }
.crumbs li[aria-current] { color: var(--ink-2); font-weight: 500; }

/* ---- Cards ---- */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
}
.card + .card { margin-top: 18px; }

.card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.card__head h2, .card__head h3 { font-size: 14.5px; }
.card__head p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card__body { padding: 18px; }
.card__body--flush { padding: 0; }
.card__foot {
  padding: 13px 18px; border-top: 1px solid var(--line);
  background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---- Statistic tiles (UI/UX section 5) ---- */

.stat-grid {
  display: grid; gap: 15px; margin-bottom: 18px;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
}

.stat {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; gap: 13px;
  padding: 16px 17px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
  transition: box-shadow .16s, transform .16s;
}
a.stat { text-decoration: none; color: inherit; }
a.stat:hover { box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }

.stat__icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--brand-50); color: var(--brand-600);
}
.stat__icon svg { width: 21px; height: 21px; }

.stat__body { min-width: 0; flex: 1 1 auto; }
.stat__label {
  display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px;
}
.stat__value {
  display: block; font-size: 25px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat__meta { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }

.stat--success .stat__icon { background: var(--success-bg); color: var(--success); }
.stat--warning .stat__icon { background: var(--warning-bg); color: var(--warning); }
.stat--danger  .stat__icon { background: var(--danger-bg);  color: var(--danger); }
.stat--info    .stat__icon { background: var(--info-bg);    color: var(--info); }
.stat--purple  .stat__icon { background: var(--purple-bg);  color: var(--purple); }
.stat--teal    .stat__icon { background: var(--teal-bg);    color: var(--teal); }

.trend { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; }
.trend--up { color: var(--success); }
.trend--down { color: var(--danger); }
.trend--flat { color: var(--ink-muted); }

/* ---- Grid helpers ---- */

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
@media (max-width: 1080px) { .grid--sidebar { grid-template-columns: 1fr; } }

/* ============================================================================================
   Buttons
   ============================================================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 37px; padding: 0 15px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background .14s, border-color .14s, color .14s, box-shadow .14s;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

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

.btn--secondary { background: var(--surface); border-color: var(--line-dark); color: var(--ink-2); }
.btn--secondary:hover { background: var(--surface-3); color: var(--ink); border-color: var(--line-dark); }

.btn--success { background: var(--success); border-color: var(--success); color: #fff; }
.btn--success:hover { background: #047857; border-color: #047857; color: #fff; }

.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-3); color: var(--ink); }

.btn--outline-danger { background: transparent; border-color: #f2b8b8; color: var(--danger); }
.btn--outline-danger:hover { background: var(--danger-bg); color: var(--danger); }

.btn--sm { height: 31px; padding: 0 11px; font-size: 12.5px; }
.btn--sm svg { width: 14px; height: 14px; }
.btn--lg { height: 43px; padding: 0 21px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--icon { width: 31px; padding: 0; }

.btn-group { display: inline-flex; gap: 6px; }

/* ============================================================================================
   Forms (UI/UX section 14)
   ============================================================================================ */

.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.form-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.field > label, .field-label {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 11.5px; color: var(--ink-muted); }

.input, .select, .textarea {
  width: 100%; min-width: 0; height: 38px; padding: 0 11px;
  border: 1px solid var(--line-dark); border-radius: var(--r-sm);
  background: var(--surface); font: inherit; font-size: 13.5px; color: var(--ink);
  transition: border-color .14s, box-shadow .14s;
}
.textarea { height: auto; min-height: 88px; padding: 9px 11px; resize: vertical; line-height: 1.55; }

.select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 15px;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-muted); }
.input:disabled, .select:disabled, .textarea:disabled,
.input[readonly] { background: var(--surface-3); color: var(--ink-3); cursor: not-allowed; }

/* Validation state */
.input.input-validation-error, .select.input-validation-error, .textarea.input-validation-error,
.field--invalid .input, .field--invalid .select, .field--invalid .textarea {
  border-color: var(--danger); background: var(--danger-bg);
}
.input.input-validation-error:focus, .field--invalid .input:focus {
  box-shadow: 0 0 0 3px #fee2e2;
}

.field-error, .text-danger, .validation-message {
  font-size: 12px; color: var(--danger); font-weight: 500;
}
.field-error:empty, .text-danger:empty { display: none; }

.validation-summary-errors {
  padding: 12px 15px; margin-bottom: 16px;
  background: var(--danger-bg); border: 1px solid #f6cccc;
  border-left: 3px solid var(--danger); border-radius: var(--r-sm);
  color: #991b1b; font-size: 13px;
}
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }

.check {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; user-select: none;
}
.check input[type="checkbox"], .check input[type="radio"] {
  flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0;
  accent-color: var(--brand-600); cursor: pointer;
}
.check span { min-width: 0; }
.check__hint { display: block; font-size: 11.5px; color: var(--ink-muted); }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.switch-row:last-child { border-bottom: 0; }
.switch-row__text strong { display: block; font-size: 13.5px; font-weight: 600; }
.switch-row__text span { font-size: 12px; color: var(--ink-3); }

.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-left: -1px; height: 38px; }

.form-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  flex-wrap: wrap; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line);
}
.form-actions--split { justify-content: space-between; }

.fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.fieldset:last-child { margin-bottom: 0; }
.fieldset > legend {
  padding: 0; margin-bottom: 14px; width: 100%;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: 7px;
}

/* File upload */
.upload {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 26px 20px; text-align: center;
  border: 1.5px dashed var(--line-dark); border-radius: var(--r);
  background: var(--surface-2); cursor: pointer;
  transition: border-color .14s, background .14s;
}
.upload:hover, .upload.is-drag { border-color: var(--brand-500); background: var(--brand-50); }
.upload svg { width: 26px; height: 26px; color: var(--ink-muted); }
.upload strong { font-size: 13.5px; }
.upload span { font-size: 12px; color: var(--ink-3); }
.upload input[type="file"] { display: none; }

/* ============================================================================================
   Tables (UI/UX section 7)
   ============================================================================================ */

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.table th {
  padding: 11px 15px; text-align: left; white-space: nowrap;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3);
  position: sticky; top: 0; z-index: 1;
}
.table th a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.table th a:hover { color: var(--brand-600); text-decoration: none; }
.table th svg { width: 12px; height: 12px; opacity: .5; }
.table th a.is-sorted svg { opacity: 1; color: var(--brand-600); }

.table td { padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }

.table--compact th { padding: 8px 12px; }
.table--compact td { padding: 8px 12px; }

.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .w-1 { width: 1%; }

.cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-user__text { min-width: 0; }
.cell-user__text strong { display: block; font-size: 13.5px; font-weight: 600; }
.cell-user__text span { display: block; font-size: 12px; color: var(--ink-3); }

.table tfoot td {
  background: var(--surface-2); font-weight: 700;
  border-top: 2px solid var(--line-dark); border-bottom: 0;
}

/* ---- Empty state ---- */

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 54px 24px; text-align: center;
}
.empty__icon {
  display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 50%; background: var(--surface-3); color: var(--ink-muted); margin-bottom: 3px;
}
.empty__icon svg { width: 25px; height: 25px; }
.empty strong { font-size: 15px; }
.empty p { margin: 0; max-width: 420px; color: var(--ink-3); font-size: 13.5px; }

/* ---- Pagination ---- */

.pager { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pager__info { font-size: 12.5px; color: var(--ink-3); }
.pager a, .pager span {
  display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 9px;
  border: 1px solid var(--line-dark); border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink-2); text-decoration: none; background: var(--surface);
}
.pager a:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.pager .is-current { background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 600; }
.pager .is-disabled { opacity: .45; pointer-events: none; }
.pager .gap { border: 0; background: none; min-width: 20px; }

/* ---- Filter bar ---- */

.filters {
  display: grid; gap: 11px; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.filters__actions { display: flex; gap: 8px; }
.filters .field > label { font-size: 11.5px; }

/* ============================================================================================
   Badges, chips and progress
   ============================================================================================ */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1.5;
  background: var(--surface-3); color: var(--ink-2);
}
.badge svg { width: 11px; height: 11px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.badge--plain::before { display: none; }

.badge--success { background: var(--success-bg); color: #056f4e; }
.badge--warning { background: var(--warning-bg); color: #92500a; }
.badge--danger  { background: var(--danger-bg);  color: #a81c1c; }
.badge--info    { background: var(--info-bg);    color: #05628f; }
.badge--brand   { background: var(--brand-50);   color: var(--brand-700); }
.badge--purple  { background: var(--purple-bg);  color: #6d28d9; }
.badge--teal    { background: var(--teal-bg);    color: #0f766e; }
.badge--muted   { background: var(--surface-3);  color: var(--ink-3); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--surface-3); border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }

.progress {
  height: 7px; border-radius: var(--r-pill); overflow: hidden;
  background: var(--surface-3);
}
.progress__bar {
  height: 100%; border-radius: var(--r-pill);
  background: var(--brand-600); transition: width .35s ease;
}
.progress__bar--success { background: var(--success); }
.progress__bar--warning { background: var(--warning); }
.progress__bar--danger  { background: var(--danger); }

.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row .progress { flex: 1 1 auto; min-width: 70px; }
.progress-row__value { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- Alerts ---- */

.alert {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px; margin-bottom: 18px;
  border: 1px solid; border-left-width: 3px; border-radius: var(--r-sm);
  font-size: 13.5px;
}
.alert svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.alert__body { min-width: 0; flex: 1 1 auto; }
.alert__body strong { display: block; margin-bottom: 2px; }
.alert__close { margin-left: auto; }

.alert--success { background: var(--success-bg); border-color: #a7f3d0; border-left-color: var(--success); color: #065f46; }
.alert--danger  { background: var(--danger-bg);  border-color: #fecaca; border-left-color: var(--danger);  color: #991b1b; }
.alert--warning { background: var(--warning-bg); border-color: #fde68a; border-left-color: var(--warning); color: #92400e; }
.alert--info    { background: var(--info-bg);    border-color: #bae6fd; border-left-color: var(--info);    color: #075985; }

/* ============================================================================================
   Tabs
   ============================================================================================ */

.tabs {
  display: flex; gap: 2px; overflow-x: auto;
  border-bottom: 1px solid var(--line); margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}
.tabs__link {
  padding: 10px 15px; white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--ink-3); font-size: 13.5px; font-weight: 500; text-decoration: none;
  transition: color .14s, border-color .14s;
  background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-family: inherit;
}
.tabs__link:hover { color: var(--ink); text-decoration: none; }
.tabs__link.is-active { color: var(--brand-700); border-bottom-color: var(--brand-600); font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ============================================================================================
   Modal
   ============================================================================================ */

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(15, 23, 42, .5);
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__dialog {
  width: 100%; max-width: 520px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  transform: translateY(-10px) scale(.99); transition: transform .18s;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__dialog--lg { max-width: 780px; }
.modal__dialog--sm { max-width: 420px; }

.modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal__head h2 { font-size: 16px; }
.modal__head p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); }
.modal__body { padding: 20px; overflow-y: auto; flex: 1 1 auto; }
.modal__foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--line);
  background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* ============================================================================================
   Charts (lightweight, CSS-drawn - no external library)
   ============================================================================================ */

.chart { width: 100%; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 8px; }
.bars__col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; height: 100%; }
.bars__stack {
  flex: 1 1 auto; width: 100%; max-width: 42px; display: flex; flex-direction: column;
  justify-content: flex-end; gap: 2px;
}
.bars__seg { border-radius: 3px; min-height: 2px; transition: height .4s ease; }
.bars__seg--present { background: var(--brand-500); }
.bars__seg--absent  { background: #fca5a5; }
.bars__seg--leave   { background: #fcd34d; }
.bars__label {
  flex: 0 0 auto; font-size: 10.5px; color: var(--ink-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

.hbars { display: flex; flex-direction: column; gap: 13px; }
.hbar__top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 13px; }
.hbar__top span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12.5px; color: var(--ink-2); }
.legend__key { display: inline-flex; align-items: center; gap: 6px; }
.legend__swatch { width: 11px; height: 11px; border-radius: 3px; }

.donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut__ring {
  position: relative; flex: 0 0 auto; width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center;
}
.donut__ring::after {
  content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--surface);
}
.donut__center { position: relative; z-index: 1; text-align: center; }
.donut__center strong { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; }
.donut__center span { font-size: 11px; color: var(--ink-3); }

/* ---- Funnel (recruitment analytics) ---- */

.funnel { display: flex; flex-direction: column; gap: 7px; }
.funnel__step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--brand-50); border-left: 3px solid var(--brand-500);
}
.funnel__step strong { flex: 1 1 auto; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.funnel__step span { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============================================================================================
   Pipeline board (UI/UX section 11)
   ============================================================================================ */

.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }

.board__col {
  flex: 0 0 272px; display: flex; flex-direction: column;
  background: var(--surface-3); border-radius: var(--r); border: 1px solid var(--line);
}
.board__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 13px; border-bottom: 1px solid var(--line);
}
.board__head strong { font-size: 13px; }
.board__body { padding: 10px; display: flex; flex-direction: column; gap: 9px; min-height: 90px; }

.board-card {
  display: block; padding: 12px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: var(--shadow-xs);
  transition: box-shadow .14s, transform .14s;
}
.board-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.board-card__top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.board-card__top strong { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-card__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: var(--ink-3); }

/* ============================================================================================
   Timeline (employment history, approval trail)
   ============================================================================================ */

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 5px; bottom: 5px;
  width: 2px; background: var(--line);
}
.timeline__item { position: relative; padding-bottom: 20px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -24px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--brand-500);
}
.timeline__item--success::before { border-color: var(--success); }
.timeline__item--danger::before  { border-color: var(--danger); }
.timeline__item--muted::before   { border-color: var(--line-dark); }
.timeline__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.timeline__head strong { font-size: 13.5px; }
.timeline__time { font-size: 11.5px; color: var(--ink-muted); }
.timeline__body { margin-top: 3px; font-size: 13px; color: var(--ink-2); }

/* ============================================================================================
   Definition lists (profile screens)
   ============================================================================================ */

.dl { display: grid; gap: 15px 24px; grid-template-columns: repeat(auto-fit, minmax(198px, 1fr)); margin: 0; }
.dl > div { min-width: 0; }
.dl dt {
  font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 2px;
}
.dl dd { margin: 0; font-size: 13.5px; color: var(--ink); word-break: break-word; }
.dl dd:empty::after { content: "-"; color: var(--ink-muted); }

/* ---- Profile banner ---- */

.profile-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--brand-700), var(--brand-500));
  color: #fff; box-shadow: var(--shadow);
}
.profile-head .avatar {
  background: rgba(255, 255, 255, .2); border: 2.5px solid rgba(255, 255, 255, .45);
}
.profile-head__text { min-width: 0; flex: 1 1 auto; }
.profile-head__text h1 { color: #fff; font-size: 21px; margin-bottom: 3px; }
.profile-head__text p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 13.5px; }
.profile-head__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.profile-head__meta .chip {
  background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); color: #fff;
}
.profile-head__actions { display: flex; gap: 9px; flex-wrap: wrap; }
.profile-head .btn--secondary {
  background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .32); color: #fff;
}
.profile-head .btn--secondary:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* ============================================================================================
   Sign-in page
   ============================================================================================ */

.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface);
}
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } }

.auth__aside {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px; color: #fff;
  background: linear-gradient(150deg, var(--brand-800), var(--brand-600) 55%, var(--brand-500));
}
@media (max-width: 900px) { .auth__aside { display: none; } }

.auth__aside::before, .auth__aside::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.auth__aside::before { width: 380px; height: 380px; top: -110px; right: -110px; }
.auth__aside::after  { width: 260px; height: 260px; bottom: -80px; left: -70px; }

.auth__aside-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.auth__aside-top .brand-mark { width: 40px; height: 40px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255,255,255,.28); }
.auth__aside-top strong { font-size: 16px; }

.auth__pitch { position: relative; z-index: 1; max-width: 430px; }
.auth__pitch h2 { color: #fff; font-size: 27px; line-height: 1.25; margin-bottom: 12px; letter-spacing: -.02em; }
.auth__pitch p { color: rgba(255, 255, 255, .85); font-size: 14.5px; margin-bottom: 26px; }

.auth__features { display: grid; gap: 11px; list-style: none; padding: 0; margin: 0; }
.auth__features li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .93); }
.auth__features svg { flex: 0 0 auto; width: 17px; height: 17px; }

.auth__foot { position: relative; z-index: 1; font-size: 12px; color: rgba(255, 255, 255, .65); }

.auth__main { display: grid; place-items: center; padding: 34px 24px; }
.auth__form { width: 100%; max-width: 384px; }
.auth__form-brand { display: none; align-items: center; gap: 11px; margin-bottom: 26px; }
@media (max-width: 900px) { .auth__form-brand { display: flex; } }
.auth__form h1 { font-size: 23px; margin-bottom: 6px; letter-spacing: -.02em; }
.auth__form > p { color: var(--ink-3); margin-bottom: 24px; font-size: 13.5px; }
.auth__form .field { margin-bottom: 15px; }
.auth__form .btn { margin-top: 6px; }

.auth__hint {
  margin-top: 26px; padding: 13px 15px;
  background: var(--surface-2); border: 1px dashed var(--line-dark); border-radius: var(--r-sm);
  font-size: 12.5px; color: var(--ink-2);
}
.auth__hint strong { display: block; margin-bottom: 6px; font-size: 12px; color: var(--ink); }
.auth__hint table { width: 100%; border-collapse: collapse; }
.auth__hint td { padding: 2.5px 0; font-family: var(--mono); font-size: 11.5px; }
.auth__hint td:first-child { color: var(--ink-3); padding-right: 12px; }

.pwd-wrap { position: relative; }
.pwd-wrap .input { padding-right: 42px; }
.pwd-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; background: none; color: var(--ink-muted); cursor: pointer; border-radius: var(--r-sm);
}
.pwd-toggle:hover { color: var(--ink-2); background: var(--surface-3); }
.pwd-toggle svg { width: 17px; height: 17px; }

/* ============================================================================================
   Utilities
   ============================================================================================ */

.u-flex   { display: flex; }
.u-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.u-center { display: flex; align-items: center; gap: 9px; }
.u-wrap   { flex-wrap: wrap; }
.u-col    { display: flex; flex-direction: column; }
.u-gap-sm { gap: 7px; }
.u-gap    { gap: 12px; }
.u-gap-lg { gap: 18px; }
.u-grow   { flex: 1 1 auto; min-width: 0; }
.u-right  { text-align: right; }
.u-center-text { text-align: center; }
.u-nowrap { white-space: nowrap; }
.u-num    { font-variant-numeric: tabular-nums; }
.u-mono   { font-family: var(--mono); font-size: 12.5px; }

.u-muted   { color: var(--ink-3); }
.u-dim     { color: var(--ink-muted); }
.u-strong  { font-weight: 600; }
.u-bold    { font-weight: 700; }
.u-sm      { font-size: 12.5px; }
.u-xs      { font-size: 11.5px; }
.u-lg      { font-size: 16px; }
.u-xl      { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.u-success { color: var(--success); }
.u-danger  { color: var(--danger); }
.u-warning { color: var(--warning); }
.u-brand   { color: var(--brand-600); }

.u-mt-0 { margin-top: 0; }
.u-mt   { margin-top: 12px; }
.u-mt-lg { margin-top: 20px; }
.u-mb-0 { margin-bottom: 0; }
.u-mb   { margin-bottom: 12px; }
.u-mb-lg { margin-bottom: 20px; }

.u-hide { display: none !important; }
@media (max-width: 767px) { .u-hide-sm { display: none !important; } }
@media (max-width: 1023px) { .u-hide-md { display: none !important; } }

.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* ============================================================================================
   Responsive breakpoints
   ============================================================================================ */

@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: none; }
  .header { left: 0; }
  .main { margin-left: 0; }
  .sidebar-toggle { display: grid; }
  body.sidebar-collapsed .sidebar { width: var(--sidebar-w); }
  body.sidebar-collapsed .sidebar .brand-text,
  body.sidebar-collapsed .sidebar .nav-link__label,
  body.sidebar-collapsed .sidebar .nav-section { display: revert; }
  body.sidebar-collapsed .header,
  body.sidebar-collapsed .main { left: 0; margin-left: 0; }
}

@media (max-width: 767px) {
  .main__inner { padding: 16px 15px 40px; }
  .header { padding: 0 13px; gap: 8px; }
  .header__search { display: none; }
  .page-head { margin-bottom: 16px; }
  .page-head h1 { font-size: 19px; }
  .stat { padding: 14px; }
  .stat__value { font-size: 22px; }
  .card__body { padding: 15px; }
  .card__head { padding: 13px 15px; }
  .filters { padding: 13px 15px; grid-template-columns: 1fr; }
  .table th, .table td { padding: 10px 12px; }
  .user-btn__meta { display: none; }
  .modal { padding: 12px; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1 1 auto; }
  .dl { grid-template-columns: 1fr 1fr; }
  .profile-head { padding: 16px; }
}

@media (max-width: 420px) {
  .dl { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* ---- Print ---- */

@media print {
  .sidebar, .header, .scrim, .page-head__actions, .filters,
  .card__foot, .form-actions, .no-print { display: none !important; }
  body { background: #fff; }
  .main { margin: 0; padding: 0; }
  .main__inner { padding: 0; max-width: none; }
  .card { border: 1px solid #d0d0d0; box-shadow: none; break-inside: avoid; }
  .table th { background: #f2f2f2 !important; }
  a { color: inherit; text-decoration: none; }
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
