/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens — línea gráfica CheckID ───────────────────────────────── */
:root {
  --bg:          #EEF2FF;   /* fondo violeta muy suave */
  --surface:     #FFFFFF;
  --surface2:    #F8F9FF;
  --border:      #DFE2F4;   /* KMP surface variant */
  --primary:     #1480D0;   /* CheckID Blue */
  --secondary:   #4B55AD;   /* CheckID Purple */
  --pink:        #E2498A;   /* CheckID Pink */
  --text:        #191B23;
  --text2:       #555B6E;
  --muted:       #6B7280;
  --success:     #2E7D32;
  --success-bg:  #E8F5E9;
  --error:       #C62828;
  --error-bg:    #FFEBEE;
  --warn:        #E65100;
  --radius:      12px;
  --shadow-sm:   0 1px 4px rgba(20,128,208,0.08);
  --shadow-md:   0 4px 20px rgba(20,128,208,0.14);
  --font-mono:   'JetBrains Mono', 'Fira Mono', 'Courier New', monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ── Header — CheckID gradient ───────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #1480D0 0%, #4B55AD 100%);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow-md);
}

.brand-logo {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-logo svg { display: block; }

header h1 {
  font-size: 1.35rem;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
}
header h1 span {
  font-weight: 900;
  color: #FFD0E8;
}
header h1 small {
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.01em;
}

header .badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.docs-link {
  margin-left: auto;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.docs-link:hover { color: #fff; }

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:active  { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(20,128,208,0.3);
}
.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
  box-shadow: 0 4px 16px rgba(20,128,208,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.btn-secondary:hover:not(:disabled) { background: rgba(75,85,173,0.06); }

.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }

/* ── QR Section ─────────────────────────────────────────────────────────── */
.qr-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.qr-wrapper {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.qr-wrapper img { width: 156px; height: 156px; display: block; }

.qr-placeholder {
  width: 156px; height: 156px;
  background: var(--bg);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12px; text-align: center;
}

.qr-meta { display: flex; flex-direction: column; gap: 10px; }
.meta-row { display: flex; flex-direction: column; gap: 2px; }
.meta-label {
  font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.meta-value {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text); word-break: break-all;
}

/* ── Status badge ────────────────────────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.status-idle    { background: rgba(107,114,128,0.1);  color: var(--muted); }
.status-waiting { background: rgba(230,81,0,0.1);     color: var(--warn); }
.status-success { background: var(--success-bg);       color: var(--success); }
.status-error   { background: var(--error-bg);         color: var(--error); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ── Simulator section ───────────────────────────────────────────────────── */
.sim-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.sim-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--secondary);
}
.sim-label::before {
  content: '';
  display: block;
  width: 3px; height: 14px;
  background: var(--secondary);
  border-radius: 2px;
}

textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 12px;
  resize: vertical; min-height: 100px;
  outline: none;
  transition: border-color 0.15s;
}
textarea:focus { border-color: var(--primary); }

.sim-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }

.sim-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.sim-hint code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ── Result section ──────────────────────────────────────────────────────── */
.result-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.result-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--success);
}
.result-title::before {
  content: '';
  display: block;
  width: 3px; height: 14px;
  background: var(--success);
  border-radius: 2px;
}

pre {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
}

.pkg-toggle {
  background: none; border: none;
  color: var(--muted); font-size: 12px; cursor: pointer;
  padding: 0; text-decoration: underline; margin-top: 8px; display: block;
}
.pkg-toggle:hover { color: var(--text); }

.hidden { display: none !important; }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 999;
  animation: slideUp 0.2s ease;
  max-width: 300px;
  color: var(--text);
}
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error   { border-color: var(--error);   color: var(--error); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REPORT — SecureQR by CheckID
   ═══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   PROGRESS TRACKER
   ══════════════════════════════════════════════════════════════════════════ */

.progress-tracker {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pt-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid #F0F2FF;
  transition: background 0.2s;
}
.pt-step:last-child { border-bottom: none; }

/* Estado: icono circular */
.pt-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

/* pending */
.pt-step.pending .pt-icon {
  background: #F0F2FF; color: #C5C9E4;
}
/* started / in_progress */
.pt-step.started .pt-icon,
.pt-step.in_progress .pt-icon {
  background: rgba(20,128,208,0.12); color: #1480D0;
  animation: ptPulse 1.2s ease-in-out infinite;
}
/* completed */
.pt-step.completed .pt-icon {
  background: var(--success-bg); color: var(--success);
}
/* failed */
.pt-step.failed .pt-icon {
  background: var(--error-bg); color: var(--error);
}

@keyframes ptPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20,128,208,0.35); }
  50%       { box-shadow: 0 0 0 6px rgba(20,128,208,0); }
}

