/* =========================================================
   Rosterly design system — PLAN-DESIGN-1 foundation.
   Professional B2B SaaS look: calm, trustworthy, disciplined
   color use. StockCount orange brand LOCKED.
   Token contract (do NOT rename): --c-brand, --c-ink,
   --radius, --ring, --shadow-*, --sidebar-* ...
   Legacy aliases (--bg, --text, --accent ...) kept for older
   files; they resolve to the contract tokens.
========================================================= */

/* ---------- fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* typography */
  --font-sans: 'Manrope', system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-sans);
  --font-nums: var(--font-sans);

  /* brand */
  --c-brand: #F2741A;
  --c-brand-deep: #DD6310;
  --c-brand-soft: rgba(242, 116, 26, .08);

  /* status */
  --c-ok: #22c55e;
  --c-ok-soft: rgba(34, 197, 94, .10);
  --c-danger: #dc2626;
  --c-warn: #d97706;
  --c-info: #2563eb;

  /* neutrals */
  --c-ink: #16323a;
  --c-muted: #5a6a70;
  --c-faint: #8b9ba1;
  --c-canvas: #f4f5f7;
  --c-surface: #ffffff;
  --c-line: #e4e6e9;
  --c-line-strong: #cfd4d8;

  /* shape & elevation */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(22, 50, 58, .06);
  --shadow-md: 0 4px 16px rgba(22, 50, 58, .10);
  --ring: 2px solid color-mix(in srgb, var(--c-brand) 60%, transparent);

  /* sidebar */
  --sidebar-bg: #12272e;
  --sidebar-ink: #cfe0e6;
  --sidebar-active: rgba(255, 255, 255, .08);

  /* spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;

  /* motion */
  --tr-fast: 130ms ease;

  /* ----- legacy aliases (older files depend on these) ----- */
  --bg: var(--c-canvas);
  --surface: var(--c-surface);
  --border: var(--c-line);
  --border-strong: var(--c-line-strong);
  --text: var(--c-ink);
  --text-muted: var(--c-muted);
  --text-faint: var(--c-faint);
  --muted: var(--c-muted);
  --ink: var(--c-ink);
  --faint: var(--c-faint);
  --accent: var(--c-brand);
  --accent-deep: var(--c-brand-deep);
  --accent-soft: #fce9db; /* solid tint for backgrounds where rgba stacks badly */
  --success: var(--c-ok);
  --danger: var(--c-danger);
  --warning: var(--c-warn);
  --info: var(--c-info);
  --sidebar-text: var(--sidebar-ink);
  --sidebar-text-strong: #ffffff;
  --hover-row: #f0f2f4;
  --grad-brand: linear-gradient(135deg, var(--c-brand-deep), var(--c-brand));
  --grad-brand-deep: linear-gradient(160deg, #C2560C, var(--c-brand));
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--c-canvas);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }

.kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}
.num, td.num, .tabular { font-family: var(--font-nums); font-variant-numeric: tabular-nums; }

