/*
 * SCMS v2 — Shared shell CSS (Friendly Modern SaaS)
 *
 * Tokens, base, shell (sidebar + topbar), buttons, cards, tables, forms.
 * Loaded by every production page in /public/ (Phase 10 — V2 promoted to prod).
 * Each page adds its own page-specific styles inline if needed.
 *
 * Design tokens per ui-ux-pro-max skill:
 *   Style    : Soft UI Evolution + Friendly SaaS
 *   Type     : Plus Jakarta Sans + Noto Sans Thai
 *   Colors   : Indigo #6366F1 · Emerald CTA #10B981
 *   Effects  : Soft shadows, 12-16px radius, 200-300ms transitions
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
  --indigo-50: #EEF2FF; --indigo-100: #E0E7FF; --indigo-200: #C7D2FE; --indigo-300: #A5B4FC;
  --indigo-500: #6366F1; --indigo-600: #4F46E5; --indigo-700: #4338CA; --indigo-900: #312E81;
  --emerald-50: #ECFDF5; --emerald-100: #D1FAE5; --emerald-500: #10B981; --emerald-600: #059669; --emerald-700: #047857;
  --amber-50: #FFFBEB; --amber-100: #FEF3C7; --amber-500: #F59E0B; --amber-600: #D97706; --amber-700: #B45309;
  --rose-50: #FFF1F2; --rose-100: #FECDD3; --rose-500: #F43F5E; --rose-600: #E11D48; --rose-700: #BE123C;
  --sky-50: #F0F9FF; --sky-100: #E0F2FE; --sky-500: #0EA5E9; --sky-600: #0284C7;
  --violet-50: #F5F3FF; --violet-500: #8B5CF6; --violet-600: #7C3AED;
  --ink: #0F172A; --ink-2: #334155; --ink-3: #64748B; --ink-4: #94A3B8;
  --line: #E2E8F0; --line-2: #F1F5F9;
  --bg: #F8FAFC; --surface: #FFFFFF;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-2: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-3: 0 4px 16px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.04);
  --shadow-indigo: 0 8px 24px rgba(99, 102, 241, 0.18);
  --shadow-emerald: 0 8px 24px rgba(16, 185, 129, 0.22);
  --radius: 10px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px;
  --sans: "Plus Jakarta Sans", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sidebar-w: 260px; --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
*:focus-visible { outline: 2px solid var(--indigo-500); outline-offset: 2px; border-radius: 6px; }
[v-cloak] { display: none !important; }

/* Boot overlay — injected by _shell.js, removed once Vue mounts.
   Kept here so the spinner and error states look on-brand. */
.scms-boot { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); z-index: 9999; }
.scms-boot-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 36px; text-align: center; max-width: 360px; box-shadow: var(--shadow-2); }
.scms-boot-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--indigo-500), var(--indigo-700)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; margin: 0 auto 12px; }
.scms-boot-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.scms-boot-sub { font-size: 13px; color: var(--ink-3); margin: 0 0 16px; }
.scms-boot-spin { width: 20px; height: 20px; border: 2.5px solid var(--indigo-100); border-top-color: var(--indigo-500); border-radius: 50%; animation: scms-spin 800ms linear infinite; margin: 0 auto; }
@keyframes scms-spin { to { transform: rotate(360deg); } }
.scms-boot-error, .scms-boot-retry { display: none; }
.scms-boot[data-state="error"] .scms-boot-spin { display: none; }
.scms-boot[data-state="error"] .scms-boot-sub { color: #B91C1C; font-weight: 600; }
.scms-boot[data-state="error"] .scms-boot-error { display: block; color: var(--ink-3); font-size: 12.5px; margin: 8px 0 16px; }
.scms-boot[data-state="error"] .scms-boot-retry { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #fff; background: var(--indigo-600); border: 0; border-radius: 8px; cursor: pointer; text-decoration: none; }
.scms-boot[data-state="error"] .scms-boot-retry:hover { background: var(--indigo-700); }

/* Skip link */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; padding: 8px 14px; background: var(--indigo-600); color: #fff; border-radius: 8px; font-weight: 600; z-index: 100; }

/* Checkpoint banner — top of every v2 page */
.checkpoint-banner {
  background: linear-gradient(90deg, var(--indigo-600), var(--indigo-700));
  color: #fff; padding: 8px 20px;
  font-size: 12px; font-weight: 600;
  text-align: center; letter-spacing: 0.04em;
}
.checkpoint-banner a {
  color: var(--amber-500);
  text-decoration: none;
  font-weight: 700;
  margin-left: 8px;
}
.checkpoint-banner a:hover { text-decoration: underline; }

/* ─── App shell ─── */
.app {
  height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas: "brand topbar" "sidebar main";
}
@media (max-width: 1023.98px) {
  .app { grid-template-columns: 1fr; grid-template-areas: "topbar" "main"; }
  .app .sidebar, .app .brand { display: none; }
}

/* Sidebar fills its grid area and scrolls internally on tall nav lists */
.app .sidebar { overflow-y: auto; min-height: 0; }

/* Brand */
.brand {
  grid-area: brand;
  display: flex; align-items: center; gap: 10px;
  padding: 0 22px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-700));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: var(--shadow-indigo);
}
.brand-text { line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.brand-sub { font-weight: 500; font-size: 11px; color: var(--ink-3); }

/* Topbar */
.topbar {
  grid-area: topbar;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  display: flex; align-items: center; gap: 12px;
}
.topbar-search { position: relative; flex: 1; max-width: 480px; }
.topbar-search input {
  width: 100%; height: 40px;
  padding: 0 14px 0 40px;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  outline: none;
  transition: background 180ms, border-color 180ms, box-shadow 180ms;
}
.topbar-search input::placeholder { color: var(--ink-4); }
.topbar-search input:focus {
  background: var(--surface);
  border-color: var(--indigo-300);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.topbar-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); pointer-events: none;
}
.topbar-search input { padding-right: 70px; }
.topbar-search-hint {
  position: absolute; right: 36px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 600; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 999px; pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.topbar-spacer { flex: 1; }

/* Dropdown wrappers */
.topbar-bell-wrap, .topbar-user-wrap { position: relative; }

.topbar-icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: transparent; border: 0;
  color: var(--ink-2); cursor: pointer;
  position: relative;
  transition: background 180ms, color 180ms;
}
.topbar-icon-btn:hover { background: var(--line-2); color: var(--ink); }
.topbar-icon-btn .dot {
  position: absolute; top: 9px; right: 9px;
  width: 8px; height: 8px;
  background: var(--rose-500);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

/* Language toggle button */
.topbar-lang {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background 180ms, color 180ms, border-color 180ms;
}
.topbar-lang:hover { background: var(--line-2); color: var(--ink); border-color: #CBD5E1; }
.topbar-lang svg { width: 14px; height: 14px; flex-shrink: 0; }
@media (max-width: 639.98px) {
  .topbar-lang { padding: 0 9px; font-size: 11px; height: 32px; }
  .topbar-lang svg { width: 13px; height: 13px; }
}
.topbar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  cursor: pointer;
  background: transparent; border: 0;
  font-family: var(--sans);
  transition: background 180ms;
}
.topbar-user:hover { background: var(--line-2); }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-700));
  color: #fff; font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}
