
:root {
  --bg: #0e0e11;
  --fg: #f1f1f3;
  --muted: #848e9c;
  --line: #23232b;
  --card: #16161c;
  --hover: #1c1c24;
  --green: #88d693;
  --green-rgb: 136, 214, 147;
  --red: #f6465d;
  --gold: #e5b94c;
  --accent: #88d693;
  --row-h: 48px;
}
body.chain-arc {
  --green: #3DDBD9;
  --green-rgb: 61, 219, 217;
  --accent: #3DDBD9;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg);
  font-family: Inter, "PingFang SC", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.4; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { max-width: 1280px; margin: 0 auto; padding: 0 20px 72px; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--green); }
h1 { font-size: 20px; font-weight: 650; margin: 0 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.brand { margin: 0; display: flex; align-items: center; gap: 12px; }
.brand a { color: var(--fg); font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 22px; line-height: 1;
  display: flex; align-items: center; gap: 10px; }
.brand a:hover { color: var(--green); }
.brand-ico { width: 18px; height: 18px; display: block; }
.chain-switch { display: inline-flex; align-items: center; gap: 4px; }
.chain-switch a.chain-btn {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--muted); line-height: 1.2;
}
.chain-switch a.chain-btn.chain-robinhood { color: #88d693; }
.chain-switch a.chain-btn.chain-robinhood.on {
  border-color: #88d693; color: #88d693; background: rgba(136, 214, 147, 0.14);
}
.chain-switch a.chain-btn.chain-arc { color: #3DDBD9; }
.chain-switch a.chain-btn.chain-arc.on {
  border-color: #3DDBD9; color: #3DDBD9; background: rgba(61, 219, 217, 0.16);
}
.muted, .dim { color: var(--muted); }
.up { color: var(--green); }
.dn { color: var(--red); }
header {
  display: flex; align-items: center; gap: 20px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 14, 17, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin: 0 -20px 18px;
  padding-left: 20px; padding-right: 20px;
}
nav { display: flex; gap: 2px; margin: 0; flex-shrink: 0; }
nav a { color: var(--muted); padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; }
nav a:hover { color: var(--fg); background: var(--hover); text-decoration: none; }
nav a.on { color: var(--green); background: rgba(var(--green-rgb), 0.08); }
nav a.nav-alerts { position: relative; padding-right: 18px; }
.nav-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
  pointer-events: none;
}
.nav-badge[hidden] { display: none; }
.meta { margin: 0 0 0 auto; font-size: 12px; color: var(--muted); white-space: nowrap;
  display: flex; align-items: center; gap: 8px; }
.meta .on { color: var(--fg); }
.clock {
  width: 18px; height: 18px; border: 1.5px solid var(--muted); border-radius: 50%;
  position: relative; flex-shrink: 0; display: inline-block;
}
.clock::before {
  content: ""; position: absolute; left: 50%; top: -1px;
  width: 2px; height: 2px; margin-left: -1px;
  background: var(--green); border-radius: 50%; z-index: 2;
}
.clock .hand {
  position: absolute; left: 50%; top: 50%;
  width: 2px; height: 7px; margin: -7px 0 0 -1px;
  background: var(--green); border-radius: 1px;
  transform-origin: 50% 100%;
  animation: aifind-clock 60s linear infinite;
}
@keyframes aifind-clock {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .clock .hand { animation: none; }
}
.db-size {
  flex-shrink: 0; font-variant-numeric: tabular-nums; font-weight: 550;
  color: var(--muted); letter-spacing: 0.02em;
}
section { margin-bottom: 28px; }
.block { margin-top: 32px; }
.block h2 { margin-bottom: 6px; }
.block > .muted { margin: 0 0 12px; font-size: 12px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.pagehead .subtabs { flex-basis: 100%; }
.subpane { display: none; }
.subpane.on { display: block; }
.subpane > .muted { margin: 0 0 12px; font-size: 12px; }
.pagehead h1 { margin: 0; }
.pagehead .search { margin-left: auto; }
.pagehead-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; overflow: visible; }
.pagehead-tools .search { margin-left: 0; }
.hold-filters { display: inline-flex; align-items: center; gap: 6px; overflow: visible; }
button.hold-filter {
  appearance: none; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; white-space: nowrap;
  position: relative; }
.hold-filters button.hold-filter {
  box-sizing: border-box; width: 36px; height: 28px; min-width: 36px;
  padding: 0; justify-content: center; font-size: 12px; line-height: 1;
}
button.hold-filter[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; left: 50%; top: calc(100% + 7px); transform: translateX(-50%);
  background: #1c1c22; border: 1px solid var(--line); color: var(--fg);
  font-size: 11px; font-weight: 500; line-height: 1.2; padding: 5px 8px;
  border-radius: 6px; white-space: nowrap; z-index: 40; pointer-events: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.4); }
#alerts-ack.on { border-color: var(--green); color: var(--green);
  background: rgba(var(--green-rgb), 0.12); }
button.hold-filter[data-filter="fav"] {
  font-size: 13px;
}
button.hold-filter[data-filter="fav"]:hover { color: var(--gold); border-color: var(--gold); }
button.hold-filter[data-filter="fav"].on { border-color: var(--gold); color: var(--gold);
  background: rgba(229, 185, 76, 0.12); }
button.hold-filter[data-filter="new"]:hover { color: var(--green); border-color: var(--green); }
button.hold-filter[data-filter="new"].on { border-color: var(--green); color: var(--green);
  background: rgba(var(--green-rgb), 0.12); }
