:root {
  color-scheme: dark;
  --bg: #111412;
  --surface: #1b201c;
  --line: #343c33;
  --text: #f6f8ef;
  --muted: #b5c0b2;
  --accent: #dcfa72;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
a { color: inherit; }
.topbar {
  border-bottom: 1px solid var(--line);
  padding: 14px max(20px, calc((100vw - 940px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar > a:last-child:not(.wordmark) { font-size: .9rem; color: var(--muted); }
.wordmark { text-decoration: none; display: flex; align-items: center; gap: .65rem; font-weight: 700; }
.wordmark span:first-child { color: #19200e; background: var(--accent); padding: .22rem .46rem; border-radius: 5px; }
.shell { max-width: 980px; margin: 0 auto; padding: clamp(22px, 6vw, 62px) 20px 48px; }
h1, h2 { line-height: 1.15; margin: 0 0 .85rem; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 7vw, 4rem); }
h2 { font-size: 1.32rem; }
p { margin: 0 0 1.2rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 14px; }
.stack { display: grid; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 20px; }
.narrow { max-width: 490px; }
.tile { display: block; padding: 20px; text-decoration: none; }
.tile p { margin: 0; }
.tile:hover, .tile:focus-visible { border-color: var(--accent); }
.form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: var(--muted); }
input, button { font: inherit; border-radius: 9px; min-height: 48px; }
input { background: #111612; color: var(--text); border: 1px solid var(--line); padding: 10px 12px; width: 100%; }
button { cursor: pointer; border: 1px solid transparent; background: var(--accent); color: #1c2510; padding: 10px 15px; font-weight: 750; }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.heading { justify-content: space-between; margin-bottom: 16px; }
.heading h1 { margin: 0; }
.notice { min-height: 1.5em; margin: 10px 0 0; }
.notice[data-error="true"] { color: #ffb0a5; }
.credentials { white-space: pre-wrap; overflow-wrap: anywhere; }
ul.marks { list-style: none; margin: 0; padding: 0; }
.marks li { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.marks li:last-child { border: 0; }
.marks time { color: var(--muted); font-variant-numeric: tabular-nums; }
canvas.qr { border-radius: 12px; display: block; width: min(100%, 280px); height: auto; margin: 12px auto; }
.qr-panel { text-align: center; }
video { display: block; width: 100%; max-height: 52vh; background: #0e100e; border-radius: 10px; margin-bottom: 12px; }
