/* MemLedger operator console. Near-black canvas, frosted glass, hairline borders,
   a faint starfield and grid, and two nebula glows. Status and agent colours carry meaning. */

/* ── fonts (vendored, no CDN; OFL, see assets/fonts/LICENSE-*) ─────────── */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/playfair-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* canvas and glass */
  --bg: #07070b;
  --deep: #0b0b12;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  /* text */
  --ink: #f4f4f7;
  --ink-2: #a1a1ad;
  --muted: #6c6c78;
  /* agents: one accent each */
  --triage: #a78bfa;
  --investigator: #60a5fa;
  --comms: #34d399;
  --agent: #c4b5fd;
  /* fact status */
  --active: #f4f4f7;          /* a lit star */
  --quarantined: #8a8a98;
  --closed: #4a4a56;
  --revoked: #f87171;         /* rose */
  --dispute: #fbbf24;         /* warm spark */
  --source: #c7c7d1;
  --live: #34d399;
  /* glows */
  --glow-violet: #7c3aed;
  --glow-cobalt: #2563eb;
  /* type */
  --serif: "Playfair Display", ui-serif, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* kept for app.js, which reads --accent for agents without an assigned colour */
  --accent: #c4b5fd;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--sans); overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--triage); outline-offset: 2px; border-radius: 6px; }

/* ── the veil: starfield, grid, two glows (behind everything) ───────── */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky .stars, .sky .stars-2 { position: absolute; inset: -10%; background-repeat: repeat; }
.sky .stars {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.4px 1.4px at 260px 40px, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 330px 170px, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 80px 210px, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 200px 260px, rgba(255,255,255,.4), transparent 60%);
  background-size: 380px 300px;
  opacity: .55;
}
.sky .stars-2 {
  background-image:
    radial-gradient(1px 1px at 60px 120px, rgba(196,181,253,.6), transparent 60%),
    radial-gradient(1px 1px at 300px 60px, rgba(147,197,253,.5), transparent 60%),
    radial-gradient(1.3px 1.3px at 420px 230px, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 520px 140px, rgba(255,255,255,.35), transparent 60%);
  background-size: 560px 340px;
  opacity: .5;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.sky .grid {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 56px);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 85%);
}
.sky .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; }
.sky .glow.violet { width: 62vw; height: 46vh; left: 19vw; top: -22vh; background: var(--glow-violet); }
.sky .glow.cobalt { width: 48vw; height: 52vh; right: -12vw; bottom: -24vh; background: var(--glow-cobalt); opacity: .24; }
@keyframes twinkle { from { opacity: .25; } to { opacity: .6; } }

/* ── scrollbars: thin, barely rounded, violet on a deep track (every page, every panel) ── */
* { scrollbar-width: thin; scrollbar-color: rgba(167, 139, 250, .35) #0b0b12; }
*:hover { scrollbar-color: rgba(167, 139, 250, .7) #0b0b12; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0b0b12; }
::-webkit-scrollbar-thumb { background: rgba(167, 139, 250, .35); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, .7); }
::-webkit-scrollbar-thumb:active { background: #a78bfa; }
::-webkit-scrollbar-corner { background: #0b0b12; }

/* ── cursor: one violet PNG arrow everywhere (hotspot at its tip, 6 2); the I-beam on text inputs ── */
html, body,
a, button, select, label, summary, [role="button"], .tab, .cite, .copy, .menu-toggle,
input[type="range"], input[type="checkbox"], .eyt-ball[data-poke],
.right .force-graph-container .clickable, .right .force-graph-container .grabbable,
.right .force-graph-container .grabbable:active { cursor: url("assets/cursor.png") 6 2, auto; }
a *, button *, [role="button"] *, .tab *, .cite *, summary * { cursor: inherit; }
input:not([type="range"]):not([type="checkbox"]), textarea, [contenteditable="true"] { cursor: text; }
button:disabled { cursor: progress; }

/* ── cursor glow (cursor.js): a soft light behind the content, never takes clicks ── */
.cursor-glow { position: fixed; left: 0; top: 0; pointer-events: none; opacity: 0; will-change: transform; transition: opacity .3s ease; }
.cursor-glow { z-index: 0; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .12) 0%, rgba(124, 58, 237, .05) 40%, rgba(124, 58, 237, 0) 70%); }
.cursor-glow.on { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ── header ─────────────────────────────────────────────────────────── */
.top {
  position: relative; z-index: 3; height: 56px;
  display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background: rgba(7, 7, 11, .55); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.brand .badge { align-self: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.brand .badge svg { width: 12px; height: 12px; fill: var(--bg); }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: .01em; }
.tagline { font-size: 12px; color: var(--ink-2); font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; }
select, input { background: var(--glass); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; }
select option { background: var(--deep); }
select:hover, input:hover { border-color: var(--line-2); }
.incident { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.modes { margin-left: auto; display: flex; gap: 6px; flex: none; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 10px; white-space: nowrap; }
.status-pill .pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); }
.status-pill .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--live); opacity: 0; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
/* eye tracker badge (watcher.js), in every header */
.eyt { position: relative; display: grid; place-items: center; flex: none; }
.eyt-ball { width: var(--eyt-size, 100px); height: var(--eyt-size, 100px); overflow: visible; }
.eyt-body { fill: var(--ink); }
.eyt-eye { fill: var(--bg); }
.eyt-ball[data-poke] { transform-origin: center; transition: scale 420ms cubic-bezier(0.24, 1.34, 0.38, 1); -webkit-tap-highlight-color: transparent; }
.eyt-ball[data-poke]:active { scale: 0.96; transition-duration: 160ms; transition-timing-function: ease; }
.eyt-say { position: absolute; left: calc(50% + var(--eyt-size, 100px) * 0.36); top: calc(50% + var(--eyt-size, 100px) * 0.3); z-index: 30;
  display: inline-flex; align-items: center; gap: 2px; min-height: 34px; padding: 0 16px; border-radius: 6px 14px 14px 14px;
  background: var(--tint, var(--triage)); box-shadow: inset 0 -1.5px 0 rgba(0,0,0,.1), 0 8px 24px rgba(0,0,0,.4);
  color: #07070b; font: 600 13px var(--sans); white-space: nowrap; transform-origin: top left; opacity: 0; scale: .85; pointer-events: none;
  transition: opacity 160ms ease, scale 220ms cubic-bezier(0.24, 1.34, 0.38, 1), background-color 220ms ease; }
.eyt-say[data-on] { opacity: 1; scale: 1; }
.eyt-caret { width: 1.5px; height: 13px; border-radius: 1px; background: #07070b; animation: pet-caret 1s steps(1) infinite; }
@keyframes pet-caret { 50% { opacity: 0; } }

/* page nav, shared by / and /demo */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  font: 400 14px/1 var(--sans); color: var(--ink-2); text-decoration: none; transition: color .2s ease, background .2s ease; }
.nav a:hover { color: var(--ink); }
.nav a.on, .nav a[aria-current] { color: var(--ink); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line); }
.top > .nav { margin-left: auto; }
.top > .nav + .modes { margin-left: 8px; }
/* fallback chips, if ever rendered */
.chip { font-family: var(--mono); font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }

