/* anonymousmedia.org — intelligence-center theme
   Type: B612 (Airbus cockpit-display face) + B612 Mono for instrument data only.
   Palette: void black, violet #7C3AED, lilac #A855F7, magenta heat #FF2BD6.            */

@font-face { font-family: "B612"; src: url("../fonts/b612-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "B612"; src: url("../fonts/b612-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "B612"; src: url("../fonts/b612-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url("../fonts/b612mono-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --void: #06040b;
  --deck: #0e0a19;
  --deck-2: #161026;
  --rule: #271e3d;
  --rule-2: #3b2e5c;
  --ink: #ece7f7;
  --ink-2: #b9b0d4;
  --ink-3: #9488b8;
  --violet: #7c3aed;
  --lilac: #a855f7;
  --lilac-ink: #c9a8ff;
  --magenta: #ff2bd6;
  --ok: #6ee7b7;
  --warn: #fbbf24;
  --err: #fb7185;

  --sans: "B612", "Segoe UI", system-ui, sans-serif;
  --mono: "B612 Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s-1: 0.8125rem;   /* 13 */
  --s0: 0.9375rem;    /* 15 */
  --s1: 1.0625rem;    /* 17 */
  --s2: 1.3125rem;    /* 21 */
  --s3: 1.625rem;     /* 26 */
  --s4: 2.0625rem;    /* 33 */

  --top-h: 56px;
  --radius: 6px;
  --grid: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--void);
  background-image:
    radial-gradient(1200px 420px at 50% -120px, rgba(124, 58, 237, 0.20), transparent 70%),
    linear-gradient(rgba(124, 58, 237, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.055) 1px, transparent 1px);
  background-size: auto, var(--grid) var(--grid), var(--grid) var(--grid);
  background-attachment: fixed, fixed, fixed;
  color: var(--ink);
  font: 400 var(--s0)/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lilac-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; border-radius: 3px; }
::selection { background: rgba(168, 85, 247, 0.45); color: #fff; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code, kbd, pre, .mono { font-family: var(--mono); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--violet); color: #fff; padding: 8px 12px; border-radius: var(--radius); }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 40px; padding: 0 18px;
  background: var(--violet); color: #fff; border: 1px solid var(--lilac); border-radius: var(--radius);
  font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #8b4cf6; color: #fff; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-quiet {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px;
  background: transparent; color: var(--ink-2); border: 1px solid var(--rule-2); border-radius: var(--radius);
  cursor: pointer; text-decoration: none; font-size: var(--s-1);
}
.btn-quiet:hover { color: var(--ink); border-color: var(--lilac); }
.btn-quiet.danger:hover { border-color: var(--err); color: var(--err); }
.link-btn { background: none; border: 0; color: var(--lilac-ink); cursor: pointer; padding: 0; font-size: var(--s-1); text-decoration: underline; text-underline-offset: 3px; }

.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: var(--radius); background: rgba(14, 10, 25, 0.85); overflow: hidden; }
.seg button {
  border: 0; border-right: 1px solid var(--rule-2); background: transparent; color: var(--ink-2);
  padding: 7px 12px; cursor: pointer; font-size: var(--s-1); white-space: nowrap;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: rgba(124, 58, 237, 0.32); color: #fff; box-shadow: inset 0 -2px 0 var(--lilac); }
.seg-full { display: flex; width: 100%; }
.seg-full button { flex: 1; }

/* ---------------------------------------------------------------- top bar */
.top {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  height: var(--top-h); padding: 0 20px;
  background: rgba(6, 4, 11, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); font-size: var(--s2); font-weight: 700; letter-spacing: -0.02em; }
/* The signature: "Anonymous" sits under a redaction bar, still faintly legible through it. */
.brand-redact { position: relative; display: inline-block; padding: 0 4px; }
.brand-redact span { color: #4a2a8c; position: relative; z-index: 1; }
.brand-redact::before {
  content: ""; position: absolute; inset: 0.14em 0 0.06em; border-radius: 2px;
  background: linear-gradient(180deg, #8f55f3, var(--violet));
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.45);
}
.brand-media { color: var(--ink); }
.brand:hover .brand-redact span { color: #2c1560; }

.live { display: flex; align-items: center; gap: 8px; font-size: var(--s-1); color: var(--ink-3); min-width: 0; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 0 rgba(255, 43, 214, 0.6); animation: pulse 2.4s ease-out infinite; flex: none; }
.live-word { color: var(--ink); font-weight: 700; }
.live-when { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live.stale .live-dot { background: var(--warn); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 43, 214, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(255, 43, 214, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 43, 214, 0); } }

.top-nav { display: flex; align-items: center; gap: 10px; }
.mode { font-size: var(--s-1); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--ink-2); white-space: nowrap; }
.mode-anonymous { border-style: dashed; }
.mode-registered { border-color: var(--lilac); color: var(--lilac-ink); }
.mode-admin { border-color: var(--magenta); color: #ff9ae9; }

/* ---------------------------------------------------------------- map theater */
.theater { position: relative; z-index: 0; isolation: isolate; border-bottom: 1px solid var(--rule); scroll-margin-top: var(--top-h); }
.map-wrap { position: relative; height: clamp(380px, 58vh, 760px); background: var(--void); overflow: hidden; }
.map { position: absolute; inset: 0; background: var(--void); }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: var(--s-1); pointer-events: none; }
.map-ready .map-fallback { display: none; }
/* Intelligence-center overlay: sector grid + edge vignette, above tiles, below controls. */
.map-wrap::after {
  content: ""; position: absolute; inset: 0; z-index: 400; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(6, 4, 11, 0.65) 100%),
    linear-gradient(rgba(168, 85, 247, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.07) 1px, transparent 1px);
  background-size: auto, 96px 96px, 96px 96px;
}
.sweep { position: absolute; inset: -50%; z-index: 401; pointer-events: none; background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(168, 85, 247, 0.08) 330deg, rgba(168, 85, 247, 0.16) 355deg, rgba(255, 43, 214, 0.3) 360deg); mix-blend-mode: screen; animation: sweep 2.2s cubic-bezier(.45,.05,.35,1) forwards; }
@keyframes sweep { from { transform: rotate(-90deg); opacity: 1; } 80% { opacity: 1; } to { transform: rotate(270deg); opacity: 0; } }

