/* AI Tracker live feed. Shares tokens with aitracker.bot: signal green from the
   bot avatar's sweep, amber for leaks, near-black field. */

:root {
  --bg: #020906;
  --panel: rgba(6, 24, 16, 0.66);
  --panel-2: rgba(9, 32, 21, 0.75);
  --line: rgba(78, 236, 170, 0.12);
  --line-2: rgba(78, 236, 170, 0.24);
  --text: #eafff5;
  --muted: #95b9a8;
  --dim: #5f8473;
  --g: #22d47f;
  --g-hi: #2affc6;
  --g-soft: #9cfaae;
  --ring: #4eecaa;
  --amber: #f4c745;
  --red: #ff7a7a;
  --violet: #b59bff;
  --cyan: #6fd8ff;
  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 3.4vw, 36px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100svh; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--display); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; }
::selection { background: rgba(42, 255, 198, .3); }
:focus-visible { outline: 2px solid var(--g-hi); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 40% at 85% 0%, rgba(34, 212, 127, .14), transparent 70%),
    radial-gradient(40% 30% at 0% 100%, rgba(42, 255, 198, .06), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(78, 236, 170, .025) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(78, 236, 170, .025) 39px 40px),
    var(--bg);
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(2, 9, 6, .78); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  animation: drop .6s var(--ease) both;
  /* Home Screen app: the page runs under the translucent status bar. */
  padding-top: env(safe-area-inset-top);
}
@keyframes drop { from { transform: translateY(-100%); } }
.bar { max-width: 1320px; margin: 0 auto; padding: 11px max(var(--gutter), env(safe-area-inset-right)) 11px max(var(--gutter), env(safe-area-inset-left)); display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand-mark {
  position: relative; width: 28px; height: 28px; border-radius: 50%; flex: none; overflow: hidden;
  background:
    radial-gradient(circle, var(--g-hi) 0 2px, transparent 2.5px),
    repeating-radial-gradient(circle, transparent 0 5px, rgba(78, 236, 170, .45) 5.5px 6.2px, transparent 6.7px 7px),
    #03130c;
  box-shadow: inset 0 0 0 1.5px rgba(78, 236, 170, .75), 0 0 16px rgba(34, 212, 127, .35);
}
.brand-mark i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 290deg, rgba(42, 255, 198, .1) 300deg, rgba(42, 255, 198, .75) 360deg); animation: spin 3.2s linear infinite; }
.brand.flash .brand-mark { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { box-shadow: inset 0 0 0 1.5px var(--g-hi), 0 0 30px var(--g-hi); } }
@keyframes spin { to { transform: rotate(360deg); } }

.conn {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.conn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); position: relative; }
.conn-dot.live { background: var(--g-hi); box-shadow: 0 0 10px var(--g-hi); }
.conn-dot.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--g-hi); animation: ping 1.8s var(--ease) infinite; }
.conn-dot.reconnecting { background: var(--amber); }
.conn-dot.error { background: var(--red); }
@keyframes ping { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }

.top-links { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.top-links a, .sources-toggle {
  border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--muted);
  font-size: 14px; padding: 6px 11px; border-radius: 9px; transition: color .2s, background .2s;
}
.top-links a:hover, .sources-toggle:hover, .sources-toggle.open { color: var(--text); background: rgba(78, 236, 170, .08); }
#sourceCount { font-family: var(--mono); color: var(--g-soft); }
.btn-x {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 10px;
  background: #f2fff8; color: #000; text-decoration: none; font-weight: 600; font-size: 13.5px;
  transition: box-shadow .2s;
}
.btn-x:hover { box-shadow: 0 0 22px rgba(42, 255, 198, .35); }
.btn-x svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- intro ---------- */
.layout { max-width: 1320px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.intro {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: clamp(26px, 5vh, 52px) 0 clamp(18px, 3vh, 30px);
  animation: rise .8s .1s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; font: 600 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--g); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g-hi); box-shadow: 0 0 10px var(--g-hi); position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--g-hi); animation: ping 1.8s var(--ease) infinite; }
