/* Crypto & Solana operator page. Page-specific layout only; colours,
   cards, forms, callouts and findings come from shellproof.css. */

/* Why-cards: small icon + heading + body */
#why-cards .card { display: block; }
.why-card h3 { font-size: 16px; font-weight: 550; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.why-card h3 svg { width: 18px; height: 18px; flex: none; color: var(--sev-critical); }
.why-card p { margin: 0; font-size: 14px; color: var(--fg-2); }
.why-card .cve { font: 11.5px/1 var(--font-mono); color: var(--fg-faint); margin-top: 10px; display: block; }

/* Secret inventory list */
.key-inventory { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.key-inventory li { position: relative; padding: 10px 14px 10px 34px; font-size: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-subtle); }
.key-inventory li::before { content: ""; position: absolute; left: 13px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--sev-critical); }
.key-inventory li strong { font-weight: 550; }

.ref-row { margin-top: 20px; font-size: 12.5px; color: var(--fg-muted); }
.ref-row a { color: var(--fg-muted); text-decoration: underline; }
.ref-row a:hover { color: var(--fg); }

/* Incident-response ordered steps */
.ir-steps { list-style: none; counter-reset: ir; margin: 0; padding: 0; }
.ir-steps > li { position: relative; padding: 0 0 22px 56px; }
.ir-steps > li::before {
  counter-increment: ir; content: counter(ir);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 600 15px/1 var(--font-sans); color: var(--bg); background: var(--fg);
}
.ir-steps > li.assume::before { background: var(--sev-critical); }
.ir-steps > li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 1px; background: var(--border-strong); }
.ir-steps > li:last-child::after { display: none; }
.ir-steps .ir-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ir-steps h3 { font-size: 16.5px; font-weight: 550; margin: 5px 0 6px; }
.ir-steps p { margin: 0 0 8px; font-size: 14px; color: var(--fg-2); }
.ir-steps ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--fg-2); }
.ir-steps ul li { margin: 3px 0; }
.ir-steps a { text-decoration: underline; }
.ir-done { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg-muted); cursor: pointer; white-space: nowrap; flex: none; }
.ir-done input { width: 15px; height: 15px; accent-color: var(--fg); cursor: pointer; }
.ir-steps > li.done .ir-head h3 { text-decoration: line-through; color: var(--fg-muted); }
.ir-steps > li.done { opacity: 0.72; }

/* Scanner controls */
.scan-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.scan-progress { margin-top: 16px; }
#scan-status { margin-top: 10px; min-height: 1em; }
#scan-results { margin-top: 16px; }
.privacy-note { margin-top: 18px; }

/* Public-address pill inside findings */
.pubkey { font: 12px/1.4 var(--font-mono); color: var(--fg); background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px 8px; overflow-wrap: anywhere; }

/* Wallet checker */
.wallet-form { margin-bottom: 4px; }
.wallet-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; }
.wallet-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
#w-status { margin-top: 14px; min-height: 1em; }
#w-results { margin-top: 10px; }
.w-summary { font-size: 14px; margin: 0 0 12px; }
.w-summary .pubkey { display: inline-block; margin-top: 6px; }
.sig-cell { font: 12px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.sig-cell a { text-decoration: underline; }
.w-ok { color: var(--ok); font-weight: 550; }
.w-err { color: var(--sev-critical); font-weight: 550; }

@media (max-width: 560px) {
  .wallet-row { grid-template-columns: minmax(0, 1fr); }
}
