/* ============================================================================
   Vendor Verify — shared stylesheet (gate page + wizard + admin stubs)
   Owned by the UI agent. Vanilla CSS, no build step, no CDN fonts.
   Design language: light, premium, navy accent (#1F4E78) per the co-founder mock-up.
   Tap-first: all interactive targets are >=44px tall. Optimized for iPad portrait,
   scales down to phone and up to desktop.
   ============================================================================ */

:root {
  --navy: #1F4E78;
  --navy-dark: #163a5a;
  --navy-light: #eaf1f7;
  --navy-lighter: #f5f9fc;
  --ink: #1c2530;
  --ink-soft: #5b6b7c;
  --line: #e1e8ef;
  --line-soft: #edf1f5;
  --bg: #f7f9fb;
  --card: #ffffff;
  --good: #1f8a5b;
  --good-bg: #e8f6ef;
  --warn: #a15c00;
  --warn-bg: #fdf1de;
  --danger: #c23b3b;
  --danger-bg: #fbeaea;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(20, 30, 45, 0.04), 0 8px 24px rgba(20, 30, 45, 0.06);
  --shadow-pop: 0 4px 16px rgba(20, 30, 45, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body { min-height: 100vh; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

button { font-family: inherit; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background .12s ease, border-color .12s ease, transform .05s ease, box-shadow .12s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--line-soft); }

.btn-secondary {
  background: var(--navy-light);
  color: var(--navy);
}
.btn-secondary:hover { background: #dfeaf3; }

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-confirm {
  background: var(--good-bg);
  color: var(--good);
  border-color: transparent;
  margin-top: 8px;
  font-size: 13px;
  padding: 8px 14px;
  min-height: 36px;
}
.btn-confirm.is-confirmed {
  background: var(--good);
  color: #fff;
}

.btn-toggle {
  background: var(--card);
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  font-size: 13px;
  padding: 8px 14px;
  min-height: 36px;
  margin-top: 8px;
}
.btn-toggle.is-active {
  background: var(--navy);
  color: #fff;
  border-style: solid;
  border-color: var(--navy);
}

.btn-step {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-light);
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

/* ── Gate (invite-code) page ────────────────────────────────────────────── */

.gate-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(180deg, var(--navy-lighter) 0%, var(--bg) 55%);
}

.gate-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px 32px;
  text-align: center;
}

.gate-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 18px;
  margin-bottom: 20px;
}

.gate-title { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.gate-sub { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; margin: 0 0 28px; }

.gate-form { display: flex; flex-direction: column; gap: 12px; }

.gate-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 20px;
  text-align: center;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  min-height: 52px;
}
.gate-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-light);
}

.gate-submit { margin-top: 4px; }

.gate-error {
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  margin: 4px 0 0;
}

