/* ==========================================================================
   SkipLot QC — main.css (2026 redesign)
   Drop-in replacement for app/static/main.css.
   - Keeps every class name the existing templates use, restyled.
   - Adds new components used by the redesigned templates (see README).
   - Only --accent is tenant-overridable; every other accent shade is derived
     from it with color-mix(), so base.html injects ONE variable.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Tenant accent (overridden in base.html) */
  --accent: #e84b10;
  --accent-strong: color-mix(in srgb, var(--accent) 84%, #000);   /* fills under white text (AA) */
  --accent-deep:   color-mix(in srgb, var(--accent) 70%, #000);   /* hover */
  --accent-tint:   color-mix(in srgb, var(--accent) 7%, #fff);    /* selected rows, active nav */
  --accent-ring:   color-mix(in srgb, var(--accent) 30%, #fff);   /* focus rings */

  /* Legacy aliases — older templates reference these */
  --accent-dark: var(--accent-strong);
  --accent-light: var(--accent-tint);

  /* Neutrals (cool) */
  --bg: #eef0f3;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --fg: #16191f;
  --fg-2: #414852;
  --muted: #5d6673;        /* 4.5:1+ on white */
  --faint: #8b939d;        /* decorative only, never body text */
  --border: #dde1e6;
  --border-strong: #c7cdd4;
  --row-line: #eceef1;

  /* Semantic */
  --ok: #1d7a3e;       --ok-bg: #d9f2e3;     --ok-fg: #14532d;
  --danger: #b42318;   --danger-bg: #fdf3f2; --danger-fg: #8f1c13;
  --warn: #8a5a00;     --warn-bg: #fbecc4;   --warn-fg: #6b4500;
  --info: #1d4f91;     --info-bg: #e3edfa;

  /* Legacy semantic aliases */
  --pass-bg: var(--ok-bg);
  --fail-bg: var(--danger-bg);
  --check-bg: var(--warn-bg);
  --skip-bg: var(--info-bg);

  /* Type */
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --sidebar-w: 232px;
  --topbar-h: 56px;
  --radius: 8px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--fg); }
h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--fg); }
h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
p  { margin: 0 0 12px; }
a  { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: 12px; }

.mono { font-family: var(--font-mono); font-size: .93em; }
.num  { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.ok  { color: var(--ok); font-weight: 500; }
.bad { color: var(--danger); font-weight: 500; }
.notes { color: var(--fg-2); font-size: 13px; max-width: 360px; white-space: normal; }
.caution { color: var(--warn); font-weight: 600; }
.page-subtitle { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 760px; }

/* ── App shell: sidebar ─────────────────────────────────────────────────── */
.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 16px 12px 12px;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 6px 16px; margin-bottom: 4px;
  border-bottom: 1px solid var(--row-line);
  color: var(--fg); text-decoration: none;
}
.sidebar-logo:hover { text-decoration: none; }
.sidebar-logo img { max-height: 34px; max-width: 180px; object-fit: contain; }
.sidebar-logo-mark {
  width: 34px; height: 34px; flex: none; border-radius: 7px;
  background: var(--fg); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 600 13px/1 var(--font-mono); text-transform: uppercase;
}
.sidebar-logo-text { font-size: 14px; font-weight: 600; color: var(--fg); line-height: 1.2; }
.sidebar-logo-sub  { font-size: 12px; color: var(--muted); margin-top: 2px; }

.sidebar-section { padding: 0; }
.sidebar-section-header {
  font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 16px 10px 6px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 1px; }
