/* Pagerman web: dark, monospace, LCD green. Mobile first. */
:root {
  --bg: #0f0d0b;
  --bg-2: #171411;
  --panel: #1b1815;
  --line: #2d2823;
  --text: #ece7df;
  --muted: #9c9184;
  --dim: #6d655c;
  --lcd: #aebd8f;
  --lcd-2: #9cad7c;
  --lcd-ink: #1b2614;
  --glow: #b6ff8a;
  --led: #ff3b30;
  --amber: #ffb02e;
  --radius: 14px;
  --mono:
    "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", Consolas, "Roboto Mono",
    "Liberation Mono", monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  /* biome-ignore lint/suspicious/noDuplicateProperties: 100vh above is the fallback for browsers without dvh */
  min-height: 100dvh;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 30% -10%, rgba(255, 217, 160, 0.09), transparent 60%),
    radial-gradient(90% 50% at 100% 100%, rgba(182, 255, 138, 0.05), transparent 70%),
    linear-gradient(180deg, #16120f 0%, var(--bg) 45%, #0b0a09 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--text);
  text-decoration-color: rgba(236, 231, 223, 0.35);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--glow);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden][hidden] {
  display: none;
}

.muted {
  color: var(--muted);
}

.lcd-ink {
  color: var(--glow);
  font-weight: 700;
}

/* ---------- top bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 18px 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--glow);
  padding: 6px 0;
  text-decoration: none;
}
.brand-mark {
  display: block;
  height: 15px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(182, 255, 138, 0.35));
}

.top-link {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--text);
}
.icon-btn .snd-off {
  display: none;
}
.icon-btn.muted .snd-on {
  display: none;
}
.icon-btn.muted .snd-off {
  display: inline;
}

/* ---------- shared controls ---------- */

.btn-lcd,
.send {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--lcd-ink);
  background: linear-gradient(180deg, #d2f9b6 0%, #a8e48a 100%);
  box-shadow:
    0 0 0 1px rgba(27, 38, 20, 0.6) inset,
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 6px 18px rgba(150, 255, 110, 0.18),
    0 3px 0 #4f7a3a;
  transition:
    transform 80ms ease,
    box-shadow 80ms ease,
    filter 120ms ease;
}
.btn-lcd:active,
.send:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 0 0 1px rgba(27, 38, 20, 0.6) inset,
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 2px 10px rgba(150, 255, 110, 0.15),
    0 1px 0 #4f7a3a;
}

.link-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 6px 4px;
  color: var(--glow);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-decoration-color: rgba(182, 255, 138, 0.35);
  text-underline-offset: 4px;
}
.link-btn.small {
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.lcd-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border-radius: 10px;
  border: 0;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--lcd-ink);
  background: linear-gradient(180deg, var(--lcd) 0%, var(--lcd-2) 100%);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.45),
    0 0 0 3px #0b0a09,
    0 0 0 4px var(--line);
}
.lcd-input::placeholder {
  color: rgba(27, 38, 20, 0.28);
}
.lcd-input:focus {
  outline: none;
  background: linear-gradient(180deg, #c6f7a6 0%, #a3e284 100%);
}

.ps-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}
.ps-form .btn-lcd {
  height: 52px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 16px;
}

.hint-error {
  margin: 10px 0 0;
  color: #ffb4a8;
  font-size: 13px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.badges.compact {
  margin-top: 12px;
  justify-content: center;
}
.badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
  height: 50px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #3a342e;
  background: #050505;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}
.badge small {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #cfc8bf;
}
.badge span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge.soon {
  opacity: 0.6;
}
a.badge:hover {
  border-color: #6b6259;
}

/* ---------- landing ---------- */

.landing {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.hero {
  padding: 26px 0 8px;
}
.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--amber);
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 8.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: var(--glow);
  text-shadow: 0 0 22px rgba(182, 255, 138, 0.35);
}
.lede {
  max-width: 560px;
  margin: 18px 0 0;
  color: #cfc7bc;
  font-size: 15px;
}

.skins {
  margin: 30px -20px 0;
}
.skin-row {
  list-style: none;
  margin: 0;
  padding: 6px 20px 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
}
.skin-row::-webkit-scrollbar {
  display: none;
}
.skin {
  scroll-snap-align: start;
  text-align: center;
}
.skin img {
  display: block;
  width: 100%;
  height: auto;
  margin: -6% 0 -7%;
}
.skin-name {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 13px;
}
.skins-title {
  margin: 34px 20px 4px;
  letter-spacing: 0.16em;
  font-size: 15px;
}
.skins-sub {
  margin: 0 20px 4px;
  font-size: 13px;
}
.skin-blurb {
  margin: 2px auto 0;
  max-width: 240px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.page-someone {
  margin: 34px 0 0;
  padding: 22px 20px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.page-someone h2,
.codes h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--glow);
}
.page-someone p {
  margin: 6px 0 0;
  font-size: 14px;
}

