/* CryptoSaurus Velociraptor dashboard - colours taken from the logo: night-green background, mint ring, raptor lime */
:root {
  /* dark (default) */
  --bg: #050b09;
  --bg2: #08130f;
  --panel: rgba(13, 26, 21, .78);
  --panel-solid: #0d1a15;
  --inner: rgba(5, 11, 9, .55);
  --line: #1b3029;
  --line2: #24433a;
  --fg: #e7f4ec;
  --muted: #7d998d;
  --dim: #4e6a5f;
  --mint: #3ff0b2;
  --lime: #a8d85c;
  --red: #ff5f6d;
  --amber: #f4b84b;
  --on-accent: #04130d;
  --glow1: rgba(63, 240, 178, .10);
  --glow2: rgba(168, 216, 92, .07);
  --grid: rgba(63, 240, 178, .035);
  --hover: rgba(63, 240, 178, .04);
  --shadow: 0 20px 60px rgba(0, 0, 0, .5);
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
/* light: chosen in the dashboard, or the system setting when no choice was made */
:root[data-theme="light"] {
  --bg: #eef4f0;
  --bg2: #ffffff;
  --panel: rgba(255, 255, 255, .86);
  --panel-solid: #ffffff;
  --inner: #f6faf8;
  --line: #d8e4dd;
  --line2: #c2d4ca;
  --fg: #0e1f18;
  --muted: #557065;
  --dim: #85a095;
  --mint: #0b9a68;
  --lime: #5d8c1a;
  --red: #d42f42;
  --amber: #a86a0c;
  --on-accent: #ffffff;
  --glow1: rgba(11, 154, 104, .10);
  --glow2: rgba(93, 140, 26, .08);
  --grid: rgba(11, 154, 104, .05);
  --hover: rgba(11, 154, 104, .05);
  --shadow: 0 20px 50px rgba(20, 60, 45, .12);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef4f0;
    --bg2: #ffffff;
    --panel: rgba(255, 255, 255, .86);
    --panel-solid: #ffffff;
    --inner: #f6faf8;
    --line: #d8e4dd;
    --line2: #c2d4ca;
    --fg: #0e1f18;
    --muted: #557065;
    --dim: #85a095;
    --mint: #0b9a68;
    --lime: #5d8c1a;
    --red: #d42f42;
    --amber: #a86a0c;
    --on-accent: #ffffff;
    --glow1: rgba(11, 154, 104, .10);
    --glow2: rgba(93, 140, 26, .08);
    --grid: rgba(11, 154, 104, .05);
    --hover: rgba(11, 154, 104, .05);
    --shadow: 0 20px 50px rgba(20, 60, 45, .12);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.45 var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, var(--glow1), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, var(--glow2), transparent 60%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--bg);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mint); }