.pt-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pt-label {
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.pt-step.pending    .pt-label { color: var(--muted); }
.pt-step.started    .pt-label,
.pt-step.in_progress .pt-label { color: #1480D0; font-weight: 600; }
.pt-step.completed  .pt-label { color: var(--text); }
.pt-step.failed     .pt-label { color: var(--error); }

.pt-detail {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
}

.pt-time {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   DEVICE / CAMERA INTEGRITY
   ══════════════════════════════════════════════════════════════════════════ */

/* Sub-bloque dentro de la sección Dispositivo */
.integrity-sub {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #EEF0F8;
}
.integrity-sub-header {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.integrity-sub-label {
  font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
}

/* Header con badge de riesgo + nota (sección standalone — ya no se usa) */
.integrity-header {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}

/* Badge de riesgo */
.risk-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em;
}
.risk-low    { background: var(--success-bg); color: var(--success); }
.risk-medium { background: #FFF3E0;           color: #E65100; }
.risk-high   { background: var(--error-bg);   color: var(--error); }

/* Nota contextual */
.integrity-note      { font-size: 11px; color: #E65100; font-style: italic; }
.integrity-note-high { font-size: 11px; color: var(--error); font-weight: 600; }

/* Filas de flags */
.integrity-rows { display: flex; flex-direction: column; }
.integrity-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid #F5F6FC; font-size: 12.5px;
}
.integrity-row:last-child { border-bottom: none; }

.ir-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.ir-good .ir-icon { background: var(--success-bg); color: var(--success); }
.ir-bad  .ir-icon { background: var(--error-bg);   color: var(--error); }
.ir-neutral .ir-icon { background: #F0F2FF; color: var(--muted); }

.ir-label {
  flex: 1; color: var(--text); font-size: 12.5px;
}
.ir-bad .ir-label { color: var(--error); font-weight: 600; }

.ir-value {
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
  white-space: nowrap;
}
.ir-good    .ir-value { color: var(--success); }
.ir-bad     .ir-value { color: var(--error); }
.ir-neutral .ir-value { color: var(--muted); }

/* Card wrapper */
.report {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 40px rgba(20,128,208,0.16), 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(20,128,208,0.12);
}

/* ── Brand header ────────────────────────────────────────────────────────── */
.report-brand {
  background: linear-gradient(135deg, #1480D0 0%, #4B55AD 100%);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.report-brand-left { display: flex; align-items: center; gap: 12px; }
.report-brand-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.report-brand-name {
  font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,0.95); line-height: 1.2;
}
.report-brand-name strong { font-weight: 800; }
.report-brand-name .by-text { font-size: 11px; color: rgba(255,255,255,0.5); margin: 0 3px; }
.report-brand-name .check-text { font-weight: 300; color: rgba(255,255,255,0.95); }
.report-brand-name .id-text { font-weight: 900; color: #FFD0E8; }
.report-brand-subtitle {
  font-size: 10px; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px;
}
.report-brand-right { text-align: right; flex-shrink: 0; }
.report-brand-session {
  font-size: 10px; color: rgba(255,255,255,0.55);
  font-family: var(--font-mono); margin-bottom: 2px;
}
.report-brand-time { font-size: 12px; color: rgba(255,255,255,0.85); font-weight: 500; }

/* ── Status bar ──────────────────────────────────────────────────────────── */
.report-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; gap: 12px; flex-wrap: wrap;
}
.report-status.approved {
  background: linear-gradient(135deg, #F1FFF4 0%, #E8F5E9 100%);
  border-bottom: 2px solid #81C784;
}
.report-status.rejected {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEE 100%);
  border-bottom: 2px solid #E57373;
}
.report-status-left { display: flex; align-items: center; gap: 14px; }
.report-status-circle {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; flex-shrink: 0;
}
.approved .report-status-circle { background: #C8E6C9; color: #2E7D32; }
.rejected .report-status-circle { background: #FFCDD2; color: #C62828; }
.report-status-label {
  font-size: 18px; font-weight: 900; letter-spacing: 0.03em; line-height: 1.1;
}
.approved .report-status-label { color: #1B5E20; }
.rejected .report-status-label { color: #B71C1C; }
.report-status-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* PDF button inside status bar */
.report-pdf-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  background: white; color: #B71C1C;
  border: 1.5px solid #E57373;
  box-shadow: 0 1px 4px rgba(198,40,40,0.12);
  transition: all 0.15s; white-space: nowrap;
}
.report-pdf-btn:hover {
  background: var(--error); color: white; border-color: var(--error);
  box-shadow: 0 3px 12px rgba(198,40,40,0.3);
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.report-section {
  padding: 18px 22px;
  border-top: 1px solid #EEF0F8;
  background: white;
}
.report-section-title {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.report-section-title::after {
  content: ''; flex: 1; height: 1px; background: #EEF0F8;
}

/* 2-column layout for device + audit */
.report-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #EEF0F8;
}
.report-2col .report-section {
  border-top: none;
}
.report-2col .report-section:first-child {
  border-right: 1px solid #EEF0F8;
}

/* ── Personal data ───────────────────────────────────────────────────────── */
.report-personal { display: flex; gap: 18px; align-items: flex-start; }
.report-portrait-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0;
}
.report-portrait {
  width: 84px; height: 102px;
  border-radius: 10px; object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.report-portrait-label {
  font-size: 9px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.report-portrait-placeholder {
  width: 84px; height: 102px; border-radius: 10px;
  background: var(--surface2); border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--muted); text-align: center;
}
.report-name {
  font-size: 18px; font-weight: 800;
  color: var(--text); margin-bottom: 12px; line-height: 1.2;
}
.report-fields { display: flex; flex-direction: column; }
.report-field-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid #F5F6FC; font-size: 12.5px;
}
.report-field-row:last-child { border-bottom: none; }
.report-field-label { color: var(--muted); width: 108px; flex-shrink: 0; font-size: 11.5px; }
.report-field-value { color: var(--text); font-weight: 700; }

/* ── Security checks ─────────────────────────────────────────────────────── */
.report-checks-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.report-checks-title {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary);
}
.report-checks-badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.checks-all-pass { background: var(--success-bg); color: var(--success); }
.checks-has-fail { background: var(--error-bg);   color: var(--error); }

.report-checks { display: flex; flex-direction: column; }
.report-check {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid #F5F6FC;
}
.report-check:last-child { border-bottom: none; padding-bottom: 0; }
.report-check:first-child { padding-top: 0; }

.report-check-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; flex-shrink: 0;
}
.ci-qr       { background: rgba(123,31,162,0.10); color: #7B1FA2; }
.ci-nfc      { background: rgba(75,85,173,0.10);  color: #4B55AD; }
.ci-liveness { background: rgba(226,73,138,0.10); color: #E2498A; }
.ci-face     { background: rgba(20,128,208,0.10); color: #1480D0; }
.ci-subst    { background: rgba(230,81,0,0.10);   color: #E65100; }
.ci-regcivil { background: rgba(0,105,92,0.10);   color: #00695C; }

.report-check-body { flex: 1; min-width: 0; }
.report-check-label { font-size: 13px; color: var(--text); font-weight: 500; }

/* Score bar */
.report-check-score {
  display: flex; align-items: center; gap: 8px; margin-top: 5px;
}
.report-score-bar {
  flex: 1; height: 4px; background: #E8ECFF; border-radius: 2px; overflow: hidden;
}
.report-score-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #1480D0, #4B55AD);
  transition: width 0.6s ease;
}
.report-score-fill.fail { background: linear-gradient(90deg, #C62828, #E57373); }
.report-score-pct {
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
  color: var(--muted); white-space: nowrap; min-width: 48px; text-align: right;
}
.report-check-error {
  font-size: 11px; color: var(--error); margin-top: 3px;
}

.report-check-status {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; flex-shrink: 0;
}
.cs-pass    { background: var(--success-bg); color: var(--success); }
.cs-fail    { background: var(--error-bg);   color: var(--error); }
.cs-unknown { background: rgba(107,114,128,0.1); color: var(--muted); }

/* ── Images ──────────────────────────────────────────────────────────────── */
.report-images     { display: flex; flex-direction: column; gap: 14px; }
.report-images-row { display: flex; gap: 14px; flex-wrap: wrap; }
.report-photo-card { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.report-photo-label {
  font-size: 9px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.report-photo {
  height: 120px; border-radius: 10px;
  object-fit: cover; border: 2px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.report-photo-placeholder {
  height: 120px; width: 90px; border-radius: 10px;
  background: var(--surface2); border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--muted);
}

/* ── Meta rows (device/audit) ────────────────────────────────────────────── */
.report-meta-rows { display: flex; flex-direction: column; }
.report-meta-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid #F5F6FC; font-size: 12px;
}
.report-meta-row:last-child { border-bottom: none; }
.report-meta-label { color: var(--muted); width: 80px; flex-shrink: 0; font-size: 11px; }
.report-meta-value { color: var(--text); font-weight: 600; }

/* ── Location ────────────────────────────────────────────────────────────── */
.report-location-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.report-location-pin { font-size: 22px; }
.report-location-coords {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--text);
}
.report-location-acc {
  font-size: 11px; color: var(--muted);
  background: var(--surface2); border: 1px solid var(--border);
  padding: 2px 9px; border-radius: 999px; margin-top: 2px; display: inline-block;
}
.report-map-div {
  width: 100%; height: 220px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 0;
}
.report-map-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--primary);
  text-decoration: none; margin-top: 10px;
}
.report-map-link:hover { text-decoration: underline; }

/* ── JSON toggle ─────────────────────────────────────────────────────────── */
.report-json-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); cursor: pointer;
  background: none; border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 6px; font-weight: 600;
  transition: all 0.15s;
}
.report-json-toggle:hover { color: var(--text); border-color: #C5C9E4; background: var(--surface2); }
.report-raw-json { margin-top: 12px; }
