/* ============================================================
   ScalAct Work Tracker — Design System
   Dependency-free. Professional consulting aesthetic.
   ============================================================ */

:root {
  /* ScalAct 3-colour system — logo black + logo green + one consistent grey (charts keep their own hues) */
  --ink: #1E1E1E;         /* logo black — primary text, buttons, sidebar, emphasis, ATTENTION */
  --ink-2: #3A3A38;       /* secondary dark text, table cells */
  --muted: #6E6E6B;       /* grey — labels, meta, captions, neutral status */
  --faint: #9C9C98;       /* grey — disabled, table-header text, placeholders */
  --line: #E4E3DF;        /* grey borders */
  --line-2: #EFEEEA;      /* grey inner dividers, track fills, neutral badge bg */
  --bg: #F5F5F2;          /* app canvas (neutral grey) */
  --bg-2: #FAFAF8;        /* topbar, hover rows */
  --card: #FFFFFF;
  --sidebar: #1E1E1E;     /* logo black */

  --green: #70B94E;       /* logo green — accent, active nav, positive/done, progress fills */
  --green-ink: #4B9A2B;   /* darker green for text on tint */
  --green-tint: #EAF4E1;  /* soft green badge/chip bg */

  /* Status is now monochrome: attention = black, neutral = grey. (Charts/graphs keep full colour.) */
  --amber: var(--ink);     --amber-ink: #FFFFFF;      --amber-tint: var(--ink);      /* WIP / watch / attention → solid black */
  --red: var(--ink);       --red-ink: #FFFFFF;        --red-tint: var(--ink);        /* overdue / risk → solid black */
  --blue: var(--muted);    --blue-ink: var(--muted);  --blue-tint: var(--line-2);    /* info / planned → neutral grey */

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(43,42,40,.05);
  --shadow: 0 2px 6px rgba(43,42,40,.07), 0 1px 2px rgba(43,42,40,.04);
  --shadow-md: 0 6px 16px rgba(43,42,40,.10);
  --shadow-lg: 0 16px 40px rgba(43,42,40,.16);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --sidebar-w: 256px;

  /* ---- legacy aliases so existing rules re-theme automatically ---- */
  --navy-900: var(--sidebar); --navy-800: var(--ink); --navy-700: var(--ink-2); --navy-600: #5c5951;
  --slate-500: var(--muted); --slate-400: var(--faint); --slate-300: #C9C6BE;
  --slate-200: var(--line); --slate-100: var(--line-2); --slate-50: var(--bg-2);
  --brand: var(--ink); --brand-dark: #1c1b19; --brand-soft: var(--green-tint);
  --accent: var(--green); --accent-dark: var(--green-ink); --accent-soft: var(--green-tint);
  --teal: var(--blue); --teal-soft: var(--blue-tint);
  --amber-soft: var(--amber-tint); --green-soft: var(--green-tint);
  --red-soft: var(--red-tint); --sky: var(--blue); --sky-soft: var(--blue-tint);
  --border: var(--line); --text: var(--ink); --text-soft: var(--ink-2); --text-faint: var(--muted);
  --radius-lg2: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app { display: flex; height: 100vh; overflow: hidden; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--navy-900);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--navy-800);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand-logo { width: 132px; height: auto; display: block; }
.brand-sub { color: var(--slate-400); font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; margin-top: 7px; display: block; }

.nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.nav-group-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.1px;
  color: var(--slate-500); font-weight: 700;
  padding: 16px 12px 7px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 8px;
  color: #cbd5e1; font-size: 13.5px; font-weight: 500;
  cursor: pointer; user-select: none;
  transition: background .12s, color .12s;
  margin-bottom: 1px;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--green); color: #1E1E1E; font-weight: 700; box-shadow: 0 2px 10px rgba(112,185,78,.32); }
.nav-item.active .ni-icon { color: #1E1E1E; opacity: 1; }
.ni-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; opacity: .85; flex-shrink: 0; }
.ni-icon svg { width: 17px; height: 17px; }