a { color: var(--c-brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.muted { color: var(--c-muted); }
.mono { font-family: ui-monospace, Consolas, monospace; }
.grow { flex: 1 1 auto; }
.mt-2 { margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-ink);
  cursor: pointer;
  transition: background var(--tr-fast), border-color var(--tr-fast),
    box-shadow var(--tr-fast), color var(--tr-fast);
}
.btn:hover { background: #f3f4f6; }
.btn:active { background: #eceef0; }
.btn:focus-visible { box-shadow: var(--ring); }
.btn:disabled { opacity: .45; cursor: default; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.btn-primary:hover { background: var(--c-brand-deep); border-color: var(--c-brand-deep); }
.btn-primary:active { background: #c2560c; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(22, 50, 58, .06); }
.btn-ghost:active { background: rgba(22, 50, 58, .10); }
.btn-danger-soft { background: #fdecec; border-color: transparent; color: #b91c1c; }
.btn-danger-soft:hover { background: #fbdddd; }
.btn-danger { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-sm { padding: 4px 10px; font-size: 12px; gap: 5px; }
.btn-sm svg { width: 14px; height: 14px; }

/* ---------- form fields ---------- */
.field { margin-bottom: 12px; }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--c-muted);
}
.input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--c-ink);
  background: var(--c-surface);
  min-width: 0;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
select.input { padding-right: 26px; }
textarea.input { height: auto; padding: 7px 10px; resize: vertical; }
.input::placeholder { color: var(--c-faint); }
.input:hover { border-color: #b9c1c7; }
.input:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: var(--ring);
}
.field-error { color: var(--c-danger); font-size: 12px; margin-top: 4px; }
.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.form-row > label { flex: 0 0 auto; font-size: 13px; font-weight: 600; }

/* ---------- chips / badges / avatars ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip-clickable { cursor: pointer; }
.chip-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0 0 1px;
  color: inherit;
  opacity: .65;
}
.chip-remove:hover { opacity: 1; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  flex: none;
}

/* ---------- tables ---------- */
.table-wrap {
  overflow: auto;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table.rt { border-collapse: collapse; width: 100%; font-size: 13px; }
.rt th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fafbfc;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-muted);
  font-weight: 700;
  padding: 8px 12px;
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}
.rt td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.rt tr:last-child td { border-bottom: none; }
.rt-row-clickable { cursor: pointer; }
.rt-row-clickable:hover td { background: var(--hover-row); }

/* ---------- filter bar / dropdowns / tabs ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-bar-spacer { flex: 1 1 auto; }
.dropdown { position: relative; }
.dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  color: var(--c-ink);
  transition: background var(--tr-fast), border-color var(--tr-fast);
}
.dd-trigger:hover { background: #f3f4f6; }
.dd-trigger.active { border-color: var(--c-brand); color: var(--c-brand-deep); background: var(--c-brand-soft); }
.dd-caret { font-size: 9px; opacity: .7; }
.dd-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 170px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 4px;
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
}
.dd-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 6px 9px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  color: var(--c-ink);
}
.dd-item:hover { background: #f3f4f6; }
.dd-item.selected { color: var(--c-brand-deep); font-weight: 600; }
.dd-check { margin-left: auto; font-size: 11px; }

.tabs {
  display: inline-flex;
  background: #eceef0;
  border-radius: var(--radius-sm);
  padding: 2px;
}
.tab {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  color: var(--c-muted);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.tab.active { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-sm); font-weight: 600; }

/* ---------- modal / toast ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 39, 46, .45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px;
  z-index: 100;
}
.modal-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 480px;
  max-width: 100%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  padding: 16px 20px 10px;
}
.modal-title { font-size: 15px; font-weight: 700; flex: 1 1 auto; }
.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--c-muted);
  padding: 0 2px;
  border-radius: 4px;
}
.modal-close:hover { color: var(--c-ink); }
.modal-body { padding: 4px 20px 16px; overflow-y: auto; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--c-line);
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sidebar-bg);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  max-width: 340px;
}
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand); flex: none; }
.toast-success .toast-dot { background: var(--c-ok); }
.toast-danger .toast-dot { background: var(--c-danger); }

/* ---------- empty state ---------- */
.empty-state {
  text-align: center;
  padding: 44px 20px;
  background: var(--c-surface);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--radius);
}
.empty-glyph {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--c-faint);
}
.empty-glyph svg { width: 32px; height: 32px; }
.empty-title { font-size: 15px; font-weight: 700; }
.empty-hint { font-size: 13px; color: var(--c-muted); margin-top: 4px; }

/* ---------- app shell / sidebar ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  flex: none;
  background: var(--sidebar-bg);
  color: var(--sidebar-ink);
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 14px 12px;
}
.sidebar-logo { font-size: 18px; }
.sidebar-workspace {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role { font-size: 11.5px; opacity: .75; }
.sidebar-nav { padding: 10px 8px; flex: 1; overflow-y: auto; }
.sidebar-section {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .6;
  padding: 12px 10px 4px;
}
.sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--tr-fast), color var(--tr-fast);
}
.sidebar-item:hover { background: var(--sidebar-active); color: #fff; }
.sidebar-item:focus-visible { box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.sidebar-item.active {
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 600;
}
.sidebar-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--c-brand);
}
.sidebar-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-icon svg { width: 18px; height: 18px; }
.sidebar-footer { padding: 12px 8px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 8px; padding: 4px 8px; }
.sidebar-user-name {
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-area {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--c-canvas);
  border-bottom: 1px solid var(--c-line);
  flex-wrap: wrap;
}
.topbar-title { font-size: 14px; font-weight: 700; }
.content { padding: 20px 20px 40px; }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- auth (login/register shell) ---------- */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  justify-content: center;
  margin-bottom: 6px;
}
.auth-brand-name { color: var(--c-ink); }
.auth-subtitle { text-align: center; color: var(--c-muted); font-size: 13px; margin-bottom: 18px; }
.auth-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 26px 20px;
  width: 380px;
  max-width: 100%;
}
.auth-alert {
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 13px;
  background: var(--c-info);
  color: #ffffff;
  margin-bottom: 12px;
}
.auth-alert-danger { background: var(--c-danger); color: #ffffff; }
.auth-switch { text-align: center; font-size: 13px; margin-top: 14px; color: var(--c-muted); }

.landing-cards { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.landing-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px;
  width: 240px;
  cursor: pointer;
  text-decoration: none;
  color: var(--c-ink);
  transition: box-shadow 140ms ease, transform 140ms ease;
}
.landing-card:hover { box-shadow: var(--shadow-md); }
.landing-card-icon { font-size: 22px; }
.landing-card-title { font-weight: 700; margin-top: 8px; }
.landing-card-desc { font-size: 12.5px; color: var(--c-muted); margin-top: 4px; }

.x { font-style: normal; }
.text-muted { color: var(--c-muted) !important; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- print: keep tables legible ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 11px; }
  .sidebar, .topbar, .toast-stack, .modal-overlay, .filter-bar, .btn { display: none !important; }
  .main-area, .content { padding: 0; }
  .table-wrap, .card, .auth-card {
    border: 1px solid #999;
    box-shadow: none;
    break-inside: avoid;
  }
  table.rt { font-size: 10px; }
  .rt th { background: #eee !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; text-decoration: none; }
}

/* ---------- onboarding checklist ---------- */
.onboarding-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr-fast);
}
.onboarding-badge:hover { background: var(--c-brand-deep); }
.onboarding-badge.onboarding-done { background: var(--c-ok); }

