/* ==========================================================================
   HTMS Premium Layer
   ==========================================================================
   Loaded LAST on every page. This file only refines presentation — it adds no
   new DOM contract and changes no element ids, so every data hook the
   JavaScript relies on keeps working exactly as before.

   Design direction: "data-dense enterprise console".
     * A dark navy command band anchors each page and makes the app feel like
       software rather than a document.
     * Numbers are the hero: tabular figures, tight tracking, generous scale.
     * Depth comes from layered, tinted shadows rather than heavy borders.
     * Motion is short, purposeful, and fully disabled under reduced-motion.
   ========================================================================== */

/* ==========================================================================
   1. TOKENS — extends design-system.css, never replaces it
   ========================================================================== */
:root {
  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Lexend', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layered shadows — tinted with the brand navy so they read as depth,
     not as grey haze over a white page. */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.07);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 3px 8px rgba(16, 24, 40, 0.07);
  --shadow-md: 0 2px 5px rgba(16, 24, 40, 0.07), 0 10px 24px -6px rgba(22, 51, 90, 0.16);
  --shadow-lg: 0 5px 10px rgba(16, 24, 40, 0.07), 0 20px 44px -12px rgba(22, 51, 90, 0.24);
  --shadow-xl: 0 9px 18px rgba(16, 24, 40, 0.09), 0 34px 68px -16px rgba(22, 51, 90, 0.30);
  --shadow-ring: 0 0 0 1px var(--border-subtle);

  /* Signature gradients */
  --grad-command: linear-gradient(135deg, #0b1424 0%, #14263f 45%, #1b3454 100%);
  --grad-accent: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-400) 100%);
  --grad-emerald: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-500) 100%);
  --grad-amber: linear-gradient(135deg, var(--amber-600) 0%, var(--amber-500) 100%);

  --radius-card: 14px;
  --radius-panel: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
}

/* ==========================================================================
   2. TYPOGRAPHY
   Display face for headings and figures; Inter for everything users read at
   length. Every numeric surface uses tabular figures so columns of digits
   line up and values don't jitter as they animate.
   ========================================================================== */
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

h1, h2, h3,
.panel-title,
.page-title-header,
.brand-title,
.kpi-value,
.stat-num,
.hero-subtitle {
  font-family: var(--font-display);
  letter-spacing: -0.022em;
}

.kpi-value,
.stat-num,
.cl-value,
.cl-pct,
.rank-attendees,
.company-pct,
.legend-value,
.nav-item-badge,
.data-table td,
.metric-value,
.mini-stat-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* ==========================================================================
   3. APP HEADER — sticky, glass, quieter chrome
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.breadcrumb-trail {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.breadcrumb-trail i { font-size: 8px; opacity: 0.55; }

.page-title-header {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

/* Search reads as a real control, not a label */
.header-search {
  min-width: 300px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-sunken);
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.header-search:hover {
  background: #fff;
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}
.header-search:focus-visible {
  outline: none;
  border-color: var(--accent-400);
  box-shadow: 0 0 0 3px var(--accent-50);
}
.kbd-hint {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--border-default);
  color: var(--text-tertiary);
  box-shadow: 0 1px 0 var(--border-default);
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  color: var(--text-secondary);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text-primary); }

