/* === CONNEXA BACKOFFICE — DESIGN TOKENS === */

:root {
  /* Type */
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Accent (overrideable via Tweaks) */
  --accent-h: 195;
  --accent: oklch(55% 0.10 var(--accent-h));
  --accent-hover: oklch(50% 0.11 var(--accent-h));
  --accent-soft: oklch(95% 0.025 var(--accent-h));
  --accent-fg: white;

  /* Status — shared chroma/lightness, only hue varies */
  --ok: oklch(58% 0.11 155);
  --ok-soft: oklch(95% 0.03 155);
  --warn: oklch(68% 0.13 75);
  --warn-soft: oklch(96% 0.04 75);
  --danger: oklch(58% 0.16 25);
  --danger-soft: oklch(96% 0.03 25);
  --info: oklch(58% 0.11 250);
  --info-soft: oklch(95% 0.025 250);
  --neutral: oklch(60% 0.005 270);
  --neutral-soft: oklch(96% 0.003 270);

  /* Light theme — slate */
  --bg: oklch(98.5% 0.003 270);
  --surface: #ffffff;
  --surface-2: oklch(97.5% 0.003 270);
  --surface-3: oklch(95.5% 0.004 270);
  --hover: oklch(96.5% 0.004 270);
  --border: oklch(91.5% 0.005 270);
  --border-strong: oklch(85% 0.006 270);
  --text: oklch(22% 0.01 270);
  --text-muted: oklch(48% 0.01 270);
  --text-faint: oklch(62% 0.008 270);

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.04), 0 1px 1px oklch(0% 0 0 / 0.03);
  --shadow-md: 0 4px 10px oklch(0% 0 0 / 0.06), 0 1px 3px oklch(0% 0 0 / 0.04);
  --shadow-lg: 0 12px 32px oklch(0% 0 0 / 0.10), 0 4px 12px oklch(0% 0 0 / 0.05);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Density */
  --row-h: 40px;
  --pad-x: 14px;
  --pad-y: 10px;
  --gap: 12px;

  /* Layout */
  --sidebar-w: 232px;
  --sidebar-w-collapsed: 56px;
  --topbar-h: 52px;
}

:root[data-density="compact"] {
  --row-h: 32px;
  --pad-x: 10px;
  --pad-y: 6px;
  --gap: 8px;
}

:root[data-theme="dark"] {
  --bg: oklch(15.5% 0.008 270);
  --surface: oklch(19% 0.009 270);
  --surface-2: oklch(21% 0.009 270);
  --surface-3: oklch(24% 0.01 270);
  --hover: oklch(23% 0.01 270);
  --border: oklch(28% 0.01 270);
  --border-strong: oklch(35% 0.012 270);
  --text: oklch(95% 0.005 270);
  --text-muted: oklch(68% 0.008 270);
  --text-faint: oklch(52% 0.008 270);

  --accent: oklch(70% 0.10 var(--accent-h));
  --accent-hover: oklch(75% 0.11 var(--accent-h));
  --accent-soft: oklch(28% 0.05 var(--accent-h));
  --accent-fg: oklch(15% 0.008 270);

  --ok: oklch(70% 0.12 155);
  --ok-soft: oklch(28% 0.05 155);
  --warn: oklch(78% 0.13 75);
  --warn-soft: oklch(30% 0.06 75);
  --danger: oklch(70% 0.14 25);
  --danger-soft: oklch(28% 0.06 25);
  --info: oklch(70% 0.11 250);
  --info-soft: oklch(28% 0.05 250);
  --neutral-soft: oklch(24% 0.005 270);

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.3);
  --shadow-md: 0 4px 10px oklch(0% 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0% 0 0 / 0.5);
}

/* === RESET === */

* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); font-feature-settings: "zero"; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* === LAYOUT === */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 100vh;
  background: var(--bg);
}
.app[data-sidebar="collapsed"] { grid-template-columns: var(--sidebar-w-collapsed) 1fr; }

.sidebar {
  background: var(--sidebar-bg, var(--surface));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* When a dark sidebar colour is chosen, re-scope the text/border vars inside the
   sidebar so nav labels, icons and the logo stay readable on the dark backdrop. */
[data-sidebar-tone="dark"] .sidebar {
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-faint: #94a3b8;
  --surface: #243042;
  --surface-3: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.12);
  --hover: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.sidebar-head {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--text);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
}
.logo-text small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
}
.nav-group {
  margin-bottom: 6px;
}
/* Divider stroke between module groups (not above the first). */
.nav-group + .nav-group {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
}
.nav-group-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 8px 10px 4px;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item[data-active="true"] {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 500;
}
.nav-item .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 1.75;
}
.nav-item .nav-badge {
  margin-left: auto;
  font-size: 10.5px;
  background: var(--surface-3);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 99px;
  font-family: var(--font-mono);
}
.nav-item[data-active="true"] .nav-badge { background: var(--surface); }
.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 11px;
  flex-shrink: 0;
}
.user-meta { line-height: 1.2; overflow: hidden; }
.user-meta strong { font-size: 12.5px; font-weight: 600; display: block; }
.user-meta span { font-size: 11px; color: var(--text-muted); }

/* === MAIN === */

.main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  flex-shrink: 0;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.crumbs .crumb-sep { color: var(--text-faint); }
.crumbs .crumb-current { color: var(--text); font-weight: 500; }

.search-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0 10px;
  border-radius: var(--radius);
  height: 30px;
  width: 280px;
  color: var(--text-muted);
  font-size: 12.5px;
}
.search-box input {
  background: transparent;
  border: 0;
  outline: 0;
  flex: 1;
  font-size: 12.5px;
  color: var(--text);
}
.search-box kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-faint);
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; stroke-width: 1.75; }

.content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
}

/* === PAGE === */

.page {
  padding: 20px 24px 80px;
  max-width: 1600px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}
.page-title { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.page-sub { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.page-actions { display: flex; gap: 8px; align-items: center; }

/* === BUTTONS === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
  transition: background 0.1s, border-color 0.1s;
}
.btn:hover { background: var(--hover); border-color: var(--border-strong); }
.btn svg { width: 14px; height: 14px; stroke-width: 2; }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover { background: var(--text); opacity: 0.88; }
.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-danger {
  color: var(--danger);
  border-color: var(--border);
}
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-sm { height: 26px; padding: 0 8px; font-size: 12px; }
.btn-lg { height: 36px; padding: 0 16px; font-size: 13px; }

/* === CARD === */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.card-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-title { font-size: 13.5px; font-weight: 600; }
.card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.card-body { padding: 16px; }

/* === BADGES === */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--neutral-soft);
  color: var(--text-muted);
  white-space: nowrap;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.85;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.outline { background: transparent; border: 1px solid var(--border); }

/* === CHIPS (filter chips) === */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px 0 10px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}
.chip:hover { background: var(--hover); }
.chip[data-active="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.chip .chip-key { color: var(--text-muted); }
.chip-x {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  color: var(--text-muted);
}
.chip-x:hover { background: var(--surface-3); color: var(--text); }
.chip-add {
  border-style: dashed;
  color: var(--text-muted);
}

/* === FORM === */

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.field .hint { font-size: 11px; color: var(--text-faint); }

/* New-lead form: left section header + right fields */
.lead-section { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 44px; align-items: start; }
@media (max-width: 820px) { .lead-section { grid-template-columns: 1fr; gap: 14px; } }
.input, .select, textarea.input {
  height: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0 10px;
  font-size: 13px;
  outline: 0;
  color: var(--text);
  width: 100%;
  transition: border-color 0.1s, box-shadow 0.1s;
}
textarea.input { height: auto; padding: 8px 10px; line-height: 1.5; }
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

/* === TABLE === */

.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.tbl thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
  user-select: none;
}
.tbl tbody td {
  padding: 0 12px;
  height: var(--row-h);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
.tbl tbody tr:hover td { background: var(--hover); }
.tbl tbody tr[data-selected="true"] td { background: var(--accent-soft); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl .col-num { font-family: var(--font-mono); font-size: 12.5px; text-align: right; }
.tbl .col-check { width: 36px; padding-right: 0; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr td:first-child { border-left: 2px solid transparent; }
.tbl tbody tr[data-selected="true"] td:first-child { border-left-color: var(--accent); }

.cb {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.cb[data-checked="true"], .cb[data-indeterminate="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.cb svg { width: 10px; height: 10px; stroke-width: 3; }

/* Toolbar */
.tbl-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.tbl-toolbar .spacer { flex: 1; }
.search-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0 10px;
  border-radius: var(--radius);
  height: 28px;
  width: 240px;
  font-size: 12px;
  color: var(--text-muted);
}
.search-inline input {
  background: transparent;
  border: 0;
  outline: 0;
  flex: 1;
  font-size: 12.5px;
  color: var(--text);
}

/* Bulk action bar */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border-strong);
  font-size: 12.5px;
}
.bulk-bar strong { font-weight: 600; }

/* Inline edit cell */
.edit-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  margin: 0 -6px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: text;
  min-width: 80px;
}
.edit-cell:hover {
  border-color: var(--border);
  background: var(--surface);
}
.edit-cell:hover .edit-pencil { opacity: 1; }
.edit-pencil {
  opacity: 0;
  width: 11px;
  height: 11px;
  color: var(--text-faint);
}
.edit-cell input {
  border: 1px solid var(--accent);
  background: var(--surface);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
  outline: 0;
  height: 22px;
}

/* === KPI === */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
/* Compact variant — denser cards so more fit per row */
.kpi.kpi-sm { padding: 11px 13px; }
.kpi.kpi-sm .kpi-value { font-size: 20px; margin: 5px 0 3px; }
.kpi.kpi-sm .kpi-label { font-size: 10.5px; }
.kpi.kpi-sm .kpi-delta { font-size: 11px; }
.kpi-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kpi-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 8px 0 4px;
  color: var(--text);
}
.kpi-delta {
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}
.kpi-delta.up { color: var(--ok); }
.kpi-delta.down { color: var(--danger); }

/* --- Colorful + interactive KPI variant (People & HR dashboard) --- */
.kpi-tone {
  --tone: var(--accent);
  position: relative;
  overflow: hidden;
  border-color: color-mix(in oklch, var(--tone) 20%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--tone) 6%, var(--surface)), var(--surface));
}
.kpi-tone::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--tone);
}
.kpi-ico {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in oklch, var(--tone) 16%, var(--surface));
  color: var(--tone);
}
.kpi-ico svg { width: 13px; height: 13px; display: block; }
.kpi.kpi-sm .kpi-ico { width: 22px; height: 22px; }
.kpi-lead { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi-lead > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.kpi-click { cursor: pointer; transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease; }
.kpi-click:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklch, var(--tone, var(--accent)) 45%, var(--border));
}
.kpi-click:active { transform: translateY(0); }

/* --- Interactive mini charts --- */
.hr-bar { transition: filter .12s ease, opacity .12s ease; opacity: 0.92; }
.hr-bar:hover { filter: saturate(1.25) brightness(1.06); opacity: 1; }
.hr-barcol:hover .hr-bar-val { color: var(--text); font-weight: 600; }
.hr-distrow { transition: background .12s ease; border-radius: 5px; }
.hr-distrow:hover { background: var(--hover); }
.hr-distbar { transition: filter .12s ease; }
.hr-distrow:hover .hr-distbar { filter: saturate(1.2) brightness(1.05); }

/* === KANBAN === */

.kanban {
  display: flex;
  gap: 12px;
  padding: 4px;
  overflow-x: auto;
  height: calc(100vh - var(--topbar-h) - 130px);
}
.kanban-col {
  flex: 0 0 280px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.kanban-col[data-drop="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.kanban-col-head {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.kanban-col-head .col-name { font-weight: 600; font-size: 12.5px; }
.kanban-col-head .col-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 99px;
}
.kanban-col-head .col-amt {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.kanban-col-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}

.kanban-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: grab;
  transition: box-shadow 0.1s, transform 0.1s;
  font-size: 12.5px;
}
.kanban-card:hover { box-shadow: var(--shadow-sm); }
.kanban-card[data-dragging="true"] {
  opacity: 0.4;
  cursor: grabbing;
}
.kanban-card .kc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.kanban-card .kc-id { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.kanban-card .kc-title { font-weight: 500; font-size: 13px; margin-bottom: 4px; }
.kanban-card .kc-sub { color: var(--text-muted); font-size: 11.5px; margin-bottom: 8px; line-height: 1.4; }
.kanban-card .kc-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.kanban-card .kc-foot .kc-amt {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
  font-size: 12px;
}

/* === TIMELINE === */

.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.tl-item {
  position: relative;
  padding-bottom: 14px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
}
.tl-item[data-kind="status"]::before { border-color: var(--accent); background: var(--accent); }
.tl-item[data-kind="note"]::before { border-color: var(--info); }
.tl-item[data-kind="email"]::before { border-color: var(--warn); }
.tl-item[data-kind="call"]::before { border-color: var(--ok); }
.tl-when {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-bottom: 2px;
}
.tl-who { font-weight: 500; font-size: 13px; }
.tl-what { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }

/* === WIZARD === */

.wizard-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: flex-start;
}
.wizard-steps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
}
.step {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.step:hover { background: var(--hover); }
.step[data-active="true"] { background: var(--accent-soft); }
.step-num {
  width: 22px;
  height: 22px;
  border-radius: 99px;
  background: var(--surface-3);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.step[data-active="true"] .step-num { background: var(--accent); color: var(--accent-fg); }
.step[data-done="true"] .step-num { background: var(--ok); color: white; }
.step-label { font-size: 13px; font-weight: 500; }
.step-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

.wizard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  /* Grid items default to min-width:auto, so a wide table inside a step used to
     push this column past its 1fr share and out of the page. */
  min-width: 0;
}
.wizard-card-body { min-width: 0; }
.wizard-card-head {
  padding: 18px 22px 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.wizard-card-body { padding: 22px; flex: 1; }
.wizard-card-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.wizard-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: sticky;
  top: 0;
}

/* --- Floating quote summary (collapsed pill → right-side drawer) --- */

.qsum-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 16px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  font: inherit;
  color: var(--text);
}
.qsum-fab:hover { border-color: var(--border-strong); }
.qsum-fab-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.qsum-fab-total { font-size: 15px; font-weight: 600; margin-top: 1px; }
.qsum-fab-chev {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
}
.qsum-fab-chev svg { width: 14px; height: 14px; }

.qsum-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  z-index: 95;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slide-in 0.2s ease-out;
}
.qsum-drawer-head {
  height: var(--topbar-h);
  padding: 0 10px 0 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.qsum-drawer-head h3 { font-size: 13px; font-weight: 600; }
.qsum-drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.qsum-drawer-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .qsum-drawer { width: 100%; }
  .qsum-fab { right: 16px; bottom: 16px; }
}

/* === DETAIL PAGE === */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: flex-start;
}

.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 8px;
  column-gap: 12px;
  font-size: 13px;
}
.kv dt { color: var(--text-muted); font-weight: 400; }
.kv dd { margin: 0; font-weight: 500; }

/* === CALENDAR === */

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.cal-head {
  background: var(--surface-2);
  padding: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.cal-cell {
  min-height: 92px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px;
  position: relative;
  cursor: pointer;
}
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell[data-other="true"] { background: var(--surface-2); color: var(--text-faint); }
.cal-cell[data-today="true"] { background: var(--accent-soft); }
.cal-date {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.cal-event {
  font-size: 10.5px;
  padding: 2px 5px;
  border-radius: 3px;
  margin-top: 3px;
  background: var(--info-soft);
  color: var(--info);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event.warn { background: var(--warn-soft); color: var(--warn); }
.cal-event.ok { background: var(--ok-soft); color: var(--ok); }
.cal-event.danger { background: var(--danger-soft); color: var(--danger); }
.cal-event {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-weight: 500;
}
.cal-event:hover { border-color: currentColor; }
.cal-event svg { width: 10px; height: 10px; flex: 0 0 10px; }
.cal-more {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
  cursor: pointer;
  font-weight: 500;
}
.cal-more:hover { color: var(--text); }
.cal-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.cal-count {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  display: flex;
  gap: 4px;
}
.cal-count em { font-style: normal; }
.cal-count .in { color: var(--ok); }
.cal-count .out { color: var(--danger); }

/* === SPARKBAR === */

.spark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
}
.spark-bar {
  flex: 1;
  background: var(--accent);
  opacity: 0.7;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}

/* === TABS === */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  padding: 0 2px;
}
.tab {
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-weight: 500;
}
.tab:hover { color: var(--text); }
.tab[data-active="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Misc */
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.menu {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  min-width: 180px;
  z-index: 50;
}
.menu-item {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-item:hover { background: var(--hover); }
.menu-item.danger { color: var(--danger); }
.menu-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Toast */
.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toast-in 0.2s ease-out;
}
@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Datepicker popup */
.dp-pop {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  z-index: 50;
  width: 260px;
}
.dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
}
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.dp-dow {
  font-size: 10.5px;
  text-align: center;
  color: var(--text-faint);
  font-weight: 600;
  padding: 4px 0;
  text-transform: uppercase;
}
.dp-day {
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  color: var(--text);
}
.dp-day:hover { background: var(--hover); }
.dp-day[data-other="true"] { color: var(--text-faint); }
.dp-day[data-in-range="true"] { background: var(--accent-soft); color: var(--accent); border-radius: 0; }
.dp-day[data-end="start"] { background: var(--accent); color: var(--accent-fg); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.dp-day[data-end="end"] { background: var(--accent); color: var(--accent-fg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.dp-day[data-end="single"] { background: var(--accent); color: var(--accent-fg); }

/* Drawer backdrop */
.drawer-back {
  position: fixed;
  inset: 0;
  background: oklch(15% 0 0 / 0.35);
  z-index: 80;
  animation: fade-in 0.15s ease-out;
}
:root[data-theme="dark"] .drawer-back { background: oklch(0% 0 0 / 0.6); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 90;
  animation: slide-in 0.2s ease-out;
  display: flex;
  flex-direction: column;
}
@keyframes slide-in { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Empty */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Status pills used inline in tables */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--neutral-soft);
  color: var(--text-muted);
}
.pill .dot { width: 5px; height: 5px; border-radius: 99px; background: currentColor; }

/* ====================================================================== */
/* === AI INTELLIGENCE LAYER ============================================ */
/* ====================================================================== */

:root {
  /* Signal hue for insight / anomaly cards — distinct from the product accent */
  --signal: oklch(58% 0.14 290);
  --signal-2: oklch(64% 0.16 310);
  --signal-soft: oklch(96% 0.025 290);
  --signal-fg: white;
  --signal-border: oklch(86% 0.04 290);
  --signal-grad: linear-gradient(135deg, var(--signal) 0%, var(--signal-2) 100%);
}
:root[data-theme="dark"] {
  --signal: oklch(72% 0.13 290);
  --signal-2: oklch(76% 0.14 310);
  --signal-soft: oklch(26% 0.05 290);
  --signal-fg: oklch(15% 0.008 270);
  --signal-border: oklch(36% 0.06 290);
}

.insight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.insight::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--signal);
}
.insight[data-sev="high"]::before   { background: var(--danger); }
.insight[data-sev="med"]::before    { background: var(--warn); }
.insight[data-sev="low"]::before    { background: var(--info); }
.insight[data-sev="opportunity"]::before { background: var(--ok); }

.insight-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--signal-soft);
  color: var(--signal);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.insight[data-sev="high"] .insight-icon   { background: var(--danger-soft); color: var(--danger); }
.insight[data-sev="med"]  .insight-icon   { background: var(--warn-soft);   color: var(--warn); }
.insight[data-sev="low"]  .insight-icon   { background: var(--info-soft);   color: var(--info); }
.insight[data-sev="opportunity"] .insight-icon { background: var(--ok-soft); color: var(--ok); }
.insight-icon svg { width: 16px; height: 16px; stroke-width: 1.75; }

.insight-body { flex: 1; min-width: 0; }
.insight-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}
.insight-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin-bottom: 4px;
}
.insight-body p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 8px;
}
.insight-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.insight-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.insight-action:hover { background: var(--hover); border-color: var(--border-strong); }
.insight-action.primary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--signal-fg);
}
.insight-action.primary:hover { filter: brightness(0.95); }
.insight-action svg { width: 11px; height: 11px; stroke-width: 2; }

.insight-confidence {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.insight-confidence::before {
  content: "";
  width: 30px; height: 3px;
  background: var(--surface-3);
  border-radius: 2px;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

/* === AI COPILOT DRAWER === */

/* === LIVE TRIGGER EVENT STREAM === */

.event-stream {
  display: flex;
  flex-direction: column;
}
.event {
  display: grid;
  grid-template-columns: 16px 90px 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.event:hover { background: var(--hover); }
.event-sev {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--neutral);
  margin-top: 6px;
}
.event[data-sev="high"] .event-sev { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.event[data-sev="med"]  .event-sev { background: var(--warn);   box-shadow: 0 0 0 3px var(--warn-soft); }
.event[data-sev="low"]  .event-sev { background: var(--info);   box-shadow: 0 0 0 3px var(--info-soft); }
.event[data-sev="ok"]   .event-sev { background: var(--ok);     box-shadow: 0 0 0 3px var(--ok-soft); }
.event-ts {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.event-title { font-size: 13px; font-weight: 500; }
.event-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.45;
}
.event-tags {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* === ARCHITECTURE DIAGRAM === */

.arch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.arch-tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.arch-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.arch-tier-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
}
.arch-tier-title { font-size: 14px; font-weight: 600; }
.arch-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.arch-node {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface-2);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.arch-node[data-kind="ai"] {
  background: var(--signal-soft);
  border-color: var(--signal-border);
}
.arch-node[data-kind="existing"] {
  background: var(--surface);
}
.arch-node[data-kind="data"] {
  background: var(--info-soft);
  border-color: oklch(86% 0.05 250);
}
.arch-node-name {
  font-weight: 600;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.arch-node-name .arch-icon {
  width: 12px; height: 12px;
  color: var(--text-muted);
}
.arch-node[data-kind="ai"] .arch-node-name .arch-icon { color: var(--signal); }
.arch-node-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.arch-node-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}
.arch-node[data-kind="ai"] .arch-node-tag { color: var(--signal); }

.arch-arrow {
  text-align: center;
  color: var(--text-faint);
  margin: 4px 0;
  font-size: 16px;
  line-height: 1;
}

/* === DIGEST === */

.digest-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: flex-start;
}
.digest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.digest-hero {
  padding: 20px 24px;
  background: var(--signal-grad);
  color: white;
  position: relative;
}
.digest-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 14px, oklch(100% 0 0 / 0.04) 14px 28px);
  pointer-events: none;
}
.digest-hero-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.digest-hero-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 6px 0 0;
  line-height: 1.2;
}
.digest-hero-sub {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 6px;
}
.digest-section {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.digest-section:last-child { border-bottom: 0; }
.digest-section-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.digest-section-label svg { width: 11px; height: 11px; color: var(--signal); }
.digest-line {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 4px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.digest-line .dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--signal);
  margin-top: 8px;
  flex-shrink: 0;
}
.digest-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 4px;
}
.digest-stat {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.digest-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.digest-stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.digest-stat-delta {
  font-size: 11px;
  margin-top: 2px;
}
.digest-stat-delta.up { color: var(--ok); }
.digest-stat-delta.down { color: var(--danger); }

.delivery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.delivery-list {
  padding: 4px 0;
}
.delivery-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.delivery-item:last-child { border-bottom: 0; }
.delivery-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-muted);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.delivery-icon svg { width: 14px; height: 14px; stroke-width: 1.75; }
.delivery-meta { flex: 1; min-width: 0; }
.delivery-meta strong { font-size: 13px; font-weight: 500; display: block; }
.delivery-meta span { font-size: 11px; color: var(--text-muted); }
.toggle {
  width: 30px; height: 17px;
  border-radius: 99px;
  background: var(--surface-3);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 99px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: left 0.15s;
}
.toggle[data-on="true"] { background: var(--signal); }
.toggle[data-on="true"]::after { left: 15px; }

/* === AI INSIGHTS BOARD === */

.insight-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.insight-board > .insight { margin: 0; }

/* === PREDICTION CARD === */
.predict-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.predict {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.predict-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.predict-h .label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}
.predict-h .conf {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal);
}
.predict-num {
  font-family: var(--font-mono);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 4px 0 2px;
}
.predict-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* === MEMORY: vector item === */
.vec-item {
  display: grid;
  grid-template-columns: 90px 1fr 80px 80px;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  align-items: center;
}
.vec-item:last-child { border-bottom: 0; }
.vec-id { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.vec-text { color: var(--text-muted); line-height: 1.4; }
.vec-text strong { color: var(--text); font-weight: 500; }
.vec-sim {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--signal);
  text-align: right;
}
.vec-bar {
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  overflow: hidden;
}
.vec-bar > div {
  height: 100%;
  background: var(--signal);
  border-radius: 2px;
}

/* Typing dots */
.typing {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding: 6px 2px;
}
.typing span {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--signal);
  opacity: 0.4;
  animation: typing 1.4s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

/* Workflow flow diagram */
.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 4px 0;
}
.flow-step {
  flex: 1;
  min-width: 140px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.flow-step + .flow-step { margin-left: 18px; }
.flow-step + .flow-step::before {
  content: "›";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 18px;
  line-height: 1;
}
.flow-step[data-ai="true"] {
  background: var(--signal-soft);
  border-color: var(--signal-border);
}
.flow-step .fs-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 600;
}
.flow-step[data-ai="true"] .fs-label { color: var(--signal); }
.flow-step .fs-title { font-size: 13px; font-weight: 500; margin-top: 2px; }
.flow-step .fs-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* Roadmap */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.phase {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--surface);
}
.phase-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--signal);
  font-weight: 600;
}
.phase-title { font-size: 15px; font-weight: 600; margin: 4px 0 8px; }
.phase-when { font-size: 11.5px; color: var(--text-muted); margin-bottom: 8px; font-family: var(--font-mono); }
.phase ul { padding-left: 16px; margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-muted); }
.phase ul li::marker { color: var(--signal); }

/* Composer / Drawer fix: AI drawer shouldn't share the .drawer animation */

/* ====================================================================== */
/* === ENTERPRISE MODULES: AUDIT · SETTINGS · GEOGRAPHY ================ */
/* ====================================================================== */

/* === ACTIVITY HEATMAP === */
.heatmap {
  display: grid;
  grid-template-columns: 40px repeat(24, 1fr);
  gap: 2px;
  font-size: 10px;
}
.heatmap-cell {
  height: 14px;
  border-radius: 2px;
  background: var(--surface-3);
}
.heatmap-cell[data-level="1"] { background: oklch(94% 0.04 195); }
.heatmap-cell[data-level="2"] { background: oklch(86% 0.07 195); }
.heatmap-cell[data-level="3"] { background: oklch(75% 0.09 195); }
.heatmap-cell[data-level="4"] { background: oklch(62% 0.11 195); }
.heatmap-cell[data-level="5"] { background: oklch(50% 0.13 195); }
.heatmap-row-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  padding-right: 6px;
  text-align: right;
  align-self: center;
}
.heatmap-col-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-faint);
  text-align: center;
}

/* === AUDIT EVENT ROW === */
.audit-row {
  display: grid;
  grid-template-columns: 110px 24px 1fr 180px 100px 80px;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
  font-size: 12.5px;
}
.audit-row:hover { background: var(--hover); }
.audit-row[data-sev="high"]   { background: oklch(99% 0.02 25 / 0.4); }
:root[data-theme="dark"] .audit-row[data-sev="high"] { background: oklch(28% 0.06 25 / 0.3); }
.audit-row .ts {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}
.audit-row .sev-dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--neutral);
  justify-self: center;
}
.audit-row[data-sev="high"] .sev-dot   { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.audit-row[data-sev="med"]  .sev-dot   { background: var(--warn);   box-shadow: 0 0 0 3px var(--warn-soft); }
.audit-row[data-sev="low"]  .sev-dot   { background: var(--info);   box-shadow: 0 0 0 3px var(--info-soft); }
.audit-row[data-sev="ok"]   .sev-dot   { background: var(--ok);     box-shadow: 0 0 0 3px var(--ok-soft); }
.audit-row .actor {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--text);
}
.audit-row .actor .actor-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.audit-row .action {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-muted);
  width: fit-content;
}
.audit-row .target {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
}
.audit-row .meta-col {
  color: var(--text-muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === DIFF VIEW === */
.diff {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}
.diff-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--border);
}
.diff-row:last-child { border-bottom: 0; }
.diff-row .diff-field {
  padding: 6px 10px;
  background: var(--surface);
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  font-size: 11.5px;
}
.diff-row .diff-pair {
  display: grid;
  grid-template-columns: 1fr 14px 1fr;
  align-items: center;
}
.diff-from, .diff-to {
  padding: 6px 10px;
  font-size: 12px;
}
.diff-from {
  background: var(--danger-soft);
  color: var(--danger);
  text-decoration: line-through;
}
.diff-to {
  background: var(--ok-soft);
  color: var(--ok);
}
.diff-arrow {
  text-align: center;
  color: var(--text-faint);
}

