/* Flame Verify staff portal — deliberately plain. A library terminal is often
   an old machine on a slow connection, so there is no framework, no webfont and
   no external request of any kind (the CSP forbids them anyway). */

:root {
  --bg: #faf9f7;
  --fg: #1c1917;
  --muted: #6b6560;
  --line: #ddd8d2;
  --flame: #d4541e;
  --ok: #1a7f47;
  --err: #b3261e;
  --warn-bg: #fff8e6;
  --warn-line: #e0c068;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17161a; --fg: #ece9e4; --muted: #a09a94; --line: #35322e;
    --flame: #ff7a45; --ok: #4ac07d; --err: #ff6b60;
    --warn-bg: #2b2416; --warn-line: #6b5a2a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
h1 { font-size: 1.15rem; margin: 0; font-weight: 650; }
h1 .sub { font-weight: 400; color: var(--muted); }
#whoami { margin-left: auto; display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--muted); }

main { max-width: 34rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
section { margin-bottom: 1.5rem; }
h2 { font-size: 1.05rem; margin: 0 0 .9rem; font-weight: 600; }

label { display: block; margin: .85rem 0 .25rem; font-size: .875rem; font-weight: 550; }

input, select {
  width: 100%; padding: .6rem .7rem; font: inherit;
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px;
}
input:focus, select:focus { outline: 2px solid var(--flame); outline-offset: 1px; border-color: var(--flame); }

button {
  margin-top: 1.1rem; padding: .6rem 1.1rem; font: inherit; font-weight: 550;
  color: #fff; background: var(--flame);
  border: 1px solid transparent; border-radius: 6px; cursor: pointer;
}
button:hover { filter: brightness(1.07); }
button:disabled { opacity: .6; cursor: default; }
button.secondary { background: transparent; color: var(--muted); border-color: var(--line); }
button.link { margin: 0; padding: 0; background: none; color: var(--flame); border: none; text-decoration: underline; }

.actions { display: flex; gap: .6rem; align-items: center; }

dl.found {
  display: grid; grid-template-columns: max-content 1fr; gap: .35rem .9rem;
  margin: 0 0 1rem; padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: 8px;
}
dl.found dt { color: var(--muted); font-size: .85rem; }
dl.found dd { margin: 0; font-weight: 550; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; word-break: break-all; font-weight: 400; }

.check { margin: 0 0 .5rem; }

.warn {
  margin: .9rem 0 0; padding: .7rem .85rem;
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: 6px; font-size: .85rem;
}

.note { color: var(--muted); font-size: .85rem; }
.muted { color: var(--muted); }

.err {
  margin: .9rem 0 0; padding: .6rem .8rem;
  color: var(--err); border: 1px solid currentColor; border-radius: 6px;
  font-size: .9rem; background: transparent;
}

#result-title { color: var(--ok); }

footer {
  display: flex; gap: 1rem; align-items: center;
  max-width: 34rem; margin: 0 auto; padding: .9rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}
footer .spacer { flex: 1; }