.header-user {
  height: 42px;
  padding: 0 10px 0 6px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.header-user:hover { background: var(--surface-hover); border-color: var(--border-subtle); }
.header-user .avatar-circle {
  background: var(--grad-command);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(22, 51, 90, 0.28);
}
.user-name-sm { font-weight: 650; font-size: 13px; color: var(--text-primary); }
.user-role-sm { font-size: 11.5px; color: var(--text-tertiary); font-weight: 500; }

.dropdown-panel {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  overflow: hidden;
}
.dd-item {
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 11px;
  transition: background var(--dur-fast) var(--ease-out);
}
.dd-item:hover { background: var(--surface-hover); }

/* ==========================================================================
   4. SIDEBAR — deeper navy, clearer active state
   ========================================================================== */
.sidebar {
  background: var(--grad-command);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-brand { border-bottom: 1px solid var(--navy-border); }
.brand-mark {
  background: var(--grad-accent);
  box-shadow: 0 4px 14px rgba(44, 95, 158, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  font-weight: 800;
}
.brand-title { font-weight: 800; letter-spacing: -0.02em; }
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--navy-text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav-section-label {
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.34);
}

.sidebar-nav a {
  position: relative;
  border-radius: 10px;
  font-weight: 550;
  font-size: 13.5px;
  color: var(--navy-text);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.sidebar-nav a i { transition: color var(--dur-fast) var(--ease-out); }
.sidebar-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

/* Active item: accent rail + tinted field + glow. Reads instantly at a glance. */
.sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(74, 126, 196, 0.24) 0%, rgba(74, 126, 196, 0.06) 100%);
  color: #fff;
  font-weight: 650;
}
.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--accent-400);
  box-shadow: 0 0 12px rgba(74, 126, 196, 0.9);
}
.sidebar-nav a.active i { color: #7fb0e8; }

.nav-item-badge {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #dbe6f6;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 6px;
}

.sidebar-footer { border-top: 1px solid var(--navy-border); }
.sidebar-user .avatar-circle {
  background: var(--grad-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   5. COMMAND BAND — the page hero, rebuilt
   The first thing seen after login. Dark, wide, and confident, with the
   workspace summary sitting directly on it.
   ========================================================================== */
.main-content { background: var(--surface-app); }

.command-band {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--grad-command);
  padding: 26px 30px;
  margin-bottom: var(--sp-5, 20px);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
/* Aurora wash + fine grid: depth without a background image request. */
.command-band::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -2;
  background:
    radial-gradient(680px 320px at 88% -30%, rgba(74, 126, 196, 0.42), transparent 70%),
    radial-gradient(520px 300px at 8% 130%, rgba(26, 157, 99, 0.22), transparent 70%);
}
.command-band::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 85%);
}

.cb-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: #8fb6e4;
  margin-bottom: 10px;
}
.cb-eyebrow .cb-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(26, 157, 99, 0.16);
  border: 1px solid rgba(26, 157, 99, 0.36);
  color: #6ee7a8;
  letter-spacing: 0.06em;
}
.cb-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: cb-pulse 2.4s ease-out infinite;
}
@keyframes cb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.cb-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 8px;
}
.cb-title .cb-accent {
  background: linear-gradient(100deg, #7fb0e8 0%, #a5d8bf 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cb-support {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(214, 225, 240, 0.78);
  max-width: 56ch;
  margin: 0;
}

.cb-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(198, 214, 235, 0.7);
  flex-wrap: wrap;
}
.cb-meta-item { display: inline-flex; align-items: center; gap: 7px; }
.cb-meta-item i { font-size: 11px; opacity: 0.65; }
.cb-meta-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.14); }

/* Compliance ring — the single number that matters most, made physical. */
.cb-gauge {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cb-ring {
  position: relative;
  width: 84px; height: 84px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  /* --cb-pct is set inline by dashboard-premium.js */
  background: conic-gradient(#34d399 calc(var(--cb-pct, 0) * 1%), rgba(255, 255, 255, 0.10) 0);
  transition: background 900ms var(--ease-out);
}
.cb-ring::after {
  content: '';
  position: absolute; inset: 7px;
  border-radius: 50%;
  background: #101d31;
}
.cb-ring-value {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cb-gauge-text { display: flex; flex-direction: column; gap: 3px; }
.cb-gauge-label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #8fb6e4;
}
.cb-gauge-main { font-size: 14px; font-weight: 650; color: #fff; }
.cb-gauge-sub { font-size: 12px; color: rgba(198, 214, 235, 0.62); }

/* Toolbar sitting on the band */
.cb-actions {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.command-band .filter-trigger {
  height: 38px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #dbe6f6;
  border-radius: 10px;
  font-size: 12.5px;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.command-band .filter-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}
.command-band .filter-label { color: rgba(198, 214, 235, 0.6); }
.command-band .filter-value { color: #fff; font-weight: 600; }
.command-band .btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.command-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }
.command-band .btn-primary {
  background: var(--grad-accent);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(44, 95, 158, 0.5);
}
.command-band .btn-primary:hover { filter: brightness(1.08); }
.cb-actions .cb-spacer { flex: 1 1 auto; }

/* ==========================================================================
   6. KPI CARDS
   ========================================================================== */
/* Eight KPIs read as one instrument cluster: two even rows of four, then
   stepping down in even counts — never an odd remainder that looks like
   something fell off the end. */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: var(--sp-5, 20px);
}
@media (max-width: 1180px) { .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .kpi-strip { grid-template-columns: 1fr; } }

.kpi-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
/* Accent rail across the top — the per-card colour cue. */
.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--kpi-accent, var(--accent-500));
  opacity: 0.9;
}
/* Soft tint bloom in the corner, revealed on hover. */
.kpi-card::after {
  content: '';
  position: absolute; top: -40%; right: -20%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--kpi-accent, var(--accent-500));
  opacity: 0;
  filter: blur(46px);
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-default);
}
.kpi-card:hover::after { opacity: 0.10; }