.topbar-user-text { line-height: 1.2; text-align: left; }
.topbar-user-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.topbar-user-role { font-weight: 500; font-size: 11px; color: var(--ink-3); }

/* Sidebar */
.sidebar {
  grid-area: sidebar;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 16px 12px;
}
.sidebar-section {
  padding: 12px 14px 6px;
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500; font-size: 14px;
  transition: background 180ms, color 180ms;
  position: relative;
}
.nav-link:hover { background: var(--line-2); color: var(--ink); }
.nav-link.active {
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-600));
  color: #fff; box-shadow: var(--shadow-indigo);
}
.nav-link.active .nav-count { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.15); }
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-count {
  margin-left: auto;
  font-weight: 600; font-size: 12px;
  color: var(--ink-3);
  background: var(--line-2);
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 24px; text-align: center;
}
.nav-link:hover .nav-count { background: var(--surface); }

/* Main */
.main {
  grid-area: main;
  overflow-y: auto;
  /* Prevent overflow:auto from being ignored when the parent grid row is 1fr */
  min-height: 0;
  padding: 28px 36px 56px;
}
@media (max-width: 1023.98px) { .main { padding: 22px 20px 48px; } }

/* Page header */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.page-eyebrow { font-weight: 600; font-size: 12px; color: var(--indigo-600); margin: 0 0 6px; }
.page-title {
  font-weight: 700; font-size: 28px; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 6px;
}
.page-lede { font-size: 14px; color: var(--ink-3); margin: 0; max-width: 64ch; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer; text-decoration: none;
  transition: background 180ms, border-color 180ms, transform 80ms, box-shadow 180ms;
}
.btn:hover:not(:disabled) { background: var(--line-2); border-color: #CBD5E1; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--indigo-600); border-color: var(--indigo-600); color: #fff; box-shadow: var(--shadow-indigo); }
.btn-primary:hover:not(:disabled) { background: var(--indigo-700); border-color: var(--indigo-700); color: #fff; }
.btn-cta { background: var(--emerald-500); border-color: var(--emerald-500); color: #fff; box-shadow: var(--shadow-emerald); }
.btn-cta:hover:not(:disabled) { background: var(--emerald-600); border-color: var(--emerald-600); color: #fff; }
.btn-success { background: var(--emerald-500); border-color: var(--emerald-500); color: #fff; }
.btn-success:hover:not(:disabled) { background: var(--emerald-600); border-color: var(--emerald-600); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); box-shadow: none; }
.btn-ghost:hover:not(:disabled) { background: var(--line-2); color: var(--ink); }
.btn-danger { background: transparent; border-color: var(--rose-100); color: var(--rose-600); }
.btn-danger:hover:not(:disabled) { background: var(--rose-50); border-color: var(--rose-500); color: var(--rose-700); }
.btn-warn { background: #F59E0B; border-color: #F59E0B; color: #fff; box-shadow: 0 6px 16px -8px rgba(245,158,11,0.45); }
.btn-warn:hover:not(:disabled) { background: #D97706; border-color: #D97706; color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-icon { width: 32px; padding: 0; }
.btn-block { width: 100%; }
.btn-lg { height: 46px; padding: 0 18px; font-size: 14.5px; }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.card-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.card-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-head-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--indigo-50); color: var(--indigo-600);
  display: grid; place-items: center; flex-shrink: 0;
}
.card-head-icon svg { width: 16px; height: 16px; }
.card-head-icon.green { background: var(--emerald-50); color: var(--emerald-600); }
.card-head-icon.amber { background: var(--amber-50); color: var(--amber-600); }
.card-head-icon.sky { background: var(--sky-50); color: var(--sky-500); }
.card-head-icon.violet { background: var(--violet-50); color: var(--violet-500); }
.card-title { font-weight: 700; font-size: 15px; color: var(--ink); margin: 0; line-height: 1.3; }
.card-sub { font-size: 12px; color: var(--ink-3); margin: 0; }
.card-body { padding: 20px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill--indigo { background: var(--indigo-50); color: var(--indigo-700); }
.pill--emerald { background: var(--emerald-50); color: var(--emerald-600); }
.pill--amber { background: var(--amber-50); color: var(--amber-600); }
.pill--rose { background: var(--rose-50); color: var(--rose-600); }
.pill--sky { background: var(--sky-50); color: var(--sky-500); }

/* Status pills (with dot) */
.status {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 700; font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-active, .status-approved { background: var(--emerald-50); color: var(--emerald-700); }
.status-pending { background: var(--amber-50); color: var(--amber-700); }
.status-rejected, .status-disabled { background: var(--rose-50); color: var(--rose-600); }
.status-draft { background: var(--line-2); color: var(--ink-3); }
.status-paid { background: var(--emerald-50); color: var(--emerald-700); }
.status-unpaid { background: var(--amber-50); color: var(--amber-700); }

/* Filter bar */
.filterbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-1);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.search-field { position: relative; flex: 1; min-width: 240px; }
.search-field svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); pointer-events: none;
}
.search-field input {
  width: 100%; height: 40px;
  padding: 0 12px 0 38px;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  outline: none;
  transition: background 180ms, border-color 180ms, box-shadow 180ms;
}
.search-field input:focus {
  background: var(--surface);
  border-color: var(--indigo-300);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; font-size: 12px;
  padding: 4px 10px;
  background: var(--line-2);
  color: var(--ink-3);
  border-radius: 999px;
}

/* Form */
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.label {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.label .req { color: var(--emerald-600); margin-left: 2px; }
.label .hint { font-weight: 500; font-size: 11px; color: var(--ink-4); }
.input, .textarea, .select {
  width: 100%; height: 42px;
  padding: 0 12px;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 180ms, box-shadow 180ms;
}
.input:hover, .textarea:hover, .select:hover { border-color: #CBD5E1; }
.input:focus, .textarea:focus, .select:focus,
.input:focus-visible, .textarea:focus-visible, .select:focus-visible {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.input:disabled, .textarea:disabled, .select:disabled {
  background: var(--line-2); color: var(--ink-3); cursor: not-allowed;
}
.textarea { height: auto; min-height: 70px; padding: 10px 12px; resize: vertical; line-height: 1.5; }

/* Banner */
.role-banner {
  background: var(--amber-50);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--amber-600);
  margin-bottom: 14px;
  display: flex; gap: 8px; align-items: flex-start;
}
.role-banner-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  background: var(--amber-500); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 11px;
}
.role-banner.danger { background: var(--rose-50); border-color: var(--rose-100); color: var(--rose-700); }
.role-banner.danger .role-banner-icon { background: var(--rose-500); }
.role-banner.info { background: var(--sky-50); border-color: var(--sky-100); color: var(--sky-600); }
.role-banner.info .role-banner-icon { background: var(--sky-500); }

/* Table */
.table-wrap { overflow: hidden; }
.table-scroll { overflow: auto; max-height: calc(100vh - 320px); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead { background: var(--bg); position: sticky; top: 0; z-index: 1; }
.table thead th {
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
  text-align: left;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody tr { transition: background 100ms; }
.table tbody tr:hover { background: var(--bg); }
.table tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.table .right { text-align: right; }

.name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.name-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--indigo-100), var(--indigo-50));
  color: var(--indigo-700);
  font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}
.name-text { min-width: 0; line-height: 1.3; }
.name-main { font-weight: 600; color: var(--ink); }
.name-sub { font-size: 12px; color: var(--ink-3); }

.row-actions { display: inline-flex; align-items: center; gap: 6px; }

/* Empty state */
.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--ink-3);
}
.empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--line-2); color: var(--ink-4);
  display: grid; place-items: center;
}
.empty h4 { font-weight: 700; color: var(--ink); margin: 0 0 4px; font-size: 16px; }
.empty p { font-size: 13px; margin: 0 0 14px; }