/* ── layout ─────────────────────────────────────────────────────────── */
.layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(340px, 440px) 1fr; height: calc(100% - 56px); }
.left { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-right: 1px solid var(--line); min-height: 0; background: rgba(11, 11, 18, .35); }
.right { position: relative; min-width: 0; overflow: hidden; }
#graph { position: absolute; top: 0; left: 0; bottom: 0; right: 312px; }

/* glass */
.card, .entry, .panel, .drawer, .legend, .timebar {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.card { border-radius: 14px; padding: 14px 16px; transition: border-color .25s ease; }
.card:hover { border-color: var(--line-2); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); font-weight: 500; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.step-count { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; margin-top: 2px;
  background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--muted) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-buttons { display: flex; gap: 6px; }
.say { margin: 10px 0 12px; color: var(--ink-2); font-weight: 300; min-height: 3em; }
.dots { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; flex-wrap: wrap; }
.dots li { width: 15px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.09); transition: background .3s ease; }
.dots li.done { background: linear-gradient(90deg, var(--triage), var(--investigator)); }
.dots li.fail { background: var(--revoked); }

/* buttons: a single bright-white pill for the main action */
button.primary { background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 7px 16px; font-weight: 600; transition: background .2s ease, transform .2s ease; }
button.primary:hover { background: #fff; }
button.primary:active { transform: translateY(1px); }
button.ghost { background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; color: var(--ink-2); transition: border-color .2s ease, color .2s ease; }
button.ghost:hover { border-color: rgba(255,255,255,.28); color: var(--ink); }
button.danger { background: var(--revoked); color: #1a0606; border: 0; border-radius: 999px; padding: 5px 13px; font-weight: 600; }
button.small { padding: 3px 10px; font-size: 12px; }
button:disabled { opacity: .45; cursor: progress; }

/* feed */
.feed { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 2px; }
.entry { border-radius: 12px; padding: 11px 14px; position: relative; animation: rise .45s ease-out both; }
.entry::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--line-2); }
.entry.ok::before { background: linear-gradient(180deg, var(--triage), var(--investigator)); }
.entry.bad::before { background: var(--revoked); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.entry h4 { margin: 0 0 4px; font: 500 15px/1.3 var(--serif); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.entry h4 .meta { font: 400 11px var(--mono); color: var(--muted); }
.entry .text { white-space: pre-wrap; margin: 6px 0; color: var(--ink-2); }
.entry ul { list-style: none; margin: 6px 0; padding: 0; font-family: var(--mono); font-size: 12px; }
.entry li { padding: 2px 0; }
.plus { color: var(--ink); } .minus { color: var(--revoked); } .drop { color: var(--muted); } .q { color: var(--quarantined); }
.checks { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.checks .pass { color: var(--live); } .checks .fail { color: var(--revoked); } .checks .warn { color: var(--dispute); }
.cite { font-family: var(--mono); font-size: 11px; background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.25); border-radius: 5px; padding: 0 5px; color: #93c5fd; transition: background .2s ease; }
.cite:hover { background: rgba(96,165,250,.2); }
.cite.inactive { color: var(--revoked); border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.08); text-decoration: line-through; text-decoration-color: var(--revoked); }
.pill { font-family: var(--mono); font-size: 10.5px; border-radius: 999px; padding: 0 7px; border: 1px solid transparent; }
.pill.active { color: var(--ink); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.pill.quarantined { color: var(--quarantined); border: 1px dashed rgba(138,138,152,.6); }
.pill.closed { color: #8a8a96; background: rgba(74,74,86,.35); }
.pill.revoked { color: var(--revoked); background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); }

/* agent accents */
.agent-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; border-radius: 999px; padding: 1px 9px 1px 7px; border: 1px solid currentColor; }
.agent-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.a-triage { color: var(--triage); } .a-investigator { color: var(--investigator); } .a-comms { color: var(--comms); } .a-other { color: var(--agent); }

/* blast radius: grouped by agent, the hero shot */
.radius-sum { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 4px; font-size: 12px; color: var(--ink-2); }
.radius-sum b { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--ink); margin-right: 4px; }
ul.radius-list li { display: flex; align-items: center; gap: 8px; padding: 3px 0 3px 10px; border-left: 2px solid currentColor; margin: 3px 0; }
ul.radius-list li .fv { color: var(--ink); }
ul.radius-list li .meta { color: var(--muted); }
ul.radius-list li.gone .fv { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--revoked); text-decoration-thickness: 1.5px; }