button.hold-filter[data-filter="s"]:hover { color: var(--green); border-color: var(--green); }
button.hold-filter[data-filter="s"].on { border-color: var(--green); color: var(--green);
  background: rgba(var(--green-rgb), 0.12); }
button.hold-filter[data-filter="a"]:hover { color: var(--gold); border-color: var(--gold); }
button.hold-filter[data-filter="a"].on { border-color: var(--gold); color: var(--gold);
  background: rgba(229, 185, 76, 0.12); }
button.hold-filter[data-filter="up"]:hover { color: var(--green); border-color: var(--green); }
button.hold-filter[data-filter="up"].on { border-color: var(--green); color: var(--green);
  background: rgba(var(--green-rgb), 0.12); }
button.hold-filter[data-filter="down"]:hover { color: var(--red); border-color: var(--red); }
button.hold-filter[data-filter="down"].on { border-color: var(--red); color: var(--red);
  background: rgba(246, 70, 93, 0.12); }
button.hold-filter[data-filter="bull"]::before,
button.hold-filter[data-filter="bear"]::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  box-sizing: border-box; opacity: 0.55;
}
button.hold-filter[data-filter="bull"]::before { border: 1.5px solid var(--green); }
button.hold-filter[data-filter="bear"]::before { border: 1.5px solid var(--red); }
button.hold-filter[data-filter="bull"]:hover { border-color: var(--green); }
button.hold-filter[data-filter="bull"]:hover::before,
button.hold-filter[data-filter="bull"].on::before {
  opacity: 1; background: var(--green); border-color: var(--green);
}
button.hold-filter[data-filter="bull"].on { border-color: var(--green);
  background: rgba(var(--green-rgb), 0.12); }
button.hold-filter[data-filter="bear"]:hover { border-color: var(--red); }
button.hold-filter[data-filter="bear"]:hover::before,
button.hold-filter[data-filter="bear"].on::before {
  opacity: 1; background: var(--red); border-color: var(--red);
}
button.hold-filter[data-filter="bear"].on { border-color: var(--red);
  background: rgba(246, 70, 93, 0.12); }
button.hold-filter.hold-tab-only,
button.hold-filter.watch-hold-only { display: none; }
body.early-tab-hold button.hold-filter.hold-tab-only,
body.early-tab-hold button.hold-filter.watch-hold-only,
body.early-tab-watch button.hold-filter.watch-hold-only { display: inline-flex; }
body:not(.searching).fav-only-on table.sheet tr.token-row:not(.faved),
body:not(.searching).fav-only-on table.sheet tr.token-row:not(.faved) + tr.detail,
body:not(.searching).fav-only-on table.flow tr.token-row:not(.faved),
body:not(.searching).fav-only-on table.flow tr.token-row:not(.faved) + tr.detail,
body:not(.searching) tr.grade-hide,
body:not(.searching).s-up-on:not(.s-down-on) tr.token-row:not(.s-up),
body:not(.searching).s-up-on:not(.s-down-on) tr.token-row:not(.s-up) + tr.detail,
body:not(.searching).s-down-on:not(.s-up-on) tr.token-row:not(.s-down),
body:not(.searching).s-down-on:not(.s-up-on) tr.token-row:not(.s-down) + tr.detail,
body:not(.searching).s-up-on.s-down-on tr.token-row:not(.s-up):not(.s-down),
body:not(.searching).s-up-on.s-down-on tr.token-row:not(.s-up):not(.s-down) + tr.detail,
body:not(.searching).fresh-on tr.token-row:not(.is-new),
body:not(.searching).fresh-on tr.token-row:not(.is-new) + tr.detail,
body:not(.searching).stance-up-on:not(.stance-dn-on) tr.token-row:not(.stance-up),
body:not(.searching).stance-up-on:not(.stance-dn-on) tr.token-row:not(.stance-up) + tr.detail,
body:not(.searching).stance-dn-on:not(.stance-up-on) tr.token-row:not(.stance-dn),
body:not(.searching).stance-dn-on:not(.stance-up-on) tr.token-row:not(.stance-dn) + tr.detail,
body:not(.searching).stance-up-on.stance-dn-on tr.token-row:not(.stance-up):not(.stance-dn),
body:not(.searching).stance-up-on.stance-dn-on tr.token-row:not(.stance-up):not(.stance-dn) + tr.detail {
  display: none !important; }
