/* ============================================================================
   SNAP S2C-A — Scan-to-Cloud Archive : shared theme
   Ported from Steve's SNAP E-Maintenance app so the look/feel matches exactly.
   Dark surfaces + Canon-red accent. Every screen shares this one stylesheet.
   ============================================================================ */

:root {
  --red: #DC1E1E;
  --red-dark: #b01616;
  --red-dim: rgba(220,30,30,0.15);
  --bg: #1a1a1c;
  --surface: #242426;
  --surface2: #2e2e31;
  --border: rgba(255,255,255,0.1);
  --border2: rgba(255,255,255,0.18);
  --text: #f0f0f0;
  --muted: #9a9a9e;
  --hint: #5a5a5e;
  --success: #2ecc71;
  --warning: #f39c12;
  --info: #74b9ff;
  --r: 8px;
  --rl: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; min-height: 100vh; }

/* ── SCREENS (login vs main) ── */
.screen { display: none; }
.screen.active { display: block; }

/* ── HEADER + NAV ── */
.header { background: #111113; border-bottom: 2px solid var(--red); padding: 0 16px;
  display: flex; align-items: center; gap: 12px; height: 58px; position: sticky; top: 0; z-index: 100; }
.header-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.header-logo-text .name { font-size: 18px; font-weight: 500; letter-spacing: 0.12em; color: #f0f0f0; }
.header-logo-text .sub { font-size: 9px; letter-spacing: 0.15em; color: var(--muted); }
.header-divider { width: 2px; height: 30px; background: var(--red); }
.header-label { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 6px; margin-left: 10px; }
.nav-btn { background: transparent; border: 0.5px solid transparent; border-radius: var(--r);
  padding: 8px 12px; font-size: 13px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-btn:hover { color: var(--text); border-color: var(--border2); }
.nav-btn.active { color: var(--red); background: var(--red-dim); border-color: var(--red); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.role-badge { font-size: 11px; padding: 4px 10px; border-radius: 99px; }
.role-admin { background: var(--red-dim); color: var(--red); border: 0.5px solid rgba(220,30,30,0.3); }
.role-capture { background: rgba(52,152,219,0.12); color: var(--info); border: 0.5px solid rgba(52,152,219,0.3); }

/* ── BUTTONS ── */
.btn { border-radius: var(--r); padding: 10px 16px; font-size: 14px; cursor: pointer; border: none;
  font-weight: 500; transition: opacity 0.15s, transform 0.1s; display: inline-flex; align-items: center; gap: 6px; }
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: var(--surface2); color: var(--text); border: 0.5px solid var(--border2); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* ── PAGE + CARDS ── */
.page { padding: 16px; max-width: 1100px; margin: 0 auto; }
.card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--rl);
  padding: 1.1rem; margin-bottom: 12px; }
.card-title { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

/* ── FORM FIELDS ── */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface2);
  border: 0.5px solid var(--border); border-radius: var(--r); color: var(--text); padding: 10px 12px;
  font-size: 14px; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-dim); }
