/* Evidence Vault — design system. Single local stylesheet, no external fonts/CDNs.
   Gen6 palette: layered near-black surfaces, warm orange accent, crisp light text. */

:root {
  --bg:        #111214;
  --bg-2:      #15171a;
  --surface:   #1a1d21;
  --surface-2: #202329;
  --surface-3: #262a30;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.055);
  --ink:       #f2f3f5;
  --ink-dim:   #a7adb6;
  --ink-faint: #71777f;
  --accent:    #ef7d3a;
  --accent-2:  #ff9556;
  --accent-dim:#c25f27;
  --accent-ink:#160d06;
  --ok:        #5ec98c;
  --ok-bg:     rgba(94,201,140,0.12);
  --ok-line:   rgba(94,201,140,0.32);
  --bad:       #ef6a58;
  --bad-bg:    #2a1614;
  --bad-line:  rgba(239,106,88,0.42);
  --warn-bg:   rgba(239,125,58,0.09);
  --warn-line: rgba(239,125,58,0.30);
  --radius:    13px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --shadow:    0 1px 2px rgba(0,0,0,0.35), 0 12px 30px -16px rgba(0,0,0,0.7);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --ring:      0 0 0 3px rgba(239,125,58,0.28);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 78% -8%, rgba(239,125,58,0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { letter-spacing: -0.02em; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.hidden { display: none !important; }
.muted { color: var(--ink-dim); }
.wrap-any { overflow-wrap: anywhere; }
::selection { background: rgba(239,125,58,0.30); }

/* ---------------- header / footer ---------------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line-2);
  background: rgba(17,18,20,0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { height: 25px; width: auto; display: block; opacity: 0.97; }
.brand-divider { width: 1px; height: 20px; background: var(--line); }
.brand-name { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a {
  color: var(--ink-dim); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; transition: color .15s ease, background .15s ease; white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a.on { color: var(--ink); background: var(--surface-2); }
/* Primary call-to-action pill — Seal evidence is always highlighted. */
.site-nav a.nav-cta {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; font-weight: 650;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 4px 14px rgba(239,125,58,0.24);
}
.site-nav a.nav-cta:hover { color: var(--accent-ink); filter: brightness(1.05);
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.site-nav a.nav-cta svg { width: 15px; height: 15px; fill: none; stroke: var(--accent-ink);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .head-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
}

main.wrap { padding-top: 30px; padding-bottom: 64px; min-height: calc(100vh - 210px); }

.site-foot { border-top: 1px solid var(--line-2); background: var(--bg-2); }
.site-foot p { color: var(--ink-faint); font-size: 13px; margin: 0; }
.site-foot .wrap { padding-top: 20px; padding-bottom: 22px; }
.foot-brand { margin-top: 6px !important; }
.foot-brand strong { color: var(--ink-dim); font-weight: 600; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 17px; font: inherit; font-size: 14px; font-weight: 550; cursor: pointer;
  transition: all .15s ease; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-3); border-color: rgba(255,255,255,0.16); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-color: var(--accent); color: var(--accent-ink); font-weight: 650;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 18px -8px rgba(239,125,58,0.6);
}
.btn.primary:hover { filter: brightness(1.05); color: var(--accent-ink); border-color: var(--accent-2); }
.btn.big { padding: 12px 28px; font-size: 15px; }
.btn.small { padding: 5px 11px; font-size: 13px; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.warn-btn { border-color: var(--warn-line); color: var(--accent); background: var(--warn-bg); }
.btn.warn-btn:hover { background: rgba(239,125,58,0.16); color: var(--accent-2); }
.btn.danger { background: #4d1f19; border-color: #7e352b; color: #ffb4a8; font-weight: 650; }
.btn.danger:hover { background: #5f271f; color: #ffc7bd; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------------- panels ---------------- */

.panel {
  background: linear-gradient(180deg, var(--surface), #181b1f);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.panel.narrow { max-width: 440px; margin: 48px auto; }
.panel-title { font-size: 18px; margin: 0 0 16px; font-weight: 650; }
.panel-title.ok { color: var(--ok); }
.panel-title.spaced { margin-top: 28px; }
.panel-title .hint { font-weight: 400; }
.panel-sub { color: var(--ink-dim); font-size: 15px; margin: -8px 0 20px; }
.page-title { font-size: 27px; margin: 6px 0 10px; font-weight: 700; }
.page-title .hint { font-size: 13px; color: var(--ink-faint); font-weight: 400; margin-left: 8px; letter-spacing: 0; }

/* ---------------- forms ---------------- */

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--ink-faint); font-weight: 400; }
.field .hint .em { color: var(--accent); font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 140px 220px; gap: 14px; }
.field-row.two { grid-template-columns: 1fr 240px; }
.field input[type="text"], .field input[type="password"], .field input[type="date"],
.field input[type="number"], .field select, .field textarea, .short-input {
  width: 100%; background: #121417; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font: inherit; font-size: 14.5px; transition: border-color .15s, box-shadow .15s;
}
.field input[type="file"] { color: var(--ink-dim); width: 100%; font-size: 14px; }
.field input[type="file"]::file-selector-button {
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-xs); padding: 7px 13px; margin-right: 12px; font: inherit; font-size: 13px;
  cursor: pointer; transition: all .15s ease;
}
.field input[type="file"]::file-selector-button:hover { background: var(--surface-3); }
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-dim); box-shadow: var(--ring);
}
.field.check label { font-weight: 400; color: var(--ink-dim); display: flex; gap: 9px; align-items: flex-start; }
.field.check input { margin: 3px 0 0; accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 auto; }

.input-affix { display: flex; align-items: stretch; }
.input-affix .affix {
  display: flex; align-items: center; padding: 0 12px;
  background: #101215; border: 1px solid var(--line); color: var(--ink-dim);
  font-size: 14px; font-weight: 600;
}
.input-affix .affix:first-child { border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-affix .affix-r { border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-affix input { border-radius: 0 !important; }

/* ---------------- hero + tags ---------------- */

.hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  padding: 40px 34px 36px; margin-bottom: 22px;
  background:
    radial-gradient(130% 150% at 92% 118%, rgba(239,125,58,0.26) 0%, rgba(239,125,58,0.07) 34%, rgba(20,21,24,0) 64%),
    linear-gradient(180deg, #212327, #17191c);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.hero.compact { padding: 26px 30px 24px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--warn-line); background: var(--warn-bg);
  padding: 5px 12px; border-radius: 999px; line-height: 1;
}
.tag svg { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.case-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--warn-line); background: var(--warn-bg);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.05; margin: 0; font-weight: 760; letter-spacing: -0.03em;
}
.hero.compact h1 { font-size: clamp(27px, 4vw, 40px); }
.subhead { color: var(--ink-dim); font-size: 17px; max-width: 620px; margin: 14px 0 0; }

/* standalone highlighted permanence pill (wall / police pages) */
.seal-strip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 8px 15px; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink);
  font-weight: 700; font-size: 13.5px; box-shadow: 0 6px 18px -8px rgba(239,125,58,0.6);
}
.seal-strip svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-title + .seal-strip { margin-top: 8px; margin-bottom: 14px; }

/* ---------------- police banner ---------------- */

.police-banner {
  display: flex; align-items: center; gap: 13px;
  margin: 22px 0; padding: 12px 18px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(239,106,88,0.14), rgba(239,106,88,0.05));
  border: 1px solid var(--bad-line); color: var(--ink); text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.police-banner:hover { background: linear-gradient(90deg, rgba(239,106,88,0.2), rgba(239,106,88,0.08)); border-color: var(--bad); color: var(--ink); }
.police-banner svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: var(--bad); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.police-banner span { font-size: 14px; color: var(--ink-dim); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.police-banner strong { color: #ffb9ae; font-weight: 700; }

/* Wall landing hero — two columns so the header fills the width on wide screens */
.wall-hero {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.95fr);
  gap: 30px; align-items: stretch; margin: 2px 0 26px;
}
.wall-hero-main { display: flex; flex-direction: column; align-items: flex-start; }
.wall-hero-main .page-title { margin-top: 0; }
.wall-hero-sub { color: var(--ink-dim); font-size: 15.5px; line-height: 1.5; margin: 6px 0 16px; max-width: 62ch; }
.wall-hero-main .seal-strip { margin-top: auto; }
.wall-hero-side {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 22px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(239,125,58,0.11), rgba(239,125,58,0.03));
  border: 1px solid var(--warn-line);
}
.wall-stat { display: flex; flex-direction: column; }
.wall-stat-num { font-size: 42px; font-weight: 760; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.wall-stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dim); margin-top: 6px; }
.wall-hero-note { color: var(--ink-faint); font-size: 13px; line-height: 1.5; margin: 14px 0 16px; }
.wall-hero-side .btn { margin-top: auto; align-self: stretch; text-align: center; }
@media (max-width: 820px) {
  .wall-hero { grid-template-columns: 1fr; gap: 18px; }
  .wall-hero-main .seal-strip { margin-top: 4px; }
}

/* ---------------- value props ---------------- */

.valueprops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 22px; }
.vp {
  background: linear-gradient(180deg, var(--surface), #181b1f);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px 20px 18px;
  transition: border-color .15s ease, transform .15s ease;
}
.vp:hover { border-color: var(--warn-line); transform: translateY(-2px); }
.vp-ic { width: 27px; height: 27px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.vp h3 { margin: 0 0 5px; font-size: 15.5px; font-weight: 650; }
.vp p { margin: 0; color: var(--ink-dim); font-size: 13.5px; line-height: 1.55; }

/* ---------------- notice ---------------- */

.notice, .notice-inline {
  border: 1px solid var(--warn-line); border-left: 3px solid var(--accent);
  background: var(--warn-bg); border-radius: var(--radius-sm);
  padding: 14px 17px; margin: 0 0 22px; color: var(--ink-dim); font-size: 14px; line-height: 1.55;
}
.notice p { margin: 0; }
.notice strong { color: var(--ink); }
.notice-inline { display: block; margin-top: 14px; }

/* ---------------- latest evidence ---------------- */

.latest { margin-top: 4px; }
.latest-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.latest-head .panel-title { margin: 0; }
.latest-count { font-size: 12px; font-weight: 500; color: var(--ink-faint); letter-spacing: 0.02em; }
.latest-list { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.latest-row {
  display: grid; grid-template-columns: 1fr 190px 130px 92px; gap: 14px; align-items: center;
  padding: 13px 16px; border-bottom: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px;
  transition: background .12s ease;
}
.latest-row:last-child { border-bottom: 0; }
.latest-row:hover { background: var(--surface-2); }
.lr-hash { color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; }
.lr-time { color: var(--ink-faint); font-size: 12.5px; }
.lr-who { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- record cards + media (wall / latest) ---------------- */

.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.latest-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rec-card {
  background: linear-gradient(180deg, var(--surface), #181b1f);
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: border-color .15s ease, transform .15s ease;
  display: flex; flex-direction: column;
}
.rec-card:hover { border-color: var(--line); transform: translateY(-2px); }
.rec-media {
  position: relative; aspect-ratio: 16 / 10; background: #0e0f12;
  border-bottom: 1px solid var(--line-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.rec-media.is-sealed { background: repeating-linear-gradient(135deg, #131519, #131519 10px, #16181c 10px, #16181c 20px); }
.rec-media.is-removed { background: #1a1315; }
.rec-img, .rec-vid { width: 100%; height: 100%; object-fit: cover; display: block; background: #0e0f12; }
.rec-pdf { width: 100%; height: 100%; border: 0; background: #fff; }
.media-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-faint); font-size: 12.5px; text-align: center; padding: 12px;
}
.media-ph svg { width: 26px; height: 26px; fill: none; stroke: var(--ink-faint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.is-sealed .media-ph svg { stroke: var(--accent); opacity: 0.8; }
.media-ph .btn { margin-top: 2px; }
.spin {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite;
}
.spin.small { width: 13px; height: 13px; border-width: 2px; display: inline-block; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* pre-computed anti-flood proof status */
.submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pow-status { font-size: 13px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 7px; }
.pow-status.ready { color: var(--ok); }
.pow-status.error { color: var(--ink-faint); }
.pow-status .pow-detail { font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.pow-status .pow-tick { color: var(--ok); font-weight: 700; }
.media-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(20,22,25,0.82); color: var(--ok); border: 1px solid var(--ok-line);
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(4px);
}
.media-type {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: rgba(20,22,25,0.82); color: var(--ink-dim); border: 1px solid var(--line);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 5px;
}
.rec-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rec-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rec-who { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-dim); }
.rec-amt { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rec-dot { color: var(--ink-faint); font-size: 9px; margin-left: auto; }
.rec-dot.anchored { color: var(--ok); }
.rec-hash { font-size: 12px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; }
.rec-time { font-size: 11.5px; color: var(--ink-faint); }
.rec-actions { display: flex; gap: 14px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 13px; }
.rec-actions a { color: var(--accent); }
.rec-actions a.report-link { color: var(--ink-faint); margin-left: auto; }
.rec-actions a.report-link:hover { color: var(--bad); }

/* ---------------- verify / explorer page ---------------- */

.verify-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.verify-form { display: flex; gap: 10px; }
.verify-form input {
  flex: 1; background: #101215; color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px; font: inherit; font-size: 14.5px;
}
.verify-form input:focus { outline: none; border-color: var(--accent-dim); box-shadow: var(--ring); }
.small-note { font-size: 13px; margin-top: 12px; }
.verify-summary {
  display: flex; align-items: center; gap: 13px; padding: 15px 18px; border-radius: var(--radius);
  margin-bottom: 22px; font-size: 14.5px; line-height: 1.5;
}
.verify-summary svg { width: 26px; height: 26px; flex: 0 0 auto; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.verify-summary.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); }
.verify-summary.ok svg { stroke: var(--ok); }
.verify-summary.ok strong { color: var(--ok); }
.verify-summary.bad { background: var(--bad-bg); border: 1px solid var(--bad-line); }
.verify-summary.bad svg { stroke: var(--bad); }
.verify-summary.bad strong { color: #ffb9ae; }
.verify-file { margin-top: 6px; }
.verify-hash { font-size: 12px; color: var(--ink-faint); margin-top: 6px; overflow-wrap: anywhere; }

/* ---------------- chips ---------------- */

.chip {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-dim); text-decoration: none;
}
a.chip:hover { color: var(--ink); }
.chip.public { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.chip.sealed { border-color: var(--line); }
.chip.removed { border-color: var(--bad-line); background: var(--bad-bg); color: #f0b9b0; }
.chip.pending { border-color: var(--warn-line); background: var(--warn-bg); color: var(--accent); }
.chip.anchored { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); }

/* ---------------- alerts ---------------- */

.alert {
  border: 1px solid var(--bad-line); border-left: 3px solid var(--bad);
  background: var(--bad-bg); color: #f0b9b0; border-radius: var(--radius-sm);
  padding: 12px 15px; margin: 12px 0; font-size: 14px; line-height: 1.5;
}
.alert a { color: #ffcfc5; text-decoration: underline; }

/* ---------------- progress / result ---------------- */

.progress { margin-top: 18px; }
.progress-step { margin: 0 0 8px; font-size: 14px; }
.progress-detail { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-faint); font-family: var(--mono); }
.bar { height: 7px; background: #101215; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.25s ease; }

.result .keylink-box {
  display: flex; gap: 10px; align-items: center;
  background: #101215; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; margin: 12px 0 14px;
}
.result .keylink-box code { flex: 1; overflow-wrap: anywhere; font-size: 13px; color: var(--accent); }
.warn {
  border: 1px solid var(--warn-line); border-left: 3px solid var(--accent);
  background: var(--warn-bg); border-radius: var(--radius-sm); padding: 13px 16px; margin: 14px 0;
  color: var(--ink-dim); font-size: 14px; line-height: 1.55;
}
.warn strong { color: var(--ink); }

/* ---------------- record page ---------------- */

.record-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
dl.proof { margin: 0; }
dl.proof dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-top: 14px; }
dl.proof dt:first-child { margin-top: 0; }
dl.proof dd { margin: 4px 0 0; }
dl.proof.inline { display: grid; grid-template-columns: max-content 1fr; gap: 5px 18px; align-items: baseline; }
dl.proof.inline dt { margin-top: 0; }
dl.proof.inline dd { margin: 0; }
.verify { margin-top: 16px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.verify summary { cursor: pointer; color: var(--ink-dim); font-size: 14px; }
.verify summary:hover { color: var(--ink); }
.verify dl { margin-top: 12px; }
.claim-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 0; }
.decrypt-out { margin-top: 16px; }
.verify-ok { color: var(--ok); font-weight: 600; }
.verify-bad { color: var(--bad); font-weight: 600; }
.preview-img { max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 10px 0; }
.preview-text {
  max-height: 420px; overflow: auto; background: #101215; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.dl-row { margin: 12px 0 0; }
.file-count { display: block; margin-top: 6px; font-size: 13px; }
.rec-filecount { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 3px 8px;
  border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,0.66);
  color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.decrypt-file { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.decrypt-file:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.decrypt-file-h { font-weight: 600; color: var(--ink-dim); margin: 0 0 8px; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.04em; }
.mini-check { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 13px;
  color: var(--ink-dim); cursor: pointer; }
.mini-check input { width: 15px; height: 15px; accent-color: var(--accent); flex: 0 0 auto; margin: 0; }
.mini-check strong { color: var(--accent); font-weight: 600; }
.input-affix.disabled { opacity: 0.45; }
.chip.invest { border-color: var(--warn-line); background: var(--warn-bg); color: var(--accent); }
.rec-amt.invest { color: var(--accent); font-weight: 600; font-size: 12px; }
.private-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.private-block h3 { margin: 0 0 6px; font-size: 15px; }
.private-block textarea { width: 100%; background: #101215; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; font: inherit; margin-bottom: 8px; }
.report-row { margin: 24px 0 0; font-size: 14px; }
.report-link { color: var(--ink-faint); text-decoration: underline; }
.report-link:hover { color: var(--bad); }

/* ---------------- wall / tables ---------------- */

.filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin: 20px 0; }
.filters .field { margin: 0; }
.filters .field label { font-size: 12px; color: var(--ink-faint); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.records { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--surface); }
table.records th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-faint); font-weight: 600;
  padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-2);
}
table.records td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.records tbody tr:last-child td { border-bottom: 0; }
table.records tbody tr { transition: background .12s ease; }
table.records tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.row-actions { white-space: nowrap; text-align: right; }
td.row-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.bulk-bar { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; }
td.small-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.empty {
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-faint);
  text-align: center; padding: 40px 22px; margin-top: 4px; font-size: 14px;
}

/* ---------------- police / authorities page ---------------- */

.highlight-panel { border-color: var(--warn-line); box-shadow: var(--shadow), inset 0 0 0 1px rgba(239,125,58,0.06); }
.lead { font-size: 15.5px; color: var(--ink-dim); margin: 0 0 10px; line-height: 1.6; }
.sub-h { font-size: 14px; margin: 18px 0 8px; color: var(--ink); }
.checklist { margin: 0 0 6px; padding-left: 20px; color: var(--ink-dim); font-size: 14px; }
.checklist li { margin: 4px 0; }
.gov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 13px; }
.gov-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px 15px;
  transition: border-color .15s ease, transform .15s ease;
}
.gov-card:hover { border-color: var(--warn-line); transform: translateY(-2px); }
.gov-card h4 { margin: 0 0 7px; font-size: 13.5px; font-weight: 650; line-height: 1.35; }
.gov-card a { font-size: 13px; overflow-wrap: anywhere; }
.gov-meta { margin: 7px 0 0; font-size: 12px; color: var(--ink-faint); overflow-wrap: anywhere; line-height: 1.5; }
.gov-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-dim); line-height: 1.5; }
.template-wrap { position: relative; }
.template-wrap .copy-btn { position: absolute; top: 10px; right: 10px; z-index: 2; }
.template-box {
  background: #101215; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 10px 0 0; max-height: 400px; overflow: auto;
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; color: var(--ink-dim);
}

/* ---------------- admin ---------------- */

.admin-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--line-2); background: var(--bg-2); border-radius: var(--radius);
  padding: 9px 14px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.admin-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent-ink); background: var(--accent); border-radius: 5px; padding: 3px 8px; }
.admin-nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.admin-nav a { color: var(--ink-dim); padding: 5px 11px; border-radius: 6px; font-size: 13.5px; transition: all .15s ease; }
.admin-nav a:hover { color: var(--ink); background: var(--surface-2); }
.admin-nav a.on { color: var(--accent); background: var(--surface-2); }
.inline-form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.short-input { width: 90px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 13px; margin-bottom: 22px; }
.stat {
  background: linear-gradient(180deg, var(--surface), #181b1f);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow-sm);
}
.stat.attn { border-color: var(--warn-line); }
.stat-n { font-size: 27px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat.attn .stat-n { color: var(--accent); }
.stat-l { font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.decision-row { display: flex; gap: 12px; flex-wrap: wrap; }
.error-panel { max-width: 480px; margin: 64px auto; text-align: center; }

/* ---------------- responsive ---------------- */

@media (max-width: 820px) {
  .valueprops { grid-template-columns: 1fr; }
  .field-row, .field-row.two { grid-template-columns: 1fr; }
  .private-actions { grid-template-columns: 1fr; }
  .head-row { height: auto; padding: 11px 0; flex-wrap: wrap; gap: 10px; }
  dl.proof.inline { grid-template-columns: 1fr; gap: 0; }
  dl.proof.inline dt { margin-top: 10px; }
  .latest-row { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .latest-row .lr-time { display: none; }
  .hero, .hero.compact { padding: 24px 20px; }
}
