/* ShopFloor — Nevatronix portal style.
   Palette keyed to the Nevatronix wordmark (RAL 8000 green-brown / gold).
   Light, graphite-ink, gold-accented — matches the GoCanvas PDF aesthetic with
   Nevatronix branding instead of customer branding. */

/* Self-hosted Geist (variable, latin subset). 28K + 31K, served from /static
   so the CSP font-src 'self' rule stays clean and PWA offline still has fonts. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  /* Type stacks — Geist is the canonical sans+mono per Ryan's standing pref. */
  --nv-font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --nv-font-mono: 'Geist Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Neutrals */
  --bg:        #f7f6f3;
  --panel:     #fdfcf9;
  --panel-hov: #faf9f5;
  --ink:       #1f2330;
  --ink-soft:  #3a4050;
  --ink-mute:  #5a5f6e;
  --muted:     #6b7384;
  --border:    #e5e3dd;
  --border-strong: #d5d2c8;

  /* Nevatronix gold — RAL 8000 (green brown). The wordmark color. */
  --accent:       #826C34;
  --accent-hover: #6d5a2a;
  --accent-pale:  #faf3e1;
  --accent-pale2: #efe6cd;
  --accent-ink:   #42331a;

  /* Secondary slate (for info states where gold would feel wrong) */
  --slate:      #3a4b5e;
  --slate-pale: #eef1f5;

  /* State colors */
  --ok:          #2d6b4e;
  --ok-pale:     #e8f1ec;
  --warn:        #a36f1e;
  --warn-pale:   #fbf4e7;
  --danger:      #a3321f;
  --danger-pale: #faeceb;

  /* Geometry */
  --r-sm: 4px;  --r-md: 8px;  --r-lg: 12px;
  --shadow-1: 0 1px 0 rgb(31 35 48 / 0.03);
  --shadow-2: 0 4px 16px rgb(31 35 48 / 0.06), 0 1px 2px rgb(31 35 48 / 0.04);

  --ring: 0 0 0 3px rgb(130 108 52 / 0.18);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--nv-font-sans);
  font-size: 14.5px; line-height: 1.55;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";  /* Geist's tabular alts, single-storey a */
  display: flex; flex-direction: column;
}

main.wrap { flex: 1; padding: 22px 22px 60px; max-width: 1180px; margin: 0 auto; width: 100%; }

/* Modern focus ring — keyboard users only, not on click. */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

/* ── Top bar ──────────────────────────────────────────────────────── */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center;
  gap: 18px;
  padding: 12px 22px; max-width: 1180px; margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  flex-shrink: 0;
}
.brand-logo { height: 26px; width: auto; display: block; }
.brand-divider {
  display: inline-block; width: 1px; height: 20px;
  background: var(--border-strong);
}
.brand-text {
  font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em;
  color: var(--ink-soft);
}

.topnav {
  display: flex; gap: 4px; flex: 1; margin-left: 6px;
}
.topnav-link {
  font-size: 13.5px; color: var(--ink-soft);
  padding: 6px 12px; border-radius: var(--r-md);
  text-decoration: none; font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}
.topnav-link:hover { background: var(--accent-pale); color: var(--accent-ink); }
/* Primary nav action — "Fill a form" — gold-tinted so it reads as the default CTA */
.topnav-primary {
  background: var(--accent); color: #fff !important;
  font-weight: 600;
}
.topnav-primary:hover { background: var(--accent-hover); color: #fff !important; }

.topnav-right {
  display: flex; align-items: center; gap: 10px; margin-left: auto;
}
.user-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 13px; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--panel-hov);
}
.user-name { font-weight: 500; }
.user-role { font-size: 11px; color: var(--muted); font-weight: 500; }
.inline-form { display: inline; margin: 0; }

/* Topbar CREW chip — gold pill showing the worker's active cell + WO.
   Pulled from crew_assignments by _inject_crew_chip in app.py. Distinct
   from the admin_dashboard list chip (which uses .crew-chip in its own
   inline <style>) to avoid CSS cascade collision. */
