/* Flush layout (2026-11-28: "No gray padding. Make all groups maximize usable space by abutting them. Square corners.")
   Loaded last, so it wins over the older card look: no page colour between groups, groups touch and share one hairline,
   every corner is square. Only things that are round by nature (logos, chain icons, status dots, switch knobs, spinners)
   stay round. */

:root, :root[data-theme="dark"] { --radius: 0; --shadow: none; --bg: var(--panel); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: var(--panel); } }

*, *::before, *::after { border-radius: 0 !important; }
img, .tok-ic, .chain-ic, .chain-dot, .chain-pill img, .side-chain img, .tick img, .title-chain img, .wm-addr img, .wm-chainchip img,
.wm-dep-head img, .live-pill i, .fw-dot, .hd-dot, .mk-dot, .wm-dot, .name .dot, .m-bar.range .dot, .pf-legend i, .bb-g i, .ac-type i,
.spinner, .sf-ring::before, .hd-sw, .hd-sw::after, .wm-switch i, .wm-switch i::after, .dt-colors button, .sk.round, .rp-list li > i,
.mc-empty .es-ic, .cat-dot { border-radius: 50% !important; }

/* Page: no margins round the content, no centred max width. */
main { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.app, body { background: var(--panel); }
.foot { padding: 12px 16px; border-top: 1px solid var(--line); }

/* Groups touch: no gaps or outer margins; one hairline between neighbours. */
.panel, .board-scroll, .chart-card, .pp-head, .mc-cell, .ln-recent, .ac-card, .dk-side, .ph-card, .np-col, .np-panel, .tp-modal,
.dk-trade, .stat, .stat-card { box-shadow: none !important; }
.panel, .chart-card, .pp-head, .ac-card, .ph-card, .np-panel { margin: 0 !important; border-width: 0 0 1px 0; }
.board-scroll { border-width: 1px 0; }
.stats { gap: 0; margin: 0; border-bottom: 1px solid var(--line); }
.stats > * { border: 0 !important; border-right: 1px solid var(--line) !important; box-shadow: none !important; }
.stats > *:last-child { border-right: 0 !important; }
.mc-grid { gap: 0; } .mc-cell { border-width: 0 1px 1px 0; }
.np-bar { margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.np-cols { gap: 0; margin: 0; }
.np-col { border-width: 0 1px 0 0; max-height: calc(calc(100vh / var(--z, 1)) - 150px); } .np-col:last-child { border-right: 0; }
.np-panel { padding: 12px; }
.dk, .dk-body { gap: 0; }
.dk-side { margin: 0 !important; border-width: 0 0 0 1px; border-color: var(--line); }
.dk-sidetabs { margin: 0; border-bottom: 1px solid var(--line); background: var(--panel); padding: 0; gap: 0; }
.dk-sidetabs button { padding: 10px 12px; } .dk-sidetabs button.on { box-shadow: inset 0 -2px 0 var(--accent); background: var(--panel); }
.dk-scroll { padding: 0 !important; } .dk-scroll > * + * { margin-top: 0 !important; border-top: 1px solid var(--line); }
.dk-scroll > * { padding: 12px; }
.dk-trade { border: 0; padding: 12px; }
.dk-divider { background: var(--line); height: 5px; border: 0; }
.ticker { padding: 6px 12px; }
.status { margin: 0 !important; }

/* Lists and toolbars inside a group sit edge to edge. */
.ac-tabs, .chart-tools { border-radius: 0; }

/* Headings, tab rows and filter bars keep a thin inset so text never touches an edge; the groups themselves run full width. */
#view > *:not(.np-wrap):not(.np-cols):not(.board-scroll):not(.dk):not(.ph-card):not(.panel):not(.mc-grid):not(.stats):not(.np-bar):not(.np-panel):not(.chart-card):not(.ac-card):not(.pp-head) { padding-left: 12px; padding-right: 12px; margin-left: 0; margin-right: 0; }
#view > .page-head { padding-top: 10px; margin-bottom: 6px; }
#view > .note { margin: 0; padding-top: 8px; padding-bottom: 8px; }
.dk-scroll .sf-panel { border: 0; margin: 0; padding: 0; }
.dk-scroll .swap-box { margin: 8px 0; }
.dk-scroll > *:empty { display: none; }
#view > .hd, #view > .wm-card, #view > .pf-stats { padding-left: 0 !important; padding-right: 0 !important; }
.hd { gap: 0; } .hd-card { border-width: 0 0 1px 0; }
.pf-stats { gap: 0; } .pf-stats > * { border-width: 0 1px 1px 0 !important; }
.wm-deps { gap: 0; }
.hd > :not(.hd-card) { padding: 8px 12px; margin: 0; }


/* New pairs: one fixed row shape (2026-11-28: "All lines should have the same layout and everything should fit").
   Every row is two lines tall. Token: symbol + name / tax, badges, dex, socials. Each number has its detail beneath it.
   Checks: trust + the same five slots on every row / warning icons. Nothing wraps; the bonding curve is a ring on the avatar. */
.np-table { min-width: 1030px; }
.np-row { grid-template-columns: minmax(200px, 2.4fr) minmax(92px, 1.2fr) minmax(58px, 1fr) 56px 54px 46px 232px; gap: 0 8px; }
.np-row.head > .np-c0 { display: none; }
.np-table .np-row:not(.head) { height: 62px !important; }
.np-l0 { gap: 6px !important; height: 13px; font-size: 10.5px; line-height: 13px; }
.np-l0 .np-c0 { color: var(--muted); font-weight: 600; font-size: 10.5px; font-variant-numeric: tabular-nums; flex: none; }
.np-dex { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.np-nm { gap: 2px !important; }
.np-row.np-alt, .board .row:not(.head):nth-child(even) { background: var(--alt); }
.np-row:not(.head):hover, .board .row:not(.head):hover { background: var(--raise); }
.np-cols .np-row { grid-template-columns: minmax(0, 1fr) auto !important; }
.np-cols .np-c1 { grid-column: 1 !important; } .np-cols .np-c2 { grid-column: 2 !important; } .np-cols .np-c8 { grid-column: 1 !important; } .np-cols .np-qb { grid-column: 2 !important; }
@media (min-width: 901px) { .np-row:not(.head), .np-row.head { padding-right: 168px; } }
.np-table .np-row:not(.head) { height: 58px; min-height: 0; padding-top: 0; padding-bottom: 0; }
.np-row > span { min-width: 0; }
.np-c1 { gap: 10px; }
.np-nm { gap: 3px; } .np-nm > span { overflow: hidden; }
.np-l1 { gap: 0 !important; } .np-l1 strong { flex: 0 1 auto; max-width: 120px; min-width: 24px; } .np-l1 > .muted:not(.np-nme), .np-l1 .np-copies { flex: none; } .np-l1 .np-nme { flex: 1 1 0; min-width: 0; } .np-l1 .muted { margin-right: 6px; } .np-l1 .np-copies { margin: 0 6px 0 0; } .np-l1 .np-nme { font-size: 12px; }
.np-l2 { gap: 3px !important; font-size: 11px; height: 16px; } .np-l2 .dex-tag { margin-left: 2px; } .np-l2 .np-so { flex: none; display: inline-flex; align-items: center; gap: 2px; }
.eb-i { padding: 2px 3px; }
.np-ic .tok-ic { width: 32px; height: 32px; border-radius: 50% !important; }
.np-ic.ring { padding: 2px; border-radius: 50% !important; background: conic-gradient(var(--up) calc(var(--b) * 1%), var(--line-strong) 0); }
.np-ic.ring .tok-ic { box-shadow: 0 0 0 2px var(--panel); }
.np-c2, .np-c3, .np-c4, .np-c5, .np-c6, .np-c7 { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 0; white-space: nowrap; }
.np-row.head > span { display: block; }
.nv { line-height: 1.2; }
.ns { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; cursor: default; }
.ns.up { color: var(--up); } .ns.down { color: var(--down); }
.np-c8 { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex-wrap: nowrap; padding-left: 0; overflow: hidden; }
.np-sl { display: grid; grid-template-columns: 28px 36px 48px 36px 36px 36px; gap: 2px; }
.np-sl .sf { height: 18px; min-width: 0; }
.rs { justify-content: flex-start; padding: 2px 3px; height: 18px; overflow: hidden; } .rs.nil { opacity: .55; background: none; }
.rs .ri-g { margin-left: auto; }
.np-fl { display: flex; gap: 2px; height: 18px; overflow: hidden; } .np-fl .ri { padding: 1px 3px; }
@media (max-width: 900px) {
  .np-table { min-width: 0; }
  .np-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .np-table .np-row:not(.head) { height: auto !important; padding: 10px 12px; }
  .np-c8 { grid-column: 1 / -1; grid-row: 2; flex-direction: row; align-items: center; padding-left: 0; }
  .np-c3, .np-c4, .np-c6, .np-c7 { display: none; }
  .np-c2 { grid-column: 2; grid-row: 1; align-self: start; }
  .np-c5 { grid-column: 1 / 2; grid-row: 3; align-items: flex-start; flex-direction: row; gap: 8px; align-self: center; justify-self: start; padding-left: 34px; }
  .np-qb { grid-row: 3; grid-column: 2 / -1; }
  .np-c8 > span { flex: none; }
}

/* Wallet page tabs (2026-11-30): Profit and loss, Holdings, Transactions, Equity curve; the transfer warning on P/L. */
.wl-tabs { display: flex; gap: 6px; margin: 12px 0 8px; flex-wrap: wrap; }
.wl-tabs .m-view { display: inline-flex; align-items: center; gap: 6px; }
.wl-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin: 0 0 8px; border-radius: 3px; background: var(--hc-warn-bg); color: var(--hc-warn); font-size: 13px; line-height: 1.45; }
.wl-warn strong { font-weight: 600; } .wl-warn .ic { flex: none; margin-top: 2px; }
.wl-tx td.up { color: var(--up); } .wl-tx td.down { color: var(--down); }
.wl-eq-head { display: flex; gap: 28px; flex-wrap: wrap; padding: 14px 16px 6px; } .wl-eq-head > div { display: flex; flex-direction: column; gap: 2px; } .wl-eq-head strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.wl-eq { padding: 4px 12px 0; } .wl-eq-svg { display: block; width: 100%; height: auto; max-height: 280px; }
.wl-eq-zero { stroke: var(--line-strong); stroke-dasharray: 3 4; } .wl-eq-line { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; } .wl-eq-line.up { stroke: var(--up); } .wl-eq-line.down { stroke: var(--down); }
.wl-eq-lbl { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

/* Bookmarks (2026-11-30: "replace it with a bookmark icon on the far left. Animate hover and click"): the star became a
   bookmark everywhere (rows, Trending, coin pages). Muted until hovered; a pop and a blue fill when added, a shrink when removed. */
.np-row > .np-star:not(#_b1):not(#_b2) { position: static !important; transform: none !important; order: -1; opacity: .5; background: none !important; margin: 0; padding: 2px; justify-self: center; align-self: center; }
.np-row:hover > .np-star:not(#_b1):not(#_b2), .np-row > .np-star.on:not(#_b1):not(#_b2) { opacity: 1; }
:is(.p-star, .np-star, .pp-star) { color: var(--muted); transition: transform .14s cubic-bezier(.3, 1.6, .5, 1), color .12s; }
:is(.p-star, .np-star, .pp-star):hover { color: var(--text); transform: translateY(-1px) scale(1.15); }
:is(.p-star, .np-star, .pp-star).on { color: #5C93CD; } :is(.p-star, .np-star, .pp-star).on .ic path { fill: currentColor; }
:is(.p-star, .np-star, .pp-star).bm-pop .ic { animation: bmPop .38s cubic-bezier(.3, 1.6, .5, 1); }
:is(.p-star, .np-star, .pp-star).bm-drop .ic { animation: bmDrop .26s ease-out; }
@keyframes bmPop { 0% { transform: translateY(-6px) scale(.6); } 55% { transform: translateY(1px) scale(1.3); } 100% { transform: none; } }
@keyframes bmDrop { 0% { transform: scale(1); } 45% { transform: scale(.7); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { :is(.p-star, .np-star, .pp-star) .ic { animation: none !important; } :is(.p-star, .np-star, .pp-star):hover { transform: none; } }
.np-row.head > .np-bmh { display: block; }

/* Memescope cards (2026-11-30: option A "but make the layout neater, it's too smashed up now and no alignment"): one fixed
   three-line grid, the same on every card in every column. Picture (curve ring) on the left; then
     ticker + socials  bell  | MCAP
     age · launchpad         | V · TX
     holders · T10 · Dev     | quick buy (preset 1; Shift-click buys preset 2)
   Older rules for these cards stay in the files; this block outranks them (two ids). */
.np-cols .np-row:not(#_m1):not(#_m2) { display: grid !important; grid-template-columns: 20px 44px minmax(0, 1fr) auto !important; grid-template-rows: 20px 16px 26px !important;
  grid-template-areas: "bm pic n1 mc" "bm pic n2 vt" "bm pic n3 qb" !important; padding-left: 6px !important; gap: 3px 10px !important; align-items: center !important; padding: 10px 12px !important; height: auto !important; min-height: 0 !important; }
.np-cols .np-row:not(#_m1):not(#_m2) > .np-c1 { display: contents !important; }
.np-cols .np-row:not(#_m1):not(#_m2) > :is(.np-c0, .np-c3, .np-c4, .np-c5, .np-c6, .np-c7) { display: none !important; }
.np-cols .mz-pic { grid-area: pic; align-self: center; justify-self: center; }
.np-cols .mz-pic .tok-ic:not(#_m1) { width: 40px; height: 40px; font-size: 16px; }
.np-cols .mz-n1 { grid-area: n1; display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; white-space: nowrap; }
.np-cols .mz-n1 strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .np-cols .mz-n1 .p-fire { display: inline-flex; color: #FB923C; }
.np-cols .mz-n2 { grid-area: n2; display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; }
.np-cols .mz-n2 .np-c0 { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; } .np-cols .mz-n2 .np-dex { overflow: hidden; text-overflow: ellipsis; }
.np-cols .np-row:not(#_m1):not(#_m2) > .np-c2 { grid-area: mc !important; justify-self: end; align-self: center; display: flex !important; padding: 0 !important; }
.np-cols .np-row:not(#_m1):not(#_m2) > .np-c9 { grid-area: vt !important; justify-self: end; align-self: center; display: flex !important; flex-direction: row !important; align-items: center; gap: 4px; font-size: 11px; line-height: 16px; white-space: nowrap; }
.np-cols .np-row:not(#_m1):not(#_m2) > .np-c8 { grid-area: n3 !important; align-self: center; display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: 11px; min-width: 0; overflow: hidden; white-space: nowrap; padding: 0 !important; }
/* the bell and the first buy become cells of the card's grid; the second preset stays off the card (Shift-click buys it) */
.np-cols .np-row:not(#_m1):not(#_m2) > .np-qb { display: contents !important; }
.np-cols .np-row:not(#_m1):not(#_m2) > .np-qb > button.qb:not(.np-bell) { grid-area: qb; justify-self: end; align-self: center; height: 24px; }
.np-cols .np-row:not(#_m1):not(#_m2) > .np-qb > .qb2 { display: none !important; }
.np-cols .np-row:not(#_m1):not(#_m2) > .np-star { grid-area: bm; }
.mz-hold { display: inline-flex; align-items: center; gap: 3px; color: var(--text); font-variant-numeric: tabular-nums; } .mz-hold .ic { color: var(--muted); }
.mz-ck { font-weight: 600; font-variant-numeric: tabular-nums; } .mz-ck.ok { color: var(--hc-ok); } .mz-ck.warn { color: var(--hc-warn); } .mz-ck.bad { color: var(--hc-bad); }

/* Quick buy everywhere, the split key (2026-11-30, option E of 8): a candle-green bolt segment joined to a dark amount
   segment. Each place keeps its own height (rows 26-28 px, cards 24 px, coin page 34 px); the segments fill it. */
button.qb:not(.np-bell):not(#_q1):not(#_q2):not(#_q3):not(#_q4) { display: inline-flex; align-items: stretch; gap: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; text-shadow: none !important; color: var(--text) !important; border-radius: 4px !important; overflow: hidden; font-weight: 600; filter: none; }
button.qb:not(.np-bell):not(:disabled):active:not(#_q1):not(#_q2):not(#_q3):not(#_q4) { transform: translateY(1px) !important; }
.qb > .qb-b { display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; background: var(--d-buy); color: var(--d-buy-t); }
.qb > .qb-a { display: inline-flex; align-items: center; padding: 0 9px; background: var(--raise); color: var(--text); border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 4px 4px 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Hover is colour only (2026-11-30: "Fix hover events on QB, it glitches the whole group out"): an older rule lifted the button
   1 px on hover (the pointer at its edge then left it, and it dropped back: a flicker loop) and brightened the two-button group. */
button.qb:not(.np-bell):hover:not(#_q1):not(#_q2):not(#_q3):not(#_q4), .qb2:hover:not(#_q1):not(#_q2):not(#_q3):not(#_q4) { transform: none !important; filter: none !important; box-shadow: none !important; }
button.qb:not(.np-bell):not(:disabled):hover > .qb-a { border-color: var(--d-buy); background: color-mix(in srgb, var(--d-buy) 12%, var(--raise)); }
button.qb:not(.np-bell):not(:disabled):hover > .qb-b { background: color-mix(in srgb, var(--d-buy) 85%, #fff); }
.qb2:not(#_q1):not(#_q2):not(#_q3):not(#_q4) { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
button.qb:not(.np-bell) { min-height: 24px; } .board.pr.trb .p-buy button.qb { height: 28px; } /* places that set no height of their own */

/* Trending table (2026-11-30: option B plus sparklines, crowns and heat icons for ripping coins): rank (crowns on the top
   three), token in two lines (flame when ripping, ticker, socials, DEX paid / age · DEX), MCAP over liquidity, the last hour's
   line, volume over 24 h volume, trades over buys / sells, 1h, 24h with smart money under it, and a buy button that stays. */
.board.pr.trb .row:not(#_t1):not(#_t2) { grid-template-columns: 30px minmax(220px, 2.4fr) minmax(84px, 1fr) 80px minmax(86px, 1fr) minmax(84px, 1fr) minmax(62px, .8fr) minmax(80px, .9fr) 132px !important; gap: 0 10px !important; } /* last column fixed (2026-11-30): sized to its content, the header (no buy button) spread its columns wider than the rows' */ /* id weight + important: older .board.pr rules below still set columns */
.trb .p-crown { display: inline-flex; } .trb .p-crown .ic { stroke-width: 2.2; }
.trb .p-crown.c1 { color: #FACC15; } .trb .p-crown.c2 { color: #D1D5DB; } .trb .p-crown.c3 { color: #D97706; }
:root[data-theme="light"] .trb .p-crown.c1 { color: #CA8A04; } :root[data-theme="light"] .trb .p-crown.c2 { color: #9CA3AF; }
.trb .p-nmb { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.25; }
.trb .p-nmb .p-l1 { display: flex; align-items: center; gap: 5px; min-width: 0; } .trb .p-nmb .p-l1 strong { font-size: 14px; }
.trb .p-nmb .p-l2 { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trb .p-fire { display: inline-flex; color: #FB923C; } :root[data-theme="light"] .trb .p-fire { color: #EA580C; }
.trb .p-paid { font-size: 10.5px; font-weight: 600; padding: 0 5px; line-height: 16px; border-radius: 3px; background: var(--hc-ok-bg); color: var(--hc-ok); flex: none; }
.trb .p-bs { font-size: 11.5px; } .trb .p-sm { font-size: 11px; color: #C084FC; }
.trb .p-sph { text-align: center; }
.trb .p-spark { display: flex; justify-content: center; } .trb .p-spark .spark { width: 72px; height: 26px; }
.board.pr.trb .p-buy { position: static; transform: none; opacity: 1; pointer-events: auto; justify-self: end; margin-left: 6px; }
@media (max-width: 900px) {
  .board.pr.trb .row:not(#_t1):not(#_t2) { grid-template-columns: minmax(0, 1fr) 76px auto !important; }
  .board.pr.trb .row.head { display: none; } .board.pr.trb .p-rank, .board.pr.trb .p-buy, .board.pr.trb .row > .p-num:not(.p-sp):not(.p-mc):not(.p-h24) { display: none !important; }
  .board.pr.trb .row > .p-pair:not(#_t1) { grid-area: 1 / 1 / 3 / 2; }
  .board.pr.trb .row > .p-sp:not(#_t1) { display: flex; grid-area: 1 / 2 / 3 / 3; align-self: center; }
  .board.pr.trb .row > .p-mc:not(#_t1) { display: flex; grid-area: 1 / 3; justify-self: end; }
  .board.pr.trb .row > .p-h24:not(#_t1) { display: flex; grid-area: 2 / 3; justify-self: end; }
  .board.pr.trb .row > .p-meta:not(#_t1) { display: flex; grid-area: 3 / 1 / 4 / 4; }
}

/* New pairs table (2026-11-30): option B's token (curve ring, ticker + social icons / age · launchpad), C's MCAP, E's
   buys/sells bar, F's holders, C's heatmap checks plus Mint, Freeze and LP. Memescope's cards keep their own layout. */
:root, :root[data-theme="dark"] { --hc-ok-bg: #0E2A1E; --hc-ok: #34D399; --hc-warn-bg: #3A2A0B; --hc-warn: #FBBF24; --hc-bad-bg: #3B1219; --hc-bad: #FF6B7D; }
:root[data-theme="light"] { --hc-ok-bg: #DCFCE7; --hc-ok: #15803D; --hc-warn-bg: #FEF3C7; --hc-warn: #B45309; --hc-bad-bg: #FEE2E2; --hc-bad: #B91C1C; }
@media (prefers-color-scheme: light) { :root[data-theme="system"] { --hc-ok-bg: #DCFCE7; --hc-ok: #15803D; --hc-warn-bg: #FEF3C7; --hc-warn: #B45309; --hc-bad-bg: #FEE2E2; --hc-bad: #B91C1C; } }
.np-table .np-row { grid-template-columns: 26px minmax(200px, 2fr) 84px 124px 66px 330px; } /* 26 px: the bookmark, far left */
.np-table.bm-table .np-row { grid-template-columns: 26px minmax(180px, 1.6fr) 80px 84px 124px 66px 330px; } /* Bookmarked: + the last hour's line */
.bm-table .np-sp { display: flex; justify-content: center; } .bm-table .np-sp .spark { width: 72px; height: 26px; } .bm-table .np-sph { text-align: center; }
@media (max-width: 900px) { .bm-table .np-sp, .bm-table .np-sph { display: none; } }
.np-table .np-row > .np-c6, .np-table .np-row > .np-c7 { display: none !important; }
.np-b .np-l1 { display: flex; align-items: center; gap: 5px !important; } .np-b .np-l1 strong { font-size: 13.5px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.np-b .np-l0 { display: flex; align-items: center; gap: 4px !important; height: auto; font-size: 11px; } .np-b .np-dot { color: var(--muted); }
.np-si { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 3px; color: var(--muted); background: var(--raise); flex: none; font-size: 9px; cursor: pointer; }
.np-si:hover { color: var(--text); } .np-si b { font-weight: 700; }
.np-bs { display: inline-flex; align-items: center; gap: 6px; }
.np-bsbar { display: inline-flex; width: 72px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line-strong); }
.np-bsbar .b { background: var(--up); } .np-bsbar .s { background: var(--down); }
.np-bsn { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }
.np-hold { display: inline-flex; align-items: center; gap: 4px; } .np-hold .ic { color: var(--muted); }
.np-table .np-c8 { justify-content: center; }
.np-hm { display: grid; grid-template-columns: repeat(8, 38px); gap: 3px; }
.np-row.head .np-hm-h { display: grid; } .np-hm-h > span { font-size: 10.5px; text-align: center; cursor: help; }
.np-hc { display: flex; align-items: center; justify-content: center; height: 22px; border-radius: 3px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: default; white-space: nowrap; }
.np-hc.ok { background: var(--hc-ok-bg); color: var(--hc-ok); } .np-hc.warn { background: var(--hc-warn-bg); color: var(--hc-warn); } .np-hc.bad { background: var(--hc-bad-bg); color: var(--hc-bad); }
.np-hc.mu { background: var(--raise); color: var(--muted); }
@media (max-width: 900px) {
  .np-table .np-row:not(.head) { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
  .np-table .np-row > .np-star:not(#_b1):not(#_b2) { grid-column: 1; grid-row: 1; }
  .np-table .np-c1 { grid-column: 2 / 4; grid-row: 1; } .np-table .np-c2 { grid-column: 4; grid-row: 1; }
  .np-table .np-c8 { grid-column: 1 / -1; grid-row: 2; }
  .np-table .np-c4 { display: flex !important; grid-column: 2; grid-row: 3; flex-direction: row; align-items: center; justify-self: start; }
  .np-table .np-c5 { grid-column: 3; grid-row: 3; flex-direction: row; align-items: center; padding-left: 0; justify-self: end; }
  .np-table .np-qb { grid-column: 4; grid-row: 3; }
  .np-hm { grid-template-columns: repeat(8, minmax(0, 1fr)); width: 100%; }
}

/* Trending: the same fixed row shape (2026-11-28). Pair cell = three lines that never wrap: eyebrow (age, tax, badges,
   dex) / symbol, name, trust, tags / safety icons and flow. Age left the columns; everything fits without sideways scroll. */
.board.pr { min-width: 860px; }
.board.pr .row { grid-template-columns: 30px minmax(220px, 2.6fr) minmax(76px, 1fr) repeat(8, minmax(56px, 1fr)); gap: 0 8px; }
.board.pr .row:not(.head) { height: 64px; min-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; }
.board.pr .p-pair { min-width: 0; overflow: hidden; background: inherit !important; }
.board.pr .p-l1 > .p-sym { flex: 0 0 auto; max-width: 150px; } .board.pr .p-l1 > .p-name { flex: 1 1 0 !important; min-width: 0 !important; } .board.pr .p-l1 > :not(.p-sym):not(.p-name) { flex: none; order: 2; }
.board.pr .row { grid-template-columns: 30px minmax(250px, 3.4fr) minmax(88px, 1.1fr) repeat(8, minmax(54px, .85fr)) !important; }
.board.pr .p-nm { gap: 3px; overflow: hidden; }
.board.pr .p-nm > span { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; overflow: hidden; flex-wrap: nowrap; }
.board.pr .np-eb { margin: 0; height: 15px; }
.board.pr .p-l1 { gap: 6px; } .board.pr .p-l1 > .p-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 400; }
.board.pr .p-l3 { margin: 0; height: 18px; }
.board.pr .p-dex { font-size: 10.5px; flex: none; }
.np-age { font-size: 10.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; margin-right: 2px; }
.board.pr .p-num { white-space: nowrap; }
@media (max-width: 900px) {
  .board.pr { min-width: 0; }
  .board.pr .row:not(.head) { height: 72px; grid-template-columns: minmax(0, 1fr) auto !important; padding: 0 12px !important; }
  .board.pr .row > .p-rank { display: none !important; }
  .board.pr .p-pair { grid-area: 1 / 1 / 3 / 2; align-self: center; }
  .board.pr .p-nm { height: auto; flex-flow: column nowrap; line-height: 1.25; }
  .board.pr .p-l1, .board.pr .p-l2 { display: flex; }
  .board.pr .p-nm > .np-eb, .board.pr .p-nm > .p-l3 { flex: none; order: 0; }
  .board.pr .row > .p-meta { display: none; }
}

/* Memescope cards, GMGN-level detail (2026-11-29): bigger picture, short address, V / F / TX under market cap, two buy presets. */
.np-c9, .np-ca, .qb2 { display: none; }
.np-cols .np-row { grid-template-columns: minmax(0, 1fr) auto !important; grid-template-rows: auto auto auto; }
.np-cols .np-c1 { grid-row: 1 / 3; } .np-cols .np-c8 { grid-row: 3; align-self: end; }
.np-cols .np-c2 { grid-row: 1; } .np-cols .np-c9 { display: flex; flex-direction: column; align-items: flex-end; grid-column: 2; grid-row: 2; font-size: 11.5px; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-cols .np-c9 i { font-style: normal; color: var(--muted); }
.np-cols .np-c9 .bs-mini { display: inline-block; width: 26px; margin: 0 0 0 5px; vertical-align: middle; }
.np-cols .np-qb { grid-row: 3; align-self: end; display: flex; gap: 4px; }
.np-cols .qb2 { display: inline-flex; }
.np-cols .np-ic .tok-ic { width: 52px; height: 52px; font-size: 20px; }
.np-cols .np-c1 { display: flex; gap: 10px; align-items: flex-start; }
.np-cols .np-ca { display: inline; margin-left: 6px; color: var(--muted); cursor: copy; font-variant-numeric: tabular-nums; }
.np-cols .np-ca:hover { color: var(--text); }
.np-cols .np-c2 .ns { display: block; min-height: 1.35em; } /* every card the same height, peak line or not */
.np-cols .np-qb .qb { padding: 3px 7px; font-size: 11.5px; min-height: 0; height: 24px; }

/* Hover is instant app-wide (2026-11-29: "Make all hover events app wide instantaneous instead of a fade"). Only motion
   that isn't a hover effect keeps its transition: the phone menu slide, the sliding tab thumb, progress and bonding bars. */
*:not(.side):not(.scrim):not(.ut-thumb):not(.sg-thumb):not(.np-bond i):not(.lp-bar i), *::before, *::after { transition: none !important; }

/* Coin page top row, 3 px corners (2026-11-29): back button, chain/dex/age tags, timeframes, tools, indicators, marks,
   log, price/MCap and USD/quote switches, star/alert/watch buttons. */
.dk-back, .dk-bar .tp-tags > span, .dk-bar .chain-tag, .dk-bar .dex-tag, .dk-bar .boost-tag, .pp-actions > *, .pp-actions button,
.chart-tools .seg, .chart-tools .seg button, .chart-tools .ind-bar, .chart-tools .ind-bar button, .chart-tools button, .chart-tools .chip,
.chart-tools .ut, .chart-tools .ut button, .chart-tools .ut-thumb, .chart-tools .live-pill, .chart-tools .dt-menu { border-radius: 3px !important; }

/* Coin page runner (views/pair.js paintRunner): every piece of info in one scrolling row under the top bar; dropdowns for the
   long parts. The right side is the trade panel only. */
.dk-run { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--panel); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.dk-run::-webkit-scrollbar { display: none; }
.rn-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 3px; background: var(--raise); color: var(--text); font: inherit; font-size: 12px; text-decoration: none; cursor: default; }
.rn-chip strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.rn-chip.up strong { color: var(--up); } .rn-chip.down strong { color: var(--down); }
.rn-k { color: var(--muted); }
.rn-drop, .rn-link, .rn-ca { cursor: pointer; } .rn-drop:hover, .rn-link:hover, .rn-ca:hover, .rn-drop.on { border-color: var(--line-strong); background: var(--alt); }
.rn-caret { color: var(--muted); font-size: 10px; }
.rn-sf.ok { color: var(--up); } .rn-sf.warn { color: #F59E0B; } .rn-sf.bad { color: var(--down); }
.rn-pop { position: fixed; z-index: 60; width: 380px; max-height: calc(70vh / var(--z, 1)); overflow-y: auto; padding: 12px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
/* Live label as an overlay on the chart's top-left corner (2026-11-29). */
.chart-wrap { position: relative; }
.chart-live { position: absolute; top: 8px; left: 10px; right: 90px; z-index: 4; pointer-events: none; display: flex; align-items: center; gap: 10px; min-width: 0; }
/* TradingView-style legend line (2026-11-29: tooltip data in a line across the top, following the cursor) */
.chart-legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 2px; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; }
.chart-legend:empty { display: none; }
.chart-legend .cl-kv { display: inline-flex; align-items: baseline; gap: 4px; }
.chart-legend b { font-weight: 600; color: var(--text); } .chart-legend b.up { color: var(--up); } .chart-legend b.down { color: var(--down); }
.chart-legend .cl-sw { width: 8px; height: 2px; display: inline-block; align-self: center; }
.chart-live .live-pill { pointer-events: auto; background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--line); border-radius: 3px; padding: 2px 8px; font-size: 12px; }
/* Liquidity lock icon in the top bar: a ring that fills blue with the share locked (100% = full blue circle). */
.dk-stat { position: relative; }
.lk-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; margin-right: 5px; vertical-align: -4px; cursor: help;
  background: conic-gradient(var(--up) calc(var(--lk, 0) * 1%), var(--line-strong) 0); }
.lk-ic.unknown { background: var(--line-strong); }
.lk-in { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); color: var(--muted); }
.lk-in svg { width: 9px; height: 9px; }
.lk-pop { width: 340px; }

/* Buy / Connect wallet button: 5 px corners and depth so it begs to be clicked (2026-11-29). Blue on the buy side
   (connect included), gray on the sell side; a light top edge, a darker bottom edge, a soft glow; it rises on hover and
   presses in on click (instantly: hover is never a fade). */
.swap-box .swap-cta:not(:disabled), .lc .swap-cta:not(:disabled) {
  border-radius: 5px !important; height: 48px; font-size: 15.5px; font-weight: 700; letter-spacing: .01em; color: #fff !important; border: 1px solid #3F72AA !important;
  background: linear-gradient(180deg, #86B6E8 0%, #5C93CD 48%, #4C80BA 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 6px 18px rgba(92, 147, 205, .38), 0 2px 4px rgba(0, 0, 0, .35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.swap-box.sell .swap-cta:not(:disabled), .lc .swap-cta.sell:not(:disabled) {
  color: #111 !important; border-color: #A9A9A9 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  background: linear-gradient(180deg, #F2F2F2 0%, #D9D9D9 50%, #C4C4C4 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 6px 18px rgba(217, 217, 217, .18), 0 2px 4px rgba(0, 0, 0, .35);
}
.swap-box .swap-cta:not(:disabled):hover, .lc .swap-cta:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 10px 26px rgba(92, 147, 205, .5), 0 3px 6px rgba(0, 0, 0, .35); }
.swap-box.sell .swap-cta:not(:disabled):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 10px 26px rgba(217, 217, 217, .25), 0 3px 6px rgba(0, 0, 0, .35); }
.swap-box .swap-cta:not(:disabled):active, .lc .swap-cta:not(:disabled):active { transform: translateY(1px); filter: brightness(.97); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .3); }
/* Trade panel sections, 3 px corners (2026-11-29): Market/Limit, the swap box, Buy/Sell tabs, amount field, presets,
   slippage, limit-order boxes. The main button keeps its 5 px; round dots stay round. */
.dk-side :is(div, button, input, select, textarea, a, label):not(.swap-cta):not([class*="dot"]):not(.dk-side):not(.dk-scroll):not(.seg) { border-radius: 3px !important; }
/* Trade button label: "Buy | 0.5 SOL ($41.80)" (swap.js paintCta). */
.swap-cta { gap: 8px; }
.swap-cta .cta-sep { width: 1px; height: 16px; background: currentColor; opacity: .45; }
.swap-cta .cta-usd { opacity: .85; font-weight: 600; }
.swap-cta .cta-amt { display: inline-flex; align-items: center; gap: 6px; }
.swap-cta .cta-amt .tok-ic { width: 20px; height: 20px; border-radius: 50%; font-size: 11px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55); object-fit: cover; }
/* The trade's own state under the button (swap.js say()): working, confirmed, or what went wrong. */
.swap-stat { margin: 8px 0 0; padding: 7px 9px; border-radius: 3px; background: var(--alt); color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.swap-stat.ok { color: var(--ok); box-shadow: inset 2px 0 0 var(--ok); }
.swap-stat.bad { color: var(--text); box-shadow: inset 2px 0 0 var(--bad); }
.swap-stat a { margin-left: 6px; color: inherit; text-decoration: underline; }
/* Trending ticker chips (top line), the Podium look (2026-11-30, option C of 8): flat chips on the raised gray with 3 px
   corners; gold, silver and bronze crowns plus an orange flame on the top three, #N on the rest, an outlined age chip at the end.
   A lift on hover, pressed on click. Instant, as all hover. */
.ticker .tick { border-radius: 3px !important; cursor: pointer; background: var(--raise); border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); gap: 5px; }
.ticker .tick:hover { border-color: var(--muted) !important; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.ticker .tick:active { transform: translateY(0); box-shadow: none; }
.tick-crown, .tick-fire { display: inline-flex; } .tick-crown .ic { stroke-width: 2.2; } .tick-fire { margin-left: -2px; color: #FB923C; }
.tick-crown.c1 { color: #FACC15; } .tick-crown.c2 { color: #D1D5DB; } .tick-crown.c3 { color: #D97706; }
:root[data-theme="light"] .tick-crown.c1 { color: #CA8A04; } :root[data-theme="light"] .tick-crown.c2 { color: #9CA3AF; } :root[data-theme="light"] .tick-fire { color: #EA580C; }
.tick-age { border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 5px; font-size: 11px; line-height: 16px; color: var(--muted); font-weight: 500; }
/* 3 px corners on every list page (New pairs, Trending, Memescope, Perpetuals, Home, Callouts…) (2026-11-29): buttons,
   chips, filters, chain pills, tags, inputs, selects, quick buys, stat boxes. Pictures, dots, stars and switches stay round. */
#view :is(button, input, select, textarea, .chip, .btn, .seg, .qb, .np-so, .np-copies, .np-ca, .eb, .eb-tax, .sf, .ri, .rm, .tag, .badge, .p-dex, .dex-tag, .chain-tag, .boost-tag, .stat, .mk-stat, .np-panel, .panel, .np-pill, .hp-panel, .hp-tab, .cl-coin, .cl-card, .cl-input, .tick, .search, [class*="pill"], [class*="chip"], [class*="-tag"]):not(.tok-ic):not([class*="dot"]):not([class*="switch"]):not(.hd-sw):not(.p-star):not(.np-star):not(.m-star):not(.live-pill):not(.icon-btn):not(.swap-cta) { border-radius: 3px !important; }

/* Accounts (accounts.js): sign-in card, and the near-full-screen agreement that can't be skipped. */
.acct-btn { width: 100%; }
.acct-me { display: flex; align-items: center; gap: 8px; min-width: 0; }
.acct-av { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50% !important; background: var(--up); color: #fff; font-weight: 700; }
.acct-mail { min-width: 0; flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-scrim, .ag-scrim { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(0, 0, 0, .7); padding: 16px; }
.au-card { position: relative; width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px !important; padding: 26px 24px 20px; box-shadow: 0 24px 64px rgba(0, 0, 0, .55); }
.au-card h2 { margin: 0 0 4px; font-size: 21px; }
.au-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; }
.au-body { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.au-google { height: 44px; justify-content: center; gap: 10px; font-weight: 600; background: #fff !important; color: #111 !important; border-color: #fff !important; border-radius: 5px !important; }
.au-google:disabled { opacity: .55; }
.au-g { font-weight: 800; color: #4285F4; }
/* Sign in (2026-11-30): email, then Google / Apple / Facebook, then a wallet. Each provider button is its own colour; one not
   switched on yet is dimmed with a "Soon" tag. */
.au-prov { height: 44px; justify-content: center; gap: 10px; font-weight: 600; border-radius: 5px !important; position: relative; width: 100%; }
.au-prov:disabled { opacity: .5; cursor: default; }
.au-prov .au-mk { display: inline-flex; width: 20px; justify-content: center; font-weight: 800; font-size: 17px; }
.au-google:not(#_a1):not(#_a2):not(#_a3):not(#_a4) { background: #fff !important; color: #111 !important; border: 1px solid #fff !important; box-shadow: none !important; }
.au-apple:not(#_a1):not(#_a2):not(#_a3):not(#_a4) { background: #000 !important; color: #fff !important; border: 1px solid #3a3a3a !important; box-shadow: none !important; }
.au-facebook:not(#_a1):not(#_a2):not(#_a3):not(#_a4) { background: #1877F2 !important; color: #fff !important; border: 1px solid #1877F2 !important; box-shadow: none !important; }
.au-soon { position: absolute; right: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.au-wallet:not(#_a1):not(#_a2):not(#_a3):not(#_a4) { background: var(--d-blue) !important; color: #fff !important; border: 0 !important; box-shadow: 0 3px 0 var(--d-blue-e) !important; }
.au-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; } .au-or::before, .au-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.au-form { display: flex; flex-direction: column; gap: 8px; }
.au-lbl { font-size: 12px; color: var(--muted); }
.au-in { height: 42px; padding: 0 12px; background: var(--raise); color: var(--text); border: 1px solid var(--line-strong); border-radius: 3px !important; font: inherit; font-size: 15px; }
.au-code { letter-spacing: .4em; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.au-go { height: 44px; justify-content: center; border-radius: 5px !important; }
.au-link { background: none !important; border: 0 !important; color: var(--muted); justify-content: center; }
.au-msg { min-height: 1em; margin: 8px 0 0; color: var(--down); font-size: 13px; }
.au-fine a { color: var(--text); }
.ag-card { display: flex; flex-direction: column; width: min(980px, calc(94vw / var(--z, 1))); height: calc(90vh / var(--z, 1)); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; }
.ag-head { padding: 22px 28px 12px; border-bottom: 1px solid var(--line); } .ag-head h2 { margin: 0 0 4px; font-size: 24px; } .ag-head p { margin: 0; }
.ag-read { flex: 1; overflow-y: auto; padding: 18px 28px; }
.ag-read hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.ag-foot { padding: 14px 28px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; background: var(--raise); }
.ag-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; } .ag-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.ag-btns { display: flex; justify-content: flex-end; align-items: center; gap: 10px; } .ag-hint { margin-right: auto; }
.ag-accept { height: 44px; padding: 0 22px; border-radius: 5px !important; }
.ag-accept:not(:disabled) { background: linear-gradient(180deg, #86B6E8, #5C93CD 48%, #4C80BA) !important; color: #fff !important; border-color: #3F72AA !important; }
.lg-doc { max-width: 760px; line-height: 1.6; font-size: 14.5px; } .lg-doc h2 { font-size: 22px; margin: 0 0 2px; } .lg-doc h3 { font-size: 15.5px; margin: 20px 0 4px; } .lg-doc p, .lg-doc li { color: var(--text); } .lg-doc ul { padding-left: 20px; }
.lg-draft { border: 1px solid #F5B942; color: #F5B942 !important; background: color-mix(in srgb, #F5B942 10%, transparent); padding: 6px 10px; border-radius: 3px !important; font-size: 13px; }
.lg-page { padding: 24px 28px 60px; }
@media (max-width: 720px) { .ag-card { height: calc(94vh / var(--z, 1)); width: 100%; } .ag-head, .ag-read, .ag-foot { padding-left: 16px; padding-right: 16px; } }
/* Forced terms (terms.js): above everything, the app underneath can't be scrolled or clicked. */
html.tos-lock, html.tos-lock body { overflow: hidden !important; }
html.tos-lock body > :not(.tos-gate) { pointer-events: none !important; user-select: none !important; }
.ag-scrim.tos-gate { z-index: 2147483000 !important; background: rgba(0, 0, 0, .86); }
.tos-gate .ag-read:focus { outline: none; }
@media (max-width: 720px) { .tos-gate .tos-leave { display: none; } }
/* Instant buy buttons (⚡ 0.1 SOL), app-wide: same appeal as the trade button (2026-11-29). */
body button.qb.qb { border-radius: 5px !important; color: #fff !important; font-weight: 700; border: 1px solid #3F72AA !important; text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
  background: linear-gradient(180deg, #86B6E8 0%, #5C93CD 48%, #4C80BA 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 3px 10px rgba(92, 147, 205, .35), 0 1px 3px rgba(0, 0, 0, .35); }
body button.qb.qb:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 6px 16px rgba(92, 147, 205, .5), 0 2px 4px rgba(0, 0, 0, .35); }
body button.qb.qb:active:not(:disabled) { transform: translateY(1px); filter: brightness(.97); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .3); }
body button.qb.qb:disabled { opacity: .6; }

/* Token lists v5 (docs/plans/token-lists.md): price, MC, liquidity, txns, volume, holders, 4 changes, checks. */
.board.pr .row { grid-template-columns: 30px minmax(250px, 3fr) minmax(78px, 1fr) repeat(9, minmax(50px, .8fr)) 196px !important; }
.board.pr .p-ck { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.board.pr .pr-sl { display: grid; grid-template-columns: repeat(6, auto); gap: 4px; justify-content: end; }
.board.pr .p-hold .m-stack { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.sm-badge { font-size: 11px; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--text); white-space: nowrap; }
.pr-ca { font-variant-numeric: tabular-nums; }
.pl-more { min-width: 180px; justify-content: center; border-radius: 3px !important; }
.pv-card { position: fixed; z-index: 70; width: 330px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 14px 36px rgba(0, 0, 0, .5); pointer-events: none; font-size: 12.5px; }
.pv-head { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; } .pv-head .grow { flex: 1; }
.pv-chart { height: 80px; display: grid; place-items: center; background: var(--raise); border-radius: 3px; margin-bottom: 8px; overflow: hidden; }
.pv-chart svg { display: block; width: 100%; }
.pv-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; color: var(--muted); } .pv-rows b { color: var(--text); font-weight: 600; }
.pv-sf { margin: 8px 0 0; color: var(--muted); }

/* Chain picker (chainpicker.js): the one chain switch, near the bottom of the left panel. Opens upward, animated with
   keyframes (hover transitions are off app-wide). */
.side-chain-pick { padding: 8px 14px 0; margin-top: auto; }
.cp { position: relative; }
.cp-btn { display: flex; align-items: center; gap: 9px; width: 100%; height: 42px; padding: 0 12px; background: var(--raise); color: var(--text); border: 1px solid var(--line-strong); border-radius: 5px !important; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.cp-btn:hover, .cp.open .cp-btn { border-color: var(--up); }
.cp-cur { display: inline-flex; } .cp-ic { width: 18px; height: 18px; border-radius: 50% !important; flex: none; }
.cp-name { flex: 1; text-align: left; }
.cp-caret { color: var(--muted); font-size: 11px; display: inline-block; }
.cp.open .cp-caret { animation: cpFlip .18s ease forwards; }
.cp:not(.open) .cp-caret { animation: cpFlipBack .18s ease forwards; }
.cp-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 80; padding: 5px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px !important; box-shadow: 0 -10px 30px rgba(0, 0, 0, .45); transform-origin: bottom center; }
.cp-menu.cp-in { animation: cpIn .2s cubic-bezier(.2, .9, .3, 1.15) both; }
.cp-menu.cp-out { animation: cpOut .16s ease-in both; }
.cp-opt { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; background: none; border: 0; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; border-radius: 3px !important; cursor: pointer; }
.cp-opt:hover, .cp-opt:focus-visible { background: var(--raise); outline: none; }
.cp-opt.on { background: color-mix(in srgb, var(--up) 14%, transparent); }
.cp-tick { margin-left: auto; color: var(--up); font-weight: 700; }
.cp-menu.cp-in .cp-opt { animation: cpItem .22s ease both; }
.cp-menu.cp-in .cp-opt:nth-child(2) { animation-delay: .015s; } .cp-menu.cp-in .cp-opt:nth-child(3) { animation-delay: .03s; } .cp-menu.cp-in .cp-opt:nth-child(4) { animation-delay: .045s; }
.cp-menu.cp-in .cp-opt:nth-child(5) { animation-delay: .06s; } .cp-menu.cp-in .cp-opt:nth-child(6) { animation-delay: .075s; } .cp-menu.cp-in .cp-opt:nth-child(7) { animation-delay: .09s; } .cp-menu.cp-in .cp-opt:nth-child(8) { animation-delay: .105s; }
@keyframes cpIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes cpOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes cpItem { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes cpFlip { from { transform: rotate(0); } to { transform: rotate(180deg); } }
@keyframes cpFlipBack { from { transform: rotate(180deg); } to { transform: rotate(0); } }
.side-chain-pick + .side-bottom { margin-top: 10px; }
.board.pr .pr-ca { display: inline; margin-left: 6px; color: var(--muted); cursor: copy; } .board.pr .pr-ca:hover { color: var(--text); }

/* MCAP (2026-11-29): bold on every table (blue since 2026-11-30), $K/$M, left of Price; Trending and New pairs show MCAP / Liquidity in one cell. */
:root { --mcap: #5C93CD; } :root[data-theme="light"] { --mcap: #3A6A9E; } /* blue (2026-11-30: "the MC color should now be blue"); darker on light for contrast */
b.mcap, .mcap { color: var(--mcap) !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
.mcl { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.mcl-liq { font-size: 11.5px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.board.pr .row { grid-template-columns: 30px minmax(250px, 3fr) minmax(118px, 1.2fr) minmax(78px, 1fr) repeat(7, minmax(50px, .8fr)) 196px !important; } .board.pr .row.head > .p-mc { white-space: nowrap; overflow: visible; }
.np-row > .np-c3 { display: none !important; }
@media (max-width: 900px) {
  .board.pr .row:not(.head) { grid-template-columns: minmax(0, 1fr) auto auto !important; column-gap: 12px !important; }
  .board.pr .row > .p-num.p-mc { display: flex !important; grid-area: 1 / 2 / 3 / 3; align-self: center; }
  .board.pr .row > .p-p { grid-area: 1 / 3 !important; }
  .board.pr .row > .p-win { grid-area: 2 / 3 !important; }
}

/* Trade button while it can't be pressed yet ("Enter an amount", "Loading…", "Getting price…"): the same 5 px blue (gray on
   sell) button with depth, dimmed, instead of falling back to a flat gray block (2026-11-29). */
.swap-box .swap-cta:disabled, .lc .swap-cta:disabled {
  border-radius: 5px !important; height: 48px; font-size: 15.5px; font-weight: 700; letter-spacing: .01em; color: #fff !important; border: 1px solid #3F72AA !important;
  background: linear-gradient(180deg, #86B6E8 0%, #5C93CD 48%, #4C80BA 100%) !important; opacity: .55 !important; cursor: default;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 2px 4px rgba(0, 0, 0, .35); text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.swap-box.sell .swap-cta:disabled, .lc .swap-cta.sell:disabled {
  color: #111 !important; border-color: #A9A9A9 !important; text-shadow: none;
  background: linear-gradient(180deg, #F2F2F2 0%, #D9D9D9 50%, #C4C4C4 100%) !important;
}

/* Lock icon sits on the Liquidity label's line (2026-11-29: "NEXT TO the liquidity label"), round. */
.dk-stat > .lk-lbl { display: inline-flex !important; align-items: center; gap: 0; white-space: nowrap; }
.lk-lbl .lk-ic { width: 16px; height: 16px; margin-right: 5px; vertical-align: 0; border-radius: 50% !important; flex: none; } .lk-lbl .lk-in { width: 12px; height: 12px; border-radius: 50% !important; } .lk-lbl .lk-in svg { width: 8px; height: 8px; }

.hc-cl.hc-cl-fixed { position: fixed; z-index: 1000; max-height: calc(calc(100vh / var(--z, 1)) - 16px); overflow: auto; border-radius: 3px; }
/* Banners are pictures, not logos: the round-logo rule must not touch them (2026-11-29: "Don't circularize the banner"). */
.ti-banner img, .ti-banner img:is(*) { border-radius: 0 !important; }
/* Steady numbers in the coin bar and runner (2026-11-29): same-width digits, boxes never shrink back (pair.js steady()). */
.dk-bar .tp-price, .dk-bar .tp-native, .dk-bar .dk-stat strong, .dk-run .rn-chip strong { font-variant-numeric: tabular-nums; }
.dk-bar .tp-price, .dk-bar .dk-stat, .dk-run .rn-chip { flex-shrink: 0; }
/* The token chip: picture + name, first on the runner, opens the full stats. */
.rn-tok { gap: 6px; } .rn-tok-ic .tok-ic { width: 18px; height: 18px; font-size: 10px; } .rn-tok-n { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* RIPPING (2026-11-29): orange eyebrow with a flame, and the pair's title in orange. */
:root { --rip: #FF7A1A; }
.eb.rip { color: var(--rip) !important; border: 1px solid var(--rip) !important; background: color-mix(in srgb, var(--rip) 12%, transparent) !important; font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 3px; }
.eb.rip svg { color: var(--rip); fill: var(--rip); stroke: var(--rip); }
.rip-t strong, .rip-t > strong { color: var(--rip) !important; }
.dk-name h1 .dk-rip { display: inline-flex; vertical-align: middle; margin-left: 8px; } .dk-name h1 .dk-rip:empty { display: none; } .dk-rip .eb.rip { font-size: 10.5px; line-height: 1; padding: 3px 6px; }

/* Radii, app-wide (2026-11-29): every box is 3 px; a box that holds 3 px boxes gets 3 px + its padding, so the curves run
   parallel. Tooltips are 3 px too. The trade tab has no box-in-a-box: the Buy/Sell box sits flat in the panel. */
.hv-card { border-radius: 3px !important; }
.seg { border-radius: 6px !important; } .seg > * { border-radius: 3px !important; }          /* padding 3 px */
.rn-pop, .lk-pop { border-radius: 15px !important; }                                           /* padding 12 px */
.pv-card { border-radius: 13px !important; } .pv-card .pv-chart { border-radius: 3px !important; } /* padding 10 px */
.hc-cl.hc-cl-fixed { border-radius: 9px !important; } .hc-cl-r { border-radius: 3px !important; } /* padding 6 px */
.dk-side .swap-box { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 12px !important; margin: 0 !important; border-radius: 0 !important; }
.dk-side .seg.dk-mode { border-radius: 6px !important; }
/* Website / X chips: centred; X is just its logo. */
.rn-link { display: inline-flex !important; align-items: center; justify-content: center; gap: 5px; text-align: center; }
.rn-link.rn-x { min-width: 32px; padding-left: 8px !important; padding-right: 8px !important; font-size: 14px; line-height: 1; }
.rn-link svg { flex: none; }
#view .seg, #view .seg.dk-mode { border-radius: 6px !important; } #view .seg > * { border-radius: 3px !important; } /* outer = 3 px + 3 px padding */
#view .seg:not(#_r1):not(#_r2) { border-radius: 6px !important; } /* :not(#…) adds id weight: the broad 3 px rule above carries an id in its list */

/* Dropdowns look like tooltips (2026-11-29): same panel colour, the same 1 px strong border, no heavy shadow, 12-13 px text.
   Corners follow the nesting rule: items inside are 3 px, so the menu is 3 px + its padding. */
.rn-pop, .lk-pop, .dt-menu, .cp-menu, .ss-panel { background: var(--panel) !important; border: 1px solid var(--line-strong) !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .35) !important; color: var(--text); }
.hv-card { box-shadow: 0 6px 18px rgba(0, 0, 0, .35) !important; }
.rn-pop, .lk-pop { padding: 10px !important; border-radius: 13px !important; font-size: 12.5px; }   /* 3 px boxes inside + 10 px */
.dt-menu { padding: 5px !important; border-radius: 8px !important; font-size: 12.5px; }              /* 3 px rows + 5 px */
.dt-menu > *, .dt-menu button { border-radius: 3px !important; }
.cp-menu { padding: 5px !important; border-radius: 8px !important; } .cp-opt { border-radius: 3px !important; }
.ss-panel { padding: 5px !important; border-radius: 8px !important; } .ss-item { border-radius: 3px !important; }
.rn-pop :is(.ti-card, .st-row, .ti-grid > *, .ti-dev, .dk-others a) { border-radius: 3px !important; }
.dt-menu:not(#_r1):not(#_r2) { border-radius: 8px !important; } /* beats the older .chart-tools .dt-menu 3 px rule */

/* ------------------------------------------------------------ Phones (mobile plan, docs/plans/mobile.md) */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--panel) 94%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tb-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 50px; border: 0; background: none;
    color: var(--muted); font: inherit; font-size: 10.5px; font-weight: 600; text-decoration: none; border-radius: 3px !important; -webkit-tap-highlight-color: transparent; }
  .tb-item.on { color: var(--text); } .tb-item svg { width: 21px; height: 21px; }
  main, #view { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; } /* nothing hides behind the tab bar */
  .mbar { padding-top: env(safe-area-inset-top); height: calc(56px + env(safe-area-inset-top)) !important; }
  body.drawer .side { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  html, body { overscroll-behavior-y: none; }
}

/* Phone coin page (mobile plan): compact header, one-row chart controls, full-width chart, sticky Buy / Sell + trade sheet. */
.m-trade, .m-sheet-scrim, .m-sheet-grab { display: none; }
@media (max-width: 720px) {
  .dk-bar.pp-head { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px !important; }
  .dk-bar .dk-back { width: 32px; height: 32px; flex: none; }
  .dk-bar .tp-logo { flex: none; } .dk-bar .tp-logo .tok-ic { width: 30px; height: 30px; }
  .dk-bar .dk-name { flex: 1 1 0; min-width: 0; }
  .dk-bar .dk-name h1 { font-size: 17px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dk-bar .tp-tags { flex-wrap: nowrap; overflow: hidden; font-size: 10.5px; }
  .dk-bar .dk-price { flex: none; text-align: right; } .dk-bar .tp-price { font-size: 18px !important; }
  .dk-bar .dk-chg { flex: 1 1 100%; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .dk-bar > .dk-stat, .dk-bar .dk-stats > .dk-stat { flex: 1 1 22%; min-width: 0 !important; }
  .dk-bar .pp-actions { display: none !important; }
  .dk-bar .dk-stat > span { font-size: 10.5px; } .dk-bar .dk-stat strong { font-size: 13px; }
  .dk-run { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; } .dk-run::-webkit-scrollbar { display: none; }
  .chart-tools { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 6px !important; padding: 6px 10px !important; } .chart-tools::-webkit-scrollbar { display: none; }
  .chart-tools > * { flex: none !important; }
  .chart-foot { display: none !important; }
  .chart-live { right: 10px; } .chart-legend { font-size: 10.5px; gap: 6px; flex-wrap: nowrap; overflow: hidden; } .chart-legend .cl-sw, .chart-legend > .cl-kv:nth-of-type(n+6) { display: none; }
  /* sticky Buy / Sell above the tab bar */
  .m-trade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; z-index: 41; bottom: calc(58px + env(safe-area-inset-bottom)); padding: 8px 12px; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .m-trade button { height: 46px; border-radius: 5px !important; font: inherit; font-size: 15.5px; font-weight: 700; border: 1px solid transparent; }
  .m-buy { color: #fff; background: linear-gradient(180deg, #86B6E8 0%, #5C93CD 48%, #4C80BA 100%); border-color: #3F72AA !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.18), 0 4px 12px rgba(92,147,205,.35); }
  .m-sell { color: #111; background: linear-gradient(180deg, #F2F2F2 0%, #D9D9D9 50%, #C4C4C4 100%); border-color: #A9A9A9 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(0,0,0,.12); }
  .dk { padding-bottom: 70px; }
  /* the trade panel becomes a bottom sheet */
  .dk-side { position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 60; width: auto !important; margin: 0 !important; max-height: calc(88vh / var(--z, 1)); border: 1px solid var(--line-strong) !important; border-bottom: 0 !important;
    border-radius: 15px 15px 0 0 !important; background: var(--panel); transform: translateY(105%); display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
  body.m-sheet .dk-side { transform: none; animation: mSheetIn .22s cubic-bezier(.2, .9, .3, 1) both; }
  .dk-side .dk-scroll { overflow-y: auto; }
  .m-sheet-grab { display: block; flex: none; width: 44px; height: 5px; margin: 8px auto 2px; border: 0; border-radius: 3px !important; background: var(--line-strong); }
  .m-sheet-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(0, 0, 0, .45); }
  body.m-sheet .m-sheet-scrim { display: block; animation: mFade .2s ease both; }
  body.m-sheet .tabbar, body.m-sheet .m-trade { visibility: hidden; }
}
@keyframes mSheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes mFade { from { opacity: 0; } to { opacity: 1; } }

/* ================================================================ Buttons: pack D "Chunky 3D" (2026-11-29)
   Solid fills with a thicker darker bottom edge that presses down on tap. Blue = buy / primary / sign up; gray = sell;
   dark = everything else; light = a chip that's on. 5 px for the trade and sign-up buttons, 3 px for the rest.
   :not(#_dN) adds id weight so these win over the older blanket rules (the #view 3 px rule carries an id). */
:root, :root[data-theme="dark"] { --d-blue: #5C93CD; --d-blue-e: #3A6A9E; --d-sec: #2A2A2A; --d-sec-e: #141414; --d-on: #EDEDED; --d-on-e: #9A9A9A; --d-on-t: #111;
  --d-off: #1C1C1C; --d-off-e: #0A0A0A; --d-sell: var(--candle-down); --d-sell-e: color-mix(in srgb, var(--candle-down) 62%, #000); --d-sell-t: #2A0A10; --d-buy: var(--candle-up); --d-buy-e: color-mix(in srgb, var(--candle-up) 62%, #000); --d-buy-t: #052E1C; } /* the candles' own green and red (2026-11-30); dark text reads on the bright dark-theme shades */
:root[data-theme="light"] { --d-sec: #EFEFEF; --d-sec-e: #C9C9C9; --d-on: #1A1A1A; --d-on-e: #000; --d-on-t: #fff; --d-off: #F6F6F6; --d-off-e: #DCDCDC; --d-sell-t: #fff; --d-buy-t: #fff; }
@media (prefers-color-scheme: light) { :root[data-theme="system"], :root:not([data-theme]) { --d-sec: #EFEFEF; --d-sec-e: #C9C9C9; --d-on: #1A1A1A; --d-on-e: #000; --d-on-t: #fff; --d-off: #F6F6F6; --d-off-e: #DCDCDC; --d-sell-t: #fff; --d-buy-t: #fff; } }

/* blue: primary, sign in / connect */
:is(.btn.primary, .acct-btn):not(#_d1):not(#_d2):not(#_d3) {
  background: var(--d-blue) !important; color: #fff !important; border: 0 !important; border-radius: 5px !important; box-shadow: 0 3px 0 var(--d-blue-e) !important; text-shadow: none !important; filter: none; }
/* green: buy, quick buys (2026-11-30: "make the buy/sell buttons green and red too"; blue before) */
:is(.qb, .qb2, .m-buy):not(#_d1):not(#_d2):not(#_d3),
.swap-box:not(.sell) .swap-cta:not(#_d1):not(#_d2):not(#_d3), .lc .swap-cta:not(.sell):not(#_d1):not(#_d2):not(#_d3) {
  background: var(--d-buy) !important; color: var(--d-buy-t) !important; border: 0 !important; border-radius: 5px !important; box-shadow: 0 3px 0 var(--d-buy-e) !important; text-shadow: none !important; filter: none; }
/* red: sell, danger (gray before 2026-11-30) */
:is(.m-sell, .btn.danger):not(#_d1):not(#_d2):not(#_d3), .swap-box.sell .swap-cta:not(#_d1):not(#_d2):not(#_d3), .lc .swap-cta.sell:not(#_d1):not(#_d2):not(#_d3) {
  background: var(--d-sell) !important; color: var(--d-sell-t) !important; border: 0 !important; border-radius: 5px !important; box-shadow: 0 3px 0 var(--d-sell-e) !important; text-shadow: none !important; }
/* the big trade buttons: a deeper edge */
:is(.swap-cta, .m-buy, .m-sell):not(#_d1):not(#_d2):not(#_d3) { box-shadow: 0 4px 0 var(--d-buy-e) !important; }
:is(.m-sell):not(#_d1):not(#_d2):not(#_d3), .swap-box.sell .swap-cta:not(#_d1):not(#_d2):not(#_d3), .lc .swap-cta.sell:not(#_d1):not(#_d2):not(#_d3) { box-shadow: 0 4px 0 var(--d-sell-e) !important; }
/* dark: every other button */
:is(.btn:not(.primary):not(.danger), .icon-btn, .rn-drop, .rn-link, .rn-ca, .pl-more):not(#_d1):not(#_d2):not(#_d3) {
  background: var(--d-sec) !important; color: var(--text) !important; border: 0 !important; border-radius: 3px !important; box-shadow: 0 2px 0 var(--d-sec-e) !important; }
/* chips: off = quiet, on = light */
.chip:not(.on):not(#_d1):not(#_d2):not(#_d3) { background: var(--d-off) !important; color: var(--muted) !important; border: 0 !important; border-radius: 3px !important; box-shadow: 0 2px 0 var(--d-off-e) !important; }
:is(.chip.on, .seg > button.on, .seg > .on):not(#_d1):not(#_d2):not(#_d3) { background: var(--d-on) !important; color: var(--d-on-t) !important; border: 0 !important; border-radius: 3px !important; box-shadow: 0 2px 0 var(--d-on-e) !important; }
/* press, hover, disabled (instant: hover never fades in this app) */
:is(.btn, .icon-btn, .chip, .qb, .qb2, .swap-cta, .m-buy, .m-sell, .acct-btn, .rn-drop, .rn-link, .rn-ca, .pl-more, .seg > button):not(:disabled):active { transform: translateY(2px) !important; box-shadow: 0 1px 0 var(--d-sec-e) !important; }
:is(.btn.primary, .acct-btn):not(:disabled):active { box-shadow: 0 1px 0 var(--d-blue-e) !important; }
:is(.qb, .qb2, .swap-cta, .m-buy):not(:disabled):active { box-shadow: 0 1px 0 var(--d-buy-e) !important; }
:is(.m-sell, .btn.danger):not(:disabled):active, .swap-box.sell .swap-cta:not(:disabled):active, .lc .swap-cta.sell:not(:disabled):active { box-shadow: 0 1px 0 var(--d-sell-e) !important; }
:is(.btn, .icon-btn, .chip, .qb, .qb2, .swap-cta, .m-buy, .m-sell, .acct-btn, .rn-drop, .rn-link, .pl-more):not(:disabled):hover { filter: brightness(1.1); transform: none; }
:is(.btn, .chip, .swap-cta, .qb, .icon-btn):disabled:not(#_d1):not(#_d2):not(#_d3) { opacity: .55 !important; cursor: default; filter: none; }
.swap-cta:not(#_d1):not(#_d2):not(#_d3) { height: 48px; font-size: 15.5px; font-weight: 700; }
/* Buy / Sell tabs in the trade panel, pack D: blue for Buy, gray for Sell, dark when not picked */
.swap-tabs > button:not(#_d1):not(#_d2):not(#_d3) { background: var(--d-sec) !important; color: var(--muted) !important; border: 0 !important; border-radius: 3px !important; box-shadow: 0 2px 0 var(--d-sec-e) !important; font-weight: 600; }
.swap-tabs > button.buy.on:not(#_d1):not(#_d2):not(#_d3) { background: var(--d-buy) !important; color: var(--d-buy-t) !important; box-shadow: 0 3px 0 var(--d-buy-e) !important; }
.swap-tabs > button.sell.on:not(#_d1):not(#_d2):not(#_d3) { background: var(--d-sell) !important; color: var(--d-sell-t) !important; box-shadow: 0 3px 0 var(--d-sell-e) !important; }
/* Sidebar account area (2026-11-29): buttons stacked full width, the theme toggle beside them, nothing clipped. */
.side-bottom { align-items: flex-end !important; padding-bottom: 6px !important; }
.side-bottom #who { flex: 1; min-width: 0; overflow: visible !important; display: flex !important; flex-direction: column; align-items: stretch; gap: 8px !important; padding-bottom: 4px; }
.side-bottom #who > .btn { width: 100%; height: 36px; justify-content: center; }
.side-bottom #who > .acct-me { min-width: 0; }
.side-bottom > .icon-btn { flex: none; height: 36px; width: 36px; margin-bottom: 4px; }
:is(.acct-btn:not(.primary)):not(#_d1):not(#_d2):not(#_d3) { background: var(--d-sec) !important; color: var(--text) !important; box-shadow: 0 2px 0 var(--d-sec-e) !important; }

/* Card / row buy buttons (2026-11-29: "Do these buy buttons look good to you"): the container is just a row with gaps, each buy
   its own chunky blue button, the alert bell a small dark icon button (it isn't a buy). */
.np-qb:not(#_d1):not(#_d2):not(#_d3) { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; display: flex; gap: 6px !important; align-items: center; }
.qb.np-bell:not(#_d1):not(#_d2):not(#_d3) { background: var(--d-sec) !important; color: var(--muted) !important; box-shadow: 0 2px 0 var(--d-sec-e) !important; border-radius: 3px !important; padding: 0 7px !important; }
.qb.np-bell.on:not(#_d1):not(#_d2):not(#_d3) { background: var(--d-on) !important; color: var(--d-on-t) !important; box-shadow: 0 2px 0 var(--d-on-e) !important; }
.np-qb .qb:not(#_d1):not(#_d2):not(#_d3) { height: 26px; padding: 0 9px !important; font-size: 12px; gap: 4px; }

/* Phone lists (mobile plan step 4): coins on the first screen. Filters fold behind one button, the description and the scrolling
   ticker hide, the window buttons shrink, and every Trending card gets its quick-buy. */
.pl-ftog { display: none; }
@media (max-width: 720px) {
  .ticker { display: none !important; }
  .page-head .sub { display: none; }
  .page-head { margin-bottom: 6px !important; } .page-title { font-size: 19px !important; }
  .pl-top { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; }
  .pl-top .m-views { flex: 1 1 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .pl-top .m-views::-webkit-scrollbar { display: none; }
  .pl-top .seg { flex: 1; } .pl-top .seg button { height: 30px; font-size: 12.5px; }
  .pl-ftog { display: inline-flex; align-items: center; gap: 5px; height: 30px; }
  :not(.pl-open) > .pl-bar, :not(.pl-open) > .sc, :not(.pl-open) > .pl-sort { display: none !important; }
  .board.pr a.row .p-buy { display: flex !important; position: static !important; opacity: 1 !important; pointer-events: auto !important; transform: none !important;
    grid-area: 3 / 3 / 4 / 4; justify-self: end; align-self: center; margin-top: 4px; }
  .board.pr .row > .p-meta { grid-area: 3 / 1 / 4 / 3 !important; }
  .board.pr .row:not(.head) { height: auto !important; min-height: 72px; padding-top: 8px !important; padding-bottom: 8px !important; }
  .board.pr .p-buy .qb { height: 28px; padding: 0 10px !important; font-size: 12.5px; }
}

/* A drained pool: a red warning under the bar, the price and market cap greyed (they can't be traded). */
.dk-drained { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; padding: 8px 14px; background: color-mix(in srgb, #E5484D 14%, var(--panel)); border-bottom: 1px solid #E5484D; color: var(--text); font-size: 13px; }
.dk-drained[hidden] { display: none; } .dk-drained strong { color: #FF6B6B; }
.dk-bar.drained .tp-price, .dk-bar.drained .tp-native, .dk-bar.drained .dk-stat strong { color: var(--muted) !important; text-decoration: line-through; text-decoration-thickness: 1px; }

/* Chart marks (candles.js): a post's card shows the whole post, when, and market cap then vs now; a trade badge's card lists
   each trade in it (dollars, amount, price, market cap, wallet, time). Same card as callouts, 9 px outside, 3 px rows. */
.hc-cl-r.hc-cl-post { grid-template-columns: 24px minmax(0, 1fr); align-items: start; }
.hc-cl-n .hc-cl-t { white-space: pre-line; overflow: visible; overflow-wrap: anywhere; color: var(--text); margin: 3px 0 4px; line-height: 1.35; }
.hc-cl-n .hc-cl-m, .hc-cl-n .hc-cl-mc { white-space: normal; font-size: 11px; }
.hc-cl-n .hc-cl-mc { color: var(--text); margin-top: 2px; } .hc-cl-mc b { font-weight: 600; }
.hc-cl-n .hc-ver { font-style: normal; color: #5C93CD; font-weight: 700; }
.hc-mk-r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 5px 6px; color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; border-radius: 3px !important; }
a.hc-mk-r[href]:hover { background: var(--raise); }
.hc-mk-d { min-width: 0; } .hc-mk-d i { display: block; color: var(--muted); font-style: normal; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-cl-h .hc-mk-who { display: block; font-weight: 400; font-size: 11px; margin-top: 1px; } .hc-mk-c { padding-top: 3px; padding-bottom: 3px; }

/* No page titles (2026-11-30: "Get rid of the title and subtitle on every page… the tab does that"). A head that only
   holds buttons keeps them on the right; the Live pills moved into each page's first row. */
#view > .page-head.acts:not(#_h1) { justify-content: flex-end; padding-top: 10px; margin-bottom: 8px; }
.pl-top .pl-live { margin: 0 0 8px auto; align-self: center; }
.np-bar .live-pill { margin-left: 6px; }
.filters .live-pill { align-self: center; }

/* Sidebar (2026-11-30: "Combine the fastwallet card of D with the tabs of E"): chain picker in the header (opens down),
   the fast wallet card under search, tighter links with live counts (sidepanel.js). */
:root, :root[data-theme="dark"] { --hot: #FFB27A; }
:root[data-theme="light"] { --hot: #C2560C; }
@media (prefers-color-scheme: light) { :root[data-theme="system"], :root:not([data-theme]) { --hot: #C2560C; } }
.side-top { gap: 8px; }
.side-top .side-chain-pick:not(#_s1) { padding: 0; margin: 0 0 0 auto; }
.side-top .cp-btn:not(#_s1) { height: 30px; width: auto; padding: 0 8px; gap: 6px; }
.side-top .cp-name { display: none; }
.side-top:not(#_s1) { position: relative; }
.side-top .cp:not(#_s1) { position: static; }
.side-top .cp-menu:not(#_s1) { top: calc(100% + 2px); bottom: auto; left: 6px; right: 6px; width: auto; } /* anchored to the header: never clipped in the phone drawer */
.side:not(#_s1) > * { flex-shrink: 0; }
.side-top .cp-menu.cp-in:not(#_s1) { animation-name: cpInDown; }
.side-top .cp-menu.cp-out:not(#_s1) { animation-name: cpOutDown; }
@keyframes cpInDown { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes cpOutDown { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px) scale(.97); } }
.sw-card { border: 1px solid var(--line-strong); border-radius: 3px; background: var(--raise); padding: 9px 10px 10px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 2px; }
.sw-top { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.sw-top > .ic:first-child { color: var(--up); flex: none; }
.sw-name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sw-name:hover { color: var(--text); text-decoration: none; }
.sw-top .copy-btn { flex: none; padding: 0; background: none; border: 0; color: var(--muted); cursor: pointer; display: inline-flex; }
.sw-lock { margin-left: auto; flex: none; background: none; border: 0; padding: 2px; color: var(--muted); cursor: pointer; display: inline-flex; }
.sw-lock.open { color: var(--up); }
.sw-bal { font-size: 20px; font-weight: 600; letter-spacing: -.3px; line-height: 1.25; margin-top: 3px; font-variant-numeric: tabular-nums; }
.sw-sub { display: flex; gap: 8px; font-size: 12px; min-height: 16px; font-variant-numeric: tabular-nums; }
.sw-chg.up { color: var(--up); } .sw-chg.down { color: var(--down); } /* the wallet card's 24-hour change (2026-12-01) */
.sw-btns { display: flex; gap: 6px; margin-top: 7px; }
.sw-btns .btn:not(#_s1) { flex: 1; justify-content: center; height: 30px; }
.side-search:not(#_s1), .sw-card:not(#_s1) { border-radius: 3px !important; } /* 2026-11-30: the sidebar's cards at 3 px like the rest (beats the square-corners rule at the top) */
.side-nav a:not(#_s1) { height: 32px; font-size: 13.5px; }
.side-nav a .nl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Sidebar count badges = option E (2026-11-30): one quiet gray chip, colour only in the number; 3 px corners beat the square-corner rule. */
.nb { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; line-height: 16px; padding: 0 6px; border-radius: 3px !important; background: var(--raise); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.nb .ic { width: 11px; height: 11px; }
.nb-up { color: var(--up); }
.nb-hot { color: var(--hot); }
.nb-q { color: var(--muted); font-weight: 500; }
.nb-new { color: var(--d-blue); }
@media (max-height: 800px) { .side-nav a:not(#_s1) { height: 28px; } .sw-bal { font-size: 17px; } .sw-btns { margin-top: 5px; } }

/* Dummy mode (admin only, 2026-11-30): its own colour so it's never mistaken for paper or real trading. */
.paper-pill.dummy:not(#_p1) { background: #7C5CD6; }
.dummy-card.on:not(#_p1) { border-color: #7C5CD6; }
.sw-mode.dummy { background: #7C5CD6; }
.sw-mode { font-size: 10.5px; font-weight: 700; padding: 0 5px; border-radius: 3px; color: #fff; background: #B7791F; line-height: 16px; }

/* Tables held while hovered (Trending, New pairs, Memescope): "Paused" eyebrow, top right = option 1 (2026-11-30): the
   sidebar badges' gray chip with a hairline, blue pause icon and text, 3 px corners. */
.hv-paused:not(#_h1) { position: relative; }
.hv-paused:not(#_h1)::after {
  content: 'Paused'; position: absolute; top: 6px; right: 8px; z-index: 12; pointer-events: none;
  padding: 0 8px 0 21px; line-height: 18px; font-size: 11px; font-weight: 600;
  color: var(--d-blue, #5C93CD); border: 1px solid var(--line); border-radius: 3px !important;
  background: var(--raise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect x='1.5' y='1' width='2.4' height='8' rx='.6' fill='%235C93CD'/%3E%3Crect x='6.1' y='1' width='2.4' height='8' rx='.6' fill='%235C93CD'/%3E%3C/svg%3E") 8px center / 9px 9px no-repeat;
}

/* Coin page: ⚡ quick buy, bookmark, alert and multichart at the end of the info row (2026-11-30). They stay in view when the
   row scrolls sideways; the header no longer carries them (its Buy / Sell are for narrow screens only). */
.dk-run .rn-acts { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; position: sticky; right: 0; padding-left: 6px; background: var(--panel); }
.dk-run .rn-acts .qb:not(#_a1) { height: 26px; padding: 0; font-size: 12.5px; white-space: nowrap; }
.dk-run .rn-acts .pp-ic:not(#_a1) { width: 28px; height: 26px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.dk-run .rn-acts .pp-ic .ic { width: 15px; height: 15px; }
@media (min-width: 1100px) { body.desk .dk-bar .pp-actions:not(#_a1) { display: none !important; } }

/* 118% everywhere on wide screens (2026-11-30: "Zoom everything to 125%…", then 118%).
   boot.js adds .zoomable only where zoom works the standard way; js/zoom.js converts rects and pointers; viewport units in the
   stylesheets are divided by --z so full-height layouts still fit. Phones and narrow windows stay at 100%. */
@media (min-width: 1280px) { html.zoomable { zoom: 1.18; --z: 1.18; } } /* 125% first, then "dial back the zoom a little, say, 118%" */
/* Narrower layouts (a 1440 px window is 1152 page pixels at 125%): the New pairs / Bookmarked table tightens when its own
   width is short. Container queries measure in page pixels, so they stay right under zoom (media queries see the window). */
.paper-card .lz-check:not(#_z1) { white-space: normal; flex-wrap: wrap; } /* its note was one unbroken line wider than the window */
@media (min-width: 901px) {
  .np-wrap { container: np / inline-size; }
  @container np (max-width: 1040px) {
    .np-table:not(#_z1) { min-width: 0; }
    .np-table .np-row:not(#_z1) { grid-template-columns: 26px minmax(150px, 2fr) 76px 96px 56px 272px; }
    .np-table.bm-table .np-row:not(#_z1) { grid-template-columns: 26px minmax(140px, 1.6fr) 64px 76px 96px 56px 272px; }
    .np-table .np-hm:not(#_z1) { grid-template-columns: repeat(8, 31px); }
    .np-table .np-bsbar:not(#_z1) { width: 48px; }
    .bm-table .np-sp .spark { width: 56px; }
  }
}
/* Sidebar card: Deposit and Withdraw the same size (2026-11-30: "one is taller"): the blue primary style's deeper 3 px
   edge and 5 px corners are evened out to the plain button's 2 px edge and 3 px corners. */
.sw-btns .btn:not(#_e1):not(#_e2):not(#_e3):not(#_e4) { height: 30px !important; border-radius: 3px !important; box-sizing: border-box; }
.sw-btns .btn.primary:not(#_e1):not(#_e2):not(#_e3):not(#_e4) { box-shadow: 0 2px 0 var(--d-blue-e) !important; }
.adm-dummy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; } .adm-dummy .lz-check { white-space: normal; }

/* Home: "My positions" stacked on top of Top traders when there are open positions (2026-11-30). */
.hp-stack { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.hp-stack > .hp-panel { flex: 1 1 0; min-height: 0; }
.hp-stack > .hp-pos { flex: 0 1 auto; max-height: 46%; }
.hp-stack > .hp-pos[hidden] { display: none; }
.hp-posr { display: flex; align-items: center; gap: 8px; }
.hp-posr .hp-num { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.hp-posr .hp-num span { font-size: 11.5px; }
@media (max-width: 1400px) { .hp-stack { grid-column: span 1; } .hp-stack > .hp-panel { height: auto; min-height: 260px; } }
/* Positions: Orders tables */
.ps-orders td.ps-oacts { display: flex; gap: 4px; justify-content: flex-end; white-space: nowrap; }
.ps-orders tr.ps-ended td { opacity: .75; }

/* Coin page (2026-11-30): the top line never wraps (the 5m … Txns 24h stats scroll sideways among themselves), and the
   timeframe line scrolls sideways when it overflows. ui.js hScroll adds .hscroll and lets a mouse wheel scroll them. */
.hscroll:not(#_w1) { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.hscroll::-webkit-scrollbar { display: none; }
@media (min-width: 721px) {
  .pp-head.dk-bar:not(#_w1) { flex-wrap: nowrap; }
  .pp-head.dk-bar > :not(.dk-stats) { flex: none; }
  .dk-bar .dk-stats { display: flex; align-items: center; gap: 8px 20px; flex: 1 1 auto; min-width: 0; }
  .dk-bar .dk-stats > * { flex: none; }
  .dk .chart-tools:not(#_w1):not(#_w2) { flex-wrap: nowrap !important; }
  .dk .chart-tools:not(#_w1) > * { flex: none; }
  .dk .chart-tools:not(#_w1) .ind-bar { order: 0; width: auto; flex: none; mask-image: none; -webkit-mask-image: none; overflow: visible; }
}
@media (max-width: 720px) { .dk-bar .dk-stats { display: contents; } }
/* the wallet card opens the Wallet page (2026-11-30): it looks clickable */
.sw-card { cursor: pointer; } .sw-card:hover { border-color: var(--muted); } .sw-card:focus-visible { outline: 2px solid var(--d-blue); outline-offset: 1px; }

/* Coin page: the trade panel's left edge drags to resize it (2026-11-30); a thin line lights up on hover and while dragging. */
.dk-side-grip { display: none; }
@media (min-width: 1100px) {
  .dk-body > .dk-side-grip { display: block; flex: none; width: 7px; margin: 0 -3px; position: relative; z-index: 6; cursor: col-resize; touch-action: none; }
  .dk-side-grip::after { content: ''; position: absolute; top: 0; bottom: 0; left: 3px; width: 1px; background: transparent; transition: background .12s; }
  .dk-side-grip:hover::after, .dk-side-grip.on::after, .dk-side-grip:focus-visible::after { background: var(--d-blue); width: 2px; left: 2px; }
  .dk-side-grip:focus-visible { outline: none; }
}

/* Off / On toggles app-wide (2026-11-30, option 3 of 8): toggles.js puts a .rtg skin after every checkbox; the highlight
   slides with a small overshoot (one of the few motions left in this app). Confirm ticks and pick lists (data-check) are square
   3 px checkboxes. Id weight beats the square-corner and no-transition rules at the top of this file. */
input.rtg-in:not(#_t1) { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; pointer-events: none; }
.rtg:not(#_t1) { position: relative; flex: none; display: inline-grid; grid-template-columns: 1fr 1fr; width: 70px; height: 22px; box-sizing: border-box;
  border: 1px solid var(--line-strong); border-radius: 5px !important; background: var(--raise); font-size: 10.5px; font-weight: 600; line-height: 1;
  cursor: pointer; user-select: none; vertical-align: middle; }
.rtg:not(#_t1)::before { content: ''; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 3px); border-radius: 3px !important;
  background: var(--line-strong); transition: transform .26s cubic-bezier(.34, 1.45, .64, 1), background-color .2s !important; }
.rtg:not(#_t1) > span { position: relative; display: grid; place-items: center; color: var(--muted); transition: color .2s !important; }
input:checked + .rtg:not(#_t1)::before { transform: translateX(calc(100% + 2px)); background: var(--d-blue); }
input:not(:checked) + .rtg:not(#_t1) > span:first-child { color: var(--text); }
input:checked + .rtg:not(#_t1) > span:last-child { color: #fff; }
input:disabled + .rtg:not(#_t1) { opacity: .45; cursor: not-allowed; }
input:focus-visible + .rtg:not(#_t1) { outline: 2px solid var(--d-blue); outline-offset: 2px; }
.rtg:not(#_t1):active::before { transform: scaleX(.92); }
input:checked + .rtg:not(#_t1):active::before { transform: translateX(calc(100% + 2px)) scaleX(.92); }
.lz-check:has(> .rtg):not(#_t1), .hd-tg:has(> .rtg):not(#_t1) { gap: 9px; }
.fw-check:has(> .rtg):not(#_t1) { display: block; line-height: 22px; } .fw-check > .rtg:not(#_t1) { margin-right: 9px; vertical-align: top; }
.wm-tg { display: inline-flex; vertical-align: middle; cursor: pointer; }
input[type="checkbox"][data-check]:not(#_t1) { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; flex: none; margin: 0; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 3px !important; background: var(--raise) center / 12px 12px no-repeat; box-shadow: none; cursor: pointer;
  transition: background-color .15s, border-color .15s !important; }
input[type="checkbox"][data-check]:checked:not(#_t1) { background-color: var(--d-blue); border-color: var(--d-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3L9.6 3.6' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input[type="checkbox"][data-check]:focus-visible:not(#_t1) { outline: 2px solid var(--d-blue); outline-offset: 2px; }
.ag-check input[type="checkbox"][data-check]:not(#_t1) { width: 18px; height: 18px; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .rtg:not(#_t1)::before, .rtg:not(#_t1) > span { transition: none !important; } }

/* Open P/L eyebrow, top right of the coin chart (2026-11-30, option 1): gray chip with a hairline, "Open" muted, the
   signed dollars in green / red, the % in brackets with no sign, thin, same colour. pair.js .chart-pnl, numbers from swap.js. */
.chart-live .chart-pnl:not(#_p1) { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; line-height: 20px;
  font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--raise); border: 1px solid var(--line); border-radius: 3px !important; }
.chart-live .chart-pnl[hidden]:not(#_p1) { display: none; }
.chart-pnl .cp-k { color: var(--muted); font-weight: 500; }
.chart-pnl .cp-v { font-weight: 600; }
.chart-pnl .cp-p { font-weight: 300; }
.chart-pnl.up .cp-v { color: var(--up); } .chart-pnl.down .cp-v { color: var(--down); }
/* In the chart's top right corner, over the price scale (Owner: "IN the top right corner"); .chart-live ends 90 px from the edge. */
.chart-live .chart-pnl:not(#_p1) { position: absolute; top: 0; right: -82px; margin: 0; z-index: 5; }
@media (max-width: 720px) { .chart-live .chart-pnl:not(#_p1) { right: 0; } }

/* Positions link: open count (gray) then open P/L in dollars, green or red (option 4, the owner 2026-11-30). */
.nb.nb-pos { gap: 5px; } .nb .nb-n { color: var(--muted); font-weight: 500; } .nb .nb-up { color: var(--up); } .nb .nb-dn { color: var(--down); }

/* Unselected buttons are the same raised button as selected ones (2026-11-30, option 8 of 8: "every grayed out button the
   same height as the available ones"). Before, an unselected .seg button had no edge and an unselected Buy / Sell tab a thinner,
   near-black one, so they sat 2-3 px shorter than the picked one. Now: same edge thickness per group, an edge you can see, and
   the Buy / Sell tabs keep a faint tint of their own colour when not picked. */
:root, :root[data-theme="dark"] { --d-off: #232323; --d-off-e: #191919; }
:is(.seg > button:not(.on), .seg > a:not(.on)):not(#_d1):not(#_d2):not(#_d3) { background: var(--d-off) !important; color: var(--muted) !important; border: 0 !important;
  border-radius: 3px !important; box-shadow: 0 2px 0 var(--d-off-e) !important; }
.seg.ut > button:not(.on):not(#_d1):not(#_d2):not(#_d3) { opacity: 1; }
.swap-tabs > button.buy:not(.on):not(#_d1):not(#_d2):not(#_d3) { background: color-mix(in srgb, var(--d-buy) 12%, var(--panel)) !important; color: var(--d-buy) !important;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--d-buy) 24%, var(--panel)) !important; }
.swap-tabs > button.sell:not(.on):not(#_d1):not(#_d2):not(#_d3) { background: color-mix(in srgb, var(--d-sell) 12%, var(--panel)) !important; color: var(--d-sell) !important;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--d-sell) 24%, var(--panel)) !important; }

/* A coin with no trades for 5+ minutes: a note over the chart (pair.js .chart-quiet), so a still chart never reads as frozen. */
.chart-quiet:not(#_q1) { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); z-index: 4; pointer-events: none; max-width: calc(100% - 200px);
  padding: 0 10px; line-height: 24px; font-size: 12px; color: var(--muted); background: var(--raise); border: 1px solid var(--line); border-radius: 3px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-quiet[hidden]:not(#_q1) { display: none; }

/* Wallet card: every coin, chain coin first, then by value (2026-11-30, option 1, values in green). */
.sw-coins { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 4px; }
.sw-coin { display: flex; align-items: center; gap: 7px; height: 22px; font-size: 12px; }
.sw-coin img, .sw-coin .tok-ic { width: 14px; height: 14px; flex: none; border-radius: 50%; }
.sw-coin .sw-cs { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-coin .sw-cv { margin-left: auto; color: var(--up); font-weight: 600; font-variant-numeric: tabular-nums; }

/* List flags (2026-11-30): Pre-IPO, Bot vol, Safety ? on Trending / Ripping rows */
.p-flag { flex: none; font-size: 10px; font-weight: 600; line-height: 15px; padding: 0 5px; border-radius: 3px !important; background: var(--raise); border: 1px solid var(--line); white-space: nowrap; }
.p-flag.ok { color: var(--d-blue); } .p-flag.warn { color: var(--hot); } .p-flag.mu { color: var(--muted); }

/* Positions rows: 8 cells since Entry MC (2026-11-30: Sell all wrapped to a second line) */
.ps-row:not(#_ps1) { grid-template-columns: minmax(120px, 1.1fr) repeat(2, minmax(70px, .8fr)) repeat(2, minmax(132px, 1.3fr)) repeat(2, minmax(70px, .9fr)) max-content; } /* Entry / MC and Mark / MC get the room (2026-12-01) */
.ps-acts:not(#_ps1) { flex-wrap: nowrap; }
/* Entry / MC and Mark / MC: "$0.0001206 / $117K", the price regular, the market cap bold (2026-12-01) */
.ps-pm { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1000px) { .ps-row:not(#_ps1) { grid-template-columns: 1fr 1fr 1fr; } }
.board.pr.trb .row.head > :first-child { text-align: center; } /* "#" over the centered rank numbers */
/* Trade tab spacing (2026-11-30: "Too much margin on the bottom of the trade tab, inconsistent with the margin around the
   market/limit selector"): the market and limit boxes add no padding of their own inside the panel's 12px, so their sides and
   bottom line up with the selector's. */
.dk-tradebox > .swap-box:not(#_tb1):not(#_tb2) { padding: 0 !important; border: 0 !important; background: none !important; }

/* Trade panel, option B (2026-12-01): one joined two-colour Buy / Sell switch on top; Market / Limit as underline tabs under it */
.dk-tradebox .swap-tabs:not(#_b1):not(#_b2):not(#_b3) { gap: 0 !important; margin: 0 !important; }
.dk-tradebox .swap-tabs > button:not(#_b1):not(#_b2):not(#_b3) { padding: 11px 0 !important; font-size: 14px !important; font-weight: 700 !important; border: 0 !important; box-shadow: none !important; }
.dk-tradebox .swap-tabs > button:not(.on):not(#_b1):not(#_b2):not(#_b3) { background: var(--raise, #1C1C1C) !important; color: var(--muted) !important; box-shadow: none !important; }
.dk-tradebox .swap-tabs > button.buy:not(#_b1):not(#_b2):not(#_b3) { border-radius: 6px 0 0 6px !important; }
.dk-tradebox .swap-tabs > button.sell:not(#_b1):not(#_b2):not(#_b3) { border-radius: 0 6px 6px 0 !important; }
.dk-tradebox .swap-tabs > button.buy.on:not(#_b1):not(#_b2):not(#_b3) { background: var(--d-buy) !important; color: var(--d-buy-t) !important; box-shadow: none !important; }
.dk-tradebox .swap-tabs > button.sell.on:not(#_b1):not(#_b2):not(#_b3) { background: var(--d-sell) !important; color: var(--d-sell-t) !important; box-shadow: none !important; }
.dk-tradebox .swap-tabs > button:not(.on):hover:not(#_b1):not(#_b2):not(#_b3) { color: var(--text) !important; }
.dk-mtabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 2px 0 2px; }
.dk-mtabs > button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 6px 0 7px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 0; }
.dk-mtabs > button.on { color: var(--text); border-bottom-color: currentColor; }
.dk-mtabs > button:not(.on):hover { color: var(--text); }

/* Tabs = ink pills everywhere (2026-12-01: the underline tab style is gone, "Use B (Ink pill)"). The selected tab looks
   exactly like the chart toolbar's selected chips (1m / Price / USD); the others are plain muted text. No underline anywhere. */
:is(button.ac-tab, a.ac-tab, .ph-tab, .hd-tabs button, .adm-tabs a, .dk-mtabs > button, .m-view, .dk-sidetabs button, .hp-tab):not(#_k1):not(#_k2) {
  background: none !important; border: 0 !important; border-radius: 3px !important; box-shadow: none !important; margin-bottom: 0 !important;
  padding: 6px 10px !important; height: auto !important; color: var(--muted) !important; font-weight: 500 !important; line-height: 1.3; }
:is(button.ac-tab, a.ac-tab, .ph-tab, .hd-tabs button, .adm-tabs a, .dk-mtabs > button, .m-view, .dk-sidetabs button, .hp-tab):not(.on):hover:not(#_k1):not(#_k2) { color: var(--text) !important; }
:is(button.ac-tab, a.ac-tab, .ph-tab, .hd-tabs button, .adm-tabs a, .dk-mtabs > button, .m-view, .dk-sidetabs button, .hp-tab).on:not(#_k1):not(#_k2) {
  background: var(--d-on) !important; color: var(--d-on-t) !important; box-shadow: 0 2px 0 var(--d-on-e) !important; }
.hd-tabs button.on .ic:not(#_k1) { color: inherit; }
/* the bars: room around the pills; Market / Limit loses its underline track (the other bars keep the hairline under their header) */
:is(.ac-tabs, .lc-tabs, .hd-tabs, .adm-tabs, .ph-tabs):not(#_k1):not(#_k2) { gap: 4px; padding-top: 8px; padding-bottom: 10px; align-items: center; }
.dk-mtabs:not(#_k1):not(#_k2) { gap: 4px; border-bottom: 0; margin: 6px 0; }
.dk-sidetabs:not(#_k1):not(#_k2) { padding: 6px 8px 8px; gap: 4px; }
.ti-wins button.on:not(#_k1):not(#_k2) { box-shadow: inset 0 0 0 1px var(--line-strong) !important; background: var(--raise) !important; }

/* Pages run to the bottom of the screen (2026-12-01: "don't put a divider that runs up the page on this page or any. Content
   should be allowed to extend to the bottom of the screen. Look at the unnecessary padding on home, callouts and memescope").
   On these pages #view is a column and the page's main block takes the rest of the height; nothing draws a hairline across the
   page under the last block; Home, Callouts and Memescope have no padding or gaps around their panels (hairlines between them).
   Wide screens only: narrower ones keep their stacked panels. */
@media (min-width: 1401px) {
  #view:not(#_fh):has(> .hp-grid, > .cl-page, > .np-cols:not([hidden]), > .ph-card, > .hd, > .wm-card, > .np-wrap) { display: flex; flex-direction: column; }
  .hp-grid:not(#_fh) { height: auto; flex: 1 1 0; min-height: 0; padding: 0; gap: 0; }
  .hp-grid:not(#_fh) > :is(.hp-panel, .hp-stack) { border-radius: 0 !important; border-width: 0 1px 0 0; }
  .hp-grid:not(#_fh) > :last-child { border-right-width: 0; }
  .hp-grid:not(#_fh) .hp-stack > .hp-panel { border-radius: 0 !important; border-width: 0 0 1px 0; } .hp-grid:not(#_fh) .hp-stack > .hp-panel:last-child { border-bottom-width: 0; }
  .cl-page:not(#_fh) { height: auto; flex: 1 1 0; min-height: 0; margin: 0; border-width: 0; border-radius: 0 !important; }
  #view:not(#_fh) > .np-cols:not([hidden]) { flex: 1 1 0; min-height: 0; }
  #view:not(#_fh) > .np-cols .np-col { max-height: none; min-height: 0; overflow: hidden; }
  #view:not(#_fh) > :is(.ph-card, .hd, .wm-card):last-child { flex: 1 1 auto; border-bottom-width: 0; }
  /* Positions (.hd) is a one-column grid: stretched, its auto rows shared the extra height and left empty bands under Paper
     trading and the summary (2026-12-01). As a column, those two keep their height and the holdings card takes the rest. */
  #view:not(#_fh) > .hd { display: flex; flex-direction: column; }
  #view:not(#_fh) > .hd > * { flex: none; }
  #view:not(#_fh) > .hd > .hd-main { flex: 1 1 auto; }
  #view:not(#_fh) > .np-wrap { flex: 1 1 auto; }
  #view:not(#_fh) > .np-wrap :is(.board-scroll, .np-table) { border-bottom-width: 0; }
}

/* Chart toolbar, option A (2026-12-01: "Use A, and animate changes with sliding and morphing motion"; "The bottom accents are
   making the padding uneven"; "use a different color for the price/mcap toggle"): every group sits on a gray track, the pick is a
   white chip with a hairline ring that slides and stretches to the next pick (segslide.js), Price / MCap's pick is blue, and no
   chip in the bar has a raised bottom edge. Four ids: beats the pack-D chip rules (three). */
.chart-tools .seg:not(#_ta):not(#_tb):not(#_tc):not(#_td) { position: relative; display: inline-flex; align-items: center; gap: 0; padding: 2px; background: var(--raise) !important; border: 0 !important; border-radius: 5px !important; box-shadow: none !important; }
.chart-tools .seg:not(#_ta):not(#_tb):not(#_tc):not(#_td) > button { position: relative; z-index: 1; background: none !important; color: var(--muted) !important; border: 0 !important; box-shadow: none !important; transform: none !important; filter: none !important; }
.chart-tools .seg:not(#_ta):not(#_tb):not(#_tc):not(#_td) > button:is(.on, :hover) { color: var(--text) !important; }
.chart-tools .seg:not(#_ta):not(#_tb):not(#_tc):not(#_td) > :is(.sg-thumb, .ut-thumb) { position: absolute; z-index: 0; left: 0; top: 2px; bottom: 2px; width: 0; border-radius: 3px !important; background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .06); pointer-events: none; }
.chart-tools .seg.ut[aria-label="Price or market cap"]:not(#_ta):not(#_tb):not(#_tc):not(#_td) > .ut-thumb { background: var(--d-blue); box-shadow: none; }
.chart-tools .seg.ut[aria-label="Price or market cap"]:not(#_ta):not(#_tb):not(#_tc):not(#_td) > button.on { color: #fff !important; }
.chart-tools :is(.dt-btn, .chip):not(#_ta):not(#_tb):not(#_tc):not(#_td) { background: var(--raise) !important; color: var(--muted) !important; border: 0 !important; box-shadow: none !important; transform: none !important; filter: none !important; }
.chart-tools :is(.dt-btn, .chip):is(.on, :hover):not(#_ta):not(#_tb):not(#_tc):not(#_td) { color: var(--text) !important; }
.chart-tools :is(.dt-btn, .chip).on:not(#_ta):not(#_tb):not(#_tc):not(#_td) { background: var(--panel) !important; box-shadow: 0 0 0 1px var(--line), inset 0 0 0 2px var(--raise) !important; }

/* ================================================================ Blue focus (2026-12-02: "Build 3 Blue focus", ripper-ui-branches.html)
   The market-cap blue is the one selection colour: every chip, segment, tab and preset that is "on" (they all read --d-on*), the
   active sidebar link (tint + blue edge) and the phone tab bar's icon. Buy / sell keep the candles' green and red. */
:root, :root[data-theme="dark"] { --focus: #5C93CD; --focus-e: #3A6A9E; --focus-t: #06101A; --focus-tint: rgba(92, 147, 205, .13);
  --d-on: var(--focus); --d-on-e: var(--focus-e); --d-on-t: var(--focus-t); }
:root[data-theme="light"] { --focus: #3A6A9E; --focus-e: #26496F; --focus-t: #fff; --focus-tint: rgba(58, 106, 158, .10); }
@media (prefers-color-scheme: light) { :root[data-theme="system"], :root:not([data-theme]) { --focus: #3A6A9E; --focus-e: #26496F; --focus-t: #fff; --focus-tint: rgba(58, 106, 158, .10); } }
:root[data-theme="light"] { --d-on: var(--focus); --d-on-e: var(--focus-e); --d-on-t: var(--focus-t); }
@media (prefers-color-scheme: light) { :root[data-theme="system"], :root:not([data-theme]) { --d-on: var(--focus); --d-on-e: var(--focus-e); --d-on-t: var(--focus-t); } }
.side-nav a.on:not(#_f1):not(#_f2) { background: var(--focus-tint) !important; color: var(--text) !important; box-shadow: inset 2px 0 0 var(--focus) !important; border-radius: 0 3px 3px 0 !important; }
.side-nav a.on .ic:not(#_f1) { color: var(--focus) !important; }
.tb-item.on svg { color: var(--focus); }

/* ================================================================ Precision (2026-12-02: "6", pass 6 of
   docs/plans/ui-refresh/ripper-institutional.html, "a high-value tech company feel with institutional grade interface").
   Quiet neutral greys; colour only where it means something (up / down, market cap, where you are). Sora for words (bold = 600; was Geist until the owner picked font option 10),
   Sometype Mono for addresses, the price strip, the chart legend and trade tables; tabular figures everywhere. Flat keys (no 3D edge),
   4 px corners; only Buy / Sell / primary are filled, every other button and chip is outlined. Selection = a blue underline on
   tabs and segments (a blue tint on chips and presets); the active sidebar link = the blue bar alone. No striped rows; plain-case
   table headers. Five ids (`P`) so it beats pack D (3), the tab rules (2) and the chart toolbar (4). */
@font-face { font-family: 'Sora'; src: url('fonts/sora-400.woff2') format('woff2'); font-weight: 100 400; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('fonts/sora-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('fonts/sora-600.woff2') format('woff2'); font-weight: 600 900; font-display: swap; }
@font-face { font-family: 'Sometype Mono'; src: url('fonts/sometypemono-400.woff2') format('woff2'); font-weight: 100 400; font-display: swap; }
@font-face { font-family: 'Sometype Mono'; src: url('fonts/sometypemono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sometype Mono'; src: url('fonts/sometypemono-600.woff2') format('woff2'); font-weight: 600 900; font-display: swap; }
:root { --font: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --font-mono: 'Sometype Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-family: var(--font); }
html, body, button, input, select, textarea { font-family: var(--font); }
body { font-variant-numeric: tabular-nums; letter-spacing: -.02em; } /* Sora runs wide: drawn a little tighter so dense rows keep their room */
:is(.mono, .explorer, .wallet-addr, .au-code, .pr-ca, .chart-legend, .ac-t td, .adm-table td, .dk-bar .dk-stat strong, .swap-v, .ss-price, .ec-price) { font-family: var(--font-mono) !important; letter-spacing: 0; }

/* colours: dark (default) */
:root, :root[data-theme="dark"] {
  --bg: #0E0E10; --panel: #0E0E10; --raise: #17171A; --line: #202024; --line-strong: #2E2E33; --text: #EDEDEF; --muted: #8B8B93; --alt: #0E0E10;
  --accent: #EDEDEF; --accent-hover: #FFFFFF; --accent-ink: #0E0E10; --accent-tint: #17171A;
  --ok: #3FD08F; --bad: #F2667A; --up: #3FD08F; --down: #F2667A; --mcap: #6FA3DE;
  --focus: #6FA3DE; --focus-e: #6FA3DE; --focus-t: #06101A; --focus-tint: rgba(111, 163, 222, .12);
  --d-blue: #6FA3DE; --d-blue-e: transparent; --d-buy-e: transparent; --d-sell-e: transparent; --d-sec: transparent; --d-sec-e: transparent;
  --d-off: transparent; --d-off-e: transparent; --d-on-e: transparent; --d-buy-t: #03150C; --d-sell-t: #22060C;
  --p-ring: #2E2E33; }
/* colours: light */
:root[data-theme="light"] {
  --bg: #FFFFFF; --panel: #FFFFFF; --raise: #F5F5F6; --line: #EAEAEC; --line-strong: #D6D6DA; --text: #111114; --muted: #626269; --alt: #FFFFFF;
  --accent: #111114; --accent-hover: #2A2A2E; --accent-ink: #FFFFFF; --accent-tint: #F5F5F6;
  --ok: #0E9A68; --bad: #D23A4F; --up: #0E9A68; --down: #D23A4F; --mcap: #2F64A6;
  --focus: #2F64A6; --focus-e: #2F64A6; --focus-t: #FFFFFF; --focus-tint: rgba(47, 100, 166, .08);
  --d-blue: #2F64A6; --d-buy-t: #FFFFFF; --d-sell-t: #FFFFFF; --p-ring: #D6D6DA; }
@media (prefers-color-scheme: light) { :root[data-theme="system"], :root:not([data-theme]) {
  --bg: #FFFFFF; --panel: #FFFFFF; --raise: #F5F5F6; --line: #EAEAEC; --line-strong: #D6D6DA; --text: #111114; --muted: #626269; --alt: #FFFFFF;
  --accent: #111114; --accent-hover: #2A2A2E; --accent-ink: #FFFFFF; --accent-tint: #F5F5F6;
  --ok: #0E9A68; --bad: #D23A4F; --up: #0E9A68; --down: #D23A4F; --mcap: #2F64A6;
  --focus: #2F64A6; --focus-e: #2F64A6; --focus-t: #FFFFFF; --focus-tint: rgba(47, 100, 166, .08);
  --d-blue: #2F64A6; --d-buy-t: #FFFFFF; --d-sell-t: #FFFFFF; --p-ring: #D6D6DA; color-scheme: light; } }
:root[data-theme="light"] { --d-on: var(--focus); --d-on-t: var(--focus-t); --d-sec: transparent; --d-sec-e: transparent; --d-off: transparent; --d-off-e: transparent; --d-on-e: transparent; --d-blue-e: transparent; }
@media (prefers-color-scheme: light) { :root[data-theme="system"], :root:not([data-theme]) { --d-on: var(--focus); --d-on-t: var(--focus-t); --d-sec: transparent; --d-sec-e: transparent; --d-off: transparent; --d-off-e: transparent; --d-on-e: transparent; --d-blue-e: transparent; } }

/* keys: flat, 4 px; filled = primary, buy, sell; everything else outlined */
:is(.btn, .icon-btn, .chip, .qb, .qb2, .swap-cta, .m-buy, .m-sell, .acct-btn, .rn-drop, .rn-link, .rn-ca, .pl-more, .seg > button, .seg > a, .swap-tabs > button):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { border-radius: 4px !important; }
:is(.btn.primary, .acct-btn.primary, .qb, .qb2, .m-buy, .m-sell, .btn.danger, .swap-cta, .swap-tabs > button):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { box-shadow: none !important; }
:is(.btn:not(.primary):not(.danger), .icon-btn, .rn-drop, .rn-link, .rn-ca, .pl-more, .acct-btn:not(.primary), .qb.np-bell):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) {
  background: transparent !important; color: var(--text) !important; box-shadow: inset 0 0 0 1px var(--p-ring) !important; }
:is(.btn:not(.primary):not(.danger), .icon-btn, .rn-drop, .rn-link, .rn-ca, .pl-more, .acct-btn:not(.primary), .qb.np-bell):not(:disabled):hover:not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { background: var(--raise) !important; filter: none; }
.qb > .qb-a:not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { background: var(--raise) !important; }
/* chips: off = outlined muted, on = blue tint with a blue ring */
.chip:not(.on):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { background: transparent !important; color: var(--muted) !important; box-shadow: inset 0 0 0 1px var(--line-strong) !important; }
:is(.chip.on, .qb.np-bell.on):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { background: var(--focus-tint) !important; color: var(--focus) !important; box-shadow: inset 0 0 0 1px var(--focus) !important; }
/* press: no 3D travel, just a dip */
:is(.btn, .icon-btn, .chip, .qb, .qb2, .swap-cta, .m-buy, .m-sell, .acct-btn, .rn-drop, .rn-link, .rn-ca, .pl-more, .seg > button):not(:disabled):active:not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { transform: none !important; opacity: .85; }
:is(.btn.primary, .qb, .qb2, .swap-cta, .m-buy, .m-sell, .btn.danger):not(:disabled):hover { filter: brightness(1.06); }

/* segments (All / 1d / 7d …): plain text, the pick underlined in blue */
.seg:not(.ut):not(.chart-seg):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 6px; }
:is(.seg > button, .seg > a):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { background: transparent !important; color: var(--muted) !important; box-shadow: none !important; border-radius: 0 !important; }
:is(.seg > button, .seg > a):hover:not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { color: var(--text) !important; }
:is(.seg > button.on, .seg > .on):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { background: transparent !important; color: var(--text) !important; box-shadow: inset 0 -2px 0 var(--focus) !important; }
/* sliding segments (chart toolbar, Advanced trade settings): no track, the thumb becomes a sliding blue underline */
:is(.chart-tools .seg, .adv-seg):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { background: transparent !important; padding: 0 !important; box-shadow: none !important; }
:is(.chart-tools .seg, .adv-seg):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) > :is(.sg-thumb, .ut-thumb) { top: auto; bottom: 0; height: 2px; background: var(--focus) !important; box-shadow: none !important; border-radius: 0 !important; }
:is(.chart-tools .seg, .adv-seg):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) > button.on { color: var(--text) !important; }
.chart-tools :is(.dt-btn, .chip):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { background: transparent !important; box-shadow: inset 0 0 0 1px var(--line-strong) !important; }
.chart-tools :is(.dt-btn, .chip).on:not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { background: var(--focus-tint) !important; color: var(--focus) !important; box-shadow: inset 0 0 0 1px var(--focus) !important; }
/* tabs: plain text, the open one underlined in blue */
:is(button.ac-tab, a.ac-tab, .ph-tab, .hd-tabs button, .adm-tabs a, .dk-mtabs > button, .m-view, .dk-sidetabs button, .hp-tab).on:not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) {
  background: transparent !important; color: var(--text) !important; box-shadow: inset 0 -2px 0 var(--focus) !important; border-radius: 0 !important; }
:is(button.ac-tab, a.ac-tab, .ph-tab, .hd-tabs button, .adm-tabs a, .dk-mtabs > button, .m-view, .dk-sidetabs button, .hp-tab):not(#_p1):not(#_p2):not(#_p3):not(#_p4):not(#_p5) { border-radius: 0 !important; }
.hd-tabs button.on .ic:not(#_p1) { color: var(--focus); }
/* sidebar: the active link is the blue bar alone */
.side-nav a.on:not(#_p1):not(#_p2):not(#_p3) { background: transparent !important; color: var(--text) !important; box-shadow: inset 2px 0 0 var(--focus) !important; font-weight: 600; }

/* tables: no stripes, plain-case headers on a hairline */
:is(.row.head, .ac-t th, .adm-table th):not(#_p1):not(#_p2) { text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; background: var(--panel) !important; border-bottom: 1px solid var(--line); }
/* RIPPING: a small orange outline tag, not a loud block */
.eb.rip:not(#_p1) { font-weight: 600; letter-spacing: .02em; background: color-mix(in srgb, var(--rip) 10%, transparent) !important; }

/* Wallet card fold (2026-12-02): the chevron folds the card to the dollar total + the chain coin's amount. */
.sw-fold { margin-left: auto; flex: none; background: none; border: 0; padding: 2px; color: var(--muted); cursor: pointer; display: inline-flex; transition: transform .15s ease; }
.sw-lock + .sw-fold { margin-left: 2px; }
.sw-fold:hover { color: var(--text); }
.sw-folded .sw-fold { transform: rotate(-90deg); }
.sw-nat { display: none; color: var(--muted); font-family: var(--font-mono); }
.sw-folded .sw-nat { display: inline; }
.sw-folded .sw-coins, .sw-folded .sw-chg { display: none; }

/* Wallet card option 4 (2026-12-02): SOL amount left, 24-hour % right, a 24-hour line, coin values in plain text. */
.sw-sub:not(#_w1) { justify-content: space-between; align-items: baseline; }
.sw-sub .sw-chg { display: none; }
.sw-nat:not(#_w1) { display: inline; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.sw-pct { font-size: 12px; margin-left: auto; white-space: nowrap; }
.sw-pct.up { color: var(--up); } .sw-pct.down { color: var(--down); }
.sw-line { height: 38px; margin: 6px 0 2px; }
.sw-line:empty { display: none; }
.sw-line svg { display: block; width: 100%; height: 100%; }
.sw-folded .sw-line { height: 22px; }
.sw-coin .sw-cv:not(#_w1) { color: var(--text); }
.sw-coins:not(#_w1) { margin-top: 4px; }

/* Images keep their shape (2026-12-02: "globally, stop cropping images in an oval"). The blanket rule near the top rounds
   every img and coin icon to 50%, which turns any picture that isn't square into an oval. Every image, coin icon and avatar
   now gets the Precision 4 px corner instead; four :not(#…) give this more id weight than any of the older 50% rules
   (callouts.css carries three). Dots, switches and spinners (not images) stay round. */
:is(img, .tok-ic, .cx-av, .cx-skav, .cv-devic, .acct-av, .cl-av, .hc-cl-i, .lx-av):not(#_i1):not(#_i2):not(#_i3):not(#_i4) { border-radius: 4px !important; }