.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.kpi-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 16px;
  background: var(--kpi-icon-bg, var(--accent-50));
  color: var(--kpi-icon-fg, var(--accent-600));
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.04);
}

.kpi-trend {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.kpi-trend.up { background: var(--emerald-50); color: var(--emerald-700); }
.kpi-trend.down { background: #fdecec; color: #b42318; }
.kpi-trend.flat { background: var(--surface-sunken); color: var(--text-secondary); }
.kpi-trend i { font-size: 9px; }

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.035em;
  margin-bottom: 5px;
}
.kpi-label {
  font-size: 12.5px; font-weight: 650;
  color: var(--text-secondary);
  margin-bottom: 3px;
}
.kpi-context { font-size: 11.5px; color: var(--text-tertiary); line-height: 1.45; }

/* ==========================================================================
   7. PANELS
   ========================================================================== */
.panel {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.panel:hover { box-shadow: var(--shadow-md); }

.panel-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.panel-title {
  font-size: 15px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 9px;
}
/* Small accent tick before each panel title ties panels to the brand. */
.panel-title::before {
  content: '';
  width: 3px; height: 15px;
  border-radius: 2px;
  background: var(--grad-accent);
  flex-shrink: 0;
}
.panel-subtitle { font-size: 12.5px; color: var(--text-tertiary); margin-top: 4px; line-height: 1.5; }
.panel-body { padding: 18px 20px 20px; }

/* Dense application modules should shrink inside the app column, never force
   the page itself wider than the viewport. */
.main-col,
.main-content,
.page-hero-text,
.panel,
.panel-header > div { min-width: 0; }
.page-hero-actions,
.toolbar,
.table-toolbar,
.filter-bar,
.action-bar { max-width: 100%; flex-wrap: wrap; }
.panel-header { gap: 12px; flex-wrap: wrap; }
.panel-body { max-width: 100%; }

@media (max-width: 900px) {
  .page-hero-actions { width: 100%; }
  .page-hero-actions > input,
  .page-hero-actions > select { flex: 1 1 180px; min-width: 0; }
}

.segmented {
  display: inline-flex;
  background: var(--surface-sunken);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.segmented button {
  border: 0; background: transparent;
  font-family: inherit; font-size: 12px; font-weight: 650;
  color: var(--text-secondary);
  padding: 6px 12px; border-radius: 7px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.segmented button:hover { color: var(--text-primary); }
.segmented button.active {
  background: var(--surface-card);
  color: var(--accent-600);
  box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   8. DATA VISUALS
   ========================================================================== */
.coverage-center-stat .stat-num {
  font-size: 34px; font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}
.coverage-center-stat .stat-label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-tertiary);
}

.coverage-legend-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.coverage-legend-row:last-child { border-bottom: 0; }
.cl-name { font-size: 13px; font-weight: 550; color: var(--text-secondary); }
.cl-value { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-right: 10px; }
.cl-pct { font-size: 12px; font-weight: 650; color: var(--text-tertiary); }

.legend-dot { width: 9px; height: 9px; border-radius: 3px; }

/* Ranked list */
.rank-row {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur-fast) var(--ease-out);
}
.rank-row:last-child { border-bottom: 0; }
.rank-num {
  width: 25px; height: 25px; flex-shrink: 0;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800;
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
/* Podium colouring for the top three. */
.rank-row:nth-child(1) .rank-num { background: var(--grad-accent); color: #fff; box-shadow: 0 2px 8px rgba(44, 95, 158, 0.32); }
.rank-row:nth-child(2) .rank-num { background: var(--accent-100); color: var(--accent-700); }
.rank-row:nth-child(3) .rank-num { background: var(--accent-50); color: var(--accent-600); }

.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: 13.5px; font-weight: 650; color: var(--text-primary); }
.rank-meta { font-size: 11.5px; color: var(--text-tertiary); }
.rank-track {
  height: 6px; border-radius: 999px;
  background: var(--surface-sunken);
  overflow: hidden; margin-top: 7px;
}
.rank-fill {
  height: 100%; border-radius: 999px;
  background: var(--grad-accent);
  transition: width 800ms var(--ease-out);
}
.rank-attendees {
  text-align: right; flex-shrink: 0;
  font-size: 16px; font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.rank-attendees span {
  display: block;
  font-size: 10.5px; font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
}

/* Company bars */
.company-row { display: flex; align-items: center; gap: 13px; padding: 9px 0; }
.company-name {
  flex: 0 0 140px;
  font-size: 12.5px; font-weight: 550;
  color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.company-track {
  flex: 1; height: 8px; border-radius: 999px;
  background: var(--surface-sunken); overflow: hidden;
}
.company-fill { height: 100%; border-radius: 999px; transition: width 800ms var(--ease-out); }
.company-pct {
  flex: 0 0 42px; text-align: right;
  font-size: 12.5px; font-weight: 700; color: var(--text-primary);
}

/* Quick actions */
.quick-actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-action-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.quick-action-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-200);
  background: var(--accent-50);
  box-shadow: var(--shadow-md);
}
.qa-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-50);
  color: var(--accent-600);
  font-size: 14px;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.quick-action-btn:hover .qa-icon { background: var(--grad-accent); color: #fff; }
.qa-label { font-size: 12.5px; font-weight: 650; color: var(--text-primary); line-height: 1.35; }

/* ==========================================================================
   9. TABLES
   ========================================================================== */
.data-table thead th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--surface-muted);
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; z-index: 1;
}
.data-table tbody td {
  padding: 13px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.data-table tbody tr { transition: background var(--dur-fast) var(--ease-out); }
.data-table tbody tr:hover { background: var(--accent-50); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.cell-training { font-weight: 650; color: var(--text-primary); }
.training-sub { font-size: 11.5px; color: var(--text-tertiary); font-weight: 400; margin-top: 2px; }
.trainer-chip {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; margin-right: 8px;
  border-radius: 7px;
  background: var(--grad-command);
  color: #fff;
  font-size: 9.5px; font-weight: 700;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: 0.75;
}
.badge-draft { background: var(--surface-sunken); color: var(--text-secondary); }
.badge-completed { background: var(--accent-50); color: var(--accent-700); }
.badge-partial { background: var(--amber-50); color: var(--amber-700); }
.badge-reflected { background: var(--emerald-50); color: var(--emerald-700); }

/* ==========================================================================
   10. ACTIVITY FEED
   ========================================================================== */
.activity-item {
  display: flex; gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.activity-item:last-child { border-bottom: 0; }
.activity-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 12.5px;
}
.activity-icon.i-accent { background: var(--accent-50); color: var(--accent-600); }
.activity-icon.i-amber { background: var(--amber-50); color: var(--amber-600); }
.activity-icon.i-emerald { background: var(--emerald-50); color: var(--emerald-600); }
.activity-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.activity-text strong { color: var(--text-primary); font-weight: 650; }
.activity-time { font-size: 11.5px; color: var(--text-tertiary); margin-top: 3px; }

/* ==========================================================================
   11. INSIGHT CARDS — new operational detail row
   ========================================================================== */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: var(--sp-5, 20px);
}
.insight-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
a.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-200);
}
.ins-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ins-title {
  font-size: 12.5px; font-weight: 700;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
}
.ins-title i { color: var(--text-tertiary); font-size: 12px; }
.ins-go { font-size: 11px; color: var(--text-tertiary); transition: transform var(--dur-fast) var(--ease-out); }
a.insight-card:hover .ins-go { transform: translateX(3px); color: var(--accent-500); }

