.trust-wrap { max-width: 900px; margin: 36px auto 100px; padding: 0 20px; }

.disclosure {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 3px solid #0b9c91;
  border-radius: 10px;
  padding: 15px 18px;
  margin-bottom: 26px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.disclosure strong { color: var(--ink); }

/* ─── Check form ─────────────────────────────────────────────────────────── */
.check-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; margin-bottom: 28px;
}
.check-label {
  display: block; font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px;
}
.check-row { display: flex; gap: 10px; flex-wrap: wrap; }
.check-input {
  flex: 1; min-width: 260px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; font-family: 'DM Mono', monospace; font-size: 14px;
  box-sizing: border-box;
}
.check-input:focus { outline: none; border-color: #0b9c91; }
.check-btn {
  background: #0b9c91; color: #fff; border: none; border-radius: 8px;
  padding: 12px 26px; font-size: 14px; font-weight: 800; cursor: pointer;
  white-space: nowrap; transition: background 0.18s; font-family: inherit;
}
.check-btn:hover { background: #087d74; }
.check-btn:disabled { background: #9fb4b1; cursor: not-allowed; }
.check-hint { margin-top: 12px; font-size: 12px; color: var(--muted); }
.check-example {
  background: none; border: none; color: #0b9c91; font-weight: 700;
  cursor: pointer; font-size: 12px; font-family: inherit; padding: 0;
  text-decoration: underline;
}

/* ─── Result card ────────────────────────────────────────────────────────── */
.result-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; margin-top: 8px;
}
.result-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; flex-wrap: wrap; }
.result-level {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px;
}
.result-level.level-low { background: #dcfce7; color: #166534; }
.result-level.level-medium { background: #fef3c7; color: #92400e; }
.result-level.level-high { background: #fee2e2; color: #991b1b; }
.result-level.level-unknown { background: #f1f5f9; color: #475569; }
.result-score { font-size: 13px; color: var(--muted); font-family: 'DM Mono', monospace; }
.result-address {
  font-family: 'DM Mono', monospace; font-size: 12.5px; color: var(--muted);
  word-break: break-all; margin: 6px 0 18px;
}
.result-recommendation {
  font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 20px;
  padding: 14px 16px; background: #f8fafc; border-radius: 10px; border: 1px solid var(--line);
}

.result-signals {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.signal-box { padding: 12px 14px; background: #f8fafc; border-radius: 10px; border: 1px solid var(--line); }
.signal-lbl { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 4px; }
.signal-val { font-size: 15px; font-weight: 700; color: var(--ink); }
.signal-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.flags-head { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 12px; }
.flag-card { border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--line); }
.flag-card.sev-high { background: #fef2f2; border-color: #fecaca; }
.flag-card.sev-warning { background: #fffbeb; border-color: #fde68a; }
.flag-card.sev-info { background: #f0fdfa; border-color: #99f6e4; }
.flag-summary { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.flag-detail { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.flag-sev-tag {
  display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 2px 7px; border-radius: 5px; margin-right: 8px; vertical-align: middle;
}
.sev-high .flag-sev-tag { background: #991b1b; color: #fff; }
.sev-warning .flag-sev-tag { background: #92400e; color: #fff; }
.sev-info .flag-sev-tag { background: #0f766e; color: #fff; }

.result-limits {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); line-height: 1.6;
}

.check-status { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; }
.check-status.is-error { color: #991b1b; }

[hidden] { display: none !important; }

/* ─── Fraud reports ───────────────────────────────────────────────────────
   Deliberately a separate card with a different border treatment from the
   result card above it. The API refuses to blend third-party claims into the
   ledger-derived score; if these rendered inside the same box, the layout
   would quietly undo a separation the data went out of its way to keep. */
.reports-card {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid #b45309;
  border-radius: 16px; padding: 24px 28px; margin-top: 18px;
}
.reports-head {
  font-size: 13px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px;
}
.reports-count {
  display: inline-block; background: #fef3c7; color: #92400e;
  border-radius: 999px; padding: 1px 9px; margin-left: 6px; font-size: 12px;
}
.reports-summary { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin-bottom: 16px; }
.reports-disclaimer {
  font-size: 11.5px; line-height: 1.6; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px;
}

.report-card {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px; background: #fffbeb;
}
.report-card.is-disputed { background: #f8fafc; }
.report-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 10px; }
.report-cat { font-weight: 800; font-size: 13px; color: #92400e; }
.report-date { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; }
.report-note { font-size: 13px; line-height: 1.55; color: var(--ink); margin-bottom: 8px; }
.report-evidence { font-size: 11.5px; color: var(--muted); font-family: 'DM Mono', monospace; word-break: break-all; }
.report-evidence a { color: #0b9c91; }
.report-dispute {
  margin-top: 10px; padding: 10px 12px; background: #ecfdf5;
  border-radius: 8px; font-size: 12.5px; line-height: 1.55; color: #065f46;
}

.report-btn {
  background: #b45309; color: #fff; border: none; border-radius: 8px;
  padding: 10px 18px; font-size: 13px; font-weight: 800; cursor: pointer;
  font-family: inherit; margin-top: 14px;
}
.report-btn:hover { background: #92400e; }
.report-btn:disabled { background: #c9b8a8; cursor: not-allowed; }
.report-cancel {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--muted); font-family: inherit;
}
.report-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }

.report-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.report-form-note {
  font-size: 12px; line-height: 1.6; color: var(--muted);
  background: #f8fafc; border: 1px dashed var(--line);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 16px;
}
.report-ok {
  margin-top: 12px; padding: 12px 14px; border-radius: 8px; font-size: 12.5px;
  line-height: 1.55; background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46;
}
.report-err {
  margin-top: 12px; padding: 12px 14px; border-radius: 8px; font-size: 12.5px;
  line-height: 1.55; background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d;
}

/* ─── Dispute response ────────────────────────────────────────────────────
   The message to sign is shown in full and the signature comes back as
   text. No field here ever asks for a secret key — an anchor should not
   learn the habit of pasting an issuer secret into a web form, least of
   all one asking it to answer an accusation. */
.report-respond {
  background: none; border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 12px; font-size: 11.5px; font-weight: 700; cursor: pointer;
  color: var(--muted); font-family: inherit; margin-top: 10px;
}
.report-respond:hover { border-color: #0b9c91; color: #0b9c91; }

.dispute-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.dispute-note {
  font-size: 12px; line-height: 1.6; color: var(--muted);
  background: #f8fafc; border: 1px dashed var(--line);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 14px;
}
.dispute-note strong { color: var(--ink); }
.dispute-note a { color: #0b9c91; font-weight: 600; }
.dispute-expiry { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: 0.8; }
.dispute-message {
  background: #04121b; color: #eaf4ef; border-radius: 8px;
  padding: 12px 14px; font-size: 11.5px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-all; margin: 0 0 8px;
  font-family: 'DM Mono', monospace;
}
.dispute-copy {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 5px 11px; font-size: 11px; font-weight: 700; cursor: pointer;
  color: var(--muted); font-family: inherit; margin-bottom: 14px;
}
.dispute-copy:hover { border-color: #0b9c91; color: #0b9c91; }

/* ─── AI Investigator ─────────────────────────────────────────────────────
   citedFacts and relevantSignals are deterministic and always rendered;
   the "no AI" tag next to them is deliberate, not decorative — it's the
   visual half of the same separation buildCitedFacts/buildPrompt keep in
   code. narrative gets its own visually distinct block, always labeled
   with the model that wrote it, never presented as though Landfall itself
   concluded anything. */
.investigate-btn {
  background: none; border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 12px; font-size: 11.5px; font-weight: 700; cursor: pointer;
  color: var(--muted); font-family: inherit; margin-top: 10px; margin-left: 8px;
}
.investigate-btn:hover { border-color: #6d28d9; color: #6d28d9; }
.investigate-btn:disabled { cursor: not-allowed; opacity: 0.6; }

.investigation-box { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.investigation-card { font-size: 12.5px; line-height: 1.55; }
.investigation-head {
  font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em; margin: 10px 0 6px;
}
.investigation-head:first-child { margin-top: 0; }
.investigation-tag {
  display: inline-block; background: #ede9fe; color: #5b21b6;
  border-radius: 999px; padding: 1px 8px; margin-left: 6px;
  font-size: 10px; text-transform: none; letter-spacing: 0; font-weight: 700;
}
.investigation-facts { margin: 0; padding-left: 18px; color: var(--ink); }
.investigation-facts li { margin-bottom: 5px; }
.investigation-none { color: var(--muted); font-style: italic; }
.investigation-sev {
  display: inline-block; border-radius: 5px; padding: 0 6px; font-size: 10px;
  font-weight: 800; text-transform: uppercase; margin-right: 4px;
}
.investigation-sev.is-warning { background: #fef3c7; color: #92400e; }
.investigation-sev.is-high { background: #fee2e2; color: #991b1b; }
.investigation-narrative {
  margin-top: 10px; padding: 10px 12px; background: #f5f3ff;
  border: 1px solid #ddd6fe; border-radius: 8px;
}
.investigation-narrative-label {
  font-size: 10.5px; font-weight: 700; color: #6d28d9; margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.investigation-narrative-text { color: var(--ink); font-size: 12.5px; line-height: 1.6; }
