/* mochi terminal — one design system.
   petmochi.app's cream and ink, its pixel font only for the logo and page titles, Inter for everything else.
   Notched pixel panels carry the brand; inside them only hairlines. One chip style. Color means something or is absent. */

:root {
  color-scheme: light;
  --bg: #F6F3EE; --card: #FFFDFA; --soft: #EFEBE4; --sunk: #F3EFE9; --hover: #F2EEE7;
  --ink: #1E1B2E; --ink-2: #48445A; --muted: #6A6577; --faint: #9A95A6;
  --line: #E6E0D6; --edge: #D2CBBF;
  --mint: #8EE3C8; --accent: #1F7A5F; --focus: #1F7A5F;
  --good-bg: #D8F5EA; --good-fg: #155B45;
  --bad-bg: #FFE0E5; --bad-fg: #A1213A;
  --new-bg: #E9E2FF; --new-fg: #4B3696;
  --mid-bg: #FFF1C7; --mid-fg: #7A5600;
  --neutral-bg: #EEE9E1; --neutral-fg: #48445A;
  --up: #13875e; --down: #c8334d;
  /* charts: emphasis (accent) against a recessive gray — validated for color-blind readers, light surface */
  --viz-accent: #13875e; --viz-muted: #cfc9be; --viz-dot: #a9a296; --viz-surface: #FFFDFA; --viz-grid: #ECE7DE; --viz-axis: #6A6577;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  --px: -2px 0 0 0 var(--ink), 2px 0 0 0 var(--ink), 0 -2px 0 0 var(--ink), 0 2px 0 0 var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #16141F; --card: #1E1B2A; --soft: #272434; --sunk: #1A1825; --hover: #24212F;
    --ink: #EEEAE3; --ink-2: #CBC6D6; --muted: #9C97AA; --faint: #6E6980;
    --line: #2D2A3B; --edge: #3D3950;
    --mint: #8EE3C8; --accent: #8EE3C8; --focus: #8EE3C8;
    --good-bg: #173C31; --good-fg: #9BEBD0;
    --bad-bg: #44202A; --bad-fg: #FF9FB0;
    --new-bg: #2E2650; --new-fg: #CDBEFF;
    --mid-bg: #3A3118; --mid-fg: #F5D27A;
    --neutral-bg: #2A2737; --neutral-fg: #CBC6D6;
    --up: #2aa77a; --down: #e5566b;
    --viz-accent: #2aa77a; --viz-muted: #57536b; --viz-dot: #6b6680; --viz-surface: #1E1B2A; --viz-grid: #2A2737; --viz-axis: #9C97AA;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16141F; --card: #1E1B2A; --soft: #272434; --sunk: #1A1825; --hover: #24212F;
  --ink: #EEEAE3; --ink-2: #CBC6D6; --muted: #9C97AA; --faint: #6E6980;
  --line: #2D2A3B; --edge: #3D3950;
  --mint: #8EE3C8; --accent: #8EE3C8; --focus: #8EE3C8;
  --good-bg: #173C31; --good-fg: #9BEBD0; --bad-bg: #44202A; --bad-fg: #FF9FB0;
  --new-bg: #2E2650; --new-fg: #CDBEFF; --mid-bg: #3A3118; --mid-fg: #F5D27A;
  --neutral-bg: #2A2737; --neutral-fg: #CBC6D6; --up: #2aa77a; --down: #e5566b;
  --viz-accent: #2aa77a; --viz-muted: #57536b; --viz-dot: #6b6680; --viz-surface: #1E1B2A; --viz-grid: #2A2737; --viz-axis: #9C97AA;
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 13px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--mint); color: #1E1B2E; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .ink2 { color: var(--ink-2); }
.up { color: var(--up); } .down { color: var(--down); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clamp-1, .clamp-2, .clamp-3, .clamp-4 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; } .clamp-2 { -webkit-line-clamp: 2; } .clamp-3 { -webkit-line-clamp: 3; } .clamp-4 { -webkit-line-clamp: 4; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.link { color: var(--accent); cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- header */
.app-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.app-header .in { height: 56px; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 16px var(--pixel); white-space: nowrap; }
.logo canvas { width: 24px; height: 24px; image-rendering: pixelated; }
.nav { display: flex; gap: 2px; align-self: stretch; }
.nav a { display: inline-flex; align-items: center; padding: 0 12px; font-weight: 500; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.search { flex: 1; max-width: 420px; position: relative; }
.search input { width: 100%; height: 34px; padding: 0 12px 0 32px; background: var(--card); border: 1px solid var(--edge); }
.search svg { position: absolute; left: 10px; top: 10px; color: var(--faint); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 0 8px; cursor: default; }
.live i { width: 8px; height: 8px; background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 20%, transparent); }
.live.down i { background: var(--down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 20%, transparent); }

/* ---------------------------------------------------------------- page */
main { max-width: 1600px; margin: 0 auto; padding: 22px 24px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { font: 18px/1.2 var(--pixel); letter-spacing: .01em; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 760px; }
.page-head p b { color: var(--ink); font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 12px; cursor: pointer; background: none; border: 0; padding: 0; }
.back:hover { color: var(--ink); }

/* ---------------------------------------------------------------- controls */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.field { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.field b { color: var(--ink); font-weight: 600; }
.input, .select { height: 32px; padding: 0 10px; background: var(--card); border: 1px solid var(--edge); border-radius: 0; color: var(--ink); font-size: 13px; }
.input:hover, .select:hover { border-color: var(--faint); }
.input.sm { width: 96px; }
.input.search-in { width: 220px; }
.select { padding-right: 28px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px; background-repeat: no-repeat; }
.btn { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--edge); background: var(--card); cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--hover); border-color: var(--faint); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-ghost { background: none; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--hover); color: var(--ink); border-color: transparent; }
.btn .count { background: var(--ink); color: var(--bg); font-size: 11px; padding: 0 5px; min-width: 18px; text-align: center; }
.icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"], .icon-btn[aria-current="page"] { color: var(--ink); background: var(--hover); }
.seg { display: inline-flex; border: 1px solid var(--edge); background: var(--card); }
.seg button { height: 30px; padding: 0 11px; border: 0; background: none; color: var(--muted); cursor: pointer; font-weight: 500; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { color: var(--ink); background: var(--hover); }
.seg button[aria-pressed="true"] { background: var(--mint); color: #1E1B2E; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--ink-2); font-size: 13px; white-space: nowrap; user-select: none; }
.check input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.range { display: inline-flex; align-items: center; gap: 8px; }
.range input[type=range] { width: 120px; accent-color: var(--accent); }
.stepper { display: inline-flex; border: 1px solid var(--edge); background: var(--card); height: 32px; }
.stepper button { width: 28px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.stepper button:hover { background: var(--hover); color: var(--ink); }
.stepper span { min-width: 26px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* pop-overs (filters, how it works) */
.pop-wrap { position: relative; }
.pop { position: absolute; top: calc(100% + 8px); z-index: 60; background: var(--card); box-shadow: var(--px), 0 12px 32px rgb(0 0 0 / .12); padding: 14px 16px; }
.pop.right { right: 0; } .pop.left { left: 0; }

/* ---------------------------------------------------------------- panels, chips, tiles, tables */
.panel { background: var(--card); box-shadow: var(--px); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); min-height: 46px; flex-wrap: wrap; }
.panel-head h2 { font-size: 14px; font-weight: 600; }
.panel-head .sub { color: var(--muted); font-size: 12px; }
.panel-body { padding: 14px; }
.panel-foot { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 6px; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; letter-spacing: .01em; }
.chip.good { background: var(--good-bg); color: var(--good-fg); }
.chip.bad { background: var(--bad-bg); color: var(--bad-fg); }
.chip.new { background: var(--new-bg); color: var(--new-fg); }
.chip.mid { background: var(--mid-bg); color: var(--mid-fg); }
.chip.neutral { background: var(--neutral-bg); color: var(--neutral-fg); }
.chip[data-tip] { cursor: help; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.tile { background: var(--card); padding: 12px 14px; min-width: 0; }
.tile .k { color: var(--muted); font-size: 12px; }
.tile .v { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .s { color: var(--muted); font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--card); z-index: 1; }
.tbl th.sort { cursor: pointer; user-select: none; }
.tbl th.sort:hover { color: var(--ink); }
.tbl th.sorted::after { content: " ↓"; } .tbl th.sorted.asc::after { content: " ↑"; }
.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--hover); }
.tbl tr.dim td { color: var(--faint); }
.tbl-wrap { overflow: auto; }
.coin-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.coin-cell .t { font-weight: 600; }
.coin-cell .n { color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

.pic { width: 40px; height: 40px; object-fit: cover; background: var(--soft); flex: none; }
.pic.sm { width: 26px; height: 26px; } .pic.lg { width: 64px; height: 64px; }
.pic.x { visibility: hidden; }
.avatar { width: 36px; height: 36px; object-fit: cover; background: var(--soft); flex: none; }
.avatar.sm { width: 24px; height: 24px; } .avatar.lg { width: 44px; height: 44px; }

.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty canvas { width: 48px; height: 48px; image-rendering: pixelated; margin: 0 auto 10px; display: block; }
.loading { opacity: .55; transition: opacity .15s; }

/* the tooltip: one floating box for every [data-tip] */
.tip { position: fixed; z-index: 100; max-width: 320px; padding: 8px 10px; background: var(--ink); color: var(--bg); font-size: 12px; line-height: 1.45; pointer-events: none; white-space: pre-line; }

/* ---------------------------------------------------------------- the time slider */
.tr { margin-bottom: 14px; }
.tr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.tr-words { font-size: 13px; color: var(--ink-2); }
.tr-words b { color: var(--ink); font-weight: 600; }
.tr-btns { display: inline-flex; gap: 2px; flex-wrap: wrap; }
.tr-btns button { height: 26px; padding: 0 9px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 500; }
.tr-btns button:hover { background: var(--hover); color: var(--ink); }
.tr-btns button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.tr-track { position: relative; height: 38px; background: var(--sunk); cursor: crosshair; touch-action: none; border: 1px solid var(--line); }
.tr-track canvas { position: absolute; inset: 0; }
.tr-sel { position: absolute; top: -1px; bottom: -1px; background: color-mix(in srgb, var(--mint) 22%, transparent); border: 2px solid var(--ink); cursor: grab; }
.tr-sel:active { cursor: grabbing; }
.tr-h { position: absolute; top: 50%; width: 10px; height: 22px; margin-top: -11px; background: var(--card); border: 2px solid var(--ink); cursor: ew-resize; }
.tr-h.l { left: -6px; } .tr-h.r { right: -6px; }
.tr-axis { position: relative; height: 16px; font-size: 11px; color: var(--faint); margin-top: 3px; }
.tr-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tr-axis span:first-child { transform: none; } .tr-axis span:last-child { transform: translateX(-100%); }

/* ---------------------------------------------------------------- tweets feed */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(500px, 100%), 1fr)); gap: 18px; align-items: start; }
.tcard { min-width: 0; }
.tcard { display: block; background: var(--card); box-shadow: var(--px); cursor: pointer; transition: transform .08s; }
.tcard:hover { transform: translateY(-1px); }
.tcard:hover .tw-text { color: var(--ink); }
.tw { padding: 14px 16px 12px; }
.tw-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tw-who { min-width: 0; flex: 1; line-height: 1.3; }
.tw-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-meta { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-when { color: var(--muted); font-size: 12px; white-space: nowrap; align-self: flex-start; }
.tw-text { margin-top: 9px; font-size: 14px; line-height: 1.5; color: var(--ink-2); white-space: pre-line; word-break: break-word; }
.tw-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.tcard .tw-body .tw-text { min-height: calc(3 * 1.5em); }
.tw-thumb { position: relative; margin-top: 10px; width: 88px; height: 88px; background: var(--soft); flex: none; }
.tw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tw-thumb span { position: absolute; right: 0; bottom: 0; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; padding: 1px 5px; }
.tw-text.none { color: var(--faint); font-style: italic; font-size: 13px; }
.tw-media { display: flex; gap: 6px; margin-top: 10px; }
.tw-media img { height: 72px; max-width: 128px; object-fit: cover; background: var(--soft); }
.crowd { border-top: 1px solid var(--line); padding: 12px 16px 14px; background: var(--sunk); }
.crowd-line { color: var(--muted); font-size: 12px; margin-bottom: 9px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.crowd-line b { color: var(--ink); font-weight: 600; }
.winner { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.winner:hover { border-color: var(--edge); }
.w-link { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 11px; padding: 9px 10px; color: inherit; text-decoration: none; }
.winner > .qb { flex: none; margin-right: 10px; }
.winner .w-main { flex: 1; min-width: 0; }
.winner .w-top { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.winner .w-sym { font-weight: 700; font-size: 14px; white-space: nowrap; }
.winner .w-name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.winner .w-sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.winner .w-sub > * { flex: none; } .winner .w-sub > span:last-child:not([class]) { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.winner .w-cap { text-align: right; white-space: nowrap; }
.winner .w-cap .big { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.winner .w-cap .sm { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.names { margin-top: 9px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.names span b { color: var(--ink-2); font-weight: 600; }
.more-row { display: flex; justify-content: center; margin-top: 20px; }

/* ---------------------------------------------------------------- tweet page */
.tweet-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; align-items: start; }
.tweet-big .tw-text { font-size: 16px; color: var(--ink); -webkit-line-clamp: unset; display: block; }
.tweet-big .tw-media img { height: auto; max-height: 260px; max-width: 100%; flex: 1; min-width: 0; }
.tweet-big .tw-media { flex-wrap: wrap; }
.tweet-big .tw-foot { margin-top: 12px; font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.stack { display: grid; gap: 18px; min-width: 0; }
.chart-box { position: relative; height: 320px; padding: 8px 10px 4px; }
.chart-box.sm { height: 200px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.legend i.ring { background: none; border: 2px solid var(--viz-axis); border-radius: 50%; }
.legend i.dot { border-radius: 50%; }

/* ---------------------------------------------------------------- the board */
main[data-view="coins"], main[data-view="tweets"] { max-width: none; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.col-switch { display: none; margin-bottom: 12px; }
.col .panel-head { align-items: flex-start; }
.col-title { display: flex; align-items: baseline; gap: 8px; }
.col-title .sub { font-variant-numeric: tabular-nums; }
.col-win { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.col-win input[type=range] { width: 92px; accent-color: var(--accent); }
.col-win b { color: var(--ink); font-weight: 600; min-width: 42px; }
.rows { max-height: calc(100vh - 222px); min-height: 240px; overflow-y: auto; }
.reading { color: var(--faint); font-size: 12px; font-weight: 500; }
.win-btn { height: 26px; padding: 0 10px; border: 1px solid var(--edge); background: var(--card); color: var(--ink-2); font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.win-btn:hover, .win-btn[aria-expanded="true"] { border-color: var(--faint); color: var(--ink); }
.win-btn::after { content: ""; display: inline-block; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 7px; }
.win-pop { width: 280px; }
.win-row { display: grid; gap: 10px; font-size: 13px; color: var(--ink-2); }
.win-row input { width: 100%; accent-color: var(--accent); }
.crow { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); min-height: 104px; }
.c-link { flex: 1; min-width: 0; align-self: stretch; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 0 12px; align-items: start; padding: 12px 14px; color: inherit; text-decoration: none; }
.crow > .qb, .crow > .qb-na { position: absolute; right: 14px; bottom: 12px; margin: 0; }
.crow:hover { background: var(--hover); }
.crow.fresh { animation: fresh 1.4s ease-out 1; }
@keyframes fresh { from { background: color-mix(in srgb, var(--mint) 35%, transparent); } }
.crow.fake { opacity: .6; }
.c-pic { position: relative; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.c-pic .pic { width: 72px; height: 72px; box-shadow: 0 0 0 1px var(--line); }
.c-curve { width: 72px; height: 4px; background: var(--soft); display: block; margin-top: 3px; }
.c-curve b { display: block; height: 100%; background: var(--viz-accent); }
.c-ca { margin-top: 4px; font: 10.5px/1.2 var(--mono); color: var(--faint); white-space: nowrap; cursor: copy; }
.c-ca:hover, .c-copy:hover { color: var(--ink); }
.c-ca.copied, .c-copy.copied { color: var(--up); }
.c-main { min-width: 0; display: grid; gap: 5px; align-content: start; }
.c-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.c-sym { font-weight: 700; font-size: 15px; white-space: nowrap; }
.c-name { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.c-sub { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.c-age { font-variant-numeric: tabular-nums; min-width: 24px; color: var(--accent); font-weight: 600; }
.c-ico { display: inline-flex; align-items: center; color: var(--faint); cursor: pointer; flex: none; }
.c-ico:hover { color: var(--ink); }
.c-ico svg { width: 13px; height: 13px; }
.c-stat { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; color: var(--ink-2); flex: none; }
.c-stat svg { color: var(--faint); }
.c-stat.warn, .c-stat.warn svg { color: var(--mid-fg); }
.c-chips { display: flex; gap: 5px; flex-wrap: nowrap; overflow: hidden; }
.c-chip { font-size: 11px; line-height: 18px; padding: 0 6px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-chip.hot { border-color: var(--up); color: var(--up); font-weight: 600; }
.c-chip.bad { border-color: color-mix(in srgb, var(--down) 45%, transparent); color: var(--down); font-weight: 600; }
.who { display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; min-width: 0; color: var(--ink-2); }
.who b { font-weight: 600; color: var(--muted); margin-left: 2px; }
.who:hover { color: var(--ink); text-decoration: underline; }
.ico-x { flex: none; }
.c-right { text-align: right; white-space: nowrap; display: grid; gap: 4px; justify-items: end; }
.c-line { display: flex; gap: 10px; align-items: baseline; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-line b { color: var(--ink); font-weight: 600; }
.c-line.sm b { color: var(--ink-2); }
.c-k { cursor: default; }
.c-line .c-cap { font-weight: 700; font-size: 16px; color: var(--ink); }
/* the dev's rank: CRAZY stands out (ink on mint), the rest use the one chip style */
.chip.rank { font-weight: 700; letter-spacing: .02em; }
.chip.r-crazy { background: var(--ink); color: var(--mint); }
.chip.r-unknown { font-weight: 500; letter-spacing: 0; }
.chip.r-new { font-weight: 500; letter-spacing: 0; }
/* the quick-buy amount: ⚡ [0.1] SOL */
.qa { display: inline-flex; align-items: center; gap: 6px; color: var(--up); font-size: 12px; font-weight: 600; white-space: nowrap; }
.qa input { width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.qa span { color: var(--muted); font-weight: 500; }
.dev-out { color: var(--down); font-weight: 600; }

/* ---------------------------------------------------------------- coin page */
.coin-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; }
.coin-head h1 { font-size: 22px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.coin-head h1 span { font-size: 15px; font-weight: 400; color: var(--muted); }
.addr { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); min-width: 0; max-width: 100%; }
.addr > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.addr button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; display: inline-flex; }
.addr button:hover { color: var(--ink); }
.addr.copied { color: var(--up); }
.ext { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.ext a { height: 26px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--edge); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.ext a:hover { background: var(--hover); color: var(--ink); }
.coin-cap { text-align: right; }
.coin-cap .big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.coin-cap .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.coin-cap .curve { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 8px; font-size: 12px; color: var(--muted); }
.coin-cap .curve .bar { margin: 0; width: 90px; height: 6px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; font-size: 13px; }
.notice.bad { background: var(--bad-bg); color: var(--bad-fg); }
.notice b { font-weight: 600; }
.from-tweet { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px 16px; cursor: pointer; }
.from-tweet:hover { background: var(--hover); }
.from-tweet .tw-text { margin-top: 4px; font-size: 13px; }
.from-tweet .place { text-align: right; font-size: 12px; color: var(--muted); line-height: 1.6; }
.from-tweet .place b { color: var(--ink); font-size: 13px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.candles { height: 420px; }
.trades { height: 420px; overflow-y: auto; }
.trades .tbl td { padding: 5px 10px; }
.trades .tbl tr.devt td { background: color-mix(in srgb, var(--bad-bg) 55%, transparent); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 18px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; }
.verdict-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.verdict-line .chip { height: 22px; font-size: 12px; }

/* ---------------------------------------------------------------- metas */
.mlist .mrow { display: grid; grid-template-columns: minmax(150px, 1.6fr) 150px 70px 150px 120px minmax(120px, 1fr) 90px; gap: 0 16px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mlist .mrow:hover { background: var(--hover); }
.mlist .mrow.head { cursor: default; background: var(--card); position: sticky; top: 56px; z-index: 2; font-size: 11px; font-weight: 600; color: var(--muted); padding-top: 9px; padding-bottom: 9px; }
.mlist .mrow.head:hover { background: var(--card); }
.mword { min-width: 0; }
.mword b { font-size: 14px; font-weight: 700; }
.mword .al { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { width: 150px; height: 28px; display: block; }
.mlist .r { text-align: right; font-variant-numeric: tabular-nums; }
.mlist .hot { display: flex; align-items: center; gap: 8px; }

/* the meta pop-up */
dialog.dlg { width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--px), 0 24px 64px rgb(0 0 0 / .25); }
dialog.dlg::backdrop { background: rgb(22 20 31 / .5); }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 3; }
.dlg-head h2 { font: 20px/1.2 var(--pixel); }
.dlg-head .sub { color: var(--muted); margin-top: 6px; font-size: 12px; }
.dlg-body { padding: 0 0 18px; }
.read { padding: 14px 20px; font-size: 14px; line-height: 1.6; display: flex; gap: 10px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.read .chip { margin-top: 2px; }
.dlg-sec { padding: 14px 20px 0; }
.dlg-sec h3 { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dlg-sec h3 .sub { color: var(--muted); font-weight: 400; font-size: 12px; }
.dlg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
.mini { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.mini:hover { background: var(--hover); }
.mini .t { font-weight: 600; white-space: nowrap; }
.mini .n { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.mini .v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini .a { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.twmini { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.twmini:hover { background: var(--hover); }
.twmini .tw-text { margin: 2px 0 0; font-size: 13px; }
.twmini .v { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; line-height: 1.5; }
.twmini .v b { color: var(--ink); }
.table-toggle { font-size: 12px; }

/* ---------------------------------------------------------------- the account: header button, dialogs, wallet */
.head-link { color: var(--muted); font-size: 13px; font-weight: 500; padding: 0 8px; white-space: nowrap; }
.head-link:hover, .head-link[aria-current="page"] { color: var(--ink); }
.acct-btn { font-weight: 700; font-variant-numeric: tabular-nums; }
.acct-pop { width: 290px; display: grid; gap: 8px; }
.acct-who { font: 12px var(--pixel); color: var(--muted); }
.acct-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.acct-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.acct-out { justify-content: flex-start; padding: 0; height: 28px; }
dialog.dlg-sm { width: min(460px, calc(100vw - 32px)); }
.dlg-form { padding: 16px 20px 20px; display: grid; gap: 12px; }
.fld { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.fld .input { height: 38px; font-size: 14px; }
.auth-tabs { width: 100%; } .auth-tabs button { flex: 1; height: 34px; }
.btn-lg { height: 44px; font-size: 14px; font-weight: 600; }
.btn-primary.btn-lg { box-shadow: var(--px); border: 0; }
.btn:disabled { opacity: .55; cursor: wait; }
.form-err { color: var(--down); font-size: 13px; margin: 0; min-height: 0; }
.form-err:empty { display: none; }
.fine { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wallet-intro .panel-body { padding: 22px 24px; display: grid; gap: 14px; max-width: 760px; }
.wallet-intro h2 { font: 16px var(--pixel); }
.wallet-intro p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.wlist { display: grid; }
.wrow { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.wrow:last-child { border-bottom: 0; }
.wrow.child { padding-left: 28px; }
.wname { display: grid; gap: 3px; min-width: 0; }
.wname b { font-size: 14px; }
.wname .addr { margin: 0; }
.tree-l { position: absolute; margin-left: -16px; color: var(--faint); }
.wrow.child .wname { position: relative; }
.wbal { font-weight: 700; font-size: 15px; text-align: right; }
.wact { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topup { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 18px; padding: 16px 20px 20px; align-items: start; }
.topup canvas { width: 232px; height: 232px; image-rendering: pixelated; box-shadow: var(--px); }
.topup-r { display: grid; gap: 10px; min-width: 0; }
.addr-full { word-break: break-all; background: var(--sunk); padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.watch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 6px; }
.watch i { width: 8px; height: 8px; background: var(--faint); animation: pulse 1.4s ease-in-out infinite; }
.watch.got { color: var(--up); font-weight: 600; } .watch.got i { background: var(--up); animation: none; }
@keyframes pulse { 50% { opacity: .3; } }
.secret { word-break: break-all; background: var(--sunk); padding: 12px 14px; font-size: 13px; line-height: 1.5; user-select: all; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 8px; background: var(--card); box-shadow: var(--px), 0 10px 30px rgb(0 0 0 / .14); padding: 10px 8px 10px 14px; border-left: 4px solid var(--faint); font-size: 13px; }
.toast.good { border-left-color: var(--up); } .toast.bad { border-left-color: var(--down); } .toast.wait { border-left-color: var(--mid-fg); }
.toast-body { flex: 1; min-width: 0; line-height: 1.45; }
.toast-body a { color: var(--accent); }
@media (max-width: 760px) {
  .wrow { grid-template-columns: minmax(0, 1fr) auto; } .wact { grid-column: 1 / -1; justify-content: flex-start; }
  .topup { grid-template-columns: 1fr; } .topup canvas { margin: 0 auto; }
  .head-link { display: none; }
}

/* ---------------------------------------------------------------- trading: quick buy, the trade column */
.qb { height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--up); background: var(--card); color: var(--up);
  font-weight: 700; font-size: 12px; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qb:hover, .qb:focus-visible { background: var(--up); color: var(--card); }
.qb:disabled { opacity: .5; cursor: wait; }
.btn-buy { background: var(--up); border-color: var(--up); color: #FFFDFA; }
.btn-buy:hover { filter: brightness(1.08); background: var(--up); color: #FFFDFA; }
.btn-sell { background: var(--down); border-color: var(--down); color: #FFFDFA; }
.btn-sell:hover { filter: brightness(1.08); background: var(--down); color: #FFFDFA; }
.trade-col { align-self: start; position: sticky; top: 72px; }
.tp-head { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tp-side { width: 100%; } .tp-side button { flex: 1; height: 34px; font-size: 14px; }
.tp-side button[data-side="buy"][aria-pressed="true"] { background: var(--up); color: #FFFDFA; }
.tp-side button[data-side="sell"][aria-pressed="true"] { background: var(--down); color: #FFFDFA; }
.tp-body { padding: 14px; display: grid; gap: 12px; }
.amt-in { display: flex; align-items: center; border: 1px solid var(--edge); background: var(--card); }
.amt-in input { border: 0; flex: 1; height: 40px; font-size: 16px; font-weight: 600; min-width: 0; }
.amt-in span { padding: 0 12px; color: var(--muted); font-size: 13px; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-btn { height: 30px; padding: 0 12px; border: 1px solid var(--edge); background: var(--card); cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; }
.pill-btn:hover { background: var(--hover); } .pill-btn.on { background: var(--mint); color: #1E1B2E; border-color: var(--mint); }
.tp-wallets { display: grid; gap: 2px; }
.fld-h { display: flex; justify-content: space-between; gap: 8px; } .fld-h .muted { font-weight: 400; font-size: 12px; }
.tp-short { margin: -4px 0 0; color: var(--ink-2); }
.tp-w { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.tp-more summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.tp-more-in { display: grid; gap: 10px; padding-top: 10px; }
.tp-pos { border-top: 1px solid var(--line); padding: 12px 14px 14px; }
.tp-pos:empty { display: none; }
.tp-pos-h { font-weight: 600; margin-bottom: 8px; }
.bad { color: var(--down); }

/* ---------------------------------------------------------------- how it works (the page) */
main[data-view="how"] { max-width: 1240px; }
.how-page { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: start; }
.how-toc { position: sticky; top: 76px; }
.how-toc-in { display: grid; gap: 2px; border-left: 2px solid var(--line); padding-left: 2px; }
.how-toc-t { font: 11px var(--pixel); color: var(--muted); padding: 0 12px 8px; }
.how-toc a { padding: 5px 12px; color: var(--muted); font-size: 13px; margin-left: -4px; border-left: 2px solid transparent; }
.how-toc a:hover { color: var(--ink); }
.how-toc a.on { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
.how-body { min-width: 0; max-width: 820px; }
.how-hero { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; padding: 8px 0 28px; border-bottom: 1px solid var(--line); }
.how-hero canvas { width: 96px; height: 96px; image-rendering: pixelated; }
.how-hero h1 { font: 26px/1.2 var(--pixel); margin-bottom: 10px; }
.lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.pillar { background: var(--card); box-shadow: var(--px); padding: 12px 14px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.pillar b { color: var(--ink); font-size: 14px; }
.how-sec { padding: 30px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.how-sec h2 { font: 17px/1.3 var(--pixel); margin-bottom: 12px; }
.how-sec p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; }
.how-sec p b, .how-sec li b { color: var(--ink); }
.how-sec .note { font-size: 13px; color: var(--muted); }
.how-hero, .how-sec:first-of-type { scroll-margin-top: 70px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); box-shadow: var(--px); margin-top: 6px; }
.facts div { background: var(--card); padding: 12px 14px; display: grid; gap: 2px; }
.facts b { font-size: 22px; font-weight: 700; }
.facts span { font-size: 12px; color: var(--muted); }
.how-example { margin: 16px 0; max-width: 620px; }
.how-example .tcard { cursor: default; }
.rows-ex { max-width: 620px; }
.callouts { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.defs { margin: 6px 0 14px; display: grid; gap: 0; background: var(--card); box-shadow: var(--px); }
.defs > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: baseline; }
.defs > div:first-child { border-top: 0; }
.defs dt { font-weight: 600; font-size: 14px; }
.defs dd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.plain { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.how-sec details { border-top: 1px solid var(--line); padding: 12px 0; }
.how-sec details:last-child { border-bottom: 1px solid var(--line); }
.how-sec summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.how-sec details p { margin: 8px 0 0; font-size: 14px; }
@media (max-width: 900px) {
  .how-page { grid-template-columns: 1fr; }
  .how-toc { display: none; }
  .pillars, .facts { grid-template-columns: 1fr 1fr; }
  .defs > div { grid-template-columns: 1fr; gap: 4px; }
  .how-hero { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- settings (the admin view) */
.how { width: min(480px, 92vw); }
.how h3 { font: 12px var(--pixel); color: var(--muted); margin-bottom: 8px; }
.how dl { margin: 0; }
.how dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.how dl > div:first-child { border-top: 0; }
.how dt { font-weight: 600; } .how dd { margin: 0; color: var(--ink-2); }
.how .foot { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; }
.settings { max-width: 900px; display: grid; gap: 18px; }
.lever { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 4px 20px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.lever:last-child { border-bottom: 0; }
.lever label { font-size: 13px; }
.lever .unit { color: var(--muted); }
.lever .input { width: 100%; }
.lever details { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.lever summary { cursor: pointer; width: max-content; }
details.panel > summary { list-style: none; cursor: pointer; }
details.panel > summary::-webkit-details-marker { display: none; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1180px) {
  .cols { grid-template-columns: 1fr; }
  .col-switch { display: inline-flex; }
  .cols .col { display: none; }
  .cols .col.on { display: block; }
  .rows { max-height: none; }
  .grid-main, .tweet-page { grid-template-columns: 1fr; }
  .mlist .mrow { grid-template-columns: minmax(120px, 1.4fr) 120px 60px 130px 100px; }
  .mlist .mrow > :nth-child(6), .mlist .mrow > :nth-child(7) { display: none; }
  .spark { width: 120px; }
}
@media (max-width: 760px) {
  .c-link { grid-template-columns: 56px minmax(0, 1fr); padding: 10px 12px; }
  .c-pic, .c-pic .pic, .c-curve { width: 56px; } .c-pic .pic { height: 56px; }
  .c-right { grid-column: 2; justify-items: start; margin-top: 6px; }
  .crow > .qb, .crow > .qb-na { right: 12px; bottom: 10px; }
  .app-header .in { height: auto; padding: 8px 12px; flex-wrap: wrap; gap: 8px 12px; }
  .nav { order: 3; width: 100%; height: 38px; }
  .search { order: 4; max-width: none; flex-basis: 100%; }
  .live span { display: none; }
  main { padding: 14px 12px 48px; }
  .feed { grid-template-columns: minmax(0, 1fr); }
  .tw-thumb { width: 64px; height: 64px; }
  .grid-2, .dlg-grid { grid-template-columns: 1fr; }
  .coin-head { grid-template-columns: auto minmax(0, 1fr); }
  .coin-cap { grid-column: 1 / -1; text-align: left; }
  .coin-cap .curve { justify-content: flex-start; }
  .from-tweet { grid-template-columns: 1fr; }
  .from-tweet .place { text-align: left; }
  .mlist .mrow { grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 12px; padding: 10px 12px; }
  .mlist .mrow > :nth-child(2), .mlist .mrow > :nth-child(3), .mlist .mrow > :nth-child(6), .mlist .mrow > :nth-child(7) { display: none; }
  .mlist .mrow.head { top: 0; }
  .input.search-in { width: 100%; }
  .toolbar .grow { display: none; }
  .tw-media img { height: 56px; }
  .candles, .trades { height: 340px; }
  .lever { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- moving SOL: send, fund, collect */
.send-to { width: 100%; } .send-to button { flex: 1; height: 32px; }
.send-sum { display: grid; gap: 8px; } .send-sum:empty { display: none; }
.send-sum .notice, .dlg-form .notice { margin: 0; }
.notice.mid { background: var(--mid-bg); color: var(--mid-fg); }
.amt-in .pill-btn { height: 30px; margin-right: 5px; }
.addr-check { font-size: 15px; line-height: 1.5; word-break: break-all; padding: 10px 12px; background: var(--soft); border: 1px solid var(--edge); color: var(--ink-2); }
.addr-check b { color: var(--ink); font-weight: 700; background: color-mix(in srgb, var(--mint) 45%, transparent); }
.dlg-form .kv { margin: 0; }

/* ---------------------------------------------------------------- auto-sell: the buy panel's plan, positions, the editor */
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; }
.tp-plan { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; background: var(--soft); border: 1px solid var(--line); }
.tp-plan-w { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-b { display: grid; gap: 8px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.pos-b:last-of-type { border-bottom: 0; }
.pos-top { display: flex; align-items: center; gap: 8px; } .pos-top .num { margin-left: auto; }
.pos-rules { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.pos-next { font-size: 12px; color: var(--ink-2); line-height: 1.5; } .pos-next.bad { color: var(--bad-fg); }
.pos-sell .btn { flex: 1; }
.tp-ev { font-size: 12px; margin-top: 4px; } .tp-ev summary { cursor: pointer; color: var(--muted); }
.tp-ev ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; color: var(--ink-2); }
dialog.dlg.dlg-plan { width: min(640px, calc(100vw - 32px)); }
.plan { gap: 10px; }
.plan-h { font-weight: 600; font-size: 13px; margin-top: 4px; } .plan-h .muted { font-weight: 400; font-size: 12px; }
.plan-steps { display: grid; gap: 6px; }
.plan-step { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.plan-step .k { font-weight: 600; color: var(--ink); min-width: 48px; }
.amt-in.sm { display: inline-flex; } .amt-in.sm input { width: 64px; height: 30px; font-size: 13px; padding: 0 6px; } .amt-in.sm span { padding: 0 8px 0 2px; }
.plan-bar { display: flex; gap: 2px; height: 8px; } .plan-bar i { background: var(--viz-accent); } .plan-bar b { background: var(--soft); border: 1px dashed var(--edge); }
.plan-bar.over i { background: var(--down); }
.plan-bar-k { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; white-space: normal; line-height: 1.6; }
.plan-opt.sub { padding-left: 22px; }
.plan-words { font-size: 13px; padding: 8px 10px; background: var(--soft); margin: 0; }
.as-row { padding: 12px 16px; } .as-row .notice { margin: 10px 0 0; }
.as-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.as-cell { font-size: 12px; color: var(--ink-2); max-width: 280px; }
.nowrap { white-space: nowrap; }
.pos-tbl td { vertical-align: middle; }

/* the coin page's bottom bar on narrow screens: Buy / Sell bring up the trade panel */
.m-trade { display: none; }
@media (max-width: 1180px) {
  .m-trade { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--card); border-top: 2px solid var(--edge); transition: transform .18s ease; }
  .m-trade .btn { flex: 1; height: 44px; font-size: 15px; font-weight: 700; }
  .m-trade.away { transform: translateY(110%); }
  main[data-view="coin"] { padding-bottom: 84px; }
}
#tradePanel { scroll-margin-top: 80px; }
@media (max-width: 760px) { #tradePanel { scroll-margin-top: 150px; } }

.qb-na { flex: none; font-size: 11px; color: var(--faint); border: 1px dashed var(--edge); padding: 4px 7px; white-space: nowrap; cursor: help; }
.winner > .qb-na { margin-right: 10px; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
button.link:hover { text-decoration: underline; }

/* a board column holds still while the pointer is on it; it says so */
.col.held .col-title::after { content: "paused while you point"; margin-left: 8px; font-size: 11px; color: var(--faint); font-weight: 400; }