.ins-metric { display: flex; align-items: baseline; gap: 9px; }
.metric-value {
  font-family: var(--font-display);
  font-size: 27px; font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text-primary);
}
.metric-unit { font-size: 12.5px; font-weight: 600; color: var(--text-tertiary); }

.ins-bar { height: 6px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.ins-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: var(--grad-accent);
  transition: width 900ms var(--ease-out);
}
.ins-bar.is-emerald span { background: var(--grad-emerald); }
.ins-bar.is-amber span { background: var(--grad-amber); }
.ins-foot { font-size: 11.5px; color: var(--text-tertiary); line-height: 1.45; }
.ins-foot b { color: var(--text-secondary); font-weight: 650; }

/* Status pill used inside insight cards */
.ins-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
}
.ins-pill.ok { background: var(--emerald-50); color: var(--emerald-700); }
.ins-pill.warn { background: var(--amber-50); color: var(--amber-700); }
.ins-pill.info { background: var(--accent-50); color: var(--accent-700); }

/* ==========================================================================
   12. LAYOUT GRIDS
   ========================================================================== */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: var(--sp-5, 20px);
}
.dash-grid-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: var(--sp-5, 20px);
}
.dash-grid-tertiary {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: var(--sp-5, 20px);
}
@media (max-width: 1180px) {
  .dash-grid, .dash-grid-tertiary { grid-template-columns: 1fr; }
}

