:root {
  --bg: #0c0d10;
  --paper: #16181f;
  --paper2: #22262f;
  --ink: #f7f3ea;
  --muted: #e4dccf;
  --dim: #cfc6b6;
  --amber: #f5a623;
  --red: #ff4d4d;
  --green: #5ee0a0;
  --down: #ff8a8a;
  --line: #3a3e4a;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --navh: 46px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
  padding-bottom: 96px;
}
a { color: #ffc14d; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
button {
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
}
button:hover { border-color: var(--amber); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary { background: var(--amber); color: #1a1203; border-color: var(--amber); font-weight: 600; }
button.on-air { border-color: var(--red); color: #ffd0d0; }
input, textarea {
  background: #0c0d10;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
}
img { max-width: 100%; }
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--line);
}
.top img { width: 36px; height: 36px; }
.brand { display: flex; flex-direction: column; gap: 1px; }
.brand strong { letter-spacing: 0.14em; font-size: 13px; }
.brand span { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.clock {
  margin-left: auto;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 6px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--navh);
  display: flex;
  background: #14161c;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.nav a {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
  padding: 0 14px;
  min-height: 44px;
}
.nav a.on { color: var(--amber); font-weight: 600; }
.wrap { padding: 14px 16px 28px; max-width: 1080px; margin: 0 auto; }
.kicker {
  color: var(--amber);
  letter-spacing: 0.16em;
  font-size: 12px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
h1 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 32px;
  line-height: 1.08;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.sub { color: var(--muted); margin: 0 0 14px; font-size: 13px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > input { flex: 1 1 180px; }
.chips { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.chips button.on { border-color: var(--amber); color: var(--amber); }
.lead {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  padding: 16px;
  margin: 12px 0;
}
.lead h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 650;
}
.meta { color: var(--muted); font-size: 13px; }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.stat {
  background: #0e1014;
  border: 1px solid var(--line);
  padding: 8px 10px;
}
.stat b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.stat span { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.up { color: var(--green); }
.down { color: var(--down); }
.flat { color: var(--muted); }
.note {
  border: 1px dashed var(--line);
  padding: 10px 12px;
  color: var(--ink);
  font-size: 13px;
  margin: 10px 0;
  background: #14161c;
}
.anchor-copy {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
  margin: 10px 0;
  color: var(--ink);
}
.chyron {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #12141a;
  margin: 8px -16px;
}
.chyron-track {
  display: flex;
  gap: 22px;
  padding: 8px 0;
  width: max-content;
  animation: tick 48s linear infinite;
}
.chyron:hover .chyron-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chyron span { white-space: nowrap; font-size: 13px; color: var(--ink); }
.tape { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  width: 100%;
  color: var(--ink);
  text-decoration: none;
}
.card:hover { border-color: #8a6a32; }
.card .sym { font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.card .name { color: var(--muted); font-size: 13px; display: block; margin-top: 4px; }
.card .nums { text-align: right; font-size: 13px; color: var(--ink); white-space: nowrap; }
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 1px 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 6px 4px 0;
}
.tag.pump { border-color: #2f6b4a; color: var(--green); }
.tag.fade { border-color: #8a4040; color: var(--down); }
.tag.fresh { border-color: #8a6a32; color: var(--amber); }
.status { min-height: 1.2em; color: #ffc14d; font-size: 13px; margin: 8px 0; }
.empty, .err {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.err { border-color: #8a4040; color: #ffd0d0; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.air {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.air img { width: 100%; height: 160px; object-fit: cover; background: #000; display: block; }
.air .body { padding: 12px; }
.air h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; font-weight: 650; }
canvas.cardart {
  width: 100%;
  height: auto;
  background: #0c0d10;
  border: 1px solid var(--line);
  display: block;
}
.wire-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.wire-item p { margin: 6px 0; font-family: var(--serif); font-size: 18px; line-height: 1.25; }
footer.colophon { margin-top: 22px; color: var(--muted); font-size: 12px; }
.endpad { height: 72px; }
@media (min-width: 760px) {
  .nav a { justify-content: flex-start; flex: 0 0 auto; padding-left: 22px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 44px; }
  .lead h2 { font-size: 36px; }
}
