/* NearMatch admin console (NEAR-74). The only stylesheet: the CSP (admin/public/_headers) allows no
   inline style, so every rule lives here. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #060610; color: #e8e8f0;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
header { display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid #1d1d33; position: sticky; top: 0; background: #060610; }
h1 { font-size: 20px; margin: 0; letter-spacing: -0.3px; }
h1 span { color: #ff3d5f; }
main { max-width: 1080px; margin: 0 auto; padding: 24px; }
.muted { color: #9a9ab0; font-size: 13px; }
.btn { background: #ff3d5f; color: #fff; border: 0; border-radius: 9px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer; }
.btn.ghost { background: #15152a; color: #e8e8f0; border: 1px solid #2a2a44; }
.btn.warn { background: #3a1520; color: #ff8097; border: 1px solid #5a2230; }
.btn.wide { margin-top: 12px; width: 100%; }
.btn.signout { margin-left: 12px; }
input { background: #10101e; border: 1px solid #2a2a44; color: #fff; border-radius: 9px;
  padding: 9px 12px; font-size: 14px; width: 100%; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.card { background: #0e0e1c; border: 1px solid #1d1d33; border-radius: 14px; padding: 16px; }
.card .n { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.card .l { color: #9a9ab0; font-size: 12px; margin-top: 2px; }
.card .sub { color: #6a6a85; font-size: 11px; margin-top: 6px; }
.panel { background: #0e0e1c; border: 1px solid #1d1d33; border-radius: 14px; padding: 18px; margin: 18px 0; }
.panel h2 { font-size: 15px; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #1a1a2e; vertical-align: top; }
th { color: #7a7a95; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
/* The funnel: one <progress> per stage, against the first stage. */
table.funnel th { width: 160px; text-transform: none; letter-spacing: 0; font-size: 12px; vertical-align: middle; }
table.funnel td { vertical-align: middle; }
table.funnel td.num { width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
table.funnel progress { width: 100%; height: 14px; accent-color: #ff3d5f; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.pill.pending { background: #3a3015; color: #ffcf6b; }
.pill.actioned { background: #3a1520; color: #ff8097; }
.pill.reviewed, .pill.dismissed { background: #15152a; color: #9a9ab0; }
.pill.active { background: #123a1f; color: #6bffa0; }
.pill.banned { background: #3a1520; color: #ff8097; }
.pill.deleted { background: #15152a; color: #9a9ab0; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 100px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; background: #1c1c33; color: #a9a9c9; margin-right: 4px; }
.badge.flag { background: #5a1020; color: #ffd0d8; border: 1px solid #ff3d5f; margin-top: 4px; }
.badge.onboarding { text-transform: none; letter-spacing: 0; font-weight: 600; background: #15152a; color: #9a9ab0;
  border: 1px solid #2a2a44; }
tr.flagged td { background: #1a0a10; }
.btn.ghost.on { background: #3a1520; color: #ff8097; border-color: #5a2230; }
.search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.search-row input { flex: 1; }
.gate { max-width: 380px; margin: 14vh auto; text-align: center; }
.gate .panel { text-align: left; }
.gate-panel { margin-top: 18px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.err { color: #ff8097; font-size: 13px; margin-top: 10px; min-height: 18px; }
code { background: #15152a; padding: 1px 5px; border-radius: 5px; font-size: 12px; }
#reportDetail:empty { display: none; }
#reportDetail { border-top: 1px solid #1d1d33; margin-top: 14px; padding-top: 14px; }
.evidence { background: #0a0a16; border: 1px solid #1d1d33; border-radius: 10px; padding: 12px; margin-top: 12px; }
.msg { padding: 6px 0; border-bottom: 1px solid #15152a; }
.msg:last-child { border-bottom: 0; }
.msg .body { white-space: pre-wrap; word-break: break-word; }
.msg.reported .body { color: #ffb3c0; }
/* NEAR-67: the user detail view */
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #12122a; }
tr.clickable.flagged:hover td { background: #24101a; }
.ulink { color: #ff8fa3; text-decoration: none; font-weight: 600; }
.ulink:hover { text-decoration: underline; }
.back { color: #9a9ab0; text-decoration: none; font-size: 13px; }
.back:hover { color: #e8e8f0; }
.detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.detail-head h2 { font-size: 22px; margin: 6px 0 0; letter-spacing: -0.3px; }
.panel h3 { font-size: 13px; color: #9a9ab0; font-weight: 600; margin: 16px 0 8px; }
.panel h3:first-of-type { margin-top: 0; }
table.kv th { width: 210px; text-transform: none; letter-spacing: 0; font-size: 12px; }
.gallery { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.gallery img { display: block; width: 96px; height: 128px; object-fit: cover; border-radius: 10px; border: 1px solid #2a2a44; }
.pill.validated { background: #123a1f; color: #6bffa0; }
.pill.expired, .pill.unmatched { background: #15152a; color: #9a9ab0; }