h1, h2 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 19px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); font-size: 12px; }
.pos { color: var(--mint); }
.neg { color: var(--red); }
.r { text-align: right; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.top-in {
  max-width: 1440px; margin: 0 auto; padding: 10px 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-t { min-width: 0; }
.logo { border-radius: 50%; flex: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--mint) 40%, transparent), 0 0 20px color-mix(in srgb, var(--mint) 25%, transparent); }
.eyebrow { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); font-weight: 700; }
.badge {
  font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 3px 8px; border-radius: 99px;
  border: 1px solid var(--line2); color: var(--muted);
}
.badge.paper { color: var(--lime); border-color: color-mix(in srgb, var(--lime) 50%, transparent); background: color-mix(in srgb, var(--lime) 10%, transparent); }
.badge.live { color: var(--on-accent); background: var(--mint); border-color: var(--mint); box-shadow: 0 0 14px color-mix(in srgb, var(--mint) 45%, transparent); }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.actions form { margin: 0; display: flex; }
.chips { display: flex; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.ok { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.dot.bad { background: var(--red); box-shadow: 0 0 8px var(--red); }

.tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tab {
  font: 600 13px var(--sans); color: var(--muted); background: transparent; border: 0; border-radius: 9px;
  padding: 7px 18px; cursor: pointer;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); background: var(--panel-solid); box-shadow: 0 0 0 1px var(--line2); }

.btn {
  font: 600 13px var(--sans); color: var(--fg); background: var(--panel-solid); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line2); border-radius: 10px; padding: 8px 14px; min-height: 36px;
  transition: border-color .15s, color .15s, background .15s;
}
.btn:hover { border-color: var(--mint); color: var(--mint); }
.btn.small { padding: 6px 12px; min-height: 32px; }
.btn.paused { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; cursor: pointer; flex: none;
  color: var(--fg); background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 10px;
}
.icon-btn:hover { color: var(--mint); border-color: var(--mint); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-corner { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 2; }

/* ------------------------------------------------------------ page */
.wrap { max-width: 1440px; margin: 0 auto; padding: 18px 24px 28px; }
.view { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.banner {
  margin-bottom: 16px; padding: 10px 14px; border-radius: 10px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--amber) 50%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); color: var(--amber);
}
.banner.bad { border-color: color-mix(in srgb, var(--red) 50%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); min-width: 0;
}
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi-strip { display: contents; }
.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px;
  position: relative; overflow: hidden; min-width: 0;
}
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line2); }
.kpi.up::after { background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.kpi.down::after { background: var(--red); }
.kpi .label { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .value { font: 650 22px/1.2 var(--mono); font-variant-numeric: tabular-nums; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* main grid: desktop = positions + trades left, curve + system right */
.grid {
  display: grid; gap: 16px; align-items: start;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  grid-template-areas: "pos curve" "trades sys";
}
.positions-card { grid-area: pos; }
.curve-card { grid-area: curve; }
.trades-card { grid-area: trades; }
.sys-card { grid-area: sys; }

/* positions */
.positions { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.empty {
  color: var(--dim); text-align: center; padding: 26px 8px; border: 1px dashed var(--line); border-radius: 10px;
  grid-column: 1 / -1;
}
.posc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--inner); display: grid; gap: 6px; }
.posc.armed { border-color: color-mix(in srgb, var(--mint) 45%, transparent); }
.posc.closing { border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.pos-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pos-id { min-width: 0; }
.sym { font-weight: 700; font-size: 16px; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.pos-sub { color: var(--muted); font-size: 12px; margin-top: 1px; }
.pos-x { text-align: right; flex: none; }
.x { font: 700 24px/1.1 var(--mono); }
.upnl { font: 12px var(--mono); }
.bar { position: relative; height: 30px; margin: 2px 4px 0; }
.bar .track { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 4px; background: var(--line); }
.bar .fill { position: absolute; top: 11px; height: 4px; border-radius: 4px; transition: left .4s, width .4s; }
.bar .mk { position: absolute; top: 5px; width: 1px; height: 16px; background: var(--line2); transition: left .4s; }
.bar .mk span { position: absolute; top: 17px; transform: translateX(-50%); font: 10px var(--mono); color: var(--dim); white-space: nowrap; }
.bar .mk.sl { background: color-mix(in srgb, var(--red) 70%, transparent); }
.bar .mk.tp { background: color-mix(in srgb, var(--mint) 70%, transparent); }
.bar .mk.stop { background: var(--amber); width: 2px; }
.bar .mk.stop span { color: var(--amber); top: -14px; }
.bar .cur {
  position: absolute; top: 7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--fg); border: 2px solid var(--panel-solid); transition: left .4s;
}
.bar .cur.up { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.bar .cur.down { background: var(--red); box-shadow: 0 0 10px var(--red); }
.pos-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.pos-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); font-size: 12px; min-width: 0; }
.sell {
  font: 700 13px var(--sans); cursor: pointer; white-space: nowrap; min-height: 36px; padding: 7px 14px; border-radius: 10px;
  color: var(--red); background: transparent; border: 1px solid color-mix(in srgb, var(--red) 55%, transparent);
  transition: background .15s, color .15s;
}
.sell:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }
.sell.confirm { color: #fff; background: var(--red); border-color: var(--red); animation: pulse 1s ease-in-out infinite; }
.sell:disabled { opacity: .6; cursor: default; animation: none; color: var(--amber); border-color: color-mix(in srgb, var(--amber) 55%, transparent); background: transparent; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .sell.confirm { animation: none; } .bar .fill, .bar .mk, .bar .cur { transition: none; } }

/* P&L curve */
.curve { height: 170px; }
.curve svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* system */
.sys { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 13px; }
.sys dt { color: var(--muted); }
.sys dd { margin: 0; font-family: var(--mono); font-size: 12.5px; text-align: right; overflow-wrap: anywhere; }

/* trades table */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
td.num, td.r { font-family: var(--mono); font-size: 13px; }
tbody tr:hover td { background: var(--hover); }
tbody tr:last-child td { border-bottom: 0; }
.pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.pill.good { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 40%, transparent); }
.pill.bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.pill.warn { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.pill.man { color: var(--fg); border-color: var(--line2); }

.foot { margin-top: 18px; display: flex; justify-content: space-between; gap: 8px; color: var(--dim); font-size: 12px; }

/* logs */
.logs-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.logs-tools select, .logs-tools input[type="search"] {
  font: 14px var(--sans); color: var(--fg); background: var(--panel-solid); border: 1px solid var(--line2);
  border-radius: 10px; padding: 8px 10px; min-height: 36px;
}
.logs-tools input[type="search"] { flex: 1 1 260px; min-width: 0; }
.logs-toggles { display: flex; gap: 14px; align-items: center; }
.logs-tools label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; cursor: pointer; user-select: none; }
.logs-tools input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--mint); }
.logview {
  height: calc(100vh - 250px); min-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px;
  background: var(--inner); font: 12.5px/1.55 var(--mono); padding: 6px 0; overscroll-behavior: contain;
}
.logline { display: grid; grid-template-columns: 84px 66px 92px 1fr; gap: 10px; padding: 1px 12px; }
.logline:hover { background: var(--hover); }
.logline .t { color: var(--dim); white-space: nowrap; }
.logline .lv { font-weight: 700; }
.logline .lv.DEBUG { color: var(--dim); }
.logline .lv.INFO { color: var(--mint); }
.logline .lv.WARNING { color: var(--amber); }
.logline .lv.ERROR, .logline .lv.CRITICAL { color: var(--red); }
.logline.ERROR, .logline.CRITICAL { background: color-mix(in srgb, var(--red) 8%, transparent); }
.logline .n { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logline .m { white-space: pre-wrap; overflow-wrap: anywhere; }
.logs-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 12px; }
.logs-foot a { color: var(--mint); }
.files { display: flex; gap: 10px; flex-wrap: wrap; }