.field input::placeholder, .field textarea::placeholder { color: var(--hint); }
.required { color: var(--red); }
.err { font-size: 12px; color: #ff6b6b; margin-top: 6px; display: none; }
.err.show { display: block; }
.ai-filled { border-color: var(--success) !important; box-shadow: 0 0 0 2px rgba(46,204,113,0.15) !important; }
.low-conf { border-color: var(--warning) !important; box-shadow: 0 0 0 2px rgba(243,156,18,0.15) !important; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 2px 8px;
  border-radius: 99px; font-weight: 500; white-space: nowrap; }
.badge-ai { background: rgba(46,204,113,0.12); color: var(--success); border: 0.5px solid rgba(46,204,113,0.3); }
.badge-check { background: rgba(243,156,18,0.1); color: var(--warning); border: 0.5px solid rgba(243,156,18,0.3); }
.badge-optional { background: rgba(243,156,18,0.08); color: var(--warning); border: 0.5px solid rgba(243,156,18,0.25); }
.badge-required { background: var(--red-dim); color: var(--red); border: 0.5px solid rgba(220,30,30,0.3); }
.badge-text { background: rgba(116,185,255,0.12); color: var(--info); border: 0.5px solid rgba(116,185,255,0.3); }

/* ── BANNERS (AI status, system offline, etc.) ── */
.banner { border-radius: var(--r); padding: 9px 12px; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.banner-info { background: rgba(52,152,219,0.12); border: 0.5px solid rgba(52,152,219,0.35); color: var(--info); }
.banner-success { background: rgba(46,204,113,0.1); border: 0.5px solid rgba(46,204,113,0.3); color: var(--success); }
.banner-warn { background: rgba(243,156,18,0.1); border: 0.5px solid rgba(243,156,18,0.3); color: var(--warning); }
.banner-offline { background: var(--red-dim); border: 0.5px solid rgba(220,30,30,0.35); color: var(--red); }

/* ── LOGIN ── */
.login-wrap { max-width: 380px; margin: 0 auto; padding: 3rem 16px; }
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .name { font-size: 40px; font-weight: 500; letter-spacing: 0.14em; color: #f0f0f0; }
.login-logo .sub { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); margin-top: 4px; }
.login-logo .bar { width: 40px; height: 3px; background: var(--red); margin: 12px auto 0; border-radius: 2px; }
.login-portal-label { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 1.5rem; }
.login-foot { text-align: center; font-size: 11px; color: var(--hint); margin-top: 14px; }

/* ── EMPTY / PLACEHOLDER VIEW ── */
.placeholder { text-align: center; padding: 3rem 1rem; color: var(--hint); }
.placeholder i { font-size: 40px; display: block; margin-bottom: 12px; color: var(--muted); }
.placeholder h3 { font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.placeholder p { font-size: 13px; color: var(--muted); }

/* ── HELPER STATUS CHIP (header) ── */
.helper-chip { font-size: 11px; padding: 4px 10px; border-radius: 99px; border: 0.5px solid transparent;
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; background: transparent;
  font-family: inherit; white-space: nowrap; }
.helper-chip.helper-ok   { background: rgba(46,204,113,0.12); color: var(--success); border-color: rgba(46,204,113,0.3); }
.helper-chip.helper-bad  { background: var(--red-dim);        color: var(--red);     border-color: rgba(220,30,30,0.3); }
.helper-chip.helper-warn { background: rgba(243,156,18,0.1);  color: var(--warning); border-color: rgba(243,156,18,0.3); }

/* ── CAPTURE: category grid (step 1) ── */
.cap-lead { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cat-card { text-align: left; background: var(--surface2); border: 0.5px solid var(--border);
  border-radius: var(--rl); padding: 16px; cursor: pointer; color: var(--text); font-family: inherit;
  display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s, transform 0.1s; }
.cat-card:hover { border-color: var(--red); }
.cat-card:active { transform: scale(0.99); }
.cat-card.locked { cursor: not-allowed; opacity: 0.5; }
.cat-card.locked:hover { border-color: var(--border); }
.cat-top { display: flex; align-items: center; justify-content: space-between; }
.cat-icon { font-size: 26px; color: var(--red); line-height: 1; }
.cat-prefix { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; padding: 2px 8px;
  border-radius: 99px; background: var(--red-dim); color: var(--red); border: 0.5px solid rgba(220,30,30,0.3); }
.cat-name { font-size: 15px; font-weight: 500; }
.cat-hint { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.cap-chosen { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cap-chosen-label { font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }

/* ── CAPTURE: confirm-file list (step 2) ── */
.file-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface2); border: 0.5px solid var(--border); border-radius: var(--r);
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer; color: var(--text); font-family: inherit;
  transition: border-color 0.15s; }
.file-row:hover { border-color: var(--border2); }
.file-row.selected { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-dim); }
.file-radio i { font-size: 20px; color: var(--muted); display: block; }
.file-row.selected .file-radio i { color: var(--red); }
.file-icon i { font-size: 22px; color: var(--muted); display: block; }
.file-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-name { font-size: 14px; font-weight: 500; word-break: break-all; }
.file-sub { font-size: 11px; color: var(--muted); }
.file-empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.file-empty i { font-size: 34px; color: var(--muted); display: block; margin-bottom: 10px; }
.file-empty p { font-size: 13px; color: var(--muted); }
.file-empty-sub { font-size: 12px; color: var(--hint) !important; margin-top: 4px; }

/* ── CAPTURE: side-by-side verification (step 3) ── */
.verify-status { margin-bottom: 12px; }
.verify-status:empty { display: none; }
.verify-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; align-items: start; }
.verify-image-card { position: sticky; top: 74px; }
.verify-image { display: flex; align-items: center; justify-content: center; min-height: 320px;
  background: var(--surface2); border: 0.5px solid var(--border); border-radius: var(--r); overflow: hidden; }
.verify-image img { width: 100%; height: auto; display: block; background: #fff; }
.verify-image-empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.verify-image-empty i { font-size: 44px; display: block; margin-bottom: 12px; color: var(--muted); }
.verify-image-empty p { font-size: 13px; word-break: break-all; }

.vf-field { margin-bottom: 14px; }
.vf-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.vf-label label { font-size: 12px; color: var(--muted); }
.vf-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.vf-field input, .vf-field textarea { width: 100%; background: var(--surface2);
  border: 0.5px solid var(--border); border-radius: var(--r); color: var(--text); padding: 10px 12px;
  font-size: 14px; font-family: inherit; }
.vf-field input:focus, .vf-field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px var(--red-dim); }
.vf-field.invalid input, .vf-field.invalid textarea { border-color: var(--red) !important; box-shadow: 0 0 0 2px var(--red-dim) !important; }
.vf-help { font-size: 11px; color: var(--hint); margin-top: 4px; }

.vf-devices { display: flex; flex-direction: column; gap: 8px; }
.vf-device-row { display: flex; gap: 8px; align-items: flex-end; }
.vf-device-row .field { flex: 1; margin-bottom: 0; }
.vf-device-row .field label { font-size: 11px; }
.vf-del { flex: 0 0 auto; background: var(--surface2); border: 0.5px solid var(--border2); border-radius: var(--r);
  color: var(--muted); cursor: pointer; padding: 10px; line-height: 1; }
.vf-del:hover { border-color: var(--red); color: var(--red); }
.vf-del i { font-size: 16px; display: block; }
.vf-add { margin-top: 8px; }

.verify-actions { display: flex; gap: 10px; margin-top: 18px; }
.verify-fields-card.busy { opacity: 0.55; pointer-events: none; }
.vf-spin { display: inline-block; animation: vfspin 0.9s linear infinite; }
@keyframes vfspin { to { transform: rotate(360deg); } }

/* ── SEARCH (Phase 3) ── */
.search-bar { display: flex; gap: 8px; }
.search-bar input { flex: 1; background: var(--surface2); border: 0.5px solid var(--border);
  border-radius: var(--r); color: var(--text); padding: 11px 14px; font-size: 15px; font-family: inherit; }
.search-bar input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px var(--red-dim); }
.search-bar input::placeholder { color: var(--hint); }
.result-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface2); border: 0.5px solid var(--border); border-radius: var(--r);
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer; color: var(--text); font-family: inherit;
  transition: border-color 0.15s; }
