/* Peak Bot website v2: black and lime, Inter, a dense trading layout. One stylesheet for every page. */
/* A dense trading layout: one data column and a 320px rail, tables over cards, lime only for action and up, red for down.
   Token art (logos, banners) carries the colour; the chrome stays quiet around it. */
:root {
  --bg: #0A0B0A;
  --raised: #111311;
  --raised-2: #161916;
  --hover: #171A17;
  --inset: #070807;
  --line: #1D211D;
  --line-2: #2B302B;
  --text: #E8EBE7;
  --text-2: #A0A89F;
  --text-3: #6E776D;
  --lime: #8FE04B;
  --lime-hi: #A5EC68;
  --lime-ink: #0A1404;
  --lime-soft: rgba(143, 224, 75, 0.12);
  --lime-line: rgba(143, 224, 75, 0.38);
  --up: #8FE04B;
  --up-soft: rgba(143, 224, 75, 0.12);
  --down: #F6465D;
  --down-soft: rgba(246, 70, 93, 0.13);
  --amber: #F0B90B;
  --stage: #050605;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--raised); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.muted { color: var(--text-3); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--text-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spacer { flex: 1; }

/* the page: header, the page's own content, footer, and on phones the tab bar */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > .page { flex: 1; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- header ---------- */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(10, 11, 10, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr-in { height: 54px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; letter-spacing: 0.08em; flex: none; white-space: nowrap; }
.logo img { width: 44px; height: 44px; flex: none; margin-block: -2px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 10px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--hover); }
.nav a[aria-current="page"] { color: var(--text); background: var(--raised-2); }
.search { position: relative; flex: 1; max-width: 440px; margin-left: auto; }
.search-box { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; background: var(--inset); border: 1px solid var(--line); border-radius: 9px; color: var(--text-3); }
.search-box:focus-within { border-color: var(--line-2); background: #050605; }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 13px; }
.search-box input::placeholder { color: var(--text-3); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box kbd { font: 11px var(--font); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; line-height: 16px; }
.sp { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #121512; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); padding: 6px; z-index: 70; max-height: min(70vh, 520px); overflow-y: auto; }
.sp-h { padding: 6px 8px 4px; font-size: 11px; color: var(--text-3); font-weight: 600; }
.sr-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.sr-row:hover, .sr-row[aria-selected="true"] { background: var(--raised-2); }
.sr-row .tok-txt small { display: flex; gap: 6px; align-items: center; }
.sr-row .k { color: var(--text-3); margin-left: 4px; }
.sr-r { text-align: right; line-height: 1.25; }
.sr-r b { display: block; font-weight: 600; }
.sr-r small { font-size: 11px; color: var(--text-3); }
.sp-empty { padding: 18px 10px; text-align: center; color: var(--text-3); }
.hdr-act { display: flex; gap: 8px; align-items: center; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raised); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--text); }
.btn:hover { background: var(--hover); border-color: #3B423B; }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: var(--lime-hi); border-color: var(--lime-hi); }
.btn-ghost { background: none; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); border-color: transparent; color: var(--text); }
.btn-icon { width: 34px; padding: 0; color: var(--text-2); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-block { width: 100%; height: 40px; font-size: 14px; }
.btn-lg { height: 44px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.only-phone { display: none !important; }
.link { color: var(--lime); font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; }

/* ---------- page shell ---------- */
.page { padding-block: 16px 32px; }
.home-grid, .tok-grid, .buy-grid, .bb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.tok-grid { grid-template-columns: minmax(0, 1fr) 340px; }
.buy-grid { grid-template-columns: minmax(0, 1fr) 360px; }
.buy-grid > .col-side { align-self: stretch; }
.col-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.col-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.head h1 { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -0.015em; }
.head p { margin: 0; color: var(--text-3); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--text-2); font-weight: 500; font-size: 12px; cursor: pointer; white-space: nowrap; }
.chipbtn:hover { color: var(--text); border-color: var(--line-2); }
.chipbtn[aria-pressed="true"] { color: var(--text); border-color: var(--lime-line); background: var(--lime-soft); }
.chipbtn .n { color: var(--text-3); }
select.chipbtn { appearance: none; padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 13px) 13px, calc(100% - 9px) 13px; background-size: 4px 4px; background-repeat: no-repeat; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.upd { display: inline-flex; align-items: center; gap: 7px; color: var(--text-3); font-size: 12px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); display: inline-block; flex: none; }
/* live prices (2026-11-20): the dot breathes while prices come in, and a price that moved flashes green or red */
.live.pulse { animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(143, 224, 75, 0.55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(143, 224, 75, 0); } }
.lv-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); display: inline-block; margin-right: 6px; vertical-align: 1px; animation: livePulse 2s ease-out infinite; }
.tick-up { animation: tickUp 1.4s ease-out; }
.tick-down { animation: tickDown 1.4s ease-out; }
@keyframes tickUp { from { color: var(--up); text-shadow: 0 0 12px rgba(143, 224, 75, 0.45); } }
@keyframes tickDown { from { color: var(--down); text-shadow: 0 0 12px rgba(246, 70, 93, 0.45); } }
.pill { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.pill.up { color: var(--up); background: var(--up-soft); } .pill.down { color: var(--down); background: var(--down-soft); } .pill.flat { color: var(--text-2); background: var(--raised-2); }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--raised-2); border: 1px solid var(--line); font-size: 11px; color: var(--text-2); white-space: nowrap; }
.chip-lime { color: var(--lime); border-color: var(--lime-line); background: var(--lime-soft); }
.tag { font-size: 10px; font-weight: 600; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; line-height: 16px; white-space: nowrap; }