/* toast */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40;
  max-width: min(92vw, 460px); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  background: var(--panel-solid); color: var(--fg); border: 1px solid var(--line2); box-shadow: var(--shadow);
}
.toast.bad { border-color: var(--red); color: var(--red); }
.toast.good { border-color: var(--mint); }

/* bottom navigation (phones) */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--line);
}
.bn {
  display: grid; justify-items: center; gap: 2px; padding: 6px 4px; min-height: 52px; border: 0; border-radius: 12px;
  background: transparent; color: var(--muted); font: 600 11px var(--sans); cursor: pointer;
}
.bn svg { width: 22px; height: 22px; }
.bn[aria-selected="true"] { color: var(--mint); background: color-mix(in srgb, var(--mint) 10%, transparent); }
.bn .ic-play { display: none; }
.bn.paused { color: var(--amber); }
.bn.paused .ic-play { display: block; }
.bn.paused .ic-pause { display: none; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login {
  width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px 24px; text-align: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.login .logo { width: 112px; height: 112px; margin-bottom: 10px; }
.login h1 { justify-content: center; font-size: 22px; }
.login .eyebrow { margin-top: 2px; }
.login form { text-align: left; margin-top: 18px; }
.login label { display: block; color: var(--muted); font-size: 12px; margin: 12px 0 5px; }
.login input {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2);
  color: var(--fg); font: 16px var(--sans);
}
.login input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 18%, transparent); }
.login button {
  margin-top: 20px; width: 100%; padding: 13px; border: 0; border-radius: 10px; cursor: pointer;
  font: 700 15px var(--sans); color: var(--on-accent); background: linear-gradient(135deg, var(--mint), var(--lime));
  box-shadow: 0 6px 24px color-mix(in srgb, var(--mint) 25%, transparent);
}
.login button:hover { filter: brightness(1.08); }
.login .err { color: var(--red); font-size: 13px; min-height: 1.2em; margin-top: 12px; text-align: center; }