.result-row:hover { border-color: var(--red); }
.result-row .file-icon i { font-size: 22px; color: var(--red); display: block; }
.result-row .file-meta { flex: 1; min-width: 0; }
.result-row .file-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.filters-panel { margin-top: 12px; padding-top: 12px; border-top: 0.5px solid var(--border); }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.filters-grid .field { margin-bottom: 0; }
.filters-grid select { width: 100%; background: var(--surface2); border: 0.5px solid var(--border);
  border-radius: var(--r); color: var(--text); padding: 9px 12px; font-size: 14px; font-family: inherit; }
.filters-grid select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px var(--red-dim); }
.f-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 12px; cursor: pointer; }
.f-check input { width: 16px; height: 16px; accent-color: var(--red); }
.filters-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ── DOCUMENT VIEWER (S4) ── */
.viewer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.viewer-edit-btn, .viewer-flag-btn { margin-left: auto; }

/* Flagged Metadata Queue rows */
.flag-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.flag-row:last-child { border-bottom: none; }
.flag-main { flex: 1; min-width: 260px; }
.flag-doc { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.flag-field { margin: 2px 0; }
.flag-cur { color: var(--muted); }
.flag-prop { color: var(--text); font-weight: 600; }
.flag-note { margin-top: 4px; color: var(--muted); font-style: italic; }
.flag-meta { margin-top: 6px; color: var(--muted); font-size: .85em; }
.flag-resolved-note { color: var(--muted); font-size: .9em; align-self: center; }
.btn-link { background: none; border: none; color: var(--red); cursor: pointer; padding: 0; font: inherit; text-align: left; }
.btn-link:hover { text-decoration: underline; }
.vf-field.flag-target input, .vf-field.flag-target textarea { border-color: var(--warning); box-shadow: 0 0 0 2px var(--warning-dim, rgba(245,180,60,.25)); }

/* Legacy migration — new-batch form + per-batch count chips */
.new-batch-form { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.new-batch-form input { flex: 1; min-width: 180px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px; color: var(--text); }
.new-batch-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px var(--red-dim); }
.batch-counts { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; font-size: .9em; }
.bc { color: var(--muted); }
.bc b { color: var(--text); }
.bc-ok b { color: var(--success); }
.bc-review b { color: var(--warning); }
.bc-fail b { color: var(--red); }

/* Legacy migration — batch workspace (intake + OCR) */
.batch-file-head { color: var(--muted); margin: 4px 0 8px; font-size: .9em; }
.batch-file { display: flex; align-items: center; gap: 8px; padding: 7px 4px; cursor: pointer; }
.batch-file:hover { background: var(--surface2); border-radius: 6px; }
.batch-file input { accent-color: var(--red); }
.batch-selall { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); cursor: pointer; }
.batch-selall input { accent-color: var(--red); }
.mig-result { padding: 12px 0; border-bottom: 1px solid var(--border); }
.mig-result:last-child { border-bottom: none; }
.mig-result .batch-counts { margin-top: 6px; }
.mig-result.mig-fail { color: var(--red); }
.mig-result.mig-manual { color: var(--muted); }
.viewer-title { font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.viewer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: start; }
.viewer-image { display: flex; align-items: center; justify-content: center; min-height: 300px;
  background: var(--surface2); border: 0.5px solid var(--border); border-radius: var(--r); overflow: hidden; }