.sidebar-footer { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.06); }
.btn-text { background: none; border: none; color: var(--slate-400); cursor: pointer; font-size: 12px; padding: 4px 0; }
.btn-text:hover { color: #fff; }
.version { color: var(--slate-500); font-size: 11px; margin-top: 8px; }

/* ---------- Main ---------- */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
  height: 64px; flex-shrink: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
}
.hamburger { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--navy-700); }
.topbar-title { font-size: 18px; font-weight: 700; color: var(--navy-900); flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 18px; }

.role-switch { display: flex; align-items: center; gap: 8px; }
.role-switch label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.role-switch select {
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px;
  font-size: 13px; color: var(--navy-800); background: var(--slate-50); cursor: pointer; font-weight: 500;
}

.user-chip { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--border); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #2b3038, var(--accent));
  color: #fff; font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-weight: 600; font-size: 13.5px; color: var(--navy-800); }
.user-role { font-size: 11.5px; color: var(--text-faint); }

.content { flex: 1; overflow-y: auto; padding: 28px 32px 60px; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.page-head .subtitle { color: var(--text-soft); font-size: 13.5px; margin-top: 4px; max-width: 640px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 16px; font-size: 13px; font-weight: 600; min-height: 38px;
  cursor: pointer; transition: all .14s; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-green { background: var(--green); color: #1E1E1E; box-shadow: var(--shadow-sm); }
.btn-green:hover { filter: brightness(.96); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--slate-300); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(.93); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; min-height: 30px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px){ .grid-4 { grid-template-columns: repeat(2,1fr);} .grid-3{grid-template-columns:repeat(2,1fr);} }
@media (max-width: 720px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr;} }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--navy-900); }
.card-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.cell-sub { font-size: 12px; color: var(--text-faint); }
.cell-strong { font-weight: 600; color: var(--ink); }