/* ------------------------------------------------------------ responsive */
.mob-only { display: none !important; }
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .top-in { grid-template-columns: 1fr auto; }
  .top-in .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pos" "curve" "trades" "sys"; }
}
@media (max-width: 720px) {
  .desk-only { display: none !important; }
  .mob-only { display: grid !important; }
  body { font-size: 15px; }
  .top-in { padding: 8px 14px; gap: 10px; }
  .logo { width: 36px; height: 36px; }
  h1 { font-size: 17px; }
  .eyebrow { font-size: 9px; }
  .chip { padding: 0; border: 0; background: transparent; width: 22px; height: 36px; justify-content: center; font-size: 0; gap: 0; }
  .chip .dot { width: 9px; height: 9px; }
  .actions { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; }
  .wrap { padding: 12px 12px calc(84px + env(safe-area-inset-bottom)); }
  .view, .grid { gap: 12px; }
  .card { padding: 14px; border-radius: 12px; }
  .kpis { display: block; }
  .kpis > .kpi { margin-bottom: 8px; padding: 12px 14px; }
  .kpis > .kpi .value { font-size: 26px; }
  .kpi-strip {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 0 12px 2px; scroll-padding-inline: 12px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .kpi-strip::-webkit-scrollbar { display: none; }
  .kpi-strip .kpi { flex: 0 0 42%; scroll-snap-align: start; padding: 10px 12px; border-radius: 12px; }
  .kpi-strip .kpi .value { font-size: 17px; }
  .positions { grid-template-columns: minmax(0, 1fr); }
  .x { font-size: 26px; }
  .sell { min-height: 44px; padding: 10px 18px; font-size: 14px; }
  .curve { height: 140px; }
  /* trades become cards */
  .trades thead { display: none; }
  .trades, .trades tbody { display: block; }
  .trades tr {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "coin pnl" "exit io" "time io";
    gap: 2px 10px; padding: 10px 4px; border-bottom: 1px solid var(--line);
  }
  .trades tr:last-child { border-bottom: 0; }
  .trades td { border: 0; padding: 0; background: none !important; }
  .trades td.c-time { grid-area: time; color: var(--dim); font-size: 12px; }
  .trades td.c-coin { grid-area: coin; }
  .trades td.c-exit { grid-area: exit; }
  .trades td.c-in { display: none; }
  .trades td.c-out { grid-area: io; align-self: end; text-align: right; color: var(--muted); font-size: 12px; }
  .trades td.c-out::before { content: "out "; }
  .trades td.c-pnl { grid-area: pnl; text-align: right; font-weight: 700; }
  .logs-tools { display: grid; grid-template-columns: 1fr; }
  .logs-toggles { justify-content: space-between; }
  .logview { height: calc(100vh - 330px); height: calc(100dvh - 330px); font-size: 12px; }
  .logline { grid-template-columns: auto 1fr; gap: 2px 8px; padding: 4px 10px; border-bottom: 1px solid var(--line); }
  .logline .n { display: none; }
  .logline .m { grid-column: 1 / -1; }
  .foot { flex-direction: column; align-items: center; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .eyebrow { display: none; }
  .badge { font-size: 9px; padding: 2px 6px; }
}