/* ---- Chart empty states — a chart canvas is hidden and this centers over
   the same wrap, so a zero-data panel still looks intentional. ---- */
.chart-canvas-wrap .chart-empty-state {
  position: absolute; inset: 0;
  padding: var(--sp-4);
}

/* ---- Custom date-range mini-form inside the Period dropdown ---- */
.period-custom-form {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 8px 6px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
}
.period-custom-form label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11.5px; font-weight: 600; color: var(--text-tertiary);
}
.period-custom-form input[type="date"] {
  font-size: 12.5px; padding: 5px 7px;
  border: 1px solid var(--border-default); border-radius: 6px;
  color: var(--text-primary); background: var(--surface-card);
}
.period-custom-form button { width: 100%; margin-top: 2px; }

/* ---- Executive Alerts strip ---- */
.exec-alerts {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: var(--sp-5, 20px);
}
.exec-alert {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 650;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
}
.exec-alert i { font-size: 12px; }
.exec-alert.is-clear { color: var(--text-secondary); }
.exec-alert.is-clear i { color: var(--emerald-500); }
.exec-alert.is-neutral { color: var(--text-tertiary); }
.exec-alert.is-neutral i { color: var(--text-tertiary); }
.exec-alert.is-emerald { color: var(--emerald-700); background: var(--emerald-50); border-color: transparent; }
.exec-alert.is-emerald i { color: var(--emerald-600); }
.exec-alert.is-amber { color: var(--amber-700); background: var(--amber-50); border-color: transparent; }
.exec-alert.is-amber i { color: var(--amber-600); }
.exec-alert.is-red { color: var(--red-700); background: var(--red-50); border-color: transparent; }
.exec-alert.is-red i { color: var(--red-600); }

/* ---- Training reach split (two mini bar charts in one panel) ---- */
.reach-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
/* Chart.js canvases report an intrinsic width that can exceed the grid
   track; without min-width: 0 the second column overflows the panel. */
.reach-col { min-width: 0; }
@media (max-width: 620px) { .reach-split { grid-template-columns: 1fr; } }
.reach-col-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-tertiary); margin-bottom: 10px;
}