h1 { margin: 0 0 10px; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.glow { background: linear-gradient(100deg, var(--g-soft), var(--g-hi) 45%, var(--g)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 0 0 20px; color: var(--muted); max-width: 40em; font-size: 16px; }
.sub b { color: var(--g-soft); font-weight: 600; }
.vitals { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 10px; margin: 0; }
.vitals div { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); min-width: 120px; }
.vitals dt { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.vitals dd { margin: 2px 0 0; font: 600 15px var(--mono); color: var(--text); white-space: nowrap; }
.vitals dd.warn { color: var(--amber); }

.mini { display: grid; justify-items: center; gap: 10px; }
.mini-radar {
  position: relative; width: clamp(150px, 17vw, 210px); aspect-ratio: 1; border-radius: 50%;
}
.mini-radar::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(34, 212, 127, .2), transparent 65%); z-index: -1; }
.mini-radar canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(4, 18, 12, .75); cursor: pointer; font-size: 12.5px; color: var(--muted);
  transition: all .2s;
}
.chip-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip-btn:hover { color: var(--text); border-color: rgba(78, 236, 170, .5); }
.chip-btn[aria-pressed="true"] { color: #01140b; background: var(--g); border-color: var(--g); }
#soundBtn .i-on, #soundBtn[aria-pressed="true"] .i-off { display: none; }
#soundBtn[aria-pressed="true"] .i-on { display: block; }

.mini .chip-btn[data-push-toggle] svg { fill: none; }
.chip-btn[disabled] { opacity: .6; cursor: progress; }
.push-note { margin: 14px 0 0; max-width: 46em; font-size: 13.5px; color: var(--muted); }
.push-note.ok { color: var(--g-soft); }
.push-note.err { color: var(--red); }
.push-note[hidden] { display: none; }

/* ---------- topics ---------- */
.topics {
  position: sticky; top: calc(57px + env(safe-area-inset-top)); z-index: 30;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 0; margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(2, 9, 6, .92) 70%, rgba(2, 9, 6, 0));
}
.topics::-webkit-scrollbar { display: none; }
.topic {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 13.5px; color: var(--muted);
  transition: color .2s, background .2s, border-color .2s;
}
.topic:hover { color: var(--text); border-color: var(--line-2); }
.topic.active { color: #01140b; background: var(--g-soft); border-color: var(--g-soft); }
.topic.zero { opacity: .5; }
.topic-count { font: 500 11.5px var(--mono); opacity: .8; }

/* ---------- columns ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.side { position: sticky; top: 112px; display: grid; gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 18px; }

/* ---------- feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.day {
  width: max-content; margin: 14px 0 2px;
  font: 600 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--g);
  padding: 5px 10px; border-radius: 8px; background: rgba(2, 9, 6, .9); border: 1px solid var(--line);
}
.day:first-child { margin-top: 0; }
.empty { padding: 40px 20px; text-align: center; color: var(--dim); border: 1px dashed var(--line-2); border-radius: 14px; }

.event {
  --accent: var(--dim);
  position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px;
  padding: 13px 16px 13px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.event::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--accent); opacity: .7; }
.event:hover { border-color: var(--line-2); background: var(--panel-2); }
.feed.feed-intro .event { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.event.fresh { animation: fresh 2.4s ease both; }
@keyframes fresh { 0% { background: rgba(42, 255, 198, .22); border-color: var(--g-hi); box-shadow: 0 0 40px -6px rgba(42, 255, 198, .6); } }
.event.model { --accent: var(--g); }
.event.model.leak { --accent: var(--amber); }
.event.headline { border-color: rgba(78, 236, 170, .28); background: linear-gradient(100deg, rgba(34, 212, 127, .12), rgba(6, 24, 16, .66) 45%); box-shadow: 0 10px 40px -24px rgba(34, 212, 127, .8); }
.event.headline.leak { border-color: rgba(244, 199, 69, .3); background: linear-gradient(100deg, rgba(244, 199, 69, .1), rgba(6, 24, 16, .66) 45%); box-shadow: 0 10px 40px -24px rgba(244, 199, 69, .7); }
.event.headline .title { font-size: 16.5px; }
.event.bench { --accent: var(--violet); }
.event.strings { --accent: var(--cyan); }
.event.newpage { --accent: var(--amber); }

.when { display: grid; justify-items: center; align-content: start; gap: 8px; padding-top: 2px; }
.when time { font: 500 12px var(--mono); color: var(--dim); }
.ev-logo { width: 34px; height: 34px; border-radius: 50%; background: #000; padding: 5px; object-fit: contain; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.ev-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(78, 236, 170, .06); border: 1px solid var(--line); color: var(--accent); font: 600 13px var(--mono); }

.body { min-width: 0; }
.head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.title { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
a.title:hover { color: var(--g-soft); }
.ext { color: var(--dim); font-weight: 400; }
.cat {
  font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px;
  border: 1px solid currentColor; white-space: nowrap;
}
.cat-model { color: var(--g-hi); }
.cat-leak { color: var(--amber); }
.cat-bench { color: var(--violet); }
.cat-string { color: var(--cyan); }
.cat-new { color: var(--amber); }
.cat-edit { color: var(--dim); }
.meta { margin: 3px 0 0; color: var(--dim); font-size: 12.5px; }
.summary { margin: 6px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.model-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.model-link {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 11px; border-radius: 9px; text-decoration: none;
  border: 1px solid rgba(42, 255, 198, .35); background: rgba(42, 255, 198, .07); font-size: 13px; transition: background .2s, border-color .2s;
}
.model-link .k { font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--g); }
.model-link b { font: 600 12.5px var(--mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-link .arrow { color: var(--g-hi); transition: transform .2s var(--ease); }
.model-link:hover { background: rgba(42, 255, 198, .14); border-color: var(--g-hi); }
.model-link:hover .arrow { transform: translateX(3px); }
.model-link.leak { border-color: rgba(244, 199, 69, .35); background: rgba(244, 199, 69, .07); }
.model-link.leak .k, .model-link.leak .arrow { color: var(--amber); }
.model-link.leak:hover { background: rgba(244, 199, 69, .14); border-color: var(--amber); }
.analysis { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(78, 236, 170, .05); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.analysis .k { font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--g); margin-right: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip { font: 500 12.5px var(--mono); padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line-2); overflow-wrap: anywhere; }
.chip.add { color: var(--g-soft); background: rgba(34, 212, 127, .08); border-color: rgba(34, 212, 127, .3); }
.chip.del { color: var(--red); background: rgba(255, 122, 122, .06); border-color: rgba(255, 122, 122, .25); }
.chip.over { color: var(--dim); }

.rows { margin-top: 8px; display: grid; gap: 2px; }
.brow { font: 400 12.5px/1.5 var(--mono); color: var(--muted); padding: 2px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.brow.add { color: var(--g-soft); background: rgba(34, 212, 127, .05); }
.brow.del { color: var(--red); background: rgba(255, 122, 122, .04); }
.brow.over { color: var(--dim); }
.pages { margin-top: 8px; display: grid; gap: 3px; }
.page-line { display: flex; gap: 8px; font-size: 13.5px; }
.page-line .plus { color: var(--g); font-family: var(--mono); }
.page-link { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
a.page-link:hover { color: var(--g-soft); text-decoration: underline; text-underline-offset: 3px; }
.page-line.over { color: var(--dim); }

.diff { margin-top: 10px; }
.diff summary {
  cursor: pointer; list-style: none; display: inline-flex; gap: 8px; align-items: center;
  font: 500 12px var(--mono); color: var(--muted); padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line);
}
.diff summary::-webkit-details-marker { display: none; }
.diff summary::before { content: "+"; color: var(--g); }
.diff[open] summary::before { content: "−"; }
.diff summary:hover { color: var(--text); border-color: var(--line-2); }
.sum-open, .diff[open] .sum-closed { display: none; }
.diff[open] .sum-open { display: inline; }
.diff pre {
  margin: 8px 0 0; max-height: 420px; overflow: auto; padding: 12px 14px; border-radius: 12px;
  background: #010604; border: 1px solid var(--line); font: 400 12px/1.6 var(--mono); color: var(--muted);
}
.ln.add { color: var(--g-soft); background: rgba(34, 212, 127, .07); display: block; }
.ln.del { color: var(--red); background: rgba(255, 122, 122, .05); display: block; }
.ln.over { color: var(--dim); }

/* ---------- side cards ---------- */
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
#emailConfigStatus { font: 500 11px var(--mono); color: var(--g); letter-spacing: .06em; text-transform: uppercase; }
.card-sub { margin: 6px 0 12px; color: var(--dim); font-size: 13.5px; }
.email-input {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 5px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(1, 8, 5, .7);
}
.email-input:focus-within { border-color: rgba(78, 236, 170, .55); box-shadow: 0 0 0 3px rgba(34, 212, 127, .12); }
.email-input input { min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; color: var(--text); padding: 0 10px; font: 500 15px var(--display); }
.email-input input::placeholder { color: var(--dim); }
.solid-btn { height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--g); color: #01140b; font-weight: 700; cursor: pointer; transition: background .2s; }
.solid-btn:hover { background: #3be597; }
.solid-btn[disabled] { opacity: .6; cursor: progress; }
.email-options { margin-top: 10px; }
.email-options summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.email-filter-grid { display: grid; gap: 12px; margin-top: 10px; }
.email-filter-grid fieldset { border: 0; margin: 0; padding: 0; }
.email-filter-grid legend { font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.check-list { display: flex; flex-wrap: wrap; gap: 6px; }
.check-row { position: relative; }
.check-row input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.check-row span { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); transition: all .15s; }
.check-row input:checked + span { background: var(--g-soft); border-color: var(--g-soft); color: #01140b; }
.check-row input:focus-visible + span { outline: 2px solid var(--g-hi); outline-offset: 2px; }
.email-feedback { margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.email-feedback:empty { display: none; }
.email-feedback.ok { color: var(--g-soft); }
.email-feedback.error { color: var(--red); }

.follow-card { display: grid; gap: 4px; padding: 8px; }
.follow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.follow:hover { background: rgba(78, 236, 170, .07); }
.follow img { width: 36px; height: 36px; border-radius: 50%; }
.follow b { display: block; font-size: 14.5px; }
.follow small { display: block; color: var(--dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follow .arrow { color: var(--dim); }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } }
.drawer-body {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100%);
  background: #03100a; border-left: 1px solid var(--line-2); display: flex; flex-direction: column;
  animation: slide .45s var(--ease) both;
}
@keyframes slide { from { transform: translateX(100%); } }
.sources-head { display: flex; align-items: center; gap: 12px; padding: calc(18px + env(safe-area-inset-top)) 20px 18px; border-bottom: 1px solid var(--line); }
.sources-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
#sourcesMeta { color: var(--dim); font: 500 12px var(--mono); }
.text-btn { margin-left: auto; border: 1px solid var(--line-2); background: none; color: var(--muted); padding: 5px 11px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.text-btn:hover { color: var(--text); }
.close-btn { border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.sources-list { overflow: auto; padding: 8px 12px 30px; }
.source-row {
  display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.1fr) 52px 76px 64px; gap: 10px; align-items: center;
  padding: 9px 8px; border-bottom: 1px solid rgba(78, 236, 170, .06); font-size: 13px;
}
.source-row > span, .source-row > time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-head { position: sticky; top: 0; background: #03100a; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); z-index: 1; }
.s-name { color: var(--text); }
.s-topic, .s-metric, .s-every, .s-checked { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.s-status { font: 600 11px var(--mono); color: var(--g); text-transform: uppercase; letter-spacing: .08em; }
.s-error .s-status { color: var(--red); }
.s-stale .s-status { color: var(--amber); }
.s-errmsg { grid-column: 1 / -1; font: 400 12px var(--mono); color: var(--red); white-space: normal !important; }
.s-warnmsg { color: var(--amber); }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 34px 0 calc(46px + env(safe-area-inset-bottom)); color: var(--dim); font: 500 12.5px var(--mono); }
.foot-links { display: flex; gap: 16px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--g-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .top-links a { display: none; }
  .btn-x span { display: none; }
  .btn-x { width: 34px; padding: 0; justify-content: center; }
  .intro { grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; align-items: start; }
  .intro-copy { display: contents; }
  .intro .kicker, .intro h1, .intro .sub { grid-column: 1; }
  .mini { grid-column: 2; grid-row: 1 / span 3; }
  .intro .push-note { grid-column: 1 / -1; }
  .vitals { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-radar { width: 104px; }
  .card-sub { display: none; }
  .email-panel { padding: 14px; }
  .email-panel .card-head { margin-bottom: 10px; }
  .mini .chip-btn .label { display: none; }
  .mini .chip-btn { width: 32px; padding: 0; justify-content: center; }
  .sub { font-size: 14.5px; }
  .vitals div { min-width: 0; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .follow-card { display: none; }
  .event { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 12px 12px 8px; gap: 10px; }
  .ev-logo, .ev-icon { width: 30px; height: 30px; }
  .topics { top: calc(53px + env(safe-area-inset-top)); }
  .source-row { grid-template-columns: minmax(0, 1fr) 70px 60px; }
  .source-row .s-topic, .source-row .s-metric, .source-row .s-every { display: none; }
}
@media (max-width: 420px) {
  .conn #connLabel { display: none; }
  .conn { padding: 6px; }
  h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