/* Table footer (pagination) */
.table-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
  background: var(--bg);
  flex-wrap: wrap;
}
.table-foot .spacer { flex: 1; }
.page-num { font-weight: 700; color: var(--ink); }

/* Spinner */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  opacity: 0.85;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton shimmer */
.skel {
  background: linear-gradient(90deg, var(--line-2) 0%, #fafafa 50%, var(--line-2) 100%);
  background-size: 800px 100%;
  animation: shim 1.4s infinite;
  border-radius: 6px;
}
@keyframes shim { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

/* Alert error */
.alert-error {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--rose-50);
  border: 1px solid #FECDD3;
  border-radius: var(--radius-md);
  font-size: 13px; color: #9F1239;
}

/* KPI tile */
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow 200ms, transform 200ms, border-color 200ms;
}
.kpi:hover { box-shadow: var(--shadow-2); border-color: var(--indigo-100); transform: translateY(-1px); }
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.kpi-icon svg { width: 20px; height: 20px; }
.kpi--indigo .kpi-icon { background: var(--indigo-50); color: var(--indigo-600); }
.kpi--emerald .kpi-icon { background: var(--emerald-50); color: var(--emerald-600); }
.kpi--amber .kpi-icon { background: var(--amber-50); color: var(--amber-600); }
.kpi--sky .kpi-icon { background: var(--sky-50); color: var(--sky-500); }
.kpi-label { font-weight: 500; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi-value { font-weight: 700; font-size: 28px; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.kpi-meta { font-size: 12px; color: var(--ink-3); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 1279.98px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639.98px) { .kpi-grid { grid-template-columns: 1fr; } }

/* Grid helpers */
.grid-2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; }
@media (max-width: 1199.98px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-2-equal { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 1023.98px) { .grid-2-equal { grid-template-columns: 1fr; } }

/* Two-pane patterns (list left + detail right, or form left + list right).
 * They collapse to a single column below 1199px so neither pane gets squashed.
 * align-items: start prevents the shorter card from stretching to match the
 * taller one — that's what was leaving empty space below the table. */
.grid-2--form-list { display: grid; gap: 18px; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); align-items: start; }
.grid-2--list-detail { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: start; }
@media (max-width: 1199.98px) {
  .grid-2--form-list,
  .grid-2--list-detail { grid-template-columns: 1fr; }
}

/* Field row helpers for explicit column counts (still collapse on mobile). */
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .field-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px)  { .field-row--3 { grid-template-columns: 1fr; } }

/* KPI grid forced to 2-up that still collapses to single column on phones. */
.kpi-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 639.98px) { .kpi-grid--2 { grid-template-columns: 1fr; } }

/* Inline utilities used by pages instead of style="..." overrides. */
.mb-18 { margin-bottom: 18px; }
.mt-6 { margin-top: 6px; }
.row-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; font-size: 12px; color: var(--ink-3);
}

/* =============================================================
 * Dropdown panels — bell notifications + user menu
 * ============================================================= */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 20px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  z-index: 100;
  overflow: hidden;
  animation: dropdown-in 160ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}