.pagehead-title { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.early-snap { font-size: 11px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.pagehead .token-actions { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.token-add { display: inline-flex; gap: 6px; align-items: center; }
.token-add input {
  width: min(280px, 38vw); background: var(--card); border: 1px solid var(--line);
  color: var(--fg); padding: 2px 12px; border-radius: 999px;
  font-size: 12px; font-family: inherit; outline: none; }
.token-add input:focus { border-color: var(--green); }
.token-add input::placeholder { color: var(--muted); }
.token-add button {
  appearance: none; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-family: inherit; cursor: pointer; }
.token-add button:hover { color: var(--green); border-color: var(--green); }
.pagehead .token-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex-basis: 100%; }
.pagehead .token-pills .pill { margin: 0; }
.pagehead .token-meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.pagehead .muted { flex-basis: 100%; margin: 0; font-size: 12px; }
.pagehead input.search {
  width: min(240px, 42vw); background: var(--card); border: 1px solid var(--line);
  color: var(--fg); padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-family: inherit; outline: none; }
.pagehead input.search:focus { border-color: var(--green); }
.pagehead input.search::placeholder { color: var(--muted); }
.alert-filters {
  flex-basis: 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.alert-filters select {
  appearance: none; -webkit-appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23848e9c' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 10px 6px;
  border: 1px solid var(--line); color: var(--fg);
  padding: 4px 26px 4px 12px; border-radius: 999px;
  font-size: 12px; font-family: inherit; cursor: pointer; outline: none;
}
.alert-filters select:hover { border-color: var(--muted); }
.alert-filters select:focus { border-color: var(--green); }
.alert-filters select option { background: #16161c; color: var(--fg); }
tr.filter-hide { display: none !important; }
a.refresh, button.refresh {
  appearance: none; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-family: inherit; cursor: pointer;
  display: inline-block; line-height: 1.4; }
a.refresh:hover, button.refresh:hover { color: var(--green); border-color: var(--green); }
.count { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 1px 8px; vertical-align: middle; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats div { background: var(--card); border: 1px solid var(--line); padding: 12px 14px; border-radius: 10px; }
.stats span { display: block; color: var(--muted); font-size: 12px; }
.stats strong { font-size: 22px; font-weight: 650; }
.stats small { display: block; color: var(--muted); margin-top: 4px; }
.flow-chart {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 4px 2px; margin: 4px 0 10px;
}
.flow-svg { width: 100%; height: 240px; display: block; }
.flow-tip {
  position: absolute; z-index: 4; pointer-events: none;
  background: #16161c; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: 12px; color: var(--muted); line-height: 1.35;
  min-width: 108px;
}
.flow-tip strong {
  display: block; color: var(--fg); font-size: 15px; font-weight: 650;
  font-variant-numeric: tabular-nums; margin: 1px 0;
}
.flow-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.flow-cols section { margin-bottom: 0; }
.flow-cols h2 { margin-bottom: 8px; }
.flow-cols table.sheet col.col-tok { width: auto; }
.flow-cols table.sheet col.col-n,
.flow-cols table.sheet col.col-usd { width: 5.6em; }
.flow-cols table.sheet .tok-id .tok-memo {
  width: auto; flex: 1 1 6em; min-width: 4.5em; max-width: none;
}
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap; }
thead th { position: sticky; top: 52px; background: var(--bg); z-index: 5; }
table:not(.inner) tbody > tr:not(.detail) { height: var(--row-h); }
table:not(.inner) tbody > tr:not(.detail) > td {
  height: var(--row-h);
  padding-top: 4px; padding-bottom: 4px; overflow: hidden;
}
tbody tr:hover { background: var(--hover); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.num { font-variant-numeric: tabular-nums; }
.col-kind { white-space: nowrap; min-width: 5.2em; padding-right: 18px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
ul.plain { padding-left: 18px; }
.pill { display: inline-block; background: var(--card); border: 1px solid var(--line);
  padding: 2px 8px; margin: 0 6px 6px 0; border-radius: 999px; font-size: 12px; }
a.pill { color: var(--fg); }
a.pill.current { border-color: var(--green); color: var(--green); }
a.pill.expired { opacity: 0.55; border-style: dashed; color: var(--muted); }
a.token-update { display: inline-block; border: 1px solid var(--line); color: var(--muted);
  padding: 2px 10px; border-radius: 999px; font-size: 12px; }
form.expire { display: inline; margin: 0; }
form.expire button {
  appearance: none; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-family: inherit; cursor: pointer; }
form.expire button:hover { color: var(--red); border-color: var(--red); }
form.expire.on button { color: var(--muted); border-color: #4a4a55; }
a.token-update:hover { color: var(--green); border-color: var(--green); }
a.token-update.busy, .token-add.busy button {
  opacity: 0.55; pointer-events: none; cursor: default;
}
a.track { display: inline-block; border: 1px solid var(--line); color: var(--muted);
  padding: 2px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
a.track:hover { color: var(--green); border-color: var(--green); }
a.track.on { border-color: var(--green); color: var(--green); background: rgba(var(--green-rgb), 0.12); }
a.track.busy { opacity: 0.55; pointer-events: none; }
a.star { display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; color: var(--muted); font-size: 15px; line-height: 1;
  opacity: 0.35; }
a.star::before { content: "★"; }
a.star:hover { color: var(--gold); opacity: 1; }
a.star.on { color: var(--gold); opacity: 1; }
a.star.busy { pointer-events: none; opacity: 0.45; }
.marks { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
a.dot {
  display: inline-flex; width: 11px; height: 11px; border-radius: 50%;
  box-sizing: border-box; opacity: 0.38; flex-shrink: 0;
}
a.dot.up { border: 1.5px solid var(--green); background: transparent; }
a.dot.down { border: 1.5px solid var(--red); background: transparent; }
a.dot.up:hover { opacity: 1; background: rgba(var(--green-rgb), 0.35); }
a.dot.down:hover { opacity: 1; background: rgba(246, 70, 93, 0.35); }
a.dot.up.on { opacity: 1; background: var(--green); border-color: var(--green); }
a.dot.down.on { opacity: 1; background: var(--red); border-color: var(--red); }
a.dot.busy { pointer-events: none; opacity: 0.4; }
.grade { display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 18px; padding: 0 5px; border-radius: 4px;
  font-size: 11px; font-weight: 700; }
.g-S { background: rgba(var(--green-rgb), 0.16); color: var(--green); }
.g-A { background: rgba(229, 185, 76, 0.16); color: var(--gold); }
.g-B { background: rgba(132, 142, 156, 0.18); color: #c5ccd6; }
.g-C { background: rgba(132, 142, 156, 0.1); color: var(--muted); }
.col-last { width: 1%; white-space: nowrap; }
.last-act { display: flex; flex-direction: column; gap: 3px; }
.last-line { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.last-line .col-kind { min-width: 0; padding: 0; }
.last-line .num { font-variant-numeric: tabular-nums; }
.last-tag { color: var(--muted); font-size: 12px; }
.flow-n { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flow-buy { color: var(--green); }
.flow-sell { color: var(--red); }
th.col-flow, td.col-flow { width: 1%; white-space: nowrap; }
#early-watch th.col-flow, #early-watch td.col-flow {
  width: auto; min-width: 7.5em; padding-left: 12px; padding-right: 12px; }
.col-holds { border-left: 1px solid var(--line); padding-left: 12px; text-align: right; }
th.col-holds { font-weight: 500; }
td.col-holds .holds { width: 100%; justify-content: flex-end; gap: 6px; }
.holds { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.holds .hold-total { font-variant-numeric: tabular-nums; }
.ghold { display: inline-flex; align-items: baseline; gap: 4px;
  padding: 0 7px; border-radius: 4px; font-variant-numeric: tabular-nums; line-height: 18px; }
.ghold .g { font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }
.ghold .n { font-size: 12px; font-weight: 650; }
.ghold .s-dir { font-size: 10px; margin-left: 1px; font-weight: 700; line-height: 1; }
.ghold .s-dir.up { color: var(--green); }
.ghold .s-dir.dn { color: var(--red); }
.ghold.g-S { background: rgba(var(--green-rgb), 0.16); color: var(--green); }
.ghold.g-A { background: rgba(229, 185, 76, 0.16); color: var(--gold); }
.ghold.g-B { background: rgba(132, 142, 156, 0.18); color: #c5ccd6; }
.ghold.g-C { background: rgba(132, 142, 156, 0.1); color: var(--muted); }
.ghold.g-S.s-warm {
  background: rgba(70, 220, 120, 0.26); color: #72e09e;
  box-shadow: inset 0 0 0 1px rgba(93, 255, 154, 0.32);
}
.ghold.g-S.s-hot {
  background: rgba(70, 220, 120, 0.4); color: #9dffc2;
  box-shadow: inset 0 0 0 1px rgba(93, 255, 154, 0.5);
}
.pnl { font-variant-numeric: tabular-nums; font-weight: 600; }
.pnl-inline { display: inline-flex; align-items: baseline; gap: 8px; justify-content: flex-end; white-space: nowrap; }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
  line-height: 1; background: hsl(var(--h, 200) 28% 28%); color: #fff; flex-shrink: 0; }
.tok, .wal { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tok-name { font-weight: 650; }
.sub { font-size: 11px; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 6px; line-height: 15px; }
.sub .chip { flex-shrink: 0; }
.tag { font-size: 11px; color: var(--gold); margin-top: 1px; }
.note { font-size: 12px; color: var(--gold); font-weight: 600; }
div.note { margin-top: 1px; }
td.col-memo { min-width: 16em; width: 18em; max-width: 26em; }
input.memo {
  width: 100%; box-sizing: border-box; background: transparent;
  border: 1px solid transparent; color: var(--gold); font-size: 12px;
  font-family: inherit; font-weight: 600; padding: 3px 6px; border-radius: 4px; }
.wal input.memo, .last-line input.memo {
  width: 14em; max-width: 100%; display: block; margin-top: 2px; padding: 1px 4px; }
.last-line input.memo { display: inline-block; width: 18em; min-width: 18em; margin-top: 0; vertical-align: middle; }
input.memo:hover, input.memo:focus {
  border-color: var(--line); background: var(--card); outline: none; color: var(--fg); }
input.memo::placeholder { color: var(--muted); font-weight: 400; }
input.memo.busy { opacity: 0.55; }
input.tok-memo {
  width: 20em; max-width: 100%; box-sizing: border-box; background: transparent;
  border: 1px solid transparent; color: var(--gold); font-size: 12px;
  font-family: inherit; font-weight: 600; padding: 1px 4px; border-radius: 4px;
  display: inline-block; margin: 0; vertical-align: middle; height: 18px; line-height: 18px; }
h1 input.tok-memo {
  display: inline-block; width: 20em; margin: 0 0 0 10px; vertical-align: middle;
  font-size: 13px; }
.alert-dropped input.tok-memo {
  display: inline-block; width: 20em; margin: 0; vertical-align: middle;
}
input.tok-memo:hover, input.tok-memo:focus {
  border-color: var(--line); background: var(--card); outline: none; color: var(--fg); }
input.tok-memo::placeholder { color: var(--muted); font-weight: 400; }
input.tok-memo.busy { opacity: 0.55; }
.chip { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #2a2a31; color: var(--muted); }
.chip.seed { color: var(--gold); background: rgba(229, 185, 76, 0.12); }
.chip.sold { color: var(--muted); background: rgba(132, 142, 156, 0.14); }
.chip.follow { color: var(--green); background: rgba(var(--green-rgb), 0.16); }
.chip.dump { color: var(--red); background: rgba(246, 70, 93, 0.14); }
table.inner tr.sold td { color: var(--muted); }
table.inner tr.sold .mono { color: var(--muted); }
table.inner tr.sold .tag { color: var(--muted); }
table.inner tr.sold .pnl.up,
table.inner tr.sold .up { color: var(--green); }
table.inner tr.sold .pnl.dn,
table.inner tr.sold .dn { color: var(--red); }
.col-chev { width: 28px; padding-left: 8px; padding-right: 0; }
table.flow {
  table-layout: fixed;
}
table.flow col.col-chev { width: 32px; }
table.flow col.col-star { width: 64px; }
table.flow col.col-time { width: 7.8em; }
table.flow col.col-tok { width: 32em; }
table.flow col.col-last { width: 100%; }
table.flow col.col-flow { width: 7.8em; }
table.flow col.col-holds { width: 15.5em; }
table.flow col.col-rest { width: 7.4em; }
table.flow th, table.flow td { padding-left: 8px; padding-right: 8px; }
table.flow .col-time { white-space: nowrap; }
table.flow th.col-tok,
table.flow td.col-tok { width: 32em; max-width: 32em; overflow: hidden; }
table.flow th.col-last,
table.flow td.col-last { width: auto; max-width: none; white-space: nowrap; overflow: hidden; }
table.flow th.col-holds,
table.flow td.col-holds { width: 15.5em; min-width: 0; }
table.flow th.col-flow { white-space: normal; line-height: 1.3; }
table.flow .tok { min-width: 0; }
table.flow .tok > div {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0; overflow: hidden; gap: 0;
}
table.flow .tok-id {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0;
  overflow: hidden; line-height: 18px; height: 18px;
}
table.flow .tok-id .tok-name {
  display: inline-block; flex-shrink: 0; max-width: none;
  overflow: visible; text-overflow: clip; white-space: nowrap;
}
table.flow .tok-id .tok-memo {
  flex: 1 1 auto; width: auto; min-width: 0; max-width: 20em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
table.flow .sub { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
table.flow .sub .chip { flex-shrink: 1; }
table.flow .last-act { width: 100%; min-width: 0; }
table.flow .last-line { flex-wrap: nowrap; gap: 6px; overflow: hidden; width: 100%; min-width: 0; }
table.flow .last-line .grade,
table.flow .last-line .col-kind,
table.flow .last-line .num,
table.flow .last-line .last-tag { flex-shrink: 0; }
table.flow .last-line input.memo {
  flex: 1 1 auto; width: auto; min-width: 10em; max-width: none;
}
table.flow td.col-holds .holds { flex-wrap: nowrap; }
#early-watch table.flow th.col-flow,
#early-watch table.flow td.col-flow {
  width: 7.4em; min-width: 0; padding-left: 10px; padding-right: 10px;
}
.col-star { width: 64px; padding-left: 0; padding-right: 4px; text-align: center; }
table.sheet { table-layout: fixed; }
table.sheet col.col-chev { width: 36px; }
table.sheet col.col-star { width: 68px; }
table.sheet col.col-tok { width: 30em; }
table.sheet th.col-tok, table.sheet td.col-tok { text-align: left; white-space: nowrap; }
table.sheet th.col-age, table.sheet td.col-age,
table.sheet th.col-mcap, table.sheet td.col-mcap,
table.sheet th.col-usd, table.sheet td.col-usd {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
table.sheet th.col-n, table.sheet td.col-n {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
table.sheet .col-n .n-wrap {
  display: inline-block; text-align: left; width: 4.2em;
  font-size: 13px; font-variant-numeric: tabular-nums;
}
table.sheet col.col-grade { width: 210px; }
table.sheet th.col-grade, table.sheet td.col-grade {
  width: 210px; text-align: right; white-space: nowrap;
}
table.sheet td.col-grade .holds { width: 100%; justify-content: flex-end; gap: 6px; }
td.col-grade .ghold,
td.col-holds .ghold {
  padding: 2px 8px; gap: 4px; border-radius: 4px;
}
td.col-grade .ghold .g,
td.col-holds .ghold .g { font-size: 12px; }
td.col-grade .ghold .n,
td.col-holds .ghold .n { font-size: 14px; font-weight: 700; }
td.col-last .grade.g-S {
  background: rgba(70, 228, 125, 0.55); color: #b8ffd4;
}
table.sheet .col-tok .tok-name {
  display: inline-block; max-width: 9em; overflow: hidden;
  text-overflow: ellipsis; vertical-align: bottom; flex-shrink: 0;
}
details.expand { display: block; }
details.expand summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: center; }
details.expand summary::-webkit-details-marker { display: none; }
.chev { display: inline-block; width: 0; height: 0;
  border-style: solid; border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent var(--muted); transition: transform .15s; }
tr.token-row { cursor: pointer; }
tr.s-hot-row > td {
  box-shadow: inset 0 1px 0 rgba(var(--green-rgb), 0.32), inset 0 -1px 0 rgba(var(--green-rgb), 0.32);
}
tr.s-hot-row > td:first-child {
  box-shadow: inset 1px 0 0 rgba(var(--green-rgb), 0.32), inset 0 1px 0 rgba(var(--green-rgb), 0.32), inset 0 -1px 0 rgba(var(--green-rgb), 0.32);
}
tr.s-hot-row > td:last-child {
  box-shadow: inset -1px 0 0 rgba(var(--green-rgb), 0.32), inset 0 1px 0 rgba(var(--green-rgb), 0.32), inset 0 -1px 0 rgba(var(--green-rgb), 0.32);
}
tr.radar-follow > td {
  box-shadow: inset 0 1px 0 rgba(var(--green-rgb), 0.28), inset 0 -1px 0 rgba(var(--green-rgb), 0.28);
}
tr.radar-follow > td:first-child {
  box-shadow: inset 1px 0 0 rgba(var(--green-rgb), 0.28), inset 0 1px 0 rgba(var(--green-rgb), 0.28), inset 0 -1px 0 rgba(var(--green-rgb), 0.28);
}
tr.radar-follow > td:last-child {
  box-shadow: inset -1px 0 0 rgba(var(--green-rgb), 0.28), inset 0 1px 0 rgba(var(--green-rgb), 0.28), inset 0 -1px 0 rgba(var(--green-rgb), 0.28);
}
table.alerts-sheet tr.token-row.alert-new > td {
  box-shadow: inset 0 1px 0 var(--green), inset 0 -1px 0 var(--green);
}
table.alerts-sheet tr.token-row.alert-new > td:first-child {
  box-shadow: inset 1px 0 0 var(--green), inset 0 1px 0 var(--green), inset 0 -1px 0 var(--green);
}
table.alerts-sheet tr.token-row.alert-new > td:last-child {
  box-shadow: inset -1px 0 0 var(--green), inset 0 1px 0 var(--green), inset 0 -1px 0 var(--green);
}
table.alerts-sheet tr.token-row.alert-new.open + tr.detail > td {
  box-shadow: inset 1px 0 0 var(--green), inset -1px 0 0 var(--green), inset 0 -1px 0 var(--green);
}
tr.token-row.open { background: var(--card); }
tr.token-row.open .chev { transform: rotate(90deg); border-left-color: var(--fg); }
tr.detail { display: none; }
tr.token-row.open + tr.detail,
tr.token-row:has(details[open]) + tr.detail { display: table-row; }
tr.detail > td { padding: 0 8px 10px 36px; background: var(--card); border-bottom: 1px solid var(--line); overflow-x: auto; }
tr.detail:hover { background: transparent; }
table.inner { margin: 0; background: transparent; }
table.inner th, table.inner td { font-size: 12px; padding: 7px 8px; border-bottom-color: #22222a; }
table.inner thead th { position: static; background: transparent; }
table.inner tbody tr:hover { background: var(--hover); }
.last3 { display: flex; flex-direction: column; gap: 2px; min-width: 210px; }
.last3 .t3 { display: flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1.35; }
.last3 .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.win-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%;
  margin: 4px 0 6px; border: 1px solid #3a3a46; background: #121218;
  font-size: 12px; font-variant-numeric: tabular-nums; }
.win-flow .win { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; min-width: 0; padding: 5px 6px;
  white-space: nowrap; overflow: hidden; border-right: 1px solid #3a3a46; }
.win-flow .win:last-child { border-right: 0; }
.win-flow .wsides { display: flex; flex-direction: column; align-items: center;
  gap: 0; line-height: 1.35; }
.win-flow .wline { white-space: nowrap; }
.win-flow .wl { color: var(--muted); font-weight: 650; }
.win-flow .wn { font-weight: 500; opacity: 0.72; }
.win-flow .wg { display: inline; margin-left: 4px; font-weight: 650; }
.win-flow .wg.s { color: var(--green); }
.win-flow .wg.a { color: var(--gold); }
.score-break { margin: 8px 4px 6px; font-size: 12px; color: var(--muted); }
.score-break strong { color: var(--fg); }
table.sheet:not(.alerts-sheet) td.col-tok > .tok {
  align-items: center; gap: 8px;
}
table.sheet:not(.alerts-sheet) .tok-id {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
  min-width: 0; flex: 1;
}
table.sheet:not(.alerts-sheet) .tok-id .tok-memo {
  width: 20em; flex-shrink: 1; min-width: 8em; margin: 0; display: inline-block;
}
table.sheet:not(.alerts-sheet) .tok-id .chip.seed { flex-shrink: 0; }
.fav-at {
  flex-shrink: 0; font-size: 12px; color: var(--gold); font-weight: 550;
  white-space: nowrap;
}
table.alerts-sheet col.col-tok { width: 32em; }
table.alerts-sheet th.col-tok,
table.alerts-sheet td.col-tok { white-space: nowrap; }
table.alerts-sheet td.col-tok > .tok {
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
}
table.alerts-sheet .tok-main {
  flex: 1; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 0;
}
table.alerts-sheet .tok-id {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
  line-height: 18px; height: 18px;
}
table.alerts-sheet .tok-id .tok-name { max-width: none; }
table.alerts-sheet .tok-id .tok-memo {
  width: 20em; flex-shrink: 1; min-width: 8em; margin: 0; display: inline-block;
}
table.alerts-sheet .tok-id .chip.seed { flex-shrink: 0; }
table.alerts-sheet .col-tok .tok-name { max-width: 9em; }
table.alerts-sheet .alert-why {
  margin: 0; font-size: 11px; line-height: 15px; color: var(--muted);
  max-width: 26em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  height: 15px;
}
table.alerts-sheet .alert-why strong { color: var(--fg); font-weight: 650; }
table.alerts-sheet .alert-why .alert-hit,
table.alerts-sheet .alert-why .alert-hit strong {
  color: var(--green); font-weight: 700;
}
table.alerts-sheet .alert-chip {
  display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px;
  font-size: 11px; font-weight: 650; line-height: 1.6;
  color: var(--green); background: rgba(var(--green-rgb), 0.12);
}
.alert-dropped {
  margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card);
}
.alert-dropped p { margin: 0 0 4px; }
.alert-dropped ul { margin: 0; padding: 0; list-style: none; }
.alert-dropped li {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline;
  font-size: 13px; color: var(--muted); padding: 5px 0;
  border-top: 1px solid var(--line);
}
.alert-dropped li:first-child { border-top: 0; }
.alert-dropped .drop-why { color: var(--red); font-weight: 650; }
#alerts-live > .muted { margin: 0 0 12px; font-size: 12px; }
table.alerts-sheet col.col-age { width: 7.2em; }
table.alerts-sheet td.col-age.fresh .age { color: var(--green); }
table.alerts-sheet td.col-age.warn .age { color: var(--gold); }
body.page-heat { padding-bottom: 12px; }
body.page-heat .pagehead-title,
body.page-flow .pagehead-title {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
body.page-heat .pagehead-title h1,
body.page-flow .pagehead-title h1 { white-space: nowrap; }
.heat-win { display: inline-flex; align-items: center; gap: 6px; }
.heat-win a.hold-filter {
  appearance: none; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); box-sizing: border-box; height: 28px; min-width: 44px;
  padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.heat-win a.hold-filter:hover { color: var(--fg); border-color: var(--fg); }
.heat-win a.hold-filter.on {
  border-color: var(--green); color: var(--green);
  background: rgba(var(--green-rgb), 0.12);
}
.heat-board {
  position: relative; width: 100%; min-height: 420px;
  border-radius: 10px; overflow: hidden; background: #0a0a0d;
}
.heat-empty {
  margin: 0; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; padding: 24px;
}
.heat-cell {
  position: absolute; overflow: hidden; contain: paint; border-radius: 5px;
  color: var(--fg); padding: 7px 8px 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.heat-cell:hover { filter: brightness(1.1); }
.heat-hit { position: absolute; inset: 0; z-index: 1; }
.heat-body {
  position: relative; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  min-width: 0; min-height: 0; overflow: hidden; box-sizing: border-box;
}
.heat-body .star { pointer-events: auto; }
.heat-top { display: flex; align-items: center; gap: 3px; min-width: 0; max-width: 100%; flex-shrink: 0; }
.heat-cell a.star { width: 18px; height: 18px; font-size: 13px; opacity: 0.55; color: #fff;
  flex-shrink: 0; }
.heat-cell a.star:hover, .heat-cell a.star.on { color: var(--gold); opacity: 1; }
.heat-cell .sym {
  flex: 1; min-width: 0; font-weight: 750; font-size: 13px; line-height: 1.15;
  white-space: nowrap; overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.heat-cell .hold {
  font-size: 12px; font-weight: 650; color: rgba(241,241,243,.72);
  line-height: 1.2;
}
.heat-meta {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px;
  min-width: 0; max-width: 100%; flex-shrink: 0; line-height: 1.2;
}
.heat-cell .fav-at {
  font-size: 12px; color: rgba(229, 185, 76, .78); line-height: 1.2;
}
.heat-sides {
  display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 0;
  min-width: 0; max-width: 100%;
  font-size: 12px; line-height: 1.25;
  font-variant-numeric: tabular-nums; font-weight: 600; flex-shrink: 0;
}
.heat-sides > span { white-space: nowrap; max-width: 100%; min-width: 0; }
.heat-foot {
  margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px;
  min-width: 0; max-width: 100%;
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.heat-cell .amt { font-size: 12px; color: rgba(241,241,243,.78); }
.heat-cell .net { font-size: 12px; font-weight: 700; }
.heat-cell .mcap { font-weight: 650; color: rgba(241,241,243,.82); }
.heat-cell.lg { padding: 10px 12px 9px; }
.heat-cell.lg .sym { font-size: 20px; font-weight: 800; }
.heat-cell.lg .heat-sides { font-size: 13px; column-gap: 10px; }
.heat-cell.lg .amt, .heat-cell.lg .net { font-size: 13px; }
.heat-cell.md .sym { font-size: 15px; }
.heat-cell.sm .sym { font-size: 13px; }
.heat-cell.sm .heat-sides { font-size: 12px; }
.heat-cell.sm .heat-body { gap: 2px; }
.heat-cell.xs { padding: 5px 6px; }
.heat-cell.xs .heat-body { gap: 2px; }
.heat-cell.xs .heat-sides { font-size: 12px; line-height: 1.3; }
.heat-cell.xs .sym { font-size: 13px; }
.heat-cell.pack .heat-foot {
  margin-top: 0;
}
.heat-cell.fav { box-shadow: inset 0 0 0 2px var(--gold); }
.heat-cell.stance-up { box-shadow: inset 0 0 0 2px var(--green); }
.heat-cell.stance-dn { box-shadow: inset 0 0 0 2px var(--red); }
.heat-cell.fav.stance-up { box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 4px var(--green); }
.heat-cell.fav.stance-dn { box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 4px var(--red); }
.heat-board.searching .heat-cell {
  opacity: 0.42;
  filter: grayscale(0.45) brightness(0.78);
}
.heat-board.searching .heat-cell.hit {
  opacity: 1; z-index: 8; filter: none;
  outline: 3px solid var(--gold); outline-offset: -3px;
  animation: heat-hit-pulse 2s ease-in-out infinite;
}
@keyframes heat-hit-pulse {
  0%, 100% { outline-color: rgba(229, 185, 76, 0.28); }
  50% { outline-color: var(--gold); }
}
.tape-lead { margin: -6px 0 10px; font-size: 12px; }
.tape-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 0 0 12px; font-size: 12px; color: var(--muted);
}
.tape-stat { margin-left: auto; font-variant-numeric: tabular-nums; }
.tape-alerts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tape-alerts:empty { display: none; }
.tape-card {
  display: inline-flex; align-items: center; gap: 4px;
  box-sizing: border-box; height: 28px; max-width: 132px;
  padding: 0 8px; border-radius: 6px; background: var(--card);
  border: 1px solid var(--line); font-size: 12px; color: var(--fg);
  text-decoration: none; position: relative; overflow: visible;
}
.tape-card.buy, .tape-card.cluster { border-color: var(--green); background: rgba(136,214,147,0.08); }
.tape-card.mix, .tape-card.crowd { border-color: var(--gold); background: rgba(229,185,76,0.08); }
.tape-card.sell, .tape-card.dump { border-color: var(--red); background: rgba(246,70,93,0.08); }
.tape-card .sym {
  font-size: 13px; font-weight: 650; min-width: 0; flex: 1 1 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tape-plus {
  font-weight: 700; margin-left: 0; font-variant-numeric: tabular-nums;
  font-size: 12px; flex-shrink: 0;
}
.tape-plus.up { color: var(--green); }
.tape-plus.dn { color: var(--red); }
.tape-card .tape-plus { font-size: 12px; }
table.tape .tape-plus { margin-left: 6px; font-size: 13px; }
.tape-card .tip {
  display: none; position: absolute; left: 0; top: calc(100% + 6px);
  z-index: 50; min-width: 180px; max-width: 320px; padding: 8px 10px;
  border-radius: 6px; background: #1c1c24; border: 1px solid var(--line);
  color: var(--fg); font-size: 12px; font-weight: 500; line-height: 1.45;
  white-space: normal; box-shadow: 0 6px 16px rgba(0,0,0,.4); pointer-events: none;
}
.tape-card:hover .tip { display: block; }
table.tape td.tok { white-space: nowrap; }
table.tape { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tape th, table.tape td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
table.tape th { color: var(--muted); font-weight: 500; font-size: 12px; }
table.tape .num { text-align: right; font-variant-numeric: tabular-nums; }
table.tape .mono { font-variant-numeric: tabular-nums; color: var(--muted); width: 6.5em; }
table.tape th.side, table.tape td.side { width: 6.4em; }
table.tape td.side { font-weight: 700; white-space: nowrap; }
table.tape td.side.up, table.tape td.note.up { color: var(--green); }
table.tape td.side.dn, table.tape td.note.dn { color: var(--red); font-weight: 650; }
table.tape td.side.dim, table.tape td.note.dim { color: var(--muted); font-weight: 500; }
table.tape tr.dump { box-shadow: inset 3px 0 0 var(--red); }
table.tape tr.cluster { box-shadow: inset 3px 0 0 var(--green); }
table.tape tr.crowd { box-shadow: inset 3px 0 0 var(--gold); }
table.tape tr.dump.cluster, table.tape tr.dump.crowd { box-shadow: inset 3px 0 0 var(--red); }
table.tape .wal { margin-left: 4px; }
table.tape td.note { color: var(--muted); }
.tape-empty { margin: 24px 0; text-align: center; }
code { background: var(--card); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 860px) {
  body { padding: 0 12px calc(72px + env(safe-area-inset-bottom)); }
  header {
    flex-wrap: wrap; align-items: center; gap: 8px 10px;
    margin: 0 -12px 12px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  }
  .brand a { font-size: 16px; letter-spacing: 0.06em; gap: 8px; }
  nav {
    flex: 1 1 100%; order: 3;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap; gap: 0; scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a { flex-shrink: 0; padding: 8px 11px; font-size: 13px; }
  .meta { display: none; }
  .pagehead { gap: 8px 10px; }
  .pagehead-tools {
    margin-left: 0; width: 100%; flex-wrap: wrap;
  }
  .pagehead input.search { width: 100%; min-width: 0; font-size: 16px; }
  .pagehead .token-actions { margin-left: 0; width: 100%; }
  .token-add { width: 100%; }
  .token-add input { flex: 1; min-width: 0; font-size: 16px; }
  .hold-filters, .heat-win, .alert-filters { flex-wrap: wrap; }
  .flow-cols { grid-template-columns: 1fr; gap: 18px; }
  .flow-svg { height: 200px; }
  .alert-filters select { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats strong { font-size: 18px; }
  thead th { position: static; }
  table.sheet, table.flow, table.tape, table.inner,
  table.alerts-sheet {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  table.flow .tok-id .tok-memo,
  table.sheet:not(.alerts-sheet) .tok-id .tok-memo {
    width: auto; max-width: 8em; min-width: 0;
  }
  input.tok-memo, input.memo, .last-line input.memo {
    font-size: 16px; max-width: 100%;
  }
  .last-line input.memo { width: 10em; min-width: 7em; }
  .tape-lead { display: none; }
  .tape-stat { margin-left: 0; flex-basis: 100%; }
  body.page-heat .pagehead-title h1 { white-space: normal; }
  .heat-board { min-height: 280px; }
  .pagehead-title { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  h1 { font-size: 18px; }
  .tape-card { max-width: none; }
}
