:root {
  --bg: #111418; --panel: #1a1f26; --line: #2a313b; --text: #e8ecf1; --muted: #93a0b0;
  --accent: #3d8bfd; --ok: #2fbf71; --bad: #e5484d; color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f4f6f9; --panel: #fff; --line: #d9dee5; --text: #14181d; --muted: #5b6777; color-scheme: light; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input { font: inherit; color: inherit; }
button { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: .6em 1.1em; cursor: pointer; margin: .3em .3em 0 0; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
input { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5em .7em; width: 100%; }
label { display: block; margin: .8em 0 .25em; color: var(--muted); font-size: 13px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.2em 1.4em; }
#box { max-width: 440px; margin: 10vh auto; }
h1 { font-size: 1.3em; margin: 0 0 .8em; display: flex; align-items: center; gap: .5em; }
h1 img { width: 28px; height: 28px; }
.muted { color: var(--muted); }
.error { color: var(--bad); }
.ok { color: var(--ok); }
.home { display: flex; align-items: center; justify-content: space-between; gap: .5em; padding: .5em 0; border-top: 1px solid var(--line); }
.home:first-child { border-top: 0; }
details { margin-top: 1em; color: var(--muted); font-size: 13px; }
#nvr { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }
#lost { position: fixed; z-index: 9; left: 50%; bottom: 1em; transform: translateX(-50%); background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; padding: .5em 1em; }
