:root {
  --amber: #ff7a1a;
  --bg: #12100e;
  --panel: #1c1917;
  --line: #2e2a26;
  --text: #f5f1ec;
  --muted: #9c938a;
  --ok: #3fb950;
  --bad: #f0503a;
  --ui: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--ui); -webkit-text-size-adjust: 100%;
}
#app { max-width: 720px; margin: 0 auto; padding: 16px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px;
}
.brand { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.pill { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pill .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.on { background: var(--ok); }
.dot.off { background: var(--bad); }
.banner {
  background: var(--amber); color: #1a1207; font-weight: 700; padding: 12px 14px;
  border-radius: 8px; margin-bottom: 14px;
}
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.shot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #0b0a09; display: block; }
.shot-empty {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; background: #0b0a09;
  display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 13px;
}
.caption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
.open-btn {
  width: 100%; padding: 20px; font-size: 20px; font-weight: 700; font-family: var(--ui);
  color: #1a1207; background: var(--amber); border: 0; border-radius: 10px; cursor: pointer;
  letter-spacing: .03em;
}
.open-btn[disabled] { background: #4a423a; color: var(--muted); cursor: not-allowed; }
.reason { font-family: var(--mono); font-size: 12px; color: var(--bad); margin-top: 8px; min-height: 16px; }
.reason.ok { color: var(--ok); }
.state-line { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 10px; }
h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.row:last-child { border-bottom: 0; }
.row time { color: var(--muted); min-width: 74px; }
.row img { width: 44px; height: 33px; object-fit: cover; border-radius: 4px; margin-left: auto; }
form label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
form input {
  width: 100%; padding: 10px; background: #0b0a09; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: 15px;
}
form button {
  margin-top: 14px; width: 100%; padding: 12px; font-weight: 700; font-family: var(--ui);
  background: var(--amber); color: #1a1207; border: 0; border-radius: 6px; cursor: pointer;
}
.err { color: var(--bad); font-family: var(--mono); font-size: 12px; min-height: 16px; margin-top: 8px; }
.qr { width: 180px; height: 180px; display: block; margin: 12px auto; background: #fff; border-radius: 6px; }
