:root {
  --bg: #070708;
  --bg-2: #101113;
  --bg-3: #18191c;
  --ink: #f2f2f0;
  --muted: #9a9a96;
  --line: #2c2c2e;
  --accent: #f2f2f0;
  --live: #f2f2f0;
  --warn: #c4c4c0;
  --bad: #b7b7b3;
  --ok: #f2f2f0;
  --radius: 2px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Instrument Sans", sans-serif;
  font-size: 15px;
  line-height: 1.4;
}
button, input { font: inherit; color: inherit; }
button { min-height: 44px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.shell { max-width: 440px; margin: 0 auto; padding: 16px 16px 48px; }
.top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.mark, .code, .mono { font-family: "IBM Plex Mono", monospace; }
.mark { margin: 0; letter-spacing: 0.08em; }
.run { margin: 0; color: var(--muted); font-size: 13px; }
.run.live { color: var(--ink); }
h1, h2 { font-weight: 560; letter-spacing: -0.03em; }
h1 { font-size: 28px; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0; }
.lede, .muted { color: var(--muted); }
.gate, .block { margin-top: 22px; }
label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 13px; }
input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0 12px;
}
button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #070708;
  border-radius: var(--radius);
  padding: 0 14px;
  font-weight: 560;
}
button.stop, button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
button.stop { border-color: var(--ink); }
.actions, .row, .section-head { display: flex; gap: 8px; align-items: end; }
.actions { margin-top: 14px; }
.actions button, .row button { flex: 1; }
.row { margin-top: 4px; }
.row > div { flex: 1; }
.section-head { justify-content: space-between; align-items: center; }
.section-head button { background: transparent; color: var(--ink); }
.error { min-height: 1.2em; color: var(--ink); font-size: 13px; }
.list { list-style: none; padding: 0; margin: 12px 0 0; }
.list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.login { margin-top: 14px; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.code {
  font-size: 22px;
  letter-spacing: 0.14em;
  text-align: center;
  user-select: all;
}
#copy-code { width: 100%; margin: 8px 0; background: transparent; color: var(--ink); }
.login a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.state { font-family: "IBM Plex Mono", monospace; font-size: 12px; text-transform: lowercase; }
.state.ready { color: var(--ink); }
.state.rate_limited, .state.cooling, .state.auth_required { color: var(--muted); }
.feed li { grid-template-columns: 1fr; }
.meta { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.alert-success, .alert-rate_limit { color: var(--ink); }
.tiny { min-height: 44px; padding: 0 10px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none; }
}