.steps ol {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
}
.step-n {
  grid-row: span 2;
  font-size: 13px;
  color: var(--amber);
  padding-top: 2px;
}
.steps h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.12em;
}
.steps p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.codes {
  margin-top: 36px;
}
.codes dl {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.codes dl > div {
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #a9b98a, #95a676);
  color: var(--lcd-ink);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    0 0 0 3px #0b0a09;
}
.codes dt {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.codes dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

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

.foot {
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 20px max(30px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--dim);
}
.foot-links {
  display: flex;
  gap: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.foot-links a {
  color: var(--muted);
  text-decoration: none;
}
.foot-family {
  margin: 12px 0 0;
}
.foot-family a {
  color: var(--muted);
}
.foot-copy {
  margin: 6px 0 0;
}

/* ---------- documents ---------- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 20px 40px;
  font-size: 15px;
  color: #d9d2c7;
}
.doc h1 {
  margin: 18px 0 4px;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.doc h2 {
  margin: 30px 0 6px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glow);
}
.doc ul {
  padding-left: 20px;
}
.doc li {
  margin: 6px 0;
}
.doc code {
  color: var(--glow);
}
.retention {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.retention td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.retention td:last-child {
  text-align: right;
  color: var(--muted);
  padding-left: 16px;
}

/* ---------- sender ---------- */

.sender {
  max-width: 460px;
  margin: 0 auto;
  padding: 0 18px 28px;
}

.paging {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.paging-n {
  font-size: 28px;
  letter-spacing: 0.1em;
  color: var(--glow);
  text-shadow: 0 0 18px rgba(182, 255, 138, 0.35);
}

.device-wrap {
  margin: 0 -14px;
  /* The illustration overlaps the controls below it (its transparent margin); it must never take taps. */
  pointer-events: none;
}
.device {
  --ar: 440 / 360;
  --trim-top: -7%;
  --trim-bottom: -4%;
  position: relative;
  aspect-ratio: var(--ar);
  margin-top: var(--trim-top);
  margin-bottom: var(--trim-bottom);
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.device.swapping {
  opacity: 0;
  transform: scale(0.96);
}
.device img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.device canvas {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
.led {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    #fff 0,
    var(--led) calc(var(--led-core) * 0.55),
    color-mix(in srgb, var(--led) 55%, transparent) var(--led-core),
    transparent 100%
  );
  filter: blur(0.3px);
}

.compose,
.result {
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.count.full {
  color: var(--amber);
}
.meta-sep {
  color: var(--dim);
}

.abc {
  margin-top: 8px;
}
.abc-input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b0a09;
  color: var(--glow);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}
.abc-input::placeholder {
  color: var(--dim);
  letter-spacing: 0.1em;
}
.abc-input:focus {
  outline: none;
  border-color: rgba(182, 255, 138, 0.5);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.chip {
  appearance: none;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #3b352f;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    transform 80ms ease;
}
.chip:hover {
  border-color: rgba(182, 255, 138, 0.5);
}
.chip:active {
  transform: translateY(1px);
  background: rgba(182, 255, 138, 0.12);
}
.chip-my {
  color: var(--glow);
  border-color: rgba(182, 255, 138, 0.4);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}
.keyrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 9px;
}
.key {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  height: 52px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  color: #e8e4de;
  background: linear-gradient(180deg, #3a383c 0%, #2a282c 55%, #242226 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 -1px 0 rgba(0, 0, 0, 0.5) inset,
    0 0 0 1px #0a0909,
    0 3px 0 #0a0909,
    0 6px 12px rgba(0, 0, 0, 0.45);
  transition:
    transform 70ms ease,
    box-shadow 70ms ease,
    background 70ms ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.key:active,
.key.pressed {
  transform: translateY(2px);
  background: linear-gradient(180deg, #2f2d31 0%, #252327 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px #0a0909,
    0 1px 0 #0a0909,
    0 2px 5px rgba(0, 0, 0, 0.4);
}
.key-main {
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}
.key-sub {
  min-height: 12px;
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  line-height: 1;
}
.key-send .key-main {
  color: var(--glow);
}
.key-send .key-sub {
  color: rgba(182, 255, 138, 0.75);
}
.key-wide {
  height: 42px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.send {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 16px;
  border-radius: 16px;
  font-size: 18px;
}
.send:disabled {
  cursor: default;
  filter: grayscale(0.85) brightness(0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    0 3px 0 #1e1c1a;
}
.send.sending {
  filter: none;
  animation: pulse 900ms ease-in-out infinite;
}

.fineprint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.result {
  text-align: center;
}
.result h2 {
  margin: 6px 0 0;
  font-size: 24px;
  letter-spacing: 0.12em;
  color: var(--amber);
}
.result[data-kind="sent"] h2 {
  color: var(--glow);
  text-shadow: 0 0 20px rgba(182, 255, 138, 0.4);
}
.result[data-kind="not_in_service"] h2,
.result[data-kind="rejected"] h2,
.result[data-kind="invalid"] h2 {
  color: #ff8a7a;
}
.result p {
  margin: 8px auto 0;
  max-width: 340px;
  color: #cfc7bc;
}
.result .link-btn {
  margin-top: 12px;
}
.remember {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed #3b352f;
  font-size: 13px;
  color: var(--muted);
}
.result .send:disabled {
  filter: grayscale(0.6) brightness(0.6);
}

.turnstile {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.turnstile:empty {
  margin: 0;
}

.getapp {
  margin-top: 28px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.getapp p {
  margin: 0;
}
.getapp b {
  color: var(--text);
}

.shake {
  animation: shake 320ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
  20%,
  60% {
    transform: translateX(-5px);
  }
  40%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes pulse {
  50% {
    filter: brightness(1.15);
  }
}

/* ---------- larger screens ---------- */

@media (min-width: 720px) {
  .skin-row {
    grid-auto-columns: 40%;
  }
  .steps ol {
    grid-template-columns: repeat(3, 1fr);
  }
  .codes dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-someone {
    max-width: 560px;
  }
}

@media (min-width: 1000px) {
  .skins {
    margin: 30px 0 0;
  }
  .skin-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 0 12px;
    overflow: visible;
  }
  .hero {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion must win over every component rule */
    animation: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: as above */
    transition: none !important;
  }
}

fieldset.chips,
fieldset.keypad {
  border: 0;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
}

/* ---------- admin (server-rendered, no JS) ---------- */

body.admin {
  padding: 0 20px 64px;
  font-size: 14px;
}

.admin-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.admin-brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.admin-brand span {
  color: var(--dim);
  font-weight: 400;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: auto;
}

.admin-nav a {
  color: var(--lcd);
  text-decoration: none;
}

.admin-nav a:hover {
  text-decoration: underline;
}

.admin-logout {
  margin: 0;
}

.admin-logout button {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.admin-logout button:hover {
  color: var(--text);
  border-color: var(--muted);
}

.admin-main {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 24px;
}

.admin-main h1 {
  margin: 0 0 20px;
  font-size: 22px;
  letter-spacing: 0.06em;
}

body.admin .admin-main h2 {
  margin: 32px 0 12px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.admin-main .admin-cards > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-cards b {
  font-size: 24px;
  color: var(--lcd);
}

.admin-cards span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: var(--bg-2);
}

.admin-table a {
  color: var(--lcd);
}

.admin-table .mono,
.admin-facts .mono {
  font-family: var(--mono);
  word-break: break-all;
}

.badge {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge-open {
  border-color: var(--amber);
  color: var(--amber);
}

.badge-reviewed {
  border-color: var(--lcd-2);
  color: var(--lcd);
}

.badge-actioned {
  border-color: var(--led);
  color: var(--led);
}

.badge-dismissed {
  border-color: var(--line);
  color: var(--dim);
}

.admin-body {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 0 0 24px;
  font-size: 13px;
}

.admin-facts dt {
  color: var(--dim);
}

.admin-facts dd {
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
}

.admin-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.admin-actions input {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-filters input,
.admin-filters select,
.admin-login input {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
}

.admin-filters button,
.admin-actions button,
.admin-login button {
  padding: 6px 12px;
  border: 1px solid var(--lcd-2);
  border-radius: 8px;
  background: var(--lcd);
  color: var(--lcd-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.admin-filters button:hover,
.admin-actions button:hover,
.admin-login button:hover {
  background: var(--glow);
}

.admin-meta {
  color: var(--muted);
  font-size: 13px;
}

.admin-meta a {
  color: var(--lcd);
}

.admin-pager {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  color: var(--muted);
}

.admin-pager a {
  color: var(--lcd);
}

.admin-error {
  padding: 12px 14px;
  border: 1px solid var(--led);
  border-radius: var(--radius);
  color: var(--led);
}

.admin-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.admin-login h1 {
  margin-bottom: 0;
}

.admin-login label {
  color: var(--muted);
}