.dropdown-panel[hidden] { display: none; }
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.dropdown-header .badge-count {
  display: inline-flex; align-items: center;
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-weight: 600;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
}

.dropdown-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.dropdown-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--indigo-600);
  text-decoration: none;
  padding: 6px;
  border-radius: 8px;
  transition: background 180ms ease;
}
.dropdown-footer a:hover { background: var(--surface); color: var(--indigo-700); }

/* Notification list */
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-loading, .notif-empty, .notif-error {
  padding: 32px 18px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}
.notif-empty-icon {
  width: 48px; height: 48px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: var(--line-2);
  color: var(--ink-4);
  display: grid; place-items: center;
}
.notif-empty-icon svg { width: 22px; height: 22px; }
.notif-loading .spinner { margin: 0 auto 8px; display: block; }
.notif-error { color: var(--rose-600); }

.notif-row {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-2);
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease;
  position: relative;
}
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: var(--bg); }
.notif-row.unread { background: var(--indigo-50); }
.notif-row.unread:hover { background: rgba(238, 242, 255, 0.6); }
.notif-row.unread::before {
  content: "";
  position: absolute;
  left: 8px; top: 22px;
  width: 6px; height: 6px;
  background: var(--indigo-500);
  border-radius: 50%;
}
.notif-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  margin-left: 6px;
}
.notif-icon svg { width: 16px; height: 16px; }
.notif-icon.type-action  { background: var(--amber-50);   color: var(--amber-600); }
.notif-icon.type-info    { background: var(--sky-50);     color: var(--sky-500); }
.notif-icon.type-success { background: var(--emerald-50); color: var(--emerald-600); }
.notif-icon.type-warning { background: var(--amber-50);   color: var(--amber-700); }
.notif-body { flex: 1; min-width: 0; }
.notif-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  margin: 0 0 2px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notif-msg {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 0 4px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notif-time { font-size: 11px; color: var(--ink-4); font-weight: 500; }

/* User menu */
.user-menu-header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 18px;
  background: linear-gradient(135deg, var(--indigo-50), #FFFFFF);
  border-bottom: 1px solid var(--line);
}
.user-menu-avatar {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-700));
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-indigo);
  flex-shrink: 0;
}
.user-menu-info { min-width: 0; flex: 1; }
.user-menu-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-role {
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.user-menu-role::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald-500);
}

.user-menu-items {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14px;
  transition: background 150ms ease, color 150ms ease;
}
.user-menu-item:hover { background: var(--line-2); color: var(--ink); }
.user-menu-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-3); }
.user-menu-item:hover svg { color: var(--indigo-600); }

.user-menu-divider { height: 1px; background: var(--line); margin: 6px 12px; }

.user-menu-logout-wrap { padding: 8px 12px 12px; }
.user-menu-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.22);
  transition: filter 180ms ease, transform 80ms ease, box-shadow 180ms ease;
}
.user-menu-logout:hover { filter: brightness(1.05); }
.user-menu-logout:active { transform: translateY(1px); }
.user-menu-logout svg { width: 18px; height: 18px; }

/* Trigger active state */
.topbar-icon-btn.is-open, .topbar-user.is-open {
  background: var(--line-2);
  color: var(--ink);
}

/* Bell unread dot animation */
.topbar-icon-btn .dot {
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
}

/* Mobile: full-width dropdowns */
@media (max-width: 639.98px) {
  .dropdown-panel {
    width: calc(100vw - 16px);
    right: -8px;
  }
}

/* =============================================================
 * SweetAlert2 — v2 styling
 * Match modal look to Friendly Modern SaaS (rounded, soft, Jakarta Sans)
 * Loaded only on v2 pages so production Bootstrap is unaffected.
 * ============================================================= */
.swal2-container { font-family: var(--sans) !important; }

.swal2-popup {
  font-family: var(--sans) !important;
  border-radius: var(--radius-xl) !important;
  padding: 32px 28px !important;
  box-shadow: var(--shadow-3) !important;
  border: 1px solid var(--line);
}

.swal2-title {
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  color: var(--ink) !important;
  padding: 8px 0 4px !important;
  margin: 0 !important;
}

.swal2-html-container {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--ink-2) !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}

.swal2-actions {
  margin: 22px 0 0 !important;
  gap: 8px !important;
}

/* Action buttons */
.swal2-styled {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  transition: background 180ms ease, transform 80ms ease, box-shadow 180ms ease !important;
  margin: 0 !important;
}
.swal2-styled:active { transform: translateY(1px); }

.swal2-styled.swal2-confirm {
  background: var(--emerald-500) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: var(--shadow-emerald) !important;
}
.swal2-styled.swal2-confirm:hover {
  background: var(--emerald-600) !important;
}
.swal2-styled.swal2-confirm:focus {
  box-shadow: var(--shadow-emerald), 0 0 0 4px rgba(16, 185, 129, 0.2) !important;
}

.swal2-styled.swal2-cancel {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink-2) !important;
}
.swal2-styled.swal2-cancel:hover {
  background: var(--line-2) !important;
  border-color: #CBD5E1 !important;
  color: var(--ink) !important;
}

.swal2-styled.swal2-deny {
  background: var(--rose-50) !important;
  border: 1px solid var(--rose-100) !important;
  color: var(--rose-700) !important;
}
.swal2-styled.swal2-deny:hover { background: rgba(244, 63, 94, 0.1) !important; }

/* Icons */
.swal2-icon { margin: 6px auto 14px !important; }
.swal2-icon.swal2-success {
  border-color: var(--emerald-500) !important;
  color: var(--emerald-500) !important;
}
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(16, 185, 129, 0.3) !important; }
.swal2-icon.swal2-success [class^=swal2-success-line] { background-color: var(--emerald-500) !important; }
.swal2-icon.swal2-success .swal2-success-fix,
.swal2-icon.swal2-success .swal2-success-circular-line-left,
.swal2-icon.swal2-success .swal2-success-circular-line-right { background-color: var(--surface) !important; }