/* ---------- token art ---------- */
.av { width: var(--s); height: var(--s); border-radius: 50%; background: var(--bg-av); display: inline-grid; place-items: center; position: relative; font-weight: 700; font-size: calc(var(--s) * 0.4); color: #EEF1ED; flex: none; }
.av > b { font-weight: 700; }
.av > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg-av); }
.av::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; }
.av > i { position: absolute; right: -2px; bottom: -2px; width: max(9px, calc(var(--s) * 0.34)); height: max(9px, calc(var(--s) * 0.34)); border-radius: 50%; border: 2px solid var(--ring, var(--raised)); z-index: 1; }
.bn { position: relative; overflow: hidden; background: #0C100C; }
.bn > img, .bn > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bn > img.bn-sky { inset: -35%; width: 170%; height: 170%; filter: blur(30px) saturate(1.6) brightness(0.78); }
/* a banner drawn in the browser for a token without one (assets/banner.js): it fades in once drawn */
.bn > canvas.gen-bn { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.4s; }
.bn > canvas.gen-bn.on { opacity: 1; }

/* ---------- home ---------- */
.spot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spot-card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; min-width: 0; transition: border-color 0.15s; }
.spot-card:hover { border-color: var(--line-2); }
.sc-bn { height: 92px; }
.sc-bn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 10, 0) 45%, rgba(17, 19, 17, 0.85) 100%); }
.sc-rank { position: absolute; left: 10px; top: 10px; z-index: 1; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(5, 6, 5, 0.72); backdrop-filter: blur(4px); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; color: var(--text); }
.spot-card.first .sc-rank { color: var(--lime-ink); background: var(--lime); }
.sc-body { padding: 0 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.sc-top { display: flex; align-items: flex-start; gap: 10px; position: relative; z-index: 1; }
.sc-top .av { --ring: var(--raised); box-shadow: 0 0 0 3px var(--raised); margin-top: -21px; }
.sc-top .pill { margin-top: 7px; }
.sc-name { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; padding-top: 4px; }
.sc-name b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-name small { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-mid { display: flex; align-items: baseline; gap: 2px 10px; justify-content: space-between; flex-wrap: wrap; }
.sc-price { font-size: 17px; font-weight: 700; }
.sc-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.sc-stats small { color: var(--text-3); font-size: 11px; margin-right: 3px; }
.sc-stats b { font-weight: inherit; }
.sc-chart { height: 58px; margin-top: 2px; }
.sc-chart svg { display: block; width: 100%; height: 100%; }

.tbl { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tbl-scroll { overflow-x: auto; }
.trow { display: grid; grid-template-columns: 30px minmax(180px, 1.9fr) minmax(86px, 1fr) minmax(58px, 0.7fr) minmax(64px, 0.8fr) minmax(70px, 0.9fr) minmax(70px, 0.9fr) minmax(70px, 0.9fr) 100px 96px; align-items: center; gap: 8px; padding: 0 12px; min-width: 940px; }
.thead { height: 34px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 11px; font-weight: 500; }
.thead .sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; border-radius: 4px; }
.thead .sort:hover { color: var(--text-2); }
.thead .sort[aria-sort="ascending"], .thead .sort[aria-sort="descending"] { color: var(--text); }
.thead .sort:focus-visible { outline: 2px solid var(--lime); }
.tr { height: 46px; border-bottom: 1px solid var(--line); cursor: pointer; }
.tr:last-child { border-bottom: 0; }
.tr:hover { background: var(--hover); }
.num { text-align: right; justify-self: end; white-space: nowrap; }
.c-rank { color: var(--text-3); font-weight: 600; font-size: 12px; }
.c-rank.top { color: var(--lime); }
.c-tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tok-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tok-txt b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-txt small { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-price em { display: none; font-style: normal; font-size: 11px; }
.c-spark { justify-self: end; }
.c-act { display: flex; justify-content: flex-end; gap: 6px; }
.star { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--text-3); cursor: pointer; flex: none; }
.star:hover { color: var(--text); border-color: var(--line-2); }
.star[aria-pressed="true"] { color: var(--lime); }
.star[aria-pressed="true"] svg { fill: var(--lime); }
.tfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; }
.slotb { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; margin-left: 6px; border-radius: 4px; font-size: 10px; font-weight: 800; color: var(--lime-ink); background: var(--lime); vertical-align: 1px; }
.slotl { color: var(--lime); }
.empty { padding: 28px 16px; text-align: center; color: var(--text-3); }

/* rail cards */
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 8px; }
.card-h h2 { margin: 0; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-h a, .card-h .lnkbtn { font-size: 12px; color: var(--text-3); background: none; border: 0; padding: 0; cursor: pointer; }
.card-h a:hover, .card-h .lnkbtn:hover { color: var(--text); }
.li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.li:hover { background: var(--hover); }
.li-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.li-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-t small { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-r { text-align: right; display: flex; flex-direction: column; line-height: 1.3; }
.li-r b { font-weight: 600; }
.li-r small { font-size: 11px; color: var(--text-3); }
.bar { display: block; height: 4px; border-radius: 4px; background: var(--raised-2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--lime); border-radius: 4px; }
.cta-card { padding: 14px; position: relative; overflow: hidden; }
.cta-card h2 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.cta-card p { margin: 0 0 12px; color: var(--text-2); }
.cta-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cta-prices div { background: var(--inset); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.cta-prices small { display: block; font-size: 11px; color: var(--text-3); }
.cta-prices b { font-size: 14px; font-weight: 700; }
.bot-card { position: relative; overflow: hidden; isolation: isolate; display: block; padding: 18px; min-height: 208px; background: var(--raised); }
.bot-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #111311 0%, rgba(17, 19, 17, 0.95) 30%, rgba(17, 19, 17, 0.7) 46%, rgba(17, 19, 17, 0.18) 62%, rgba(17, 19, 17, 0) 74%); }
.bc-art { position: absolute; z-index: -1; top: -10px; right: -72px; height: calc(100% + 64px); aspect-ratio: 1 / 1; pointer-events: none; background: url(/assets/icon.png) center / contain no-repeat, radial-gradient(circle at 49% 45%, rgba(143, 224, 75, 0.2) 0%, rgba(143, 224, 75, 0.07) 46%, rgba(143, 224, 75, 0) 64%); }
.bc-body { position: relative; z-index: 1; display: grid; gap: 6px; max-width: min(calc(100% - 104px), 360px); }
.bc-body h2, .bc-body p { text-shadow: 0 1px 12px rgba(17, 19, 17, 0.85); }
.bc-body h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.bc-body p { margin: 0 0 8px; color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.bc-body .btn { justify-self: start; }
.feats { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; color: var(--text-2); }
.feats li { display: flex; gap: 8px; align-items: flex-start; }
.feats svg { flex: none; margin-top: 2px; color: var(--lime); }
.note { font-size: 12px; color: var(--text-3); margin: 8px 0 0; }

/* ---------- token page ---------- */
.hero { min-width: 0; }
.hero-bn { aspect-ratio: 3 / 1; max-height: 300px; width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); }
.hero-bn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 65%, rgba(10, 11, 10, 0.45) 100%); pointer-events: none; }
.hero-back, .hero-share { position: absolute; top: 12px; z-index: 2; height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 8px; border-radius: 8px; background: rgba(5, 6, 5, 0.66); backdrop-filter: blur(6px); color: var(--text); font-size: 12px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.08); cursor: pointer; }
.hero-back { left: 12px; }
.hero-share { right: 12px; padding: 0 10px; }
.hero-back:hover, .hero-share:hover { background: rgba(5, 6, 5, 0.86); }
.hero-id { display: flex; align-items: flex-start; gap: 14px; padding: 0 4px 0 18px; flex-wrap: wrap; }
.hero-id > .av { margin-top: -40px; --ring: var(--bg); box-shadow: 0 0 0 4px var(--bg), 0 8px 24px rgba(0, 0, 0, 0.5); z-index: 1; }
.hero-name { min-width: 0; flex: 1 1 260px; padding-top: 10px; }
.hero-name h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; line-height: 1.2; }
.hero-name h1 span { font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.hero-chips { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.hero-act { display: flex; gap: 6px; align-items: center; padding-top: 12px; flex-wrap: wrap; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--inset); color: var(--text-2); font-size: 12px; cursor: pointer; white-space: nowrap; font-variant-numeric: normal; }
.ca:hover { color: var(--text); border-color: #3B423B; }
.ca-sm { height: 26px; padding: 0 8px; }
.chart-card { overflow: hidden; }
.chart-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; background: var(--inset); border: 1px solid var(--line); border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { height: 26px; min-width: 34px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--raised-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button:disabled { color: #3C433B; cursor: not-allowed; }
.legend { margin-left: auto; display: flex; gap: 10px; font-size: 11px; color: var(--text-3); flex-wrap: wrap; justify-content: flex-end; }
.legend b { font-weight: 500; color: var(--text); }
.chart { height: 440px; position: relative; }
.chart-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); text-align: center; padding: 20px; }
.chart-foot { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--text-3); }
.mk { display: inline-flex; align-items: center; gap: 6px; }
.tabs { display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font-weight: 600; font-size: 12px; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--raised-2); color: var(--text); }
.tabs .n { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.trades .row { display: grid; grid-template-columns: 70px minmax(120px, 1.5fr) minmax(100px, 1fr) 110px 96px 28px; gap: 12px; align-items: center; padding: 0 14px; height: 40px; border-top: 1px solid var(--line); font-size: 12px; }
.trades .c-paid { text-align: right; }
.trades .row:first-child { border-top: 0; }
.trades .rh { color: var(--text-3); font-size: 11px; height: 32px; }
.trades .tx { color: var(--text-3); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; }
.trades .tx:hover { color: var(--text); background: var(--raised-2); }
.wal { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.wal i { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.wal-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-paid { display: none; }
.price-card .pc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px 14px 12px; }
.price-card .pc-top small { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.price-card .pc-top b { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }
.chg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chg div { padding: 9px 6px; text-align: center; border-right: 1px solid var(--line); }
.chg div:last-child { border-right: 0; }
.chg small { display: block; font-size: 11px; color: var(--text-3); }
.chg b { font-size: 13px; font-weight: 600; }
.kv { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.kv div { padding: 10px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.kv div:nth-child(odd) { border-right: 1px solid var(--line); }
.kv dt { font-size: 11px; color: var(--text-3); }
.kv dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pad { padding: 12px 14px; }
.stack { display: grid; gap: 8px; }
.rows .r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); }
.rows .r:first-child { border-top: 0; }
.rows .r > span:first-child { color: var(--text-3); white-space: nowrap; }
.rows .r > span:last-child { font-weight: 500; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .r a:hover { color: var(--lime); }
.vip { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); }
.vip:first-child { border-top: 0; }
.vip:hover { background: var(--hover); }
.plogo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: #0D0F0D; color: var(--text); border: 1px solid var(--line-2); overflow: hidden; flex: none; }
.plogo img { width: 100%; height: 100%; object-fit: contain; }
.vip-go { font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.vip:hover .vip-go { color: var(--lime); }
.ok { color: var(--lime); display: inline-flex; }
.lnk { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--text); }
.lnk:first-child { border-top: 0; }
.lnk:hover { background: var(--hover); }
.lnk svg { color: var(--text-3); flex: none; }
.lnk span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnk .ext { margin-left: auto; }
.about { padding: 14px; color: var(--text-2); line-height: 1.65; max-width: 72ch; white-space: pre-line; }
.claim { margin: 0 14px 14px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.claim b { display: block; font-size: 13px; }
.claim span { color: var(--text-3); font-size: 12px; }
.bb-big { font-size: 20px; font-weight: 800; color: var(--lime); margin: 2px 0; }
.tradebar, .paybar { display: none; }
.mdock { display: contents; }

/* ---------- listings ---------- */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.lcard { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: border-color 0.15s; cursor: pointer; }
.lcard:hover { border-color: var(--line-2); }
.lc-bn { aspect-ratio: 3 / 1; }
.lc-body { padding: 0 12px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.lc-top { display: flex; align-items: flex-start; gap: 10px; position: relative; z-index: 1; }
.lc-top .av { box-shadow: 0 0 0 3px var(--raised); --ring: var(--raised); margin-top: -23px; }
.lc-top .tok-txt { padding-top: 4px; flex: 1; }
.lc-top .tok-txt b { font-size: 14px; font-weight: 700; }
.lc-date { font-size: 11px; color: var(--text-3); white-space: nowrap; padding-top: 6px; display: inline-flex; gap: 6px; align-items: center; }
.lc-new { color: var(--lime-ink); background: var(--lime); font-weight: 700; font-size: 10px; border-radius: 4px; padding: 0 5px; line-height: 16px; }
.lc-r2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lc-mc { font-size: 16px; font-weight: 700; }
.lc-mc small { font-size: 11px; color: var(--text-3); font-weight: 500; margin-left: 4px; }
.lc-spark { height: 30px; display: flex; align-items: center; }
.lc-spark svg { width: 100%; height: 30px; }
.lc-vip { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-2); padding-top: 9px; border-top: 1px solid var(--line); min-height: 32px; }
.lc-vip > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstack { display: inline-flex; }
.pstack span { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--raised); margin-left: -5px; background: #0D0F0D; overflow: hidden; display: inline-grid; place-items: center; font-size: 9px; font-weight: 700; }
.pstack span:first-child { margin-left: 0; }
.pstack img { width: 100%; height: 100%; object-fit: contain; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; color: var(--text-3); font-size: 12px; }

/* ---------- buy trending ---------- */
.buy-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.buy-head h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.buy-head p { margin: 2px 0 0; color: var(--text-3); }
.steps { display: flex; gap: 6px; align-items: center; color: var(--text-3); font-size: 12px; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 6px; }
.steps i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; }
.steps .on { color: var(--text); }
.steps .on i { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.steps .done i { background: var(--lime-soft); border-color: var(--lime-line); color: var(--lime); }
.steps em { width: 18px; height: 1px; background: var(--line-2); display: inline-block; }
.step { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.step-n { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.step-h h2 { margin: 0; font-size: 15px; font-weight: 700; }
.step-h p { margin: 0; color: var(--text-3); font-size: 12px; }
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field input { flex: 1 1 260px; min-width: 0; height: 40px; padding: 0 12px; background: var(--inset); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font-size: 13px; font-variant-numeric: normal; }
.field input:focus { outline: none; border-color: var(--lime-line); }
.found { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 10px; padding: 10px; background: var(--inset); border: 1px solid var(--line); border-radius: 10px; }
.found-bn { width: 132px; height: 44px; border-radius: 7px; }
.found-t { min-width: 0; display: grid; gap: 2px; }
.found-t b { font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.found-t small { color: var(--text-3); font-size: 12px; display: flex; gap: 4px 12px; flex-wrap: wrap; }
.found-ok { display: inline-flex; gap: 6px; align-items: center; color: var(--lime); font-size: 12px; font-weight: 600; white-space: nowrap; }

.place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.opts { display: grid; gap: 10px; align-content: start; }
.opt { position: relative; text-align: left; border-radius: 12px; border: 1px solid var(--line-2); background: var(--inset); padding: 14px; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; transition: border-color 0.15s, background 0.15s; }
.opt:hover { border-color: #3B423B; }
.opt[aria-checked="true"] { border-color: var(--lime); background: linear-gradient(180deg, rgba(143, 224, 75, 0.09), rgba(143, 224, 75, 0.02)); box-shadow: 0 0 0 1px var(--lime) inset; }
.opt-h { display: flex; align-items: center; gap: 10px; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; }
.opt[aria-checked="true"] .radio { border-color: var(--lime); }
.opt[aria-checked="true"] .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.opt-h b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.opt-h .ranks { color: var(--text-3); font-size: 12px; }
.opt-h .from { margin-left: auto; text-align: right; font-size: 11px; color: var(--text-3); line-height: 1.2; }
.opt-h .from strong { display: block; font-size: 15px; color: var(--text); font-weight: 700; }
.opt ul { list-style: none; margin: 0; padding: 0 0 0 28px; display: grid; gap: 5px; color: var(--text-2); font-size: 12px; }
.opt li { display: flex; gap: 7px; align-items: flex-start; }
.opt li svg { flex: none; margin-top: 2px; color: var(--lime); }
.seats { display: flex; align-items: center; gap: 8px; padding-left: 28px; font-size: 11px; color: var(--text-3); }
.seats i { display: inline-flex; gap: 3px; }
.seats i span { width: 14px; height: 6px; border-radius: 2px; background: var(--lime); opacity: 0.85; }
.both { border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; color: var(--text-2); font-size: 12px; }
.both b { color: var(--text-3); font-weight: 600; font-size: 11px; }
.both span { display: flex; gap: 7px; align-items: flex-start; }
.both svg { color: var(--lime); flex: none; margin-top: 2px; }

.board { border-radius: 12px; border: 1px solid var(--line); background: var(--inset); overflow: hidden; display: flex; flex-direction: column; }
.board-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.board-h img { width: 18px; height: 18px; }
.board-h small { margin-left: auto; color: var(--text-3); font-weight: 500; }
.brow { display: grid; grid-template-columns: 20px 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 29px; padding: 0 12px; font-size: 12px; color: var(--text-3); position: relative; transition: background 0.2s; }
.brow b { color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .r { font-weight: 700; font-size: 11px; }
.brow.band { background: rgba(143, 224, 75, 0.055); }
.brow.band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lime); opacity: 0.55; }
.brow.you { background: rgba(143, 224, 75, 0.14); color: var(--text); }
.brow.you b { color: var(--text); }
.brow.you::before { opacity: 1; }
.brow .you-tag { font-size: 10px; font-weight: 800; color: var(--lime-ink); background: var(--lime); border-radius: 4px; padding: 1px 6px; }
.brow.dim { opacity: 0.55; }
.board-sep { height: 0; border-top: 1px dashed var(--line-2); margin: 0 12px; }
.board-f { margin-top: auto; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--text-3); }
/* The checkout's placement step: the packages (and what both include) beside the board preview; without the preview
   (it couldn't load) the two packages sit side by side as before. A rank the board has no token for is a faint bar. */
.opts-list { display: grid; gap: 10px; }
.place.no-board { grid-template-columns: minmax(0, 1fr); }
.place.no-board .opts-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.brow .brow-ph { grid-column: 2 / -1; justify-self: start; width: min(140px, 70%); height: 7px; border-radius: 4px; background: var(--raised-2); }
@media (max-width: 1100px) { .place.no-board .opts-list { grid-template-columns: minmax(0, 1fr); } }

.durs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px 8px; }
.dur { position: relative; border-radius: 10px; border: 1px solid var(--line-2); background: var(--inset); padding: 12px 10px 10px; cursor: pointer; text-align: left; display: grid; gap: 2px; transition: border-color 0.15s, background 0.15s; color: var(--text); }
.dur:hover { border-color: #3B423B; }
.dur[aria-checked="true"] { border-color: var(--lime); background: var(--lime-soft); box-shadow: 0 0 0 1px var(--lime) inset; }
.dur .d-len { font-size: 14px; font-weight: 800; }
.dur .d-price { font-size: 13px; font-weight: 600; color: var(--text-2); }
.dur[aria-checked="true"] .d-price { color: var(--lime); }
.dur .d-hr { font-size: 11px; color: var(--text-3); }
.dur .d-tag { position: absolute; top: -8px; right: 8px; font-size: 10px; font-weight: 700; color: var(--lime-ink); background: var(--lime); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.span-track { margin-top: 14px; }
.track { position: relative; height: 8px; border-radius: 8px; background: var(--raised-2); overflow: hidden; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--lime), #6FC23A); border-radius: 8px; transition: width 0.3s ease; }
.ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--text-3); }
.span-note { margin-top: 10px; display: flex; gap: 8px 16px; flex-wrap: wrap; color: var(--text-2); font-size: 12px; }
.span-note b { color: var(--text); font-weight: 600; }

.sum-card { position: sticky; top: 70px; z-index: 3; }
.sum-tok { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sum-tok .tok-txt b { font-size: 14px; font-weight: 700; }
.total { display: flex; justify-content: space-between; align-items: flex-end; padding: 14px; border-top: 1px solid var(--line-2); }
.total .t-l { color: var(--text-3); }
.total .t-r { text-align: right; line-height: 1.15; }
.total .t-r b { font-size: 24px; color: var(--lime); font-weight: 800; letter-spacing: -0.01em; }
.total .t-r small { display: block; color: var(--text-3); font-size: 12px; margin-top: 2px; }
.promo { display: flex; gap: 6px; max-width: 380px; }
.promo .btn { height: 34px; }
.promo input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; background: var(--inset); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font-size: 12px; text-transform: uppercase; }

.invoice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; }
.inv-amt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inv-amt b { font-size: 30px; font-weight: 800; color: var(--lime); letter-spacing: -0.015em; }
.inv-lbl { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.addr { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 6px 6px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--inset); font-size: 12px; color: var(--text-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.addr > span:first-child { flex: 1; min-width: 0; }
.status { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line); }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; box-shadow: 0 0 0 0 rgba(240, 185, 11, 0.45); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240, 185, 11, 0.45); } 80%, 100% { box-shadow: 0 0 0 9px rgba(240, 185, 11, 0); } }
.status b { display: block; font-size: 13px; }
.status small { color: var(--text-3); font-size: 12px; }
.timer { font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); background: var(--raised-2); border: 1px solid var(--line); border-radius: 6px; height: 26px; padding: 0 8px; }
.qrbox { width: 176px; padding: 12px; border-radius: 12px; background: #F4F6F3; display: grid; gap: 6px; justify-items: center; }
.qrbox svg { width: 152px; height: 152px; display: block; }
.qrbox small { color: #4A514A; font-size: 11px; font-weight: 600; }
.inv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.inv-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.proto { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--text-3); }
.done-card { text-align: center; padding: 34px 20px 26px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; }
.done-mail .btn { white-space: normal; text-align: center; }
.done-card .dm-lead { margin: 0 0 8px; font-size: 12.5px; color: var(--text-3); text-align: center; max-width: none; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--lime-soft); border: 1px solid var(--lime-line); display: grid; place-items: center; color: var(--lime); }
.done-card h2 { margin: 6px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.done-card p { margin: 0; color: var(--text-2); max-width: 52ch; text-wrap: balance; }
.done-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.done-mail { margin-top: 14px; width: min(420px, 100%); text-align: left; }
.live-list { list-style: none; margin: 10px 0 4px; padding: 0; width: min(440px, 100%); text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--inset); }
.live-list li { display: flex; gap: 12px; align-items: center; padding: 11px 14px; }
.live-list li + li { border-top: 1px solid var(--line); }
.live-list b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.live-list small { display: block; color: var(--text-3); font-size: 12px; margin-top: 1px; }
.ll-s { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--lime); }
.ll-s::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pingL 1.8s ease-out infinite; }
.live-list li.ok .ll-s { background: var(--lime-soft); border: 1px solid var(--lime-line); }
.live-list li.ok .ll-s::before { display: none; }
@keyframes pingL { 0% { box-shadow: 0 0 0 0 rgba(143, 224, 75, 0.45); } 80%, 100% { box-shadow: 0 0 0 8px rgba(143, 224, 75, 0); } }
.tag-lime { color: var(--lime); border-color: var(--lime-line); background: var(--lime-soft); }

