/* GrowthWorks Demo — sales-demo design system.
   Vanilla CSS, no build step. Palette adapted from the GrowthWorks brand
   used across the sibling apps. Per-product accent is set on .stage via
   a data-product attribute so each product re-skins the same components. */

:root {
  color-scheme: light;
  --bg: #f8faff;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --primary: #4361ee;
  --primary-deep: #3350d4;
  --primary-soft: #e9edfd;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  /* accent defaults to GrowthWorks primary; products override via .stage[data-product] */
  --accent: #4361ee;
  --accent-soft: #e9edfd;
  --accent-ink: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(1200px 480px at 88% -10%, rgba(67, 97, 238, 0.06), transparent),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }

.app-shell {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 4px 0 16px;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.wordmark-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wordmark-text small {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  border: 1px solid #fcd34d;
}

.switchers { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.switcher-group { display: flex; flex-direction: column; gap: 5px; }
.switcher-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--soft);
  padding-left: 2px;
}
.segmented {
  display: inline-flex;
  background: #eef2fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.segmented button:hover { color: var(--ink); }
.segmented button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.segmented button.is-active[data-accent="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-reset {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  align-self: flex-end;
}
.btn-reset:hover { color: var(--red); border-color: var(--red); }

/* ── Context bar (tenant + role identity) ──────────────── */
.context-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.context-product {
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.context-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
}
.context-meta { color: var(--muted); font-size: 13px; }
.context-meta strong { color: var(--ink); }
.context-spacer { flex: 1; }
.context-role-pill {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ── Stage ──────────────────────────────────────────────── */
.stage { min-height: 60vh; }
.stage[data-product="shield"] { --accent: #dc2626; --accent-soft: #fee2e2; }
.stage[data-product="recoveryos"] { --accent: #ea580c; --accent-soft: #ffedd5; }
.stage[data-product="fang"] { --accent: #7c3aed; --accent-soft: #ede9fe; }
.stage[data-product="seek"] { --accent: #0D9488; --accent-soft: #ccfbf1; }

/* ── Cards / panels / layout ───────────────────────────── */
.view-head { margin: 2px 0 16px; }
.view-head h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -0.4px; }
.view-head p { margin: 0; color: var(--muted); font-size: 14px; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.sidebar { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card.pad-lg { padding: 22px; }
.card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .right { margin-left: auto; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-sub { font-size: 12px; color: var(--soft); }

/* metric tile accent variants */
.tile-accent .stat-value { color: var(--accent); }

/* ── Tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Lists / rows ──────────────────────────────────────── */
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
  width: 100%;
}
button.row { cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s; }
button.row:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.row.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.row-main { flex: 1; min-width: 0; }
.row-name { font-weight: 700; font-size: 14px; }
.row-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.row-end { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }

.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--accent);
  flex-shrink: 0;
}

/* status dots */
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot.green { background: var(--green); }
.dot.amber { background: #d97706; }
.dot.red { background: var(--red); }
.dot.gray { background: var(--soft); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
}
.pill.green { background: var(--green-soft); color: #15803d; }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.blue { background: var(--primary-soft); color: var(--primary-deep); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

.tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
}

/* progress bar */
.bar { height: 8px; border-radius: 999px; background: #eef2f8; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.bar.green > span { background: var(--green); }
.bar.amber > span { background: #d97706; }

/* buttons */
.btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); color: var(--accent-ink); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.empty-card {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fbfdff;
}

.note {
  font-size: 12.5px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.note.warn { background: var(--amber-soft); border-color: #fcd34d; color: #92400e; }
.note.info { background: var(--primary-soft); border-color: #c7d2fe; color: var(--primary-deep); }
.note.lock { background: #f1f5f9; border-color: var(--line-strong); color: var(--slate, #475569); }

.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 8px; top: 20px; bottom: 0;
  width: 2px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-marker {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  border: 3px solid var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  z-index: 1;
}
.tl-marker.muted { border-color: var(--soft); background: #f1f5f9; }
.tl-body { flex: 1; }
.tl-when { font-size: 11.5px; color: var(--soft); font-weight: 600; }
.tl-text { font-size: 13.5px; margin-top: 1px; }
.tl-text strong { font-weight: 700; }

/* ── Phone frame ────────────────────────────────────────── */
.phone-wrap {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.phone-side { flex: 1; min-width: 220px; max-width: 360px; }
.phone-side h2 { font-size: 16px; margin: 4px 0 8px; }
.phone-side p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.phone {
  width: 390px;
  max-width: 100%;
  margin: 0 auto;
  background: #0f172a;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
  flex-shrink: 0;
}
.phone-screen {
  background: var(--bg);
  border-radius: 34px;
  overflow: hidden;
  height: 760px;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 130px; height: 26px;
  background: #0f172a;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}
.phone-status {
  padding: 10px 22px 4px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.phone-appbar {
  padding: 6px 18px 12px;
  background: var(--accent);
  color: #fff;
}
.phone-appbar .pa-title { font-weight: 800; font-size: 17px; }
.phone-appbar .pa-sub { font-size: 12px; opacity: 0.9; }
.phone-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone-tabbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.phone-tabbar button {
  flex: 1;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--soft);
  padding: 2px 0;
}
.phone-tabbar button svg { width: 22px; height: 22px; }
.phone-tabbar button.is-active { color: var(--accent); }

/* phone-internal card */
.m-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.m-card h3 { margin: 0 0 8px; font-size: 14px; }
.m-hero {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #0f172a));
  color: #fff;
  border: 0;
}
.m-hero h3, .m-hero p { color: #fff; }
.m-hero p { opacity: 0.92; font-size: 13px; margin: 0; }

.mood-row { display: flex; gap: 8px; justify-content: space-between; }
.mood-btn {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 0;
  font-size: 22px;
  transition: transform 0.1s, border-color 0.1s;
}
.mood-btn:hover { transform: translateY(-2px); }
.mood-btn.is-active { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.check-item:last-child { border-bottom: 0; }
.check-box {
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.check-box.done { background: var(--green); border-color: var(--green); }
.check-box.done svg { color: #fff; }
.check-label { flex: 1; font-size: 14px; }
.check-item.is-done .check-label { color: var(--soft); text-decoration: line-through; }
.check-sub { font-size: 12px; color: var(--muted); }

.streak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 12px;
  color: #d97706;
}

/* table */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--soft);
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }

/* bedboard */
.bedboard { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bed-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
.bed {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font-size: 12.5px;
  background: var(--surface);
}
.bed.occupied { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); }
.bed.open { border-style: dashed; color: var(--muted); }
.bed-num { font-weight: 800; font-size: 11px; color: var(--soft); }
.bed-name { font-weight: 700; margin-top: 2px; }

/* requirement slot */
.req {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.req-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.req-icon.met { background: var(--green-soft); color: #15803d; }
.req-icon.gap { background: var(--red-soft); color: var(--red); }
.req-icon.partial { background: var(--amber-soft); color: var(--amber); }
.req-main { flex: 1; }
.req-name { font-weight: 700; font-size: 14px; }
.req-sub { font-size: 12px; color: var(--muted); }

/* readiness ring */
.ring-wrap { display: flex; align-items: center; gap: 18px; }
.ring { width: 110px; height: 110px; flex-shrink: 0; }
.ring-num { font-size: 26px; font-weight: 800; }

/* consent gate visual */
.consent-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 0;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.consent-row.locked { background: #f8fafc; }
.consent-cell { text-align: center; font-size: 13px; font-weight: 600; }
.consent-cell.head { font-size: 11px; text-transform: uppercase; color: var(--soft); letter-spacing: 0.5px; }
.lock-mask {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}

/* ── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 24px);
  background: #0f172a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.app-footer {
  margin-top: 26px;
  text-align: center;
  color: var(--soft);
  font-size: 12px;
}

/* ── Seek: KPI tiles, board (kanban), metrics-vs-target ──── */
.kpi-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi .kpi-val { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.kpi .kpi-label { color: var(--muted); font-size: 12.5px; }
.kpi.alert { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.kpi.alert .kpi-val { color: var(--red); }
.kpi.good .kpi-val { color: var(--green); }
.kpi.accent .kpi-val { color: var(--accent); }

/* metric vs target strip */
.metric-strip { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface);
}
.metric-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.metric-name { font-weight: 700; font-size: 13px; }
.metric-fig { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.metric-fig strong { color: var(--ink); font-size: 14px; }

/* project progress rows */
.proj-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.proj-row:last-child { border-bottom: 0; }
.proj-row-top { display: flex; align-items: center; gap: 10px; }
.proj-swatch { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.proj-name { font-weight: 700; font-size: 14px; flex: 1; }
.proj-pct { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.proj-meta { font-size: 12px; color: var(--soft); padding-left: 22px; }

/* board / kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.board-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 12px;
  min-height: 120px;
}
.board-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.board-col-head h3 { margin: 0; font-size: 13px; }
.board-col-head .count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: #e2e8f0; color: var(--muted);
  font-size: 11px; font-weight: 800;
}
.board-stack { display: flex; flex-direction: column; gap: 10px; }
.bcard {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 11px;
  box-shadow: var(--shadow-sm);
}
.bcard-title { font-weight: 700; font-size: 13px; line-height: 1.3; }
.bcard-title .gate { color: var(--amber); }
.bcard-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 11.5px; color: var(--muted); }
.bcard-owner {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 10px; font-weight: 800; color: #fff; background: var(--accent);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 940px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
}

/* ── Responsive (shared) ────────────────────────────────── */
@media (max-width: 940px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar { flex-direction: column; align-items: stretch; }
  .switchers { justify-content: space-between; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .segmented button { padding: 7px 9px; font-size: 12px; }
  .consent-row { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .consent-cell { text-align: left; }
  .phone { width: 100%; }
}