.swal2-icon.swal2-error {
  border-color: var(--rose-500) !important;
  color: var(--rose-500) !important;
}
.swal2-icon.swal2-error [class^=swal2-x-mark-line] { background-color: var(--rose-500) !important; }

.swal2-icon.swal2-warning {
  border-color: var(--amber-500) !important;
  color: var(--amber-500) !important;
}

.swal2-icon.swal2-info {
  border-color: var(--sky-500) !important;
  color: var(--sky-500) !important;
}

.swal2-icon.swal2-question {
  border-color: var(--indigo-500) !important;
  color: var(--indigo-500) !important;
}

/* Inputs inside SweetAlert */
.swal2-input, .swal2-textarea, .swal2-select, .swal2-file {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  padding: 10px 14px !important;
  margin: 8px 0 !important;
}
.swal2-input:focus, .swal2-textarea:focus, .swal2-select:focus, .swal2-file:focus {
  border-color: var(--indigo-500) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12) !important;
}

/* Validation message */
.swal2-validation-message {
  background: var(--rose-50) !important;
  color: var(--rose-700) !important;
  border-radius: var(--radius-md) !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
  margin-top: 12px !important;
}

/* Backdrop tint */
.swal2-container.swal2-backdrop-show {
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(4px);
}

/* Smoother entrance animation */
@keyframes scms-swal-pop {
  0%   { opacity: 0; transform: translateY(10px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}
.swal2-popup.swal2-show {
  animation: scms-swal-pop 220ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}
@keyframes scms-swal-out {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.96); }
}
.swal2-popup.swal2-hide {
  animation: scms-swal-out 160ms ease-out !important;
}

/* Toast variant (top-end) */
.swal2-container.swal2-top-end > .swal2-toast,
.swal2-container.swal2-top-right > .swal2-toast {
  border-left: 4px solid var(--indigo-500);
  background: var(--surface) !important;
}
.swal2-toast.swal2-icon-success { border-left-color: var(--emerald-500); }
.swal2-toast.swal2-icon-error   { border-left-color: var(--rose-500); }
.swal2-toast.swal2-icon-warning { border-left-color: var(--amber-500); }
.swal2-toast.swal2-icon-info    { border-left-color: var(--sky-500); }

/* Loader spinner */
.swal2-loader {
  border-color: var(--indigo-500) transparent var(--indigo-500) transparent !important;
}

/* Close button (x) */
.swal2-close {
  color: var(--ink-3) !important;
  font-size: 28px !important;
  transition: color 180ms ease, background 180ms ease;
  border-radius: 8px;
  width: 36px !important; height: 36px !important;
  top: 12px !important; right: 12px !important;
}
.swal2-close:hover { color: var(--ink) !important; background: var(--line-2) !important; }

/* Toast (smaller popup positions) */
.swal2-toast {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2) !important;
  padding: 12px 14px !important;
}
.swal2-toast .swal2-title { font-size: 14px !important; padding: 0 !important; }

/* Footer text */
.swal2-footer {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  color: var(--ink-3) !important;
  border-top: 1px dashed var(--line) !important;
  padding-top: 12px !important;
  margin-top: 16px !important;
}

/* =============================================================
 * AUTH pages — shared layout (login / register / forgot / reset)
 * Friendly Modern SaaS · split layout (hero left + form right)
 * ============================================================= */
.auth-stage {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
}
.auth-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.auth-head-actions { display: flex; gap: 8px; align-items: center; }
.auth-link {
  color: var(--indigo-600); font-weight: 600;
  text-decoration: none; padding: 8px 14px; border-radius: 10px;
  font-size: 13px;
  transition: background 160ms;
}
.auth-link:hover { background: var(--indigo-50); }

.auth-body { display: grid; }
.auth-grid { display: grid; gap: 0; min-height: 100%; }
@media (min-width: 1024px) { .auth-grid { grid-template-columns: 1.1fr 1fr; } }

/* HERO panel (left) */
.auth-hero {
  display: none;
  position: relative;
  overflow: hidden;
  padding: 56px 56px 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo-600) 0%, var(--indigo-900) 100%);
}
@media (min-width: 1024px) { .auth-hero { display: flex; flex-direction: column; justify-content: center; } }

/* drifting orbs (subtle decorative) */
.auth-hero::before,
.auth-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(2px);
  animation: scms-orb 14s ease-in-out infinite;
}
.auth-hero::before {
  right: -180px; top: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
}
.auth-hero::after {
  left: -120px; bottom: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(16,185,129,0.22) 0%, transparent 70%);
  animation-delay: -7s;
}
@keyframes scms-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -16px) scale(1.06); }
}

.auth-hero-inner { position: relative; z-index: 1; max-width: 480px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-weight: 600; font-size: 12px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  animation: scms-fade-in 600ms ease-out 100ms both;
}
.hero-pill .pill-dot {
  width: 8px; height: 8px;
  background: var(--emerald-500);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.3);
  animation: scms-pulse 2.4s ease-in-out infinite;
}
@keyframes scms-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.3); }
  50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0.0); }
}
.auth-hero h1 {
  font-weight: 700; font-size: 38px; line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px; color: #fff;
  animation: scms-fade-in 600ms ease-out 200ms both;
}
.auth-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--emerald-500), #6EE7B7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-hero-lede {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin: 0 0 28px;
  animation: scms-fade-in 600ms ease-out 300ms both;
}
@keyframes scms-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero variants per page */
.auth-hero--login    { background: linear-gradient(135deg, var(--indigo-600) 0%, var(--indigo-900) 100%); }
.auth-hero--register { background: linear-gradient(135deg, var(--emerald-600) 0%, #064E3B 100%); }
.auth-hero--register::after { background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 70%); }
.auth-hero--forgot   { background: linear-gradient(135deg, var(--sky-500) 0%, #0C4A6E 100%); }
.auth-hero--forgot::after { background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%); }
.auth-hero--reset    { background: linear-gradient(135deg, var(--violet-600) 0%, #4C1D95 100%); }
.auth-hero--reset::after { background: radial-gradient(circle, rgba(245,158,11,0.22) 0%, transparent 70%); }

/* Feature list (used in login hero) */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; animation: scms-fade-in 600ms ease-out 400ms both; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.92); }
.feature-list .check {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 8px;
  background: rgba(16,185,129,0.18); color: var(--emerald-500);
  display: grid; place-items: center;
}
.feature-list .check svg { width: 14px; height: 14px; }
.feature-list .feat-title { font-weight: 600; }
.feature-list .feat-sub { font-size: 12px; color: rgba(255,255,255,0.65); display: block; margin-top: 2px; }

/* Hero info card (forgot/reset/register may use) */
.hero-info-card {
  margin-top: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 13px; line-height: 1.6;
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  animation: scms-fade-in 600ms ease-out 400ms both;
}
.hero-info-card strong { display: block; font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 4px; }
.hero-info-card-row { display: flex; gap: 10px; align-items: flex-start; }
.hero-info-card-row + .hero-info-card-row { margin-top: 10px; }
.hero-info-card-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.16);
  display: grid; place-items: center;
  color: #fff;
}
.hero-info-card-icon svg { width: 14px; height: 14px; }