.sidebar-nav a {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 10px; border-radius: var(--radius-sm);
  color: #3b424c; font-size: 13.5px; text-decoration: none; white-space: nowrap;
}
.sidebar-nav a:hover { background: #f2f3f5; color: var(--fg); text-decoration: none; }
.sidebar-nav a.active { background: var(--accent-tint); color: var(--accent-strong); font-weight: 600; }
.sidebar-nav a.active::before {
  content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px;
  border-radius: 0 2px 2px 0; background: var(--accent);
}
.nav-icon, .sidebar-nav svg {
  width: 16px; height: 16px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.nav-count {
  margin-left: auto; font: 500 11px/1 var(--font-mono);
  padding: 3px 6px; border-radius: 10px; background: #eef0f3; color: #3b424c;
}
.sidebar-nav a.active .nav-count { background: #fff; color: var(--accent-strong); }

.sidebar-footer {
  margin-top: auto; padding: 12px 6px 0;
  border-top: 1px solid var(--row-line);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted);
}
.sidebar-footer .user-name { font-size: 13px; font-weight: 600; color: var(--fg); }
.sidebar-footer .user-meta { flex: 1; min-width: 0; }
.sidebar-footer form { margin: 0; }
.sidebar-footer form button { width: 30px; height: 30px; padding: 0; border-color: transparent; background: transparent; justify-content: center; }
.sidebar-footer form button:hover { background: #f2f3f5; }

.avatar {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: #e3e6ea; color: #3b424c;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; }

/* ── App shell: top bar + page body ─────────────────────────────────────── */
.page-body { margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 32px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.crumb, .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumb a, .breadcrumb a { color: var(--muted); }
.crumb a:hover { color: var(--fg); }
.crumb b, .breadcrumb span:last-child { color: var(--fg); font-weight: 600; }
.trial-chip {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--warn-fg);
  background: #fdf6e3; border: 1px solid #f1dfae; border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.trial-chip a { color: var(--warn-fg); font-weight: 600; }
/* Legacy full-width banner (kept for pages that still render it) */
.trial-banner { background: #fdf6e3; border-bottom: 1px solid #f1dfae; color: var(--warn-fg); font-size: 12.5px; text-align: center; padding: 6px 0; }

.page { padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 20px; }
.page > h1 { margin-bottom: -12px; } /* legacy templates: h1 directly followed by content */

.page-head, .page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head > div:first-child, .page-header { flex-direction: column; align-items: flex-start; gap: 6px; }
.page-head > div:first-child { display: flex; }
.page-header .breadcrumb { display: none; } /* breadcrumb now lives in the top bar */
.head-actions { display: flex; gap: 8px; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 0;
}
.page > .card, .page-body .card + .card { margin-top: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 440px; }
.card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--row-line);
}
.card-head h2 { margin: 0; }
.card-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.card-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--fg-2);
  margin-bottom: 12px;
}
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], input[type=url], input[type=date], select, textarea {
  font: 13.5px var(--font); color: var(--fg);
  height: 36px; padding: 0 10px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; width: 100%;
}
textarea { height: auto; min-height: 96px; padding: 9px 10px; line-height: 1.5; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
input::placeholder, textarea::placeholder { color: #6b737e; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-ring); outline-offset: 0; border-color: var(--accent);
}
input[readonly] { background: var(--surface-2); color: var(--fg-2); }
input[type=checkbox], input[type=radio] { width: 15px; height: 15px; margin: 0; accent-color: var(--accent-strong); cursor: pointer; }
input[type=color] { width: 44px; height: 36px; padding: 3px; cursor: pointer; }
.hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.inline-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--fg); }
form.inline { display: inline; margin: 0; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 14px;
  font: 500 13px/1 var(--font); white-space: nowrap;
  color: var(--fg); background: #fff;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
}
button:hover, .btn:hover { background: #f5f6f8; text-decoration: none; }
button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled, .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
button.primary, .btn.primary, .btn-primary {
  background: var(--accent-strong); border-color: var(--accent-strong); color: #fff;
}
button.primary:hover, .btn.primary:hover, .btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
button.primary:disabled { background: var(--border-strong); border-color: var(--border-strong); opacity: 1; }
button.danger, .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
button.danger:hover { background: #912018; }
button.ghost, .btn.ghost { background: transparent; border-color: transparent; }
button.ghost:hover, .btn.ghost:hover { background: #f2f3f5; }
button.sm, .btn-sm, .btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.lg, button.lg { height: 44px; font-size: 14px; font-weight: 600; }
.btn.block, button.block { width: 100%; }
button svg, .btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { width: 30px; height: 30px; padding: 0; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* ── Messages ───────────────────────────────────────────────────────────── */
.success, .error, .info, .warn {
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; border: 1px solid;
}
.success { background: #f0f9f3; color: var(--ok-fg); border-color: #b7dfc5; }
.error   { background: var(--danger-bg); color: var(--danger-fg); border-color: #f0b8b1; }
.info    { background: #f2f7fd; color: var(--info); border-color: #bcd3f0; }
.warn    { background: #fffaeb; color: var(--warn-fg); border-color: #f1dfae; }

/* ── Tables / data grid ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.plan-table { table-layout: fixed; width: 100%; min-width: 640px; }
.plan-table th, .plan-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
th {
  text-align: left; white-space: nowrap;
  font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 11px 12px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
td { padding: 0 12px; height: 44px; border-bottom: 1px solid var(--row-line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
th.r, td.r { text-align: right; }
td.id { font-family: var(--font-mono); font-size: 12.5px; }
td.qty { font-family: var(--font-mono); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
tr.is-selected td { background: var(--accent-tint); }
tr.is-skip td { color: var(--fg-2); }
tr.caution-row td { background: #fffaeb; }
.card > .table-wrap, .card.flush table { margin: 0; }
.card:not(.flush) > .table-wrap:only-child { margin: -18px -20px; }  /* a lone table sits edge-to-edge in its card */
.card:not(.flush) > h2 + .table-wrap { margin: 0 -20px -18px; border-top: 1px solid var(--row-line); }
.empty {
  padding: 48px 24px; text-align: center; color: var(--muted); font-size: 13.5px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty strong { color: var(--fg); font-size: 14.5px; }

/* Pagination / table footer */
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--row-line); }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 4px; white-space: nowrap;
  font: 600 11px/1 var(--font-mono); letter-spacing: .03em; text-transform: uppercase;
  background: #eef0f3; color: #3b424c;
}
/* Decision */
.badge-inspect { background: var(--accent-strong); color: #fff; }
.badge-skip, .badge-skip_ship { background: #e3e6ea; color: #3b424c; }
/* Inspection status (static + dynamic `badge-{{ status|lower }}` names) */
.badge-pending, .badge-pending_qc { background: #fff; color: #3b424c; box-shadow: inset 0 0 0 1px var(--border-strong); }
.badge-in-qc, .badge-in_qc { background: var(--warn-bg); color: var(--warn-fg); }
.badge-pass, .badge-passed, .badge-inspect_pass { background: var(--ok); color: #fff; }
.badge-fail, .badge-failed, .badge-inspect_fail { background: var(--danger); color: #fff; }
.badge-released { background: var(--ok-bg); color: var(--ok-fg); }
.badge-skipped { background: var(--info-bg); color: var(--info); }
.badge-awaiting_external { background: #f0e6ff; color: #6b21a8; }
:root[data-theme="dark"] .badge-awaiting_external { background: rgba(107,33,168,.25); color: #d8b4fe; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-awaiting_external { background: rgba(107,33,168,.25); color: #d8b4fe; } }
/* Dispositions (`badge-{{ disposition|lower }}`) */
.badge-reject { background: var(--danger-bg); color: var(--danger-fg); box-shadow: inset 0 0 0 1px #f0b8b1; }
.badge-rework { background: var(--warn-bg); color: var(--warn-fg); }
.badge-use_as_is { background: var(--info-bg); color: var(--info); }
.badge-scrap { background: #2a2f38; color: #fff; }
/* Skip-lot state (QC_YES / QC_NO etc.) */
.badge-qc_yes { background: var(--warn-bg); color: var(--warn-fg); }
.badge-qc_no { background: var(--info-bg); color: var(--info); }

/* Rule tag used in the Reason column: <span class="rule-tag">SKIP-STATE</span> */
.rule-tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 5px; margin-right: 8px;
  font: 500 10.5px/1 var(--font-mono); letter-spacing: .02em; color: var(--fg-2);
  background: var(--surface-2); border: 1px solid #d5dae0; border-radius: 3px;
}
.reason { color: var(--muted); }

/* ── Inspection Plan: stat tiles ────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--fg); text-decoration: none;
}
a.tile:hover { border-color: #b9c0c8; text-decoration: none; }
.tile.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.tile-label { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.tile-swatch { width: 10px; height: 10px; border-radius: 2px; background: #b3bac3; }
.tile-swatch.inspect { background: var(--accent-strong); }
.tile-value { display: flex; align-items: baseline; gap: 10px; }
.tile-value b { font: 600 30px/1 var(--font-mono); letter-spacing: -.02em; }
.tile-sub { font-size: 12.5px; color: var(--muted); }
.split-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #e3e6ea; }
.split-bar > span { background: var(--accent-strong); }
/* Legacy stat cards */
.stats-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; min-width: 140px; }
.stat-card .stat-val { font: 600 26px/1.1 var(--font-mono); }
.stat-card .stat-label { font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.stat-card.accent .stat-val { color: var(--accent-strong); }
.stat-card.ok .stat-val { color: var(--ok); }
.stat-card.danger .stat-val { color: var(--danger); }

/* ── Trial chip warn state ──────────────────────────────────────────────── */
.trial-chip-warn { background: var(--warn-bg); border-color: var(--warn-fg); }
.trial-chip-warn span { color: var(--warn-fg); }
.trial-chip-warn a { color: var(--warn-fg); }

/* ── Trial usage meter ──────────────────────────────────────────────────── */
.trial-meter-track { height: 6px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.trial-meter-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.trial-meter-fill.trial-meter-warn { background: var(--warn-fg); }
.trial-meter-fill.trial-meter-full { background: var(--danger); }

/* ── Plan cards (upgrade picker) ───────────────────────────────────────── */
.plan-card { display: flex; flex-direction: column; gap: 0; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px 16px; }
.plan-card-featured { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.plan-card-current { border-color: var(--ok); }
.plan-card-name { font: 600 13px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.plan-card-featured .plan-card-name { color: var(--accent-strong); }
.plan-card-price { font: 700 28px/1 var(--font-mono); margin-bottom: 14px; }
.plan-card-price span { font: 400 14px/1 var(--font); color: var(--muted); }
.plan-card-features { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.plan-card-features li { font-size: 13.5px; color: var(--muted); }
.plan-card-features li::before { content: "✓ "; color: var(--ok); font-weight: 600; }
.plan-card-current-label { font-size: 12px; text-align: center; color: var(--ok); font-weight: 600; display: block; padding: 8px 0 2px; }

/* ── Filter bar (inside a card, above a table) ──────────────────────────── */
.filter-bar {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.card .filter-bar, .filter-bar.in-card { border: 0; border-radius: 0; border-bottom: 1px solid var(--row-line); }
.filter-bar label { margin: 0; min-width: 160px; }
.filter-bar .filter-actions { display: flex; gap: 8px; align-items: flex-end; }
.filter-bar .spacer { flex: 1; }
.filter-bar .result-count { font-size: 12.5px; color: var(--muted); padding-bottom: 9px; }

/* ── Bulk action bar ────────────────────────────────────────────────────── */
.bulk-bar {
  display: flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 12px 0 16px;
  background: #1b1f26; color: #fff; font-size: 13px;
}
.bulk-bar[hidden] { display: none; }
.bulk-bar .selected-count { font-weight: 600; color: #fff; }
.bulk-bar .bulk-hint { margin-left: auto; font-size: 12.5px; color: #b3bac3; }
.bulk-bar button:not(.primary) { background: transparent; border-color: transparent; color: #d5dae0; height: 30px; }
.bulk-bar button:not(.primary):hover { background: #2a2f38; color: #fff; }
.bulk-bar button.primary { height: 32px; }

/* ── Tabs ───────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.tab {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; margin-bottom: -1px;
  font-size: 13.5px; color: var(--fg-2); border-bottom: 2px solid transparent; text-decoration: none;
}
.tab:hover { color: var(--fg); text-decoration: none; }
.tab.is-active { color: var(--fg); font-weight: 600; border-bottom-color: var(--accent); }
.tab .nav-count { margin-left: 0; }

/* Live indicator (auto-refreshing views) */
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.htmx-request .live::before { background: var(--warn); }
.age { font: 500 12.5px/1 var(--font-mono); display: inline-flex; align-items: center; gap: 6px; }
.age.is-late { color: var(--warn); font-weight: 600; }
.age.is-late::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d69e2e; }

/* ── Key/value + meta strip ─────────────────────────────────────────────── */
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 0; margin: 0; font-size: 13px; }
.kv dt, .kv dd { padding: 9px 0; border-bottom: 1px solid var(--row-line); margin: 0; }
.kv dt { color: var(--muted); }
.meta-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding: 0; }
.meta-strip > div { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-right: 1px solid var(--row-line); }
.meta-strip > div:last-child { border-right: 0; }
.meta-k { font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.meta-v { font-size: 14px; font-weight: 500; }
.meta-v.warn { color: var(--danger-fg); }

/* ── Inspection result (pass/fail radio cards) ──────────────────────────── */
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; margin: 0; padding: 0; }
.result-grid legend { font-size: 12.5px; font-weight: 500; color: var(--fg-2); padding: 0; margin-bottom: 8px; }
.result-card {
  flex-direction: row; align-items: center; gap: 14px; margin: 0;
  padding: 18px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: #fff; cursor: pointer; font-weight: 400;
}
.result-card:hover { border-color: var(--faint); }
.result-card input { width: 18px; height: 18px; accent-color: var(--fg); }
.result-card b { display: block; font-size: 15px; }
.result-card span { font-size: 12.5px; color: var(--fg-2); }
.result-card.pass b { color: var(--ok-fg); }
.result-card.fail b { color: var(--danger-fg); }
.result-card.pass:has(input:checked) { border-color: var(--ok); background: #f0f9f3; box-shadow: 0 0 0 3px #cdebd8; }
.result-card.fail:has(input:checked) { border-color: var(--danger); background: var(--danger-bg); box-shadow: 0 0 0 3px #f6d3cf; }

/* ── Disposition segmented control ──────────────────────────────────────── */
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; height: 38px; cursor: pointer;
  font: 600 12px/1 var(--font-mono); letter-spacing: .03em; color: var(--fg-2);
  border-right: 1px solid var(--border-strong); background: #fff;
}
.seg label:last-child span { border-right: 0; }
.seg span:hover { background: #f5f6f8; }
.seg input:checked + span { background: var(--fg); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ── Timeline (part history) ────────────────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 22px; }
.timeline li { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 14px; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--faint); box-shadow: 0 0 0 3px #fff; position: relative; z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 4.5px; top: 12px; bottom: -22px; width: 1px; background: var(--border); }
.timeline li.passed::before { background: var(--ok); }
.timeline li.failed::before { background: var(--danger); }
.timeline li.skipped::before { background: #3b7dd8; }

/* ── Auth pages (split layout) ──────────────────────────────────────────── */
.auth-page { margin: 0; min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 43%) 1fr; background: #f5f6f8; }
.auth-pane {
  background-color: #15181d;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #fff; padding: 56px 64px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.auth-eyebrow { font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #9aa3ad; }
.auth-pane h1 { color: #fff; font-size: 40px; line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.auth-specs { margin: 0; }
.auth-specs div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.auth-specs dt { font: 500 11px/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #9aa3ad; }
.auth-specs dd { margin: 0; color: #dfe3e8; }
.auth-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: s; }
.auth-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 14px; color: #dfe3e8; font-size: 14px; line-height: 1.45; }
.auth-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font: 500 12px/1 var(--font-mono); }
.auth-legal { font-size: 12px; color: #9aa3ad; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 400px; background: none; border: 0; box-shadow: none; padding: 0; }
.auth-box.wide { max-width: 440px; }
.auth-box h2 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
.auth-box .tagline { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.auth-box label { font-size: 12.5px; margin-bottom: 16px; }
.auth-box input { height: 40px; font-size: 14px; }
.auth-box .alt { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.logo-lg { display: none; } /* old auth logo; brand now lives in .auth-pane */
.auth-page > .auth-box:only-child {
  grid-column: 1 / -1; justify-self: center; align-self: center; margin: 48px 16px;
  max-width: 420px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 32px;
}
.auth-page > .auth-box:only-child h1 { font-size: 22px; margin-bottom: 8px; }
.auth-logo { margin-bottom: 24px; }
@media (max-width: 900px) { .auth-page { grid-template-columns: 1fr; } .auth-pane { display: none; } }

/* ── Setup wizard ───────────────────────────────────────────────────────── */
.wizard-steps, .import-steps { display: flex; align-items: center; gap: 12px; margin: 0; border: 0; }
.wizard-step, .import-step {
  display: flex; align-items: center; gap: 10px; flex: none;
  font-size: 13px; color: var(--muted); background: none; border: 0; padding: 0;
}
.wizard-step:not(:last-child)::after, .import-step:not(:last-child)::after { content: ""; width: 48px; height: 1px; background: var(--border-strong); margin-left: 2px; }
.step-num, .wizard-step::before {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font: 600 11.5px/1 var(--font-mono); border: 1px solid var(--border-strong); background: #fff; color: var(--fg-2);
}
.wizard-steps { counter-reset: w; }
.wizard-step { counter-increment: w; }
.wizard-step::before { content: counter(w); }
.wizard-step.done::before, .import-step.done .step-num { content: "✓"; background: var(--fg); border-color: var(--fg); color: #fff; }
.wizard-step.active, .import-step.active { color: var(--fg); font-weight: 600; }
.wizard-step.active::before, .import-step.active .step-num { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }

.preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.preset-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0;
  padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; font-weight: 400; color: var(--fg);
}
.preset-card:hover { border-color: #b3bac3; }
.preset-card input[type=radio] { position: absolute; top: 20px; right: 20px; width: 16px; height: 16px; display: block; }
.preset-card.selected, .preset-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); background: #fff; }
.preset-card-title { font-size: 16px; font-weight: 600; color: var(--fg); margin: 0; padding-right: 28px; }
.preset-card-desc { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.preset-params { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #e3e6ea; border-radius: var(--radius-sm); overflow: hidden; }
.preset-params div { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; background: #f9fafb; border-right: 1px solid #e3e6ea; }
.preset-params div:last-child { border-right: 0; }
.preset-params b { font: 600 16px/1 var(--font-mono); }
.preset-params span { font-size: 11px; color: var(--muted); }
.tag { font: 600 10.5px/1 var(--font-mono); letter-spacing: .04em; padding: 4px 6px; border-radius: 3px; background: var(--info-bg); color: var(--info); text-transform: uppercase; }

/* ── Import mapping ─────────────────────────────────────────────────────── */
.file-chip { display: flex; align-items: center; gap: 14px; }
.file-chip .ext { width: 38px; height: 38px; border-radius: var(--radius-sm); background: #e3f1e8; color: var(--ok); display: flex; align-items: center; justify-content: center; font: 600 10px/1 var(--font-mono); }
.mapping-table td { height: 52px; }
.mapping-table td:first-child { font-family: var(--font-mono); font-weight: 500; }
.mapping-table .sample { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.mapping-table .req-col { box-shadow: none; }
.mapping-table tr.is-missing td { background: #fffaeb; }
.mapping-table tr.is-missing select { border-color: #b7791f; box-shadow: 0 0 0 3px var(--warn-bg); }
.field-req-badge { font: 600 10px/1 var(--font-mono); letter-spacing: .04em; color: var(--fg-2); border: 1px solid var(--border-strong); border-radius: 3px; padding: 3px 4px; text-transform: uppercase; }
.extra-label-input { display: none; }
.extra-label-input.show { display: inline-block; width: 140px; }
.col-skip td { color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--row-line); font-size: 13px; }
.check-list li:last-child { border-bottom: 0; }
.check-list li.is-missing { color: var(--warn); font-weight: 500; }
.check-list .src { margin-left: auto; font: 11.5px var(--font-mono); color: var(--muted); }

/* ── Settings ───────────────────────────────────────────────────────────── */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.settings-col { display: flex; flex-direction: column; gap: 20px; }
.radio-row { flex-direction: row; display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-weight: 400; color: var(--fg); }
.radio-row:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.radio-row b { display: block; font-size: 13.5px; }
.term-row { display: grid; grid-template-columns: 120px 16px 1fr; gap: 12px; align-items: center; }
.term-row .from { font: 12.5px var(--font-mono); color: var(--muted); }
.color-preview { display: inline-block; width: 16px; height: 16px; border-radius: 3px; border: 1px solid var(--border); vertical-align: middle; margin-right: 6px; }

/* ── Admin index tiles / misc legacy ────────────────────────────────────── */
.admin-section-title { font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 10px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.admin-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); }
.admin-tile:hover { border-color: #b9c0c8; text-decoration: none; }
.admin-tile-title { font-weight: 600; }
.admin-tile-desc { font-size: 12.5px; color: var(--muted); }
.info-label { font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.info-value { font-size: 15px; font-weight: 500; }
.info-sub { font-size: 12px; color: var(--muted); }
.invite-link-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font: 12.5px var(--font-mono); word-break: break-all; }
.plan-badge { font: 600 11px/1 var(--font-mono); text-transform: uppercase; padding: 4px 7px; border-radius: 4px; }
.plan-badge.trial, .plan-badge.free_trial { background: var(--warn-bg); color: var(--warn-fg); }
.plan-badge.active { background: var(--ok-bg); color: var(--ok-fg); }
.webhook-actions { display: flex; gap: 8px; }

/* ── Receiving scan panel ───────────────────────────────────────────────── */
.scan-panel { background: #1b1f26; color: #fff; border-radius: var(--radius); padding: 20px 24px; }
.scan-panel .scan-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.scan-row { display: flex; gap: 8px; }
.scan-input { flex: 1; height: 52px !important; font: 20px var(--font-mono) !important; padding: 0 14px !important; border: 1px solid #3b424c !important; border-radius: var(--radius-sm); background: #0f1216 !important; color: #fff !important; }
.scan-input::placeholder { color: #6b737e; }
.scan-input:focus { outline: 2px solid var(--accent) !important; border-color: var(--accent) !important; }
.scan-go { height: 52px; padding: 0 20px; background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; font-weight: 600; font-size: 14px; }
.scan-status { margin-top: 10px; font-size: 13px; color: #b3bac3; }

/* ── Responsive: desktop-first, phones just shouldn't break ─────────────── */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles > :first-child { grid-column: 1 / -1; }
  .settings-grid, .two-col { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .page-body { margin-left: 0; }
  .topbar, .page { padding-left: 16px; padding-right: 16px; }
  .tiles, .preset-grid, .result-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .trial-chip span { display: none; }
}

/* ── SkipLot QC brand lockup (fixed colors, never tenant-themed) ─────────── */
.brand-lockup { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); } /* the mark's SVG has ~3px built-in padding */
.brand-lockup.is-dark { color: #fff; }
.brand-lockup .brand-mark { flex: none; }
.brand-word { font: 600 22px/1 var(--font); letter-spacing: -.025em; margin-left: -2px; }
.brand-qc { font: 600 13px/1 var(--font-mono); letter-spacing: .06em; padding: 4px 5px 3px; border: 2px solid #E84B10; border-radius: 4px; background: #E84B10; color: #fff; margin-left: -2px; }

/* ── Feedback button + dialog ────────────────────────────────────────────── */
.feedback-btn {
  font: 500 0.8125rem/1 var(--font);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.feedback-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}

.feedback-dialog {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  padding: 28px;
  width: 480px;
  max-width: calc(100vw - 32px);
  position: fixed;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  margin: 0;
  background: var(--surface);
  color: var(--fg);
}
.feedback-dialog::backdrop {
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}
.feedback-dialog-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  font-size: 1rem; color: var(--muted);
  cursor: pointer; padding: 4px 6px;
  border-radius: 4px;
}
.feedback-dialog-close:hover { color: var(--fg); background: var(--bg-alt); }

.feedback-kind {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  gap: 6px;
  transition: border-color .12s, background .12s;
  text-align: center;
}
.feedback-kind input[type="radio"] { display: none; }
.feedback-kind:has(input:checked),
.feedback-kind.active:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-strong);
}
.feedback-kind:hover { border-color: var(--accent); }

.feedback-thanks {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: 8px;
  color: var(--fg);
}
.feedback-thanks svg { color: var(--accent); flex: none; margin-top: 2px; }
.feedback-thanks strong { display: block; margin-bottom: 4px; }
.feedback-thanks p { margin: 0; color: var(--muted); font-size: 0.875rem; }
.feedback-error { color: var(--error, #c0392b); font-size: 0.875rem; margin-bottom: 8px; }

/* ── Banner alerts ───────────────────────────────────────────────────────── */
.banner {
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 0.875rem;
  margin-bottom: 14px;
  border: 1.5px solid transparent;
}
.banner-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.banner-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
@media (prefers-color-scheme: dark) {
  .banner-error   { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; }
  .banner-success { background: #052e16; border-color: #14532d; color: #86efac; }
}

/* ── Auth hero pane ─────────────────────────────────────────────────────── */
.auth-pane { position: relative; overflow: hidden; min-height: 100vh; box-sizing: border-box; }
.auth-pane::before {
  content: ""; position: absolute; inset: auto -20% -30% -20%; height: 70%; pointer-events: none;
  background: radial-gradient(ellipse at 30% 100%, rgba(232,75,16,.28), transparent 60%),
              radial-gradient(ellipse at 85% 90%, rgba(29,138,69,.22), transparent 55%);
}
.auth-pane > * { position: relative; }
.auth-hero { display: flex; flex-direction: column; gap: 32px; flex: 1; justify-content: center; }
.auth-hero h1 { margin-top: 14px; }

.auth-stat {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px);
}
.auth-stat-num {
  font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -.03em; white-space: nowrap;
  background: linear-gradient(135deg, #ff8a4c, #e84b10); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-stat-num span { font-size: .55em; margin-left: 2px; }
.auth-stat-num small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; font-family: var(--font-mono); -webkit-text-fill-color: #9aa3ad; }
.auth-stat-text { font-size: 14px; line-height: 1.45; color: #aeb6bf; }
.auth-stat-text b { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }

.auth-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.auth-feats li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; font-size: 13.5px; line-height: 1.5; color: #aeb6bf; }
.auth-feats b { display: block; color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.auth-feat-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(232,75,16,.14); border: 1px solid rgba(232,75,16,.3); color: #ff8a4c;
}
.auth-feat-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.auth-flow { display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.auth-flow-step { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #dfe3e8; background: rgba(255,255,255,.04); white-space: nowrap; }
.auth-flow-step.skip    { border-color: rgba(29,138,69,.6);  color: #86efac; background: rgba(29,138,69,.14); }
.auth-flow-step.inspect { border-color: rgba(240,180,41,.5); color: #fde68a; background: rgba(240,180,41,.1); }
.auth-flow-step.release { border-color: rgba(232,75,16,.6);  color: #ffb08a; background: rgba(232,75,16,.14); }
.auth-flow-split { display: flex; flex-direction: column; gap: 6px; }
.auth-flow-line { flex: 1; min-width: 20px; height: 1px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.auth-flow-line i { position: absolute; top: -1px; left: -30%; width: 30%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, #ff8a4c); animation: auth-flow-run 2.4s linear infinite; }
.auth-flow-line + .auth-flow-split + .auth-flow-line i { animation-delay: 1.2s; }
@keyframes auth-flow-run { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .auth-flow-line i { animation: none; display: none; } }
.auth-pane { padding: clamp(32px, 6vh, 56px) clamp(32px, 4.4vw, 64px); gap: clamp(20px, 4vh, 40px); }
.auth-pane h1 { font-size: clamp(28px, 2.7vw, 40px); }
.auth-hero { gap: clamp(20px, 3.4vh, 32px); }
.auth-flow { gap: 6px; font-size: 10px; }
.auth-flow-step { padding: 7px 10px; }
.auth-flow-line { min-width: 12px; }
@media (max-height: 820px) {
  .auth-feats li:nth-child(3) { display: none; }
  .auth-stat { padding: 14px 18px; }
  .auth-stat-num { font-size: 42px; }
}
@media (max-height: 680px) { .auth-flow { display: none; } }