/* ---- Competency reassessment panel ---- */
.reassess-stats {
  display: flex; gap: 14px;
  margin-bottom: var(--sp-4);
}
.reassess-stat {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-card);
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
}
.reassess-stat.is-overdue { background: var(--red-50); border-color: transparent; }
.reassess-num { display: block; font-size: 22px; font-weight: 800; color: var(--text-primary); font-family: var(--font-display); }
.reassess-stat.is-overdue .reassess-num { color: var(--red-700); }
.reassess-label { font-size: 11.5px; color: var(--text-tertiary); font-weight: 600; }
.reassess-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.reassess-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}
.reassess-row-main { display: flex; flex-direction: column; min-width: 0; }
.reassess-name { font-size: 12.5px; font-weight: 650; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reassess-role { font-size: 11px; color: var(--text-tertiary); }

/* ==========================================================================
   13. BUTTONS
   ========================================================================== */
.btn {
  border-radius: 10px;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: -0.005em;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              filter var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad-accent);
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 4px 12px -2px rgba(44, 95, 158, 0.36);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 2px 4px rgba(16, 24, 40, 0.10), 0 8px 20px -4px rgba(44, 95, 158, 0.44); }
.btn-secondary { box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--surface-hover); }

.filter-trigger {
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 550;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

/* Focus visibility is never removed — only restyled. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ==========================================================================
   14. ENTRANCE MOTION
   Short, staggered reveal so the dashboard assembles rather than snapping in.
   ========================================================================== */
@keyframes htms-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.command-band,
.kpi-strip > *,
.insight-grid > *,
.dash-grid > *,
.dash-grid-secondary > *,
.dash-grid-tertiary > * {
  animation: htms-rise 460ms var(--ease-out) both;
}
.command-band { animation-delay: 0ms; }
.kpi-strip > *:nth-child(1) { animation-delay: 40ms; }
.kpi-strip > *:nth-child(2) { animation-delay: 70ms; }
.kpi-strip > *:nth-child(3) { animation-delay: 100ms; }
.kpi-strip > *:nth-child(4) { animation-delay: 130ms; }
.kpi-strip > *:nth-child(5) { animation-delay: 160ms; }
.kpi-strip > *:nth-child(6) { animation-delay: 190ms; }
.kpi-strip > *:nth-child(7) { animation-delay: 220ms; }
.kpi-strip > *:nth-child(8) { animation-delay: 250ms; }
.insight-grid > *:nth-child(1) { animation-delay: 200ms; }
.insight-grid > *:nth-child(2) { animation-delay: 230ms; }
.insight-grid > *:nth-child(3) { animation-delay: 260ms; }
.insight-grid > *:nth-child(4) { animation-delay: 290ms; }
.dash-grid > *:nth-child(1) { animation-delay: 260ms; }
.dash-grid > *:nth-child(2) { animation-delay: 300ms; }
.dash-grid-secondary > * { animation-delay: 320ms; }
.dash-grid-tertiary > * { animation-delay: 340ms; }

/* Count-up values must not reflow the card while they animate. */
.kpi-value, .metric-value { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   15. REDUCED MOTION — honour the OS setting completely
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .command-band,
  .kpi-strip > *, .insight-grid > *,
  .dash-grid > *, .dash-grid-secondary > *, .dash-grid-tertiary > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .kpi-card:hover, .insight-card:hover, .quick-action-btn:hover { transform: none; }
}

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .command-band { padding: 20px 18px; border-radius: 16px; }
  .cb-row { flex-direction: column; gap: 18px; }
  .cb-gauge { width: 100%; }
  .kpi-value { font-size: 27px; }
  .quick-actions-grid { grid-template-columns: 1fr; }
  .company-name { flex-basis: 100px; }
}
@media (max-width: 560px) {
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 23px; }
  .cb-actions { gap: 8px; }
}
/* At six-across the value must not overflow its card. */
@media (min-width: 1561px) {
  .kpi-value { font-size: 28px; }
  .kpi-card { padding: 16px 15px 15px; }
}

/* ==========================================================================
   17b. CERTIFICATE / POCKET ID BARCODES
   Additive corner badge — appended by JS, never alters the three approved
   certificate layouts or the passport card markup.
   ========================================================================== */