/* Hero step timeline (used in register) */
.hero-timeline { display: grid; gap: 14px; margin-top: 24px; animation: scms-fade-in 600ms ease-out 400ms both; }
.hero-step { display: flex; gap: 14px; align-items: flex-start; }
.hero-step-num {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #fff;
}
.hero-step-text strong { display: block; font-weight: 700; font-size: 14px; color: #fff; }
.hero-step-text span { display: block; font-size: 12.5px; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* FORM (right) */
.auth-form-wrap { display: grid; place-items: center; padding: 48px 24px; }
.auth-card {
  width: 100%; max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  padding: 38px 36px;
  animation: scms-card-in 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-card--wide { max-width: 540px; }
@media (max-width: 639.98px) { .auth-card { padding: 26px 22px; border-radius: var(--radius-lg); } }
@keyframes scms-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 12px; color: var(--indigo-700);
  background: var(--indigo-50);
  padding: 5px 10px; border-radius: 999px;
  margin-bottom: 16px;
}
.auth-eyebrow .dot { width: 6px; height: 6px; background: var(--indigo-500); border-radius: 50%; }
.auth-eyebrow--emerald { color: var(--emerald-600); background: var(--emerald-50); }
.auth-eyebrow--emerald .dot { background: var(--emerald-500); }
.auth-eyebrow--sky { color: var(--sky-600); background: var(--sky-50); }
.auth-eyebrow--sky .dot { background: var(--sky-500); }
.auth-eyebrow--violet { color: var(--violet-600); background: var(--violet-50); }
.auth-eyebrow--violet .dot { background: var(--violet-500); }

.auth-card h2 {
  font-weight: 700; font-size: 26px; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 6px;
}
.auth-card h2 .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 1.6s 2 ease-in-out 0.6s; }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(14deg); } 50% { transform: rotate(-4deg); } }
.auth-card .lede { font-size: 14px; color: var(--ink-3); margin: 0 0 24px; line-height: 1.55; }

/* Input with leading icon + optional password toggle */
.input-wrap { position: relative; }
.input-wrap .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); pointer-events: none;
  transition: color 160ms;
}
.input-wrap .input { padding-left: 42px; height: 46px; }
.input-wrap .input:focus + .input-icon,
.input-wrap:focus-within .input-icon { color: var(--indigo-600); }
.pwd-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: transparent; border: 0; border-radius: 8px;
  color: var(--ink-3); cursor: pointer;
  display: grid; place-items: center;
  transition: background 160ms, color 160ms;
}
.pwd-toggle:hover { background: var(--line-2); color: var(--ink); }

.row-link { display: flex; justify-content: flex-end; margin: -4px 0 16px; }
.link {
  font-weight: 600; font-size: 13px; color: var(--indigo-600);
  text-decoration: none;
  transition: color 160ms;
}
.link:hover { color: var(--indigo-700); text-decoration: underline; }

/* Notice / info banner inside auth card */
.notice {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--amber-50);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  font-size: 12.5px; line-height: 1.55;
  color: var(--amber-700);
  display: flex; gap: 10px; align-items: flex-start;
}
.notice-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--amber-500); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
}

.auth-divider {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-size: 13px; color: var(--ink-3);
}
.auth-divider a { font-weight: 700; color: var(--indigo-600); text-decoration: none; }
.auth-divider a:hover { text-decoration: underline; }

/* Auth footer */
.auth-foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 14px 28px;
  text-align: center;
  font-size: 12px; color: var(--ink-3);
}

/* Password strength meter (used in reset-password) */
.pwd-meter { margin-top: -4px; margin-bottom: 14px; }
.pwd-meter-track {
  height: 6px;
  background: var(--line-2);
  border-radius: 999px;
  overflow: hidden;
  display: flex; gap: 3px;
  padding: 0;
}
.pwd-meter-seg {
  flex: 1;
  background: var(--line);
  border-radius: 999px;
  transition: background 200ms;
}
.pwd-meter--1 .pwd-meter-seg:nth-child(-n+1) { background: var(--rose-500); }
.pwd-meter--2 .pwd-meter-seg:nth-child(-n+2) { background: var(--amber-500); }
.pwd-meter--3 .pwd-meter-seg:nth-child(-n+3) { background: var(--sky-500); }
.pwd-meter--4 .pwd-meter-seg:nth-child(-n+4) { background: var(--emerald-500); }
.pwd-meter-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px;
  font-size: 11px; color: var(--ink-3);
}
.pwd-meter-strength { font-weight: 700; }
.pwd-meter--1 .pwd-meter-strength { color: var(--rose-500); }
.pwd-meter--2 .pwd-meter-strength { color: var(--amber-600); }
.pwd-meter--3 .pwd-meter-strength { color: var(--sky-600); }
.pwd-meter--4 .pwd-meter-strength { color: var(--emerald-600); }

