/* RawEdge Squawk: dark (default) and light themes. data-theme = auto | light | dark */
:root {
  --bg: #07090c;
  --panel: #0e1217;
  --panel-2: #141a22;
  --line: #1e252e;
  --text: #e6e9ed;
  --muted: #7d8794;
  --faint: #4b5560;
  --accent: #3b9eff;
  --brand: #f26b1d;
  --hot: #ff8a3d;
  --cool: #39c2ff;
  --strong: #34d399;
  --weak: #ff5a6a;
  --inline: #a3acb8;
  --live: #ff4d4f;
  --warn: #f5c542;
  --head-bg: rgba(7, 9, 12, .86);
  --hover: rgba(255, 255, 255, .02);
  --sim-stripe: rgba(255, 255, 255, .02);
  --shadow: 0 6px 20px rgba(0, 0, 0, .5);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --panel: #f6f8fa;
  --panel-2: #eef1f4;
  --line: #e1e6eb;
  --text: #0f1419;
  --muted: #5b6672;
  --faint: #9aa4af;
  --accent: #1a6fd6;
  --brand: #e85d10;
  --hot: #d9480f;
  --cool: #0a78c2;
  --strong: #0f8a50;
  --weak: #d42a3f;
  --inline: #6b7785;
  --live: #e5383b;
  --warn: #a66b00;
  --head-bg: rgba(255, 255, 255, .88);
  --hover: rgba(0, 0, 0, .018);
  --sim-stripe: rgba(0, 0, 0, .025);
  --shadow: 0 6px 20px rgba(0, 0, 0, .12);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #ffffff;
    --panel: #f6f8fa;
    --panel-2: #eef1f4;
    --line: #e1e6eb;
    --text: #0f1419;
    --muted: #5b6672;
    --faint: #9aa4af;
    --accent: #1a6fd6;
    --brand: #e85d10;
    --hot: #d9480f;
    --cool: #0a78c2;
    --strong: #0f8a50;
    --weak: #d42a3f;
    --inline: #6b7785;
    --live: #e5383b;
    --warn: #a66b00;
    --head-bg: rgba(255, 255, 255, .88);
    --hover: rgba(0, 0, 0, .018);
    --sim-stripe: rgba(0, 0, 0, .025);
    --shadow: 0 6px 20px rgba(0, 0, 0, .12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, select, input { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .92em; background: var(--panel-2); padding: 0 4px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---- brand: show the logo that suits the current theme ---- */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.logo { height: 24px; width: auto; display: block; }
.logo-icon { display: none; height: 32px; width: 32px; }
.logo-on-light { display: none; }
:root[data-theme="light"] .logo-on-dark { display: none; }
:root[data-theme="light"] .logo-on-light { display: block; }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .logo-on-dark { display: none; }
  :root[data-theme="auto"] .logo-on-light { display: block; }
}
.wordmark { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); text-transform: uppercase; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 2s infinite; }
.theme-btn { all: unset; cursor: pointer; font-size: 13px; color: var(--muted); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }
.theme-btn:hover { color: var(--text); border-color: var(--faint); }

.app { display: grid; grid-template-columns: 240px minmax(0, 660px) 370px; justify-content: center; min-height: 100vh; }

/* ---- left nav ---- */
.nav { position: sticky; top: 0; height: 100vh; padding: 18px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.nav .brand { flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 10px 6px; }
.filters { display: flex; flex-direction: column; gap: 2px; }
.filters button { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 999px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.filters button:hover { background: var(--panel-2); }
.filters button.active { font-weight: 700; background: var(--panel-2); }
.filters button .count { margin-left: auto; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.filters.mobile { display: none; }
.nav-section h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px 12px; font-weight: 600; }
.toggle { display: flex; align-items: center; gap: 10px; padding: 5px 12px; cursor: pointer; color: var(--text); font-size: 14px; }
.toggle input { accent-color: var(--brand); width: 15px; height: 15px; margin: 0; }
.nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 10px; align-items: flex-start; }
.conn { font-size: 12px; color: var(--muted); }
.conn.ok::before { content: "● "; color: var(--strong); }

/* Notifications (Discord) button + RawEdge offer */
.notify-btn { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: #5865f2; color: #fff !important; text-decoration: none !important; box-shadow: 0 2px 10px color-mix(in srgb, #5865f2 35%, transparent); }
.notify-btn:hover { background: #4752c4; }
.notify-btn .bell { grid-row: span 2; font-size: 20px; }
.notify-btn .lbl { font-weight: 800; font-size: 15px; }
.notify-btn .sub { font-size: 12px; opacity: .85; }
.notify-btn.compact { display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; margin-left: auto; box-shadow: none; }
.promo { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, transparent), color-mix(in srgb, var(--brand) 4%, transparent)); color: var(--text) !important; text-decoration: none !important; }
.promo:hover { border-color: var(--brand); }
.promo-title { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.promo-text { font-size: 17px; font-weight: 800; line-height: 1.2; }
.promo-code { font-size: 12.5px; color: var(--muted); }
.promo-code b { font-family: var(--mono); color: var(--text); background: var(--panel-2); border: 1px dashed var(--brand); border-radius: 6px; padding: 1px 6px; letter-spacing: .04em; }
.promo-cta { font-size: 12.5px; font-weight: 700; color: var(--brand); margin-top: 2px; }
.promo.compact { display: none; margin: 0 0 8px; padding: 6px 12px; font-size: 13px; font-weight: 700; border-radius: 10px; }
.conn.bad::before { content: "● "; color: var(--weak); }

/* ---- timeline ---- */
.timeline { border-right: 1px solid var(--line); min-width: 0; }
.tl-head { position: sticky; top: 0; z-index: 5; background: var(--head-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 10px 18px 10px; }
.mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 8px; }
.mobile-brand .theme-btn { margin-left: auto; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.tab { all: unset; cursor: pointer; font-weight: 700; font-size: 16px; color: var(--muted); padding: 6px 2px; margin-right: 18px; border-bottom: 3px solid transparent; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--brand); }
.live-line { font-size: 13px; color: var(--muted); }
.live-line.hot { color: var(--hot); font-weight: 600; }
.live-line .pulse, .live-line .live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--live); vertical-align: 0; }
.live-line .pulse { animation: pulse 1.2s infinite; }
.live-line .live-dot { background: var(--strong); }
.live-line .cd { color: var(--accent); font-family: var(--mono); }
.order-note { margin: 0; padding: 8px 18px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.mark-read { all: unset; cursor: pointer; flex: none; font-weight: 700; font-size: 12px; color: var(--brand); padding: 2px 10px; border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); border-radius: 999px; }
.mark-read:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); }