.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 39, 46, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.onboarding-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 420px;
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.onboarding-header {
  padding: 20px 24px 8px;
}
.onboarding-title { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.onboarding-subtitle { font-size: 13px; color: var(--c-muted); margin: 0; }
.onboarding-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 24px;
  cursor: pointer;
  border-bottom: 1px solid var(--c-line);
  transition: background var(--tr-fast);
}
.onboarding-item:hover { background: var(--c-canvas); }
.onboarding-item-done { opacity: .6; }
.onboarding-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--c-line-strong);
  background: var(--c-surface); flex: none;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: transparent; transition: all var(--tr-fast); margin-top: 1px;
}
.onboarding-check-on { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.onboarding-item-text { flex: 1; }
.onboarding-item-title { font-size: 13px; font-weight: 600; }
.onboarding-item-hint { font-size: 12px; color: var(--c-muted); margin-top: 1px; }
.onboarding-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 24px 16px; border-top: 1px solid var(--c-line);
}

/* ---------- help search ---------- */
.help-overlay {
  position: fixed; inset: 0;
  background: rgba(18, 39, 46, .45);
  display: flex; align-items: flex-start;
  justify-content: center; padding: 10vh 16px 16px;
  z-index: 150;
}
.help-card {
  background: var(--c-surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); width: 560px; max-width: 100%;
  max-height: 80vh; display: flex; flex-direction: column;
}
.help-search-wrap { padding: 16px 20px; border-bottom: 1px solid var(--c-line); }
.help-search-input {
  width: 100%; height: 38px; padding: 0 12px;
  border: 2px solid var(--c-brand); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; outline: none; background: var(--c-surface);
  box-shadow: var(--ring);
}
.help-results-count { font-size: 11px; color: var(--c-muted); margin-top: 4px; }
.help-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.help-entry {
  padding: 12px 20px; cursor: pointer; border-bottom: 1px solid var(--c-line);
  transition: background var(--tr-fast);
}
.help-entry:hover { background: var(--c-canvas); }
.help-entry-title { font-size: 14px; font-weight: 600; }
.help-entry-screen { font-size: 11px; color: var(--c-brand); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.help-entry-text { font-size: 12.5px; color: var(--c-muted); margin-top: 3px; line-height: 1.4; }
.help-entry-quick { font-size: 11px; color: var(--c-brand-deep); margin-top: 4px; font-weight: 600; }
.help-empty { text-align: center; padding: 32px 20px; color: var(--c-muted); font-size: 13px; }
.help-close-bar { display: flex; justify-content: flex-end; padding: 8px 16px 12px; }

/* ---------- contextual help button ---------- */
.help-context-btn {
  position: absolute; top: 8px; right: 8px; z-index: 10;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-surface); border: 1px solid var(--c-line);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--c-muted); transition: all var(--tr-fast);
}
.help-context-btn:hover { border-color: var(--c-brand); color: var(--c-brand); }

/* ---------- empty state improvements ---------- */
.empty-state { text-align: center; padding: 48px 20px; background: var(--c-surface); border: 1px dashed var(--c-line-strong); border-radius: var(--radius); position: relative; }
.empty-state .empty-cta { margin-top: 12px; }

/* ---------- employee help button ---------- */
.emp-help-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: transparent; border: 1px solid var(--c-line);
  color: var(--c-muted); cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 14px;
  flex: none; transition: all var(--tr-fast);
}
.emp-help-btn:hover { border-color: var(--c-brand); color: var(--c-brand); }

/* ---------- mobile responsiveness ---------- */
@media (max-width: 480px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; align-items: center; overflow-x: auto; }
  .sidebar-header, .sidebar-footer { display: none; }
  .sidebar-nav { display: flex; flex-direction: row; padding: 6px; }
  .sidebar-section { display: none; }
  .sidebar-item { white-space: nowrap; min-height: 40px; }
  .content { padding: 12px 12px 40px; }
  .modal-card { width: 100%; }
  .onboarding-card { width: 100%; max-height: 90vh; }
  .help-card { width: 100%; max-height: 90vh; }
  .help-overlay { padding: 5vh 8px 16px; }
}