.gate-footnote {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ── Admin stub shell ───────────────────────────────────────────────────── */

.admin-body { padding: 32px; }
.admin-shell {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

/* ── Wizard shell ────────────────────────────────────────────────────────── */

.app-shell { display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-right: auto; }
.topbar-exit {
  margin-left: 16px;
  font-size: 13px; font-weight: 600;
  color: var(--navy); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; min-height: 36px; display: inline-flex; align-items: center;
  white-space: nowrap;
}
.topbar-exit:hover { background: var(--navy-light); border-color: var(--navy-light); }
.brand-mark {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}
.brand-divider { color: var(--line); }
.brand-vendor { color: var(--ink); font-size: 15px; }

.save-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.save-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--good);
  transition: background .15s ease;
}
.save-dot.is-saving { background: var(--warn); animation: pulse 1s infinite; }
.save-dot.is-error { background: var(--danger); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.step-tabs {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 10px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 53px;
  z-index: 19;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.step-tabs::-webkit-scrollbar { display: none; }

.step-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 40px;
}
.step-tab.is-active { background: var(--navy-light); color: var(--navy); }
.step-tab.is-done .step-num { background: var(--good); color: #fff; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}
.step-tab.is-active .step-num { background: var(--navy); color: #fff; }

.app-body {
  display: flex;
  flex: 1;
  gap: 24px;
  padding: 24px 20px 80px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.wizard-main {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 28px 24px;
}

.wizard-sidebar {
  width: 260px;
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step { display: none; }
.step.is-active { display: block; animation: fadein .18s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.step-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.step-lede { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 0 0 22px; }

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.banner {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 20px;
}
.banner-submitted { background: var(--good-bg); color: var(--good); }

/* ── Welcome step ────────────────────────────────────────────────────────── */

.welcome-facts {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.welcome-fact {
  background: var(--navy-lighter);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  flex: 1;
  min-width: 160px;
}
.welcome-fact-label { font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.welcome-fact-value { font-size: 14.5px; font-weight: 600; word-break: break-word; }
.welcome-note { font-size: 13px; color: var(--ink-soft); background: var(--navy-lighter); padding: 12px 14px; border-radius: var(--radius-sm); }

/* ── Field groups (labeled clusters, e.g. Tier 2's "Pricing & plans") ──────
   A subtle card per group keeps a long, flat run of fields scannable —
   the eye can jump group-to-group instead of parsing 18 fields in a row. */

.field-group {
  background: var(--navy-lighter);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 4px;
  margin-bottom: 20px;
}
.field-group:last-of-type { margin-bottom: 26px; }

.group-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin: 0 0 16px;
}
.group-title-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy-light);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  flex: 0 0 auto;
}

/* Inside a group, fields sit on plain background (no nested card) and the
   group's own padding/gap supplies the rhythm — avoid double borders. */
.field-group .field { background: transparent; }
.field-group .field:last-child { margin-bottom: 18px; }

/* ── Fields ──────────────────────────────────────────────────────────────── */

.field { margin-bottom: 26px; }
.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.field-label { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.field-sublabel { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); display: block; margin: 10px 0 6px; }
.field-hint { font-size: 12.5px; color: var(--ink-soft); margin: -4px 0 10px; }

.field-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.field-badge:empty { display: none; }
.field-badge.badge-inferred { background: var(--warn-bg); color: var(--warn); }
.field-badge.badge-confirmed { background: var(--good-bg); color: var(--good); }
.field-badge.badge-edited { background: var(--navy-light); color: var(--navy); }
.field-badge.badge-missing { background: var(--line-soft); color: var(--ink-soft); }

/* "AI had: … · Reset" hint, shown only while a field differs from its seed value. */
.orig-hint {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: -2px 0 10px; font-size: 12.5px;
}
.orig-was { color: var(--ink-soft); }
.orig-reset {
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--navy); background: var(--navy-light);
  border: 1px solid transparent; border-radius: 999px;
  padding: 3px 12px; min-height: 30px; cursor: pointer;
}
.orig-reset:hover { background: var(--navy); color: #fff; }

.text-input, .text-area {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.text-input:focus, .text-area:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-light);
}
.text-area { resize: vertical; min-height: 64px; }

.char-count { text-align: right; font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; }

/* ── Chips ───────────────────────────────────────────────────────────────── */

/* Chip rows always WRAP — never horizontally scroll. A booth iPad user
   shouldn't have to discover/drag a hidden horizontal scroller; wrapping to
   a tidy multi-line grid is always legible and fully tap-first.
   `.chip-row-wrap` is kept as a harmless alias (some rows still carry the
   class explicitly) so nothing needs to change behavior if it's present. */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  overflow-x: visible;
}
.chip-row-wrap { flex-wrap: wrap; overflow-x: visible; }

.chip {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  transition: all .1s ease;
  touch-action: manipulation;
}
.chip:active { transform: scale(0.97); }
.chip.is-selected {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 2px 6px rgba(31,78,120,0.25);
}
.chip.chip-other { border-style: dashed; color: var(--ink-soft); }
.chip.chip-other.is-selected { border-style: solid; }

.chip-conf {
  display: inline-block;
  margin-left: 6px;
  font-size: 10.5px;
  opacity: 0.75;
}

.other-input { margin-top: 10px; }

.yesno-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-yesno {
  flex: 1;
  min-width: 160px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
}
.btn-yesno.is-selected { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── PMS depth cards (two-axis, §6c) ────────────────────────────────────── */

.pms-depth-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.pms-depth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--navy-lighter);
}
.pms-depth-name { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.pms-depth-axis { margin-bottom: 10px; }
.pms-depth-axis:last-child { margin-bottom: 0; }
.pms-depth-axis-label { font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.pms-depth-axis .chip { padding: 7px 12px; font-size: 12.5px; min-height: 34px; }

/* ── Chip-add list (named customers) ────────────────────────────────────── */

.chip-add-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip-add-list:empty { margin-bottom: 0; }
.chip-added {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-light);
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  font-size: 13px;
  font-weight: 600;
}
.chip-added button {
  border: none;
  background: rgba(31,78,120,0.15);
  color: var(--navy);
  width: 20px; height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}
.chip-add-row { display: flex; gap: 8px; }
.chip-add-row .text-input { flex: 1; }

.year-stepper { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.year-value { font-size: 20px; font-weight: 700; min-width: 60px; text-align: center; }

.hq-city { margin-top: 12px; }

/* ── Sidebar: completeness meter + preview ──────────────────────────────── */

.meter-card, .preview-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.meter-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); margin-bottom: 12px; }
.meter-track { height: 10px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.meter-fill { height: 100%; background: linear-gradient(90deg, var(--navy), #3a7bb0); border-radius: 999px; transition: width .3s ease; }
.meter-pct { font-size: 28px; font-weight: 800; margin-top: 10px; color: var(--navy); }
.meter-sections { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.meter-disclaimer { font-size: 11.5px; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.4; }

.preview-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); margin-bottom: 10px; }
.preview-name { font-size: 16px; font-weight: 700; }
.preview-identity { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.45; }
.preview-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.preview-tag { background: var(--navy-light); color: var(--navy); font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

.done-submitted { color: var(--good); font-weight: 600; margin-top: 16px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .app-body { flex-direction: column-reverse; padding: 16px 14px 60px; }
  .wizard-sidebar { width: 100%; flex: none; flex-direction: row; }
  .meter-card, .preview-card { flex: 1; }
  .wizard-main { padding: 22px 18px 20px; }
}

@media (max-width: 560px) {
  .wizard-sidebar { flex-direction: column; }
  .step-actions { flex-direction: column-reverse; }
  .step-actions .btn { width: 100%; }
  .welcome-facts { flex-direction: column; }
}

/* ── Dark mode (system) — keep legible, same brand accent ───────────────── */

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f6;
    --ink-soft: #9fb0c0;
    --line: #2a3644;
    --line-soft: #232d39;
    --bg: #121820;
    --card: #1a222c;
    --navy-light: #1d3348;
    --navy-lighter: #17293a;
    --good-bg: #0f2e21;
    --warn-bg: #3a2a0f;
    --danger-bg: #3a1616;
    --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
  }
  .text-input, .text-area, .chip, .btn-yesno { background: #202b38; color: var(--ink); }
  .gate-input { background: #202b38; color: var(--ink); }
}

/* ── Admin: export + vendor lookup (booth-ops agent) ────────────────────────
   Scoped, additive rules only — reuses existing tokens (--navy, --good,
   --warn, --danger, .btn*, .admin-shell) so it stays consistent with the
   rest of the app without touching UI-agent-owned rules above. */

.admin-shell-wide { max-width: 1200px; }

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-header h1 { margin: 0 0 4px; font-size: 22px; }
.admin-header p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-nav {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.admin-nav a { color: var(--navy); text-decoration: none; }
.admin-nav a:hover { text-decoration: underline; }

.stat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.stat-tile {
  flex: 1 1 140px;
  background: var(--navy-lighter);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.stat-tile .stat-num { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-tile .stat-label { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.stat-tile.is-good .stat-num { color: var(--good); }
.stat-tile.is-warn .stat-num { color: var(--warn); }

.admin-search {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-search input[type="text"], .admin-search input[type="search"] {
  flex: 1 1 240px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  min-height: 44px;
  color: var(--ink);
  background: var(--card);
}
.admin-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-light); }

.admin-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-filter {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  min-height: 30px;
}
.admin-filter.is-active { background: var(--navy-light); color: var(--navy); border-color: transparent; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}
.admin-table th {
  text-align: left;
  background: var(--navy-lighter);
  color: var(--ink-soft);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--navy-lighter); }
.admin-table .cell-muted { color: var(--ink-soft); }
.admin-table .cell-slug { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-soft); }

.diff-row-other td { background: var(--warn-bg); }
.diff-row-changed td { background: var(--navy-lighter); }
.diff-row-confirmed td { }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.badge-confirmed { background: var(--good-bg); color: var(--good); }
.badge-changed { background: var(--navy-light); color: var(--navy); }
.badge-other { background: var(--warn-bg); color: var(--warn); }
.badge-submitted { background: var(--good-bg); color: var(--good); }
.badge-in_progress { background: var(--warn-bg); color: var(--warn); }
.badge-not_started { background: var(--line-soft); color: var(--ink-soft); }
.badge-revoked { background: var(--danger-bg); color: var(--danger); }

.vendor-lookup-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--navy-lighter);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.vendor-lookup-card h2 { margin: 0 0 4px; font-size: 18px; }
.vendor-lookup-card .vendor-slug { color: var(--ink-soft); font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.reissue-result {
  margin-top: 16px;
  background: var(--good-bg);
  border: 1px solid var(--good);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.reissue-result .new-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--good);
  letter-spacing: 0.04em;
  margin: 6px 0 0;
}

.field-diff-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.field-diff-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.field-diff-item .field-name { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.field-diff-values { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.field-diff-values .from { color: var(--ink-soft); }
.field-diff-values .arrow { color: var(--ink-soft); }
.field-diff-values .to { color: var(--ink); font-weight: 600; }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

.confirm-inline-form { display: inline; }

@media (prefers-color-scheme: dark) {
  .admin-search input[type="text"], .admin-search input[type="search"] { background: #202b38; }
}