/* ---------- Telegram previews: Telegram's own night colours and Peak's real pack emoji ---------- */
.tgw { border-radius: 16px; background: #0E1621; border: 1px solid #1E2C3A; overflow: hidden; color: #F5F5F5; font: 14px/1.42 var(--font); font-variant-numeric: normal; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.tgw-h { display: flex; align-items: center; gap: 11px; height: 56px; padding: 0 14px; background: #17212B; border-bottom: 1px solid #0B121A; }
.tgw-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; overflow: hidden; background: linear-gradient(135deg, #6CB2EB, #3B78C3); }
.tgw-av img { width: 100%; height: 100%; object-fit: cover; }
.tgw-av.peak { background: #050605; }
.tgw-av.peak img { width: 78%; height: 78%; }
.tgw-t { min-width: 0; line-height: 1.25; }
.tgw-t b { display: block; font-size: 14.5px; font-weight: 600; }
.tgw-t small { font-size: 12.5px; color: #6D7F8F; }
.tgw-b { padding: 12px 14px 16px; display: grid; gap: 4px; }
.tg-day { justify-self: center; font-size: 12px; font-weight: 600; color: #EDEFF2; background: rgba(28, 41, 55, 0.92); padding: 3px 11px; border-radius: 12px; margin-bottom: 8px; }
.tg-row { display: flex; align-items: flex-end; gap: 8px; }
.tg-row > .tgw-av { width: 34px; height: 34px; margin-bottom: 2px; }
.tg-msg { min-width: 0; flex: 1; max-width: 480px; display: grid; gap: 4px; }
.tg-bub { background: #182533; border-radius: 16px 16px 16px 6px; overflow: hidden; }
.tg-name { padding: 7px 12px 6px; font-size: 13.5px; font-weight: 600; color: #65AADD; }
.tg-media { position: relative; display: block; }
.tg-media .bn { aspect-ratio: 3 / 1; }
.tg-text { padding: 9px 12px 0; overflow-wrap: anywhere; }
.tg-text p { margin: 0 0 0.85em; }
.tg-text p:last-child { margin-bottom: 0; }
.tg-text b { font-weight: 700; }
.tg-text .a { color: #6AB3F3; }
.tg-text code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: #8CC2F2; word-break: break-all; }
.tg-meta { text-align: right; padding: 2px 10px 6px; font-size: 11.5px; color: #6D7F8F; }
.tg-kb { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 4px; margin: 4px 0 0 42px; max-width: 480px; }
.tg-kb > span { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 36px; padding: 0 8px; border-radius: 10px; background: rgba(26, 39, 53, 0.95); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-kb > span.g { background: #2E7A3A; }
.tg-kb .pk { width: 18px; height: 18px; vertical-align: 0; flex: none; }
.pe, .pk { display: inline-block; background-repeat: no-repeat; }
.pe { width: 1.55em; height: 1.55em; vertical-align: -0.45em; }
.pk { width: 1.36em; height: 1.36em; vertical-align: -0.34em; }
.pe { background-image: var(--strip, url(/assets/themes/emoji-green.webp)); background-size: 750% 100%; background-position: calc(var(--i) * 16.6667%) 0; }
.pk { background-size: contain; background-position: center; }
.tg-sizes { line-height: 1.55; }
.tg-sizes .pe, .tg-sizes .pk { margin-right: 1px; }
.tg-note { font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* the cards Peak Bot draws (800 x 450, the bot's own layout scaled with the box: 1cqw is 8 of its pixels) */
.acard-wrap { --accent: #8FE04B; --accent-rgb: 143, 224, 75; --second: var(--accent); --pill: rgba(16, 20, 16, 0.92); --ring-c: #101410; --edge: #1F2A1B; --dim: #8A9585; }
.acard { container-type: inline-size; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.acard-art { position: absolute; left: 50%; top: 1.25cqw; width: 58.75cqw; height: 58.75cqw; opacity: 0.9; }
.acard-fade { position: absolute; inset: 0; background: linear-gradient(90deg, #000 38%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.1) 100%); }
.acard-main { position: absolute; left: 3.75cqw; top: 3.75cqw; display: flex; flex-direction: column; gap: 1.75cqw; line-height: 1.2; }
.acard-head { display: flex; align-items: center; gap: 1.75cqw; }
.acard-logo { width: 8cqw; height: 8cqw; flex: none; border-radius: 50%; border: 0.375cqw solid var(--accent); box-shadow: 0 0 2.625cqw rgba(var(--accent-rgb), 0.45); background: var(--ring-c); overflow: hidden; }
.acard-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acard-id { display: flex; flex-direction: column; }
.acard-tk { color: var(--second); font-size: 3cqw; font-weight: 800; line-height: 1.2; }
.acard-h { color: #fff; font-size: 5.5cqw; font-weight: 800; letter-spacing: -0.15cqw; line-height: 1; }
.acard-usd { margin-top: 1cqw; color: var(--accent); font-size: 10.5cqw; font-weight: 800; letter-spacing: -0.375cqw; line-height: 1; text-shadow: 0 0 1.75cqw rgba(var(--accent-rgb), 0.5); }
.acard-swap { display: flex; align-items: center; gap: 1.5cqw; color: #fff; font-size: 3cqw; font-weight: 700; white-space: nowrap; }
.acard-swap svg { width: 3cqw; height: 3cqw; flex: none; color: var(--second); }
.acard-pills { display: flex; flex-wrap: wrap; gap: 1.25cqw; width: 70cqw; margin-top: 1.25cqw; }
.acard-pill { display: inline-flex; align-items: center; gap: 1.25cqw; padding: 1.25cqw 2cqw; border-radius: 999px; border: 1px solid var(--edge); background: var(--pill); color: #fff; font-size: 2.5cqw; font-weight: 800; white-space: nowrap; }
.acard-pill b { color: var(--dim); font-size: 1.625cqw; font-weight: 800; letter-spacing: 0.175cqw; }
.acard-foot { position: absolute; left: 3.75cqw; bottom: 3.75cqw; display: flex; align-items: center; gap: 1cqw; line-height: 1.2; }
.acard-foot .w { color: #fff; font-size: 2.5cqw; font-weight: 800; letter-spacing: 0.25cqw; }
.acard-foot .g { color: var(--foot, var(--second)); font-size: 2.5cqw; font-weight: 700; letter-spacing: 0.5cqw; }
.acard-foot i { width: 0.875cqw; height: 0.875cqw; margin: 0 1.25cqw; border-radius: 50%; background: var(--foot, var(--second)); box-shadow: 0 0 1.25cqw var(--foot, var(--second)); }
.acard-foot .d { color: var(--dim); font-size: 2cqw; font-weight: 600; }
.acard.bonus .acard-main { gap: 1.5cqw; }
.acard.bonus .acard-tk { color: var(--accent); }
.acard .bk { font-size: 2.75cqw; font-weight: 800; letter-spacing: 0.25cqw; color: var(--accent); text-shadow: 0 0 1.75cqw rgba(var(--accent-rgb), 0.5); margin-top: 0.75cqw; }
.acard .bbig { font-weight: 800; color: var(--accent); letter-spacing: -0.375cqw; line-height: 1; text-shadow: 0 0 1.75cqw rgba(var(--accent-rgb), 0.5); white-space: nowrap; }
.acard .bsub { font-size: 2.75cqw; font-weight: 700; color: #fff; white-space: nowrap; }
.acard .bbar { display: flex; align-items: center; gap: 1.75cqw; margin-top: 0.25cqw; }
.acard .bbar span { width: 47.5cqw; height: 1.75cqw; border-radius: 1cqw; background: #141814; border: 1px solid var(--edge); overflow: hidden; display: block; }
.acard .bbar span i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 1.25cqw rgba(var(--accent-rgb), 0.5); border-radius: 1cqw; }
.acard .bbar b { font-size: 2.5cqw; font-weight: 800; color: var(--accent); }

/* ---------- bonus buys ---------- */
.bb-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding-block: 6px 4px; }
.bb-hero h1, .bot-hero h1 { margin: 0 0 10px; font-size: 36px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.lede { margin: 0 0 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; max-width: 52ch; }
.bb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; max-width: 640px; }
.stat { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.stat small { display: block; font-size: 11px; color: var(--text-3); }
.stat b { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.showcase { display: grid; gap: 10px; min-width: 0; }
.showcase-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.showcase-top small { color: var(--text-3); font-size: 12px; }
.showcase .acard { border-radius: 16px; border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.sec-h { display: flex; align-items: flex-end; gap: 8px 14px; flex-wrap: wrap; margin-top: 18px; }
.sec-h h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.sec-h p { margin: 0; color: var(--text-3); }
.sec-h .spacer { min-width: 8px; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pcard { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; min-width: 0; transition: border-color 0.15s; }
.pcard:hover { border-color: var(--line-2); }
.pc-bn { height: 86px; }
.pc-bn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 10, 0) 40%, rgba(17, 19, 17, 0.85) 100%); }
.pc-rank, .pc-flag { position: absolute; top: 10px; z-index: 1; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(5, 6, 5, 0.74); backdrop-filter: blur(4px); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.pc-rank { left: 10px; }
.pc-rank.first { background: var(--lime); color: var(--lime-ink); }
.pc-flag { right: 10px; color: var(--text); }
.pc-flag .pk { width: 15px; height: 15px; vertical-align: 0; }
.pc-body { padding: 0 14px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; flex: 1; }
.pc-top { display: flex; align-items: flex-start; gap: 10px; position: relative; z-index: 1; }
.pc-top .av { margin-top: -22px; box-shadow: 0 0 0 3px var(--raised); --ring: var(--raised); }
.pc-top .tok-txt { padding-top: 4px; flex: 1; }
.pc-top .tok-txt b { font-size: 15px; font-weight: 700; }
.pc-pct { text-align: right; line-height: 1.05; padding-top: 3px; }
.pc-pct b { display: block; font-size: 24px; font-weight: 800; color: var(--lime); letter-spacing: -0.02em; }
.pc-pct small { font-size: 11px; color: var(--text-3); }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--raised-2); border: 1px solid var(--line); font-size: 11px; color: var(--text-2); white-space: nowrap; }
.ptag .pk { width: 13px; height: 13px; vertical-align: 0; }
.ptag.lucky { color: #FFC83D; border-color: rgba(255, 200, 61, 0.32); background: rgba(255, 200, 61, 0.07); }
.ptag svg, .lucky-b svg { flex: none; }
.know { list-style: none; margin: 0; padding: 4px 14px 14px; display: grid; gap: 8px; color: var(--text-2); font-size: 12.5px; }
.know li { display: flex; gap: 9px; align-items: flex-start; }
.know svg { color: var(--lime); flex: none; margin-top: 2px; }
.pc-pool { display: grid; gap: 7px; }
.pc-pool .r1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-3); }
.pc-pool .r1 b { font-size: 16px; color: var(--text); font-weight: 700; }
.pc-pool .bar { height: 6px; margin-top: 0; }
.pc-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-3); }
.pc-foot b { color: var(--text); font-weight: 600; }
.pc-act { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: auto; }
.team-box { display: grid; gap: 4px; padding: 14px 16px; border: 1px dashed rgba(240, 185, 11, 0.35); border-radius: var(--r-lg); background: rgba(240, 185, 11, 0.035); }
.team-box h3 { margin: 0 0 2px; font-size: 13px; display: flex; align-items: center; gap: 8px; color: var(--amber); }
.team-box > p { margin: 0 0 8px; color: var(--text-3); font-size: 12px; }
.team-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(240, 185, 11, 0.14); cursor: pointer; }
.team-row .pct { font-weight: 800; color: var(--text); }
.bb-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: start; }
/* The history (2026-11-19): the pools that ended as compact cards (their run, what they paid, where to check it), and
   every bonus paid in a box about ten rows tall that scrolls and loads older ones near its end. */
.ptag.team { color: var(--amber); border-color: rgba(240, 185, 11, 0.32); background: rgba(240, 185, 11, 0.06); }
.ppgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ppcard { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; min-width: 0; }
.pp-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pp-top .tok-txt { flex: 1; }
.pp-top .tok-txt b { font-size: 14px; font-weight: 700; }
.pp-top .tok-txt a:hover { color: var(--lime); }
.pp-pct { font-size: 18px; font-weight: 800; color: var(--lime); letter-spacing: -0.02em; white-space: nowrap; }
.pp-ran { font-size: 12px; color: var(--text-3); }
.pp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--inset); }
.pp-stats > div { padding: 8px 10px; border-left: 1px solid var(--line); min-width: 0; }
.pp-stats > div:first-child { border-left: 0; }
.pp-stats small { display: block; font-size: 11px; color: var(--text-3); }
.pp-stats b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12px; color: var(--text-2); }
.pp-sub a { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); }
.pp-sub a:hover { color: var(--text); }
.pp-act { display: flex; flex-wrap: wrap; gap: 8px; }
.more-row { display: flex; justify-content: center; margin-top: 12px; }
.hist-scroll { position: relative; max-height: 580px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.hist-scroll:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.hist-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 14px 10px; padding: 8px 10px; border-radius: var(--r); background: var(--lime-soft); border: 1px solid var(--lime-line); font-size: 12px; color: var(--text-2); }
.hist-filter b { color: var(--text); }
@media (max-width: 1100px) { .ppgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .ppgrid { grid-template-columns: minmax(0, 1fr); }
  .ppgrid.folded .ppcard:nth-child(n+4) { display: none; }
  .bb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hist-scroll { max-height: 520px; }
}
.fd { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.fd-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fd-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-t small { font-size: 11px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }
.fd-r { text-align: right; line-height: 1.3; }
.fd-r b { display: block; font-weight: 600; color: var(--up); }
.fd-r a { font-size: 11px; color: var(--text-3); display: inline-flex; gap: 3px; align-items: center; }
.fd-r a:hover { color: var(--text); }
.lucky-b { color: #FFC83D; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.lucky-b .pk { width: 13px; height: 13px; vertical-align: 0; }
.vsteps { display: grid; }
.vsteps > div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.vsteps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--lime-soft); color: var(--lime); border: 1px solid var(--lime-line); }
.vsteps b { display: block; font-size: 13px; margin-bottom: 2px; }
.vsteps p { margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.bb-start { padding: 20px; display: grid; gap: 16px; }
.bb-start-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bb-start-h h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.bb-start-h p { margin: 4px 0 0; color: var(--text-2); max-width: 60ch; }
.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.style-card { background: var(--inset); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; display: grid; gap: 6px; align-content: start; }
.style-card .s-pct { font-size: 24px; font-weight: 800; color: var(--lime); letter-spacing: -0.02em; line-height: 1.1; }
.style-card b { font-size: 13.5px; }
.style-card p { margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.defaults { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text-2); font-size: 12px; }
.defaults span { display: inline-flex; gap: 6px; align-items: center; }
.defaults svg { color: var(--lime); }
.trust { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; line-height: 1.55; }
.trust svg { color: var(--lime); flex: none; margin-top: 1px; }

/* ---------- peak bot ---------- */
.bot-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; padding-block: 10px 6px; }
.bot-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; color: var(--text-2); }
.bot-list li { display: flex; gap: 9px; align-items: flex-start; }
.bot-list svg { color: var(--lime); flex: none; margin-top: 3px; }
.chainrow { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; color: var(--text-2); font-size: 12px; }
.chainrow span { display: inline-flex; align-items: center; gap: 6px; }
.botdemo { display: grid; gap: 12px; min-width: 0; }
.bb-hero > div:first-child { align-self: center; }
.bot-hero > div:first-child { align-self: start; position: sticky; top: 84px; padding-top: 40px; }
.themes { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 10px 14px; }
.themes .t-name { font-weight: 700; font-size: 13px; min-width: 112px; }
.themes .t-name b { color: var(--accent); }
.tdots { display: flex; flex-wrap: wrap; gap: 2px; }
.tdot { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.tdot::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); transition: transform 0.15s; }
.tdot:hover::before { transform: scale(1.12); }
.tdot[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--ring-dot, var(--dot)); }
.themes .t-note { color: var(--text-3); font-size: 12px; margin-left: auto; }
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); overflow: hidden; }
.fgrid > div { padding: 16px; background: var(--raised); }
.fgrid svg { color: var(--lime); margin-bottom: 8px; }
.fgrid b { display: block; font-size: 13px; margin-bottom: 3px; }
.fgrid p { margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.cmds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); overflow: hidden; }
.cmds > div { background: var(--raised); padding: 14px 16px; display: grid; gap: 3px; align-content: start; }
.cmds code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: var(--lime); font-weight: 600; }
.cmds span { color: var(--text-2); font-size: 12.5px; }
.cmds small { color: var(--text-3); font-size: 11px; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); overflow: hidden; }
.how > div { padding: 16px; background: var(--raised); }
.how i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--lime-soft); color: var(--lime); border: 1px solid var(--lime-line); margin-bottom: 10px; }
.how b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.how p { margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.cta-band { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 34px 28px; background: var(--raised); border: 1px solid var(--lime-line); border-radius: var(--r-lg); margin-top: 18px; }
.cta-band > :not(.bc-art) { position: relative; z-index: 1; }
.cta-band .bc-art { top: -8%; right: 212px; height: 142%; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #111311 0%, rgba(17, 19, 17, 0.9) 34%, rgba(17, 19, 17, 0) 58%, rgba(17, 19, 17, 0) 100%); }
.cta-band h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.cta-band p { margin: 4px 0 0; color: var(--text-2); }

/* ---------- buy trending: what follows the payment ---------- */
.after { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.tl li::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--line-2); }
.tl li:last-child { padding-bottom: 0; }
.tl li:last-child::before { display: none; }
.tl i { width: 26px; height: 26px; border-radius: 50%; background: var(--lime-soft); border: 1px solid var(--lime-line); display: grid; place-items: center; color: var(--lime); }
.tl i svg { width: 14px; height: 14px; }
.tl b { display: block; font-size: 13px; padding-top: 3px; }
.tl p { margin: 2px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.55; }

/* ---------- footer, phone bars ---------- */
.ftr { border-top: 1px solid var(--line); margin-top: 8px; }
.ftr-in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 26px 22px; }
.ftr-brand p { margin: 8px 0 0; color: var(--text-3); max-width: 36ch; }
.ftr h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr ul a { color: var(--text-3); cursor: pointer; }
.ftr ul a:hover { color: var(--text); }
.ftr-base { border-top: 1px solid var(--line); }
.ftr-base .wrap { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-block: 14px; color: var(--text-3); font-size: 12px; }
.tabbar { display: none; }
.msort { display: none; }
.tok-txt .mmc { display: none; }

#toast { position: fixed; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 102; background: #232823; color: var(--text); border: 1px solid #3A413A; border-radius: 8px; padding: 8px 12px; font-size: 12px; }

/* ---------- chart ---------- */
.chart-card { overflow: hidden; display: flex; flex-direction: column; }
.ct-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg-ic button { width: 32px; padding: 0; display: inline-grid; place-items: center; }
.ct-btn { height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border-radius: 8px; border: 1px solid var(--line); background: var(--inset); color: var(--text-3); font-size: 12px; font-weight: 600; cursor: pointer; }
.ct-btn:hover { color: var(--text); }
.ct-btn[aria-pressed="true"] { color: var(--text); border-color: var(--line-2); background: var(--raised-2); }
.ct-btn.ct-ic { width: 30px; padding: 0; justify-content: center; }
.ct-stage { position: relative; height: 480px; background: radial-gradient(100% 80% at 72% 0%, rgba(143, 224, 75, 0.04), transparent 62%), #0D0F0D; }
.ct-host { position: absolute; inset: 0; }
.ct-ov { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; }
.ct-lg { position: absolute; left: 12px; top: 10px; z-index: 3; pointer-events: none; display: grid; gap: 3px; max-width: calc(100% - 96px); font-size: 11.5px; color: var(--text-3); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.ct-lg1 { display: flex; gap: 8px; align-items: baseline; }
.ct-lg1 b { color: var(--text); font-size: 13px; font-weight: 700; }
.ct-lg2, .ct-lg3 { display: flex; gap: 4px 11px; flex-wrap: wrap; }
.ct-lg2 b, .ct-lg3 b { margin-left: 4px; font-weight: 600; color: var(--text); }
.ct-lg2 b.up, .ct-lg2 .up { color: var(--up); }
.ct-lg2 b.down, .ct-lg2 .down { color: var(--down); }
.ct-wm { position: absolute; left: 58px; bottom: 36px; z-index: 1; display: flex; align-items: center; gap: 6px; pointer-events: none; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: rgba(232, 235, 231, 0.16); }
.ct-wm img { width: 18px; height: 18px; opacity: 0.28; }
.ct-ivm { display: none; }
.ct-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 11px; }
.ct-key { display: inline-flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; }
.ct-key i { margin-right: 6px; vertical-align: -1px; }
.k-ath { display: inline-block; width: 12px; height: 9px; border-radius: 3px; border: 1px solid rgba(143, 224, 75, 0.6); background: #16201A; }
.k-ev { display: inline-block; width: 1px; height: 11px; border-left: 1px dashed rgba(232, 235, 231, 0.5); }
.ct-fullpage { height: 100vh; padding-bottom: 66px; display: flex; background: var(--bg); }
.ct-fullpage .chart-card { flex: 1; border-radius: 0; border: 0; min-height: 0; }
.ct-fullpage .ct-stage { flex: 1; height: auto; min-height: 0; }
.hero-price { display: none; }

/* ---------- narrower screens ---------- */
@media (max-width: 1240px) {
  .home-grid, .bb-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .trow { grid-template-columns: 30px minmax(150px, 1.9fr) minmax(84px, 1fr) minmax(56px, 0.7fr) minmax(62px, 0.8fr) minmax(66px, 0.9fr) minmax(66px, 0.9fr) 88px 32px; min-width: 0; }
  .thead .h-liq, .tr .c-liq, .tr .c-act .btn { display: none; }
  .tr .c-spark svg { width: 84px; height: 25px; }
  .tok-grid { grid-template-columns: minmax(0, 1fr) 310px; }
  .buy-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .durs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .durs .dur:last-child { grid-column: span 2; }
  .fgrid, .cmds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-hero, .bot-hero { gap: 24px; }
}
@media (max-width: 1100px) {
  .place, .after { grid-template-columns: minmax(0, 1fr); }
  .bb-hero, .bot-hero { grid-template-columns: minmax(0, 1fr); }
  .bot-hero > div:first-child, .bb-hero > div:first-child { padding-top: 0; position: static; }
  .bb-two { grid-template-columns: minmax(0, 1fr); }
  .trow { grid-template-columns: 30px minmax(150px, 1.9fr) minmax(84px, 1fr) minmax(62px, 0.8fr) minmax(66px, 0.9fr) minmax(66px, 0.9fr) 88px 32px; }
  .thead .h-1h, .tr .c-1h { display: none; }
  .bb-hero > :last-child, .bot-hero > :last-child { width: 100%; max-width: 640px; }
}
@media (max-width: 1020px) {
  .home-grid, .tok-grid, .buy-grid, .bb-grid { grid-template-columns: minmax(0, 1fr); }
  .col-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .tok-grid { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .tok-grid > .col-main, .tok-grid > .col-side { display: contents; }
  .tok-grid .card, .tok-grid .hero { order: 9; }
  .tok-grid .hero { order: 1; }
  .tok-grid .chart-card { order: 2; }
  .tok-grid .price-card { order: 3; }
  .tok-grid .tabs-card { order: 4; }
  .tok-grid .bonus-card { order: 5; }
  .tok-grid .vip-card { order: 6; }
  .tok-grid .info-card { order: 7; }
  .tok-grid .bot-card { order: 8; }
  .buy-grid { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .buy-grid > .col-main, .buy-grid > .col-side { display: contents; }
  .buy-grid .sum-card { order: 2; }
  .buy-grid .step-after { order: 3; }
  .col-side > .cta-card { order: 1; }
  .col-side > .rc-pools { order: 2; }
  .col-side > .rc-buys { order: 3; }
  .col-side > .rc-news { order: 4; }
  .col-side > .bot-card { order: 5; grid-column: 1 / -1; }
  .nav { display: none; }
  .sum-card { position: static; }
  .ftr-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .search, .hdr-act > .btn-lime, .hdr-act > .tgbtn { display: none; }
  .only-phone { display: inline-flex !important; }
  .hdr-act { margin-left: auto; }
  .page { padding-block: 10px 22px; }
  .head h1, .buy-head h1 { font-size: 19px; }
  .head p { display: none; }
  .head .upd { margin-left: auto; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .spot { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .spot::-webkit-scrollbar { display: none; }
  .spot-card { flex: 0 0 84%; scroll-snap-align: start; }
  .tbl-scroll { overflow-x: visible; }
  .col-side > .cta-card, .col-side > .rc-pools, .col-side > .rc-buys, .col-side > .rc-news { order: 0; }
  .trow { grid-template-columns: 16px minmax(0, 1fr) 52px auto; min-width: 0; gap: 10px; padding: 0 16px; }
  .tbl { margin-inline: -16px; border-radius: 0; border-inline: 0; background: transparent; }
  .tbl .thead { display: none; }
  .tr .c-tok { gap: 11px; }
  .tr .c-tok .av { --s: 36px !important; }
  .tr .tok-txt b { font-size: 14px; font-weight: 700; }
  .tr .tok-txt small { font-size: 11.5px; margin-top: 2px; }
  .tr .nm { display: none; }
  .tr .mmc { display: inline; }
  .c-price { font-size: 13.5px; font-weight: 600; }
  .c-price em { margin-top: 4px; padding: 1px 6px; border-radius: 5px; font-weight: 600; font-size: 11.5px; }
  .c-price em.up { background: var(--up-soft); }
  .c-price em.down { background: var(--down-soft); }
  .tfoot { padding: 12px 16px; }
  .tfoot span:last-child { display: none; }
  .msort { display: flex; gap: 6px; overflow-x: auto; margin: 2px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .msort::-webkit-scrollbar { display: none; }
  .msort .chipbtn { flex: none; height: 30px; border-radius: 999px; padding: 0 12px; }
  .msort .chipbtn svg { margin-left: -2px; }
  .thead .h-1h, .thead .h-24, .thead .h-vol, .thead .h-liq, .thead .h-mc, .thead .h-act,
  .tr .c-1h, .tr .c-24, .tr .c-vol, .tr .c-liq, .tr .c-mc, .tr .c-act { display: none; }
  .thead .h-spark { order: 3; } .thead .h-price { order: 4; }
  .tr .c-spark { order: 3; } .tr .c-price { order: 4; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
  .c-spark svg { width: 52px; height: 24px; }
  .c-spark .muted { display: none; }
  .c-price em { display: block; }
  .tr { height: 64px; }
  .col-side { display: flex; }
  .tabbar { display: flex; position: sticky; bottom: 0; z-index: 40; background: rgba(17, 19, 17, 0.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--text-3); padding: 4px 8px; border-radius: 8px; cursor: pointer; }
  .tabbar a[aria-current="page"] { color: var(--lime); }
  .tabbar a { flex: 1; padding: 4px 2px; white-space: nowrap; }
  .tabbar a.tb-cta { color: var(--text); font-weight: 600; }
  .tb-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-top: -20px; border-radius: 15px; background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 4px var(--bg), 0 8px 22px rgba(143, 224, 75, 0.32); }
  .tabbar a.tb-cta[aria-current="page"] .tb-ic { background: var(--lime-hi); }
  .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lc-bn { aspect-ratio: 2 / 1; }
  .lc-body { padding: 0 10px 10px; gap: 6px; }
  .lc-top { gap: 8px; flex-wrap: wrap; }
  .lc-top .av { --s: 34px !important; margin-top: -17px; }
  .lc-top .tok-txt { flex-basis: 100%; order: 3; padding-top: 0; }
  .lc-top .tok-txt b { font-size: 13.5px; }
  .lc-top .tok-txt small { font-size: 11px; }
  .lc-date { margin-left: auto; padding-top: 4px; font-size: 10.5px; }
  .lc-r2 { flex-wrap: wrap; gap: 2px 8px; }
  .lc-mc { font-size: 14px; }
  .lc-mc small { display: none; }
  .lc-r2 > span:last-child { font-size: 12px; }
  .lc-spark { display: none; }
  .lc-vip { padding-top: 7px; min-height: 0; }
  .lc-vip > span:last-child { display: none; }
  .ftr { margin-top: 18px; }
  .ftr-in { display: none; }
  .ftr-base { border-top: 0; }
  .ftr-base .wrap { flex-direction: column; gap: 3px; padding-block: 16px 18px; font-size: 11.5px; }
  .hero { position: relative; margin-inline: -16px; overflow: hidden; }
  .hero-bn { position: absolute; inset: 0; width: auto; aspect-ratio: auto; max-height: none; border: 0; border-radius: 0; }
  .hero-bn > img { object-position: center 30%; }
  .hero-bn::after { background: linear-gradient(180deg, rgba(10, 11, 10, 0.1) 0%, rgba(10, 11, 10, 0.3) 20%, rgba(10, 11, 10, 0.8) 40%, rgba(10, 11, 10, 0.94) 58%, var(--bg) 100%); }
  .hero-id { position: relative; z-index: 1; padding: 92px 16px 4px; gap: 12px; align-items: center; }
  .hero-id > .av { --s: 58px !important; margin-top: 0; box-shadow: 0 0 0 3px rgba(10, 11, 10, 0.7), 0 10px 26px rgba(0, 0, 0, 0.55); }
  .hero-name { flex: 1 1 0; padding-top: 0; }
  .hero-name h1 { font-size: 21px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75); }
  .hero-name h1 span { color: var(--text-2); }
  .hero-chips .chip { background: rgba(10, 11, 10, 0.72); }
  .hero-act { width: 100%; padding-top: 2px; }
  .hero-act .ca { flex: 1; justify-content: space-between; }
  .tok-grid { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .tok-grid > .col-main, .tok-grid > .col-side { display: contents; }
  .tok-grid .card, .tok-grid .hero { order: 9; }
  .tok-grid .hero { order: 1; }
  .tok-grid .chart-card { order: 2; }
  .tok-grid .price-card { order: 3; }
  .tok-grid .tabs-card { order: 4; }
  .tok-grid .bonus-card { order: 5; }
  .tok-grid .vip-card { order: 6; }
  .tok-grid .info-card { order: 7; }
  .tok-grid .bot-card { order: 8; }
  .price-card .pc-top, .price-card .stack { display: none; }
  .hero-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; width: 100%; padding-top: 2px; }
  .hero-price b { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
  .hero-price .pill { align-self: center; }
  .hero-price small { width: 100%; color: var(--text-3); font-size: 12px; }
  .chart-card { margin-inline: -16px; border-radius: 0; border-inline: 0; }
  .ct-fullpage .chart-card { margin-inline: 0; }
  .ct-bar { gap: 6px; padding: 8px 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ct-bar::-webkit-scrollbar { display: none; }
  .ct-bar .ct-iv { display: none; }
  .ct-ivm { display: flex; margin: 8px 12px 10px; }
  .ct-ivm button { flex: 1; height: 34px; font-size: 13px; }
  .ct-stage { height: 340px; }
  .ct-lg { left: 10px; top: 8px; font-size: 10.5px; max-width: calc(100% - 70px); }
  .ct-lg1 b { font-size: 12px; }
  .ct-lg3 { display: none; }
  .ct-foot { display: none; }
  .trades .row { grid-template-columns: 76px minmax(0, 1fr) 84px; }
  .trades .row > span:first-child { white-space: nowrap; }
  .trades .c-paid, .trades .c-got, .trades .c-tx { display: none; }
  .trades .row { height: 50px; }
  .trades .rh { height: 32px; }
  .wal-t { display: flex; flex-direction: column; line-height: 1.3; }
  .m-paid { display: block; color: var(--text-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
  .mdock { display: block; position: sticky; bottom: 0; z-index: 40; }
  .mdock .paybar, .mdock .tabbar { position: static; }
  .mdock .paybar { padding-bottom: 10px; }
  .tradebar { display: flex; gap: 8px; position: sticky; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(17, 19, 17, 0.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .tradebar .btn-lime { flex: 1; height: 44px; font-size: 14px; }
  .tradebar .star { width: 44px; height: 44px; border-color: var(--line-2); }

  .found { grid-template-columns: minmax(0, 1fr) auto; }
  .paybar { display: flex; align-items: center; gap: 12px; position: sticky; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(17, 19, 17, 0.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .paybar .pb-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .paybar .pb-t b { font-size: 17px; color: var(--lime); font-weight: 800; }
  .paybar .pb-t small { color: var(--text-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .paybar .btn { margin-left: auto; height: 44px; padding: 0 18px; font-size: 14px; }
  .found-bn, .found .sparkcell { display: none; }
  .done-card { padding: 26px 16px 18px; }
  .done-act { flex-direction: column; width: 100%; }
  .done-act .btn { width: 100%; }
  .live-list { width: 100%; }
  .step .field { flex-wrap: nowrap; }
  .step .field input { flex: 1 1 0; }
  .found { gap: 10px; }
  .found-t b .muted { display: none; }
  .durs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .durs .dur:last-child { grid-column: 1 / -1; }
  .invoice { grid-template-columns: minmax(0, 1fr); }
  .qrbox { justify-self: center; }
  .bb-stats { gap: 6px; }
  .stat { padding: 10px; }
  .stat b { font-size: 17px; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; padding: 13px 14px; }
  .how > div > i { grid-row: 1 / 3; margin: 0; }
  .how > div > b, .how > div > p { grid-column: 2; }
  .bb-hero h1, .bot-hero h1 { font-size: 28px; }
  .lede { font-size: 14px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .fgrid > div { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; padding: 13px 14px; }
  .fgrid > div > svg { grid-row: 1 / 3; margin: 1px 0 0; }
  .fgrid > div > b, .fgrid > div > p { grid-column: 2; }
  .tdots { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; width: 100%; }
  .tdot { width: 100%; }
  .cmds { grid-template-columns: minmax(0, 1fr); }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes .t-note { margin-left: 0; width: 100%; }
  .tgw { font-size: 13.5px; }
  .tgw-b { padding: 10px 8px 12px; }
  .tg-row > .tgw-av { display: none; }
  .tg-kb { margin-left: 0; }
  .sec-h .seg { width: 100%; }
  .sec-h .seg button { flex: 1; }
  .showcase-top { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 20px 18px; min-height: 176px; align-content: center; }
  .cta-band > div { max-width: calc(100% - 104px); }
  .cta-band .bc-art { top: -10px; right: -72px; height: calc(100% + 64px); }
  .cta-band::after { background: linear-gradient(90deg, #111311 0%, rgba(17, 19, 17, 0.95) 30%, rgba(17, 19, 17, 0.7) 46%, rgba(17, 19, 17, 0.18) 62%, rgba(17, 19, 17, 0) 74%); }
  .steps { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .status i, .ll-s::before { animation: none; }
  .track i, .spot-card, .lcard, .opt, .dur, .brow { transition: none; }
  .live.pulse, .lv-dot, .tick-up, .tick-down { animation: none; }
}

/* ---------- shared: hidden, notices, inputs, the phones' search panel ---------- */
[hidden] { display: none !important; }
.btn-primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: var(--lime-hi); border-color: var(--lime-hi); }
.card-sub { font-size: 12px; color: var(--text-3); font-weight: 400; }
.notice { max-width: 560px; margin: 56px auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.notice h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }
.notice p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.notice-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
html.noscroll, html.noscroll body { overflow: hidden; }
.sov { position: fixed; inset: 0; z-index: 95; background: var(--bg); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
.sov-bar { display: flex; gap: 8px; align-items: center; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.sov-bar .search-box { flex: 1; height: 42px; }
.sov-bar .search-box input { font-size: 16px; }
.sp.sov-list { position: static; flex: 1; max-height: none; border: 0; border-radius: 0; box-shadow: none; background: var(--bg); padding: 6px max(10px, env(safe-area-inset-right, 0px)) 24px max(10px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.txt, .inp { width: 100%; background: var(--inset); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font: 14px/1.5 var(--font); padding: 9px 12px; font-variant-numeric: normal; }
.txt { resize: vertical; min-height: 84px; display: block; }
.txt:focus, .inp:focus { outline: none; border-color: var(--lime-line); }
.txt::placeholder, .inp::placeholder { color: var(--text-3); }
.chev { display: inline-flex; flex: none; transition: transform 0.2s ease; }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }

/* ---------- token page: the parts with live data ---------- */
.crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-3); margin: -4px 0 10px; }
.crumbs a:hover { color: var(--text); }
.crumbs > span:last-child { color: var(--text-2); }
.notice-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); border: 1px dashed var(--lime-line); background: var(--lime-soft); color: var(--text-2); }
.notice-bar b { color: var(--text); }
.chart-msg-static { margin: 0; padding: 16px; color: var(--text-3); text-align: center; }
.chart-card.is-full { position: fixed; inset: 0; z-index: 90; margin: 0; border: 0; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); }
.chart-card.is-full .ct-stage { flex: 1; height: auto; min-height: 0; }
.chart-card.is-full .ct-foot { display: flex; }
.tab-panel { min-width: 0; }
.about-body { padding: 14px 16px 4px; max-width: 78ch; }
.about-body h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; letter-spacing: -0.005em; }
.about-body h3 { margin: 16px 0 6px; font-size: 13px; font-weight: 700; }
.about-body .about { padding: 0; margin: 0; max-width: none; overflow-wrap: anywhere; }
.about-list { margin: 0; padding-left: 20px; color: var(--text-2); line-height: 1.6; display: grid; gap: 4px; overflow-wrap: anywhere; }
.claim { margin: 14px 16px 16px; }
.claim > div:first-child { flex: 1 1 280px; min-width: 0; }
.claim-act { display: flex; gap: 6px; flex-wrap: wrap; }
.trades.no-paid .row { grid-template-columns: 70px minmax(120px, 1.6fr) 120px 96px 28px; }
.trades .wal-t a:hover { color: var(--lime); }
.trades .v { font-weight: 600; }
.buys-note { padding: 0 14px 12px; margin: 10px 0 0; }
/* The Buys box: about ten buys in view, scrolling inside (older ones load near its end); the column names stay on top. */
.trades-scroll { position: relative; max-height: 452px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.trades-scroll:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.trades-scroll .rh { position: sticky; top: 0; z-index: 1; background: var(--raised); border-bottom: 1px solid var(--line); }
.trades-more { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; }
@media (max-width: 700px) { .trades-scroll { max-height: 507px; } }
.buys-empty { display: grid; gap: 6px; justify-items: center; padding: 26px 16px; }
.buys-empty b { color: var(--text); font-weight: 600; }
.buys-empty .btn { margin-top: 6px; }
.rows .r a { display: inline-flex; align-items: center; gap: 4px; }
.rows .r .ca-sm { font-weight: 500; }
.links-list { border-top: 1px solid var(--line); }
.links-list .lnk span { flex: none; font-weight: 500; }
.links-list .lnk small { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 11.5px; }
.links-list .lnk .ext { margin-left: 0; flex: none; color: var(--text-3); }
.plogo { position: relative; }
.plogo::before { content: attr(data-l); }
.plogo img { position: absolute; inset: 0; background: #0D0F0D; }
.vip-pitch { margin: 0; padding-top: 0; line-height: 1.55; }
.price-card .stack { padding-top: 12px; }

/* the Bonus Buys card (assets/bonus.js draws it): each pool's summary, its rules and proof folding open, and every
   bonus paid with its wallet and transactions */
.bb { padding: 14px 16px 16px; border-color: rgba(143, 224, 75, 0.28); background: radial-gradient(520px 160px at 0% 0%, rgba(143, 224, 75, 0.08), transparent 70%), var(--raised); }
.bb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.bb-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bb-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.bb-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); background: var(--raised-2); font-size: 11.5px; }
.bb-pill .led { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bb-pill.on { color: var(--lime-ink); background: var(--lime); border-color: var(--lime); }
.bb-pill.on .led { background: var(--lime-ink); animation: bbPulse 1.6s ease-in-out infinite; }
@keyframes bbPulse { 50% { opacity: 0.3; } }
.bb-lede { color: var(--text-2); margin: 6px 0 12px; }
.bb-pools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
.bb-pools.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bb-pool { border: 1px solid var(--line); border-radius: var(--r); background: var(--inset); padding: 12px 14px 2px; min-width: 0; }
.bb-pool.trending { border-color: rgba(240, 185, 11, 0.3); background: linear-gradient(160deg, rgba(240, 185, 11, 0.07), rgba(0, 0, 0, 0) 55%), var(--inset); }
.bb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bb-tag { font-size: 11px; font-weight: 600; color: var(--text-3); }
.bb-pool.trending .bb-tag { color: var(--amber); }
.bb-state { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-3); white-space: nowrap; }
.bb-state.live { width: auto; height: auto; display: inline-block; box-shadow: none; color: var(--lime); border-color: var(--lime-line); background: var(--lime-soft); }
.bb-state.paused { color: var(--amber); border-color: rgba(240, 185, 11, 0.4); }
.bb .bb-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; font-size: 13px; color: var(--text); }
.bb .bb-big b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--lime); }
.bb-pool.done .bb-big b { color: var(--text); }
.bb .bb-big span { font-weight: 600; }
.bb-how { margin: 2px 0 0; color: var(--text-2); font-size: 12.5px; }
.bb-bar { height: 5px; border-radius: 999px; background: var(--raised-2); margin-top: 10px; overflow: hidden; }
.bb-bar i { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.bb-pool.trending .bb-bar i { background: var(--amber); }
.bb-nums { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.bb-ends { color: var(--text); }
.bb-toggle { width: 100%; margin-top: 10px; padding: 9px 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-3); background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; text-align: left; }
.bb-toggle:hover, .bb-toggle:focus-visible { color: var(--text); }
.bb-toggle .lbl { flex: 1; }
.bb-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.26s ease; }
.bb-fold.open { grid-template-rows: 1fr; }
.bb-fold-in { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear 0.26s; }
.bb-fold.open .bb-fold-in { visibility: visible; transition: visibility 0s; }
.bb-pool .bb-pad { padding: 2px 0 12px; }
.bb-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 14px; margin: 0; font-size: 12.5px; line-height: 1.45; }
.bb-dl dt { color: var(--text-3); }
.bb-dl dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.bb-addr { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--text); word-break: break-all; }
a.bb-addr { border-bottom: 1px dashed var(--lime-line); }
a.bb-addr:hover { color: var(--lime); }
.bb-tx { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.bb-tx code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--lime); }
.bb-tx .go { color: var(--lime); }
a.bb-tx:hover code { text-decoration: underline; }
.bb-mini { font-size: 11px; font-weight: 600; color: var(--text-3); margin: 12px 0 6px; }
.bb-moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bb-moves li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 12.5px; }
.bb-moves time { color: var(--text-3); font-size: 11.5px; }
.bb-proof { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--inset); }
.bb-proof-btn { width: 100%; padding: 11px 12px; display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; color: var(--text); background: none; border: 0; border-radius: var(--r); cursor: pointer; text-align: left; }
.bb-proof-btn:hover { background: rgba(143, 224, 75, 0.04); }
.bb-proof-ic { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--lime-soft); color: var(--lime); display: grid; place-items: center; }
.bb-proof-btn .lbl { font-size: 13.5px; font-weight: 700; }
.bb-proof-sub { flex: 1; min-width: 150px; font-size: 12px; color: var(--text-3); }
.bb-proof-btn .chev { color: var(--text-3); margin-left: auto; }
.bb-proof .bb-pad { padding: 2px 12px 12px; }
.bb-tabs { display: inline-flex; gap: 2px; padding: 2px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); max-width: 100%; }
.bb-tab { font-size: 12px; font-weight: 600; color: var(--text-2); background: none; border: 0; border-radius: 6px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.bb-tab:hover { color: var(--text); }
.bb-tab[aria-selected="true"] { color: var(--text); background: var(--raised-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.bb-note { font-size: 12px; color: var(--text-3); margin: 0 0 2px; }
.bb-ledger, .bb-feed { list-style: none; margin: 0; padding: 0; }
.bb-ledger li { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.bb-ledger li:first-child { border-top: 0; }
.bb-pay-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.bb-amt { font-size: 14px; font-weight: 700; color: var(--lime); }
.bb-pay.lucky .bb-amt { color: var(--amber); }
.bb-usd { font-size: 12px; color: var(--text-3); }
.bb-badge { font-size: 10.5px; font-weight: 600; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 7px; }
.bb-badge.lucky, .bb-badge.trending { color: var(--amber); border-color: rgba(240, 185, 11, 0.35); }
.bb-pay-top time { margin-left: auto; color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
.bb-pay > .bb-addr { justify-self: start; }
.bb-pay-proof { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 14px; }
.bb-vest { font-size: 11.5px; color: var(--text-3); }
.bb-more { margin-top: 10px; }
.bb-feed li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.bb-feed li:first-child { border-top: 0; }
.bb-feed .ic { flex: none; width: 22px; text-align: center; }
.bb-feed .tx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bb-feed time { flex: none; color: var(--text-3); font-size: 11.5px; }
.bb-feed li.lucky .tx { color: var(--amber); font-weight: 600; }
.bb-of { display: inline-block; margin-right: 8px; font-size: 10.5px; font-weight: 600; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 7px; }
.bb-of.trending { color: var(--amber); border-color: rgba(240, 185, 11, 0.35); }

/* comments (full token pages; assets/comments.js) */
.cm { padding: 14px 16px 16px; }
.cm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cm-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.cm-count { flex: none; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.cm-form { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--inset); }
.cm-txt.txt { background: var(--raised); }
.cm-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cm-as { display: flex; align-items: center; gap: 8px; flex: 1 1 240px; min-width: 0; color: var(--text-3); font-size: 12px; }
.cm-as span { flex: none; }
.cm-name.inp { flex: 1; min-width: 0; max-width: 240px; height: 34px; padding: 0 10px; font-size: 13px; background: var(--raised); }
.cm-left { margin-left: auto; color: var(--text-3); font-size: 12px; }
.cm-left.low { color: var(--amber); }
.cm-hp { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.cm-msg { margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.cm-msg:empty { display: none; }
.cm-msg.ok { color: var(--lime); }
.cm-msg.bad { color: var(--down); }
.cm-rules { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }
.cm-list { list-style: none; margin: 6px 0 0; padding: 0; }
.cm-list li { display: flex; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); }
.cm-list li:first-child { border-top: 0; }
.cm-item.mine { animation: cmIn 0.35s ease; }
@keyframes cmIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cm-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--raised-2); color: var(--lime); }
.cm-main { flex: 1; min-width: 0; }
.cm-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cm-meta .cm-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.cm-time { color: var(--text-3); font-size: 11.5px; }
.cm-text { max-width: 80ch; margin: 3px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.cm-empty { margin: 12px 0 0; color: var(--text-3); }
.cm-more { width: 100%; margin-top: 10px; }

/* a basic page: the full page's shape greyed out behind the unlock card */
.tp-lock { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--inset); overflow: hidden; min-height: 520px; }
.tp-lock-ghost { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; filter: grayscale(1) blur(2px); opacity: 0.8; pointer-events: none; user-select: none; }
.tp-lock::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(620px 380px at 50% 50%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6) 80%); }
.g-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.g-tile, .g-box { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); }
.g-tile { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.g-tile span, .g-h { font-size: 11px; font-weight: 600; color: var(--text-3); }
.g-tile b { display: block; height: 14px; width: 70%; border-radius: 5px; background: #2E362D; }
.g-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.g-box { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.g-lines { display: flex; flex-direction: column; gap: 9px; }
.g-lines i { display: block; height: 9px; border-radius: 5px; background: #262D25; }
.g-lines i:nth-child(2n) { width: 86%; }
.g-lines i:nth-child(3n) { width: 62%; }
.g-chart svg { display: block; width: 100%; height: 130px; }
.g-chart path { fill: none; stroke: #4F6A47; stroke-width: 3; vector-effect: non-scaling-stroke; }
.tp-lock-card { position: relative; z-index: 1; max-width: 540px; margin: 56px auto; padding: 28px 24px 24px; text-align: center; background: rgba(12, 14, 12, 0.94); border: 1px solid var(--lime-line); border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lock-ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; background: var(--lime-soft); border: 1px solid var(--lime-line); color: var(--lime); display: grid; place-items: center; }
.lock-eyebrow { display: block; margin-bottom: 4px; color: var(--lime); font-size: 12px; font-weight: 600; }
.tp-lock-card h2 { margin: 0; font-size: clamp(20px, 3vw, 26px); line-height: 1.2; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.tp-lock-card p { max-width: 430px; margin: 10px auto 0; color: var(--text-2); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.lock-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; max-width: 460px; margin: 18px auto 0; padding: 0; text-align: left; }
.lock-list li { position: relative; padding-left: 22px; font-size: 13px; font-weight: 500; }
.lock-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--lime); font-weight: 800; }
.lock-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

@media (max-width: 1020px) {
  .tok-grid .hero, .tok-grid .notice-bar { order: 1; }
  .tok-grid .chart-card { order: 2; }
  .tok-grid .price-card { order: 3; }
  .tok-grid .bb { order: 4; }
  .tok-grid .tabs-card, .tok-grid .tp-lock { order: 5; }
  .tok-grid .cm { order: 6; }
  .tok-grid .vip-card { order: 7; }
  .tok-grid .info-card { order: 8; }
  .tok-grid .bot-card { order: 9; }
  .bb-pools.two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .tokpage .crumbs { display: none; }
  .tokpage { padding-top: 0; }
  .notice-bar { margin-top: 2px; }
  .trades.no-paid .row { grid-template-columns: 76px minmax(0, 1fr) 84px; }
  .g-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-lock-card { margin: 28px 12px; padding: 22px 16px 18px; }
  .lock-list { grid-template-columns: minmax(0, 1fr); max-width: 270px; }
  .txt, .inp, .cm-name.inp { font-size: 16px; }
  .bb { padding: 12px 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-fold, .bb-fold-in, .chev { transition: none; }
  .bb-pill.on .led, .cm-item.mine { animation: none; }
}

/* ---------- New listings (api/listings.js) ---------- */
.lst-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.lst-empty { display: grid; gap: 6px; justify-items: center; }
.lst-empty b { color: var(--text); font-weight: 600; }
.lc-flag { position: absolute; left: 8px; top: 8px; z-index: 1; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--lime); color: var(--lime-ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.lc-ch { font-weight: 600; }
.pstack span { position: relative; }
.pstack span[data-l]::before { content: attr(data-l); }
.pstack img { position: absolute; inset: 0; }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: default; pointer-events: none; }
.lst-cta { margin-top: 6px; }

/* ---------- Buy Trending (trend.html): the live checkout's parts ---------- */
.buy-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.buy-page .col-main { gap: 12px; }
.co-err { margin-top: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(246, 70, 93, 0.35); background: var(--down-soft); color: #FF8A99; font-size: 13px; }
.found .av { --ring: var(--inset); }
.found-nm { font-weight: 500; }
.opt.full { cursor: not-allowed; opacity: 0.6; }
.opt.full:hover { border-color: var(--line-2); }
.both { margin-top: 12px; }
.step-after .step-h { margin-bottom: 12px; }
.co-for { margin: -6px 0 14px; color: var(--text-2); }
.co-for b { color: var(--text); }
.inv-net { margin-top: 4px; }
.qrbox { margin: 0; }
.qrbox img { width: 152px; height: 152px; display: block; image-rendering: pixelated; }
.qrbox figcaption { color: #4A514A; font-size: 11px; font-weight: 600; text-align: center; line-height: 1.4; }
.co-qr-toggle { display: none; }
.promo .inp { height: 34px; padding: 0 10px; font-size: 13px; }
.co-promo-on { margin: 0; color: var(--lime); font-weight: 600; font-size: 12.5px; }
.co-msg { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.co-msg:empty { display: none; }
.co-msg.ok { color: var(--lime); }
.co-msg.bad { color: var(--down); }
.co-tg { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 12px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--text-2); font-size: 12.5px; }
.co-tg > span { flex: 1 1 260px; min-width: 0; }
.co-tg b { color: var(--text); }
.co-contact { display: grid; gap: 8px; }
.co-contact h3 { margin: 0; font-size: 14px; font-weight: 700; text-align: center; }
.co-contact .dm-lead { margin: 0; }
.co-contact-row { display: grid; gap: 6px; }
.co-contact-hint { color: var(--text-3); font-size: 12px; text-align: center; }
.co-or { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; }
.co-or::before, .co-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.co-or.lead::before { display: none; }
.co-mail-saved { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 8px; background: var(--inset); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; }
.co-mail-saved b { color: var(--text); overflow-wrap: anywhere; }
.co-ok { color: var(--lime); display: inline-flex; }
.done-card .note { margin: 4px 0 0; }
.sum-act { padding-top: 12px; }
.sum-act .note { margin: 0; }
@media (max-width: 700px) {
  .buy-page.co-paying .buy-head p, .buy-page .steps { display: none; }
  .co-qr-toggle { display: inline; }
  .invoice .qrbox { display: none; }
  .invoice.qr-open .qrbox { display: grid; }
  .co-for { margin-top: -4px; }
}
#tokenCard.found { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
#tokenCard .found-t small { gap: 2px 10px; }

/* ---------- Bonus Buys page (bonus.html, assets/bonuspage.js) ---------- */
.bb-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.pgrid > .pg-empty { grid-column: 1 / -1; display: grid; gap: 6px; justify-items: center; }
.pg-empty b { color: var(--text); font-weight: 600; }
.know-h { border-top: 1px solid var(--line); margin-top: 2px; }
.defaults span:first-child { color: var(--text-3); }
.defaults span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); flex: none; }
.pc-bn { display: block; }
.pc-top .tok-txt a:hover, .team-row a:hover, .fd-t a:hover { color: var(--lime); }
.team-row { cursor: default; }
.acard-logo.ex-logo { display: grid; place-items: center; color: var(--accent); font-size: 3.6cqw; font-weight: 800; }

/* ---------- Peak Bot page (bot.html) ---------- */
.bot-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }

/* ---------- the account button in the header (2026-11-19; hidden until assets/v2.js shows it) ---------- */
.hdr-acct { gap: 6px; }
.hdr-acct svg { color: var(--text-2); }
.hdr-acct.in { border-color: var(--lime-line); }
.hdr-acct.in svg { color: var(--lime); }
/* Up to 1100px wide the button is its icon (the label stays for screen readers): with the label, the header needed ~1,061px
   and scrolled sideways between 1,021 and 1,060px. The search box may shrink too (its field's own width held it at 244px). */
.search { min-width: 0; }
@media (max-width: 1100px) {
  .hdr-acct { width: 34px; padding: 0; }
  .hdr-acct span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- the header's account menu (2026-11-19, assets/v2.js): logged in, the person's photo and wallet balance; it
   opens their account at a glance (each chain's coin, both addresses, Deposit and Withdraw, the sections, Log out). On
   phones it opens as a panel across the screen under the header. ---------- */
.hw { position: relative; flex: none; }
.hw[hidden] { display: none; }
.hw-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 9px 0 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--raised); color: var(--text); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; }
.hw-btn:hover { background: var(--hover); border-color: #3B423B; }
.hw.open .hw-btn { border-color: var(--lime-line); background: var(--raised-2); }
.hw-btn .chev { color: var(--text-3); transition: transform 0.15s; flex: none; }
.hw.open .hw-btn .chev { transform: rotate(180deg); }
.hw-lbl { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.hw-lbl svg { color: var(--lime); flex: none; }
.hw-lbl b { font-weight: 700; }
.hw-av { --s: 26px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #1A2414; box-shadow: inset 0 0 0 1px rgba(143, 224, 75, 0.28); color: var(--lime); }
.hw-av b { font-size: calc(var(--s) * 0.44); font-weight: 800; line-height: 1; }
.hw-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hw-due { position: absolute; left: 23px; top: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px var(--raised); }
.hw-skel { display: inline-block; width: 58px; height: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--raised-2) 0%, #232923 50%, var(--raised-2) 100%); background-size: 200% 100%; animation: hw-skel 1.2s linear infinite; }
@keyframes hw-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.hw.busy .hw-ref svg { animation: hw-spin 0.8s linear infinite; }
@keyframes hw-spin { to { transform: rotate(360deg); } }

/* A coin or token logo (P.coinLogo): the site's own drawing for SOL, BNB, ETH, USDC and USDT (assets/coins), the copy Peak
   keeps of any other token's logo, else its letter on a colour. */
.cl { --s: 28px; width: var(--s); height: var(--s); border-radius: 50%; position: relative; flex: none; display: inline-grid; place-items: center; background: var(--bg-av, #2C3B2B); color: #EEF1ED; font-weight: 700; font-size: calc(var(--s) * 0.42); line-height: 1; }
.cl > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); pointer-events: none; }

.hw-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; width: 360px; max-height: min(86vh, 780px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; display: grid; gap: 8px; background: #0F110F; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7), 0 2px 0 rgba(255, 255, 255, 0.02) inset; }
.hw-menu[hidden] { display: none; }
.hw-load { padding: 26px 16px; color: var(--text-3); text-align: center; font-size: 12.5px; }

/* who */
.hw-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 8px 4px; }
.hw-head .hw-av { box-shadow: inset 0 0 0 1px rgba(143, 224, 75, 0.35), 0 0 0 3px rgba(143, 224, 75, 0.06); }
.hw-who { min-width: 0; line-height: 1.3; }
.hw-who b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -0.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-who small { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.hw-who small > span { overflow: hidden; text-overflow: ellipsis; }
.hw-who small i { flex: none; width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.hw-who small a { flex: none; color: var(--text-2); font-weight: 600; }
.hw-who small a:hover { color: var(--lime); }
.hw-adm { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid rgba(240, 185, 11, 0.32); background: rgba(240, 185, 11, 0.07); color: var(--amber); font-size: 11.5px; font-weight: 700; }
.hw-adm svg { width: 13px; height: 13px; }
.hw-adm:hover { border-color: rgba(240, 185, 11, 0.6); }

/* the balance */
.hw-bal { display: grid; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, rgba(143, 224, 75, 0.09), transparent 55%), #131613; }
.hw-bal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: -8px; }
.hw-bal-top span { color: var(--text-3); font-size: 12px; font-weight: 600; }
.hw-amt { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hw-ref { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 0; background: none; color: var(--text-3); cursor: pointer; }
.hw-ref:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.hw-note { margin: -6px 0 0; color: var(--amber); font-size: 11.5px; }
.hw-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hw-acts .btn { height: 38px; border-radius: 11px; font-weight: 700; gap: 7px; }
.hw-acts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hw-acts.three .btn { padding: 0 8px; }
.hw-warn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(240, 185, 11, 0.3); background: rgba(240, 185, 11, 0.07); color: var(--text); }
.hw-warn:hover { border-color: rgba(240, 185, 11, 0.6); }
.hw-warn > svg:first-child { color: var(--amber); }
.hw-warn > svg:last-child { color: var(--text-3); }
.hw-warn b { display: block; font-size: 12.5px; font-weight: 700; }
.hw-warn small { display: block; color: var(--text-2); font-size: 11.5px; }

/* what the wallets hold */
.hw-sec { display: grid; gap: 2px; padding: 4px 4px 0; }
.hw-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 6px 4px; }
.hw-sh span { color: var(--text-2); font-size: 12px; font-weight: 700; }
.hw-sh a { color: var(--text-3); font-size: 12px; font-weight: 600; }
.hw-sh a:hover { color: var(--lime); }
.hw-coins { list-style: none; margin: 0; padding: 0; display: grid; }
.hw-coins li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; min-height: 44px; padding: 5px 6px; border-radius: 10px; }
.hw-coins li.zero .hw-r { color: var(--text-3); }
.hw-c, .hw-r { min-width: 0; line-height: 1.3; }
.hw-c b { display: block; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-c small { display: block; color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-r { text-align: right; font-variant-numeric: tabular-nums; }
.hw-r b { display: block; font-size: 13px; font-weight: 700; }
.hw-r small { display: block; color: var(--text-3); font-size: 11.5px; white-space: nowrap; }

/* both addresses, each a button that copies it */
.hw-adrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 4px; }
.hw-adr { display: flex; align-items: center; gap: 8px; min-width: 0; height: 36px; padding: 0 10px 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--inset); color: var(--text); font: inherit; cursor: pointer; }
.hw-adr:hover { border-color: var(--line-2); background: #0B0C0B; }
.hw-adr code { flex: 1; min-width: 0; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-adr > svg { flex: none; color: var(--text-3); }
.hw-adr:hover > svg { color: var(--lime); }
.hw-tri { display: inline-flex; flex: none; }
.hw-tri .cl { box-shadow: 0 0 0 1.5px var(--inset); }
.hw-tri .cl + .cl { margin-left: -6px; }

/* the account's sections */
.hw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 4px 4px; border-top: 1px solid var(--line); }
.hw-tile { display: grid; justify-items: center; align-content: center; gap: 6px; min-width: 0; height: 60px; padding: 0 4px; border-radius: 12px; border: 1px solid var(--line); background: #131613; color: var(--text-2); font: 600 12px var(--font); cursor: pointer; text-align: center; }
.hw-tile svg { width: 18px; height: 18px; color: var(--text-3); }
.hw-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-tile:hover { border-color: var(--line-2); background: var(--hover); color: var(--text); }
.hw-tile:hover svg { color: var(--lime); }
.hw-tile.out:hover { border-color: rgba(246, 70, 93, 0.4); background: var(--down-soft); color: var(--down); }
.hw-tile.out:hover svg { color: var(--down); }
.hw-tile[disabled] { opacity: 0.5; cursor: wait; }
@media (min-width: 1021px) and (max-width: 1100px) {
  .hw-lbl { display: none; }
  .hw-btn { gap: 4px; padding: 0 7px 0 3px; }
}
@media (max-width: 700px) {
  /* a panel across the screen, between the header and the phones' tab bar */
  .hw-menu { position: fixed; left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); top: calc(env(safe-area-inset-top, 0px) + 60px); width: auto; max-height: calc(100vh - 140px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  .hw-menu { gap: 6px; padding: 6px; }
  .hw-bal { padding: 12px; gap: 10px; }
  .hw-amt { font-size: 26px; }
  .hw-acts .btn { height: 36px; }
  .hw-warn { padding: 8px 10px; }
  .hw-coins li { min-height: 40px; padding: 3px 6px; }
  .hw-grid { padding-top: 8px; }
  .hw-tile { height: 52px; gap: 4px; }
}
@media (max-width: 400px) {
  .hw-lbl { display: none; }
  .hw-btn { gap: 4px; padding: 0 7px 0 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-btn .chev { transition: none; }
  .hw-skel, .hw.busy .hw-ref svg { animation: none; }
}

/* ---------- public profiles (/u/handle, api/_account.js; redesigned 2026-11-19): a cover band with the photo over its
   edge, the name, handle and bio, four counts, then their projects (with their place on the trending list now) and their
   latest trending runs. ---------- */
.pf.wrap { max-width: 1000px; }
.pf-hero { margin-top: 8px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pf-cover {
  height: 136px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 150% at 0% 0%, rgba(143, 224, 75, 0.24), transparent 55%),
    radial-gradient(60% 120% at 100% 100%, rgba(143, 224, 75, 0.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(232, 235, 231, 0.03) 0 1px, transparent 1px 14px),
    #0C0F0C;
}
.pf-cover { position: relative; overflow: hidden; }
.pf-cover.has-img { width: 100%; height: auto; aspect-ratio: 3 / 1; }
.pf-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-main { padding: 0 24px 20px; }
.pf-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -56px; }
.pf-av { width: 112px; height: 112px; border-radius: 50%; flex: none; position: relative; overflow: hidden; display: grid; place-items: center; background: #1A2414; border: 1px solid var(--lime-line); box-shadow: 0 0 0 5px var(--raised); }
.pf-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-av b { font-size: 46px; font-weight: 800; color: var(--lime); }
.pf-acts { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.pf-main h1 { margin: 14px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.pf-h { margin: 4px 0 0; color: var(--text-3); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; }
.pf-h span { margin: 0 8px; color: var(--line-2); }
.pf-bio { margin: 12px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.65; max-width: 62ch; overflow-wrap: anywhere; }
.pf-stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pf-stats > div { padding: 14px 24px; min-width: 0; }
.pf-stats > div + div { border-left: 1px solid var(--line); }
.pf-stats dt { color: var(--text-3); font-size: 12px; }
.pf-stats dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.pf-sec { margin-top: 24px; }
.pf-sec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-sec-h h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.pf-sec-h span { color: var(--text-3); font-size: 12.5px; }
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pf-proj { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 10px; align-items: center; padding: 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.pf-proj:hover { background: var(--hover); border-color: var(--line-2); }
.pf-proj .tok-txt { min-width: 0; }
.pf-proj .tok-txt b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-proj .tok-txt small { display: block; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-tags { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.pf-runs { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pf-run { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; }
.pf-run + .pf-run { border-top: 1px solid var(--line); }
.pf-run:hover { background: var(--hover); }
.pf-run-t { min-width: 0; line-height: 1.35; }
.pf-run-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-run-t small { display: block; color: var(--text-3); font-size: 12px; }
.pf-run-d { color: var(--text-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-empty { margin-top: 24px; padding: 28px 16px; text-align: center; color: var(--text-3); background: var(--raised); border: 1px dashed var(--line-2); border-radius: var(--r); display: grid; gap: 12px; justify-items: center; }
.pf-empty p { margin: 0; font-size: 13.5px; }
@media (max-width: 900px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-stats > div:nth-child(3) { border-left: 0; }
  .pf-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pf-cover { height: 96px; }
  .pf-cover.has-img { height: auto; }
  .pf-main { padding: 0 16px 16px; }
  .pf-top { margin-top: -42px; }
  .pf-av { width: 84px; height: 84px; box-shadow: 0 0 0 4px var(--raised); }
  .pf-av b { font-size: 34px; }
  .pf-main h1 { font-size: 23px; }
  .pf-acts { width: 100%; }
  .pf-acts .btn { flex: 1 1 auto; }
  .pf-stats > div { padding: 12px 16px; }
  .pf-stats dd { font-size: 19px; }
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the swap (assets/swap.js, 2026-11-24): one box (a token page's card, its phone sheet, /swap's card), the
   token picker and /swap. The amounts are the box's big type; everything else stays quiet around them. ---------- */
.swap-card { overflow: visible; }
.sw { position: relative; display: block; padding: 12px; }
.sw-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sw-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--inset); border: 1px solid var(--line); border-radius: 11px; }
.sw-tabs button { height: 30px; min-width: 66px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--text-3); font-weight: 700; font-size: 13px; cursor: pointer; transition: color 0.15s, background-color 0.15s; }
.sw-tabs button:hover { color: var(--text); }
.sw-tabs button[data-sw="buy"][aria-selected="true"] { color: var(--lime); background: var(--lime-soft); }
.sw-tabs button[data-sw="sell"][aria-selected="true"] { color: var(--down); background: var(--down-soft); }
.sw-tools { position: relative; display: flex; align-items: center; gap: 2px; }
.sw-ring { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.sw-ring:hover { background: var(--raised-2); }
.sw-ring-i { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--lime) calc(var(--p, 1) * 360deg), var(--line-2) 0); -webkit-mask: radial-gradient(circle, transparent 3.6px, #000 4.2px); mask: radial-gradient(circle, transparent 3.6px, #000 4.2px); transition: background 0.3s; }
.sw-slip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.sw-slip:hover, .sw-slip[aria-expanded="true"] { color: var(--text); border-color: var(--line-2); background: var(--raised-2); }
.sw-sp { position: absolute; top: calc(100% + 6px); right: 0; z-index: 6; width: 268px; padding: 12px; border-radius: 12px; background: #141714; border: 1px solid var(--line-2); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6); }
.sw-sp-h { display: grid; gap: 2px; margin-bottom: 10px; }
.sw-sp-h b { font-size: 13px; }
.sw-sp-h span { font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
.sw-sp-opts { display: flex; gap: 5px; flex-wrap: wrap; }
.sw-sp-opts > button { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raised); color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.sw-sp-opts > button:hover { color: var(--text); }
.sw-sp-opts > button[aria-checked="true"] { color: var(--lime); border-color: var(--lime-line); background: var(--lime-soft); }
.sw-sp-c { display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--inset); color: var(--text-3); font-size: 12px; }
.sw-sp-c.on { border-color: var(--lime-line); color: var(--lime); }
.sw-sp-c input { width: 48px; background: none; border: 0; outline: 0; color: var(--text); font-size: 12px; font-weight: 600; text-align: right; }
.sw-sp-n { margin: 8px 0 0; font-size: 11.5px; color: var(--amber); }
.sw-sp-n:empty { display: none; }

/* the two sides: what you pay over what you receive */
.sw-f { position: relative; padding: 12px 14px 10px; border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.sw-f-in { padding-bottom: 20px; background: var(--inset); }
.sw-f-in:focus-within { border-color: rgba(143, 224, 75, 0.36); box-shadow: 0 0 0 3px rgba(143, 224, 75, 0.06); }
.sw-f-out { background: var(--raised-2); }
.sw-lab { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.sw-bal { display: inline-flex; align-items: center; gap: 5px; max-width: 66%; padding: 0; border: 0; background: none; color: var(--text-2); font-size: 12px; font-weight: 500; cursor: pointer; }
.sw-bal svg { flex: none; color: var(--text-3); }
.sw-bal span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-bal:hover, .sw-bal:hover svg { color: var(--lime); }
/* what is held of what is received: shown, not a button */
.sw-bal.sw-bal-r { cursor: default; }
.sw-bal.sw-bal-r:hover { color: var(--text-2); }
.sw-bal.sw-bal-r:hover svg { color: var(--text-3); }
.sw-line { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 6px 0 2px; }
.sw-amt, .sw-out { flex: 1; min-width: 0; height: 44px; padding: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 32px/44px var(--font); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.sw-amt.l, .sw-out.l { font-size: 26px; }
.sw-amt.xl, .sw-out.xl { font-size: 21px; }
.sw-amt.xxl, .sw-out.xxl { font-size: 17px; }
.sw-amt.x4, .sw-out.x4 { font-size: 14.5px; }
.sw-amt::placeholder { color: var(--text-3); opacity: 0.7; }
/* Max or a share being worked out: "Max…" until its number comes */
.sw-amt.sw-wait::placeholder { color: var(--lime); opacity: 0.75; }
.sw-amt:focus-visible { outline: 0; }
.sw-out { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-out.sw-zero { color: var(--text-3); opacity: 0.7; }
.sw-out.busy { animation: swPulse 1.1s ease-in-out infinite; }
@keyframes swPulse { 50% { opacity: 0.35; } }
.sw-f-in.short .sw-amt, .sw-f-in.short .sw-bal, .sw-f-in.short .sw-bal svg { color: var(--down); }
.sw-unit-w { display: flex; flex: none; max-width: 56%; }
.sw-unit { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raised-2); color: var(--text); font: 700 14px/1 var(--font); white-space: nowrap; }
.sw-f-out .sw-unit { background: var(--raised); }
.sw-unit b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.sw-unit .av, .sw-unit .cl, .sw-unit .sw-art { flex: none; }
.sw-unit > svg { flex: none; margin-left: -2px; color: var(--text-3); }
button.sw-unit { cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
button.sw-unit:hover { border-color: #46504A; }
.sw-tok.sw-none-yet { padding: 0 12px 0 16px; border-color: var(--lime); background: var(--lime); color: var(--lime-ink); }
.sw-tok.sw-none-yet > svg { color: var(--lime-ink); }
.sw-tok.sw-none-yet:hover { border-color: var(--lime-hi); background: var(--lime-hi); }
.sw-art { position: relative; display: inline-flex; flex: none; }
.sw-art > i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--dot); border: 2px solid var(--raised-2); }
.sw-f-out .sw-art > i, .sw-h .sw-art > i { border-color: var(--raised); }
.sw-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.sw-usd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--text-3); }
.sw-quick { display: flex; gap: 4px; margin-left: auto; }
.sw-quick button { height: 24px; min-width: 34px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--raised); color: var(--text-2); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.sw-quick button:hover { color: var(--text); border-color: var(--line-2); }
.sw-quick button.on { color: var(--lime); border-color: var(--lime-line); background: var(--lime-soft); }
.sw-mid { position: relative; z-index: 2; display: flex; justify-content: center; height: 4px; }
.sw-flip { position: absolute; top: -16px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 11px; border: 4px solid var(--raised); background: var(--raised-2); color: var(--text-2); cursor: pointer; transition: color 0.15s; }
.sw-flip:hover { color: var(--lime); }
.sw-flip.spin svg { animation: swFlip 0.32s ease; }
@keyframes swFlip { from { transform: rotate(0); } to { transform: rotate(180deg); } }
.sw-off .sw-f-out .sw-line output { opacity: 0.6; }

/* the price in one line, its details folded under it */
.sw-sum { margin-top: 8px; transition: opacity 0.15s; }
/* a price that no longer matches the amount typed, until the new one comes */
.sw-sum.stale { opacity: 0.45; }
.sw-sum[hidden] { display: none; }
.sw-sum-b { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 34px; padding: 0 6px 0 8px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font-size: 12.5px; text-align: left; cursor: pointer; }
.sw-sum-b:hover { background: var(--raised-2); color: var(--text); }
.sw-rate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-sum-r { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--text-3); }
.sw-sum-r svg { transition: transform 0.2s; }
.sw-sum-b[aria-expanded="true"] .sw-sum-r svg { transform: rotate(180deg); }
.sw-rows { display: grid; gap: 9px; margin: 4px 0 0; padding: 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--inset); }
.sw-rows[hidden] { display: none; }
.sw-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; }
.sw-rows dt { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); white-space: nowrap; }
.sw-rows dd { min-width: 0; margin: 0; color: var(--text-2); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.sw-rows dd small { font-weight: 500; }
.sw-rows .amber dd { color: var(--amber); }
.sw-rows .bad dd { color: var(--down); }
.sw-rows .route dd { font-weight: 500; }
.sw-q { display: inline-grid; place-items: center; width: 15px; height: 15px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--text-3); font-size: 10px; font-weight: 700; line-height: 1; cursor: pointer; }
.sw-q:hover { color: var(--text); border-color: var(--text-3); }
.sw-warns { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.sw-warns[hidden] { display: none; }
.sw-warns li { display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border-radius: 10px; background: var(--raised-2); color: var(--text-2); font-size: 12px; line-height: 1.45; }
.sw-warns li svg { flex: none; margin-top: 2px; }
.sw-warns li.amber { color: var(--amber); background: rgba(240, 185, 11, 0.09); }
.sw-warns li.bad { color: #FF8A9A; background: var(--down-soft); }
.sw-msg { margin-top: 8px; padding: 9px 11px; border-radius: 10px; background: var(--down-soft); color: #FF9AA8; font-size: 12px; line-height: 1.45; }
.sw-msg.soft { background: var(--raised-2); color: var(--text-2); }
.sw-confirm { margin-top: 8px; padding: 11px; border-radius: 12px; border: 1px solid rgba(246, 70, 93, 0.45); background: var(--down-soft); }
.sw-confirm p { display: flex; gap: 8px; margin: 0 0 10px; color: #FFB3BE; font-size: 12px; line-height: 1.45; }
.sw-confirm p svg { flex: none; margin-top: 2px; color: var(--down); }
.sw-confirm > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sw-go { margin-top: 10px; height: 52px; border-radius: 14px; font-size: 15px; font-weight: 700; transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s; }
.sw-go:not(:disabled):not(.sw-danger) { box-shadow: 0 10px 26px -14px rgba(143, 224, 75, 0.7); }
.sw[data-side="sell"] .sw-go:not(.sw-danger):not(:disabled) { background: var(--down); border-color: var(--down); color: #fff; box-shadow: 0 10px 26px -14px rgba(246, 70, 93, 0.75); }
.sw[data-side="sell"] .sw-go:not(.sw-danger):not(:disabled):hover { background: #FF5E72; border-color: #FF5E72; }
.btn.sw-danger, .sw-go.sw-danger { background: transparent; border-color: var(--down); color: var(--down); }
.btn.sw-danger:hover, .sw-go.sw-danger:hover { background: var(--down-soft); }
.sw-go:disabled { background: var(--raised-2); border-color: var(--line); color: var(--text-3); cursor: default; }
.sw-go.sw-busy::before { content: ""; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: hw-spin 0.8s linear infinite; }

/* after a trade */
.sw-res-in { display: grid; justify-items: center; gap: 4px; padding: 22px 6px 4px; text-align: center; }
.sw-res-in h3 { margin: 10px 0 2px; font-size: 17px; }
.sw-res-in p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.sw-res-in p.muted { color: var(--text-3); font-size: 12px; }
.sw-res-in p.sw-res-big { margin-top: 4px; color: var(--text); font-size: 15px; }
.sw-res-big b { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.sw-res-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; }
.sw-res-ic.ok { color: var(--lime); background: var(--lime-soft); box-shadow: 0 0 0 8px rgba(143, 224, 75, 0.05), 0 0 44px rgba(143, 224, 75, 0.22); }
.sw-res-in.done .sw-res-ic { animation: swPop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.25); }
@keyframes swPop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.sw-res-ic.bad { color: var(--down); background: var(--down-soft); }
.sw-res-ic.wait { background: var(--raised-2); }
.sw-res-ic.wait i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--lime); border-right-color: transparent; animation: hw-spin 0.9s linear infinite; }
.sw-tx { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--lime); font-size: 12.5px; font-weight: 600; }
.sw-tx:hover { text-decoration: underline; }
.sw-res-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 18px; }
.sw-res-acts .btn { height: 44px; border-radius: 12px; }
.sw-res-acts .btn:only-child { grid-column: 1 / -1; }

/* phones: the token page's Trade bar opens the box as a sheet */
html.sw-lock { overflow: hidden; }
.sw-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; }
.sw-sheet[hidden] { display: none; }
.sw-sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); }
.sw-sheet-in { position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--raised); border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation: swUp 0.24s ease-out; }
.sw-sheet-in::before { content: ""; display: block; width: 38px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: var(--line-2); }
.sw-sheet-h { position: sticky; top: 0; z-index: 7; display: flex; align-items: center; gap: 10px; padding: 6px 10px 2px 14px; background: var(--raised); }
.sw-sheet-h b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
@keyframes swUp { from { transform: translateY(28px); opacity: 0.5; } to { transform: none; opacity: 1; } }

/* the token picker (/swap): a dialog; full screen on phones */
.sw-pk { position: fixed; inset: 0; z-index: 95; display: flex; align-items: flex-start; justify-content: center; padding: max(64px, 9vh) 16px 16px; }
.sw-pk[hidden] { display: none; }
.sw-pk-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(3px); }
.sw-pk-in { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 468px; max-height: min(640px, 84vh); overflow: hidden; background: #0F110F; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); animation: swIn 0.18s ease-out; }
.sw-pk-in:focus { outline: 0; }
@keyframes swIn { from { transform: translateY(8px) scale(0.985); opacity: 0; } to { transform: none; opacity: 1; } }
.sw-pk-h { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 10px 4px 18px; }
.sw-pk-h h2 { margin: 0; font-size: 15px; font-weight: 600; }
.sw-pk-q { flex: none; display: flex; align-items: center; gap: 10px; height: 46px; margin: 8px 14px 0; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--inset); color: var(--text-3); }
.sw-pk-q:focus-within { border-color: rgba(143, 224, 75, 0.4); box-shadow: 0 0 0 3px rgba(143, 224, 75, 0.06); }
.sw-pk-q input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 14.5px; }
.sw-pk-q input::placeholder { color: var(--text-3); }
.sw-pk-q input::-webkit-search-cancel-button { display: none; }
/* the head, the search and the chips keep their size (only the list gives way on a short screen): squeezed, the chips row
   lost its padding and the line under it touched the chips (2026-11-25) */
.sw-pk-ch { flex: none; display: flex; gap: 6px; padding: 12px 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.sw-pk-ch::-webkit-scrollbar { display: none; }
.sw-pk-ch button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 7px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.sw-pk-ch button:hover { color: var(--text); }
.sw-pk-ch button[aria-pressed="true"] { color: var(--text); border-color: var(--lime-line); background: var(--lime-soft); }
.sw-pk-l { flex: 1; min-height: min(220px, 30vh); overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 10px; }
.sw-lh { margin: 12px 10px 4px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.sw-li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 11px; background: none; color: var(--text); text-align: left; cursor: pointer; }
.sw-li:hover, .sw-li:focus-visible { background: var(--raised-2); }
.sw-li:focus-visible { outline: 1px solid var(--lime-line); outline-offset: -1px; }
.sw-li-t { min-width: 0; line-height: 1.3; }
.sw-li-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.sw-li-t small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 12px; }
.sw-li-r { text-align: right; line-height: 1.3; white-space: nowrap; }
.sw-li-r b { display: block; font-size: 13px; font-weight: 600; }
.sw-li-r small { display: block; color: var(--text-3); font-size: 11.5px; }
.sw-li-r small.up { color: var(--up); }
.sw-li-r small.down { color: var(--down); }
.sw-li-a { font-size: 11.5px; color: var(--text-3); }
.sw-none { margin: 18px 12px; color: var(--text-3); font-size: 13px; line-height: 1.5; text-align: center; }
/* a pasted contract no chain Peak trades has */
.sw-unsup { display: grid; justify-items: center; gap: 6px; margin: 26px 16px 22px; text-align: center; }
.sw-unsup svg { box-sizing: content-box; width: 18px; height: 18px; padding: 10px; border-radius: 50%; color: var(--text-2); background: var(--raised-2); }
.sw-unsup b { margin-top: 4px; color: var(--text); font-size: 14px; font-weight: 600; }
.sw-unsup span { max-width: 36ch; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
.sw-unsup span:empty { display: none; }
.sw-sk { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px; }
.sw-sk i, .sw-sk b { display: block; background: var(--raised-2); animation: swPulse 1.2s ease-in-out infinite; }
.sw-sk i { width: 36px; height: 36px; border-radius: 50%; }
.sw-sk span { display: grid; gap: 6px; }
.sw-sk b { width: 38%; height: 11px; border-radius: 4px; }
.sw-sk b + b { width: 62%; height: 9px; }

/* /swap: the box alone, centred, with the latest trades under it */
.sw-page { padding-block: 32px 56px; background: radial-gradient(640px 380px at 50% 180px, rgba(143, 224, 75, 0.075), transparent 70%) no-repeat; }
.sw-stage { width: 100%; max-width: 468px; margin: 0 auto; }
.sw-stage[hidden] { display: none; }
.sw-card { background: var(--raised); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(143, 224, 75, 0.03); }
.sw-card.sw { padding: 14px; }
.sw-hist { margin-top: 22px; }
.sw-hist[hidden] { display: none; }
.sw-hist-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 6px 8px; }
.sw-hist-h h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.sw-hist-h a { font-size: 12px; color: var(--text-3); }
.sw-hist-h a:hover { color: var(--lime); }
/* the latest trades scroll inside their box (about four and a half rows), so the page keeps its height however many */
.sw-hist-b { max-height: 262px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding: 2px 6px; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; }
.sw-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 8px; }
.sw-h + .sw-h { border-top: 1px solid var(--line); }
.sw-h-t { min-width: 0; line-height: 1.35; }
.sw-h-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.sw-h-t small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 11.5px; }
.sw-h-e { display: inline-flex; align-items: center; gap: 2px; }
.sw-h .chip-amber { color: var(--amber); border-color: rgba(240, 185, 11, 0.35); background: rgba(240, 185, 11, 0.1); }
.sw-h .chip-bad { color: var(--down); border-color: rgba(246, 70, 93, 0.35); background: var(--down-soft); }
.sw-h .btn-icon { width: 30px; color: var(--text-2); }
.sw-h .btn-icon:hover { color: var(--lime); }
.sw-h .btn-icon svg { width: 16px; height: 16px; }
.sw-gate { display: grid; justify-items: center; gap: 10px; max-width: 468px; margin: 40px auto; padding: 32px 24px; text-align: center; background: var(--raised); border: 1px solid var(--line-2); border-radius: 20px; }
.sw-gate[hidden] { display: none; }
.sw-gate h2 { margin: 0; font-size: 18px; }
.sw-gate p { max-width: 42ch; margin: 0 0 4px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }

/* /swap: either side any chain's coin or token (its chain under its name); a cross-chain swap's steps in its result */
.sw-ttl { margin: 0; padding-left: 4px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.sw-unit.sw-u2 { height: 44px; padding: 0 10px 0 6px; }
.sw-u-t { display: grid; min-width: 0; gap: 2px; line-height: 1.05; text-align: left; }
.sw-u-t b { overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.sw-u-t small { overflow: hidden; text-overflow: ellipsis; color: var(--text-3); font-size: 11px; font-weight: 600; }
.sw-res-ic.part { color: var(--amber); background: rgba(240, 185, 11, 0.1); }
.sw-res-in p.sw-res-held { color: var(--text); }
.sw-steps { justify-self: stretch; display: grid; margin: 16px 0 0; padding: 2px 12px; list-style: none; text-align: left; background: var(--inset); border: 1px solid var(--line); border-radius: 12px; }
.sw-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 30px; padding: 9px 0; }
.sw-steps li + li { border-top: 1px solid var(--line); }
.sw-steps li > i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); color: var(--text-3); }
.sw-steps .st-done > i { border-color: transparent; background: var(--lime-soft); color: var(--lime); }
.sw-steps .st-failed > i { border-color: transparent; background: var(--down-soft); color: var(--down); }
.sw-steps .st-working > i { border-color: var(--lime); border-right-color: transparent; animation: hw-spin 0.9s linear infinite; }
.sw-steps .st-skipped { opacity: 0.45; }
.sw-steps li > span:not(.sw-st-l) { min-width: 0; }
.sw-steps b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 13px; font-weight: 600; }
.sw-steps small { display: block; color: var(--text-3); font-size: 11.5px; }
.sw-st-l a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--text-3); }
.sw-st-l a:hover, .sw-st-l a:focus-visible { color: var(--lime); background: var(--raised-2); }
.sw-st-l a svg { width: 14px; height: 14px; }

/* the box (2026-11-24): a token page's own token as a label (not a button); the small note a trade leaves, over the
   box's foot for a few seconds; the picker's "All chains" chip */
.sw { position: relative; }
.sw-unit.sw-fixed { cursor: default; }
.sw-toast { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 8; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 6px 10px 10px; border-radius: 14px; background: #141C16; border: 1px solid var(--lime-line); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.8); }
.sw-toast[hidden] { display: none; }
.sw-toast.in { animation: swToast 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.15); }
@keyframes swToast { from { opacity: 0; transform: translateY(10px); } }
.sw-toast-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--lime-ink); background: var(--lime); }
.sw-toast-t { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.sw-toast-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 13.5px; font-weight: 700; }
.sw-toast-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 12px; }
.sw-toast-a { display: inline-flex; align-items: center; gap: 4px; justify-self: start; margin-top: 2px; color: var(--lime); font-size: 12px; font-weight: 600; }
.sw-toast-a:hover, .sw-toast-a:focus-visible { text-decoration: underline; }
.sw-toast-a svg { width: 12px; height: 12px; }
.sw-toast-x { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--text-3); cursor: pointer; }
.sw-toast-x:hover, .sw-toast-x:focus-visible { color: var(--text); background: var(--raised-2); }
.sw-toast-x svg { width: 14px; height: 14px; }
.sw-pk-ch[hidden] { display: none; }
.sw-pk-all { display: grid; place-items: center; width: 18px; height: 18px; color: var(--text-2); }
.sw-pk-ch button[aria-pressed="true"] .sw-pk-all { color: var(--lime); }

@media (max-width: 600px) {
  .sw-page { padding-block: 16px 40px; }
  .sw-pk { padding: 0; }
  .sw-pk-in { max-width: none; max-height: none; height: 100%; border: 0; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); animation: none; }
}
@media (max-width: 400px) {
  .sw-amt, .sw-out { font-size: 28px; }
  .sw-unit-w { max-width: 52%; }
  .sw-unit.sw-u2 { gap: 6px; padding: 0 7px 0 4px; }
  .sw-quick button { min-width: 0; padding: 0 7px; }
}
/* Phones and tablets: an input under 16px makes iOS zoom the page in; the balance and the "?" easy to tap. */
@media (pointer: coarse) {
  .sw-pk-q input, .sw-sp-c input { font-size: 16px; }
  .sw-sp-c input { width: 52px; }
  .sw-amt.xxl, .sw-amt.x4 { font-size: 16px; }
  .sw-bal { min-height: 30px; padding: 4px 0; }
  .sw-q { position: relative; }
  .sw-q::after { content: ""; position: absolute; inset: -9px; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-sum { transition: none; }
  .sw-out.busy, .sw-go.sw-busy::before, .sw-res-ic.wait i, .sw-sk i, .sw-sk b, .sw-steps .st-working > i { animation: none; }
  .sw-flip.spin svg, .sw-res-in.done .sw-res-ic, .sw-sheet-in, .sw-pk-in, .sw-toast.in { animation: none; }
  .sw-sum-r svg { transition: none; }
}