/* Unread posts: soft orange wash, glowing outline and a NEW chip until read */
.post.is-unread { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 11%, transparent), color-mix(in srgb, var(--brand) 3%, transparent) 70%); }
.post.is-unread::after {
  content: ""; position: absolute; inset: 5px 6px; border-radius: 12px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--brand) 60%, transparent);
  animation: unread-glow 1.9s ease-in-out infinite;
}
.post.was-unread { transition: background 1.4s ease; }
.post.was-unread::after {
  content: ""; position: absolute; inset: 5px 6px; border-radius: 12px; pointer-events: none;
  border: 1px solid transparent; animation: unread-fade 1.4s ease-out forwards;
}
.badge.new { color: #fff; background: var(--brand); border-color: var(--brand); animation: new-chip 1.9s ease-in-out infinite; }
@keyframes unread-glow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 0%, transparent); opacity: .6; }
  50% { box-shadow: 0 0 16px 1px color-mix(in srgb, var(--brand) 38%, transparent); opacity: 1; }
}
@keyframes unread-fade { from { border-color: color-mix(in srgb, var(--brand) 60%, transparent); } to { border-color: transparent; } }
@keyframes new-chip { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) {
  .post.is-unread::after, .badge.new { animation: none; }
  .post.is-unread::after { box-shadow: 0 0 10px 0 color-mix(in srgb, var(--brand) 25%, transparent); }
}
.new-pill { position: sticky; top: 96px; z-index: 6; display: block; margin: 8px auto -36px; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: var(--shadow); }
.empty { color: var(--muted); text-align: center; padding: 40px 24px; }

.day-div { padding: 6px 18px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--line); }

.post { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: relative; }
.post:hover { background: var(--hover); }
.post.fresh { animation: arrive 2.4s ease-out; }
.post.is-history { opacity: .62; }
.post.is-sim { background: repeating-linear-gradient(-45deg, transparent 0 12px, var(--sim-stripe) 12px 24px); }
.post.release::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone, transparent); }
.post.tone-hot { --tone: var(--hot); }
.post.tone-cool { --tone: var(--cool); }
.post.tone-strong { --tone: var(--strong); }
.post.tone-weak { --tone: var(--weak); }
.post.tone-inline { --tone: var(--inline); }

.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 24px; position: relative; }
.avatar .corner { position: absolute; right: -4px; bottom: -4px; font-size: 12px; background: var(--bg); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line); }