.certificate-card { position: relative; }
.cc-barcode-badge {
  position: absolute; right: 0.93em; bottom: 0.8em; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.13em;
  box-sizing: content-box;
  background: rgba(255,255,255,0.96); padding: 0.27em 0.4em; border-radius: 0.4em;
}
.cc-barcode-badge canvas { display: block; width: 9.25em; height: 1.35em; }
.cc-barcode-label { font-size: 0.5em; line-height: 1.2; letter-spacing: 0.04em; color: #667; text-transform: uppercase; white-space: nowrap; }

/* QR badge — bottom-left corner, mirrors .cc-barcode-badge (bottom-right) so
   the two never overlap regardless of certificate size. */
.cc-qr-badge {
  position: absolute; left: 14px; bottom: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: #ffffff; padding: 4px 6px; border-radius: 6px;
}
.cc-qr-badge canvas { display: block; background: #ffffff; }
.cc-qr-label { font-size: 7.5px; letter-spacing: 0.04em; color: #667; text-transform: uppercase; }
.cc-size-sm .cc-qr-badge { transform: scale(0.7); transform-origin: bottom left; }

.pc-barcode-badge {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 6px;
}
.pc-barcode-badge canvas { display: block; }
.pc-barcode-label { font-size: 7px; letter-spacing: 0.04em; color: var(--text-tertiary); text-transform: uppercase; }

/* Pocket ID card — real card proportions (ISO/IEC 7810 ID-1: 85.6 x 54mm). */
.pocket-id-card {
  width: 85.6mm; height: 54mm;
  border-radius: 3mm;
  background: var(--grad-command);
  color: #fff;
  padding: 4mm;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}
.pid-org { font-size: 7pt; font-weight: 700; letter-spacing: 0.04em; opacity: 0.85; display: flex; align-items: center; gap: 4px; }
.pid-body { display: flex; gap: 3mm; align-items: center; flex: 1; }
.pid-photo {
  width: 16mm; height: 16mm; border-radius: 2mm; flex-shrink: 0;
  background: rgba(255,255,255,0.12); display: grid; place-items: center;
  font-weight: 800; font-size: 14pt;
}
.pid-name { font-size: 9.5pt; font-weight: 700; line-height: 1.15; }
.pid-role { font-size: 7pt; opacity: 0.8; margin-top: 1mm; }
.pid-meta { font-size: 6.5pt; opacity: 0.75; margin-top: 1.5mm; line-height: 1.5; }
.pid-footer { display: flex; align-items: flex-end; justify-content: space-between; }
.pid-barcode-wrap { background: #fff; border-radius: 1.5mm; padding: 1mm 2mm; }
.pid-barcode-wrap canvas { display: block; }

@media print {
  .pocket-id-card { box-shadow: none; page-break-inside: avoid; }
}

/* ==========================================================================
   17. AUTH SCREENS — split brand experience
   The sign-in page was a form floating in space. It now leads with the
   product: what the system is, and the proof that it is a real operational
   tool. The form sits to the right as the destination, not the whole page.
   All existing ids (#lpCard, #lpParticles, #loginForm …) are untouched.
   ========================================================================== */
.lp-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: 40px clamp(28px, 7vw, 110px);
  min-height: 100vh;
}

.lp-brandpanel {
  position: relative;
  z-index: 2;
  max-width: 560px;
  animation: lp-panel-in 900ms var(--ease-out) both;
}
@keyframes lp-panel-in {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: none; }
}

.lp-bp-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 11.5px; font-weight: 650;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #a9c4e6;
  margin-bottom: 26px;
}
.lp-bp-badge i { color: #6ee7a8; font-size: 11px; }

.lp-bp-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.1vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 20px;
}
.lp-bp-title span {
  display: block;
  background: linear-gradient(100deg, #7fb0e8 0%, #a5d8bf 60%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.lp-bp-copy {
  font-size: 15px;
  line-height: 1.68;
  color: rgba(198, 214, 235, 0.72);
  margin: 0 0 32px;
  max-width: 48ch;
}

.lp-bp-points { display: grid; gap: 14px; margin-bottom: 36px; }
.lp-bp-point { display: flex; align-items: flex-start; gap: 13px; }
.lp-bp-ico {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 13px;
  background: rgba(74, 126, 196, 0.16);
  border: 1px solid rgba(74, 126, 196, 0.28);
  color: #8fb6e4;
}
.lp-bp-ptext { font-size: 13.5px; line-height: 1.5; color: rgba(214, 225, 240, 0.86); padding-top: 6px; }
.lp-bp-ptext b { color: #fff; font-weight: 650; }

.lp-bp-strip {
  display: flex; align-items: stretch; gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 22px;
}
.lp-bp-stat { flex: 1; padding-right: 20px; }
.lp-bp-stat + .lp-bp-stat { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.09); }
.lp-bp-stat-v {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 800;
  color: #fff; letter-spacing: -0.02em;
  display: block; margin-bottom: 3px;
}
.lp-bp-stat-l {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.45;
  color: rgba(168, 190, 216, 0.62);
  /* Keep each label on one line where the column allows; these are labels,
     not sentences, and a wrapped one reads as a layout fault. */
  white-space: nowrap;
}
@media (max-width: 1320px) {
  .lp-bp-stat-l { white-space: normal; }
}

/* The card keeps its own styling; only its placement changes. */
.lp-stage > .lp-card { margin: 0; justify-self: center; width: 100%; max-width: 430px; }

/* Orbit rings belong behind the form, not the copy. */
.lp-orbit-ring { left: auto; right: 8%; }

@media (max-width: 1080px) {
  .lp-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 84px 24px 44px;
    gap: 40px;
  }
  .lp-brandpanel { max-width: 520px; text-align: center; }
  .lp-bp-copy { margin-left: auto; margin-right: auto; }
  .lp-bp-point { text-align: left; }
  .lp-bp-points { max-width: 400px; margin-left: auto; margin-right: auto; }
  .lp-orbit-ring { display: none; }
}
@media (max-width: 620px) {
  .lp-bp-points, .lp-bp-strip { display: none; }
  .lp-stage { padding-top: 72px; }
}

/* ==========================================================================
   18. PRINT — the premium chrome must never reach paper
   ========================================================================== */
@media print {
  .command-band, .app-header, .sidebar, .cb-actions { display: none !important; }
  .panel { box-shadow: none; border: 1px solid #ddd; }
}

/* Printable Attendance Register — captured digital signatures render as
   inline SVG path data, never a screenshot. Hidden on screen; the app chrome
   is hidden under @media print so only this shows on paper. */
.print-only { display: none; }
@media print {
  body > .app-shell, body > .lp-stage { display: none !important; }
  .print-only { display: block !important; }
  .ap-print-header { text-align: center; margin-bottom: 14px; }
  .ap-print-org { font-weight: 800; font-size: 16px; }
  .ap-print-title { font-size: 13px; color: #444; margin-top: 2px; }
  .ap-print-meta { width: 100%; font-size: 11px; margin-bottom: 12px; border-collapse: collapse; }
  .ap-print-meta td { padding: 3px 6px; }
  .ap-print-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
  .ap-print-table th, .ap-print-table td { border: 1px solid #999; padding: 5px 6px; text-align: left; }
  .ap-print-sig-svg { width: 90px; height: 30px; }
}

/* ==========================================================================
   ROW-CLICKABLE — used on Exam Templates (and reusable anywhere else a
   table row itself is a shortcut for an explicit action button already
   present in that row).
   ========================================================================== */
.row-clickable { cursor: pointer; }
.row-clickable:focus-visible { outline: 2px solid var(--accent-500); outline-offset: -2px; }

/* ---- Print — Assign Exam QR success panel ---- */
@media print {
  body.print-exam-qr > .app-shell { display: none !important; }
  body.print-exam-qr .modal-overlay:not(#assignExamModal) { display: none !important; }
  body.print-exam-qr #assignExamModal {
    position: static; background: #fff; opacity: 1; pointer-events: auto;
  }
  body.print-exam-qr #assignExamModal .modal-box {
    box-shadow: none; max-width: none; width: auto; margin: 40px auto;
  }
  body.print-exam-qr #assignExamModal .modal-header,
  body.print-exam-qr #assignExamModal .modal-footer,
  body.print-exam-qr #assignExamForm { display: none !important; }
}