/* ---------- Stat cards ---------- */
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat .stat-label { font-size: 12px; color: var(--text-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.stat .stat-value { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 27px; font-weight: 700; color: var(--ink); margin-top: 6px; letter-spacing: -.02em; }
.stat .stat-meta { font-size: 12px; margin-top: 6px; color: var(--text-faint); }
.stat .stat-icon { display: none; }  /* no emoji per DESIGN_RULES */
.empty .emoji { display: none; }
.stat.accent-brand { border-top: 3px solid var(--brand); }
.stat.accent-teal { border-top: 3px solid var(--teal); }
.stat.accent-amber { border-top: 3px solid var(--amber); }
.stat.accent-green { border-top: 3px solid var(--green); }
.stat.accent-red { border-top: 3px solid var(--red); }
.stat.accent-sky { border-top: 3px solid var(--sky); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; padding: 12px 16px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--faint); font-weight: 700; background: var(--bg-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--slate-50); }
td .cell-strong { font-weight: 600; color: var(--navy-800); }
td .cell-sub { font-size: 12px; color: var(--text-faint); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .2px; white-space: nowrap;
}
.badge-gray { background: var(--line-2); color: var(--muted); }
.badge-brand { background: var(--green-tint); color: var(--green-ink); }
.badge-teal { background: var(--blue-tint); color: var(--blue-ink); }
.badge-amber { background: var(--amber-tint); color: var(--amber-ink); }
.badge-green { background: var(--green-tint); color: var(--green-ink); }
.badge-red { background: var(--red-tint); color: var(--red-ink); }
.badge-sky { background: var(--blue-tint); color: var(--blue-ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* mono tabular numbers for money / metrics / ids / scores (DESIGN_RULES §3) */
.mono, .score-pill, .dim-score, .range-val, .mod-num, .step-dot { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width:600px){ .form-grid.cols-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; color: var(--navy-700); }
.field .hint { font-size: 11px; color: var(--text-faint); font-weight: 400; }
input, select, textarea {
  font-family: inherit; font-size: 13.5px; color: var(--text);
  border: 1px solid var(--slate-300); border-radius: 8px; padding: 9px 11px;
  background: #fff; transition: border-color .12s, box-shadow .12s; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(95,170,51,.18); }
textarea { resize: vertical; min-height: 72px; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; }
.range-val { font-weight: 800; font-size: 18px; color: var(--brand); min-width: 42px; text-align: right; }

/* ---------- Misc layout ---------- */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.items-center { align-items: center; }
.mt-8{margin-top:8px;} .mt-12{margin-top:12px;} .mt-16{margin-top:16px;} .mt-20{margin-top:20px;} .mt-24{margin-top:24px;}
.mb-8{margin-bottom:8px;} .mb-12{margin-bottom:12px;} .mb-16{margin-bottom:16px;}
.text-soft { color: var(--text-soft); }
.text-faint { color: var(--text-faint); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-soft); margin: 6px 0 12px; }

/* progress bar */
.progress { height: 7px; border-radius: 99px; background: var(--slate-200); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.progress.green > span { background: var(--green); }
.progress.amber > span { background: var(--amber); }
.progress.teal > span { background: var(--teal); }

/* pills/filters */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.pill {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; font-size: 12.5px; font-weight: 600; color: var(--text-soft); cursor: pointer;
}
.pill:hover { border-color: var(--slate-300); }
.pill.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.search-input { max-width: 260px; }

/* empty state */
.empty { text-align: center; padding: 48px 20px; color: var(--text-faint); }
.empty .emoji { font-size: 34px; opacity: .5; display: block; margin-bottom: 10px; }

/* list rows */
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border-bottom: 1px solid var(--slate-100);
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--slate-50); }

/* checkbox round */
.checkround {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--slate-300);
  cursor: pointer; flex-shrink: 0; display: grid; place-items: center; transition: all .12s;
}
.checkround:hover { border-color: var(--brand); }
.checkround.done { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  display: grid; place-items: center; z-index: 100; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column;
  animation: pop .16s ease-out;
}
.modal.wide { max-width: 760px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; font-weight: 700; color: var(--navy-900); }
.modal-close { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text-faint); padding: 4px; border-radius: 6px; }
.modal-close:hover { background: var(--slate-100); color: var(--navy-800); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 500; min-width: 220px;
  display: flex; align-items: center; gap: 10px; animation: slideIn .2s ease-out;
}
.toast.success { background: #15803d; }
.toast.error { background: #b91c1c; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* timeline */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content:''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--slate-200); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content:''; position: absolute; left: -20px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.tl-item .tl-time { font-size: 11px; color: var(--text-faint); }
.tl-item .tl-text { font-size: 13px; color: var(--navy-700); }

/* score ring inline */
.score-pill { display:inline-flex; align-items:center; justify-content:center; font-weight:800; border-radius: 8px; padding: 4px 10px; font-size: 15px; }

/* responsive sidebar */
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 90; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .hamburger { display: block; }
  .role-switch label { display: none; }
  .user-meta { display: none; }
  .content { padding: 20px 16px 60px; }
}

/* ---------- Phone (PWA phone-first) ---------- */
@media (max-width: 640px) {
  body { font-size: 13.5px; }
  .content { padding: 16px 13px calc(72px + env(safe-area-inset-bottom, 0px)); }
  .topbar { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .topbar-right { gap: 10px; }
  .page-head { margin-bottom: 16px; gap: 10px; }
  .page-head h1 { font-size: 21px; }
  .page-head .subtitle { font-size: 12.5px; }
  .page-actions { width: 100%; }                 /* actions wrap under the title, full width */
  .card { padding: 14px 14px; }
  .grid { gap: 12px; }
  /* one column everywhere on a phone (covers inline grid-template-columns too via !important on the utility grids) */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* comfortable touch targets */
  .btn { min-height: 44px; padding: 11px 16px; }
  .btn-sm { min-height: 38px; padding: 8px 13px; font-size: 12.5px; }
  .pill { padding: 9px 14px; font-size: 13px; }
  .nav-item { padding: 13px 14px; font-size: 14.5px; }
  select, input, textarea { font-size: 16px; min-height: 44px; }  /* 16px stops iOS auto-zoom */
  textarea { min-height: 80px; }
  .filter-bar { gap: 6px; }
  .kpi-inline { gap: 12px; }
  /* tables scroll horizontally inside their wrapper; hint with momentum scroll */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table { font-size: 12.5px; }
  th, td { padding: 10px 12px; }
  /* modal becomes a bottom sheet */
  .modal-overlay { padding: 0; place-items: end center; }
  .modal, .modal.wide { max-width: 100%; width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .modal-body { padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .modal-footer { position: sticky; bottom: 0; background: #fff; padding-top: 12px; margin-top: 16px; border-top: 1px solid var(--line-2); }
  .modal-footer .btn { flex: 1; }               /* full-width action buttons */
  /* calendar month grid: keep 7 cols but smaller cells */
  .cal-mini .card { min-height: 58px !important; padding: 4px 4px !important; }
}
@media (max-width: 400px) {
  .page-head h1 { font-size: 19px; }
  .card { padding: 12px 12px; }
}

.kpi-inline { display:flex; gap:18px; flex-wrap:wrap; margin-top: 6px; }
.kpi-inline > div { font-size: 12px; color: var(--text-soft); }
.kpi-inline b { color: var(--navy-800); font-size: 13px; }

.dim-bar-row { display:grid; grid-template-columns: 120px 1fr 44px; align-items:center; gap:12px; margin-bottom:10px; }
.dim-bar-row .dim-name { font-size:12.5px; font-weight:600; color: var(--navy-700); }
.dim-bar-row .dim-score { font-weight:800; text-align:right; }

a { color: var(--brand); text-decoration: none; }
a.linklike { cursor: pointer; font-weight: 600; }
a.linklike:hover { text-decoration: underline; }

/* reminder chips */
.rem-chip { display: inline-flex; align-items: center; margin-left: 2px; color: var(--muted); }
.rem-chip svg { width: 13px; height: 13px; }
.rem-chips { display: inline-flex; align-items: center; gap: 4px; }
.rem-card {
  flex: 1; text-align: center; padding: 16px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-2); display: flex; flex-direction: column; align-items: center;
}
.rem-card svg { width: 22px; height: 22px; color: var(--ink-2); }
.rem-card div { font-size: 12px; color: var(--text-soft); font-weight: 600; margin-top: 8px; }

/* parameter grid */
.param-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
@media (max-width:760px){ .param-grid { grid-template-columns: 1fr; } }
.param { font-size: 12.5px; color: var(--text-soft); display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.param span { color: var(--slate-300); font-weight: 800; }
.param.param-on { color: var(--navy-800); font-weight: 500; }
.param.param-on span { color: var(--green); }

/* module cards */
.module-card { cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.mod-num {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 800; font-size: 13px; display: grid; place-items: center; flex-shrink: 0;
}

/* stage stepper */
.stepper { display: flex; align-items: center; overflow-x: auto; padding: 4px 0 2px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 70px; flex-shrink: 0; }
.step-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--slate-200); color: var(--slate-500); border: 2px solid var(--slate-200);
}
.step-label { font-size: 11px; color: var(--text-faint); font-weight: 600; text-align: center; }
.step.done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.done .step-label { color: var(--text-soft); }
.step.current .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(95,170,51,.18); }
.step.current .step-label { color: var(--accent-dark); font-weight: 800; }
.step-line { height: 2px; background: var(--slate-200); flex: 1; min-width: 8px; margin: 0 -4px 16px; }

/* core-flow row */
.flow-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.flow-step { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #cfe8bf; border-radius: 8px; padding: 7px 13px; font-weight: 700; font-size: 12.5px; }
.flow-arrow { color: var(--slate-400); font-weight: 800; margin: 0 2px; }

/* onboarding checklist grid */
.onb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
@media (max-width:600px){ .onb-grid { grid-template-columns: 1fr; } }
.onb-item { font-size: 12px; color: var(--text-soft); padding: 5px 0; cursor: pointer; display: flex; gap: 7px; align-items: flex-start; }
.onb-item span { color: var(--slate-300); font-weight: 800; }
.onb-item:hover { color: var(--navy-800); }
.onb-item.on { color: var(--navy-800); }
.onb-item.on span { color: var(--green); }

/* gantt dot for plans */
.gantt-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.gantt-dot.teal { background: var(--teal); }
