.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 30%, rgba(26, 41, 68, .9), var(--navy-950) 70%);
  position: relative;
  overflow: hidden;
}
.login::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grid-pattern);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.login__box {
  position: relative;
  width: min(400px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login__seal { width: 168px; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.login__title { font: 600 30px/1.1 var(--font-display); letter-spacing: .06em; color: var(--gold-300); margin-top: 24px; }
.login__sub { font: var(--text-label); letter-spacing: .24em; color: var(--silver-300); margin-top: 10px; }
.hairline { width: 220px; height: 1px; background: var(--hairline-gold); margin: 28px 0; }
.login__text { margin: 0 0 24px; font: var(--text-small); color: var(--text-secondary); max-width: 320px; }
.login__foot { display: flex; align-items: center; gap: 6px; margin-top: 20px; font: 400 12px/1.4 var(--font-sans); color: var(--text-muted); }
.login .alert { margin-bottom: 18px; width: 100%; }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-page__code { font: 600 64px/1 var(--font-display); color: var(--gold-300); letter-spacing: .06em; }
.error-page__text { color: var(--text-secondary); margin: 14px 0 22px; max-width: 420px; }

.feed { display: flex; flex-direction: column; gap: 12px; }
.feed__item { display: flex; gap: 10px; font: var(--text-small); }
.feed__dot { width: 6px; height: 6px; border-radius: 9px; background: var(--navy-500); margin-top: 7px; flex: none; }
.feed__item:first-child .feed__dot { background: var(--gold-400); }
.feed__text { flex: 1; color: var(--text-secondary); min-width: 0; }
.feed__text b { color: var(--text-primary); font-weight: 600; }
.feed__obj { color: var(--gold-300); }
.feed__time { font: 400 11px/1.6 var(--font-mono); color: var(--text-muted); white-space: nowrap; }

.person-row { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.person-row:hover { text-decoration: none; color: inherit; }
.person-row:hover .person-row__name { color: var(--gold-200); }
.person-row__name { font: 600 13px/1.3 var(--font-sans); color: var(--text-primary); }
.person-row__name span { color: var(--text-muted); font-weight: 400; }

.suspect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.suspect-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-1);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.suspect-card:hover { border-color: var(--border-gold); box-shadow: var(--glow-gold); text-decoration: none; color: var(--text-primary); }
.suspect-card__top { display: flex; gap: 12px; min-width: 0; }
.suspect-card__name { font-weight: 600; font-size: 14px; }
.suspect-card__meta { font-size: 12px; color: var(--text-muted); }
.suspect-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 14px; }
.profile__name { font: 600 18px/1.2 var(--font-sans); }
.profile__alias { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.profile__badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.profile__threat { padding: 12px 0 4px; border-top: 1px solid var(--border-subtle); }
.profile__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.profile__actions > * { flex: 1; }
.profile__actions form { display: flex; }
.profile__actions form .btn { flex: 1; }

.filters { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-dot { width: 8px; height: 8px; border-radius: 9px; background: var(--cat); flex: none; }

.map {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--grid-pattern), var(--surface-1);
  background-size: 40px 40px, auto;
  overflow: hidden;
}
.map--image { background: url("../img/map.jpg") center / 100% 100% no-repeat, var(--surface-1); aspect-ratio: 4 / 5; min-height: 0; }
.map--small { min-height: 280px; }
.map--pick { cursor: crosshair; }
.map__label {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 2;
  font: var(--text-label);
  letter-spacing: var(--ls-label);
  color: var(--text-muted);
  pointer-events: none;
}
.pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 99px;
  padding: 0;
  cursor: pointer;
  border: 2px solid var(--navy-950);
  background: var(--cat, var(--gold-400));
  box-shadow: 0 0 12px var(--cat, var(--gold-400));
  transition: width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-950);
  z-index: 1;
}
.pin .ic { width: 12px; height: 12px; stroke-width: 2.5; }
.pin.is-active { width: 30px; height: 30px; z-index: 3; box-shadow: 0 0 0 4px rgba(212, 170, 82, .35), 0 0 24px var(--cat, var(--gold-400)); }
.pin--dismantled { opacity: .45; filter: grayscale(1); }
.pin--marker { pointer-events: none; }

.loc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  cursor: pointer;
}
.loc:first-child { border-top: 0; }
.loc:hover { background: var(--surface-hover); }
.loc.is-active { background: var(--accent-subtle); box-shadow: inset 2px 0 0 var(--accent); }
.loc__detail { display: none; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.loc.is-active .loc__detail { display: flex; }
.loc-list { max-height: 640px; overflow-y: auto; }
.verified { color: var(--success-fg); display: inline-flex; align-items: center; gap: 6px; }
.unverified { color: var(--warning-fg); display: inline-flex; align-items: center; gap: 6px; }

.timeline { display: flex; flex-direction: column; gap: 18px; }
.tl { display: flex; gap: 14px; }
.tl__time { font: 400 12px/1.5 var(--font-mono); color: var(--text-muted); width: 118px; flex: none; }
.tl__dot { width: 9px; height: 9px; border-radius: 9px; margin-top: 5px; flex: none; background: var(--navy-500); }
.tl--hl .tl__dot { background: var(--gold-400); box-shadow: var(--glow-gold); }
.tl__text { font: var(--text-small); }
.tl__who { color: var(--text-muted); font-size: 12px; }

.prose { white-space: pre-line; color: var(--text-secondary); max-width: 760px; overflow-wrap: anywhere; }
.report-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.report-files { margin-top: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }

.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th { padding: 10px 6px; }
.matrix th:first-child { text-align: left; padding: 10px 18px; }
.matrix td { text-align: center; padding: 8px; border-top: 1px solid var(--border-subtle); }
.matrix td:first-child { text-align: left; padding: 10px 18px; color: var(--text-secondary); }
.matrix .ic { color: var(--gold-300); }
.matrix__none { color: var(--navy-500); }

.search-section + .search-section { margin-top: 20px; }
.search-section h2 { font: var(--text-h3); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }

.badge-form { display: flex; gap: 6px; align-items: center; }
.badge-form .input { width: 90px; }