.hud { position: absolute; z-index: 500; display: flex; gap: 8px; }
.hud-tl { top: 12px; left: 56px; flex-wrap: wrap; }
.hud-bl { left: 12px; bottom: 12px; right: 260px; }
.hud-br { right: 12px; bottom: 12px; flex-direction: column; align-items: flex-end; gap: 6px; }
.hotspots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hotspots button {
  white-space: nowrap; flex: none;
  display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 10px;
  background: rgba(14, 10, 25, 0.86); border: 1px solid var(--rule-2); border-radius: 999px;
  color: var(--ink); font-size: var(--s-1); cursor: pointer;
}
.hotspots button:hover { border-color: var(--magenta); }
.hotspots .n { color: #ff9ae9; font-family: var(--mono); font-size: 0.75rem; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--ink-3); background: rgba(14, 10, 25, 0.86); padding: 5px 10px; border-radius: var(--radius); border: 1px solid var(--rule); }
.legend i { display: block; width: 110px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #2e1065, #5b21b6, var(--violet), var(--lilac), #e879f9, var(--magenta)); }
.readout { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); min-height: 1.2em; }

.map-toggle { display: none; }

/* sector panel (click results) */
.sector {
  position: absolute; z-index: 600; top: 12px; right: 12px; bottom: 12px; width: min(380px, calc(100% - 24px));
  display: flex; flex-direction: column;
  background: rgba(14, 10, 25, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rule-2); border-radius: 8px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
.sector-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 4px; }
.sector-head h2 { font-size: var(--s1); }
.sector-sub { padding: 0 14px 10px; color: var(--ink-3); font-size: var(--s-1); border-bottom: 1px solid var(--rule); }
.sector-sub .mono { color: var(--ink-2); }
.sector-list { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sector-list .sig { padding: 12px 14px; }
.sector-list .sig-title { font-size: var(--s0); }
.sector-list .sig-excerpt { -webkit-line-clamp: 2; }
.sector-list .empty { padding: 18px 14px; }

/* Leaflet chrome, restyled. "body" prefix: leaflet.css is injected later and would win ties. */
body .leaflet-container { background: var(--void); font-family: var(--sans); }
body .leaflet-bar { border: 1px solid var(--rule-2); box-shadow: none; border-radius: var(--radius); overflow: hidden; }
body .leaflet-bar a, body .leaflet-bar a:hover { background: rgba(14, 10, 25, 0.92); color: var(--ink); border-bottom-color: var(--rule-2); }
body .leaflet-bar a:hover { color: #fff; background: var(--deck-2); }
body .leaflet-container .leaflet-control-attribution { background: rgba(6, 4, 11, 0.72); color: var(--ink-3); font-size: 10px; }
body .leaflet-container .leaflet-control-attribution a { color: var(--ink-2); }
body .leaflet-touch .leaflet-bar { border: 1px solid var(--rule-2); }
body .leaflet-bar a.leaflet-disabled { background: rgba(14, 10, 25, 0.92); color: var(--rule-2); }
body .leaflet-tooltip { background: var(--deck); color: var(--ink); border: 1px solid var(--rule-2); box-shadow: none; font-family: var(--sans); }
body .leaflet-tooltip-top::before { border-top-color: var(--rule-2); }
.leaflet-tile-pane { filter: saturate(0.5) brightness(0.92) contrast(1.05); }
/* The global img/svg max-width reset would collapse Leaflet's SVG renderer to 0px in custom panes. */
body .leaflet-container svg, body .leaflet-container img { max-width: none; max-height: none; }
/* ---------------------------------------------------------------- feed */
.feed { max-width: 1180px; margin: 0 auto; padding: 28px 20px 96px; }
.feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.feed-head h1 { font-size: var(--s3); }
.feed-count { color: var(--ink-3); font-size: var(--s-1); }

.filters > .seg { justify-self: start; }
.filters { display: grid; gap: 12px; padding: 14px; margin-bottom: 8px; background: rgba(14, 10, 25, 0.75); border: 1px solid var(--rule); border-radius: 8px; }
.f-search input {
  width: 100%; min-height: 42px; padding: 0 14px;
  background: var(--void); border: 1px solid var(--rule-2); border-radius: var(--radius); color: var(--ink);
}
.f-search input::placeholder { color: var(--ink-3); }
.f-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.f-field { display: grid; gap: 4px; font-size: var(--s-1); color: var(--ink-3); }
.f-field select, .f-field input, .stack input, .stack textarea, .stack select, .grid-form input, .grid-form select {
  min-height: 36px; padding: 6px 10px; background: var(--void); color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: var(--radius); max-width: 100%;
}
.f-field select { max-width: 240px; }
.f-check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--s-1); color: var(--ink-2); cursor: pointer; min-height: 36px; }
.f-check input { accent-color: var(--violet); width: 16px; height: 16px; }
.f-check.tiny { min-height: 0; font-size: 0.75rem; }

.fresh {
  display: block; width: 100%; margin: 8px 0; padding: 10px; cursor: pointer;
  background: rgba(255, 43, 214, 0.08); border: 1px dashed var(--magenta); border-radius: var(--radius); color: #ffc2f1; font-weight: 700;
}
.feed-list { max-width: 860px; }
.feed-list[aria-busy="true"] { opacity: 0.55; transition: opacity .2s; }
.feed-more { max-width: 860px; padding: 20px 0; display: grid; justify-items: start; gap: 8px; }
.feed-end { color: var(--ink-3); font-size: var(--s-1); }
.empty { padding: 28px 18px; color: var(--ink-2); border: 1px dashed var(--rule-2); border-radius: 8px; margin: 12px 0; }
.empty strong { color: var(--ink); }

/* One signal row. Left strip encodes the kind: violet = news, magenta = anonymous. */
.sig {
  position: relative; padding: 16px 18px 14px 20px;
  border-bottom: 1px solid var(--rule);
  box-shadow: inset 3px 0 0 var(--violet);
}
.sig-anon { box-shadow: inset 3px 0 0 var(--magenta); background: linear-gradient(90deg, rgba(255, 43, 214, 0.045), transparent 40%); }
.sig.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background-color: rgba(168, 85, 247, 0.22); } to { background-color: transparent; } }
.sig-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: var(--s-1); color: var(--ink-3); margin-bottom: 6px; }
.sig-src { color: var(--ink-2); font-weight: 700; }
.sig-src-anon { display: inline-flex; align-items: center; }
.sig-src-anon .bar { display: inline-block; width: 5.2em; height: 0.95em; background: var(--ink-2); border-radius: 1px; transform: translateY(0.05em); }
.sig-loc {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0;
  color: var(--lilac-ink); font-size: var(--s-1); cursor: pointer; text-align: left;
}
.sig-loc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.sig-loc[data-precision="exact"]::before, .sig-loc[data-precision="city"]::before { background: currentColor; }
.sig-loc[data-precision="country"]::before { border-style: dotted; }
.sig-loc:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sig-loc-none { color: var(--ink-3); cursor: default; }
.sig-loc-none::before { border-color: var(--rule-2); }
.sig-loc-none:hover { color: var(--ink-3); text-decoration: none; }
.sig-flag { color: var(--warn); }
.sig-title { font-size: var(--s1); font-weight: 700; line-height: 1.35; margin-bottom: 4px; max-width: 70ch; }
.sig-title a { color: var(--ink); text-decoration: none; }
.sig-title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--lilac); }
.sig-excerpt { color: var(--ink-2); max-width: 72ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sig-body { margin-top: 8px; }
.sig-body summary { cursor: pointer; color: var(--lilac-ink); font-size: var(--s-1); }
.sig-body .md { margin-top: 8px; padding: 12px 14px; background: rgba(6, 4, 11, 0.6); border: 1px solid var(--rule); border-radius: var(--radius); }
.sig-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 1px 8px; font-size: 0.75rem; color: var(--ink-3); background: transparent; border: 1px solid var(--rule-2); border-radius: 999px; cursor: pointer; }
.tag:hover { color: var(--ink); border-color: var(--lilac); }
.sig-acts { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; }
.act { background: none; border: 0; padding: 0; color: var(--ink-3); font-size: var(--s-1); cursor: pointer; text-decoration: none; }
.act:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.act-save[aria-pressed="true"] { color: var(--lilac-ink); }