/* Audit drawer */
.drawer-wide {
  width: 640px;
}

/* === SETTINGS LAYOUT === */
.settings-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 18px;
  align-items: flex-start;
}
.settings-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  position: sticky;
  top: 0;
}
.settings-nav-group { margin-bottom: 4px; }
.settings-nav-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 8px 10px 4px;
  font-weight: 600;
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 12.5px;
  cursor: pointer;
  color: var(--text-muted);
}
.settings-nav-item:hover { background: var(--hover); color: var(--text); }
.settings-nav-item[data-active="true"] {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 500;
}
.settings-nav-item svg { width: 14px; height: 14px; stroke-width: 1.75; flex-shrink: 0; }
.settings-nav-item .badge { margin-left: auto; font-size: 10px; }

.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.settings-card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.settings-card-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.settings-card-head p { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); }
.settings-card-body { padding: 16px 18px; }

.setting-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-row:first-child { padding-top: 0; }
.setting-row .s-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.setting-row .s-label .s-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}
.setting-row .s-control { font-size: 13px; }

.kv-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.kv-list-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  padding: 10px 12px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.kv-list-row:last-child { border-bottom: 0; }

/* RBAC matrix */
.rbac {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.rbac th, .rbac td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.rbac th:first-child, .rbac td:first-child { text-align: left; font-weight: 500; }
.rbac thead th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--surface-2);
}
.perm {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text-faint);
}
.perm.full { background: var(--ok); color: white; }
.perm.read { background: var(--info-soft); color: var(--info); }
.perm.none { color: var(--text-faint); }
.perm svg { width: 11px; height: 11px; stroke-width: 2.5; }

/* === GEOGRAPHY TREE === */
.geo-shell {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 14px;
  align-items: flex-start;
}
.geo-tree {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
}
.geo-tree-search {
  padding: 8px;
  border-bottom: 1px solid var(--border);
}
.geo-tree-body {
  overflow-y: auto;
  padding: 4px;
  flex: 1;
}
.tree-node {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  font-size: 12.5px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text);
  position: relative;
}
.tree-node:hover { background: var(--hover); }
.tree-node[data-active="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.tree-node .twist {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-size: 9px;
  flex-shrink: 0;
}
.tree-node .tn-icon {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.tree-node[data-active="true"] .tn-icon { color: var(--accent); }
.tree-node .tn-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
}
.tree-node[data-status="inactive"] .tn-name { color: var(--text-faint); }

/* Geo map */
.geo-map {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  height: 280px;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: var(--surface-2);
}
.geo-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 99px;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.geo-pin[data-hot="true"] {
  background: var(--danger);
  width: 18px; height: 18px;
}
.geo-pin[data-hot="true"]::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 99px;
  background: var(--danger);
  opacity: 0.25;
  animation: ai-pulse 2s ease-out infinite;
}
.geo-pin .geo-label {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10.5px;
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
}

/* Geo coverage table cell */
.coverage-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100px;
}
.coverage-bar .cb-track {
  flex: 1;
  height: 5px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.coverage-bar .cb-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.coverage-bar .cb-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  width: 32px;
  text-align: right;
}

/* split panel for audit detail drawer */
.drawer-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.drawer-section:last-child { border-bottom: 0; }
.drawer-section .ds-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 8px;
}

/* === RESPONSIVE LAYER ============================================ */

/* Visibility utilities — opt screens in/out per breakpoint */
.mobile-only { display: none !important; }
.desktop-only { display: inherit; }

/* Backdrop element rendered by app.jsx when mobile nav is open */
.sidebar-backdrop { display: none; }

/* ---------- Tablet & phone (≤ 880px) ---------- */
@media (max-width: 880px) {
  .mobile-only { display: inline-flex !important; }
  .desktop-only { display: none !important; }

  /* App shell — sidebar becomes an off-canvas drawer */
  .app,
  .app[data-sidebar="collapsed"] {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 264px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    box-shadow: var(--shadow-lg);
  }
  /* Open via mobileNav state. Both expanded and collapsed labels stay hidden by default. */
  .app[data-mobile-nav="open"] .sidebar {
    transform: translateX(0);
  }
  /* Always show labels in the mobile drawer — collapsed-icon mode doesn't make sense here */
  .app[data-sidebar="collapsed"] .sidebar .logo-text,
  .app[data-sidebar="collapsed"] .sidebar .nav-group-label,
  .app[data-sidebar="collapsed"] .sidebar .user-meta { display: revert; }
  .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(15, 17, 21, 0.45);
    z-index: 55;
  }

  /* Main column reclaims full width */
  .main { min-width: 0; }
  .content { padding: 14px; }

  /* Topbar — drop search on narrow screens */
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .topbar .search-box { display: none; }
  .crumbs {
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }
  /* Page head — title + actions wrap onto separate rows */
  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .page-head > div:first-child { width: 100%; }
  .page-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
  .page-title { font-size: 20px; }
  .page-sub { font-size: 12px; }

  /* KPI grid — 4 → 2 cols */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .kpi { padding: 12px 14px; }
  .kpi-value { font-size: 22px; }

  /* Multi-column inline grids → stack */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns: minmax(0, 1fr) minmax(0, 1fr)"],
  [style*="grid-template-columns: minmax(0, 1fr) 360px"],
  [style*="grid-template-columns: minmax(0, 1fr) 460px"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: 180px 1fr 110px"],
  [style*="grid-template-columns: 140px 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* 4-col tile rows → 2 cols on tablet */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(7, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Tables — horizontal scroll via the surrounding card */
  .card:has(> .tbl),
  .card:has(> .tabs + .tbl-toolbar + .tbl),
  .card:has(.tbl) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Keep menu dropdowns out of scroll-clip when possible */
  .menu { right: 0 !important; }

  /* Table cell padding shrink */
  .tbl thead th,
  .tbl tbody td {
    padding: 8px 10px;
    font-size: 12.5px;
  }

  /* Toolbar above tables — wrap chips and search */
  .tbl-toolbar {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
  }
  .search-inline { flex: 1 1 100%; }
  .chip { font-size: 11.5px; }

  /* Tabs — horizontal scroll */
  .tabs {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; }

  /* Tweaks panel — slim bottom-right card */
  .tweak-panel,
  [data-tweaks-panel] {
    right: 12px !important;
    bottom: 12px !important;
    width: calc(100vw - 24px) !important;
    max-width: 320px !important;
  }

  /* Copilot drawer — full screen */
  .ai-drawer,
  [data-ai-drawer] {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  /* Calendar grid — 7 cols stays but cells shrink */
  .cal-cell { min-height: 64px; padding: 4px; }
  .cal-event {
    font-size: 9.5px;
    padding: 1px 4px;
  }
  .cal-event span { display: none; }   /* hide BK-id text, keep arrow icon */
  .cal-event svg { width: 9px; height: 9px; }

  /* Tweaks panel inner widths */
  .tweak-row { gap: 6px; }

  /* Document preview modal — shrink padding */
  [style*="place-items: start center"][style*="position: fixed"] { padding: 12px 8px 32px !important; }

  /* Sticky elements give up their stickiness on mobile (often cause z-index/flow issues) */
  [style*="position: sticky"] {
    position: static !important;
    top: auto !important;
  }
}

/* ---------- Phone only (≤ 520px) ---------- */
@media (max-width: 520px) {
  /* KPI grid: 1 column */
  .kpi-grid { grid-template-columns: 1fr !important; }

  /* 4-/7-col inline grids → 1 column */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(7, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Page actions stack full-width buttons */
  .page-actions .btn { flex: 1 1 calc(50% - 6px); justify-content: center; }
  .page-actions .btn-accent { flex: 1 1 100%; }

  /* Topbar gets even tighter */
  .topbar { padding: 0 10px; gap: 6px; }
  .topbar .icon-btn { width: 34px; height: 34px; }

  /* Sidebar drawer takes more of the screen */
  .sidebar { width: 86vw; max-width: 320px; }

  /* Tighter card padding */
  .card { border-radius: var(--radius); }

  /* Make hotel detail hero shorter */
  .page .card + .card { margin-top: 0; }

  /* Smaller tweaks toggle */
  .tweak-toggle { transform: scale(0.95); }
}

/* ---------- Print (used by Documents → Print button) ---------- */
@media print {
  .sidebar, .topbar, .tweak-panel, .ai-drawer, .toast-stack, .page-head .page-actions { display: none !important; }
  .app { display: block; }
  .main { width: 100%; }
  .content { padding: 0; }
  .card { border: none; box-shadow: none; }
}

/* ---------- Agent quotation document (single-view / print) ---------- */
.quote-doc-backdrop {
  position: fixed; inset: 0; z-index: 200; overflow-y: auto;
  background: var(--bg); padding: 24px 16px 60px;
}
.quote-doc { max-width: 860px; margin: 0 auto; }
.qd-actions { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.qd-paper {
  background: #fff; color: #1c2128; border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow-lg); padding: 40px 44px; overflow: hidden;
}
.qd-paper .qd-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 2px solid #1c2128; }
.qd-brand { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.qd-brand span { color: var(--accent); }
.qd-doclabel { text-align: right; font-size: 12px; color: #5b6673; line-height: 1.6; }
.qd-doclabel strong { color: #1c2128; }
.qd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 22px 0; }
.qd-meta h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #8a94a1; margin-bottom: 6px; }
.qd-meta .row { font-size: 13px; line-height: 1.7; }
.qd-meta .row b { font-weight: 600; }
.qd-section { margin-top: 26px; }
.qd-section > h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: #1c2128; border-bottom: 1px solid #e3e7ec; padding-bottom: 6px; margin-bottom: 12px; }
.qd-hotel { border: 1px solid #e3e7ec; border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.qd-hotel.rec { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.qd-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.qd-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: #8a94a1; padding: 5px 8px; border-bottom: 1px solid #e3e7ec; }
.qd-table td { padding: 7px 8px; border-bottom: 1px solid #f0f2f5; }
.qd-table td.num, .qd-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.qd-incl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: 12.5px; }
.qd-incl ul { list-style: none; margin: 0; padding: 0; }
.qd-incl li { padding: 3px 0 3px 18px; position: relative; line-height: 1.5; }
.qd-incl li::before { position: absolute; left: 0; top: 2px; }
.qd-incl .inc li::before { content: "✓"; color: var(--ok); }
.qd-incl .exc li::before { content: "✕"; color: var(--danger); }
.qd-price { margin-left: auto; width: 320px; max-width: 100%; font-size: 13px; }
.qd-price .r { display: flex; justify-content: space-between; padding: 5px 0; }
.qd-price .r.total { border-top: 2px solid #1c2128; margin-top: 6px; padding-top: 10px; font-size: 17px; font-weight: 700; }
.qd-terms { font-size: 11.5px; color: #5b6673; line-height: 1.6; white-space: pre-wrap; }
.qd-foot { margin-top: 30px; padding-top: 14px; border-top: 1px solid #e3e7ec; font-size: 11px; color: #8a94a1; text-align: center; }

@media print {
  body * { visibility: hidden !important; }
  .quote-doc-backdrop, .quote-doc-backdrop * { visibility: visible !important; }
  .quote-doc-backdrop { position: absolute; inset: 0; padding: 0; background: #fff; overflow: visible; }
  .qd-actions { display: none !important; }
  .qd-paper { border: none; box-shadow: none; border-radius: 0; padding: 0; }
}

/* Asset label — print only the label */
@media print {
  body:has(.asset-print) * { visibility: hidden !important; }
  .asset-print, .asset-print * { visibility: visible !important; }
  .asset-print { position: absolute; left: 0; top: 0; }
}


/* ============================================================
   LOGIN SCREEN + ROLE PICKER
   ============================================================ */
.login-screen {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--bg);
  color: var(--text);
  z-index: 50;
  overflow: auto;
}

/* Brand panel */
.login-brand {
  position: relative;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  background:
    radial-gradient(110% 120% at 0% 0%, oklch(62% 0.14 var(--accent-h)) 0%, transparent 55%),
    linear-gradient(155deg, oklch(40% 0.12 var(--accent-h)) 0%, oklch(26% 0.08 var(--accent-h)) 100%);
  overflow: hidden;
}
.login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, oklch(100% 0 0 / 0.03) 14px 28px);
  pointer-events: none;
}
.login-brand-top { display: flex; align-items: center; gap: 12px; position: relative; }
.login-logo {
  width: 40px; height: 40px; font-size: 20px;
  background: oklch(100% 0 0 / 0.16);
  color: white;
  border: 1px solid oklch(100% 0 0 / 0.25);
}
.login-brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.login-brand-name small { font-weight: 500; font-size: 11px; opacity: 0.7; }
.login-brand-mid { position: relative; max-width: 460px; }
.login-brand-mid h1 { text-shadow: 0 2px 18px oklch(12% 0.03 var(--accent-h) / 0.55);
  font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.login-brand-mid p { font-size: 14px; line-height: 1.6; opacity: 0.82; margin: 0 0 24px; }
.login-brand-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.login-brand-points li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; opacity: 0.92; }
.login-brand-points li span {
  width: 22px; height: 22px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border-radius: 99px; background: oklch(100% 0 0 / 0.18);
}
.login-brand-points li span svg { width: 13px; height: 13px; stroke-width: 2.5; }
.login-brand-foot { position: relative; font-size: 11.5px; opacity: 0.6; }

/* Form panel */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}
.login-card { width: 100%; max-width: 420px; }
.login-card-head h2 { font-size: 22px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.login-card-head p { font-size: 13.5px; color: var(--text-muted); margin: 0 0 24px; }

.login-form { display: grid; gap: 14px; }
.login-field { display: grid; gap: 6px; }
.login-field span { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.login-field input {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.login-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.login-error {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--danger);
  background: var(--danger-soft);
  padding: 8px 10px; border-radius: var(--radius);
}
.login-error svg { width: 15px; height: 15px; flex-shrink: 0; }
.login-submit { height: 42px; justify-content: center; font-size: 14px; font-weight: 600; margin-top: 4px; }
.login-submit svg { width: 16px; height: 16px; }
.login-hint { font-size: 11.5px; color: var(--text-faint); text-align: center; }

/* Role picker */

/* Topbar user chip */
.topbar-user { display: flex; align-items: center; gap: 8px; padding-left: 8px; margin-left: 4px; border-left: 1px solid var(--border); }
.topbar-user-meta { line-height: 1.2; }
.topbar-user-meta strong { display: block; font-size: 12px; font-weight: 600; }
.topbar-user-meta span { display: block; font-size: 10.5px; color: var(--text-muted); }

@media (max-width: 860px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .topbar-user-meta { display: none; }
}

/* ============================================================
   LOGIN HERO — rotating destination photography + Dubai skyline
   Photos: assets/img (Unsplash License, see assets/img/CREDITS.md)
   Skyline: inline SVG in screens/login.jsx (DubaiSkyline)
   ============================================================ */

.login-brand { isolation: isolate; }
/* the old diagonal stripe texture only muddies photography */
.login-brand::after { display: none; }
/* ground: a dark base the vector skyline can sit on, so it reads as a
   deliberate foreground silhouette instead of fighting the photo behind it */
.login-brand::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 52%;
  z-index: 2;
  background: linear-gradient(to top,
    oklch(11% 0.03 var(--accent-h)) 0%,
    oklch(13% 0.03 var(--accent-h) / 0.82) 34%,
    oklch(16% 0.04 var(--accent-h) / 0.30) 68%,
    transparent 100%);
  pointer-events: none;
}
.login-brand-top,
.login-brand-mid,
.login-brand-foot { z-index: 4; }

/* --- layer 0: crossfading photography --- */
.login-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.login-hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease;
  will-change: opacity, transform;
}
.login-hero-slide[data-on] {
  opacity: 1;
  animation: loginKenBurns 14s ease-out forwards;
}
@keyframes loginKenBurns {
  from { transform: scale(1.14) translate3d(1.5%, 1%, 0); }
  to   { transform: scale(1.0)  translate3d(-1.5%, -1%, 0); }
}

/* --- layer 1: brand scrim so the copy stays legible on any photo --- */
.login-hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(165deg,
      oklch(30% 0.09 var(--accent-h) / 0.72) 0%,
      oklch(22% 0.07 var(--accent-h) / 0.34) 38%,
      oklch(14% 0.04 var(--accent-h) / 0.80) 100%),
    radial-gradient(120% 80% at 6% 2%, oklch(58% 0.14 var(--accent-h) / 0.38) 0%, transparent 58%);
}

/* --- layer 2: the vector skyline --- */
.login-skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.login-skyline .sky-layer path { fill: oklch(8% 0.02 var(--accent-h)); }
.login-skyline .sky-far  { opacity: 0.45; transform: translateY(6px); }
.login-skyline .sky-mid  { opacity: 0.72; }
.login-skyline .sky-near { opacity: 0.97; }

.login-skyline .sky-windows rect {
  fill: oklch(88% 0.14 80);
  opacity: 0.38;
  animation: skyTwinkle 7s ease-in-out infinite;
}
@keyframes skyTwinkle {
  0%, 100% { opacity: 0.30; }
  42%      { opacity: 0.30; }
  50%      { opacity: 1; }
  58%      { opacity: 0.30; }
}

.login-skyline .sky-beacon {
  fill: oklch(72% 0.19 25);
  animation: skyBeacon 2.6s ease-in-out infinite;
}
@keyframes skyBeacon {
  0%, 100% { opacity: 0.25; r: 3; }
  50%      { opacity: 1;    r: 5; }
}

.login-skyline .sky-flight path { stroke: oklch(100% 0 0 / 0.16); stroke-width: 1.5; stroke-dasharray: 5 9; }
.login-skyline .sky-plane { fill: oklch(100% 0 0 / 0.75); }
.login-skyline .sky-plane {
  offset-path: path("M-40 150C220 44 560 20 900 74c130 20 220 44 360 86");
  offset-rotate: auto;
  animation: skyFlight 26s linear infinite;
}
@keyframes skyFlight {
  from { offset-distance: 0%;   opacity: 0; }
  8%   { opacity: 0.8; }
  88%  { opacity: 0.8; }
  to   { offset-distance: 100%; opacity: 0; }
}

/* --- current destination chip --- */
.login-place {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 99px;
  font-size: 11.5px; letter-spacing: 0.01em;
  background: oklch(100% 0 0 / 0.12);
  border: 1px solid oklch(100% 0 0 / 0.18);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.login-place strong { font-weight: 600; }
.login-place-dot {
  width: 7px; height: 7px; border-radius: 99px; flex-shrink: 0;
  background: oklch(78% 0.16 150);
  box-shadow: 0 0 0 0 oklch(78% 0.16 150 / 0.7);
  animation: loginPing 2.4s ease-out infinite;
}
@keyframes loginPing {
  0%   { box-shadow: 0 0 0 0 oklch(78% 0.16 150 / 0.7); }
  70%  { box-shadow: 0 0 0 7px oklch(78% 0.16 150 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(78% 0.16 150 / 0); }
}

/* --- headline stats --- */
.login-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid oklch(100% 0 0 / 0.16);
}
.login-stat { display: grid; gap: 2px; }
.login-stat strong {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.login-stat span { text-shadow: 0 1px 10px oklch(12% 0.03 var(--accent-h) / 0.6); font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; opacity: 0.62; }

/* --- footer + slide dots --- */
.login-brand-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.login-dots { display: flex; gap: 7px; }
.login-dot {
  width: 7px; height: 7px; padding: 0; border-radius: 99px; cursor: pointer;
  border: 0; background: oklch(100% 0 0 / 0.3);
  transition: width 0.3s ease, background 0.3s ease;
}
.login-dot[data-on] { width: 22px; background: oklch(100% 0 0 / 0.85); }

/* --- the whole hero collapses on narrow screens (brand panel already hides) --- */
@media (prefers-reduced-motion: reduce) {
  .login-hero-slide,
  .login-hero-slide[data-on] { animation: none; transform: none; transition: none; }
  .login-skyline .sky-windows rect,
  .login-skyline .sky-beacon,
  .login-skyline .sky-plane,
  .login-place-dot { animation: none; }
  .login-skyline .sky-windows rect { opacity: 0.4; }
}

/* ============================================================
   LOGIN — Microsoft SSO, one-time passcode, remember-me
   ============================================================ */

/* --- Microsoft Entra ID button (Microsoft brand guidance: white surface,
       #8C8C8C hairline, the four-square mark at 20px) --- */
.btn-ms {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 44px; padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid #8c8c8c;
  background: #ffffff;
  color: #1b1b1b;
  font-family: "Segoe UI", var(--font-sans);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-ms:hover  { background: #f3f3f3; }
.btn-ms:active { background: #ededed; }
.btn-ms:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-theme="dark"] .btn-ms { background: #2f2f2f; color: #ffffff; border-color: #8c8c8c; }
[data-theme="dark"] .btn-ms:hover { background: #3b3b3b; }
.ms-logo { width: 20px; height: 20px; flex-shrink: 0; }
.btn-ms-sub {
  margin-top: 8px; text-align: center;
  font-size: 11.5px; color: var(--text-faint);
}

/* --- "or" rule --- */
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 20px;
  font-size: 11.5px; color: var(--text-faint);
}
.login-divider::before,
.login-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }

/* --- inline text buttons --- */
.login-link {
  border: 0; background: none; padding: 0;
  font: inherit; font-size: 11.5px; font-weight: 600;
  color: var(--accent); cursor: pointer;
}
.login-link:hover:not(:disabled) { text-decoration: underline; }
.login-link:disabled { color: var(--text-faint); cursor: default; }
.login-link[data-on] { color: var(--text); text-decoration: underline; }

.login-field-top { display: flex; align-items: center; justify-content: space-between; }

/* --- remember me / forgot password row --- */
.login-options {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 2px;
}
.login-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.login-check input {
  width: 15px; height: 15px; margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.login-check span { font-size: 12.5px; color: var(--text-muted); }

/* --- switch between password and emailed code --- */
.login-alt {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; margin-top: 2px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: none;
  color: var(--text-muted);
  font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.login-alt:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.login-alt svg { width: 14px; height: 14px; }

/* --- MFA badge on the demo role cards --- */
.login-mfa-tag {
  margin-left: 6px; padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px; font-weight: 700; font-style: normal;
  letter-spacing: 0.06em;
  background: var(--info-soft, var(--surface-2));
  color: var(--info, var(--text-muted));
  vertical-align: 1px;
}

/* --- back link on the code screen --- */
.login-back {
  display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 16px; padding: 0;
  border: 0; background: none;
  font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
}
.login-back:hover { color: var(--text); }
.login-back svg { width: 14px; height: 14px; }

/* --- one-time passcode boxes --- */
.otp-boxes {
  display: grid;
  /* minmax(0,1fr) — a bare 1fr floors at the input's min-content width
     (default size=20), which blows the 420px card open sideways. */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px; margin: 4px 0 16px;
}
.otp-box {
  width: 100%;
  min-width: 0;
  padding: 0;
  height: 54px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.otp-box:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.otp-boxes[data-invalid] .otp-box { border-color: var(--danger); }

.otp-demo {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text-muted);
  font-size: 11.5px;
}
.otp-demo strong { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--text); }
.otp-demo svg { width: 14px; height: 14px; flex-shrink: 0; }

.otp-actions {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-top: 14px;
}
.otp-sep { color: var(--text-faint); font-size: 11.5px; }
.otp-methods { display: flex; align-items: center; gap: 10px; }

/* --- Microsoft redirect stage --- */
.sso-stage { text-align: center; padding: 12px 0; }
.sso-stage-mark {
  width: 60px; height: 60px; margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border);
  background: var(--surface);
}
.sso-stage-mark .ms-logo { width: 30px; height: 30px; }
.sso-stage h2 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.sso-stage p { font-size: 13.5px; color: var(--text-muted); margin: 0 0 22px; }
.sso-bar {
  height: 4px; border-radius: 99px; overflow: hidden;
  background: var(--surface-2); margin-bottom: 18px;
}
.sso-bar span {
  display: block; height: 100%; width: 40%; border-radius: 99px;
  background: var(--accent);
  animation: ssoSlide 1.1s ease-in-out infinite;
}
@keyframes ssoSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
.sso-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 20px;
  font-size: 11.5px; color: var(--text-faint);
}
.sso-note svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .sso-bar span { animation: none; width: 100%; }
}

/* ============================================================
   DASHBOARD — action & report desk
   Tiles, the derived action queue, reminders and the anomaly
   monitors. Tones map onto the existing status token set.
   ============================================================ */

.desk-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.desk-tile {
  display: grid; gap: 2px; justify-items: start;
  padding: 13px 14px 12px; text-align: left;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.desk-tile:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm, 0 2px 8px rgb(0 0 0 / 0.06)); }
.desk-tile-icon { width: 15px; height: 15px; color: var(--text-faint); margin-bottom: 4px; }
.desk-tile-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.desk-tile-label { font-size: 12px; font-weight: 600; color: var(--text); }
.desk-tile-sub { font-size: 10.5px; color: var(--text-faint); line-height: 1.35; }
.desk-tile[data-tone="accent"]  { border-color: var(--accent); }
.desk-tile[data-tone="accent"]  .desk-tile-icon, .desk-tile[data-tone="accent"]  .desk-tile-value { color: var(--accent); }
.desk-tile[data-tone="warn"]    .desk-tile-icon, .desk-tile[data-tone="warn"]    .desk-tile-value { color: var(--warn); }
.desk-tile[data-tone="danger"]  .desk-tile-icon, .desk-tile[data-tone="danger"]  .desk-tile-value { color: var(--danger); }
.desk-tile[data-tone="info"]    .desk-tile-icon, .desk-tile[data-tone="info"]    .desk-tile-value { color: var(--info); }

.desk-split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; margin-bottom: 14px; align-items: start; }

/* --- action queue --- */
.queue { display: flex; flex-direction: column; }
.queue-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.queue-item:first-child { border-top: 0; }
.queue-sev { width: 3px; align-self: stretch; border-radius: 99px; flex-shrink: 0; background: var(--neutral, var(--border-strong)); }
.queue-item[data-sev="high"] .queue-sev { background: var(--danger); }
.queue-item[data-sev="med"]  .queue-sev { background: var(--warn); }
.queue-item[data-sev="low"]  .queue-sev { background: var(--border-strong); }
.queue-body { flex: 1; min-width: 0; }
.queue-top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; flex-wrap: wrap; }
.queue-kind {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted);
}
.queue-rule { font-size: 10px; color: var(--text-faint); }
.queue-title { font-size: 13px; font-weight: 600; line-height: 1.35; }
.queue-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.queue-side { display: grid; gap: 6px; justify-items: end; flex-shrink: 0; }
.queue-value { font-size: 12.5px; font-weight: 700; }
.queue-actions { display: flex; gap: 4px; }
.queue-actions svg { width: 13px; height: 13px; }

/* --- reminders --- */
.remind { display: flex; flex-direction: column; }
.remind-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.remind-item:first-child { border-top: 0; }
.remind-item:hover { background: var(--hover); }
.remind-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-muted);
}
.remind-icon svg { width: 13px; height: 13px; }
.remind-label { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.remind-sub { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remind-when { text-align: right; flex-shrink: 0; display: grid; gap: 1px; }
.remind-when strong { font-size: 11.5px; font-weight: 600; }
.remind-when span { font-size: 10px; color: var(--text-faint); }

/* --- anomaly monitors --- */
.anom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; padding: 14px; }
.anom {
  display: flex; flex-direction: column; gap: 6px;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  background: var(--surface);
}
.anom[data-sev="high"] { border-left-color: var(--danger); }
.anom[data-sev="med"]  { border-left-color: var(--warn); }
.anom-top { display: flex; align-items: center; gap: 7px; }
.anom-icon { width: 13px; height: 13px; color: var(--text-faint); }
.anom[data-sev="high"] .anom-icon { color: var(--danger); }
.anom[data-sev="med"]  .anom-icon { color: var(--warn); }
.anom-monitor { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
.anom-sev {
  margin-left: auto; padding: 1px 6px; border-radius: 4px;
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--surface-2); color: var(--text-muted);
}
.anom[data-sev="high"] .anom-sev { background: var(--danger-soft); color: var(--danger); }
.anom[data-sev="med"]  .anom-sev { background: var(--warn-soft); color: var(--warn); }
.anom-finding { font-size: 13.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
.anom-detail { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.anom-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.anom-rule {
  font-size: 10px; color: var(--text-faint);
  padding: 2px 6px; border-radius: 4px; background: var(--surface-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 1100px) {
  .desk-split { grid-template-columns: 1fr; }
}

/* ============================================================
   WHITE BRAND TREATMENT
   The sign-in page and the app chrome both sit on white so the
   full-colour Connexa wordmark reads correctly. Overrides the
   earlier dark hero rules.
   ============================================================ */

/* --- chrome: keep the logo on white even when a dark sidebar tone is picked --- */
.brand-lockup { display: grid; gap: 1px; line-height: 1; }
.brand-lockup small { font-size: 9.5px; color: var(--text-faint); letter-spacing: 0.04em; }
.sidebar-head { background: #ffffff; }
[data-theme="dark"] .sidebar-head { background: var(--surface); }
.topbar { background: var(--surface); }

/* --- sign-in: white panel, dark type --- */
.login-brand {
  background: var(--surface);
  color: var(--text);
  border-right: 1px solid var(--border);
  padding: 40px 48px;
  gap: 24px;
  overflow-y: auto;
}
.login-brand::before,
.login-brand::after { display: none; }
.login-brand-top { z-index: auto; }
.login-brand-mid { max-width: 520px; z-index: auto; }
.login-brand-mid h1 { text-shadow: none; color: var(--text); font-size: 30px; }
.login-brand-mid p { color: var(--text-muted); opacity: 1; margin-bottom: 20px; }

/* photography lives inside a card now, not behind the whole panel */
.login-hero-card {
  position: relative;
  height: clamp(180px, 26vh, 250px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin-bottom: 22px;
  isolation: isolate;
}
.login-hero-card .login-hero-media { z-index: 0; }
.login-hero-card .login-hero-scrim {
  z-index: 1;
  background: linear-gradient(to top,
    oklch(14% 0.04 var(--accent-h) / 0.82) 0%,
    oklch(16% 0.04 var(--accent-h) / 0.30) 42%,
    transparent 72%);
}
.login-hero-card .login-skyline { z-index: 2; height: auto; }
.login-hero-cap {
  position: absolute; z-index: 3; left: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 99px;
  font-size: 11px; color: white;
  background: oklch(20% 0.02 var(--accent-h) / 0.55);
  border: 1px solid oklch(100% 0 0 / 0.22);
  backdrop-filter: blur(10px);
}
.login-hero-cap strong { font-weight: 600; }
.login-hero-card .login-dots {
  position: absolute; z-index: 3; right: 12px; bottom: 16px;
}

/* points, stats and footer on white */
.login-brand-points li { opacity: 1; color: var(--text); }
.login-brand-points li span { background: var(--accent-soft); color: var(--accent); }
.login-stats { border-top: 1px solid var(--border); }
.login-stat span { text-shadow: none; opacity: 1; color: var(--text-faint); }
.login-brand-foot { color: var(--text-faint); opacity: 1; z-index: auto; }

/* the skyline reads as a soft brand-tinted silhouette on light photography */
.login-hero-card .sky-layer path { fill: oklch(16% 0.04 var(--accent-h)); }

/* dots need to read on photography */
.login-dot { background: oklch(100% 0 0 / 0.45); }
.login-dot[data-on] { background: oklch(100% 0 0 / 0.95); }

@media (max-width: 900px) {
  .login-brand { display: none; }
}

/* pin logo top / footer bottom, centre the copy in what's left */
.login-brand-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
/* the form side goes white too — a hairline is the only separation needed */
.login-screen { background: var(--surface); }
.login-panel { background: var(--surface); }

/* The grid row is as tall as the taller column (the role list), which stretched
   the brand panel and pushed its footer below the fold. Pin it to the viewport
   and let only the form side scroll. */
.login-brand {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: hidden;
}

/* collapsed rail: the X mark is the expand control */
.app[data-sidebar="collapsed"] .sidebar-head { padding: 0; justify-content: center; }
.sidebar-mark { width: 34px; height: 34px; display: grid; place-items: center; }
.sidebar-mark:hover { background: var(--hover); }

/* --- sign-in: role picker + the account it fills in --- */
.login-field select.input { cursor: pointer; }

.role-brief {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-top: -4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.role-brief-meta { flex: 1; min-width: 0; line-height: 1.3; }
.role-brief-meta strong { display: block; font-size: 13px; font-weight: 600; }
.role-brief-meta span {
  display: block; font-size: 11.5px; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.role-brief-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.role-tag {
  padding: 2px 7px; border-radius: 4px;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); white-space: nowrap;
}
.role-tag[data-tone="mfa"] {
  background: var(--info-soft, var(--accent-soft));
  color: var(--info, var(--accent));
  border-color: transparent;
}

/* ============================================================
   CONNEXA BRAND PALETTE
   The four wordmark stops, exposed as tokens so the sign-in panel
   (and anything else that wants to) can carry the identity rather
   than a flat neutral.
   ============================================================ */
:root {
  --brand-blue:   #2563EB;
  --brand-cyan:   #00C2E8;
  --brand-violet: #8B3DE8;
  --brand-coral:  #FF6244;
  --brand-grad: linear-gradient(100deg,
    var(--brand-blue) 0%, #1290E4 30%, var(--brand-cyan) 52%,
    var(--brand-violet) 76%, var(--brand-coral) 100%);
}

/* --- the panel keeps a white base but stops being flat --- */
.login-brand { position: relative; overflow: hidden; }
.login-brand::before {
  content: "";
  position: absolute; inset: 0; top: 0; height: 3px;
  background: var(--brand-grad);
  display: block;
  z-index: 6;
}
.brand-wash {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(52% 44% at 6% -6%,  color-mix(in oklab, var(--brand-blue) 20%, transparent) 0%, transparent 70%),
    radial-gradient(46% 40% at 96% 12%, color-mix(in oklab, var(--brand-violet) 14%, transparent) 0%, transparent 72%),
    radial-gradient(60% 50% at 88% 104%, color-mix(in oklab, var(--brand-coral) 17%, transparent) 0%, transparent 72%),
    radial-gradient(50% 42% at 18% 96%, color-mix(in oklab, var(--brand-cyan) 15%, transparent) 0%, transparent 74%);
}
[data-theme="dark"] .brand-wash { opacity: 0.55; }

/* the X glyph as a large, quiet watermark */
.brand-watermark {
  position: absolute; z-index: 0; pointer-events: none;
  right: -170px; top: 50%; transform: translateY(-50%) rotate(-8deg);
  opacity: 0.05;
}

/* headline picks up the wordmark gradient on its second line */
.brand-grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.login-brand-mid h1 { font-size: 34px; line-height: 1.12; }

/* bullets take one brand hue each */
.login-brand-points li[data-hue="blue"]   span { background: color-mix(in oklab, var(--brand-blue) 14%, transparent);   color: var(--brand-blue); }
.login-brand-points li[data-hue="cyan"]   span { background: color-mix(in oklab, var(--brand-cyan) 18%, transparent);   color: #0092AE; }
.login-brand-points li[data-hue="violet"] span { background: color-mix(in oklab, var(--brand-violet) 14%, transparent); color: var(--brand-violet); }
.login-brand-points li { font-weight: 500; }

/* the photo sits in a gradient-edged frame */
.login-hero-card {
  border: 0;
  padding: 2px;
  background: var(--brand-grad);
  box-shadow: 0 12px 30px -14px color-mix(in oklab, var(--brand-violet) 55%, transparent);
}
.login-hero-card > .login-hero-media,
.login-hero-card > .login-hero-scrim,
.login-hero-card > .login-skyline { border-radius: 12px; }
.login-hero-card > .login-hero-media { inset: 2px; overflow: hidden; }
.login-hero-card > .login-hero-scrim { inset: 2px; }
.login-hero-card > .login-skyline { left: 2px; right: 2px; bottom: 2px; width: auto; }

/* stats read as brand figures */
.login-stats { border-top: 0; position: relative; }
.login-stats::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  border-radius: 2px; background: var(--brand-grad); opacity: 0.65;
}
.login-stat strong { font-size: 24px; }
.login-stat:nth-child(1) strong { color: var(--brand-blue); }
.login-stat:nth-child(2) strong { color: #0092AE; }
.login-stat:nth-child(3) strong { color: var(--brand-coral); }

/* footer credit */
.login-brand-foot { font-size: 12px; }
.login-brand-foot strong { color: var(--text); font-weight: 600; }

/* the primary action carries the wordmark gradient (login only — the app
   accent is left alone so every other screen is unaffected) */
.login-submit.btn-accent {
  background: var(--brand-grad);
  border: 0;
  color: #fff;
  box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--brand-violet) 70%, transparent);
}
.login-submit.btn-accent:hover:not(:disabled) { filter: brightness(1.06) saturate(1.05); }
.login-submit.btn-accent:disabled { opacity: 0.6; }
.login-link, .login-alt:hover { color: var(--brand-blue); }
.login-alt:hover { border-color: var(--brand-blue); background: color-mix(in oklab, var(--brand-blue) 7%, transparent); }
.login-field input:focus, .otp-box:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-blue) 16%, transparent);
}
.login-check input { accent-color: var(--brand-blue); }

/* ============================================================
   BRAND WASH ACROSS BOTH HALVES
   The same four brand pools continue onto the form side, mirrored
   so the two panels read as one continuous field of colour, and
   the top hairline runs edge to edge instead of restarting at the
   divider.
   ============================================================ */
.login-brand::before { display: none; }          /* hairline moves to the screen */

.login-screen::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand-grad);
  z-index: 7;
  pointer-events: none;
}

.login-panel { position: relative; isolation: isolate; }
.login-panel::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  /* mirrored positions, dialled back so inputs and labels stay crisp */
  background:
    radial-gradient(52% 44% at 94% -6%,  color-mix(in oklab, var(--brand-blue) 13%, transparent) 0%, transparent 70%),
    radial-gradient(46% 40% at 4% 12%,   color-mix(in oklab, var(--brand-violet) 10%, transparent) 0%, transparent 72%),
    radial-gradient(60% 50% at 10% 104%, color-mix(in oklab, var(--brand-coral) 12%, transparent) 0%, transparent 72%),
    radial-gradient(50% 42% at 84% 96%,  color-mix(in oklab, var(--brand-cyan) 11%, transparent) 0%, transparent 74%);
}
[data-theme="dark"] .login-panel::before { opacity: 0.55; }

.login-card { position: relative; z-index: 1; }

/* on a tinted ground the fields need to be solid, not transparent */
.login-field input,
.login-field select.input,
.otp-box { background: var(--surface); }
.role-brief { background: color-mix(in oklab, var(--surface) 82%, transparent); backdrop-filter: blur(6px); }
.btn-ms { background: #ffffff; }
[data-theme="dark"] .btn-ms { background: #2f2f2f; }

/* ------------------------------------------------------------
   One field, not two. Mirroring the wash per panel left a visible
   discontinuity at the divider, so the wash now sits behind the
   whole screen and both panels go transparent over it. Fixed
   positioning keeps it still while the form side scrolls.
   ------------------------------------------------------------ */
.login-screen::before { position: fixed; }
.login-screen::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 40% at 4% -4%,   color-mix(in oklab, var(--brand-blue) 20%, transparent) 0%, transparent 70%),
    radial-gradient(30% 34% at 52% 6%,   color-mix(in oklab, var(--brand-violet) 13%, transparent) 0%, transparent 72%),
    radial-gradient(34% 38% at 97% 16%,  color-mix(in oklab, var(--brand-cyan) 14%, transparent) 0%, transparent 72%),
    radial-gradient(40% 44% at 84% 103%, color-mix(in oklab, var(--brand-coral) 16%, transparent) 0%, transparent 72%),
    radial-gradient(36% 40% at 14% 98%,  color-mix(in oklab, var(--brand-cyan) 15%, transparent) 0%, transparent 74%);
}
[data-theme="dark"] .login-screen::after { opacity: 0.6; }

.login-brand, .login-panel { background: transparent; }
.login-brand .brand-wash { display: none; }      /* superseded by the screen wash */
.login-panel::before { display: none; }
.login-brand-top, .login-brand-mid, .login-brand-foot { position: relative; z-index: 1; }
/* the watermark must stay out of flow — making it relative dropped it into the
   column and collapsed the panel layout */
.brand-watermark { position: absolute; z-index: 0; }


/* ============================================================
   APP WATERMARK
   The same X glyph that sits behind the sign-in panel, carried
   into the app. It lives on .main (which has no background of
   its own) and .content goes transparent over it, so the mark
   shows through the gaps between cards without ever painting
   on top of them. .app still supplies the ground colour.
   ============================================================ */
.main { position: relative; isolation: isolate; }
.main::before {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -110px;
  width: 560px;
  height: 560px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 122 122'%3E%3Cdefs%3E%3ClinearGradient id='v' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%238B3DE8'/%3E%3Cstop offset='1' stop-color='%23A855F7'/%3E%3C/linearGradient%3E%3ClinearGradient id='o' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%2312C6E4'/%3E%3Cstop offset='0.5' stop-color='%238B3DE8'/%3E%3Cstop offset='1' stop-color='%23FF6B45'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg stroke-width='26' stroke-linecap='round' fill='none'%3E%3Cline x1='16' y1='16' x2='106' y2='106' stroke='url(%23v)'/%3E%3Cline x1='16' y1='106' x2='106' y2='16' stroke='url(%23o)'/%3E%3Ccircle cx='61' cy='61' r='12' fill='%23FF5C3A' stroke='none'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(-8deg);
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .main::before { opacity: 0.075; }
.content { background: transparent; position: relative; z-index: 1; }

@media (max-width: 900px) {
  .main::before { width: 360px; height: 360px; right: -90px; bottom: -80px; }
}

/* ============================================================
   TABS — brand palette
   Each tab takes one stop of the wordmark gradient, and the
   active one gets the full gradient as its underline. Applies
   to every .tab in the app, so the strips read consistently.
   ============================================================ */
.tab {
  position: relative;
  --tab-hue: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px 8px 0 0;
  border-bottom-color: transparent;
  transition: color 0.16s ease, background 0.16s ease;
}
.tab:nth-of-type(4n + 1) { --tab-hue: var(--brand-blue); }
.tab:nth-of-type(4n + 2) { --tab-hue: var(--brand-coral); }
.tab:nth-of-type(4n + 3) { --tab-hue: #0092AE; }
.tab:nth-of-type(4n + 4) { --tab-hue: var(--brand-violet); }

.tab:hover {
  color: var(--tab-hue);
  background: color-mix(in oklab, var(--tab-hue) 9%, transparent);
}
.tab[data-active="true"] {
  color: var(--tab-hue);
  font-weight: 600;
  border-bottom-color: transparent;
  background: color-mix(in oklab, var(--tab-hue) 7%, transparent);
}

/* the active marker is the full wordmark gradient, wiped in */
.tab::after {
  content: "";
  position: absolute; left: 6px; right: 6px; bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.tab[data-active="true"]::after { transform: scaleX(1); }

/* count pill picks up the tab's own hue, and fills when active */
.tab-count {
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 99px;
  font-weight: 600;
  color: var(--tab-hue);
  background: color-mix(in oklab, var(--tab-hue) 14%, transparent);
}
.tab[data-active="true"] .tab-count {
  color: #fff;
  background: var(--tab-hue);
}

@media (prefers-reduced-motion: reduce) {
  .tab::after { transition: none; }
}

/* ============================================================
   BRAND THEMING — structure
   Page headers, card blocks, table headers, KPI tiles and nav
   sections take the wordmark palette. Status colours
   (--ok / --warn / --danger) are deliberately untouched: they
   carry meaning and must not become decoration.
   ============================================================ */

/* --- page header: gradient rule + a gradient bar on the title --- */
.page-head {
  position: relative;
  padding-bottom: 14px;
}
.page-head::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--brand-grad);
  opacity: 0.7;
}
.page-title {
  position: relative;
  padding-left: 13px;
}
.page-title::before {
  content: "";
  position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 4px; border-radius: 99px;
  background: var(--brand-grad);
}

/* --- card blocks: only the ones that are real sections (have a head) --- */
/* every card gets the edge — gating on :has(> .card-head) missed the screens
   that build their own header markup, which read as accidental inconsistency */
.card { position: relative; }
.card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--brand-grad);
  opacity: 0.9;
  pointer-events: none;
}
.card > .card-head {
  background: linear-gradient(95deg,
    color-mix(in oklab, var(--brand-blue) 7%, transparent) 0%,
    color-mix(in oklab, var(--brand-violet) 5%, transparent) 45%,
    color-mix(in oklab, var(--brand-coral) 4%, transparent) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* --- table headers --- */
.tbl thead th {
  background: color-mix(in oklab, var(--brand-blue) 7%, var(--surface-2));
  color: color-mix(in oklab, var(--brand-blue) 45%, var(--text-muted));
}
[data-theme="dark"] .tbl thead th {
  background: color-mix(in oklab, var(--brand-blue) 14%, var(--surface-2));
  color: color-mix(in oklab, var(--brand-cyan) 40%, var(--text-muted));
}

/* --- KPI tiles: a brand accent bar, cycling through the palette --- */
.kpi {
  position: relative;
  overflow: hidden;
  --k: var(--brand-blue);
}
.kpi:nth-of-type(4n + 1) { --k: var(--brand-blue); }
.kpi:nth-of-type(4n + 2) { --k: #0092AE; }
.kpi:nth-of-type(4n + 3) { --k: var(--brand-violet); }
.kpi:nth-of-type(4n + 4) { --k: var(--brand-coral); }
.kpi::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--k);
}
.kpi-label { color: color-mix(in oklab, var(--k) 40%, var(--text-muted)); }

/* --- sidebar sections: see the per-module accordion block below --- */

/* --- topbar keeps a whisper of the gradient --- */
.topbar { position: relative; }
.topbar::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--brand-grad);
  opacity: 0.45;
  pointer-events: none;
}