/* ask */
.ask .ask-row { display: flex; gap: 6px; margin-top: 8px; }
.ask #askQ { flex: 1; min-width: 0; }

/* graph overlays */
.legend { position: absolute; top: 12px; left: 14px; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-2); padding: 7px 12px; border-radius: 12px; max-width: calc(100% - 340px); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend .sep { width: 1px; height: 12px; background: var(--line-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.active { background: var(--active); box-shadow: 0 0 6px rgba(255,255,255,.6); }
.dot.quarantined { border: 1.5px dashed var(--quarantined); }
.dot.closed { background: var(--closed); }
.dot.revoked { background: rgba(248,113,113,.35); position: relative; }
.dot.revoked::after { content: ""; position: absolute; left: -2px; right: -2px; top: 4px; height: 1.5px; background: var(--revoked); }
.sq { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.sq.agent { border-radius: 50%; background: conic-gradient(var(--triage) 0 33%, var(--investigator) 0 66%, var(--comms) 0); }
.sq.source { background: transparent; border: 1.5px solid var(--source); }

.timebar { position: absolute; left: 14px; right: 326px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 12px; border-radius: 999px; padding: 7px 10px 7px 16px; }
.timebar input { flex: 1; accent-color: var(--triage); background: transparent; border: 0; padding: 0; }
#timeLabel { min-width: 150px; font-family: var(--mono); letter-spacing: .06em; }
#timeLabel.past { color: var(--dispute); }

.panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: 296px; z-index: 2; border-radius: 16px; overflow-y: auto; }
.tabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; background: rgba(11,11,18,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.tab { flex: 1; background: none; border: 0; padding: 10px; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.tab.on { color: var(--ink); box-shadow: inset 0 -1px var(--ink); }
.tabbody { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.src { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 12px; padding: 9px 10px; transition: border-color .2s ease; }
.src:hover { border-color: var(--line-2); }
.src.comp { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.04); }
.src-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; }
.trust { height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); margin: 8px 0; position: relative; }
.trust i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: linear-gradient(90deg, var(--investigator), var(--triage)); }
.trust b { position: absolute; top: -3px; width: 1px; height: 9px; background: var(--ink-2); }
.src-meta { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 6px; font-family: var(--mono); }
.radius { margin-top: 6px; font-size: 12px; }
.radius ul { margin: 4px 0; padding-left: 0; list-style: none; font-family: var(--mono); font-size: 11px; }

.drawer { position: absolute; top: 12px; right: 320px; width: 350px; z-index: 3; max-height: calc(100% - 80px); overflow-y: auto; border-radius: 16px; padding: 16px 18px; background: rgba(11,11,18,.78); box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.drawer .close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 20px; color: var(--muted); }
.drawer .close:hover { color: var(--ink); }
.drawer h3 { margin: 6px 0 8px; font: 500 18px/1.25 var(--serif); padding-right: 20px; overflow-wrap: anywhere; }
.drawer dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; font-size: 12px; margin: 12px 0; }
.drawer dt { color: var(--muted); } .drawer dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; color: var(--ink-2); }
.versions { list-style: none; padding: 0; margin: 8px 0 0; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.versions li { padding: 3px 0; }

@media (max-width: 1439px) { .tagline { display: none; } }
@media (max-width: 900px) {
  body { overflow: auto; }
  .top { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .modes { margin-left: 0; }
  .layout { grid-template-columns: 1fr; grid-template-rows: auto 60vh; height: auto; }
  .left { border-right: 0; }
  .panel { display: none; }
  .timebar { right: 14px; }
  .legend { max-width: calc(100% - 28px); }
  #graph { right: 0; }
  .drawer { right: 10px; width: auto; left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.brand .eyt { align-self: center; }