/* Markdown output */
.md > * + * { margin-top: 0.7em; }
.md h3, .md h4, .md h5 { font-size: var(--s0); }
.md ul, .md ol { padding-left: 1.3em; margin: 0; }
.md blockquote { margin: 0; padding-left: 12px; border-left: 2px solid var(--lilac); color: var(--ink-2); }
.md pre { overflow-x: auto; padding: 10px; background: var(--void); border: 1px solid var(--rule); border-radius: 4px; font-size: var(--s-1); }
.md code { font-size: 0.92em; }
.md hr { border: 0; border-top: 1px solid var(--rule-2); }

/* ---------------------------------------------------------------- submit button + dialogs */
.submit-fab {
  position: fixed; z-index: 60; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  background: var(--violet); color: #fff; font-weight: 700; font-size: var(--s0);
  border: 1px solid var(--lilac); border-radius: 8px; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18), 0 10px 34px rgba(124, 58, 237, 0.45);
}
.submit-fab::before { content: ""; width: 10px; height: 10px; background: var(--magenta); border-radius: 2px; box-shadow: 0 0 10px var(--magenta); }
.submit-fab:hover { background: #8b4cf6; }

.dlg {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 22px 24px 24px;
  background: var(--deck); color: var(--ink); border: 1px solid var(--rule-2); border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.dlg-wide { width: min(700px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(6, 4, 11, 0.78); backdrop-filter: blur(4px); }
.dlg[open] { animation: rise .18s ease-out; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.dlg h2 { font-size: var(--s2); margin-bottom: 8px; padding-right: 32px; }
.dlg-lede { color: var(--ink-2); margin-bottom: 18px; max-width: 60ch; }
.dlg-close-row { position: absolute; top: 12px; right: 12px; margin: 0; }
.dlg-x { width: 34px; height: 34px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: var(--radius); color: var(--ink-3); font-size: 22px; line-height: 1; cursor: pointer; }
.dlg-x:hover { color: var(--ink); border-color: var(--rule-2); }
.dlg-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.stack { display: grid; gap: 6px; }
.stack > label, .label-row label, .loc legend { font-weight: 700; font-size: var(--s-1); color: var(--ink); margin-top: 8px; }
.stack textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; }
.opt { color: var(--ink-3); font-weight: 400; }
.help { color: var(--ink-3); font-size: var(--s-1); }
.field-err { color: var(--err); font-size: var(--s-1); min-height: 0; }
.field-err:empty { display: none; }
[aria-invalid="true"] { border-color: var(--err) !important; }
.form-msg { font-size: var(--s-1); color: var(--ink-2); }
.form-msg.err { color: var(--err); }
.form-msg.ok { color: var(--ok); }
.md-preview { padding: 12px 14px; border: 1px dashed var(--rule-2); border-radius: var(--radius); min-height: 60px; }
.loc { border: 1px solid var(--rule); border-radius: 8px; padding: 6px 12px 12px; margin: 10px 0 4px; display: grid; gap: 8px; }
.loc legend { padding: 0 6px; }
.loc-place { display: flex; gap: 8px; }
.loc-place input { flex: 1; }
.pick-map { height: 240px; border-radius: var(--radius); border: 1px solid var(--rule-2); overflow: hidden; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.claim { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.claim code { font-size: var(--s2); letter-spacing: 0.06em; padding: 8px 12px; background: var(--void); border: 1px dashed var(--magenta); border-radius: var(--radius); color: #ffd1f5; user-select: all; }

/* ---------------------------------------------------------------- pages */
main.prose { max-width: 70ch; margin: 0 auto; padding: 40px 20px 80px; }
main.prose.narrow { max-width: 46ch; }
main.prose.wide { max-width: 1000px; }
.prose h1 { font-size: var(--s4); margin-bottom: 16px; }
.prose h2 { font-size: var(--s2); margin: 32px 0 10px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose form { margin-top: 20px; }
.crumb { margin-bottom: 16px; font-size: var(--s-1); }
.dossier { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: rgba(14, 10, 25, 0.6); }
.dossier .sig { border-bottom: 0; }
.dossier .sig-excerpt { display: none; }
.dossier-body { padding: 0 20px 22px; max-width: 68ch; }
.notice, .notice-err { padding: 10px 14px; border-radius: var(--radius); margin: 0 0 18px; border: 1px solid var(--ok); color: var(--ok); background: rgba(110, 231, 183, 0.06); }
.notice-err { border-color: var(--err); color: var(--err); background: rgba(251, 113, 133, 0.06); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 24px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.panel { margin: 22px 0; padding: 18px 20px; background: rgba(14, 10, 25, 0.75); border: 1px solid var(--rule); border-radius: 8px; }
.panel h2 { margin: 0 0 10px; font-size: var(--s1); }
.panel > p + * { margin-top: 12px; }
.mine-row { display: grid; grid-template-columns: 1fr auto; align-items: start; border-bottom: 1px solid var(--rule); }
.mine-row .sig { border-bottom: 0; }
.mine-acts { display: flex; gap: 8px; padding: 16px 0 0 10px; }
.signout { margin-top: 30px; }

/* tables (sources, ops) */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--s-1); }
.tbl th { text-align: left; color: var(--ink-3); font-weight: 400; padding: 8px 10px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl .num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl-sub { color: var(--ink-3); font-size: 0.75rem; margin-top: 2px; word-break: break-all; }
.tbl .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tbl .acts form { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.row-off td { opacity: 0.55; }
.src-group h2 { margin-top: 28px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; border: 1px solid var(--rule-2); color: var(--ink-2); }
.pill-ok { border-color: rgba(110, 231, 183, 0.5); color: var(--ok); }
.pill-err { border-color: rgba(251, 113, 133, 0.6); color: var(--err); }

/* ops */
main.ops { max-width: 1180px; margin: 0 auto; padding: 24px 20px 90px; }
.ops h1 { font-size: var(--s3); margin: 8px 0 16px; }
.ops-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.ops-nav a { padding: 10px 14px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ops-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--lilac); }
.ops-nav .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--magenta); color: #1a0016; font-size: 0.75rem; text-align: center; font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpis > div { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 8px; background: rgba(14, 10, 25, 0.75); display: grid; gap: 2px; }
.kpis strong { font-size: var(--s3); }
.kpis span { color: var(--ink-3); font-size: var(--s-1); }
.kpis .kpi-bad strong { color: var(--err); }
.kpis .kpi-warn strong { color: var(--warn); }
.inline { display: inline; }
.howto { margin-top: 14px; }
.howto summary { cursor: pointer; color: var(--lilac-ink); }
.howto pre { overflow-x: auto; padding: 10px 12px; background: var(--void); border: 1px solid var(--rule); border-radius: var(--radius); font-size: var(--s-1); margin: 8px 0; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: end; }
.grid-form label { display: grid; gap: 4px; font-size: var(--s-1); color: var(--ink-2); }
.grid-form .dlg-actions { grid-column: 1 / -1; justify-content: flex-start; }
.grid-form label.f-check { display: inline-flex; align-self: center; color: var(--ink); }
.bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--s-1); color: var(--ink-3); }
.mod-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; border-bottom: 1px solid var(--rule); padding: 6px 0; }
.mod-row .sig { border-bottom: 0; }
.mod-item .sig .sig-body, .mod-item .sig .act-save { display: none; }
.mod-pick { padding-top: 18px; }
.mod-pick input { width: 18px; height: 18px; accent-color: var(--violet); }
.mod-acts { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.mod-acts form { margin: 0; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--rule); padding: 28px 20px 110px; display: grid; gap: 14px; max-width: 1180px; margin: 0 auto; color: var(--ink-3); font-size: var(--s-1); }
.foot h2 { font-size: var(--s0); color: var(--ink-2); margin-bottom: 4px; }
.foot-sources p { max-width: 90ch; }
.foot-nav { display: flex; gap: 18px; }
.foot-nav a { color: var(--ink-2); }
.foot-note { max-width: 70ch; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 760px) {
  :root { --top-h: 52px; }
  .top { gap: 10px; padding: 0 12px; grid-template-columns: auto 1fr auto; }
  .brand { font-size: var(--s1); }
  .live-when { display: none; }
  .mode { display: none; }
  .theater { border-bottom: 0; }
  .map-wrap { display: none; height: 64vh; }
  .theater.open .map-wrap { display: block; }
  .map-toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px;
    background: var(--deck); color: var(--ink); border: 0; border-bottom: 1px solid var(--rule); border-top: 1px solid var(--rule);
    font-weight: 700; cursor: pointer;
  }
  .map-toggle::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
  .hud-tl { left: 52px; right: 8px; top: 8px; }
  .hud-tl .seg button { padding: 6px 9px; }
  .hud-bl { right: 8px; left: 8px; bottom: 44px; }
  .hud-br { right: 8px; bottom: 8px; }
  .readout { display: none; }
  .hotspots { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .sector { position: fixed; z-index: 1100; top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 62vh; border-radius: 14px 14px 0 0; }
  body.sector-open .submit-fab { display: none; }
  .feed { padding: 18px 12px 110px; }
  .feed-head h1 { font-size: var(--s2); }
  .filters { padding: 10px; }
  .f-row { gap: 8px; }
  .f-field { flex: 1 1 140px; }
  .f-field select { max-width: none; width: 100%; }
  .filters > .seg { justify-self: stretch; }
  #kind-seg { width: 100%; }
  #kind-seg button { flex: 1; }
  .sig { padding: 14px 12px 12px 15px; }
  .submit-fab { min-height: 48px; padding: 0 18px; }
  .dlg { padding: 18px 16px 20px; }
  .mine-row, .mod-row { grid-template-columns: 1fr; }
  .mod-pick { display: none; }
  .mod-acts, .mine-acts { flex-direction: row; padding: 0 0 12px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .live-dot { animation: none; }
  .sweep { display: none; }
}

@media (forced-colors: active) {
  .brand-redact::before { background: CanvasText; }
  .sig-src-anon .bar { background: CanvasText; }
}