/* ============================================================
   SIDEBAR — one colour per module, expand / collapse
   Each nav group carries its own hue via data-hue, and its items
   fold away behind a header row showing the item count.
   ============================================================ */
.nav-group[data-hue="blue"]    { --g: #2563EB; }
.nav-group[data-hue="cyan"]    { --g: #0092AE; }
.nav-group[data-hue="violet"]  { --g: #8B3DE8; }
.nav-group[data-hue="coral"]   { --g: #FF6244; }
.nav-group[data-hue="emerald"] { --g: #0EA46A; }
.nav-group[data-hue="magenta"] { --g: #DB2777; }
.nav-group[data-hue="amber"]   { --g: #D97706; }

.nav-group { margin-bottom: 6px; }
.nav-group + .nav-group { border-top: 0; padding-top: 0; }

.nav-group-head {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 12px;
  margin-bottom: 2px;
  position: relative;
  border: 1px solid color-mix(in oklab, var(--g) 22%, transparent);
  border-radius: 8px;
  background: color-mix(in oklab, var(--g) 8%, transparent);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-group-head::before {
  content: "";
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--g);
}
.nav-group-head:hover { background: color-mix(in oklab, var(--g) 14%, transparent); }
.nav-group-name {
  flex: 1; min-width: 0;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--g);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-group-count {
  flex-shrink: 0;
  min-width: 20px; padding: 2px 6px;
  border-radius: 99px;
  font-size: 10px; font-weight: 700; text-align: center;
  color: var(--g);
  background: color-mix(in oklab, var(--g) 18%, transparent);
}
.nav-group-chev {
  flex-shrink: 0; width: 13px; height: 13px;
  color: color-mix(in oklab, var(--g) 70%, transparent);
  transition: transform 0.18s ease;
}
.nav-group-chev svg { width: 13px; height: 13px; stroke-width: 2.5; }
.nav-group[data-open] .nav-group-chev { transform: rotate(90deg); }

/* items inherit their module's hue when active */
.nav-group .nav-item[data-active] {
  background: color-mix(in oklab, var(--g) 12%, transparent);
  color: var(--g);
}
.nav-group .nav-item[data-active] .nav-icon { color: var(--g); }
.nav-group .nav-item { margin-left: 6px; }

/* expand / collapse all */
.nav-expand-all {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: calc(100% - 4px); margin: 2px 2px 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit; font-size: 11px; font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-expand-all:hover { color: var(--text); border-color: var(--border-strong); }
.nav-expand-chev { width: 12px; height: 12px; transition: transform 0.18s ease; }
.nav-expand-chev svg { width: 12px; height: 12px; stroke-width: 2.5; }
.nav-expand-chev[data-open] { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .nav-group-chev, .nav-expand-chev { transition: none; }
}

/* ============================================================
   GRADIENT STAT TILES
   Compact rounded stat blocks on a brand gradient, with a line
   illustration bleeding out of the bottom-right corner.
   ============================================================ */
.gstat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.gstat {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 15px 17px 14px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  isolation: isolate;
}
.gstat[data-tone="blue"]   { background: linear-gradient(135deg, #2563EB 0%, #6D3AEA 55%, #8B3DE8 100%); box-shadow: 0 12px 26px -16px #2563EB; }
.gstat[data-tone="cyan"]   { background: linear-gradient(135deg, #06B6D4 0%, #1290E4 55%, #2563EB 100%); box-shadow: 0 12px 26px -16px #0EA5C4; }
.gstat[data-tone="violet"] { background: linear-gradient(135deg, #8B3DE8 0%, #B534C9 55%, #DB2777 100%); box-shadow: 0 12px 26px -16px #8B3DE8; }
.gstat[data-tone="coral"]  { background: linear-gradient(135deg, #FF6244 0%, #FB8B3C 55%, #F59E0B 100%); box-shadow: 0 12px 26px -16px #FF6244; }
.gstat[data-tone="emerald"]{ background: linear-gradient(135deg, #0EA46A 0%, #10B7A0 55%, #06B6D4 100%); box-shadow: 0 12px 26px -16px #0EA46A; }

/* a soft highlight so the gradient reads as a surface, not a flat fill */
.gstat::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(75% 60% at 15% 0%, rgb(255 255 255 / 0.22) 0%, transparent 70%);
}
.gstat-art {
  position: absolute;
  right: -14px; bottom: -20px;
  width: 108px; height: 108px;
  opacity: 0.18;
  pointer-events: none;
  transform: rotate(-8deg);
}
.gstat-art svg { width: 100%; height: 100%; stroke-width: 1.1; }

.gstat-label {
  position: relative;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  opacity: 0.88;
}
.gstat-value {
  position: relative;
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.08;
  margin: 5px 0 3px;
  font-variant-numeric: tabular-nums;
}
.gstat-sub {
  position: relative;
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; opacity: 0.92; line-height: 1.35;
}
.gstat-up { width: 12px; height: 12px; flex-shrink: 0; display: inline-grid; place-items: center; }
.gstat-up svg { width: 12px; height: 12px; stroke-width: 2.5; }

/* .kpi-delta is a flex row; a bare <svg> child has no intrinsic size and
   stretches to fill the card (it was rendering as a giant arrow on the deals,
   ledger, agent and branch-analytics screens). Constrain it once here rather
   than wrapping the icon at every call site. */
.kpi-delta > svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke-width: 2.5;
}

/* --- pipeline: owner filter dropdown --- */
.owner-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
}
.owner-picker-icon {
  position: absolute; left: 10px;
  width: 14px; height: 14px;
  color: var(--text-faint);
  pointer-events: none;
}
.owner-picker-icon svg { width: 14px; height: 14px; }
.owner-picker-select {
  height: 32px;
  padding: 0 30px 0 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.owner-picker-select:hover { border-color: var(--border-strong); }
.owner-picker-select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-blue) 16%, transparent);
}
.owner-picker-chev {
  position: absolute; right: 9px;
  width: 13px; height: 13px;
  color: var(--text-faint);
  pointer-events: none;
}
.owner-picker-chev svg { width: 13px; height: 13px; stroke-width: 2.5; }

/* ============================================================
   SHARED GRADIENT TONES
   One palette for both the dashboard desk tiles and the CMS
   stat tiles, so the two screens read as the same system.
   Amber and magenta extend the four wordmark stops — seven
   tiles need seven distinguishable gradients.
   ============================================================ */
.gstat[data-tone="amber"],
.desk-tile[data-tone="amber"]   { background: linear-gradient(135deg, #F59E0B 0%, #FB8B3C 55%, #FF6244 100%); box-shadow: 0 12px 26px -16px #F59E0B; }
.gstat[data-tone="magenta"],
.desk-tile[data-tone="magenta"] { background: linear-gradient(135deg, #DB2777 0%, #B534C9 55%, #8B3DE8 100%); box-shadow: 0 12px 26px -16px #DB2777; }
.desk-tile[data-tone="blue"]    { background: linear-gradient(135deg, #2563EB 0%, #6D3AEA 55%, #8B3DE8 100%); box-shadow: 0 12px 26px -16px #2563EB; }
.desk-tile[data-tone="cyan"]    { background: linear-gradient(135deg, #06B6D4 0%, #1290E4 55%, #2563EB 100%); box-shadow: 0 12px 26px -16px #0EA5C4; }
.desk-tile[data-tone="violet"]  { background: linear-gradient(135deg, #8B3DE8 0%, #B534C9 55%, #DB2777 100%); box-shadow: 0 12px 26px -16px #8B3DE8; }
.desk-tile[data-tone="coral"]   { background: linear-gradient(135deg, #FF6244 0%, #FB8B3C 55%, #F59E0B 100%); box-shadow: 0 12px 26px -16px #FF6244; }
.desk-tile[data-tone="emerald"] { background: linear-gradient(135deg, #0EA46A 0%, #10B7A0 55%, #06B6D4 100%); box-shadow: 0 12px 26px -16px #0EA46A; }

/* --- desk tiles adopt the gstat treatment (they stay <button>s) --- */
.desk-tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 16px;
  padding: 15px 17px 14px;
  min-height: 112px;
  gap: 0;
  color: #fff;
  justify-items: stretch;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.desk-tile::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(75% 60% at 15% 0%, rgb(255 255 255 / 0.22) 0%, transparent 70%);
}
.desk-tile:hover {
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.04);
}

/* the icon becomes the corner illustration, like .gstat-art */
.desk-tile .desk-tile-icon {
  position: absolute;
  right: -14px; bottom: -20px;
  width: 100px; height: 100px;
  margin: 0;
  opacity: 0.18;
  transform: rotate(-8deg);
  color: #fff;
  pointer-events: none;
}
.desk-tile .desk-tile-icon svg { width: 100%; height: 100%; stroke-width: 1.1; }

.desk-tile .desk-tile-value {
  position: relative;
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.08;
  color: #fff;
  order: 2;
  margin: 4px 0 2px;
}
.desk-tile .desk-tile-label {
  position: relative;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: #fff; opacity: 0.88;
  order: 1;
}
.desk-tile .desk-tile-sub {
  position: relative;
  font-size: 11.5px; color: #fff; opacity: 0.9; line-height: 1.35;
  order: 3;
}
/* 7 tiles: keep them on one row for as long as the width allows, rather than
   leaving a single orphan wrapping to a second line */
.desk-tiles { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; }
@media (max-width: 1180px) { .desk-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 780px)  { .desk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  .desk-tile { transition: none; }
  .desk-tile:hover { transform: none; }
}

/* --- dashboard: explicit from/to window --- */
.date-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.date-range[data-active] {
  border-color: var(--brand-blue);
  background: color-mix(in oklab, var(--brand-blue) 6%, var(--surface));
}
.date-range-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.date-range-input {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 0;
  width: 116px;
  cursor: pointer;
}
.date-range-input:focus { outline: none; color: var(--brand-blue); }
.date-range-sep { color: var(--text-faint); font-size: 12px; }
.date-range-clear {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border: 0; border-radius: 99px;
  background: color-mix(in oklab, var(--brand-blue) 14%, transparent);
  color: var(--brand-blue);
  cursor: pointer;
}
.date-range-clear svg { width: 11px; height: 11px; stroke-width: 2.5; }

/* ============================================================
   TABLE ZEBRA STRIPING
   Alternate rows across every table in the app. `--text` is
   near-black in light and near-white in dark, so one mix works
   for both themes.

   Order matters: the base hover and selected rules sit earlier in
   this file at the same specificity, so the stripe would win on
   source order alone. They are re-asserted below the stripe to
   keep row state visible.
   ============================================================ */
.tbl tbody tr:nth-child(even) td,
.rbac tbody tr:nth-child(even) td,
.qd-table tbody tr:nth-child(even) td {
  background: color-mix(in oklab, var(--text) 3.5%, transparent);
}

/* hover and selection must still read over the stripe */
.tbl tbody tr:hover td,
.rbac tbody tr:hover td,
.qd-table tbody tr:hover td { background: var(--hover); }
.tbl tbody tr[data-selected="true"] td { background: var(--accent-soft); }

/* ============================================================
   KPI TILES -> GRADIENT
   Every .kpi in the app adopts the same treatment as the
   dashboard desk tiles and the CMS stat tiles. Hues cycle by
   position; a data-tone overrides the cycle where the figure
   carries meaning (overdue = coral, profit = emerald).
   ============================================================ */
.kpi {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 16px;
  padding: 15px 17px 14px;
  min-height: 104px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kpi::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(75% 60% at 15% 0%, rgb(255 255 255 / 0.22) 0%, transparent 70%);
}
/* the old left accent bar is replaced by the gradient itself */
.kpi::before { content: none; }

.kpi:nth-of-type(7n + 1) { --k: #2563EB; background: linear-gradient(135deg, #2563EB 0%, #6D3AEA 55%, #8B3DE8 100%); box-shadow: 0 12px 26px -16px #2563EB; }
.kpi:nth-of-type(7n + 2) { --k: #06B6D4; background: linear-gradient(135deg, #06B6D4 0%, #1290E4 55%, #2563EB 100%); box-shadow: 0 12px 26px -16px #0EA5C4; }
.kpi:nth-of-type(7n + 3) { --k: #8B3DE8; background: linear-gradient(135deg, #8B3DE8 0%, #B534C9 55%, #DB2777 100%); box-shadow: 0 12px 26px -16px #8B3DE8; }
.kpi:nth-of-type(7n + 4) { --k: #FF6244; background: linear-gradient(135deg, #FF6244 0%, #FB8B3C 55%, #F59E0B 100%); box-shadow: 0 12px 26px -16px #FF6244; }
.kpi:nth-of-type(7n + 5) { --k: #0EA46A; background: linear-gradient(135deg, #0EA46A 0%, #10B7A0 55%, #06B6D4 100%); box-shadow: 0 12px 26px -16px #0EA46A; }
.kpi:nth-of-type(7n + 6) { --k: #DB2777; background: linear-gradient(135deg, #DB2777 0%, #B534C9 55%, #8B3DE8 100%); box-shadow: 0 12px 26px -16px #DB2777; }
.kpi:nth-of-type(7n + 7) { --k: #F59E0B; background: linear-gradient(135deg, #F59E0B 0%, #FB8B3C 55%, #FF6244 100%); box-shadow: 0 12px 26px -16px #F59E0B; }

/* semantic overrides — these win over the positional cycle */
.kpi[data-tone="coral"]   { background: linear-gradient(135deg, #FF6244 0%, #FB8B3C 55%, #F59E0B 100%); box-shadow: 0 12px 26px -16px #FF6244; }
.kpi[data-tone="emerald"] { background: linear-gradient(135deg, #0EA46A 0%, #10B7A0 55%, #06B6D4 100%); box-shadow: 0 12px 26px -16px #0EA46A; }
.kpi[data-tone="blue"]    { background: linear-gradient(135deg, #2563EB 0%, #6D3AEA 55%, #8B3DE8 100%); box-shadow: 0 12px 26px -16px #2563EB; }

/* Text goes white. !important is needed because several screens set an inline
   colour on .kpi-value (some conditionally), which would otherwise render a
   dark or semantic colour on top of a saturated gradient. */
.kpi .kpi-label {
  color: #fff !important;
  opacity: 0.88;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
}
.kpi .kpi-label svg { color: #fff; opacity: 0.75; }
.kpi .kpi-value {
  color: #fff !important;
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.1;
  margin: 5px 0 3px;
}
.kpi .kpi-delta,
.kpi .kpi-delta.up,
.kpi .kpi-delta.down { color: #fff !important; opacity: 0.9; font-size: 11.5px; }
.kpi.kpi-sm { min-height: 92px; padding: 12px 14px; }
.kpi.kpi-sm .kpi-value { font-size: 23px; }

.kpi-grid { gap: 12px; }

/* On a gradient tile the tone-tinted icon chip renders as a blank white square
   and inline sparklines keep their old semantic fill. Both need to become
   white-on-glass. */
.kpi .kpi-ico {
  background: rgb(255 255 255 / 0.2);
  border: 1px solid rgb(255 255 255 / 0.26);
  color: #fff;
}
.kpi .kpi-ico svg { color: #fff; }
.kpi .kpi-lead > span:last-child { color: #fff; }
/* sparkline bars are divs, not svg — they keep the accent colour otherwise */
.kpi .spark-bar { background: rgb(255 255 255 / 0.5) !important; }
.kpi .spark rect, .kpi svg rect { fill: rgb(255 255 255 / 0.55); }
.kpi svg path[stroke] { stroke: rgb(255 255 255 / 0.7); }

/* --- display-currency switcher --- */
.ccy-switch {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
}
.ccy-opt {
  padding: 3px 10px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.ccy-opt:hover { color: var(--text); }
.ccy-opt[data-on] { background: var(--brand-grad); color: #fff; }
/* the currency a booking was actually sold in, when it differs from the view */
.ccy-native {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: var(--surface-2);
  vertical-align: 1px;
}

/* ============================================================
   WIDE TABLES MUST SCROLL, NOT ESCAPE
   A .tbl dropped straight into a .card pushed past the content
   area instead of scrolling. The fix is a real wrapper element
   (.tbl-wrap) rather than making the table display:block —
   block-level thead/tbody size independently and the header
   columns drift out of line with the body by hundreds of pixels.
   ============================================================ */
.tbl-wrap { width: 100%; overflow-x: auto; }

/* The geo shell's middle track was a bare 1fr, which floors at the column's
   min-content width — its table refused to shrink and pushed the right-hand
   aside past the content area. minmax(0, 1fr) lets it shrink and scroll. */
.geo-shell { grid-template-columns: 320px minmax(0, 1fr) 320px; }
.geo-shell > * { min-width: 0; }

@media (max-width: 1200px) {
  .geo-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .geo-shell > aside { grid-column: 1 / -1; }
}

/* Grid and flex items default to min-width:auto, which floors them at their
   content width — so a card holding a wide table refused to shrink and pushed
   its grid track past the page. Now that wide tables scroll inside .tbl-wrap,
   letting these shrink is safe. */
.card,
.settings-panel { min-width: 0; }

/* Settings rows: the `auto` control track sizes to its widest control (a 200px
   select plus padding), so on a narrow panel the row pushed past the card.
   Let the label track give way first, and let the control shrink. */
.setting-row { grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) auto; }
.setting-row > * { min-width: 0; }
.setting-row .s-control { min-width: 0; }
.setting-row .s-control select,
.setting-row .s-control input { max-width: 100%; }

@media (max-width: 1100px) {
  .setting-row { grid-template-columns: 1fr auto; }
  .setting-row .s-control:empty { display: none; }
}

/* Audit rows: the flexible track was a bare 1fr and floored at its min-content
   width, so the trailing columns spilled out of the card on a narrow viewport. */
.audit-row {
  grid-template-columns: 110px 24px minmax(0, 1fr) 180px 100px 80px;
}
.audit-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1100px) {
  .audit-row { grid-template-columns: 96px 20px minmax(0, 1fr) 100px; }
  .audit-row > *:nth-child(5),
  .audit-row > *:nth-child(6) { display: none; }
}

/* ===================================================================
   TICKET INVENTORY MODULE
   A small, self-contained set of classes in the module's own namespace.
   Everything else on these screens reuses the existing vocabulary
   (.page / .card / .tbl-wrap / .kpi / .gstat / .drawer / .tabs / .pill).
   =================================================================== */

/* Sidebar hue for the TICKETING group — sits between the brand's blue and
   violet stops, so it reads as part of the same family, not a bolt-on. */
.nav-group[data-hue="indigo"] { --g: #4F46E5; }

/* Full-width meter. .coverage-bar is a fixed 100px inline widget with its own
   track/fill children, so it can't do duty here. */
.tkt-bar {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--hover);
  overflow: hidden;
}
.tkt-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand-grad);
}

/* Six-bucket balance legend, shown under the stacked bar on batch detail. */
.tkt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 8px;
}
.tkt-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.tkt-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Expiry-monitor bucket selector — a row of clickable summary tiles. */
.tkt-buckets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.tkt-bucket {
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
  min-width: 0;
}
.tkt-bucket:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.tkt-bucket[data-active="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tkt-bucket[data-tone="danger"] { border-left: 3px solid var(--danger); }
.tkt-bucket[data-tone="warn"]   { border-left: 3px solid var(--warn); }
.tkt-bucket[data-tone="ok"]     { border-left: 3px solid var(--ok); }
.tkt-bucket-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); }
.tkt-bucket-value { font-family: var(--font-mono); font-size: 20px; font-weight: 600; margin-top: 4px; }
.tkt-bucket-sub   { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* Allocation preview — the split across batches, shown before commit. */
.tkt-alloc-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.tkt-alloc-line:last-child { border-bottom: 0; }

/* Filter toolbars in the ticket module carry 4–6 selects. `.input` is
   width:100% and `.tbl-toolbar` wraps, so every select would otherwise claim a
   row of its own. Scoped to this module so no existing toolbar shifts. */
.tbl-toolbar.tkt-filters .input {
  width: auto;
  max-width: 220px;
}

/* .kv-list-row is a three-column grid (1fr 80px 80px) built for the settings
   matrix. The ticket module uses plain label/value pairs, which were being
   crushed into that trailing 80px column. Two-column variant, same chrome. */
.kv-list.tkt-kv .kv-list-row {
  grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
  gap: 12px;
}
.kv-list.tkt-kv .kv-list-row > span:first-child { color: var(--text-muted); }
.kv-list.tkt-kv .kv-list-row > span:last-child  { text-align: right; overflow-wrap: anywhere; }

/* --- Create product modal -------------------------------------------------
   Same chrome as NewLeadModal (backdrop + .card), but the body scrolls inside
   a flex column so the header and the footer stay put — the form is long and
   nobody should have to scroll to the bottom to find Save. */
.tkt-modal-back {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(15, 17, 21, 0.6);
  backdrop-filter: blur(2px);
  display: grid; place-items: center;
  padding: var(--tkt-modal-gap, 32px) 16px;
}
.tkt-modal {
  width: 100%;
  max-width: 920px;
  /* Twice the backdrop's vertical padding — defined from the same variable so
     the two can never drift and push the modal off-screen. */
  max-height: calc(100vh - (var(--tkt-modal-gap, 32px) * 2));
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.tkt-modal > .card-head { flex-shrink: 0; }
.tkt-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 18px 20px;
}
.tkt-modal-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0 0 var(--radius-lg, 12px) var(--radius-lg, 12px);
}

/* Product-type chooser: two large cards, exactly one selected. */
.tkt-typegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tkt-typecard {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 14px 16px; border-radius: 10px; cursor: pointer; min-width: 0;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}
.tkt-typecard:hover { border-color: var(--text-faint); }
.tkt-typecard[data-on="true"] { border-color: var(--tone); box-shadow: 0 0 0 1px var(--tone); background: color-mix(in oklab, var(--tone) 6%, var(--surface)); }
.tkt-typecard-ico {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; background: var(--tone);
}
.tkt-typecard-ico svg { width: 17px; height: 17px; }
/* Both are <span>, so they must be told to stack — inline they ran together as
   "TicketAttraction admission…". */
.tkt-typecard-name { display: block; font-size: 14px; font-weight: 600; }
.tkt-typecard-sub  { display: block; font-size: 11.5px; color: var(--text-muted); line-height: 1.45; margin-top: 2px; }

/* Operational block, tinted by product type: violet for tickets, orange for
   excursions — matching the accent each type already carries elsewhere. */
.tkt-section {
  border: 1px solid color-mix(in oklab, var(--tone) 30%, var(--border));
  background: color-mix(in oklab, var(--tone) 5%, var(--surface));
  border-radius: 10px; padding: 14px 16px; margin-top: 16px;
}
.tkt-section-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--tone);
}
.tkt-section-head svg { width: 14px; height: 14px; }
.tkt-note {
  margin-top: 12px; padding: 9px 12px; border-radius: 8px; font-size: 11.5px; line-height: 1.5;
  background: color-mix(in oklab, var(--tone) 10%, transparent);
  color: var(--text-muted);
}

/* Field grid + inline validation. Errors sit under their own field, never in a
   toast, so the user can see which control is wrong. */
.tkt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tkt-grid .span2 { grid-column: span 2; }
.tkt-err { font-size: 11px; color: var(--danger); margin-top: 4px; line-height: 1.4; }
.tkt-hint { font-size: 11px; color: var(--text-faint); margin-top: 4px; line-height: 1.4; }
.field[data-invalid="true"] .input { border-color: var(--danger); }
.field[data-invalid="true"] .input:focus { box-shadow: 0 0 0 3px var(--danger-soft); }

/* Collapsible "Additional information". */
.tkt-collapse {
  margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.tkt-collapse-head {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: var(--surface-2); border: 0; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--text); text-align: left;
}
.tkt-collapse-head svg { width: 13px; height: 13px; color: var(--text-muted); }
.tkt-collapse-body { padding: 14px; border-top: 1px solid var(--border); }

/* Multi-select chips (guide languages, operating days). */
.tkt-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Setup checklist on the product detail header. */
.tkt-check { display: grid; gap: 8px; }
.tkt-check-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.tkt-check-dot {
  width: 17px; height: 17px; border-radius: 99px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 10px;
  border: 1px solid var(--border); color: var(--text-faint);
}
.tkt-check-row[data-done="true"] .tkt-check-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tkt-check-row[data-done="true"] .tkt-check-dot svg { width: 10px; height: 10px; }

/* Freshly created row, so the user can see where it landed. */
.tbl tbody tr[data-fresh="true"] td {
  background: color-mix(in oklab, var(--ok) 12%, transparent) !important;
  animation: tkt-fresh 2.4s ease-out 0.6s forwards;
}
@keyframes tkt-fresh { to { background: transparent !important; } }

@media (max-width: 780px) {
  .tkt-modal-back { --tkt-modal-gap: 12px; padding-left: 10px; padding-right: 10px; }
  .tkt-typegrid { grid-template-columns: minmax(0, 1fr); }
  .tkt-grid { grid-template-columns: minmax(0, 1fr); }
  .tkt-grid .span2 { grid-column: span 1; }
  .tkt-modal-body { padding: 14px; }
}
@media (max-height: 720px) {
  .tkt-modal-back { --tkt-modal-gap: 12px; }
}

/* ===================================================================
   DEALS & PROMOTIONS
   Scoped to this module. Everything else reuses the existing vocabulary
   (.page / .card / .tbl-wrap / .kpi / .gstat / .tabs / .pill / .drawer).
   =================================================================== */

/* Promotion cards — the default view on the landing page. */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px;
}
.promo-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  min-width: 0;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.promo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 10px 24px -18px rgb(0 0 0 / 0.4)); border-color: color-mix(in oklab, var(--accent) 40%, var(--border)); }
.promo-card-top {
  padding: 12px 14px;
  color: #fff;
  background: var(--promo-grad, var(--brand-grad));
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.promo-card-name { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.promo-card-code { font-family: var(--font-mono); font-size: 10.5px; opacity: 0.85; margin-top: 2px; }
.promo-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.promo-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: var(--text-muted); }
.promo-meta b { color: var(--text); font-weight: 600; }
.promo-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.promo-prod {
  font-size: 10.5px; padding: 2px 7px; border-radius: 99px;
  background: var(--hover); color: var(--text-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.promo-price {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.promo-price-was { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); text-decoration: line-through; }
.promo-price-now { font-family: var(--font-mono); font-size: 20px; font-weight: 700; }
.promo-save {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  background: var(--ok-soft); color: var(--ok); white-space: nowrap;
}
.promo-card-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 14px; border-top: 1px solid var(--border); background: var(--surface-2);
  font-size: 11px; color: var(--text-muted);
}

/* Health is its own axis, separate from status — a promotion can be ACTIVE
   and still not sellable, which is exactly what this surfaces. */
.promo-health {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px;
}
.promo-health svg { width: 11px; height: 11px; }
.promo-health[data-state="healthy"] { background: var(--ok-soft); color: var(--ok); }
.promo-health[data-state="warning"] { background: var(--warn-soft); color: var(--warn); }
.promo-health[data-state="blocked"] { background: var(--danger-soft); color: var(--danger); }

/* Itinerary builder — one column per day. */
.itin-days { display: grid; gap: 12px; }
.itin-day { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.itin-day-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.itin-day-head .spacer { flex: 1; }
.itin-slot {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  gap: 10px; align-items: center;
  padding: 10px 13px; border-bottom: 1px solid var(--border);
}
.itin-slot:last-child { border-bottom: 0; }
.itin-seq {
  width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700;
}
.itin-empty { padding: 16px 13px; font-size: 12px; color: var(--text-faint); text-align: center; }

/* Component card in the product step. */
.promo-comp {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.promo-comp + .promo-comp { margin-top: 8px; }
.promo-comp-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.promo-comp-ico svg { width: 16px; height: 16px; }
.promo-comp-grid { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }
.promo-comp-grid b { color: var(--text); font-weight: 600; }

/* Pricing summary strip. */
.promo-sum {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.promo-sum > div { background: var(--surface); padding: 11px 13px; min-width: 0; }
.promo-sum-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.promo-sum-value { font-family: var(--font-mono); font-size: 17px; font-weight: 600; margin-top: 3px; }

/* Wizard rail, matching the booking/quotation wizard chrome. */
.promo-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.promo-step {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 99px; border: 1px solid var(--border);
  background: var(--surface); font-size: 12px; color: var(--text-muted); cursor: pointer;
}
.promo-step[data-on="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.promo-step[data-done="true"] { color: var(--text); }
.promo-step-num {
  width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center;
  background: var(--hover); font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.promo-step[data-on="true"] .promo-step-num { background: var(--accent); color: var(--accent-fg, #fff); }
.promo-step[data-done="true"] .promo-step-num { background: var(--ok); color: #fff; }
.promo-step-num svg { width: 10px; height: 10px; }

/* Agent-facing preview — deliberately plainer than the ops screens. */
.promo-preview {
  max-width: 420px; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg);
}
.promo-preview-top { padding: 18px; color: #fff; background: var(--promo-grad, var(--brand-grad)); }
.promo-preview-body { padding: 16px 18px; }

@media (max-width: 860px) {
  .promo-grid { grid-template-columns: minmax(0, 1fr); }
  .promo-comp { grid-template-columns: minmax(0, 1fr); }
  .itin-slot { grid-template-columns: 30px minmax(0, 1fr); }
}

/* Any icon dropped into the promotion card meta row needs an explicit size —
   a bare sprite svg has no intrinsic dimensions and blows the row open. */
.promo-meta svg { width: 12px; height: 12px; flex-shrink: 0; vertical-align: -1px; }
.promo-card-foot svg { width: 11px; height: 11px; flex-shrink: 0; }

/* ===================================================================
   NEW LEAD — three-column capture shell
   Rail (progress + jump) · form · live summary. One scrolling form, so
   nothing is hidden behind a Next button; the rail and summary are what
   make it navigable. Scoped to this form.
   =================================================================== */
.lead-shell {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr) 268px;
  gap: 20px;
  align-items: start;
}
.lead-rail, .lead-summary { position: sticky; top: 16px; align-self: start; }

.lead-rail-progress {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 13px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); margin-bottom: 10px;
}
.lead-ring { width: 34px; height: 34px; flex-shrink: 0; transform: rotate(-90deg); }
.lead-ring circle { fill: none; stroke-width: 3.5; }
.lead-ring .bg { stroke: var(--border); }
.lead-ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray 0.3s ease; }
.lead-rail-count { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.lead-rail-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.lead-rail-nav { display: grid; gap: 2px; }
.lead-rail-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 9px 11px; border: 0; border-radius: 8px; background: transparent;
  cursor: pointer; font-size: 12.5px; color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
}
.lead-rail-item:hover { background: var(--hover); color: var(--text); }
.lead-rail-item[data-on="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lead-rail-dot {
  width: 18px; height: 18px; border-radius: 99px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
  border: 1.5px solid var(--border); color: var(--text-faint); background: var(--surface);
}
.lead-rail-dot svg { width: 10px; height: 10px; }
.lead-rail-item[data-done="true"] .lead-rail-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.lead-rail-item[data-on="true"] .lead-rail-dot { border-color: var(--accent); color: var(--accent); }
.lead-rail-item[data-on="true"][data-done="true"] .lead-rail-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.lead-rail-label { flex: 1; min-width: 0; }
.lead-rail-meta { font-size: 10.5px; color: var(--text-faint); font-weight: 500; }

/* Collapsible section block. */
.lead-block {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  margin-bottom: 12px; overflow: hidden; scroll-margin-top: 72px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lead-block[data-on="true"] { border-color: color-mix(in oklab, var(--accent) 45%, var(--border)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent); }
.lead-block-head {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; border: 0; background: transparent; cursor: pointer;
}
.lead-block-num {
  width: 26px; height: 26px; border-radius: 99px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: var(--hover); color: var(--text-muted);
}
.lead-block-num svg { width: 12px; height: 12px; }
.lead-block[data-done="true"] .lead-block-num { background: var(--ok); color: #fff; }
.lead-block-title { font-size: 14.5px; font-weight: 700; }
.lead-block-desc { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
.lead-block-chev { width: 15px; height: 15px; color: var(--text-faint); flex-shrink: 0; transition: transform 0.18s; }
.lead-block[data-open="false"] .lead-block-chev { transform: rotate(-90deg); }
.lead-block-body { padding: 2px 16px 18px; border-top: 1px solid var(--border); }
.lead-block-peek {
  padding: 0 16px 14px; font-size: 11.5px; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 5px 8px;
}
.lead-block-peek b { color: var(--text); font-weight: 600; }

/* Live summary. */
.lead-sum-card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.lead-sum-head {
  padding: 11px 14px; background: var(--brand-grad); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.lead-sum-body { padding: 12px 14px; display: grid; gap: 12px; }
.lead-sum-row { display: grid; gap: 3px; }
.lead-sum-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.lead-sum-value { font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
/* NOT ".empty" — that is the app's full-page empty-state class and carries
   padding: 60px 20px, which was silently inflating every summary row. */
.lead-sum-value.is-blank { color: var(--text-faint); font-style: italic; }
.lead-sum-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.lead-sum-chip { font-size: 10.5px; padding: 2px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.lead-sum-foot { padding: 11px 14px; border-top: 1px solid var(--border); background: var(--surface-2); }

@media (max-width: 1240px) {
  .lead-shell { grid-template-columns: 176px minmax(0, 1fr); }
  .lead-summary { grid-column: 1 / -1; position: static; }
  .lead-sum-body { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 900px) {
  .lead-shell { grid-template-columns: minmax(0, 1fr); }
  .lead-rail { position: static; }
  .lead-rail-nav { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; overflow-x: auto; }
  .lead-rail-item { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* ---- Lead capture: destinations + dynamic service blocks ---------------- */
.lead-dest-empty {
  padding: 16px 18px; border: 1px dashed var(--border); border-radius: 10px;
  font-size: 12.5px; color: var(--text-muted); line-height: 1.55; background: var(--surface-2);
}
.lead-dest-row {
  display: grid;
  grid-template-columns: 26px minmax(120px, 1fr) 150px 150px 110px 30px;
  gap: 12px; align-items: end;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.lead-dest-seq {
  width: 22px; height: 22px; border-radius: 99px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
}
.lead-dest-city { font-size: 13.5px; font-weight: 700; }
.lead-dest-sub { font-size: 11px; color: var(--text-faint); margin-top: 1px; }

/* One block per selected service. */
.lead-svc { border: 1px solid var(--border); border-radius: 11px; background: var(--surface); overflow: hidden; }
.lead-svc-head {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.lead-svc-ico {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.lead-svc-ico svg { width: 14px; height: 14px; }
.lead-svc-title { font-size: 13.5px; font-weight: 700; display: block; }
.lead-svc-sub { font-size: 11.5px; color: var(--text-muted); display: block; margin-top: 1px; line-height: 1.4; }
.lead-svc-body { padding: 14px; }
.lead-svc-leg { border: 1px solid var(--border); border-radius: 10px; padding: 13px; background: var(--surface-2); }
.lead-svc-leg-head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 11px;
  font-size: 13px; font-weight: 700;
}

/* A captured requirement line — fixed track so every service block aligns. */
.lead-line {
  display: grid;
  grid-template-columns: minmax(140px, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 100px auto 30px;
  gap: 10px; align-items: end;
  padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface);
}
.lead-line .field label { font-size: 10.5px; }
.lead-line-name { font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.lead-line-sub { font-size: 11px; color: var(--text-faint); margin-top: 1px; }

/* Catalogue picker inside a service block. */
.lead-pick { border: 1px solid var(--border); border-radius: 10px; padding: 11px; background: var(--surface-2); }
.lead-pick-list { max-height: 260px; overflow-y: auto; display: grid; gap: 4px; }
.lead-pick-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); cursor: pointer; transition: border-color 0.12s, background 0.12s;
}
.lead-pick-item:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.lead-pick-item:disabled { opacity: 0.5; cursor: not-allowed; }
.lead-pick-ico { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; color: #fff; }
.lead-pick-ico svg { width: 13px; height: 13px; }

@media (max-width: 1100px) {
  .lead-dest-row { grid-template-columns: 26px minmax(0, 1fr) 30px; }
  .lead-dest-row .field { grid-column: 2 / 3; }
  .lead-line { grid-template-columns: minmax(0, 1fr) 30px; }
  .lead-line .field { grid-column: 1 / 2; }
}

/* ---- Destination card: dates, its own services, its own detail ----------
   Each card is tinted with its city's own colour (--dest, set inline from
   destHue) so Dubai and Abu Dhabi are told apart at a glance rather than by
   reading the label. */
.lead-destcard {
  border: 1px solid var(--border);
  border-left: 4px solid var(--dest, var(--accent));
  border-radius: 12px; background: var(--surface); overflow: hidden;
}
.lead-destcard[data-open="true"] { border-color: color-mix(in oklab, var(--dest, var(--accent)) 35%, var(--border)); border-left-color: var(--dest, var(--accent)); }
.lead-destcard-head {
  display: grid;
  grid-template-columns: 26px minmax(120px, 1fr) 150px 150px 110px 30px 30px;
  gap: 12px;
  /* Centre by default so the badge stays level with the city name when the
     subtitle wraps; only the date fields align to their inputs. */
  align-items: center;
  padding: 13px 14px; border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--dest, var(--accent)) 9%, var(--surface));
}
.lead-destcard-head > .field { align-self: end; }
/* The badge belongs beside the CITY NAME, not the centre of a name block that
   grows a second line once the subtitle wraps. */
.lead-destcard-head > .lead-dest-seq { align-self: start; margin-top: 2px; }
.lead-destcard .lead-dest-seq { background: var(--dest, var(--accent)); color: #fff; }
.lead-destcard .lead-dest-city {
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--dest, var(--text));
}
.lead-destcard .lead-dest-sub { color: color-mix(in oklab, var(--dest, var(--text-muted)) 55%, var(--text-muted)); }
/* Service chips inside a card pick up the city colour when switched on. */
.lead-destcard .lead-svc-ico {
  background: color-mix(in oklab, var(--dest, var(--accent)) 16%, transparent);
  color: var(--dest, var(--accent));
}
.lead-destcard .lead-svc-head { background: color-mix(in oklab, var(--dest, var(--accent)) 5%, var(--surface-2)); }

/* Popular-city chip takes the destination colour once it is selected. */
.lead-dest-chip[data-active="true"] {
  border-color: var(--dest);
  background: color-mix(in oklab, var(--dest) 13%, transparent);
  color: var(--dest);
  font-weight: 600;
}
.lead-destcard[data-open="false"] .lead-destcard-head { border-bottom: 0; }
.lead-destcard-chev { display: block; width: 15px; height: 15px; transition: transform 0.18s; }
.lead-destcard[data-open="false"] .lead-destcard-chev { transform: rotate(-90deg); }
.lead-destcard-body { padding: 14px; }

@media (max-width: 1100px) {
  .lead-destcard-head { grid-template-columns: 26px minmax(0, 1fr) 30px 30px; }
  .lead-destcard-head .field { grid-column: 2 / 3; }
}

/* ==========================================================================
   NEW LEAD — GUIDED WIZARD (.lwz-*)
   The second capture approach. One step at a time, so the body gets the full
   card width instead of sharing it with a rail and a summary column.
   ========================================================================== */

/* --- layout switch in the card head --- */
.lwz-modes {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface-2);
}
.lwz-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.lwz-mode svg, .lwz-mode > span:first-child { width: 13px; height: 13px; }
.lwz-mode:hover { color: var(--text); }
.lwz-mode[data-on="true"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow);
}

/* --- horizontal step rail --- */
.lwz-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  overflow-x: auto;
}
.lwz-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.lwz-step:hover { background: var(--hover); }
.lwz-step[data-on="true"] {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
/* connector between the dots, drawn behind them */
.lwz-step + .lwz-step::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--border);
}
.lwz-step[data-past="true"]::before, .lwz-step[data-on="true"]::before { background: var(--accent); }
.lwz-step-dot {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.lwz-step-dot svg, .lwz-step-dot > span { width: 12px; height: 12px; }
.lwz-step[data-on="true"] .lwz-step-dot { background: var(--accent); color: var(--accent-fg); }
.lwz-step[data-done="true"] .lwz-step-dot { background: var(--ok); color: #fff; }
.lwz-step-txt { min-width: 0; }
.lwz-step-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lwz-step[data-on="true"] .lwz-step-label { color: var(--accent); }
.lwz-step-meta {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- step body --- */
.lwz-body { padding: 20px 22px 24px; min-height: 340px; }
.lwz-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.lwz-head-ico {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
}
.lwz-head-ico svg, .lwz-head-ico > span { width: 16px; height: 16px; }
.lwz-head-title { font-size: 15.5px; font-weight: 700; color: var(--text); }
.lwz-head-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.lwz-head-count {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  padding-top: 6px;
}
.lwz-grid { display: grid; gap: 16px; }

/* --- review step --- */
.lwz-review {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: start;
}
.lwz-rev {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  overflow: hidden;
}
.lwz-rev[data-wide="true"] { grid-column: 1 / -1; }
.lwz-rev[data-blank="true"] { border-style: dashed; }
.lwz-rev-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.lwz-rev-title {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lwz-rev-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.lwz-rev-edit:hover { background: var(--accent-soft); }
.lwz-rev-edit svg, .lwz-rev-edit > span { width: 11px; height: 11px; }
.lwz-rev-body { padding: 11px 12px 13px; font-size: 13px; color: var(--text); }
.lwz-rev[data-blank="true"] .lwz-rev-body { color: var(--text-faint); }
.lwz-rev-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.lwz-rev-dests { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.lwz-rev-dests > * { min-width: 150px; }

/* --- footer --- */
.lwz-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  position: sticky;
  bottom: 0;
  z-index: 5;
}
.lwz-foot > .btn { flex-shrink: 0; }
.lwz-foot-mid { flex: 1; min-width: 0; }
.lwz-prog {
  height: 4px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.lwz-prog > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.22s ease;
}
.lwz-foot-txt {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
}

/* --- destination card, wizard variants --- */
/* trip step: no collapse chevron, so the dates take the room the body would use */
.lead-destcard-head[data-mode="trip"] {
  grid-template-columns: 26px minmax(120px, 1fr) 1fr 1fr 130px 30px;
}
/* services step: dates already captured, so the header is a label strip only */
.lead-destcard-head[data-mode="services"] {
  grid-template-columns: 26px minmax(120px, 1fr) 30px;
}
/* Narrow: the base rule stacks the date fields into column 2, so both wizard
   modes need the same 3-column frame or the trailing button is left stranded
   in a collapsed track. */
@media (max-width: 1100px) {
  .lead-destcard-head[data-mode="trip"],
  .lead-destcard-head[data-mode="services"] { grid-template-columns: 26px minmax(0, 1fr) 30px; }
}

@media (max-width: 1180px) {
  .lwz-step-meta { display: none; }
}
@media (max-width: 900px) {
  .lwz-rail { grid-auto-flow: row; grid-auto-columns: auto; }
  .lwz-step + .lwz-step::before { display: none; }
  .lwz-step-meta { display: block; }
  .lwz-foot { flex-wrap: wrap; }
}

/* --- Enquiry type (FIT / MICE) ------------------------------------------- */
/* FIT and MICE each own a tone. Colour lives here rather than in the data so
   the dark theme can swap it — the light-mode hexes are far too dark to read as
   10px badge text on a near-black row. */
.lead-typecard[data-type="fit"],  .lead-typebadge[data-type="fit"]  { --tone: #2563EB; }
.lead-typecard[data-type="mice"], .lead-typebadge[data-type="mice"] { --tone: #8B3DE8; }
[data-theme="dark"] .lead-typecard[data-type="fit"],
[data-theme="dark"] .lead-typebadge[data-type="fit"]  { --tone: #7CA9FF; }
[data-theme="dark"] .lead-typecard[data-type="mice"],
[data-theme="dark"] .lead-typebadge[data-type="mice"] { --tone: #C79BFF; }

.lead-typebadge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px solid color-mix(in oklab, var(--tone) 40%, transparent);
  background: color-mix(in oklab, var(--tone) 12%, transparent);
  color: var(--tone);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  font-family: var(--font-mono);
  line-height: 1.7;
  white-space: nowrap;
}

/* ==========================================================================
   QUOTATION ENGINE — FIT / MICE
   Extends the existing wizard language (.wizard-shell / .step / .card); nothing
   here restyles those. New chrome only: the type fork, the persistent header,
   the MICE brief sections and the scenario ladder.
   ========================================================================== */

/* --- FIT vs MICE tones. One pair, defined once, used by every marker. --- */
.qtype-card[data-type="FIT"],  .qtype-badge[data-type="FIT"],  .qhdr[data-type="FIT"]  { --qt: #0F7C8A; }
.qtype-card[data-type="MICE"], .qtype-badge[data-type="MICE"], .qhdr[data-type="MICE"] { --qt: #8B3DE8; }
[data-theme="dark"] .qtype-card[data-type="FIT"],
[data-theme="dark"] .qtype-badge[data-type="FIT"],
[data-theme="dark"] .qhdr[data-type="FIT"]  { --qt: #5FD3E0; }
[data-theme="dark"] .qtype-card[data-type="MICE"],
[data-theme="dark"] .qtype-badge[data-type="MICE"],
[data-theme="dark"] .qhdr[data-type="MICE"] { --qt: #C79BFF; }

.qtype-badge {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: 1px 7px; border-radius: 5px;
  border: 1px solid color-mix(in oklab, var(--qt) 40%, transparent);
  background: color-mix(in oklab, var(--qt) 12%, transparent);
  color: var(--qt); font-size: 10px; font-weight: 800; letter-spacing: 0.045em;
  font-family: var(--font-mono); line-height: 1.7; white-space: nowrap;
}

/* --- §2 the fork --- */
.qtype-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.qtype-card {
  display: flex; flex-direction: column; gap: 12px; text-align: left; min-width: 0;
  padding: 18px 20px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-family: inherit;
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}
.qtype-card:hover { border-color: var(--text-faint); }
.qtype-card[data-on="true"] {
  border-color: var(--qt); box-shadow: 0 0 0 1px var(--qt);
  background: color-mix(in oklab, var(--qt) 5%, var(--surface));
}
.qtype-head { display: flex; align-items: flex-start; gap: 13px; }
.qtype-ico {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; background: var(--qt);
}
.qtype-ico svg, .qtype-ico > span { width: 21px; height: 21px; }
.qtype-name { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.qtype-full { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 1px; }
.qtype-tick { width: 18px; height: 18px; margin-left: auto; color: var(--qt); flex-shrink: 0; }
.qtype-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.qtype-egs { display: flex; flex-wrap: wrap; gap: 5px; }
.qtype-eg {
  font-size: 11px; padding: 2px 8px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
}
.qtype-card[data-on="true"] .qtype-eg {
  background: color-mix(in oklab, var(--qt) 10%, transparent);
  border-color: color-mix(in oklab, var(--qt) 25%, transparent); color: var(--qt);
}
.qtype-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  font-size: 13px; font-weight: 600; color: var(--qt);
}

/* --- §3 persistent quotation header --- */
.qhdr {
  border: 1px solid var(--border); border-top: 3px solid var(--qt);
  border-radius: var(--radius-md); background: var(--surface);
  margin-bottom: 16px; overflow: hidden;
}
.qhdr-main {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--qt) 5%, var(--surface));
}
.qhdr-ref { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.qhdr-saved {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
  font-size: 11.5px; color: var(--text-faint); white-space: nowrap;
}
.qhdr-saved[data-on="true"] { color: var(--ok); }
.qhdr-issues {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
}
.qhdr-issues[data-level="warn"]  { background: var(--warn-soft); color: var(--warn); }
.qhdr-issues[data-level="error"] { background: var(--danger-soft); color: var(--danger); }
.qhdr-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 1px; background: var(--border);
}
.qhdr-cell { padding: 9px 16px 11px; background: var(--surface); min-width: 0; }
.qhdr-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 3px;
}
.qhdr-value {
  font-size: 12.5px; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* --- sidebar step warnings (§47) --- */
.step-warn {
  display: flex; align-items: flex-start; gap: 4px; margin-top: 4px;
  font-size: 10.5px; line-height: 1.35;
}
.step-warn[data-level="warn"]  { color: var(--warn); }
.step-warn[data-level="error"] { color: var(--danger); }

/* --- MICE brief sections --- */
.qsec { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px 18px; background: var(--surface); }
.qsec-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.qtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }

/* --- §8 delegate counts --- */
.qpax-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.qpax {
  position: relative; border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px 12px; background: var(--surface-2);
}
.qpax[data-on="true"] {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.qpax-label { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.qpax-input { width: 100%; font-size: 16px; font-weight: 700; }
.qpax-tag { font-size: 10px; font-weight: 700; color: var(--accent); margin-top: 5px; }

/* --- §29 scenario ladder --- */
.qscen { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.qscen-cell {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 11px 13px; border-radius: 10px; cursor: pointer; font-family: inherit;
  border: 1px solid var(--border); background: var(--surface-2);
  transition: border-color 0.12s, background 0.12s;
}
.qscen-cell:hover { border-color: var(--text-faint); }
.qscen-cell[data-on="true"] {
  border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent);
}
.qscen-pax { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.qscen-cell[data-on="true"] .qscen-pax { color: var(--accent); }
.qscen-total { font-size: 15px; font-weight: 700; color: var(--text); }
.qscen-pp { font-size: 11.5px; color: var(--text-muted); }
.qscen-margin { font-size: 10.5px; font-weight: 600; color: var(--ok); margin-top: 2px; }
.qscen-margin[data-low="true"] { color: var(--danger); }

@media (max-width: 900px) {
  .qhdr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- rate source engine (§10–17) --- */
.qsrc { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.qsrc-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px;
  border: 0; border-radius: 6px; background: transparent; color: var(--text-muted);
  font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.qsrc-btn:hover { color: var(--text); background: var(--hover); }
.qsrc-btn[data-on="true"] { background: var(--surface); color: var(--src); box-shadow: var(--shadow); }
.qsrc-ico { width: 12px; height: 12px; display: inline-block; flex-shrink: 0; }
.qsrc[data-compact="true"] .qsrc-btn { padding: 3px 7px; font-size: 11px; }
.qsrc-stamp {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600;
  border: 1px solid color-mix(in oklab, var(--src) 32%, transparent);
  background: color-mix(in oklab, var(--src) 10%, transparent); color: var(--src);
}
.qsrc-valid { font-style: normal; font-weight: 500; opacity: 0.75; margin-left: 2px; }
.qsrc-valid[data-expired="true"] { color: var(--danger); opacity: 1; font-weight: 700; }

/* --- vendor drawer (§13) --- */
.qvend-list { display: grid; gap: 10px; }
.qvend { border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px; background: var(--surface); }
.qvend[data-preferred] { border-color: color-mix(in oklab, var(--ok) 40%, var(--border)); }
.qvend-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.qvend-name { font-size: 14px; font-weight: 700; }
.qvend-type { font-size: 11.5px; color: var(--text-muted); margin-left: auto; }
.qvend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 14px; margin-bottom: 11px; }
.qvend-grid > span { font-size: 12px; min-width: 0; }
.qvend-grid em {
  display: block; font-style: normal; font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1px;
}
.qvend-wrap { word-break: break-all; }
.qvend-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.qvend-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.qvend-quote {
  display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 9px 12px;
  border: 1px solid var(--ok); border-radius: 9px; background: var(--ok-soft);
  font-family: inherit; cursor: pointer;
}
.qvend-quote-name { font-size: 12.5px; font-weight: 600; }
.qvend-quote-rate { font-size: 14px; font-weight: 700; }
.qvend-quote-meta { font-size: 11px; color: var(--text-muted); }

/* --- RFQ brief (§15) --- */
.qrfq-brief { border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); padding: 4px 12px; }
.qrfq-row { display: flex; gap: 12px; padding: 6px 0; font-size: 12.5px; border-bottom: 1px solid var(--border); }
.qrfq-row:last-child { border-bottom: 0; }
.qrfq-row > span { width: 120px; flex-shrink: 0; color: var(--text-muted); }
.qrfq-row > strong { min-width: 0; word-break: break-word; }

/* --- component lines --- */
.qline { border: 1px solid var(--border); border-radius: 11px; background: var(--surface); overflow: hidden; }
.qline[data-priced="true"] { border-color: color-mix(in oklab, var(--accent) 32%, var(--border)); }
.qline-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.qline-title { flex: 1; min-width: 0; font-weight: 600; }
.qline-sell { font-size: 15px; font-weight: 700; white-space: nowrap; }
.qline-body { padding: 14px; display: grid; gap: 14px; }
.qline-rate { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.4fr); gap: 16px; align-items: start; }
.qline-rate-right { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.qline-wait { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11.5px; color: var(--warn); }
.qline-wait svg, .qline-wait > span { width: 12px; height: 12px; }
.qline-cost {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px 14px;
  padding: 10px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border);
}
.qline-cost > span { min-width: 0; }
.qline-cost em {
  display: block; font-style: normal; font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px;
}
.qline-cost b { font-size: 13px; }
.qline-cost b[data-low="true"] { color: var(--danger); }

/* loading skeleton for a rate search (§46) */
.qskel {
  height: 46px; border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--hover) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: qskel 1.3s ease infinite;
}
@keyframes qskel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 1100px) { .qline-rate { grid-template-columns: minmax(0, 1fr); } }

/* --- component picker (§9) --- */
.qcomp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 9px; }
.qcomp {
  display: flex; gap: 10px; align-items: flex-start; text-align: left; min-width: 0;
  padding: 11px 13px; border-radius: 10px; cursor: pointer; font-family: inherit;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.12s, background 0.12s;
}
.qcomp:hover { border-color: var(--text-faint); }
.qcomp[data-on] { border-color: var(--accent); background: var(--accent-soft); }
.qcomp-ico { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; color: var(--text-muted); }
.qcomp[data-on] .qcomp-ico { color: var(--accent); }
.qcomp-name { display: block; font-size: 13px; font-weight: 600; }
.qcomp[data-on] .qcomp-name { color: var(--accent); }
.qcomp-desc { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
.qcomp-srcs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.qcomp-srcs em {
  font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: 0.03em;
  padding: 1px 5px; border-radius: 4px;
  color: var(--src); background: color-mix(in oklab, var(--src) 12%, transparent);
}
.qcomp-tick { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--border-strong, var(--border)); }
.qcomp[data-on] .qcomp-tick { color: var(--accent); }

/* --- MICE costing headline (§29/§30) --- */
.qcost-heads { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 9px; margin-top: 14px; }
.qcost-head { border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; background: var(--surface-2); }
.qcost-head[data-accent="true"] { border-color: var(--accent); background: var(--accent-soft); }
.qcost-head em {
  display: block; font-style: normal; font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 3px;
}
.qcost-head b { font-size: 16px; }
.qcost-head b[data-low="true"] { color: var(--danger); }
.qcost-head[data-accent="true"] em { color: var(--accent); }
.qappr { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border: 1px solid var(--warn); border-radius: 9px; background: var(--warn-soft); font-size: 13px; }
.qappr[data-done] { border-color: var(--ok); background: var(--ok-soft); }
.qsum-fab-pp { font-size: 11px; color: var(--text-muted); }

/* =====================================================   CONNEXA LOGO (official artwork, assets/brand/)
   Two wordmarks are rendered; the theme picks one.
   ============================================================ */
.cx-logo { display: inline-flex; align-items: center; line-height: 0; }
.cx-logo img { width: auto; display: block; }
.cx-logo .cx-logo-ondark { display: none; }
[data-theme="dark"] .cx-logo .cx-logo-ondark { display: block; }
[data-theme="dark"] .cx-logo .cx-logo-onlight { display: none; }

/* App watermark: the real X mark instead of the earlier hand-drawn glyph. */
/* Embedded (assets/brand/connexa-mark.png): page CSS is inlined in the multi-page build and a
   separate file in dist/, so a relative path cannot be right for both. */
.main::before { background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADjCAYAAADAM1trAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAARGVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAADIoAMABAAAAAEAAADjAAAAAC1KI4AAAAHMaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2LjAuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RG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Nq0K0yPxLh4wTMdI2vA5LewmySSNz2l54An4IML+RYUhV0zf0WhrN5b0ONcTJ1aHX+oe6i+7BT9etbGwEI3nH/qVcWIOhDNxKRoNH6Pxm7aWytiVTXEbIx3DAya8AuMShiNNNY3xNPCNCp/lSX4y4o68oroNeXwOSuCDezat7C/+YOhx148BV39bgDYOg5H5FGde2MCRsKQDJbjyN3y5y6l/uadXxPk4kz48DONCKfhtX+RE/oHDioPX3z76endLf90bg9XSbdqDMKOuRw6csfvm8jZUresR7nChH2iIbAMDBWEbOPYgnHahMtneZVjTbGoFArJxekYepP80B0e1quZw/KPLbrpvqPTCgcOSQfMeMuKL5/CLbISzNNg9DMae07LXc3mVaZVYNdDlrZtP+y5amAy3Cg5KvCUPYiqiJ8G/HlyyemPhNPEk8B70IPQoKFHDxbRMz3Lz1lLwIPQaALLQLWyehFd4mqExV/77ve7If7W68usTSALn710MC/n64r7kD+gh8NsEOuviqlw8BzCCB1U1HHkRzKP4hEXsYZAbngOmiN3QHfeVb8OdxLe7rQvubVWabQHEKnmxG35uySXnrd2ULBeAABxAbdnCaQSSGBAEDoGi4LApmLtxxB36+IMu38o1+T5hr+c99CerBwofGzpQNeWC4QSAEBD84CpLDgEQAMEpl/8bhcXzk8Fb7ip/yv1i4EvtynJSALFKX+j2vwzGfs66zcly8SDyZ+MKFIBfQENPoiAB3a9BPEh+Abz8r23u8BusvPyaS8DRmxwqvWjj8p4L7t1bXhV7DfMUskbxHiUDSZLetyfdjYdZv+iKpX92P6z/nFUzUu4IQKyil7jB4w+65DTg/KkAw3HH/l5hAb2JBwmnW/Qa27BcuQtTqd+U3cjPb3X5K7Imv/xaRwLv2bvRjZWfiWnUH2DatfpJhyUnGkh43bM3vQVpAIW7xY2Wf+SuPfLWOiXl5FwCuQRyCeQSyCWQSyCXQC6BXAK5BHIJ5BLIJZBLIJdALoFcArkEcgnkEnhiSeD/ASkk82ID2QVEAAAAAElFTkSuQmCC") no-repeat center / contain; }

/* Field Sales console: two-column layouts collapse on narrow screens */
@media (max-width: 960px) { .fs-grid { grid-template-columns: 1fr !important; } }
=======

/* === ERP ADDITIONS — synced from connexa-erp apps/web/app/globals.css (2026-11-19). These are rules the ERP added on top of the prototype; kept here so the prototype renders the same screens. === */
/* ====================================================================== */

/* 4-digit PIN boxes — same box size as the 6-digit code row, so the PIN
   screens line up with the prototype's code screen. */
.otp-boxes[data-len="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: calc((100% - 40px) * 4 / 6 + 24px);
}
.otp-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 2px; }

/* The PIN boxes are type="password" inputs. Edge/IE paint their own native
   reveal (eye) and clear buttons inside a password input that is focused and
   non-empty, so the eye showed on whichever PIN box had focus and on none of
   the others. The sign-in password field already has its own eye button, which
   the native one doubled. Hide the native controls so the only eye is ours. */
.otp-box::-ms-reveal,
.otp-box::-ms-clear,
.login-field input[type="password"]::-ms-reveal,
.login-field input[type="password"]::-ms-clear {
  display: none;
}
/* Safari/Chrome's credential-autofill key button, for the same reason. */
.otp-box::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}

/* Centred modal overlay — the inline overlay style the prototype's
   GeoNodeModal / CreateSupplierModal / AddProfileModal / AddHotelModal share
   (prototype/src/screens/geo.jsx, suppliers.jsx, supplier-detail.jsx), as a
   class so components don't carry a hard-coded colour. */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.6);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: start center;
  padding: 60px 16px 40px;
  overflow-y: auto;
  z-index: 100;
}

/* Loading placeholder for numbers fetched after the page renders (geography
   linkage tiles) — keeps the tile's height while the value is on its way. */
.loading-dim { opacity: 0.45; }

/* Pager under a paginated table — sits where the prototype's tables end. */
.tbl-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* Disabled buttons — the prototype has no disabled look for .btn, so an
   action waiting on required input (Create supplier, Import, Save) read as
   clickable. Same treatment as .login-submit:disabled. */
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Geography master at laptop widths — the prototype drops the geo shell to
   two columns only below a 1200px VIEWPORT, which ignores the 232px sidebar:
   between ~1200 and ~1380px the middle column was left ~330px wide and the
   selected node's buttons slid under the right rail. Two columns (tree +
   detail, connections below) until there is room for three; at 1440px and
   above the layout is the prototype's. Long names wrap the card head instead
   of pushing its buttons out. */
@media (max-width: 1380px) {
  .geo-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .geo-shell > aside { grid-column: 1 / -1; }
}
.geo-shell .card-head { flex-wrap: wrap; row-gap: 8px; }

/* ============================================================
   SETTINGS -> USERS TABLE
   The action column stays pinned to the right edge so the row
   menu is always reachable when the table scrolls sideways, and
   every icon in the table, its menu and the invite/edit cards
   shares one size.
   ============================================================ */
.users-table th.users-actions,
.users-table td.users-actions {
  position: sticky;
  right: 0;
  width: 52px;
  min-width: 52px;
  padding-left: 6px;
  padding-right: 10px;
  text-align: right;
  background: var(--surface);
  z-index: 1;
}
.users-table thead th.users-actions { background: var(--surface-2); }
.users-table tbody tr:nth-child(even) td.users-actions {
  background: color-mix(in oklab, var(--text) 3.5%, var(--surface));
}
.users-table tbody tr:hover td.users-actions { background: var(--hover); }
.users-table .icon-btn { width: 28px; height: 28px; flex: none; }
.users-table .icon-btn svg { width: 16px; height: 16px; stroke-width: 1.75; }

.menu.user-menu { z-index: 200; min-width: 180px; }
.menu.user-menu .menu-item { line-height: 1.2; }
.menu.user-menu .menu-item svg {
  width: 14px;
  height: 14px;
  flex: none;
  stroke-width: 2;
}
.search-inline > span:first-child { display: grid; place-items: center; flex: none; }
.search-inline > span:first-child svg { width: 100%; height: auto; }

/* Impersonation (Settings → Users → "Login as user") — the banner above the
   topbar on every screen while an administrator acts as another user, and the
   tag on audit rows recorded from such a session. Warn tokens only, so it
   follows light / dark and the accent the user picked. */
.imp-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  background: var(--warn-soft);
  border-bottom: 1px solid var(--warn);
  font-size: 12.5px;
  color: var(--text);
  flex-shrink: 0;
}
.imp-banner-icon { display: grid; place-items: center; color: var(--warn); flex: none; }
.imp-banner-icon svg { width: 16px; height: 16px; stroke-width: 2; }
.imp-banner-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.imp-banner-name { font-weight: 600; }
.imp-banner-role {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.imp-banner-chip {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  background: var(--warn);
  color: var(--surface);
}
.imp-banner-note { color: var(--text-muted); }
.imp-banner-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.imp-banner-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--warn);
  border: 1px solid var(--warn);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}
.imp-banner-timer svg { width: 12px; height: 12px; stroke-width: 2; }
.imp-banner .btn { background: var(--surface); }
@media (max-width: 720px) {
  .imp-banner { flex-wrap: wrap; padding: 8px 12px; }
  .imp-banner-actions { margin-left: 0; width: 100%; justify-content: space-between; }
}
.imp-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid var(--warn);
  vertical-align: middle;
}

/* List-toolbar filters (audit log, roles & permissions) — the HotelBox ERP
   filter layout in Connexa's tokens: a "Clear" chip shown only while something
   is filtered, and a "More" button with a count badge that opens a menu drawn
   in a portal (position: fixed), so a card's overflow can never clip it. */
.chip.chip-clear { color: var(--text-muted); gap: 5px; padding: 0 10px; }
.chip.chip-clear:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.chip-clear-x { display: grid; place-items: center; width: 11px; height: 11px; }
.chip-clear-x svg { width: 11px; height: 11px; stroke-width: 2.25; }
.btn[data-active="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.more-count {
  display: inline-grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  margin-left: 2px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--surface);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
}
.more-caret { display: grid; place-items: center; width: 12px; height: 12px; transition: transform 160ms ease; }
.more-caret svg { width: 12px; height: 12px; }
.more-caret.is-open { transform: rotate(180deg); }
@keyframes menu-pop-in { from { opacity: 0; transform: translateY(-4px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes menu-pop-in-up { from { opacity: 0; transform: translateY(4px) scale(0.97); } to { opacity: 1; transform: none; } }
.menu.menu-pop {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 230px;
  z-index: 120;
  transform-origin: top right;
  animation: menu-pop-in 140ms ease-out;
}
.menu.menu-pop.menu-pop-up { transform-origin: bottom right; animation-name: menu-pop-in-up; }
@media (prefers-reduced-motion: reduce) {
  .menu.menu-pop, .more-caret { animation: none; transition: none; }
}
.menu-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 2px; flex: 1; min-height: 0; }
.menu-foot { flex-shrink: 0; padding: 6px; border-top: 1px solid var(--border); background: var(--surface); }
.menu-label {
  padding: 6px 10px 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.menu-item.menu-item-btn {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  color: var(--text);
  text-align: left;
}
.menu-item.menu-item-btn:hover { background: var(--hover); }
.menu-item.menu-item-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.menu-item.menu-item-btn[data-active="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.menu-tick { display: grid; place-items: center; width: 12px; height: 12px; flex: none; }
.menu-tick svg { width: 12px; height: 12px; stroke-width: 2.5; }
.menu-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; padding: 2px 10px 6px; }
.menu-field { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--text-muted); min-width: 0; }
.menu-field .input { height: 28px; font-size: 12px; width: 100%; min-width: 0; }

/* Filter chips (components/filter-chip-menu.tsx): the chosen value is cut
   short with an ellipsis, and the menu — a portal left-aligned to the chip —
   grows from its top-left corner, with an optional search box above a list
   that scrolls. */
.chip .chip-val { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu.menu-pop.menu-pop-start { min-width: 0; transform-origin: top left; }
.menu.menu-pop.menu-pop-start.menu-pop-up { transform-origin: bottom left; }
.menu-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 30px;
  margin: 2px 2px 4px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-muted);
}
.menu-search > span { display: grid; place-items: center; width: 13px; height: 13px; flex: none; }
.menu-search > span svg { width: 100%; height: auto; }
.menu-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12.5px; color: var(--text); }
.menu-empty { padding: 8px 10px; font-size: 12px; color: var(--text-faint); }

/* Roles & permissions — the HotelBox ERP responsive matrix. The card is a
   flex column sized to the window (roles-permissions-panel.tsx) and pinned
   like the settings nav, so its filters (head) and legend (foot) stay on
   screen; only .rbac-scroll scrolls, both ways, with the header row and the
   Module column pinned. Cells keep their own borders (border-collapse:
   separate) and the pinned ones get an opaque background — the zebra stripe
   is translucent and would let scrolled cells show through. */
.settings-card.rbac-card { display: flex; flex-direction: column; position: sticky; top: 0; }
.settings-card.rbac-card .settings-card-head { flex-shrink: 0; }
.tbl-toolbar.rbac-filters { padding: 0; border-bottom: 0; justify-content: flex-end; margin-left: auto; }
.tbl-toolbar.rbac-filters .input { width: auto; height: 28px; font-size: 12px; }
.settings-card-body.rbac-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.rbac-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.rbac-scroll .rbac { border-collapse: separate; border-spacing: 0; min-width: 640px; }
.rbac-scroll .rbac th:not(:first-child),
.rbac-scroll .rbac td:not(:first-child) { min-width: 96px; }
.rbac-scroll .rbac tbody tr:last-child td { border-bottom: 0; }
.rbac-scroll .rbac thead th { position: sticky; top: 0; z-index: 2; }
.rbac-scroll .rbac th:first-child,
.rbac-scroll .rbac td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 170px;
  background: var(--surface);
  box-shadow: inset -1px 0 0 var(--border);
}
.rbac-scroll .rbac tbody tr:nth-child(even) td:first-child {
  background: color-mix(in oklab, var(--text) 3.5%, var(--surface));
}
/* --hover is translucent in some themes: layer it over the opaque surface. */
.rbac-scroll .rbac tbody tr:hover td:first-child { background: linear-gradient(var(--hover), var(--hover)), var(--surface); }
.rbac-scroll .rbac thead th:first-child { z-index: 3; background: var(--surface-2); }
.rbac-scroll .rbac td.rbac-empty {
  position: static;
  text-align: center;
  padding: 24px 10px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 400;
  box-shadow: none;
}
.rbac-legend { flex-shrink: 0; padding: 10px 18px; border-top: 1px solid var(--border); }


/* ── ERP stylesheets copied verbatim (quotations, reservations, settings templates) ── */
/* Quotations module — classes the hotelbox-erp port needs that the prototype
   stylesheet (app/globals.css, a verbatim copy of prototype/src/styles.css)
   does not define. Kept here so globals.css stays identical to the prototype.
   Built only on the prototype's tokens, so light/dark and density still apply. */

/* Quotation → booking conversion screen and the wizard's commercial bars:
   form + commercials rail that stacks on narrower windows; fields sit on a
   fixed 4-col grid. */
.cb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: flex-start; }
.cb-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cb-span-all { grid-column: 1 / -1; }
.cb-ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .cb-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .cb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 480px) { .cb-fields { grid-template-columns: minmax(0, 1fr) !important; } }

/* Agent view — share channel switch: email document vs WhatsApp message. Both
   icons stay on the track; the knob slides beneath them and lights its side. */
.qd-switch {
  position: relative; flex-shrink: 0; width: 62px; height: 32px; margin-right: 4px;
  padding: 0; border: none; border-radius: 99px; cursor: pointer;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: box-shadow 0.2s ease;
}
.qd-switch:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.qd-switch .qd-knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px;
  border-radius: 99px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.2), 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
  transition: left 0.25s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.qd-switch[data-on="true"] .qd-knob { left: 33px; }
.qd-switch .qd-ico {
  position: absolute; top: 3px; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); opacity: 0.45; pointer-events: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.qd-switch .qd-ico svg { width: 14px; height: 14px; }
.qd-switch .qd-ico-mail { left: 3px; }
.qd-switch .qd-ico-wa { left: 33px; }
.qd-switch .qd-ico[data-on="true"] { color: var(--accent); opacity: 1; }
.qd-switch:hover .qd-ico:not([data-on="true"]) { opacity: 0.7; }
.qd-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The document stays mounted while the message is on screen so Print / Save
   PDF keeps producing it — hidden for the reader, not for the printer. */
@media screen { .qd-paper[data-hidden="true"] { display: none; } }
.qd-wa { background: #efeae2; border: 1px solid var(--border); border-radius: 8px; padding: 26px 18px; }
.qd-wa-bubble {
  max-width: 560px; margin: 0 auto; position: relative;
  background: #d9fdd3; color: #111b21; border-radius: 10px 0 10px 10px;
  padding: 8px 10px 4px; box-shadow: 0 1px 1px rgba(11, 20, 26, 0.13);
  font-family: "Segoe UI", -apple-system, Helvetica, Arial, sans-serif; font-size: 14.2px; line-height: 19px;
}
.qd-wa-bubble::after {
  content: ""; position: absolute; top: 0; right: -8px;
  border: 8px solid transparent; border-right-width: 0; border-top-color: #d9fdd3;
}
.qd-wa-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.qd-wa-meta { text-align: right; font-size: 11px; color: #667781; margin-top: 2px; }

/* Hotel rates modal (Fetch / Manual) — the shared <Modal> with its header and
   footer pinned and only the body scrolling, so Apply and the "why it can't
   apply" line stay in view however many combinations are ticked open. A
   wrapper class, because <Modal> takes no className; `.modal-back` is fixed,
   so the wrapper itself takes no space. */
.qt-sticky-modal { --qt-modal-gap: clamp(12px, 5vh, 40px); }
.qt-sticky-modal > .modal-back { padding: var(--qt-modal-gap) 16px; overflow-y: hidden; }
.qt-sticky-modal > .modal-back > .card {
  display: flex; flex-direction: column; overflow: hidden;
  max-height: calc(100dvh - 2 * var(--qt-modal-gap));
}
.qt-sticky-modal > .modal-back > .card > .card-head { flex: none; }
.qt-sticky-modal > .modal-back > .card > .card-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.qt-sticky-modal > .modal-back > .card > .card-body + div { flex: none; flex-wrap: wrap; align-items: center; background: var(--surface); }

@media print {
  .no-print { display: none !important; }
}
/* Reservations module — classes the HotelBox ERP booking screens need that the
   prototype stylesheet (app/globals.css, a verbatim copy of
   prototype/src/styles.css) does not define. Built only on the prototype's
   tokens, so light/dark and density still apply. */

/* List toolbar: the Agent / Hotel filter menus list every agent and hotel that
   has a booking — cap their height so a long list scrolls inside the menu. */
.bk-list .tbl-toolbar .menu[role="menu"] { max-height: 320px; overflow-y: auto; }

/* Booking history: a cancellation / failed auto-cancel marker on the timeline
   (the prototype styles status / note / email / call only). */
.tl-item[data-kind="danger"]::before { border-color: var(--danger); background: var(--danger); }

/* Section label inside the booking tabs — the prototype's inline
   "small caps" heading (booking-detail.jsx). */
.bk-section-label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05px; margin-bottom: 8px;
}

/* Number tile (Booking date / Check-in / Check-out, P&L tiles). */
.bk-tile { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.bk-tile-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05px; }
.bk-tile-value { font-family: var(--font-mono); font-size: 18px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.bk-tile-sub { font-size: 11.5px; color: var(--text-muted); }

/* Amber policy / warning panel (cancellation policy, cancel modal, HCN modal). */
.bk-note {
  padding: 12px; background: var(--warn-soft); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 12.5px; display: flex; gap: 10px; align-items: flex-start;
}
.bk-note > .bk-note-icon { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: var(--warn); display: inline-flex; }

/* Full financials: buying vs selling side by side, then the P&L tiles. */
.bk-fin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-fin-highlights { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.bk-fin-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; }
.bk-fin-box table { width: 100%; border-collapse: collapse; }
.bk-fin-highlights .bk-tile-value { font-size: 15px; line-height: 1.15; }
.bk-fin-highlights .bk-tile-sub { margin-top: 3px; }
@media (max-width: 1380px) { .bk-fin-highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 880px) {
  .bk-fin-columns { grid-template-columns: 1fr; }
  .bk-fin-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Inline field message under a modal input (role="alert"). */
.bk-field-error { font-size: 11.5px; color: var(--danger); }

/* Bulk modal: the selected bookings, each with its outcome once known. */
.bk-run-list { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius); max-height: 280px; overflow-y: auto; }
.bk-run-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; font-size: 12.5px; }
.bk-run-row + .bk-run-row { border-top: 1px solid var(--border); }

/* Voucher PDF preview. */
.bk-pdf-frame { display: block; width: 100%; height: 72vh; border: 0; border-radius: var(--radius); background: var(--surface-2); }
/* Settings → Templates editor (hotelbox-erp TemplatesPanel) — not in the prototype,
   so kept out of globals.css. Uses only the prototype's design tokens. */

.tpl-editor {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  scroll-margin-top: 80px;
}
.tpl-editor-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.tpl-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.tpl-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* BCC tag input */
.tpl-tags {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.tpl-tags:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.tpl-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.tpl-tag button {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--text-faint);
  cursor: pointer;
}
.tpl-tag button:hover {
  background: var(--surface-3);
  color: var(--text);
}
.tpl-tag button svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.5;
}
.tpl-tags input {
  flex: 1;
  min-width: 180px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
}

/* Plain-text (WhatsApp / SMS) body */
.tpl-plain {
  display: block;
  width: 100%;
  min-height: 180px;
  padding: 12px 14px;
  border: 0;
  outline: 0;
  resize: vertical;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.tpl-editor .tox-tinymce {
  border: 0;
  border-radius: 0;
}
.tpl-plain-meta {
  display: flex;
  justify-content: flex-end;
  padding: 4px 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.tpl-warn {
  padding: 6px 14px;
  border-top: 1px solid var(--border);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11.5px;
}

/* Variable picker */
.tpl-picker {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.tpl-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}
.tpl-groups .tpl-label {
  margin-right: 10px;
  color: var(--text-faint);
}
.tpl-group {
  margin-bottom: -1px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition:
    color 0.1s,
    border-color 0.1s;
}
.tpl-group:hover {
  color: var(--text);
}
.tpl-group[data-active='true'] {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
.tpl-used {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.tpl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 14px;
}
.tpl-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
  transition:
    background 0.1s,
    border-color 0.1s;
}
.tpl-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.tpl-chip[data-used='true'] {
  background: var(--accent-soft);
}
.tpl-chip .brace {
  color: var(--text-faint);
  font-size: 11px;
}
.tpl-chip .lbl {
  margin-left: 4px;
  color: var(--text-faint);
  font-family: var(--font-sans);
  font-size: 10.5px;
}

/* Preview (editor toggle and drawer) */
.tpl-preview-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.tpl-preview-toggle:hover {
  color: var(--text);
}
.tpl-preview-toggle svg {
  width: 14px;
  height: 14px;
}
.tpl-preview {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.tpl-preview-subject {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.tpl-preview-subject .tpl-label {
  color: var(--text-faint);
}
.tpl-frame {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  background: #fff;
}
.tpl-text {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.tpl-var {
  padding: 0 3px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}
.tpl-var[data-unknown='true'] {
  background: var(--danger-soft);
  color: var(--danger);
}
.tpl-source {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.tpl-boxed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tpl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.tbl tr.tpl-editing td {
  background: var(--accent-soft);
}

/* ===== People & HR (moved from injected <style> blocks) ===== */
/* from hr-data-b.js */
.eb-page{padding:24px}
.eb-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:16px}
.eb-h1{font-size:22px;font-weight:700;letter-spacing:-0.02em;color:var(--text);margin:0}
.eb-sub{margin-top:2px;font-size:12.5px;color:var(--text-muted)}
.eb-acts{display:flex;align-items:center;gap:8px}
.eb-card{overflow:hidden;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface)}
.eb-card-head{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);padding:14px 16px}
.eb-card-head h3{font-size:13px;font-weight:600;color:var(--text);margin:0}
.eb-card-head .eb-ico{width:14px;height:14px;color:var(--text-muted);display:inline-flex}
.eb-card-head .eb-ico svg{width:14px;height:14px}
.eb-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.eb-chip{display:inline-flex;align-items:center;gap:4px;border-radius:9999px;padding:2px 7px;font-size:11px;font-weight:500;white-space:nowrap;background:var(--neutral-soft);color:var(--text-muted)}
.eb-chip.indigo{background:var(--accent-soft);color:var(--accent)}
.eb-chip.teal{background:var(--ok-soft);color:var(--ok)}
.eb-chip.amber{background:var(--warn-soft);color:var(--warn)}
.eb-chip.crimson{background:var(--danger-soft);color:var(--danger)}
.eb-chip.solid-crimson{background:var(--danger);color:#fff}
.eb-chip.solid-indigo{background:var(--accent);color:var(--accent-fg)}
.eb-chip.strong-teal{color:color-mix(in oklab,var(--ok),var(--text) 54%);font-weight:600}
.eb-chip.strong-amber{color:color-mix(in oklab,var(--warn),var(--text) 54%);font-weight:600}
.eb-search{position:relative;display:inline-block}
.eb-search svg{position:absolute;left:10px;top:50%;width:14px;height:14px;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}
.eb-in{display:flex;height:32px;width:100%;min-width:0;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);padding:4px 10px;font-size:13px;outline:none;font-family:inherit;transition:border-color .15s,box-shadow .15s}
.eb-in::placeholder{color:var(--text-faint);opacity:1}
.eb-in:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.eb-in.sm{height:32px;font-size:12px;line-height:16px;width:192px}
.eb-page .btn,.eb-md .btn,.eb-dr .btn,.eb-ov .btn{line-height:16px}
.eb-page .btn svg,.eb-md .btn svg,.eb-dr .btn svg{width:12px;height:12px}
.eb-search .eb-in{padding-left:32px}
textarea.eb-in{height:auto;min-height:60px;resize:vertical;padding:6px 10px}
select.eb-in{appearance:auto}
.eb-sel{width:100%;border-radius:4px;border:1px solid var(--border);background:transparent;padding:4px 8px;font-family:inherit;font-size:11.5px;color:var(--text)}
.eb-scroll{width:100%;overflow-x:auto}
.eb-tbl{width:100%;font-size:12px;line-height:1.3333333;border-collapse:collapse}
.eb-tbl th{padding:8px 12px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;color:var(--text-muted);text-align:left;white-space:nowrap}
.eb-tbl thead tr{background:var(--surface-2)}
.eb-tbl th.r,.eb-tbl td.r{text-align:right}
.eb-tbl td{padding:10px 12px;vertical-align:middle}
.eb-tbl tbody tr{border-top:1px solid var(--border)}
.eb-tbl tbody tr{transition:background-color .15s}
.eb-tbl tbody tr:hover{background:var(--hover)}
.eb-tbl tbody tr.click{cursor:pointer}
.eb-tbl input[type=checkbox]{width:13px;height:13px;margin:0}
.eb-pager{display:flex;align-items:center;gap:8px;border-top:1px solid var(--border);padding:8px 12px}
.eb-pager span{font-size:11px;color:var(--text-muted)}
.eb-pager .eb-right{gap:4px}
.eb-empty{padding:40px 20px;text-align:center}
.eb-empty .ico{margin:0 auto 10px;display:flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:12px;background:var(--surface-2);color:var(--text-muted)}
.eb-empty .ico svg{width:20px;height:20px}
.eb-empty .t{font-size:13px;font-weight:600;color:var(--text)}
.eb-empty .h{margin-top:4px;font-size:11.5px;color:var(--text-muted)}
.eb-kgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.eb-kpi{border-radius:12px;border:1px solid var(--border);background:var(--surface);padding:14px;text-align:left;display:block;font-family:inherit;color:inherit;width:100%}
.eb-kpi:hover{box-shadow:var(--shadow-sm)}
.eb-kpi.click{cursor:pointer}.eb-kpi.click:hover{border-color:color-mix(in oklab,var(--text) 30%,transparent)}
.eb-kpi .row{display:flex;align-items:center;gap:10px}
.eb-kpi .b{display:flex;width:34px;height:34px;flex-shrink:0;align-items:center;justify-content:center;border-radius:12px;background:var(--surface-2);color:var(--text-muted)}
.eb-kpi .b svg{width:16px;height:16px}
.eb-kpi .b.teal{background:var(--ok-soft);color:var(--ok)}.eb-kpi .b.indigo{background:var(--accent-soft);color:var(--accent)}
.eb-kpi .b.amber{background:var(--warn-soft);color:var(--warn)}.eb-kpi .b.crimson{background:var(--danger-soft);color:var(--danger)}
.eb-kpi .v{font-size:20px;font-weight:800;line-height:1.1;letter-spacing:-0.025em;color:var(--text)}
.eb-kpi .v small{margin-left:2px;font-size:11px;font-weight:600;color:var(--text-muted);letter-spacing:0}
.eb-kpi .l{margin-top:2px;font-size:11px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eb-tabs{margin-bottom:16px;border-bottom:1px solid var(--border);display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.eb-tab{display:flex;align-items:center;gap:6px;white-space:nowrap;border:0;border-bottom:2px solid transparent;background:transparent;padding:8px 12px;font-family:inherit;font-size:12.5px;font-weight:500;color:var(--text-muted);cursor:pointer;transition:color .15s}
.eb-tab:hover{color:var(--text)}
.eb-tab.on{border-bottom-color:var(--accent);color:var(--text)}
.eb-tab .n{border-radius:9999px;background:var(--surface-2);padding:2px 6px;font-size:9.5px;font-weight:700;color:var(--text-muted)}
.eb-ov{position:fixed;inset:0;z-index:50;display:flex;justify-content:flex-end;background:rgba(15,17,21,0.5)}
.eb-dr{display:flex;height:100%;width:100%;flex-direction:column;border-left:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-lg)}
.eb-dr-h{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);padding:14px}
.eb-dr-h .ic{display:flex;width:32px;height:32px;flex-shrink:0;align-items:center;justify-content:center;border-radius:12px;background:var(--surface-2);color:var(--text-muted)}
.eb-dr-h .ic svg{width:16px;height:16px}
.eb-dr-h .tt{min-width:0;flex:1}
.eb-dr-h .t{font-size:13.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eb-dr-h .s{margin-top:2px;font-size:11px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eb-x{display:flex;width:32px;height:32px;flex-shrink:0;align-items:center;justify-content:center;border-radius:8px;border:0;background:transparent;color:var(--text-muted);cursor:pointer}
.eb-x:hover{background:var(--hover);color:var(--text)}
.eb-x svg{width:16px;height:16px}
.eb-dr-b{flex:1;overflow-y:auto;padding:16px}
.eb-dr-f{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding:12px 16px}
.eb-dr-f>div{display:flex;gap:8px}
.eb-mo{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:rgba(15,17,21,0.6);padding:16px;backdrop-filter:blur(2px)}
.eb-md{display:flex;max-height:min(92vh,calc(100vh - 2rem));width:100%;flex-direction:column;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-lg)}
.eb-md-h{display:flex;flex-shrink:0;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding:20px 20px 12px;align-items:flex-start}
.eb-md-h.ic{align-items:center}
.eb-md-h .t{font-size:13.5px;font-weight:600;color:var(--text)}
.eb-md-h .s{margin-top:2px;font-size:12px;line-height:16px;color:var(--text-muted)}
.eb-md-h .ico{display:flex;width:32px;height:32px;flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-md);background:var(--surface-2);color:var(--text-muted)}
.eb-md-h .ico svg{width:14px;height:14px}
.eb-md-h .l{display:flex;min-width:0;align-items:center;gap:10px}
.eb-md-x{display:grid;width:28px;height:28px;flex-shrink:0;place-items:center;border-radius:var(--radius);border:0;background:transparent;color:var(--text-muted);cursor:pointer;font-size:13.5px}
.eb-md-x:hover{background:var(--hover);color:var(--text)}
.eb-md-b{min-height:0;flex:1;overflow-y:auto;padding:12px 20px}
.eb-md-f{display:flex;flex-shrink:0;justify-content:flex-end;gap:8px;border-top:1px solid var(--border);padding:12px 20px 20px}
.eb-fld{margin-bottom:12px;min-width:0}
.eb-fl{display:block;margin-bottom:2px;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;color:var(--text-muted)}
.eb-fl.req{color:var(--danger)}
.eb-fv{font-size:13px;font-weight:500;color:var(--text);word-break:break-word}
.eb-err{margin-top:4px;font-size:11px;font-weight:500;color:var(--danger)}
.eb-facts{display:grid;grid-template-columns:1fr 1fr;column-gap:16px;row-gap:12px}
.eb-facts .eb-fld{margin-bottom:0}
.eb-g2{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.eb-g3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0 12px}
.eb-toast{position:fixed;bottom:20px;left:50%;z-index:100;display:flex;transform:translateX(-50%);align-items:center;gap:8px;border-radius:9999px;border:1px solid var(--border-strong);background:var(--surface);padding:10px 14px;font-size:12px;font-weight:600;color:var(--text);box-shadow:var(--shadow-lg)}
.eb-toast i{width:8px;height:8px;flex-shrink:0;border-radius:9999px;background:var(--text)}
.eb-sec{margin-bottom:6px;margin-top:16px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;color:var(--text-muted)}
.eb-mini{border-radius:8px;border:1px solid var(--border);background:var(--surface-2);padding:8px 10px;text-align:center}
.eb-mini .v{font-size:16px;font-weight:700;color:var(--text)}.eb-mini .l{font-size:10.5px;color:var(--text-muted)}
.eb-sel-bar{margin-top:16px;display:flex;align-items:center;gap:10px;border-radius:8px;border:1px solid var(--border);background:var(--accent-soft);padding:8px 14px;font-size:12px;font-weight:600;color:var(--accent)}
.eb-link{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;padding:0;font-family:inherit;font-size:11px;font-weight:600;color:var(--text);cursor:pointer}
.eb-link:hover{text-decoration:underline}
.eb-link svg{width:12px;height:12px}
.eb-mut{color:var(--text-muted)}
.eb-mono{font-family:var(--font-mono)}
.eb-av{display:flex;flex-shrink:0;align-items:center;justify-content:center;font-weight:600;border-radius:9999px;user-select:none}
.eb-av.sm{width:22px;height:22px;font-size:9.5px}.eb-av.md{width:28px;height:28px;font-size:11px}.eb-av.lg{width:40px;height:40px;font-size:14px}
.eb-av.xl{width:52px;height:52px;font-size:16px}
.eb-banner{margin-bottom:12px;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);padding:10px 12px;font-size:12px;color:var(--text-muted)}
.eb-banner.warn{border-color:var(--warn);background:var(--warn-soft);color:var(--text)}
.eb-banner.err{border-color:var(--danger);background:var(--danger-soft);color:var(--danger)}
.eb-ss{position:relative}
.eb-ss input{width:100%;border:1px solid var(--border);background:transparent;color:var(--text);font-family:inherit;outline:none;padding:4px 24px 4px 8px;border-radius:4px;font-size:11.5px}
.eb-ss input::placeholder{color:var(--text-faint);opacity:1}
.eb-ss.strong input::placeholder{color:var(--text)}
.eb-ss.lg input{height:36px;border-radius:8px;font-size:14px;padding:0 28px 0 8px}
.eb-ss input:focus{box-shadow:0 0 0 2px var(--accent)}
.eb-ss .cv{position:absolute;right:4px;top:50%;width:12px;height:12px;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}
.eb-ss.lg .cv{right:8px;width:14px;height:14px}
.eb-ss .cl{position:absolute;right:4px;top:50%;display:flex;width:16px;height:16px;transform:translateY(-50%);align-items:center;justify-content:center;border:0;background:transparent;border-radius:2px;color:var(--text-muted);cursor:pointer;padding:0}
.eb-ss .cl:hover{background:var(--surface-2);color:var(--text)}.eb-ss .cl svg{width:10px;height:10px}
.eb-ss ul{position:absolute;left:0;right:0;top:100%;z-index:70;margin:2px 0 0;padding:0;list-style:none;max-height:256px;overflow-y:auto;border-radius:8px;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-md)}
.eb-ss li{cursor:pointer;padding:6px 12px;font-size:11px;line-height:20px;color:var(--text)}
.eb-ss.lg li{padding:10px 12px;font-size:12.5px}
.eb-ss li.on{background:var(--surface-2)}.eb-ss li.sel{font-weight:600}
.eb-ss li.none{cursor:default;color:var(--text-muted)}
.eb-cchip{border-radius:9999px;border:1px solid var(--border);background:transparent;padding:4px 10px;font-family:inherit;font-size:11px;font-weight:500;color:var(--text-muted);cursor:pointer}
.eb-cchip.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.eb-sec2{margin-bottom:16px}.eb-sec2>.t{margin-bottom:8px;font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;color:var(--text-muted)}
.eb-sec2>.g{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.eb-ff{display:flex;min-width:0;flex-direction:column;gap:6px}.eb-ff.span{grid-column:span 2}
.eb-ff .lb{display:block;margin-bottom:2px;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;color:var(--text-muted)}
.eb-ff .lb.req{color:var(--danger)}.eb-ff .er{font-size:11px;color:var(--danger)}.eb-ff .hn{font-size:10.5px;color:var(--text-muted)}
.eb-fi{height:36px;width:100%;border-radius:5px;border:1px solid var(--border);background:var(--surface);color:var(--text);padding:0 10px;font-family:inherit;font-size:12.5px;outline:none}
.eb-fi:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.eb-fi::placeholder{color:var(--text-faint)}
.eb-fi[aria-invalid=true]{border-color:var(--danger)}
select.eb-fi{appearance:none;-webkit-appearance:none;padding-left:10px;padding-right:30px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right 10px center;background-size:14px}
.eb-ff .lb2{font-size:12px;font-weight:500;color:var(--text-muted)}.eb-ff .lb2.req{color:var(--danger)}
.eb-ph{display:flex;align-items:center;height:36px;border-radius:5px;border:1px solid var(--border);background:var(--surface);overflow:hidden}.eb-ph .fl{display:flex;align-items:center;gap:4px;padding:0 8px;font-size:12.5px;border-right:0}.eb-ph .fl i{display:block;width:16px;height:11px;background:linear-gradient(#00732f 33%,#fff 33% 66%,#000 66%);position:relative}.eb-ph .fl i:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#ff0000}.eb-ph input{flex:1;border:0;outline:0;background:transparent;font-family:inherit;font-size:12.5px;color:var(--text);height:100%;padding:0 8px 0 0;min-width:0}.eb-ph input::placeholder{color:var(--text-faint)}
textarea.eb-fi{height:auto;padding:8px 10px}
.eb-rowcard{display:flex;align-items:center;gap:10px;border-radius:8px;border:1px solid var(--border);padding:10px}
.eb-ib{display:flex;width:30px;height:30px;flex-shrink:0;align-items:center;justify-content:center;border-radius:8px;background:var(--surface-2);color:var(--text-muted)}
.eb-ib svg{width:13px;height:13px}
.eb-panel{border-radius:12px;border:1px solid var(--border);background:var(--surface);padding:14px}
.eb-prog{height:6px;border-radius:9999px;background:var(--surface-3);overflow:hidden}.eb-prog>i{display:block;height:100%;background:var(--accent)}
/* from hr-data-b.js */
.orgc{--bg-elev:var(--surface);--bg-sunken:var(--surface-2);--teal-500:var(--ok);--crimson-500:var(--danger);--amber-500:var(--warn);--indigo-500:var(--accent);--indigo-600:var(--accent);--foreground:var(--text);--ring:var(--accent);--text-2:var(--text-muted);--text-3:var(--text-muted)}


.orgc {
  overflow-x: auto;
  padding: 6px 4px 18px;
}
.orgc-scroll {
  display: inline-block;
  min-width: 100%;
}
.orgc-node {
  position: relative;
}
.orgc-cardwrap {
  position: relative;
  display: inline-block;
}


.orgc-card {
  width: 268px;
  display: flex;
  align-items: stretch;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 1px 3px rgb(0 0 0 / 7%);
  transition:
    box-shadow 0.12s,
    transform 0.08s,
    opacity 0.12s,
    outline-color 0.12s;
  outline: 2px solid transparent;
  outline-offset: 1px;
}
.orgc-card:hover {
  box-shadow: 0 6px 18px rgb(0 0 0 / 12%);
}

.orgc-card.is-draggable {
  cursor: grab;
}
.orgc-card.is-draggable:active {
  cursor: grabbing;
}
.orgc-card.is-dragging {
  opacity: 0.4;
  transform: scale(0.98);
}
.orgc-card.is-drop {
  outline-color: var(--teal-500);
  box-shadow: 0 6px 20px color-mix(in oklab, var(--teal-500) 35%, transparent);
}
.orgc-card.is-bad {
  outline-color: var(--crimson-500);
  cursor: not-allowed;
}
.orgc-card.is-dim {
  opacity: 0.34;
}
.orgc-card.is-hit {
  outline-color: var(--amber-500);
}

.orgc-card.is-faded {
  opacity: 0.18;
}
.orgc-card.is-chain {
  outline-color: var(--indigo-500);
}

.orgc-photo {
  width: 76px;
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-sunken);
  border-right: 1px solid var(--border);
}
.orgc-photo-fb {
  width: 100%;
  height: 100%;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.02em;
}

.orgc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.orgc-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: #fff;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.01em;
}
.orgc-title-txt {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orgc-title-tags {
  flex: 0 0 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.72;
}
.orgc-info {
  padding: 9px 10px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.orgc-nm {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--foreground);
}
.orgc-sub {
  font-size: 10.5px;
  color: var(--text-2);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orgc-eid {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--text-3);
}
.orgc-tags {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3px;
}


.orgc-toggle {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-2);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
.orgc-toggle:hover {
  border-color: var(--indigo-500);
  color: var(--indigo-600);
}

.orgc-toggle.pos-c {
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
}
.orgc-toggle.pos-l {
  left: 26px;
  bottom: -9px;
  transform: translateX(-50%);
}


.orgc-kids-h {
  display: flex;
  justify-content: center;
  position: relative;
  padding-top: 34px;
}
.orgc-kids-h::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 17px;
  background: var(--border);
}
.orgc-kids-h > .orgc-node {
  padding: 0 13px;
}
.orgc-kids-h > .orgc-node::before {
  content: '';
  position: absolute;
  top: -17px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.orgc-kids-h > .orgc-node::after {
  content: '';
  position: absolute;
  top: -17px;
  left: 50%;
  width: 1px;
  height: 17px;
  background: var(--border);
}

.orgc-kids-h > .orgc-node:first-child::before {
  left: 50%;
}
.orgc-kids-h > .orgc-node:last-child::before {
  right: 50%;
}
.orgc-kids-h > .orgc-node:only-child::before {
  left: 50%;
  right: 50%;
}


.orgc-kids-v {
  margin-left: 26px;
  padding-top: 10px;
}
.orgc-kids-v > .orgc-node {
  padding-left: 30px;
  margin-bottom: 10px;
}

.orgc-kids-v > .orgc-node::before {
  content: '';
  position: absolute;
  left: 0;
  top: 42px;
  width: 30px;
  height: 1px;
  background: var(--border);
}

.orgc-kids-v > .orgc-node::after {
  content: '';
  position: absolute;
  left: 0;
  top: -10px;
  width: 1px;
  height: 52px;
  background: var(--border);
}
.orgc-kids-v > .orgc-node:not(:last-child)::after {
  height: calc(100% + 10px);
}

.orgc-rootzone {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  transition: all 0.12s;
}
.orgc-rootzone.is-drop {
  border-color: var(--teal-500);
  color: var(--teal-500);
  background: color-mix(in oklab, var(--teal-500) 8%, transparent);
}


@media (max-width: 760px) {
  .orgc-card {
    width: 210px;
  }
  .orgc-photo {
    width: 56px;
    flex: 0 0 56px;
  }
  .orgc-kids-h {
    display: block;
    padding-top: 10px;
  }
  .orgc-kids-h::before {
    display: none;
  }
  .orgc-kids-h > .orgc-node {
    padding: 0 0 0 30px;
    margin-bottom: 10px;
  }
  .orgc-kids-h > .orgc-node::before {
    top: 42px;
    left: 0;
    right: auto;
    width: 30px;
  }
  .orgc-kids-h > .orgc-node::after {
    top: -10px;
    left: 0;
    height: 52px;
  }
  .orgc-kids-h > .orgc-node:not(:last-child)::after {
    height: calc(100% + 10px);
  }
}


.orgc-card:focus-visible {
  outline-color: var(--ring);
  outline-width: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .orgc-card,
  .orgc-rootzone {
    transition: none;
  }
}

/* from hr-data-c.js */
.hc-page{padding:24px;max-width:1600px;margin:0 auto}
.hc-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px;gap:16px}
.hc-h1{font-size:24px;line-height:32px;font-weight:700;color:var(--text);margin:0}
.hc-sub{margin-top:4px;font-size:14px;line-height:20px;color:var(--text-muted)}
.hc-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hc-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0 12px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:12.5px;font-weight:500;white-space:nowrap;cursor:pointer;transition:background .1s,border-color .1s}
.hc-btn:hover{border-color:var(--border-strong);background:var(--hover)}
.hc-btn svg{width:14px;height:14px;flex-shrink:0}
.hc-btn.primary{background:var(--text);border-color:var(--text);color:var(--bg)}.hc-btn.primary:hover{opacity:.9;background:var(--text)}
.hc-btn.brand{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}.hc-btn.brand:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.hc-btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}
.hc-btn.ghost{border-color:transparent;background:transparent;color:var(--text-muted)}.hc-btn.ghost:hover{background:var(--hover);color:var(--text)}
.hc-btn.sm{height:26px;padding:0 8px;font-size:12px}
.hc-btn:disabled{opacity:.6;cursor:not-allowed;pointer-events:none}
.hc-sel,.hc-in{height:32px;border-radius:var(--radius-md);border:1px solid var(--border);background:transparent;padding:0 8px;font-size:12px;color:var(--text);outline:0;font-family:inherit}
.hc-in{width:208px;border-radius:var(--radius);padding:4px 10px;font-size:13px;background:var(--surface)}.hc-tbl-s input.hc-in{font-size:12px}.hc-in:focus,.hc-sel:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.hc-in.full,.hc-sel.full{width:100%}.hc-sel option{background:var(--surface);color:var(--text)}
textarea.hc-in{height:auto;padding:8px;line-height:1.5}
.hc-kgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.hc-kpi{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius-lg);padding:14px;text-align:left;font-family:inherit;color:inherit;transition:box-shadow .15s}
.hc-kpi:hover{box-shadow:var(--shadow-sm)}.hc-kpi.click{cursor:pointer}
.hc-kpi-in{display:flex;align-items:center;gap:10px}
.hc-kico{display:flex;width:34px;height:34px;flex-shrink:0;align-items:center;justify-content:center;border-radius:var(--radius-lg)}.hc-kico svg{width:16px;height:16px}
.hc-kico.teal{background:var(--ok-soft);color:var(--ok)}.hc-kico.indigo{background:var(--accent-soft);color:var(--accent)}.hc-kico.amber{background:var(--warn-soft);color:var(--warn)}.hc-kico.crimson{background:var(--danger-soft);color:var(--danger)}.hc-kico.default{background:var(--surface-2);color:var(--text-muted)}
.hc-kval{font-size:20px;font-weight:800;line-height:1.1;letter-spacing:-.025em;color:var(--text)}.hc-kval small{margin-left:2px;font-size:11px;font-weight:600;color:var(--text-muted)}
.hc-klab{margin-top:2px;font-size:11px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hc-tabs{margin-bottom:16px;border-bottom:1px solid var(--border);display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.hc-tab{display:flex;align-items:center;gap:6px;white-space:nowrap;border:0;border-bottom:2px solid transparent;background:transparent;padding:8px 12px;font-size:12.5px;font-weight:500;color:var(--text-muted);cursor:pointer;font-family:inherit;transition:color .15s}
.hc-tab:hover{color:var(--text)}.hc-tab.on{border-bottom-color:var(--accent);color:var(--text)}
.hc-tab i{font-style:normal;border-radius:9999px;background:var(--surface-2);padding:2px 6px;font-size:9.5px;font-weight:700;color:var(--text-muted)}
.hc-chip{display:inline-flex;align-items:center;gap:4px;border-radius:9999px;padding:2px 7px;font-size:11px;font-weight:500;white-space:nowrap;background:var(--neutral-soft);color:var(--text-muted)}
.hc-chip.indigo{background:var(--accent-soft);color:var(--accent)}.hc-chip.teal{background:var(--ok-soft);color:var(--ok)}.hc-chip.amber{background:var(--warn-soft);color:var(--warn)}.hc-chip.crimson{background:var(--danger-soft);color:var(--danger)}.hc-chip.solid-crimson{background:var(--danger);color:#fff}
.hc-chip svg{width:10px;height:10px}
.hc-box{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius-lg);padding:16px}
.hc-h3{margin:0;font-size:14px;font-weight:600;color:var(--text);line-height:20px}
.hc-muted{color:var(--text-muted)}.hc-mono{font-family:var(--font-mono,ui-monospace,monospace)}
.hc-tbl{overflow:hidden;border:1px solid var(--border);background:var(--surface);border-radius:var(--radius-md)}
.hc-tbl-h{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);padding:14px 16px}
.hc-tbl-h h3{margin:0;font-size:13px;font-weight:600;color:var(--text)}.hc-tbl-h svg{width:14px;height:14px;color:var(--text-muted)}
.hc-tbl-r{margin-left:auto;display:flex;align-items:center;gap:8px}
.hc-tbl-s{position:relative}.hc-tbl-s svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:14px;height:14px;color:var(--text-muted);pointer-events:none}.hc-tbl-s input{padding-left:32px;width:192px}
.hc-tbl table{width:100%;font-size:12px;line-height:1.3333;border-collapse:collapse}
.hc-tbl th{padding:8px 12px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;line-height:1.3333;color:var(--text-muted);background:var(--surface-2);text-align:left}
.hc-tbl td{padding:10px 12px;border-top:1px solid var(--border);vertical-align:middle}
.hc-tbl tbody tr:hover{background:var(--hover)}.hc-tbl tr.click{cursor:pointer}.hc-tbl .r{text-align:right}
.hc-tbl-f{display:flex;align-items:center;gap:8px;border-top:1px solid var(--border);padding:8px 12px}.hc-tbl-f span{font-size:11px;color:var(--text-muted)}.hc-tbl-f div{margin-left:auto;display:flex;gap:4px}
.hc-btn.xs{height:auto;padding:4px 9px;border:0;font-size:11.5px;font-weight:600;line-height:1.45;border-radius:6px}.hc-btn.xs.outline{border:1px solid var(--border);line-height:1.3333;background:transparent}
.hc-empty{padding:40px 16px;text-align:center;font-size:12.5px;color:var(--text-muted)}
.hc-link{border:0;background:transparent;padding:0;font-family:inherit;font-size:12px;font-weight:600;color:var(--text);cursor:pointer}.hc-link:disabled{opacity:.4;cursor:not-allowed}.hc-link.ok{color:color-mix(in oklab,var(--ok),var(--text) 18%)}.hc-link.bad{color:color-mix(in oklab,var(--danger),var(--text) 18%)}.hc-link.mut{color:var(--text-muted)}
.hc-prog{height:7px;overflow:hidden;border-radius:9999px;background:var(--surface-2)}.hc-prog>div{height:100%;border-radius:9999px;transition:width .3s}
.hc-ovl{position:fixed;inset:0;z-index:50;display:flex;justify-content:flex-end;background:rgba(15,17,21,.5)}
.hc-drw{display:flex;flex-direction:column;height:100%;width:100%;border-left:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-lg)}
.hc-drw-h{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);padding:14px}
.hc-drw-b{flex:1;overflow-y:auto;padding:16px}.hc-drw-f{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding:12px 16px}.hc-drw-f>div{display:flex;gap:8px}
.hc-x{display:flex;width:32px;height:32px;flex-shrink:0;align-items:center;justify-content:center;border-radius:6px;border:0;background:transparent;color:var(--text-muted);cursor:pointer}.hc-x:hover{background:var(--hover);color:var(--text)}.hc-x svg{width:16px;height:16px}
.hc-mback{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:rgba(15,17,21,.6);padding:16px;backdrop-filter:blur(2px)}
.hc-modal{display:flex;max-height:min(92vh,calc(100dvh - 2rem));width:100%;flex-direction:column;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-lg)}
.hc-modal-h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding:20px 20px 12px}
.hc-modal-b{flex:1;overflow-y:auto;padding:16px 20px}.hc-modal-f{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--border);padding:12px 20px}
.hc-field{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}.hc-field>label,.hc-lab{font-size:12px;font-weight:500;color:var(--text-muted)}.hc-field .hint{font-size:11px;color:var(--text-faint)}
.hc-sec{margin:8px 0 6px;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted)}
.hc-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.hc-facts .k{font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:2px}.hc-facts .v{font-size:12.5px;font-weight:500;color:var(--text)}
.hc-g2{display:grid;gap:16px;grid-template-columns:2fr 1fr}.hc-g2e{display:grid;gap:16px;grid-template-columns:1fr 1fr}
.hc-mb4{margin-bottom:16px}.hc-mb6{margin-bottom:24px}
.hc-pen{border:0;background:transparent;border-radius:var(--radius-md);padding:4px;color:var(--text-muted);cursor:pointer;display:inline-flex}.hc-pen:hover{background:var(--surface-2);color:var(--text)}
.hc-ss{position:relative;display:inline-block;min-width:0}
.hc-ssin{width:100%;border:1px solid var(--border);background:transparent;border-radius:4px;padding:4px 24px 4px 8px;font-size:11.5px;line-height:inherit;color:var(--text);outline:0;font-family:inherit}.hc-ssin:focus{box-shadow:0 0 0 2px var(--accent-soft);border-color:var(--accent)}.hc-ssin:disabled{opacity:.6;cursor:not-allowed}
.hc-ssin::placeholder{color:var(--text-muted)}.hc-ssic{pointer-events:none;position:absolute;right:4px;top:50%;transform:translateY(-50%);color:var(--text-muted);display:flex}
.hc-ssx{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:16px;height:16px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;border-radius:4px;color:var(--text-muted);cursor:pointer}.hc-ssx:hover{background:var(--surface-2);color:var(--text)}
.hc-ssl{position:absolute;left:0;right:0;top:calc(100% + 2px);z-index:60;max-height:256px;overflow-y:auto;margin:0;padding:0;list-style:none;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:var(--radius-md);box-shadow:var(--shadow-md)}
.hc-ssn{padding:8px 12px;font-size:11px;color:var(--text-muted)}.hc-sso{cursor:pointer;padding:6px 12px;font-size:11px;line-height:20px}.hc-sso.act{background:var(--accent-soft);color:var(--accent)}.hc-sso.sel{background:var(--hover);font-weight:500}
.hc-ico{width:16px;height:16px;flex-shrink:0}
.hc-row{display:flex;align-items:center;gap:8px}
/* from screens/page-hr-shared.jsx */
.hr-tr:hover{background:var(--hover)}.hr-kpi-tile{transition:box-shadow .15s,border-color .15s}.hr-kpi-tile:hover{box-shadow:var(--shadow-sm)}button.hr-kpi-tile:hover{border-color:color-mix(in oklab,var(--text) 30%,transparent)}.hr-x-btn:hover{background:var(--hover)!important;color:var(--text)!important}.hr-link-btn:hover{color:var(--text)!important}
.hc-up.hc-field>label,.hc-up .hc-field>label{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}

/* People & HR group A: ERP text-crimson-600 (required labels in New request modal) */
:root{--hr-crimson-600:#a54341}
:root[data-theme="dark"]{--hr-crimson-600:#ec8f88}
.hrs-hint-row:last-child{border-bottom:0!important}
.hr-rte [contenteditable]:empty::before{content:attr(data-placeholder);display:block;margin:.35rem 0;color:var(--text);pointer-events:none}.hr-rte [contenteditable] p{margin:.35rem 0}.hr-rte [contenteditable] ul,.hr-rte [contenteditable] ol{margin:.4rem 0;padding-left:1.625rem}.hr-rte [contenteditable] ul{list-style:disc outside}.hr-rte [contenteditable] ol{list-style:decimal outside}.hr-rte [contenteditable] blockquote{border-left:3px solid var(--border);color:var(--text-muted);margin:.5rem 0;padding-left:.75rem}.hr-rte [contenteditable] pre{background:var(--surface-2);border-radius:6px;font-family:var(--font-mono,ui-monospace,monospace);font-size:13px;margin:.5rem 0;overflow-x:auto;padding:.5rem .75rem}.hr-rte-btn:hover{background:var(--surface-2)!important;color:var(--text)!important}.hrs-gap-btn:hover{background:color-mix(in oklab,var(--hrs-amber-bg) 80%,var(--hrs-amber-bd))!important}
/* ERP amber palette (HR Settings > Templates coverage gaps / token warnings), measured from the running ERP */
:root{--hrs-amber-bg:#ffefd5;--hrs-amber-bd:#e5bd86;--hrs-amber-900:#473a2a;--hrs-amber-700:#82602f;--hrs-amber-600:#a4752d}
:root[data-theme="dark"]{--hrs-amber-bg:#3f2903;--hrs-amber-bd:#8f6626;--hrs-amber-900:#ecdbc4;--hrs-amber-700:#ebc48f;--hrs-amber-600:#e9b771}

/* People & HR group B parity: ERP Input h-8 / 13px / radius 6, branch chips, 26px primary buttons */
input.eb-fi32{height:32px;border-radius:6px;font-size:13px}.eb-ff .lb2{line-height:16px}
.eb-ph{height:32px;border-radius:6px}.eb-ph .fl{font-size:13px}.eb-ph input{font-size:13px}
.eb-cchip{border-radius:6px;padding:4px 9px;font-size:11.5px;color:var(--text)}
.eb-cchip.on{border-color:var(--text);background:var(--text);color:var(--bg)}
.btn.eb-b26{height:26px;padding:0 8px;font-size:12px}
.btn.eb-b26[disabled]{opacity:.6;cursor:not-allowed}
.eb-doctbl{width:100%;font-size:12px;line-height:1.3333333;border-collapse:collapse}
.eb-doctbl th{padding:6px 0;font-size:10px;font-weight:700;text-transform:uppercase;text-align:left;color:var(--text-muted)}
.eb-doctbl td{padding:6px 0;vertical-align:middle}
.eb-doctbl tbody tr{border-top:1px solid var(--border)}
.eb-doctbl input[type=checkbox]{width:13px;height:13px;margin:0}
.eb-cg{margin-bottom:16px}.eb-cg-h{display:flex;align-items:baseline;gap:8px;margin-bottom:4px}
.eb-cg-l{font-size:10.5px;line-height:15.225px;font-weight:700;text-transform:uppercase;letter-spacing:0.025em;color:var(--text-muted)}
.eb-cg-a{margin-left:auto;border:0;background:transparent;border-radius:6px;padding:4px 9px;font-family:inherit;font-size:10px;line-height:14.5px;font-weight:600;color:var(--text-muted);cursor:pointer}.eb-cg-a:hover{background:var(--hover);color:var(--text)}
.eb-cg-c{display:flex;flex-wrap:wrap;gap:6px}.eb-cg-n{margin-top:4px;font-size:10.5px;line-height:15.225px;color:var(--text-muted)}
.eb-fb{border:1px solid var(--border);border-radius:6px;padding:4px 9px;font-family:inherit;font-size:11.5px;line-height:16.675px;font-weight:600;background:transparent;color:var(--text);cursor:pointer}.eb-fb:hover{background:var(--hover)}
.eb-fb.p{background:var(--text);border-color:transparent;color:var(--bg);display:inline-flex;align-items:center;gap:6px}.eb-fb.p:hover{background:var(--text);opacity:.9}.eb-fb.p:disabled{opacity:.5;cursor:not-allowed}
.eb-cbx{display:grid;place-items:center;width:15px;height:15px;flex:none;padding:0;border:1.5px solid var(--border-strong);border-radius:3px;background:var(--surface);color:#fff;cursor:pointer}
.eb-cbx[aria-checked=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-fg,#fff)}.eb-cbx:disabled{opacity:.5;cursor:not-allowed}
.eb-pl{border:0;background:transparent;padding:0;font:inherit;color:var(--eb-link);cursor:pointer}.eb-pl:hover{text-decoration:underline}.eb-pl:disabled{opacity:.4;pointer-events:none}
:root{--eb-link:oklab(0.4906 -0.0792063 -0.0230222)}:root[data-theme="dark"]{--eb-link:rgb(46,143,143)}
input.eb-fi36{height:36px;border-radius:8px;padding:0 10px;font-size:14px;background:transparent}
.eb-isel{height:32px;flex-shrink:0;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);padding:0 6px;font-family:inherit;font-size:11px}
.eb-fb.p.lg{border-radius:8px;padding:6px 12px;font-size:12px;line-height:16px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.eb-fb.nb{border-color:transparent}.eb-fb.nb:hover{background:var(--hover)}
.eb-trow{display:grid;grid-template-columns:minmax(120px,1fr) 118px 108px auto auto auto;align-items:center;gap:6px;border:1px solid var(--border);border-radius:9px;background:var(--bg);padding:6px}
.eb-tin{height:32px;width:100%;min-width:0;border:1px solid var(--border);border-radius:4px;background:transparent;color:var(--text);padding:0 8px;font-family:inherit;font-size:11px;outline:none}.eb-tin:focus{border-color:var(--accent)}
.eb-msw{position:relative;width:32px;height:18px;flex-shrink:0;border:0;border-radius:9999px;background:var(--border);padding:0;cursor:pointer;transition:background-color .15s}.eb-msw.on{background:var(--accent)}
.eb-msw span{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:9999px;background:#fff;transition:left .15s}.eb-msw.on span{left:16px}
.eb-trm{display:flex;width:28px;height:28px;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:var(--text-muted);cursor:pointer}.eb-trm:hover{background:var(--hover);color:var(--text)}
.eb-pop{position:absolute;left:0;top:100%;z-index:80;margin-top:4px;width:224px;max-height:256px;overflow-y:auto;padding:6px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:var(--shadow-md)}
.eb-pop-i{display:flex;align-items:center;gap:8px;border-radius:4px;padding:6px 8px;font-size:11.5px;cursor:pointer}.eb-pop-i:hover{background:var(--hover)}
.eb-fb.p{border:0}
.eb-fb.nb{border:0}
.eb-dg{display:grid;grid-template-columns:1fr 1fr;gap:12px}.eb-dg>div{min-width:0}
.eb-dl{display:block;margin-bottom:2px;font-size:10.5px;line-height:15.225px;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;color:var(--text-muted)}.eb-dl.req{color:var(--danger)}
.eb-dh{margin-top:3px;font-size:10.5px;line-height:15.225px;color:var(--text-muted)}
.eb-dpi{display:block;width:100%;height:34px;border:1px solid var(--border-strong);border-radius:8px;background:color-mix(in oklab,var(--accent) 4%,var(--surface));color:var(--text);padding:0 11px;font-family:inherit;font-size:13px;outline:none}.eb-dpi::placeholder{color:var(--text-faint)}.eb-dpi:focus{border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 3px var(--accent-soft)}
.eb-dbtn{display:flex;width:100%;height:32px;align-items:center;justify-content:space-between;border:1px solid var(--border);border-radius:6px;background:var(--surface);padding:4px 10px;font-family:inherit;font-size:13px;text-align:left;cursor:pointer}
.eb-tg{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--border);border-radius:12px;padding:9px 11px}
.eb-msw.st{background:var(--border-strong)}.eb-msw.st.on{background:var(--accent)}
.eb-drop{display:flex;width:100%;flex-direction:column;align-items:center;gap:4px;border:1px dashed var(--border-strong);border-radius:12px;background:color-mix(in oklab,var(--surface-2) 40%,transparent);padding:18px;color:var(--text-muted);font-family:inherit;font-size:11.5px;line-height:16.675px;cursor:pointer}
.eb-frow{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:12px;padding:10px 11px}
.eb-omo{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.4);padding:16px}
.eb-omd{width:100%;max-width:448px;border-radius:12px;border:1px solid var(--border);background:var(--surface);padding:20px;box-shadow:var(--shadow-lg)}
.eb-omx{border:0;background:transparent;color:var(--text-muted);cursor:pointer;font:inherit;padding:0}.eb-omx:hover{color:var(--text)}
.eb-of{display:flex;flex-direction:column;gap:6px;min-width:0}.eb-of label{font-size:12px;line-height:16px;font-weight:500;color:var(--text-muted)}.eb-of label.req{color:var(--danger)}.eb-of .er{font-size:11px;color:var(--danger)}
.eb-nck{width:13px;height:13px;margin:0;accent-color:var(--text)}
.eb-lrow{border-top:1px solid var(--border);cursor:pointer}.eb-lrow:hover{background:var(--hover)}
.btn.eb-b14 svg{width:14px;height:14px}
.eb-rmd{display:flex;max-height:90vh;width:100%;max-width:560px;flex-direction:column;overflow:hidden;border-radius:12px;background:var(--surface);box-shadow:var(--shadow-lg)}
.eb-gc2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.eb-gc3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.eb-gc2>*,.eb-gc3>*{min-width:0}
.eb-sel36{width:100%;height:36px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);padding:0 8px;font-family:inherit;font-size:14px}
.eb-ta36{display:block;width:100%;resize:vertical;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);padding:8px 10px;font-family:inherit;font-size:14px}
.eb-g3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.eb-g3>*{min-width:0}
input.eb-fi30,select.eb-fi30{height:30px}
/* c4: ERP "<Plus className='mr-1 size-3'/>" icon in sm buttons */
.hc-btn.sm{line-height:16px}.hc-btn svg.hc-plus12{width:12px;height:12px;margin-right:4px}
/* c4: ERP MyLeaveTab tables */
.hc-mlt{width:100%;border-collapse:collapse;font-size:12px;line-height:1.3333}.hc-mlt thead tr{background:var(--surface-2)}
.hc-mlt th{padding:8px 12px;text-align:left;font-size:10px;line-height:1.3333;font-weight:700;text-transform:uppercase;color:var(--text-muted)}
.hc-mlt td{padding:10px 12px}.hc-mlt tbody tr{border-top:1px solid var(--border)}.hc-mlt th.r,.hc-mlt td.r{text-align:right}
.hc-mlt .hc-chip{line-height:1.3333}.hc-mlt button{line-height:1.3333}
.hc-btn.xs svg{width:12px;height:12px}

/* recruitment add-candidate (ERP parity) */
.eb-fi36{height:36px;border-radius:6px;font-size:14px;background:transparent;padding:0 10px}
.eb-ac{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.eb-ac-sub{grid-column:span 2;margin-top:6px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.025em;color:var(--text-muted)}
.eb-ac>.eb-ac-sub:first-child{margin-top:0}
.eb-ac-f{gap:6px}.eb-ac-f .lb2{line-height:16px}
.eb-ac-seg{flex:1;border:1px solid var(--border);border-radius:6px;padding:6px 8px;text-align:center;font-size:12px;font-weight:500;line-height:16px;font-family:inherit;background:transparent;color:var(--text);cursor:pointer}
.eb-ac-seg.on{background:#6366f1;border-color:#6366f1;color:#fff}
.eb-ac-att{grid-column:span 2;border:1px solid var(--border);border-radius:8px;padding:10px}
.eb-ac-attr{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:6px;padding:8px}

.eb-ac-f .lb{margin-bottom:2px}.eb-ac-seg.on{background:var(--accent);border-color:var(--accent)}.eb-ac-att .lb{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.eb-ac-ph{box-sizing:border-box}
.eb-ac-ph{display:flex;height:32px;border:1px solid var(--border);border-radius:6px;background:var(--surface);overflow:hidden}
.eb-ac-cc{border:0;border-right:1px solid var(--border);background:transparent;color:var(--text);padding:0 10px;font-family:inherit;font-size:13px;cursor:pointer}
.eb-ph-i{flex:1;min-width:0;border:0;outline:0;background:transparent;padding:0 10px;font-family:inherit;font-size:13px;color:var(--text)}
.eb-ac-seg{border-radius:8px}.eb-ac select.eb-fi36{border-radius:8px}
.eb-md.eb-md-12{border-radius:12px}
.eb-md:has(.eb-ac){border-radius:12px}
.eb-md:has(.eb-ac) .eb-md-h{padding:16px 20px}
.eb-md:has(.eb-ac) .eb-md-h .t{font-size:14px;font-weight:700;line-height:20px}
.eb-md:has(.eb-ac) .eb-md-b{padding:20px}
.eb-md:has(.eb-ac) .eb-md-f{padding:12px 20px}
.eb-md:has(.eb-ac) .eb-md-h .s{margin-top:0}.eb-ac-sub.gap{margin-top:18px}

/* recruitment job drawer (ERP parity) */
.eb-jf{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.eb-jf .lb{display:block;margin-bottom:2px;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.eb-jf .er{font-size:11px;color:var(--danger)}
.eb-jg{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.eb-jg .eb-jf{margin-bottom:0}
.eb-ta{height:auto;min-height:64px;padding:8px 10px;resize:vertical;border-radius:6px;font-size:14px;background:transparent}
.eb-jbox{margin-bottom:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);padding:12px}
.eb-jrev{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:14px;font-size:11px}.eb-jrev .t{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.025em;color:var(--text-muted)}.eb-jrev .m{color:var(--text-muted)}
.eb-jh{display:flex;align-items:center;gap:6px;margin-bottom:6px;font-size:12px;font-weight:600;color:var(--text)}.eb-jh svg{width:14px;height:14px}
.eb-jc{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--border);border-radius:8px;padding:10px}.eb-jc.m{font-size:11px;color:var(--text-muted)}
.eb-jp{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:8px;padding:8px;text-align:left;background:transparent;color:var(--text);font-family:inherit;cursor:pointer}.eb-jp:hover{background:var(--hover)}
.eb-jpc{display:flex;width:18px;height:18px;flex-shrink:0;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:6px;color:#fff}.eb-jpc.on{background:#14b8a6;border-color:#14b8a6}.eb-jpc svg{width:12px;height:12px}
.eb-jf .lb.req{color:var(--danger)}.eb-dr-f .eb-fb{align-self:center}.eb-jf.first{margin-bottom:6px}.eb-jg.first{margin-bottom:18px}
.eb-jc,.eb-jp,.eb-jbox{border-radius:12px}.eb-ta{border-radius:8px}
.eb-fi36{font-weight:500}.eb-jf select.eb-fi36{padding:0 8px}.eb-dr-f .eb-fb.p svg{width:12px;height:12px}.eb-dr-f .eb-fb.p{align-self:center;height:auto}

/* candidate drawer tabs (ERP parity) */
.eb-cc{border:1px solid var(--border);border-radius:12px;padding:12px}
.eb-cch{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.025em;color:var(--text-muted)}.eb-cch svg{width:14px;height:14px}
.eb-cform{margin-bottom:12px;border:1px solid var(--border);border-radius:6px;background:color-mix(in srgb,var(--surface-2) 50%,transparent);padding:10px}
.eb-cf{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0}.eb-cf .lb2{font-size:12px;font-weight:500;color:var(--text-muted)}.eb-cf .rq{color:var(--danger)}
.eb-cci{border:1px solid var(--border);border-radius:12px;padding:10px}
.eb-in32{height:32px;font-size:12px;border-radius:8px;background:transparent;padding:0 8px}
.eb-cf .lb2.up{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}

/* training assign modal (ERP parity) */
.eb-as .lb{display:block;font-size:12px;font-weight:500;color:var(--text);margin-bottom:6px}
.eb-as-l{margin-top:6px;max-height:224px;overflow-y:auto;border:1px solid var(--border);border-radius:6px}
.eb-as-r{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--border);padding:8px 12px;font-size:12px;cursor:pointer}.eb-as-r:last-child{border-bottom:0}.eb-as-r:hover{background:color-mix(in srgb,var(--surface-2) 50%,transparent)}.eb-as-r.m{color:var(--text-muted);cursor:default}
.eb-md:has(.eb-as){border-radius:12px}.eb-md:has(.eb-as) .eb-md-h .t{font-size:14px;font-weight:700;line-height:20px}
.eb-md:has(.eb-as) .eb-md-f .eb-fb{font-size:12px;font-weight:500;line-height:16px;padding:4px 8px;border-radius:6px;background:var(--surface)}.eb-md:has(.eb-as) .eb-md-f .eb-fb.p{background:var(--text);border:1px solid var(--text)}
.eb-as .eb-fi36{font-weight:400;padding:0 8px}

/* Training course editor / question rows (ERP QuestionEditorRow) */
.hc-qr{border:1px solid var(--border);border-radius:12px;padding:10px}.hc-qr-h{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.hc-qr-n{display:flex;width:20px;height:20px;flex-shrink:0;align-items:center;justify-content:center;border-radius:999px;background:var(--surface-2);font-size:10px;font-weight:700}
.hc-qr-in{height:32px;border-radius:6px;border:1px solid var(--border);background:transparent;color:var(--text);padding:0 8px;font-family:inherit;font-size:12px;outline:none;min-width:0}
.hc-qr-sel{height:32px;border-radius:6px;border:1px solid var(--border);background:transparent;color:var(--text);padding:0 6px;font-family:inherit;font-size:11px}
.hc-qr-m{font-size:10px;color:var(--text-muted)}.hc-qr-t{margin-bottom:4px;font-size:10px;color:var(--text-muted)}
.hc-qr-x{display:inline-flex;border:0;background:transparent;border-radius:6px;padding:4px;color:var(--text-muted);cursor:pointer}.hc-qr-x:hover{background:var(--hover);color:var(--text)}.hc-qr-x svg{width:12px;height:12px}
.hc-qr-o{display:flex;flex-direction:column;gap:4px}.hc-qr-or{display:flex;align-items:center;gap:8px}
.hc-qr-ck{display:flex;width:18px;height:18px;flex-shrink:0;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:6px;background:transparent;color:#fff;padding:0;cursor:pointer}.hc-qr-ck.r{border-radius:999px}.hc-qr-ck.on{background:var(--accent);border-color:var(--accent)}.hc-qr-ck svg{width:12px;height:12px}
.hc-qr-add{margin-top:6px;display:inline-flex;align-items:center;gap:6px}.hc-qr-add svg,.hc-ce-h .eb-fb svg{width:10px;height:10px}
.hc-ce{display:flex;flex-direction:column;gap:12px}.hc-ce2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hc-ce3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.hc-ta{min-height:54px;resize:vertical}.hc-sw{width:24px;height:24px;border-radius:6px;border:2px solid transparent;padding:0;cursor:pointer}
.hc-hint{margin:4px 0 0;font-size:11px;color:var(--text-muted)}
.hc-ce-h{display:flex;align-items:center;gap:8px;margin-bottom:8px}.hc-ce-l{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.025em;color:var(--text-muted)}.hc-ml{margin-left:auto}
.hc-ce-col{display:flex;flex-direction:column;gap:8px}.hc-empty{border:1px dashed var(--border);border-radius:8px;padding:12px;text-align:center;font-size:11.5px;color:var(--text-muted)}
.hc-chk{display:inline-flex;height:32px;align-items:center;gap:4px;border:1px solid var(--border);border-radius:6px;padding:0 8px;font-size:10.5px;font-weight:600;color:var(--text);text-decoration:none;flex-shrink:0}.hc-chk svg{width:12px;height:12px}
.eb-fb.hc-del{color:var(--danger);display:inline-flex;align-items:center;gap:6px}.hc-delc{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:500;color:var(--text-muted)}.eb-fb.hc-delp{background:var(--danger);color:#fff;border-color:transparent}

.hc-ce .eb-fi,.hc-ce3 .eb-fi{font-size:14px;font-weight:500;border-radius:8px;background:transparent}.hc-ce select.eb-fi{font-size:12px;padding-left:8px}.hc-ce textarea.eb-fi{height:58px}
.hc-sw{border-radius:8px}.hc-qr-in,.hc-qr-sel{border-radius:8px}.hc-qr-x{border-radius:8px}.hc-qr-ck{color:var(--text)}
.eb-dr-f .eb-fb.p{height:27px}
.eb-md-f .eb-fb.p.hs{font-size:12px;font-weight:500;line-height:16px;padding:4px 8px;border:1px solid var(--text)}.eb-md-f .eb-fb.p.hs svg{width:12px;height:12px}
.eb-md:has(.eb-as) .eb-md-x{padding:0;width:auto;height:20px;border-radius:0;margin-top:-5px;margin-right:-1px}

.hc-qr-add,.hc-ce-h .eb-fb{display:inline-flex;align-items:center;gap:6px}.hc-hint{font-weight:500}.hc-ce .hc-hint{margin-top:-2px}.hc-ce3{margin-bottom:16px}.hc-ce3+.hc-hint{font-size:10.5px;line-height:15.225px}.eb-md-f .eb-fb.p.hs{height:26px}
.hc-am{width:100%;max-width:448px;box-sizing:border-box;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px;box-shadow:var(--shadow-lg,0 20px 50px rgba(0,0,0,.2))}
.hc-am-h{display:flex;justify-content:space-between;margin-bottom:4px}.hc-am-l{display:flex;gap:10px}.hc-am-i{display:flex;width:32px;height:32px;align-items:center;justify-content:center;border-radius:8px;background:var(--accent-soft);color:var(--accent)}.hc-am-i svg{width:16px;height:16px}
.hc-am-t{font-size:13.5px;font-weight:600;line-height:19.575px}.hc-am-s{font-size:11px;line-height:16px;color:var(--text-muted)}.hc-am-x{border:0;background:none;padding:0;height:20px;color:var(--text-muted);cursor:pointer;font-size:13.5px}
.hc-am-b{margin-top:12px;display:flex;flex-direction:column}.hc-am-lb{margin-top:2px;font-size:12px;font-weight:500;line-height:16px;color:var(--danger)}
.hc-am-in{margin-top:6px;height:36px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);padding:0 8px;font-family:inherit;font-size:14px;outline:none}
.hc-am-ls{margin-top:6px;height:224px;overflow-y:auto;border:1px solid var(--border);border-radius:8px}.hc-am-r{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:12px;line-height:16px;cursor:pointer}.hc-am-r.m{color:var(--text-muted)}
.hc-am-n{margin-top:8px;font-size:11px;line-height:15.95px;color:var(--text-muted)}.hc-am-f{margin-top:16px;padding-top:12px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px}
.hc-am-fb{font-size:12px;font-weight:500;line-height:16px;padding:4px 8px;border-radius:6px;display:inline-flex;align-items:center;gap:6px}.eb-fb.p.hc-am-fb{border:1px solid var(--text)}
.hc-ce3+.hc-hint{font-weight:400}.hc-am-t{font-size:14px;font-weight:700;line-height:20px}.hc-am-lb{align-self:flex-start;line-height:15px}.hc-am-fb{background:var(--surface)}.eb-fb.p.hc-am-fb{background:var(--text)}
.hc-qr-in{line-height:16px}

/* Recruitment agency / portal editors */
.eb-rg2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.eb-rg3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.eb-rc{font-size:14px;font-weight:500;border-radius:8px;background:transparent}.eb-rc.eb-rs{font-size:12px;padding-left:8px}.eb-rph{position:relative}.eb-rpi{height:32px;border-radius:6px;padding-left:82px;font-size:13px}.eb-rcc{position:absolute;left:1px;top:1px;bottom:1px;width:74px;border:0;border-right:1px solid var(--border);background:transparent;color:var(--text);font-family:inherit;font-size:13px;cursor:pointer}
.eb-spc{height:30px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text-muted);padding:0 10px;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer}.eb-spc:hover{border-color:var(--danger);color:var(--danger)}.eb-spc.on{background:var(--accent);border-color:var(--accent);color:#fff}
.eb-swr{line-height:16px;display:flex;align-items:center;gap:8px;margin-top:4px;font-size:12px;cursor:pointer}.eb-swb{position:relative;width:32px;height:18px;flex-shrink:0;border:0;border-radius:999px;padding:0;background:var(--border-strong,#c9ccd2);cursor:pointer}.eb-swb.on{background:var(--accent)}.eb-swb span{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:999px;background:#fff;transition:left .15s}.eb-swb.on span{left:16px}
.eb-rsw{width:26px;height:26px;border-radius:8px;border:2px solid transparent;padding:0;cursor:pointer}.eb-fb.eb-rm{color:var(--danger);display:inline-flex;align-items:center;gap:6px}

/* Recruitment offer / referral drawers */
.eb-rrow{display:flex;align-items:center;gap:8px;margin-bottom:12px}.eb-ml{margin-left:auto}
.eb-bx{border:1px solid var(--border);border-radius:8px;padding:12px;margin-top:12px}.eb-bx.eb-bxm{border:0;background:var(--surface-2)}.eb-bx-t{margin-bottom:8px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.025em;color:var(--text-muted);line-height:16px}
.eb-rrow+.eb-bx{margin-top:0}.eb-bx-t[style]{margin-bottom:0}
.eb-fxg{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:11px;line-height:16px}.eb-fx{min-width:0;overflow-wrap:anywhere}.eb-fx .m{color:var(--text-muted)}
.eb-fb.eb-acc{background:#0d9488;color:#fff;border-color:transparent}.eb-fb.eb-mut{color:var(--text-muted);border-color:var(--border)}.eb-fb.eb-dng{color:var(--danger);border-color:var(--danger)}.eb-fb.eb-dng2{align-self:flex-end;background:var(--danger);color:#fff;border-color:transparent;font-size:11px;padding:4px 10px;border-radius:6px}
.eb-bx-lb{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.eb-bx-ta{min-height:64px;width:100%;box-sizing:border-box;resize:vertical;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);padding:8px;font-family:inherit;font-size:12px}
.eb-adot{display:flex;width:20px;height:20px;flex-shrink:0;align-items:center;justify-content:center;border-radius:999px;background:#ccfbf1;color:#0f766e}.eb-adot svg{width:10px;height:10px}
.eb-pg{margin-top:6px;height:6px;border-radius:999px;background:var(--border);overflow:hidden}.eb-pg div{height:100%;background:#14b8a6}
.eb-ms{display:flex;align-items:center;gap:8px;padding:10px 0}.eb-msd{display:flex;width:24px;height:24px;flex-shrink:0;align-items:center;justify-content:center;border-radius:999px;background:var(--surface-2);color:var(--text-muted)}.eb-msd.on{background:#14b8a6;color:#fff}.eb-msd svg{width:12px;height:12px}
.eb-rrow .eb-fb{display:inline-flex;align-items:center;gap:6px}.eb-rrow svg{width:12px;height:12px}.eb-bx-t,.eb-bx-lb{line-height:15.95px}
.eb-fb.eb-acc{background:#367752;border:0}.eb-fb.eb-dng{color:#a54341;border-color:#a54341}
.eb-fxg{line-height:15.95px}
.eb-fb.eb-cf{color:var(--text-muted);display:inline-flex;align-items:center;gap:6px;height:29px;box-sizing:border-box}.eb-fb.p.eb-cf{color:var(--bg);margin-left:auto}.eb-cf:disabled{opacity:.5;cursor:not-allowed}
.eb-fb.eb-cf{flex-shrink:0;white-space:nowrap}.eb-fb.eb-cf svg{width:12px;height:12px}
.eb-dr-f .eb-fb.p.eb-cf{height:29px;margin-left:0}

/* Recruitment analytics (ERP parity) */
.eb-an-filters{margin-bottom:14px;border:1px solid var(--border);border-radius:8px;background:var(--surface);padding:12px}
.eb-an-filters .row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.eb-an-filters .fld{display:flex;flex-direction:column;gap:4px}
.eb-an-filters .fl{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.025em;color:var(--text-muted)}
.eb-an-filters .pre{margin-left:auto;display:flex;gap:4px;padding-bottom:2px}
.eb-an-filters .pre button{border:1px solid var(--border);border-radius:6px;padding:4px 9px;font-size:11.5px;font-weight:600;color:var(--text);background:transparent;cursor:pointer;font-family:inherit}
.eb-an-filters .pre button:hover{background:var(--surface-2)}
.eb-an-filters .sc{margin-top:10px;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.eb-an-g2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.eb-an-g3{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-bottom:14px}
.eb-an-card{border:1px solid var(--border);border-radius:8px;background:var(--surface);padding:16px}
.eb-an-ch{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.eb-an-ch .ic{width:16px;height:16px;color:var(--text-muted);display:inline-flex}
.eb-an-ch .ic svg{width:100%;height:100%}
.eb-an-ch h3{font-size:14px;font-weight:600;color:var(--text);margin:0;line-height:20px}
.eb-an-bars{display:flex;flex-direction:column;gap:8px}
.eb-an-bl{display:flex;align-items:baseline;gap:8px;font-size:11.5px;margin-bottom:3px}
.eb-an-bl span:first-child{font-weight:600;color:var(--text)}
.eb-an-bl .m{margin-left:auto;font-weight:400;color:var(--text-muted)}
.eb-an-track{height:7px;border-radius:9999px;background:var(--surface-2);overflow:hidden}
.eb-an-fill{height:100%;border-radius:9999px;background:var(--accent)}
.eb-an-fill.teal{background:var(--ok)}
.eb-an-minis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.eb-an-mini{border:1px solid var(--border);border-radius:8px;padding:8px 10px;text-align:center}
.eb-an-mini .v{font-size:16px;line-height:24px;font-weight:800}
.eb-an-mini .v.teal{color:var(--ok)}.eb-an-mini .v.amber{color:var(--warn)}.eb-an-mini .v.crimson{color:var(--danger)}.eb-an-mini .v.indigo{color:var(--accent)}
.eb-an-mini .l{font-size:10.5px;line-height:15.225px;color:var(--text-muted)}
.eb-an-tbl{width:100%;font-size:12px;line-height:16px;border-collapse:collapse}
.eb-an-tbl thead tr{background:var(--surface-2)}.eb-an-tbl th{line-height:14.667px;padding:8px 12px;text-align:left;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.025em;color:var(--text-muted)}
.eb-an-tbl td{padding:10px 12px;border-top:1px solid var(--border)}
.eb-an-tbl td>div:nth-child(2){line-height:14px}
.eb-an-leg{display:flex;flex-direction:column;gap:6px;font-size:11.5px;padding-left:3px}.eb-an-leg span{font-weight:600}
.eb-an-filters input.eb-fi32{height:36px;font-size:12px}
.eb-fb.eb-cf{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:0 0 auto;min-width:auto;flex-direction:row}.eb-fb.eb-cf>span{flex-shrink:0}
.eb-md.eb-md-offer{border-radius:12px;border:0}
.eb-md.eb-md-offer .lb2{line-height:16px}
.eb-md.eb-md-offer .eb-md-h{padding:16px 20px}
.eb-md.eb-md-offer .eb-md-h .t{font-size:14px;font-weight:700;line-height:20px}
.eb-md.eb-md-offer .eb-md-h .s{margin-top:0}
.eb-md.eb-md-offer .eb-md-b{padding:20px}
.eb-md.eb-md-offer .eb-md-f{padding:12px 20px}
.eb-md.eb-md-offer .eb-md-f svg{margin-right:4px}
/* hc-am parity: block body, inline label, bordered rows (ERP AssignCourseModal) */
.hc-am-b{display:block}.hc-am-b .hc-am-lb{display:inline;line-height:16px}.hc-am-r{border-bottom:1px solid var(--border)}.hc-am-r:last-child{border-bottom:0}.hc-am-r input[type=checkbox]{margin:0}
.hc-am-in{display:block;width:100%}
/* candidate drawer call-notes textarea parity (ERP: rows=2 text-xs px-2 py-1.5 rounded-md bg-transparent) */
.eb-cform textarea.eb-in{min-height:0;height:46px;background:transparent;border-radius:8px;padding:6px 8px;font-size:12px}

/* incentives overlays */
.hc-ladder{display:flex;flex-direction:column;gap:4px}.hc-ladder-r{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--border);border-radius:6px;padding:6px 8px;font-size:12px;line-height:16px}.hc-ladder-r.on{border-color:var(--teal,#14b8a6);background:color-mix(in srgb,var(--teal,#14b8a6) 10%,transparent)}
.hc-ladder-h{margin-bottom:6px;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted)}
.hc-stepper{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px}.hc-stepdot{display:flex;width:20px;height:20px;align-items:center;justify-content:center;border-radius:50%;font-size:10px;font-weight:700;background:var(--surface-2);color:var(--text-muted)}.hc-stepdot.on{background:#14b8a6;color:#fff}.hc-stepbar{width:32px;height:2px;background:var(--border)}.hc-stepbar.on{background:#14b8a6}
.hc-modal:has(.hc-rm-mark){border-radius:12px}.hc-modal:has(.hc-rm-mark) .hc-modal-h{padding:16px 20px}.hc-modal:has(.hc-rm-mark) .hc-modal-h>div:first-child>div>div:first-child{font-size:14px;font-weight:700;line-height:20px}.hc-modal:has(.hc-rm-mark) .hc-modal-b{padding:20px}
.hc-modal:has(.hc-rm-mark) .hc-modal-h>div:first-child>div>div:first-child{font-size:14px!important;font-weight:700!important;line-height:20px}.hc-modal:has(.hc-rm-mark) .hc-modal-h .hc-muted{font-size:12px!important;line-height:16px;margin-top:0!important}.hc-modal:has(.hc-rm-mark) .hc-up.hc-field>label{font-size:10.5px;font-weight:700;letter-spacing:.525px;line-height:15.225px}
.hc-drw-b:has(.hc-inc-mark) .hc-facts .k{font-weight:700;letter-spacing:.525px;font-size:10.5px}.hc-drw-b:has(.hc-inc-mark) .hc-facts .v{font-size:13px;line-height:18.85px}.hc-ladder-h{font-weight:600;letter-spacing:.2625px}

/* parity: lg select clear button 20px / 4px radius, right 6px */
.eb-ss.lg .cl{right:6px;width:20px;height:20px;border-radius:4px}

/* performance parity (modals/drawers mirror ERP Tailwind layout) */
.hc-pf-mark{display:none}
.hc-modal:has(.hc-pf-mark){border-radius:12px;overflow:hidden}
.hc-modal:has(.hc-pf-mark) .hc-modal-h{padding:16px 20px;align-items:flex-start}
.hc-modal:has(.hc-pf-mark) .hc-modal-h>div:first-child>div>div:first-child{font-size:14px!important;font-weight:700!important;line-height:20px}
.hc-modal:has(.hc-pf-mark) .hc-modal-h .hc-muted{font-size:11px!important;line-height:16px;margin-top:2px!important}
.hc-modal:has(.hc-pf-mark) .hc-x{width:auto;height:auto;border-radius:0;font-size:13.5px;line-height:20px}
.hc-modal:has(.hc-pf-mark) .hc-x svg{display:none}.hc-modal:has(.hc-pf-mark) .hc-x::after{content:"\2715"}
.hc-modal:has(.hc-pf-mark) .hc-modal-b{padding:16px 20px}
.hc-modal:has(.hc-pf-mark) .hc-field,.hc-drw-b:has(.hc-pf-mark) .hc-field{margin-bottom:0;gap:6px}
.hc-modal:has(.hc-pf-mark) .hc-field>label,.hc-drw-b:has(.hc-pf-mark) .hc-field>label,.hc-pf-lab{font-size:12px;font-weight:500;line-height:16px;color:var(--text-muted)}
.hc-modal:has(.hc-pf-mark) .hc-field>label span{color:var(--danger)}
.hc-modal:has(.hc-pf-mark) .hc-pf-lab{line-height:15px}
.hc-pf-lab2{font-size:12px;font-weight:500;line-height:16px;color:var(--text-muted)}
.hc-modal:has(.hc-pf-mark) .hc-sel{height:36px;border-radius:8px;font-size:14px;padding:4px 8px;background:transparent}
.hc-modal:has(.hc-pf-mark) .hc-in{background:var(--surface)}
.hc-drw-b:has(.hc-pf-mark) .hc-facts .v .hc-chip{line-height:15.95px}
.hc-modal:has(.hc-pf-mark) .hc-modal-f{padding:12px 20px}
.hc-pf-g2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hc-pf-wrap{display:flex;flex-wrap:wrap;gap:8px}
.hc-pf-sum{margin-top:16px;border:1px solid var(--border);border-radius:8px;background:color-mix(in srgb,var(--surface-2) 40%,transparent);padding:12px}
.hc-pf-sumh{margin-bottom:6px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.025em;color:var(--text-muted);line-height:16px}
.hc-pf-pill{border-radius:9999px;background:var(--surface);padding:2px 8px;line-height:14px}
.hc-pf-mode{flex:1;border-radius:8px;border:1px solid var(--border);background:transparent;color:var(--text);padding:6px 12px;font-size:12px;font-weight:600;line-height:16px;cursor:pointer}.hc-pf-mode:hover{background:var(--hover)}.hc-pf-mode.on{background:var(--text);border-color:var(--text);color:var(--bg)}
.hc-pf-lk{border:0;background:transparent;padding:0;font-size:11px;font-weight:600;color:var(--text-muted);cursor:pointer;white-space:nowrap}.hc-pf-lk:hover{color:var(--text)}
.hc-pf-pick{border:1px solid var(--border);border-radius:8px}
.hc-pf-pick-h{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--border);padding:6px 8px;color:var(--text-muted)}
.hc-pf-pick-h input{width:100%;height:16px;padding:0;line-height:16px;border:0;outline:0;background:transparent;font-size:12px;color:var(--text);font-family:inherit}
.hc-pf-pick-b{max-height:160px;overflow:auto;padding:6px}
.hc-pf-pick-b label{display:flex;align-items:center;gap:8px;border-radius:4px;padding:4px 6px;font-size:12px;line-height:16px;cursor:pointer}.hc-pf-pick-b label:hover{background:var(--hover)}
.hc-pf-rm{border:0;background:transparent;padding:0;opacity:.6;cursor:pointer;color:inherit;display:inline-flex}.hc-pf-rm:hover{opacity:1}
.hc-pf-ms3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:20px}
.hc-pf-ms{border:1px solid var(--border);border-radius:12px;padding:16px;text-align:center}
.hc-drw-b:has(.hc-pf-mark) .hc-field>label span{color:var(--danger)}
.hc-drw-b:has(.hc-pf-mark) .hc-in{border-radius:8px;font-size:14px}
.hc-drw-b:has(.hc-pf-mark) input.hc-in:not([type=range]){height:32px}
.hc-drw-b:has(.hc-pf-mark) textarea.hc-in{padding:6px 8px;font-size:14px;line-height:20px;background:transparent}
.hc-drw-b:has(.hc-pf-mark) .hc-x,.hc-drw:has(.hc-pf-mark) .hc-x{border-radius:8px}
.hc-drw:has(.hc-pf-mark) .hc-x{border-radius:8px}
.hc-drw-b:has(.hc-pf-mark) .hc-facts{gap:12px 16px;margin-bottom:0}
.hc-drw-b:has(.hc-pf-mark) .hc-facts>div{margin-bottom:12px}
.hc-drw-b:has(.hc-pf-mark) .hc-facts .k{font-weight:700;letter-spacing:.525px;font-size:10.5px;line-height:15.225px;margin-bottom:2px}
.hc-drw-b:has(.hc-pf-mark) .hc-facts .v{font-size:13px;line-height:18.85px}
.hc-pf-fkl{font-size:10.5px;font-weight:700;letter-spacing:.525px;text-transform:uppercase;color:var(--text-muted);line-height:15.225px}
.hc-pf-bar{height:6px;overflow:hidden;border-radius:9999px;background:var(--surface-2)}.hc-pf-bar>div{height:100%}

/* payroll run wizard parity (ERP RunPayrollModal) */
.hc-pr-mark{display:none}
.hc-modal:has(.hc-pr-mark){border-radius:12px;overflow:hidden}
.hc-modal:has(.hc-pr-mark) .hc-modal-h{padding:16px 20px;align-items:flex-start}
.hc-modal:has(.hc-pr-mark) .hc-modal-h>div:first-child>div>div:first-child{font-size:14px!important;font-weight:700!important;line-height:20px}
.hc-modal:has(.hc-pr-mark) .hc-modal-h .hc-muted{font-size:11px!important;line-height:16px;margin-top:2px!important}
.hc-modal:has(.hc-pr-mark) .hc-x{width:32px;height:32px;border-radius:8px;padding:0}
.hc-modal:has(.hc-pr-mark) .hc-modal-b{padding:20px}
.hc-modal:has(.hc-pr-mark) .hc-modal-f{padding:12px 20px}
.hc-pr-lab{font-size:10.5px;font-weight:700;letter-spacing:.525px;text-transform:uppercase;line-height:15.225px;color:var(--text-muted)}
.hc-pr-dot{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;border-radius:999px;font-size:10px;font-weight:700;background:var(--surface-2);color:var(--text-muted)}
.hc-pr-dot.cur{background:var(--accent);color:#fff}.hc-pr-dot.done{background:var(--ok);color:#fff}
.hc-pr-opt{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border-radius:var(--radius-lg);padding:10px 12px;cursor:pointer;border:1px solid var(--border);background:transparent;color:var(--text)}
.hc-pr-opt:hover{background:color-mix(in srgb,var(--surface-2) 50%,transparent)}
.hc-pr-opt.on{border-color:var(--accent);background:var(--surface-2)}
.hc-pr-rad{display:inline-flex;width:16px;height:16px;flex-shrink:0;align-items:center;justify-content:center;border-radius:999px;border:2px solid var(--border)}
.hc-pr-opt.on .hc-pr-rad{border-color:var(--accent)}.hc-pr-rad>span{width:8px;height:8px;border-radius:999px;background:var(--accent)}
.hc-pr-month{display:block;width:100%;height:36px;border-radius:8px;border:1px solid var(--border);background:transparent;color:var(--text);padding:0 8px;font:inherit;font-size:14px;line-height:20px}
.hc-pr-scope{margin-top:12px;display:flex;align-items:center;gap:8px;border-radius:12px;background:var(--surface-2);padding:12px;font-size:12px;line-height:16px}
.hc-pr-ghost{border:1px solid transparent;background:transparent;color:var(--text-muted);font:inherit;font-size:12px;line-height:16px;font-weight:500;height:26px;padding:0 8px;border-radius:6px;cursor:pointer}.hc-pr-ghost:hover{background:var(--surface-2);color:var(--text)}
.hc-pr-tbl{width:100%;font-size:12px;line-height:16px;border-collapse:collapse}
.hc-pr-tbl th{padding:8px;font-weight:600;text-align:left;border-bottom:1px solid var(--border)}
.hc-pr-tbl td{padding:8px;border-bottom:1px solid var(--border)}.hc-pr-tbl tr:last-child td{border-bottom:0}
.hc-pr-sum{margin-top:10px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px;font-size:12px;line-height:16px;background:var(--surface-2);border-radius:8px}
/* payroll drawers parity (run + payslip) */
.hc-drw-b:has(.hc-pr-mark) .hc-facts{gap:12px 16px;margin-bottom:0}
.hc-drw-b:has(.hc-pr-mark) .hc-facts>div{margin-bottom:12px}
.hc-drw-b:has(.hc-pr-mark) .hc-facts .k{font-weight:700;letter-spacing:.525px;font-size:10.5px;line-height:15.225px;margin-bottom:2px}
.hc-pr-chain{border:1px solid var(--border);border-radius:12px;padding:0 12px}
.hc-drw:has(.hc-pr-mark) .hc-drw-f .hc-btn{height:27px;padding:4px 9px;border-radius:6px;font-size:11.5px;line-height:16.675px;font-weight:600;color:var(--text-muted);background:transparent;border-color:var(--border)}
.hc-drw:has(.hc-pr-mark) .hc-drw-f .hc-btn[style*=danger]{color:color-mix(in srgb,var(--danger) 83%,#000)!important}
.hc-drw:has(.hc-pr-mark) .hc-drw-f .hc-btn.primary{background:var(--text);border-color:var(--text);color:var(--bg)}
.hc-drw:has(.hc-pr-slip) .hc-drw-f .hc-btn{height:26px;padding:0 8px;font-size:12px;line-height:16px;font-weight:500;color:var(--text);background:var(--surface)}
.hc-drw:has(.hc-pr-slip) .hc-drw-f .hc-btn.primary{background:var(--text);border-color:var(--text);color:var(--bg)}
.hc-drw:has(.hc-pr-ag) .hc-drw-f .hc-btn{height:27px;padding:4px 9px;border-radius:6px;font-size:11.5px;line-height:16.675px;font-weight:600;color:var(--text);background:transparent;border-color:var(--border)}.hc-drw:has(.hc-pr-ag) .hc-drw-f .hc-btn.primary{background:var(--text);border-color:var(--text);color:var(--bg)}
.hc-drw-b:has(.hc-pr-ag) .hc-facts .v{font-size:13px;line-height:18.85px}.hc-drw:has(.hc-pr-ag) .hc-drw-f .hc-btn.primary{border-width:0;padding:4px 10px}
.hc-panel:has(.hc-inc-mark) .hc-facts .k,.hc-box:has(.hc-inc-mark) .hc-facts .k{font-weight:700;letter-spacing:.525px;font-size:10.5px}.hc-panel:has(.hc-inc-mark) .hc-facts .v,.hc-box:has(.hc-inc-mark) .hc-facts .v{font-size:13px;line-height:18.85px}
:root[data-theme="dark"] .hrs-inline-link { color: rgb(165,180,252) !important; }