.viewer-image img { width: 100%; height: auto; display: block; background: #fff; }
.viewer-image-empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.viewer-image-empty i { font-size: 44px; display: block; margin-bottom: 12px; }
.kv { display: flex; gap: 10px; padding: 7px 0; border-bottom: 0.5px solid var(--border); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv-label { flex: 0 0 42%; color: var(--muted); }
.kv-value { flex: 1; min-width: 0; word-break: break-word; }
.kv-value.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.custody-card { border-color: rgba(46,204,113,0.25); }
.custody-title { color: var(--success); }
.related-row { margin-bottom: 8px; }
.related-via { font-size: 11px; color: var(--info); display: inline-flex; align-items: center; gap: 4px; }

@media (max-width: 860px) {
  .viewer-grid { grid-template-columns: 1fr; }
}

/* ── ADMIN DASHBOARD (Phase 4) ── */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-pill { background: var(--surface2); border: 0.5px solid var(--border); border-radius: 99px;
  padding: 8px 14px; font-size: 13px; color: var(--muted); cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px; }
.admin-pill:hover { color: var(--text); border-color: var(--border2); }
.admin-pill.active { color: var(--red); background: var(--red-dim); border-color: var(--red); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.stat-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--rl); padding: 16px; }
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-card .stat-icon { font-size: 22px; color: var(--red); }
.stat-card .stat-num { font-size: 30px; font-weight: 600; margin-top: 6px; }
.stat-card .stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat-card.attention .stat-num { color: var(--warning); }
.stat-card.attention .stat-icon { color: var(--warning); }
.cat-stat { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 0.5px solid var(--border); }
.cat-stat:last-child { border-bottom: none; }
.cat-stat .cs-name { flex: 0 0 40%; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.cat-stat .cs-bar { flex: 1; height: 8px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.cat-stat .cs-fill { height: 100%; background: var(--red); border-radius: 99px; }
.cat-stat .cs-num { flex: 0 0 auto; font-size: 13px; color: var(--muted); min-width: 28px; text-align: right; }
.user-row { display: flex; align-items: center; gap: 12px; background: var(--surface2); border: 0.5px solid var(--border);
  border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; flex-wrap: wrap; }
.user-row .file-icon i { font-size: 22px; color: var(--muted); }
.user-row .file-meta { flex: 1; min-width: 140px; }
.user-role { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--r); color: var(--text);
  padding: 8px 10px; font-family: inherit; font-size: 13px; }
.user-role:disabled { opacity: 0.5; cursor: not-allowed; }
.user-enabled.is-on { color: var(--success); border-color: rgba(46,204,113,0.3); }
.user-enabled.is-off { color: var(--red); border-color: rgba(220,30,30,0.3); }
.user-enabled:disabled { opacity: 0.5; cursor: not-allowed; }
.user-actions { display: flex; gap: 6px; flex-wrap: wrap; flex-basis: 100%; padding-top: 4px; }
.newuser-form { margin: 4px 0 14px; padding: 12px; background: var(--surface2); border: 0.5px solid var(--border); border-radius: var(--r); }
.newuser-form input, .newuser-form select { width: 100%; background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--r); color: var(--text); padding: 9px 12px; font-size: 14px; font-family: inherit; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center;
  justify-content: center; z-index: 500; padding: 16px; }
.modal-card { background: var(--surface); border: 0.5px solid var(--border2); border-radius: var(--rl);
  padding: 1.2rem; width: 100%; max-width: 420px; }
.modal-title { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.modal-msg { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

/* Audit trail */
.audit-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 0.5px solid var(--border);
  font-size: 13px; flex-wrap: wrap; }
.audit-row:last-child { border-bottom: none; }
.audit-when { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); flex: 0 0 auto; min-width: 140px; }
.audit-action { flex: 0 0 auto; background: var(--surface2); color: var(--text); border: 0.5px solid var(--border2); }
.audit-actor { flex: 0 0 auto; color: var(--text); }
.audit-detail { flex: 1; min-width: 0; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .verify-grid { grid-template-columns: 1fr; }
  .verify-image-card { position: static; }
}
@media (max-width: 640px) {
  .header-label { display: none; }
  .nav-btn span { display: none; }
}