.pwd-checks { display: grid; gap: 4px; margin-top: 10px; font-size: 12px; }
.pwd-check { display: flex; align-items: center; gap: 6px; color: var(--ink-3); transition: color 160ms; }
.pwd-check.ok { color: var(--emerald-600); }
.pwd-check svg { width: 13px; height: 13px; flex-shrink: 0; }
.pwd-check .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* Rule list (used in reset-password) */
.rule-list {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px; color: var(--ink-2);
  margin-top: 14px;
  line-height: 1.7;
}
.rule-list strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

/* =============================================================
 * RESPONSIVE — Mobile drawer for sidebar
 * The shell sidebar disappears below 1024px; add a hamburger
 * button and a slide-in drawer with backdrop.
 * ============================================================= */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--ink-2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 180ms ease;
}
.menu-toggle:hover { background: var(--line-2); color: var(--ink); }
.menu-toggle svg { width: 20px; height: 20px; }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

@media (max-width: 1023.98px) {
  .menu-toggle { display: inline-flex; }
  .app .sidebar, .app .brand { display: block; }
  .app .brand {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: var(--topbar-h);
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    border-right: 1px solid var(--line);
  }
  .app .sidebar {
    position: fixed;
    top: var(--topbar-h); left: 0; bottom: 0;
    width: var(--sidebar-w);
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    overflow-y: auto;
  }
  body.menu-open .app .brand,
  body.menu-open .app .sidebar {
    transform: translateX(0);
    box-shadow: var(--shadow-3);
  }
  body.menu-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  /* Hide topbar search field text on mobile to save space */
  .topbar-search input { padding-left: 36px; font-size: 13px; }
  .topbar { padding: 0 14px; gap: 8px; }
  .topbar-user-text { display: none; }
  .main { padding: 20px 16px 48px; }
  .page-head { gap: 12px; }
  .page-title { font-size: 24px; }
  .page-actions { width: 100%; flex-wrap: wrap; }
  .page-actions .btn { flex: 1 1 auto; min-width: 120px; }
  /* When there's only one action, don't stretch it across the page. */
  .page-actions .btn:only-child { flex: 0 0 auto; }
  .filterbar { padding: 12px; gap: 8px; }
  .field-row { grid-template-columns: 1fr !important; }
}

@media (max-width: 639.98px) {
  .checkpoint-banner { font-size: 11px; padding: 6px 12px; line-height: 1.4; }
  .checkpoint-banner a { display: inline-block; margin-top: 2px; }
  .topbar { padding: 0 10px; height: 56px; gap: 6px; }
  .topbar-search { display: none; }
  .topbar-icon-btn { width: 36px; height: 36px; }
  .avatar { width: 28px; height: 28px; font-size: 12px; }
  .page-title { font-size: 22px; }
  .table { font-size: 13px; }
  .table thead th, .table tbody td { padding: 10px 8px; }
  .card-body { padding: 16px; }
  .swal2-popup { padding: 24px 20px !important; }
  .swal2-title { font-size: 18px !important; }
}

/* ═══════════════════════════════════════════════════════════
 * SHARED AUTH SHELL — used by index, register-teacher,
 * forgot-password, reset-password (NBTC-inspired 2-panel)
 * ═══════════════════════════════════════════════════════════ */
.auth-stage-v2 {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px 24px;
  background: var(--bg);
}

.auth-shell {
  width: 100%; max-width: 1240px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px -32px rgba(15, 23, 42, 0.28);
  display: grid; grid-template-columns: 1.05fr 1fr;
  min-height: 680px;
}
@media (max-width: 980px) { .auth-shell { grid-template-columns: 1fr; min-height: 0; } }

.auth-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #4338CA 0%, #1E1B4B 100%);
  color: #fff;
  padding: 44px 48px 40px;
  display: flex; flex-direction: column; gap: 28px;
}
.auth-hero-blob {
  position: absolute; width: 320px; height: 320px; border-radius: 999px;
  filter: blur(80px); pointer-events: none;
}
.auth-hero-blob--top { top: -120px; left: -100px; background: rgba(99,102,241,0.55); }
.auth-hero-blob--bottom { bottom: -160px; right: -120px; background: rgba(16,185,129,0.32); }
.auth-hero-graphic {
  position: absolute; top: 6%; right: -8%;
  width: 540px; height: 540px;
  pointer-events: none; opacity: 0.85;
}
@media (max-width: 1180px) { .auth-hero-graphic { width: 420px; height: 420px; opacity: 0.55; } }
.auth-hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 28px; flex: 1;
}

.auth-brand-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; color: #fff;
  backdrop-filter: blur(8px); align-self: flex-start;
}
.auth-brand-pill .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52,211,153,0.22);
  animation: authPulse 1.6s ease-in-out infinite;
}
@keyframes authPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52,211,153,0.22); }
  50% { box-shadow: 0 0 0 8px rgba(52,211,153,0.04); }
}

.auth-hero-title {
  font-size: 38px; line-height: 1.12; font-weight: 800;
  letter-spacing: -0.02em; margin: 0;
}
.auth-hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, #34D399, #6EE7B7);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (max-width: 1180px) { .auth-hero-title { font-size: 32px; } }
@media (max-width: 600px) { .auth-hero-title { font-size: 26px; } }

.auth-hero-lede {
  font-size: 14.5px; line-height: 1.65;
  color: rgba(226,232,240,0.85);
  margin: 0; max-width: 460px;
}

.auth-status-chip {
  position: absolute; top: 24px; right: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(16,185,129,0.18); border: 1px solid rgba(52,211,153,0.35);
  color: #6EE7B7; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  backdrop-filter: blur(6px); z-index: 2;
}
.auth-status-chip .dot {
  width: 6px; height: 6px; border-radius: 999px; background: #34D399;
  box-shadow: 0 0 0 3px rgba(52,211,153,0.2);
}