.tb-crew {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; padding: 4px 10px;
  border: 1px solid var(--accent-pale2); border-radius: var(--r-md);
  background: var(--accent-pale); color: var(--accent-ink);
  white-space: nowrap;
}
.tb-crew-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.tb-crew-cell { font-weight: 600; letter-spacing: 0.01em; }
.tb-crew-wo {
  font-family: var(--nv-font-mono);
  font-size: 11.5px; padding: 1px 6px; border-radius: 3px;
  background: rgb(0 0 0 / 0.04); color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.tb-crew-link {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: var(--r-md);
  background: var(--accent); color: #fff;
  text-decoration: none;
  transition: background 0.12s ease;
}
.tb-crew-link:hover { background: var(--accent-hover); }

/* "NEW" state — chip pulses gold until worker visits CREW /me, which stamps
   crew_assignments.worker_seen_at. Cross-app notification: a manager re-assigns
   you in CREW, you see the pulse here next time you load any shopfloor page. */
.tb-crew.is-new {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-hover);
  animation: tb-crew-pulse 1.6s ease-in-out infinite;
}
.tb-crew.is-new .tb-crew-wo { background: rgb(255 255 255 / 0.18); color: #fff; }
.tb-crew.is-new .tb-crew-dot { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.35); }
.tb-crew-new {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  padding: 1px 6px; border-radius: 3px;
  background: #fff; color: var(--accent);
  text-transform: uppercase;
}
.tb-crew-link.is-new { box-shadow: 0 0 0 2px rgb(130 108 52 / 0.35); }
@keyframes tb-crew-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(130 108 52 / 0.55); }
  50%      { box-shadow: 0 0 0 6px rgb(130 108 52 / 0); }
}