.post-head, .latest-card header { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; }
.author { font-weight: 700; }
.handle, .sep, .ts { color: var(--muted); font-size: 14px; }
.ts { font-family: var(--mono); font-size: 13px; }
.latency { font-family: var(--mono); font-size: 11px; color: var(--strong); border: 1px solid color-mix(in srgb, var(--strong) 40%, transparent); border-radius: 4px; padding: 0 5px; }
.tags { margin-left: auto; display: flex; gap: 6px; }
.tag, .badge { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-weight: 600; }
.badge.sim { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }

.text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rel-title { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; flex-wrap: wrap; }
.period { color: var(--muted); font-size: 14px; }
.verdict { --c: var(--inline); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.verdict.tone-none { --c: var(--faint); font-weight: 600; text-transform: none; letter-spacing: 0; }
.verdict.tone-hot { --c: var(--hot); }
.verdict.tone-cool { --c: var(--cool); }
.verdict.tone-strong { --c: var(--strong); }
.verdict.tone-weak { --c: var(--weak); }

.metrics { display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.m-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 168px 112px; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.m-row.no-fc { grid-template-columns: minmax(0, 1fr) auto 112px; }
.m-row:last-child { border-bottom: 0; }
.m-label { font-size: 14px; min-width: 0; }
.note { color: var(--muted); font-size: 12px; }
.m-val { font-family: var(--mono); font-weight: 700; font-size: 16px; text-align: right; }
.m-row.lead .m-val { font-size: 22px; }
.m-row.lead .m-label { font-weight: 600; }
.vs { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 1px; align-items: baseline; }
.vs .exp { color: var(--muted); }
.surprise { font-weight: 700; font-size: 12px; padding: 0 5px; border-radius: 4px; background: color-mix(in srgb, currentColor 12%, transparent); }
.house { flex-basis: 100%; font-size: 11.5px; color: var(--brand); }
.house-diff { color: var(--muted); }
.exp.tone-hot, .surprise.tone-hot { color: var(--hot); }
.exp.tone-cool, .surprise.tone-cool { color: var(--cool); }
.exp.tone-strong, .surprise.tone-strong { color: var(--strong); }
.exp.tone-weak, .surprise.tone-weak { color: var(--weak); }
.exp.tone-inline, .surprise.tone-inline { color: var(--inline); }
.next-exp { margin: 0 0 8px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; font-size: 12.5px; }
.next-exp h4 { margin: 0 0 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.next-exp ul { margin: 0; padding: 0; list-style: none; font-family: var(--mono); }
.next-exp li { display: flex; gap: 10px; flex-wrap: wrap; padding: 1px 0; }
.next-exp .lbl { min-width: 160px; font-family: var(--sans); }
.next-exp .house { flex-basis: auto; }
.m-prev { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.rev { color: var(--warn); }
.muted { color: var(--faint); }
.stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 14px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.stamps div { min-width: 0; }
.stamps dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.stamps dd { margin: 2px 0 0; font-family: var(--mono); font-size: 12.5px; }
.stamps .cd { color: var(--accent); }
@media (max-width: 760px) { .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-val.tone-hot, .vs.tone-hot { color: var(--hot); }
.m-val.tone-cool, .vs.tone-cool { color: var(--cool); }
.m-val.tone-strong, .vs.tone-strong { color: var(--strong); }
.m-val.tone-weak, .vs.tone-weak { color: var(--weak); }
.vs.tone-inline { color: var(--inline); }

.lines { margin: 6px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 13px; }
.lines li { padding: 2px 0; }
.post.reminder { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%); }

.post-foot { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 12.5px; flex-wrap: wrap; }
.bc { font-size: 11.5px; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.bc.ok { color: var(--strong); border-color: color-mix(in srgb, var(--strong) 40%, transparent); }
.bc.dry { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.bc.err { color: var(--weak); border-color: color-mix(in srgb, var(--weak) 40%, transparent); }

/* ---- latest data ---- */
.latest-region { padding: 14px 18px 4px; border-bottom: 1px solid var(--line); }
.latest-region h3 { margin: 0 0 10px; font-size: 15px; }
.latest-card { margin-bottom: 14px; }
.latest-card header { margin-bottom: 6px; }
.latest-card .verdict { margin-left: auto; }

/* ---- right column ---- */
.side { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.card h2 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.hint { color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }
.pill { font-size: 10px; font-weight: 800; letter-spacing: .06em; border-radius: 4px; padding: 1px 5px; border: 1px solid var(--line); color: var(--muted); vertical-align: 1px; }
.pill.live { color: var(--live); border-color: color-mix(in srgb, var(--live) 45%, transparent); }

.day { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 12px 0 4px; font-weight: 700; }
.day:first-child { margin-top: 0; }
.ev { display: grid; grid-template-columns: 44px 24px minmax(0, 1fr); gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ev:last-child { border-bottom: 0; }
.ev.past { opacity: .45; }
.ev-time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 1px; }
.ev-flag { font-size: 16px; line-height: 1.2; }
.ev-title { font-size: 13.5px; font-weight: 600; }
.ev-title .impact { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.ev.high .impact { background: var(--live); }
.ev.medium .impact { background: var(--hot); }
.ev-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ev-meta .cd { color: var(--accent); }
.more { all: unset; cursor: pointer; color: var(--accent); font-size: 13px; margin-top: 8px; display: inline-block; }

.ok-text { color: var(--strong); }
.warn-text { color: var(--warn); }
.bad-text { color: var(--weak); }
.row { display: flex; gap: 8px; }
select, input[type=password], input[type=number], .fc-input { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
select { flex: 1; min-width: 0; }
.btn { background: var(--text); color: var(--bg); border: 0; border-radius: 999px; padding: 7px 16px; font-weight: 700; cursor: pointer; }
.btn:disabled { opacity: .35; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

.src { display: grid; grid-template-columns: 10px 20px minmax(0, 1fr) auto; gap: 6px; align-items: center; font-size: 13px; padding: 4px 0; }
.src .d { width: 8px; height: 8px; border-radius: 50%; background: var(--strong); }
.src .d.err { background: var(--weak); }
.src .d.hot { background: var(--hot); animation: pulse 1.2s infinite; }
.src .d.wait { background: var(--faint); }
.src .r { color: var(--muted); font-family: var(--mono); font-size: 11.5px; text-align: right; white-space: nowrap; }
.src .e { grid-column: 3 / -1; color: var(--weak); font-size: 11.5px; }
.budget { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* ---- admin ---- */
body.admin { min-height: 100vh; }
.admin-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--head-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.admin-badge { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.admin-actions { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.admin-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr) 380px; gap: 16px; padding: 16px 20px; align-items: start; max-width: 1640px; margin: 0 auto; }
.admin-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.feed-card { padding: 0; overflow: hidden; }
.card-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.card-head .hint { margin: 0; }
.login { display: grid; place-items: center; padding: 10vh 20px; }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 10px; }
.field.inline input { width: 72px; }
.field input { color: var(--text); }
.field-group { border: 0; padding: 0; margin: 10px 0 0; }
.field-group legend { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 2px; padding: 0; }
.field-group .toggle, .chan .toggle { padding-left: 0; }
.chan { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 4px 0; }
.chan-keys { font-size: 12.5px; }
.warn-box { font-size: 12.5px; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); border-radius: 8px; padding: 8px 10px; margin: 6px 0 10px; }
table.log { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.log th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; padding: 4px 6px 4px 0; border-bottom: 1px solid var(--line); }
table.log td { padding: 5px 6px 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mono { font-family: var(--mono); white-space: nowrap; }
.fc-row { display: grid; grid-template-columns: 64px 22px minmax(0, 1fr) 72px; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fc-row:last-child { border-bottom: 0; }
.fc-title { min-width: 0; }
.fc-input { width: 72px; font-family: var(--mono); font-size: 12.5px; padding: 3px 6px; }
.fc-input.bad { border-color: var(--weak); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes arrive { 0% { background: color-mix(in srgb, var(--brand) 20%, transparent); transform: translateY(-6px); } 15% { transform: none; } 100% { background: transparent; } }

@media (max-width: 1280px) {
  .app { grid-template-columns: 76px minmax(0, 660px) 340px; }
  .nav { padding: 18px 8px; align-items: center; }
  .nav .brand { padding: 4px 0; align-items: center; }
  .nav .logo, .nav .wordmark { display: none !important; }
  .nav .logo-icon { display: block; }
  .filters button { justify-content: center; padding: 10px; }
  .filters button .lbl, .filters button .count { display: none; }
  .filters button .em { font-size: 20px; }
  .nav-section, .conn { display: none; }
  .nav-foot { padding: 0; align-items: center; }
  .nav .notify-btn { grid-template-columns: 1fr; padding: 10px; justify-items: center; }
  .nav .notify-btn .lbl, .nav .notify-btn .sub { display: none; }
  .nav .promo { display: none; }
  .promo.compact { display: block; }
  .admin-grid { grid-template-columns: 360px minmax(0, 1fr); }
  .admin-grid .admin-col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}
@media (max-width: 1020px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .nav, .side { display: none; }
  .mobile-brand { display: flex; }
  .filters.mobile { display: flex; flex-direction: row; overflow-x: auto; margin-top: 8px; gap: 4px; }
  .filters.mobile button { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); white-space: nowrap; }
  .filters.mobile .lbl { display: inline; }
  .m-row, .m-row.no-fc { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  .m-row .vs { grid-column: 1; }
  .m-row .m-prev { grid-column: 2; }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
}