.auth-feature-list { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding: 0; list-style: none; }
.auth-feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  transition: background 200ms, border-color 200ms;
}
.auth-feature-item:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); }
.auth-feature-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(52,211,153,0.25), rgba(99,102,241,0.25));
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-weight: 700; font-size: 14px;
}
.auth-feature-icon svg { width: 18px; height: 18px; }
.auth-feature-text { flex: 1; min-width: 0; }
.auth-feature-text strong { display: block; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; line-height: 1.3; }
.auth-feature-text span { display: block; font-size: 12px; line-height: 1.4; color: rgba(226,232,240,0.72); }

.auth-panel {
  background: #fff; padding: 44px 56px 36px;
  display: flex; flex-direction: column; position: relative;
}
@media (max-width: 720px) { .auth-panel { padding: 32px 24px; } }

.auth-panel-header {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; margin-bottom: 28px;
}
.auth-org-mark {
  width: 64px; height: 64px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-700));
  color: #fff; font-weight: 800; font-size: 26px; letter-spacing: -0.02em;
  box-shadow: 0 12px 32px -12px var(--indigo-600);
}
.auth-welcome { font-size: 22px; font-weight: 800; color: var(--ink); margin: 4px 0 0; letter-spacing: -0.01em; }
.auth-welcome-sub { font-size: 13px; color: var(--ink-3); margin: 0; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field-label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; display: block; }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-icon { position: absolute; left: 14px; pointer-events: none; color: var(--ink-4); }
.auth-input {
  width: 100%; height: 48px; padding: 0 16px 0 44px;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  outline: none; transition: border-color 160ms, box-shadow 160ms, background 160ms;
}
.auth-input::placeholder { color: var(--ink-4); }
.auth-input:focus {
  border-color: var(--indigo-400);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.14);
  background: #fff;
}
.auth-input--no-icon { padding-left: 16px; }
.auth-textarea {
  width: 100%; min-height: 96px; padding: 14px 16px;
  font-family: var(--sans); font-size: 14px; color: var(--ink); line-height: 1.5;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  outline: none; resize: vertical;
  transition: border-color 160ms, box-shadow 160ms, background 160ms;
}
.auth-textarea:focus { border-color: var(--indigo-400); box-shadow: 0 0 0 4px rgba(99,102,241,0.14); background: #fff; }
.auth-input-eye {
  position: absolute; right: 12px; width: 32px; height: 32px; border-radius: 8px;
  border: none; background: transparent; color: var(--ink-3);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.auth-input-eye:hover { background: var(--line-2); color: var(--ink); }
.auth-input-eye svg { width: 16px; height: 16px; }

.auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .auth-row-2 { grid-template-columns: 1fr; } }
.auth-row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.auth-remember { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; }
.auth-remember input { width: 16px; height: 16px; accent-color: var(--indigo-600); cursor: pointer; }
.auth-link { font-size: 13px; font-weight: 600; color: var(--indigo-600); text-decoration: none; }
.auth-link:hover { color: var(--indigo-700); text-decoration: underline; }

.auth-cta {
  width: 100%; height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-700));
  color: #fff; font-weight: 700; font-size: 15px;
  border: none; border-radius: 14px; cursor: pointer;
  box-shadow: 0 12px 28px -12px var(--indigo-600);
  transition: transform 80ms, box-shadow 200ms, opacity 200ms;
}
.auth-cta:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 32px -12px var(--indigo-700); }
.auth-cta:active:not(:disabled) { transform: translateY(0); }
.auth-cta:disabled { opacity: 0.7; cursor: not-allowed; }
.auth-cta svg { width: 16px; height: 16px; }
.auth-cta--emerald {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  box-shadow: 0 12px 28px -12px var(--emerald-500);
}
.auth-cta--emerald:hover:not(:disabled) { box-shadow: 0 16px 32px -12px var(--emerald-600); }

.auth-secondary-cta {
  width: 100%; height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--indigo-700);
  font-weight: 700; font-size: 14px;
  border: 1.5px solid var(--indigo-200); border-radius: 14px;
  cursor: pointer; margin-top: 10px;
  transition: background 160ms, border-color 160ms;
  text-decoration: none;
}
.auth-secondary-cta:hover { background: var(--indigo-50); border-color: var(--indigo-400); color: var(--indigo-700); }
.auth-secondary-cta svg { width: 14px; height: 14px; }

.auth-spinner {
  width: 16px; height: 16px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  animation: authSpin 0.8s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

.auth-notice {
  margin-top: 18px; padding: 10px 12px; border-radius: 10px;
  background: #FEF3C7; border: 1px solid #FDE68A; color: #92400E;
  font-size: 12px; line-height: 1.45;
  display: flex; align-items: flex-start; gap: 8px;
}
.auth-notice svg { width: 14px; height: 14px; margin-top: 1px; flex-shrink: 0; }

.auth-success {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25);
  color: #047857; font-size: 13px; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 10px;
}
.auth-success svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }

.auth-security-note {
  margin-top: auto; padding-top: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--indigo-700); font-weight: 600;
}
.auth-security-note svg { width: 14px; height: 14px; }

.auth-foot {
  text-align: center; padding: 18px 16px 24px;
  font-size: 12px; color: var(--ink-3);
}

.auth-top-actions {
  position: fixed; top: 12px; right: 16px; z-index: 60;
  display: flex; gap: 8px; align-items: center;
}
.auth-top-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  background: rgba(255,255,255,0.94); border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; text-decoration: none; backdrop-filter: blur(8px);
}
.auth-top-btn:hover { color: var(--indigo-700); border-color: var(--indigo-300); }
.auth-top-btn svg { width: 12px; height: 12px; }

/* Password strength meter */
.auth-pwd-meter { display: flex; gap: 4px; margin-top: 6px; }
.auth-pwd-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background 200ms; }
.auth-pwd-bar.is-weak { background: #EF4444; }
.auth-pwd-bar.is-fair { background: #F59E0B; }
.auth-pwd-bar.is-good { background: #22C55E; }
.auth-pwd-bar.is-strong { background: var(--emerald-600); }
.auth-pwd-checks { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.auth-pwd-check { display: inline-flex; align-items: center; gap: 6px; }
.auth-pwd-check svg { width: 12px; height: 12px; }
.auth-pwd-check.is-met { color: var(--emerald-600); }