/* P4-25: per-customer SLA radar on admin dashboard. */
.cr-panel { margin: 18px 0 10px; padding: 14px 16px 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); }
.cr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cr-title { font-size: 14px; margin: 0; font-weight: 600; }
.cr-all { font-size: 12.5px; color: var(--accent); text-decoration: none; font-weight: 500; }
.cr-all:hover { text-decoration: underline; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cr-card {
  display: grid; grid-template-rows: auto auto auto;
  padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--panel);
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cr-card:hover { border-color: var(--accent); box-shadow: var(--shadow-2); }
.cr-card.cr-band-ok   { border-color: var(--ok);     background: var(--ok-pale, #e7f3ed); }
.cr-card.cr-band-warn { border-color: var(--accent); background: var(--accent-pale); }
.cr-card.cr-band-bad  { border-color: var(--danger); background: var(--danger-pale, #fbe6e0); }
.cr-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.cr-row { display: flex; align-items: baseline; gap: 6px; }
.cr-pending { font-size: 22px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cr-band-ok   .cr-pending { color: var(--ok); }
.cr-band-warn .cr-pending { color: var(--accent-ink); }
.cr-band-bad  .cr-pending { color: var(--danger); }
.cr-pending-lab { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.cr-sla { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.cr-sla-num { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-band-ok   .cr-sla-num { color: var(--ok); }
.cr-band-warn .cr-sla-num { color: var(--accent-ink); }
.cr-band-bad  .cr-sla-num { color: var(--danger); }
.cr-sla-lab { font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* P4-24: per-form 14-day activity sparklines on admin dashboard. */
.ft-panel { margin: 22px 0 16px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); }
.ft-head { font-size: 14px; margin: 0 0 12px; font-weight: 600; }
.ft-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 880px) { .ft-grid { grid-template-columns: 1fr 1fr; gap: 8px 22px; } }
.ft-row {
  display: grid; grid-template-columns: 1fr 96px max-content;
  align-items: center; gap: 12px;
  padding: 8px 6px; border-bottom: 1px solid var(--border-soft, var(--border));
  color: var(--accent);
}
.ft-row:last-child, .ft-row:nth-last-child(2) { border-bottom: none; }
.ft-meta { min-width: 0; color: var(--ink); }
.ft-title { font-size: 13px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-sub { font-size: 11.5px; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.ft-customer { color: var(--accent); font-weight: 500; }
.ft-cat::before { content: "·"; margin-right: 6px; color: var(--muted); }
.ft-cat { color: var(--muted); }
.ft-spark { width: 96px; height: 26px; display: block; }
.ft-num { text-align: right; min-width: 60px; }
.ft-total { font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ft-today { font-size: 11px; }

/* Pending-by-customer admin view (P4-17). One card per customer, ordered
   by pending count desc. Click a row → /submissions/<id>. */
.cust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; }
.cust-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.cust-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--accent-pale);
}
.cust-name { font-size: 14.5px; font-weight: 600; margin: 0; color: var(--accent-ink); letter-spacing: -0.005em; }
.cust-count {
  font-size: 11.5px; font-weight: 600;
  color: var(--accent-ink); background: rgb(255 255 255 / 0.55); padding: 3px 10px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.cust-list { list-style: none; margin: 0; padding: 0; }
.cust-row { padding: 10px 16px; border-bottom: 1px solid var(--border-soft, var(--border)); }
.cust-row:last-child { border-bottom: none; }
.cust-row:hover { background: var(--panel-hov, var(--accent-pale)); }
.cust-row-link {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  text-decoration: none; color: var(--ink);
}
.cust-row-id { font-size: 12.5px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.cust-row-form { font-size: 13px; flex: 1; min-width: 180px; }
.cust-row-cat {
  font-size: 11px; color: var(--muted); font-weight: 500;
  padding: 2px 7px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--panel);
}
.cust-row-meta { font-size: 12px; margin-top: 4px; }

.stat-grid-sublinks { margin: 8px 2px 0; display: flex; gap: 14px; flex-wrap: wrap; }
.stat-sub-link { font-size: 12.5px; color: var(--accent); text-decoration: none; border-bottom: 1px dashed var(--accent-pale2); padding-bottom: 1px; }
.stat-sub-link:hover { color: var(--accent-hover); border-bottom-color: var(--accent); }

/* P4-17 → P4-20: link the customer-card heading into the customer detail view. */
.cust-name-link { text-decoration: none; }
.cust-name-link:hover { color: var(--accent); }

/* Customer detail (P4-20). 3 stat tiles + SLA chip across the top, then a
   table of all 30-day submissions ordered pending → rejected → approved. */
.cd-strip {
  display: grid; grid-template-columns: repeat(3, max-content) 1fr; gap: 12px;
  margin-bottom: 18px;
}
.cd-stat {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 18px; min-width: 110px;
}
.cd-stat-num { font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cd-stat-lab { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.cd-sla {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 18px; display: flex; flex-direction: column; justify-content: center;
}
.cd-sla.sla-ok   { background: var(--ok-pale, #e7f3ed);    border-color: var(--ok); }
.cd-sla.sla-warn { background: var(--accent-pale);          border-color: var(--accent); }
.cd-sla.sla-bad  { background: var(--danger-pale, #fbe6e0); border-color: var(--danger); }
.cd-sla-num { font-size: 22px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cd-sla.sla-ok   .cd-sla-num { color: var(--ok); }
.cd-sla.sla-warn .cd-sla-num { color: var(--accent-ink); }
.cd-sla.sla-bad  .cd-sla-num { color: var(--danger); }
.cd-sla-lab { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.cd-table tbody tr:hover { background: var(--accent-pale); }
.cd-row-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.cd-row-link:hover { text-decoration: underline; }
.cd-bulk-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px 14px; flex-wrap: wrap; border-bottom: 1px solid var(--border-soft, var(--border)); }
.cd-bulk-bar .ok { color: var(--ok); }
.cd-bulk-bar .err { color: var(--danger); }

/* ── Typography ───────────────────────────────────────────────────── */
h1 { font-size: 22px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.02em; }
h2 { font-size: 16px; font-weight: 600; margin: 24px 0 10px; color: var(--ink); letter-spacing: -0.01em; }
h3 { font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
p  { margin: 0 0 10px; }
.muted { color: var(--muted); }
.mono  { font-family: var(--nv-font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
code   { background: rgb(0 0 0 / 0.045); padding: 1px 5px; border-radius: 3px; font-family: var(--nv-font-mono); font-size: 12.5px; }

/* ── Hero section ─────────────────────────────────────────────────── */
.hero {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px;
  padding: 6px 0 22px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.hero h1 { margin-bottom: 6px; }
.hero .muted { font-size: 13.5px; max-width: 680px; }
.draft-chip {
  text-decoration: none; color: var(--accent-ink);
  background: var(--accent-pale); border: 1px solid var(--accent);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.12s ease;
  flex-shrink: 0;
}
.draft-chip:hover { background: var(--accent-pale2); }
.draft-chip .chip-count {
  background: var(--accent); color: #fff;
  padding: 2px 8px; border-radius: 999px;
  font-weight: 600; font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* ── Stat tiles (admin dashboard) ─────────────────────────────────── */
.stat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 22px;
}
.stat-tile {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 18px;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  display: block;
}
.stat-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-2); }
.stat-tile.stat-tile-plain { cursor: default; }
.stat-tile.stat-tile-plain:hover { border-color: var(--border); box-shadow: none; }
.stat-num { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-lab { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.stat-tile-flag { border-color: var(--accent); background: var(--accent-pale); }
.stat-tile-flag .stat-num { color: var(--accent-ink); }

/* ── Two-column layout (worker dashboard) ─────────────────────────── */
.two-col {
  display: grid; gap: 20px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.col-panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 20px;
}
.col-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 10px; margin: 0 0 14px;
  border-bottom: 2px solid var(--accent);
  font-size: 15px;
}
.col-label { color: var(--ink); font-weight: 600; }
.col-count { color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ── Group (Customer / Category) inside each column ───────────────── */
.group { margin-bottom: 18px; }
.group:last-child { margin-bottom: 4px; }
.group-head { margin-bottom: 8px; }
.group-badge {
  display: inline-block; padding: 3px 10px;
  background: var(--slate-pale); color: var(--slate);
  border: 1px solid var(--slate-pale);
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.group-badge-gold {
  background: var(--accent-pale); color: var(--accent-ink);
  border-color: var(--accent-pale2);
}
.group-badge-category {
  background: var(--panel-hov); color: var(--ink-soft);
  border-color: var(--border);
}

.form-stack { display: flex; flex-direction: column; gap: 8px; }
.form-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-tile:hover {
  border-color: var(--accent); box-shadow: var(--shadow-2);
}
.form-tile-main { flex: 1; min-width: 0; }
.form-tile-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.form-tile-desc  { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.form-tile-aside {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0;
}
.form-tile-go {
  font-size: 12px; color: var(--accent); font-weight: 600;
}

.empty {
  padding: 16px; background: var(--panel-hov);
  border: 1px dashed var(--border-strong); border-radius: var(--r-md);
  text-align: center; color: var(--ink-soft);
}
.empty p { margin: 0 0 6px; }

/* ── Section block (shared) ───────────────────────────────────────── */
.section-block { margin-top: 28px; }
.section-block h2 {
  font-size: 14px;
  color: var(--ink); margin: 0 0 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--accent); display: inline-block;
  letter-spacing: -0.005em;
}
.section-head-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.section-head-row h2 { margin: 0; }

/* ── Panels ───────────────────────────────────────────────────────── */
.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 20px;
  margin-bottom: 18px; box-shadow: var(--shadow-1);
}

.dash-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn-primary, .btn-ghost, .btn-gold {
  font: inherit; cursor: pointer;
  padding: 8px 14px; border-radius: var(--r-md);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none; display: inline-block;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.btn-ghost {
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--accent-pale); border-color: var(--accent); color: var(--accent-ink); }

.btn-gold {
  background: var(--accent); color: #fff; border: 1px solid var(--accent-hover);
  font-weight: 600;
}
.btn-gold:hover { background: var(--accent-hover); }
.btn-danger {
  background: transparent; color: var(--danger); border: 1px solid var(--danger);
  font-weight: 600; font-family: var(--nv-font-sans);
  font-size: 12.5px; padding: 7px 14px; border-radius: var(--r-md); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger.btn-sm { padding: 4px 10px; font-size: 12.5px; }

/* P4-30: rejected-submission callout banner on the worker dashboard. */
.wd-rej-callout {
  display: flex; align-items: center; gap: 14px;
  margin: 12px 0 18px; padding: 12px 16px;
  background: var(--danger-pale, #fbe6e0);
  border: 1px solid var(--danger);
  border-radius: var(--r-md);
  color: var(--ink);
}
.wd-rej-icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff;
  border-radius: 50%; font-size: 16px; font-weight: 700;
}
.wd-rej-body { flex: 1 1 auto; line-height: 1.45; }
.wd-rej-body strong { color: var(--danger); }
.wd-rej-sub { font-size: 12.5px; }
.wd-rej-link {
  flex: 0 0 auto;
  font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: var(--r-md);
  color: var(--danger); background: rgb(255 255 255 / 0.55);
  border: 1px solid var(--danger);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.wd-rej-link:hover { background: var(--danger); color: #fff; }

.btn-sm { padding: 4px 10px; font-size: 12.5px; }

.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-actions { white-space: nowrap; }
.row-actions > * { margin-right: 4px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ── Forms ────────────────────────────────────────────────────────── */
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
label .req { color: var(--danger); }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="time"], textarea, select {
  font: inherit; font-size: 14px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: var(--ring);
}
textarea { font-family: inherit; resize: vertical; }

/* ── Login ────────────────────────────────────────────────────────── */
.login-shell { display: flex; justify-content: center; padding-top: 40px; }
.login-panel { width: 100%; max-width: 360px; }

/* ── Alerts ───────────────────────────────────────────────────────── */
.alert { padding: 10px 12px; border-radius: var(--r-md); font-size: 13px; margin-bottom: 12px; }
.alert-error { background: var(--danger-pale); color: var(--danger); border: 1px solid var(--danger); }
.ok-inline    { color: var(--ok); }
.error-inline { color: var(--danger); }

/* ── Tables ───────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th {
  font-weight: 600; font-size: 12.5px;
  color: var(--muted);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td.id-cell { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ── Pills ────────────────────────────────────────────────────────── */
.pill {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
  background: var(--border); color: var(--ink-soft);
  border: 1px solid transparent;
}
.pill.ok            { background: var(--ok-pale);     color: var(--ok); }
.pill.mute          { background: var(--border);      color: var(--muted); }
.pill.pill-gold     { background: var(--accent-pale); color: var(--accent-ink); border-color: var(--accent-pale2); }
.pill.pill-category { background: var(--slate-pale);  color: var(--slate); }
.pill.status-submitted { background: var(--accent-pale); color: var(--accent-ink); border-color: var(--accent-pale2); }
.pill.status-reviewed  { background: var(--ok-pale);      color: var(--ok); }
.pill.status-rejected  { background: var(--danger-pale);  color: var(--danger); }
.pill.status-archived  { background: var(--border);       color: var(--muted); }
.pill.req-status-open        { background: var(--warn-pale);   color: var(--warn); }
.pill.req-status-in_progress { background: var(--slate-pale);  color: var(--slate); }
.pill.req-status-done        { background: var(--ok-pale);     color: var(--ok); }
.pill.req-status-cancelled   { background: var(--border);      color: var(--muted); }

/* ── Access matrix ─────────────────────────────────────────────────── */
.matrix-panel { padding: 12px; overflow-x: auto; }
.access-matrix th.matrix-col { text-align: center; padding: 6px 4px; min-width: 110px; vertical-align: bottom; }
.access-matrix .matrix-form-title { font-size: 11.5px; color: var(--ink); font-weight: 600; line-height: 1.2; }
.access-matrix .matrix-form-sub   { font-size: 10.5px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.access-matrix td.matrix-cell { text-align: center; padding: 8px 4px; transition: background 0.2s ease; }
.access-matrix td.matrix-cell.matrix-flash { background: var(--accent-pale); }
.access-matrix .matrix-check { cursor: pointer; width: 18px; height: 18px; accent-color: var(--accent); }
.access-matrix .matrix-admin { color: var(--accent); font-size: 16px; line-height: 1; }

/* ── Drafts grid ──────────────────────────────────────────────────── */
.draft-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 14px;
}
.draft-card {
  padding: 14px 16px; background: var(--panel); border: 1px dashed var(--accent);
  border-radius: var(--r-md); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 4px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.draft-card:hover { background: var(--accent-pale); }
.draft-title { font-weight: 600; font-size: 14px; }
.draft-go { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 6px; }

/* ── Fields on fill_form ──────────────────────────────────────────── */
.field { margin-bottom: 10px; }
.section-break { padding-top: 8px; margin-top: 14px; border-top: 1px solid var(--border); }
.placeholder-field {
  padding: 14px; border: 1px dashed var(--border-strong);
  border-radius: var(--r-md); background: var(--accent-pale); color: var(--accent-ink);
  font-size: 13px; text-align: center;
}

/* ── Meta grid (view_submission) ──────────────────────────────────── */
.meta-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; margin: 0; }
.meta-grid dt { color: var(--muted); font-size: 12.5px; font-weight: 500; padding-top: 2px; }
.meta-grid dd { margin: 0; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-foot {
  padding: 16px 22px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 12px; background: var(--panel);
  text-align: center;
}

/* ── Big CTA (worker dashboard) ────────────────────────────────── */
.cta-row { display: flex; justify-content: center; padding: 20px 0; }
.btn-big {
  padding: 18px 30px; font-size: 17px; border-radius: var(--r-lg);
  letter-spacing: -0.01em;
}

/* ── Drafts strip (pinned top) ─────────────────────────────────── */
.drafts-strip {
  background: var(--accent-pale); border: 1px solid var(--accent-pale2);
  border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 18px;
}
.drafts-strip-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px; font-size: 14px; color: var(--accent-ink); font-weight: 600;
}
.drafts-strip-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.draft-card {
  padding: 12px 14px; background: #fff; border: 1px dashed var(--accent);
  border-radius: var(--r-md); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 3px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.draft-card:hover { background: var(--accent-pale); }
.draft-title { font-weight: 600; font-size: 14px; }
.draft-go { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 4px; }

/* ── Fill drill-down (/fill) ───────────────────────────────────── */
.drill-wrap { max-width: 820px; margin: 0 auto; }
.drill-h {
  font-size: 17px; font-weight: 600; margin: 8px 0 14px;
  color: var(--ink); letter-spacing: -0.01em;
  padding-bottom: 8px; border-bottom: 2px solid var(--accent);
}
.drill-breadcrumb {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 13px; color: var(--muted);
}
.drill-back {
  font: inherit; font-size: 13px; color: var(--accent);
  background: transparent; border: none; padding: 4px 8px;
  border-radius: var(--r-sm); cursor: pointer; font-weight: 500;
  transition: background 0.12s ease;
}
.drill-back:hover { background: var(--accent-pale); }
.drill-crumb-mode { color: var(--muted); }

.mode-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}
.mode-tile {
  font: inherit; cursor: pointer; text-align: left;
  padding: 28px 22px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  color: var(--ink);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mode-tile:hover {
  border-color: var(--accent); box-shadow: var(--shadow-2);
}
.mode-ic {
  font-size: 32px; line-height: 1; color: var(--accent);
}
.mode-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.mode-sub { color: var(--muted); font-size: 13px; }

.group-tile-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-top: 6px;
}
.group-tile {
  font: inherit; cursor: pointer; text-align: left;
  padding: 14px 16px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.group-tile:hover {
  border-color: var(--accent); box-shadow: var(--shadow-2);
}
.group-tile-title { font-weight: 600; font-size: 15px; letter-spacing: -0.005em; }
.group-tile-count { font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ── Online users + leaderboard widgets ────────────────────────── */
.online-list { list-style: none; padding: 0; margin: 0; }
.online-row {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 10px;
  align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.online-row:last-child { border-bottom: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-live { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-pale); }
.online-name { font-weight: 500; }
.online-path { font-size: 11.5px; text-align: right; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }

.leaderboard { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
.leader-row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px;
  align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.leader-row:last-child { border-bottom: none; }
.leader-rank {
  font-weight: 700; color: var(--accent); font-size: 16px;
  width: 24px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.leader-name { font-weight: 500; }
.leader-total { font-weight: 700; color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.leader-today { font-size: 12px; }

/* ── Group access matrix (users.html) ──────────────────────────── */
.group-matrix th.matrix-group-head {
  text-align: center; font-size: 11.5px; color: var(--accent-ink);
  background: var(--accent-pale); font-weight: 600;
  padding: 6px 4px;
}
.matrix-col-sm {
  font-size: 11.5px !important;
  min-width: 80px;
  padding: 6px 4px !important; color: var(--ink) !important;
}
.matrix-user { min-width: 140px; }

/* ── Kiosk detail timeline ─────────────────────────────────────── */
.kiosk-hero { gap: 12px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-row {
  display: grid; grid-template-columns: 12px 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.timeline-row:last-child { border-bottom: none; }
.timeline-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong); margin-top: 6px;
}
.timeline-dot.status-approved { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-pale); }
.timeline-dot.status-pending  { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-pale); }
.timeline-dot.status-rejected { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-pale); }
.timeline-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.timeline-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

.event-list { list-style: none; padding: 0; margin: 0; }
.event-row {
  display: grid; grid-template-columns: max-content max-content 1fr; gap: 10px;
  padding: 6px 0; font-size: 13px; border-bottom: 1px dotted var(--border);
}
.event-row:last-child { border-bottom: none; }
.event-time { font-family: var(--nv-font-mono); font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted); }
.event-type { font-weight: 600; font-size: 12px; color: var(--accent-ink); }
.event-detail { color: var(--ink-soft); }

/* ── Cycle time + failure rate widgets ─────────────────────────── */
.cycletime-list, .failrate-list { list-style: none; padding: 0; margin: 0; }
.cycle-row, .fail-row {
  display: grid; align-items: center;
  padding: 6px 0; border-bottom: 1px dotted var(--border); font-size: 13px;
}
.cycle-row { grid-template-columns: 1fr 80px max-content max-content; gap: 10px; }
.cycle-form { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cycle-bar-wrap { background: var(--border); border-radius: 3px; height: 6px; overflow: hidden; }
.cycle-bar { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.cycle-val { font-variant-numeric: tabular-nums; font-weight: 600; }
.cycle-n { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.fail-row { grid-template-columns: 1fr max-content; gap: 10px; }
.fail-form { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fail-counts { font-variant-numeric: tabular-nums; }
.fail-bad { color: var(--danger); font-weight: 700; }
.fail-ok  { color: var(--ok); font-weight: 600; }
.fail-pct { margin-left: 6px; }

/* ── Search bar ────────────────────────────────────────────────── */
.search-bar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 14px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.search-bar input, .search-bar select { min-height: 40px; }

/* ── Login: "or" divider above Scan-badge button ───────────────── */
.login-or {
  text-align: center; font-size: 11.5px; color: var(--muted);
  margin: 14px 0 10px;
  position: relative;
  font-weight: 500;
}
.login-or::before, .login-or::after {
  content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border);
}
.login-or::before { left: 0; }
.login-or::after  { right: 0; }

/* ── Scan field UI ─────────────────────────────────────────────── */
.scan-wrap {
  display: flex; align-items: stretch; gap: 6px;
}
.scan-wrap > input {
  flex: 1; min-width: 0;
}
.scan-btn {
  flex-shrink: 0; font: inherit; cursor: pointer;
  padding: 0 12px; border-radius: var(--r-md);
  background: var(--panel); color: var(--accent-ink);
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.12s ease, border-color 0.12s ease;
  font-size: 13px; font-weight: 500;
}
.scan-btn:hover { background: var(--accent-pale); border-color: var(--accent); }
.scan-ic { font-size: 16px; line-height: 1; }

.scan-overlay {
  position: fixed; inset: 0;
  background: rgb(31 35 48 / 0.78);
  z-index: 10000;
  display: flex; justify-content: center; align-items: center;
  padding: 20px;
}
.scan-panel {
  background: var(--panel); border-radius: var(--r-lg);
  width: 100%; max-width: 500px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.35);
}
.scan-panel-head {
  display: flex; justify-content: space-between; align-items: center;
}
.scan-close {
  font: inherit; font-size: 20px; cursor: pointer;
  background: transparent; border: none; padding: 4px 8px;
  color: var(--muted); line-height: 1;
}
.scan-close:hover { color: var(--ink); }
.scan-stage {
  background: #000; border-radius: var(--r-md); overflow: hidden;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.scan-stage video, .scan-stage > div {
  width: 100% !important; max-height: 60vh;
}
.scan-hint { text-align: center; font-size: 13px; }

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE — tablets + phones
   iOS zoom-on-focus happens below 16px inputs, so base font bumps.
   ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  main.wrap { padding: 16px 14px 60px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 10px; }
  .two-col { grid-template-columns: 1fr; gap: 14px; }
  .mode-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 24px; }
}

@media (max-width: 640px) {
  /* Kill iOS zoom-on-focus: inputs must be ≥16px. */
  body { font-size: 15px; }
  input[type="text"], input[type="email"], input[type="password"],
  input[type="number"], input[type="date"], input[type="time"],
  textarea, select {
    font-size: 16px; padding: 10px 12px;
  }

  /* Topnav: wrap instead of horizontal scroll, hide the role chip. */
  .topbar-inner {
    flex-wrap: wrap; gap: 6px; padding: 10px 14px;
  }
  .brand { order: 1; }
  .brand-logo { height: 22px; }
  .brand-divider { display: none; }
  .brand-text { font-size: 13px; }
  .topnav {
    order: 3; width: 100%; margin: 0; gap: 2px;
    overflow-x: auto; scrollbar-width: none;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav-link {
    font-size: 13px; padding: 6px 10px; white-space: nowrap;
  }
  .topnav-right { order: 2; margin-left: auto; gap: 6px; }
  .user-chip { display: none; }

  /* Main content sizing */
  h1 { font-size: 19px; }
  h2 { font-size: 14.5px; }
  .hero .muted { font-size: 13px; }

  /* Tables: horizontal scroll container (wrapped in .table-scroll OR native) */
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 7px 8px; }

  .panel { padding: 14px 14px; }

  /* Stat tiles: 1-up on very small phones, 2-up on regular phones */
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-tile { padding: 12px 14px; }

  /* Form tiles: tighter on mobile */
  .form-tile { padding: 10px 12px; }
  .form-tile-title { font-size: 14px; }
  .form-tile-desc { font-size: 12px; }
  .form-tile-aside { gap: 2px; }

  /* Mode tiles on phone: stack, reduce padding */
  .mode-tile { padding: 20px 18px; }
  .mode-title { font-size: 16px; }
  .mode-ic { font-size: 26px; }

  /* Drafts strip more compact */
  .drafts-strip-grid { grid-template-columns: 1fr; }

  /* Buttons = tap targets ≥ 44px */
  .btn-primary, .btn-ghost, .btn-gold { min-height: 40px; padding: 10px 14px; }
  .btn-sm { min-height: 30px; padding: 6px 12px; font-size: 13px; }

  /* Access matrix on phone is unusable as a wide grid — let it scroll. */
  .matrix-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .access-matrix { min-width: 520px; }

  /* Site footer smaller */
  .site-foot { padding: 12px 14px; font-size: 11.5px; }

  /* Scan button label hides on phone — icon only */
  .scan-btn .scan-lbl { display: none; }
  .scan-btn { padding: 0 10px; }
}

/* Worker dashboard — rejection-reason sub-row shown beneath rejected submissions */
.rejected-note-row td { border-top: none; padding-top: 0; }
.rejected-note {
  background: var(--danger-pale);
  border-left: 3px solid var(--danger);
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  margin-bottom: 4px;
}
.rejected-label {
  font-size: 11.5px; font-weight: 700;
  color: var(--danger);
  margin-right: 8px;
}
.rejected-text { color: var(--ink); font-weight: 500; }
.rejected-when { margin-left: 8px; font-size: 12px; color: var(--muted); }

/* Very narrow (≤360px) — just edge-to-edge the content */
@media (max-width: 360px) {
  main.wrap { padding: 12px 10px 50px; }
  .topbar-inner { padding: 8px 10px; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* ── Tablet / phone responsive (added 2026-04-24) ──────────────────── */

/* iPad portrait and narrower — topbar wraps, main padding tightens */
@media (max-width: 820px) {
  main.wrap { padding: 18px 16px 50px; }
  .topbar-inner { padding: 10px 16px; gap: 12px; flex-wrap: wrap; row-gap: 8px; }
  .topnav { flex-basis: 100%; order: 3; margin-left: 0; flex-wrap: wrap; }
  .topnav-right { margin-left: auto; }
  .brand-divider { display: none; }
  .brand-text { display: none; } /* logo is enough identifier */
}

/* Phone — single-column drafts, horizontally scrollable data tables */
@media (max-width: 600px) {
  .topbar-inner {
    padding: 10px 14px; gap: 6px;
    /* Stack the three groups vertically so nothing overflows the viewport. */
    flex-direction: column; align-items: stretch;
  }
  .brand { align-self: flex-start; }
  .topnav { flex-basis: auto; order: unset; margin-left: 0; width: 100%; justify-content: flex-start; }
  .topnav-right { margin-left: 0; width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
  .topnav-link { padding: 6px 10px; font-size: 13px; }
  .user-chip { padding: 3px 8px; font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

  h1 { font-size: 20px; }
  h2 { font-size: 14.5px; }

  main.wrap { padding: 14px 12px 46px; }
  .hero { margin-bottom: 16px; }

  /* Drafts strip — single column on phone */
  .drafts-strip-grid { grid-template-columns: 1fr !important; }
  .draft-card { min-width: 0; }

  /* Data tables: let the panel scroll horizontally; keep rows readable */
  .panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 560px; font-size: 13px; }
  .data-table th, .data-table td { padding: 8px 10px; white-space: nowrap; }

  /* Form fill — bigger tap targets on phones (fields already stack via inline CSS) */
  .field-input { min-height: 44px; padding: 10px 12px; font-size: 15px; }
  .radio-group label, .checkbox-group label { padding: 8px 0; min-height: 36px; }
  .section-block h3 { font-size: 15px; }

  /* CTA centering */
  .cta-row { text-align: center; }
  .btn-big { width: 100%; max-width: 360px; }
}
