/* 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-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):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); }
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 .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-page { padding: 24px 28px 72px; }
.lg-doc { max-width: 780px; margin: 0 auto; line-height: 1.65; font-size: 14.5px; color: var(--text); overflow-wrap: break-word; }
.lg-doc .lg-head { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.lg-doc .lg-head h2 { font-size: 30px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; }
.lg-doc .lg-eff { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; color: var(--muted); font-size: 13px; } .lg-doc .lg-eff strong { color: var(--text); font-weight: 600; }
.lg-draft { border: 1px solid var(--warn); color: var(--warn) !important; background: color-mix(in srgb, var(--warn) 10%, transparent); padding: 6px 10px; border-radius: 3px !important; font-size: 13px; }
.lg-doc .lg-intro { margin: 0 0 12px; }
.lg-doc .lg-toc { margin: 20px 0 8px; padding: 14px 18px 12px; background: var(--raise); border: 1px solid var(--line); border-radius: 8px !important; }
.lg-doc .lg-toc-h { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.lg-doc .lg-toc-l { margin: 0; padding-left: 22px; columns: 2; column-gap: 28px; font-size: 13.5px; line-height: 1.5; }
.lg-doc .lg-toc-l li { break-inside: avoid; padding: 2px 0; color: var(--muted); }
.lg-doc .lg-toc-l a { color: var(--text); text-decoration: none; } .lg-doc .lg-toc-l a:hover { text-decoration: underline; }
.lg-doc .lg-sec { scroll-margin-top: 16px; padding-top: 6px; }
.lg-doc h3 { display: flex; gap: 10px; font-size: 17px; line-height: 1.35; margin: 28px 0 10px; } .lg-doc h3 .lg-sn { min-width: 26px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-doc h4 { font-size: 14.5px; margin: 18px 0 6px 36px; }
.lg-doc .lg-cl { display: flex; gap: 10px; margin: 0 0 10px; } .lg-doc .lg-cl .lg-n { flex: none; min-width: 26px; color: var(--muted); font-size: 12.5px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.lg-doc .lg-caps > span:last-child { font-size: 13px; letter-spacing: .01em; }
.lg-doc .lg-note { margin: 0 0 10px 36px; }
.lg-doc .lg-al { list-style: lower-alpha; margin: -2px 0 12px 36px; padding-left: 22px; } .lg-doc .lg-al li { margin: 0 0 6px; padding-left: 4px; }
.lg-doc .lg-tw { margin: 4px 0 14px 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px !important; }
.lg-doc .lg-tbl { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.lg-doc .lg-tbl th { text-align: left; font-weight: 600; background: var(--raise); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lg-doc .lg-tbl td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; } .lg-doc .lg-tbl tr:first-child td { border-top: 0; }
.lg-doc .lg-tbl td:first-child { font-weight: 500; min-width: 120px; }
.lg-doc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px) {
  .lg-page { padding: 16px 16px 56px; } .lg-doc { font-size: 14px; } .lg-doc .lg-head h2 { font-size: 24px; }
  .lg-doc .lg-toc-l { columns: 1; }
  .lg-doc h4, .lg-doc .lg-note, .lg-doc .lg-tw { margin-left: 0; } .lg-doc .lg-al { margin-left: 0; }
  .lg-doc .lg-cl { gap: 8px; } .lg-doc .lg-cl .lg-n, .lg-doc h3 .lg-sn { min-width: 30px; }
}
@media (max-width: 560px) {
  .lg-doc .lg-tw { border: 0; overflow: visible; } .lg-doc .lg-tbl thead { display: none; }
  .lg-doc .lg-tbl, .lg-doc .lg-tbl tbody, .lg-doc .lg-tbl tr, .lg-doc .lg-tbl td { display: block; width: auto; }
  .lg-doc .lg-tbl tr { border: 1px solid var(--line); border-radius: 8px !important; margin-bottom: 8px; padding: 4px 0; }
  .lg-doc .lg-tbl td { border: 0 !important; padding: 4px 12px; overflow-wrap: normal; }
  .lg-doc .lg-tbl td::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .lg-doc .lg-tbl td:first-child { font-weight: 600; }
}
@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; --z: 1; } } /* 125% first, then "dial back the zoom a little, say, 118%"; 2026-12-03 "around 85% of its current level": 1.18 × 0.85 ≈ 1.0 */
/* 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); }
.chart-pnl .cp-v.cp-up { color: var(--up); } .chart-pnl .cp-v.cp-dn { 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). Cal Sans for words since 2026-12-03 (was Sora, before that Geist),
   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). */
/* Main font: Cal Sans (Ben, 2026-12-03: "Go with our existing design, but change the main font to cal sans"). One variable file,
   weights 400-700, subset to Latin + punctuation + arrows + sub/superscript digits (fonts/LICENSE-calsans.txt, OFL). Sora's files
   stay in fonts/ only because the outlined wordmark in app/brand/ is regenerated from sora-600.woff2. */
@font-face { font-family: 'Cal Sans'; src: url('fonts/calsans.woff2') format('woff2'); font-weight: 400 700; 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: 'Cal Sans', 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: -.01em; } /* Cal Sans is already compact: only a touch tighter for dense rows (was -.02em for Sora) */
: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; }

/* Referrals page (#/referrals, views/referrals.js, 2026-12-03) and the sign-up form's invite line */
.rf { max-width: 880px; margin: 0 auto; padding: 20px 16px 40px; display: grid; gap: 14px; }
.rf-head h1 { margin: 0 0 4px; font-size: 22px; }
.rf-head p { margin: 0; }
.rf .panel { margin: 0; }
.rf .panel h2 { margin: 0 0 10px; font-size: 15px; }
.rf-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rf-url { flex: 1 1 260px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-code { margin-top: 12px; }
.rf-in { flex: 1 1 220px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: transparent; color: var(--text); }
.rf-code .rf-in { flex: 0 1 180px; text-transform: uppercase; }
.rf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border: 1px solid var(--line); border-radius: 4px; }
.rf-stat { display: grid; gap: 4px; padding: 12px 14px; border-right: 1px solid var(--line); }
.rf-stat:last-child { border-right: 0; }
.rf-k { font-size: 12px; color: var(--muted); }
.rf-v { font-family: var(--font-mono); font-size: 15px; }
.rf-usd { color: var(--muted); font-size: 12px; display: block; }
.rf-up .rf-v, td.rf-up { color: var(--up); }
.rf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rf-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rf-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.rf-table .num { text-align: right; font-family: var(--font-mono); }
.au2-invite { margin: 0 0 10px; padding: 8px 10px; border-radius: 4px; background: var(--focus-tint); color: var(--text); font-size: 13px; }
/* Sign-in popup (2026-12-03: no auth page): the sign-in / sign-up form in a card over the page */
.au-pop { max-height: calc(100vh - 32px); overflow-y: auto; }
.au-pop .au2-form { margin: 0; }
.au-pop .au2-form h1 { font-size: 21px; padding-right: 24px; }
/* Caller partner kit (2026-12-03) */
.cv-partner { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: middle; color: var(--up, #3ecf8e); border: 1px solid currentColor; }
.rf-partner { border-color: var(--up, #3ecf8e); }
.rf-partner h3 { margin: 14px 0 4px; font-size: 14px; }
.rf-partner .rf-in { width: 100%; max-width: 460px; margin: 6px 0; }
/* Your fee (volume tiers, 2026-12-03) */
.rf-fee-now { align-items: baseline; }
.rf-fee-big { font-size: 26px; line-height: 1; }
.rf-bar { height: 6px; margin: 12px 0 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rf-bar span { display: block; height: 100%; background: var(--d-blue, #6FA3DE); }
.rf-tiers { max-width: 360px; margin: 8px 0 6px; }
.rf-tiers tr.rf-tier-on td { color: var(--text); font-weight: 600; }
.rf-tiers td { color: var(--muted); }

/* Trade receipt (receipt.js, 2026-12-03) */
.tp-modal.rc-modal { max-width: none; width: min(780px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.tp-overlay.rc-overlay { backdrop-filter: blur(8px) saturate(.9); -webkit-backdrop-filter: blur(8px) saturate(.9); background: rgba(8, 8, 10, .55); overscroll-behavior: contain; }
.rc-title-sub { font-weight: 400; color: var(--muted); }
.rc-flow { max-height: calc(100dvh - 250px); }
.rc-more > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 0; }
.rc-more[open] > summary { color: var(--text); }
.rc-when { margin: 0 0 4px; }
.rc-sec { border-top: 1px solid var(--line); padding: 7px 0; display: grid; gap: 4px; }
.rc-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 13px; }
.rc-k { color: var(--muted); }
.rc-note { color: var(--muted); font-size: 12px; opacity: .8; }
.rc-v { text-align: right; white-space: nowrap; }
.rc-usd { color: var(--muted); font-size: 11px; margin-left: 8px; display: inline-block; min-width: 46px; text-align: right; }
.rc-strong .rc-k, .rc-strong .rc-v { color: var(--text); font-weight: 600; }
.rc-modal .btn { margin-top: 6px; }

/* The receipt's flow chart: where every part of the order went (2026-12-03) */
.rc-chart { margin: 4px 0 10px; }
.rc-flow { width: 100%; height: auto; display: block; overflow: visible; }
.rc-flow .rf-l1 { font-size: 13px; fill: var(--text); font-weight: 600; }
.rc-flow .rf-l2 { font-size: 12px; fill: var(--muted); font-family: var(--font-mono); }
.rc-flow .rf-l3 { font-size: 12px; fill: var(--muted); font-weight: 400; }
.rc-reading { margin: 4px 0 0; }
tr.rc-open { cursor: pointer; }
tr.rc-open:hover td, tr.rc-open:focus-visible td { background: var(--accent-tint, rgba(111,163,222,.08)); }

/* Caller page: every call after the post (views/callchart.js, 2026-12-03) */
.cc { margin: 0 0 12px; padding: 12px 14px; }
.cc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cc-head h2 { margin: 0; font-size: 15px; }
.cc-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cc-key i { display: inline-block; width: 18px; height: 0; border-top: 1.5px solid; margin-left: 8px; }
.cc-k-line { border-color: color-mix(in srgb, var(--text) 35%, transparent) !important; }
.cc-k-trend { border-top-width: 2.5px !important; border-color: var(--d-blue, #6FA3DE) !important; }
.cc-k-zero { border-top-style: dashed !important; border-color: var(--muted) !important; }
.cc-svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.cc-line { fill: none; stroke: var(--text); stroke-opacity: .22; stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cc-line:hover { stroke-opacity: .9; stroke-width: 1.8; }
.cc-est { stroke-dasharray: 3 3; }
.cc-trend { fill: none; stroke: var(--d-blue, #6FA3DE); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; pointer-events: stroke; }
.cc-zero { stroke: var(--muted); stroke-dasharray: 4 4; stroke-width: 1; }
.cc-grid { stroke: var(--line); stroke-width: 1; }
.cc-ax { fill: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.cc-ax0 { fill: var(--text); }
.cc-note { margin: 6px 0 0; }

/* Left panel = option B, Cockpit (2026-12-03, "Go with B"; mockups ui/side.html): the wallet is the panel's header. Logo,
   chain and wallet share one tinted block edge to edge; big balance, its 24-hour change, the day's line full width, Deposit /
   Withdraw, coins as chips. Search and a compact page list sit under it; the page you're on is green text, no fill. */
.side-hero { margin: -16px -14px 2px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--up) 9%, var(--panel)) 0%, var(--panel) 100%); }
.side-hero.down { background: linear-gradient(180deg, color-mix(in srgb, var(--down) 10%, var(--panel)) 0%, var(--panel) 100%); } /* red when the 24h change is red */
.side-hero .side-top:not(#_s1) { padding: 0 0 6px; }
.side-hero .sw-card:not(#_s1) { border: 0; background: none; padding: 0; margin: 0; gap: 4px; border-radius: 0 !important; cursor: pointer; }
.side-hero .sw-bal:not(#_s1) { font-size: 31px; letter-spacing: -.02em; line-height: 1.05; margin-top: 2px; }
.side-hero .sw-sub:not(#_s1) { justify-content: space-between; gap: 6px; font-size: 11.5px; white-space: nowrap; }
.side-hero .sw-nat { color: var(--muted); }
.side-hero .sw-pct { display: inline; } /* the 24h % always shows, folded or not (2026-12-03) */
.side-hero .sw-line:not(#_s1) { height: 44px; margin: 4px -14px 0; }
.side-hero .sw-folded .sw-line:not(#_s1) { height: 26px; }
.sw-acts { display: flex; gap: 6px; margin-top: 6px; }
.sw-acts .btn:not(#_s1) { flex: 1; justify-content: center; height: 28px; gap: 5px; }
.sw-unlock:not(#_s1) { width: 100%; justify-content: center; gap: 6px; height: 30px; margin-top: 6px; }
.side-hero .sw-coins:not(#_w1) { display: flex; flex-wrap: wrap; gap: 5px; border-top: 0; margin-top: 6px; padding-top: 0; }
.side-hero .sw-coin:not(#_s1) { height: 24px; padding: 0 8px 0 5px; border-radius: 12px !important; background: var(--raise); border: 1px solid var(--line); font-size: 11.5px; gap: 5px; max-width: 100%; }
.side-hero .sw-coin .sw-cv:not(#_w1) { margin-left: 0; color: var(--muted); font-weight: 500; font-size: 11px; }
.sw-out { display: flex; flex-direction: column; gap: 5px; padding: 4px 0 2px; cursor: default; }
.sw-out strong { font-size: 19px; line-height: 1.15; font-weight: 600; }
.sw-out > .btn:not(#_s1) { width: 100%; justify-content: center; height: 34px; margin-top: 6px; }
.sw-out .sw-btns:not(#_s1) { margin-top: 6px; }
/* Opening (2026-12-03): the card while the fast wallet opens after sign-in or a page load */
.sw-opening .sk { display: block; margin-top: 4px; }
.sw-opening strong { font-size: 15px; }
.sw-opening-line:not(#_s1) { display: flex; align-items: center; gap: 7px; }
.sw-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--text); animation: spin 0.8s linear infinite; flex: none; }
@media (prefers-reduced-motion: reduce) { .sw-spin { animation-duration: 2.4s; } }
.side-nav:not(#_s1) { gap: 0; }
.side-nav a:not(#_s1) { height: 30px; font-size: 13.5px; }
.side-nav a.on:not(#_p1):not(#_p2):not(#_p3):not(#_b1) { background: transparent !important; color: var(--up) !important; box-shadow: none !important; font-weight: 600; }
.side-nav a.on .ic:not(#_f1):not(#_b1) { color: var(--up) !important; }
.side-nav a:not(.on):hover { background: var(--raise); }
@media (max-height: 800px) { .side-nav a:not(#_s1) { height: 27px; } .side-hero .sw-bal:not(#_s1) { font-size: 26px; } .side-hero .sw-line:not(#_s1) { height: 32px; } }

/* Trade panel: swap cards (2026-12-03, option C). You pay / flip / You receive; the Limit box's fields take the same card look. */
.dk-tradebox :is(.swap-card, .swap-field):not(#_c1):not(#_c2):not(#_c3) { background: var(--raise, #1C1C1C) !important; border: 1px solid transparent !important; border-radius: 12px !important; padding: 11px 12px !important; display: flex; flex-direction: column; gap: 8px; box-shadow: none !important; }
.dk-tradebox .swap-field:not(#_c1):not(#_c2):not(#_c3) { flex-direction: column-reverse; gap: 4px; }
.dk-tradebox .swap-card:focus-within:not(#_c1):not(#_c2):not(#_c3), .dk-tradebox .swap-field:focus-within:not(#_c1):not(#_c2):not(#_c3) { border-color: var(--line-strong, #363636) !important; }
.dk-tradebox .swap-card .sc-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); min-height: 18px; }
.dk-tradebox .swap-card .sc-h .swap-bal:not(#_c1) { padding: 0; min-height: 0; font-size: 12px; display: inline; text-align: right; }
.dk-tradebox .swap-card .sc-h .swap-bal:empty { display: none; }
.dk-tradebox .swap-card .sc-h .swap-1 { display: inline; }
.dk-tradebox .sc-vs { font-size: 12px; white-space: nowrap; } .dk-tradebox .sc-vs .swap-v { font-size: 12px; }
.dk-tradebox .swap-card .swap-row { gap: 10px; }
.dk-tradebox .swap-card .swap-in:not(#_c1), .dk-tradebox .swap-recv .swap-row > strong { font-family: var(--font-mono); font-size: 26px !important; font-weight: 500 !important; letter-spacing: -.02em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.dk-tradebox .swap-recv .swap-row > strong.ph { color: var(--muted); opacity: .6; }
.dk-tradebox .swap-field .swap-in:not(#_c1) { font-family: var(--font-mono); font-size: 22px !important; font-weight: 500 !important; }
.dk-tradebox :is(.swap-card, .swap-field) .swap-unit { display: inline-flex; align-items: center; gap: 6px; flex: none; background: var(--panel, #111); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px 3px 4px; font-size: 13px; font-weight: 600; }
.dk-tradebox .swap-field .swap-unit { padding: 3px 10px; }
.dk-tradebox .swap-card .swap-unit :is(img, .tok-i, span:first-child:not(:only-child)) { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.dk-tradebox .swap-pay .swap-quick:not(#_c1) { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.dk-tradebox .swap-pay .swap-quick .chip:not(#_c1):not(#_c2):not(#_c3) { height: 28px; padding: 0 4px; font-size: 12px; background: var(--panel, #111) !important; border: 1px solid var(--line) !important; border-radius: 7px !important; font-family: var(--font-mono); }
.dk-tradebox .swap-pay .swap-quick .chip.on:not(#_c1):not(#_c2):not(#_c3) { border-color: var(--up) !important; color: var(--up) !important; background: color-mix(in srgb, var(--up) 12%, var(--panel, #111)) !important; }
.dk-tradebox .swap-pay .swap-edit { grid-column: 1 / -1; }
.dk-tradebox .swap-pay .swap-pin { min-width: 0; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel, #111); color: var(--text); font: inherit; font-family: var(--font-mono); font-size: 12px; text-align: center; }
.dk-tradebox .swap-flip { align-self: center; width: 36px; height: 36px; margin: -16px 0; position: relative; z-index: 1; display: grid; place-items: center; border-radius: 11px; border: 4px solid var(--panel, #111); background: var(--raise, #1C1C1C); color: var(--muted); cursor: pointer; transition: transform .15s, color .15s; }
.dk-tradebox .swap-flip:hover { color: var(--text); transform: rotate(180deg); }
.dk-tradebox .swap-recv .sc-f { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); padding-top: 7px; }
.dk-tradebox .swap-recv .sc-f > .swap-1 { font-family: var(--font-mono); font-size: 11.5px; }
.dk-tradebox .swap-recv .swap-line { min-height: 18px; font-size: 11.5px; }

/* Coin page top bar (2026-12-03): three zones (coin | market | actions) split by rules; the market zone is the price, a
   5m / 1h / 6h / 24h switch (its window drives Volume and Txns) and tiles, each with a line of meaning and a thin bar. */
.dk-bar.dk-zoned:not(#_z1):not(#_z2) { padding: 0 !important; gap: 0 !important; align-items: stretch; flex-wrap: nowrap; }
.dk-zoned .dkz { display: flex; align-items: center; gap: 12px; padding: 9px 14px; min-width: 0; }
.dk-zoned .dkz + .dkz { border-left: 1px solid var(--line); }
.dk-zoned .dkz-id { flex: none; }
.dk-zoned .dkz-mk { flex: 1 1 auto; gap: 16px; }
.dk-zoned .dkz-mk .dk-stats:not(#_z1) { gap: 8px; }
.dk-zoned .dkz-ac { flex: none; gap: 6px; }
.dk-zoned .dkz-ac .qb:not(#_a1) { height: 30px; white-space: nowrap; font-size: 12.5px; }
.dk-zoned .dkz-ac .pp-ic:not(#_a1) { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.dk-zoned .dkz-ac .pp-ic .ic { width: 16px; height: 16px; }
.dk-zoned .dk-tfsw { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--raise, #1C1C1C); flex: none; }
.dk-zoned .dk-tfb:not(#_z1) { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 10px; border: 0; border-radius: 6px; background: none; font: inherit; color: inherit; cursor: pointer; }
.dk-zoned .dk-tfb > span { font-size: 10.5px; color: var(--muted); }
.dk-zoned .dk-tfb strong { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; }
.dk-zoned .dk-tfb:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.dk-zoned .dk-tfb.on:not(#_z1) { background: var(--panel, #111); box-shadow: 0 0 0 1px var(--line-strong, #363636); }
.dk-zoned .dk-tfb.on > span { color: var(--text); }
.dk-zoned .dk-tile:not(#_z1) { display: flex; flex-direction: column; gap: 3px; padding: 6px 10px; min-width: 108px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); flex: none; }
.dk-zoned .dk-tile > span { display: flex !important; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; }
.dk-zoned .dk-tile strong { font-size: 13.5px; font-weight: 500; }
.dk-zoned .dk-sub { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.dk-zoned .dk-sub:empty { display: none; }
.dk-zoned .dk-sub.up { color: var(--up); } .dk-zoned .dk-sub.dn { color: var(--down); } .dk-zoned .dk-sub.warn { color: var(--warn, #F5B942); }
.dk-zoned .dk-mb { display: flex; height: 3px; border-radius: 2px; background: var(--raise2, #232323); overflow: hidden; }
.dk-zoned .dk-mb em { display: block; height: 100%; background: var(--up); transition: width .3s; }
.dk-zoned .dk-mb em.n { background: var(--muted); } .dk-zoned .dk-mb em.dn { background: var(--down); } .dk-zoned .dk-mb em.warn { background: var(--warn, #F5B942); }
.dk-zoned .dk-mb.two em:last-child { background: var(--down); }
.dk-zoned .dk-mb.none em { background: var(--raise2, #232323); }
.dk-bar.drained.dk-zoned .dk-tile strong { color: var(--muted) !important; text-decoration: line-through; text-decoration-thickness: 1px; }
/* phones and narrow windows: the zones fall away and the bar wraps as before */
@media (max-width: 1099px) {
  .dk-bar.dk-zoned:not(#_z1):not(#_z2) { padding: 10px 12px !important; gap: 6px 10px !important; flex-wrap: wrap; }
  .dk-zoned .dkz { display: contents; }
  .dk-zoned .rn-acts { display: inline-flex; gap: 6px; margin-left: auto; }
  .dk-zoned .dk-tile:not(#_z1) { min-width: 0; }
}
.dk-zoned .dk-tile:not(#_z1):not(#_z2) { min-width: 0; padding: 5px 9px; }
.dk-zoned .dk-tfb:not(#_z1):not(#_z2) { padding: 3px 7px; }
.dk-zoned .dkz:not(#_z1) { padding: 8px 12px; }
.dk-zoned .dkz-mk:not(#_z1) { gap: 12px; }
@media (max-width: 1599px) { .dk-zoned .dkz-id .tp-tags .dex-tag:nth-of-type(n+2) { display: none; } .dk-zoned .dk-tile > span { gap: 4px; } }
@media (min-width: 1100px) {
  .pp-head.dk-zoned > .dkz-mk:not(#_z1) { flex: 1 1 auto !important; min-width: 0; }
  .dk-zoned .dkz-mk > .hscroll:not(#_z1) { flex: 1 1 auto; min-width: 0; }
}
.dk-zoned .dk-tile:not(#_z1):not(#_z2) { gap: 2px; padding: 5px 9px 4px; }
.dk-zoned .dk-tile .dk-mb { margin: 2px 0 1px; }
.dk-zoned .dk-tile .dk-sub { line-height: 1.2; }
.dk-zoned .dk-tile .dk-sub:empty { display: block; } .dk-zoned .dk-tile .dk-sub:empty::before { content: '\00a0'; }
.dk-zoned .dk-tfb:not(#_z1):not(#_z2) { padding: 4px 6px; }
@media (min-width: 1100px) { .dk-zoned .dkz-mk:not(#_z1):not(#_z2) { gap: 10px; } .dk-zoned .dk-tile:not(#_z1):not(#_z2) { padding-left: 8px; padding-right: 8px; } .dk-zoned .dkz-mk .dk-stats:not(#_z1):not(#_z2) { gap: 6px; } }
@media (max-width: 720px) { .dk-zoned .dk-tfsw { flex: 1 1 100%; } .dk-zoned .dk-tfb:not(#_z1):not(#_z2) { flex: 1; } }
/* one tile shape (2026-12-03: "standardize … they are different heights"): same height, same minimum width, rounded */
.dk-zoned .dk-tile:not(#_z1):not(#_z2):not(#_z3) { box-sizing: border-box; height: 62px; min-width: 104px; justify-content: space-between; border-radius: 10px !important; background: var(--raise, #1C1C1C); border: 1px solid transparent; }
.dk-zoned .dk-tile .dk-mb.blank { visibility: hidden; }
.dk-zoned .dk-tfsw:not(#_z1) { border-radius: 10px; height: 62px; box-sizing: border-box; align-items: stretch; }
.dk-zoned .dk-tfb:not(#_z1):not(#_z2):not(#_z3) { justify-content: center; border-radius: 8px !important; }
@media (max-width: 1099px) { .dk-zoned .dk-tile:not(#_z1):not(#_z2):not(#_z3), .dk-zoned .dk-tfsw:not(#_z1) { height: auto; min-height: 58px; } }
.dk-zoned .dk-tile > * { flex: none; }
.dk-zoned .dk-tile .dk-mb { background: color-mix(in srgb, var(--text) 10%, transparent); }
.dk-zoned .dk-tile:not(#_z1):not(#_z2):not(#_z3) { min-width: 92px; }

/* ===== Trade panel, exactly as mockup C (ui/trade.html#c), 2026-12-03 ===== */
.dk-tradebox { --tp-dim: color-mix(in srgb, var(--muted) 70%, var(--panel, #111)); }
.dk-tradebox > .swap-box:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: flex !important; flex-direction: column !important; gap: 10px !important; font-size: 13px; }
.dk-tradebox > .swap-box > * { margin: 0 !important; }
.dk-tradebox .swap-note { display: none !important; }
/* Market / Limit: plain words, the open one underlined in the text colour */
.dk-tradebox .dk-mtabs:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: flex !important; gap: 16px !important; border-bottom: 1px solid var(--line) !important; margin: 0 !important; padding: 0 !important; }
.dk-tradebox .dk-mtabs > button:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { background: none !important; border: 0 !important; border-bottom: 2px solid transparent !important; margin: 0 0 -1px !important; padding: 6px 0 8px !important; height: auto !important; border-radius: 0 !important; box-shadow: none !important; color: var(--muted) !important; font-size: 13px !important; font-weight: 400 !important; }
.dk-tradebox .dk-mtabs > button.on:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--text) !important; border-bottom-color: var(--text) !important; box-shadow: none !important; }
.dk-tradebox .dk-mtabs > button:not(.on):hover:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--text) !important; }
/* the two cards */
.dk-tradebox .swap-card:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { background: var(--raise) !important; border: 1px solid transparent !important; border-radius: 12px !important; padding: 11px 12px !important; gap: 8px !important; }
.dk-tradebox .swap-card.bad:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { border-color: var(--down) !important; }
.dk-tradebox .swap-card .sc-h:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { font-size: 11.5px !important; color: var(--muted) !important; min-height: 0 !important; }
.dk-tradebox .swap-card .sc-h :is(.swap-bal, .swap-1, .muted, .sc-vs, .swap-v):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { font-size: 11.5px !important; }
.dk-tradebox .swap-card .sc-h .swap-bal:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--muted) !important; background: none !important; border: 0 !important; box-shadow: none !important; height: auto !important; }
.dk-tradebox .swap-card .swap-row:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; padding: 0 !important; }
.dk-tradebox .swap-card .swap-in:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6), .dk-tradebox .swap-recv .swap-row > strong:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { font-family: var(--font-mono) !important; font-size: 28px !important; font-weight: 500 !important; letter-spacing: -.02em !important; line-height: 1.15 !important; height: auto !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; color: var(--text) !important; }
.dk-tradebox .swap-card .swap-in::placeholder { color: var(--tp-dim); opacity: 1; }
.dk-tradebox .swap-recv .swap-row > strong.ph:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--tp-dim) !important; opacity: 1 !important; }
.dk-tradebox .swap-card .swap-unit:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: inline-flex !important; align-items: center !important; gap: 6px !important; background: var(--panel, #111) !important; border: 1px solid var(--line) !important; border-radius: 99px !important; padding: 4px 9px 4px 4px !important; font-size: 13px !important; font-weight: 600 !important; color: var(--text) !important; height: auto !important; }
.dk-tradebox .swap-card .swap-unit .ic:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--muted); }
/* presets inside the pay card */
.dk-tradebox .swap-pay .swap-quick:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 6px !important; }
.dk-tradebox .swap-pay .swap-quick .chip:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { height: 26px !important; padding: 0 4px !important; font-family: var(--font-mono) !important; font-size: 11.5px !important; font-weight: 400 !important; background: var(--panel, #111) !important; border: 1px solid var(--line) !important; border-radius: 7px !important; box-shadow: none !important; color: var(--text) !important; justify-content: center !important; transform: none !important; }
.dk-tradebox .swap-pay .swap-quick .chip.on:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { border-color: var(--up) !important; color: var(--up) !important; background: color-mix(in srgb, var(--up) 12%, var(--panel, #111)) !important; }
/* flip */
.dk-tradebox .swap-flip:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { align-self: center !important; width: 34px !important; height: 34px !important; margin: -16px 0 !important; z-index: 1; border-radius: 10px !important; background: var(--raise) !important; border: 3px solid var(--panel, #111) !important; box-shadow: 0 0 0 1px var(--line) !important; color: var(--muted) !important; padding: 0 !important; display: grid !important; place-items: center !important; background-clip: padding-box !important; }
.dk-tradebox .swap-flip:hover:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--text) !important; transform: none !important; }
/* receive footer: two mono lines, or a dash before a quote */
.dk-tradebox .swap-recv .sc-f:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: flex !important; flex-direction: column !important; gap: 2px !important; border: 0 !important; padding: 0 !important; font-family: var(--font-mono) !important; font-size: 10.5px !important; color: var(--muted) !important; }
.dk-tradebox .swap-recv .sc-f :is(.sc-l, .sc-none, .swap-v, .swap-1, span):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { font-size: 10.5px !important; color: var(--muted) !important; font-family: var(--font-mono) !important; }
.dk-tradebox .swap-recv .sc-none:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: none !important; }
.dk-tradebox .swap-recv.noq .sc-l:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: none !important; }
.dk-tradebox .swap-recv.noq .sc-none:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: block !important; }
.dk-tradebox .sc-vs.down:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6), .dk-tradebox .sc-vs.down .swap-v:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--down) !important; }
.dk-tradebox .sc-vs.warn:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6), .dk-tradebox .sc-vs.warn .swap-v:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--warn, #F5B942) !important; }
.dk-tradebox .sc-vs.muted:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6), .dk-tradebox .sc-vs.muted .swap-v:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--muted) !important; }
/* the button: go / off / warn / armed / busy */
.dk-tradebox .swap-cta[data-k]:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { height: 44px !important; min-height: 44px !important; border-radius: 9px !important; font-family: inherit !important; font-weight: 600 !important; font-size: 14.5px !important; letter-spacing: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; width: 100% !important; padding: 0 10px !important; border: 0 !important; box-shadow: none !important; opacity: 1 !important; filter: none !important; transform: none !important; text-transform: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-tradebox .swap-cta[data-k="go"]:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { background: var(--up) !important; color: #04140c !important; }
.dk-tradebox .swap-box.sell .swap-cta[data-k="go"]:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { background: var(--down) !important; color: #1a0307 !important; }
.dk-tradebox .swap-cta[data-k="off"]:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { background: var(--raise) !important; color: var(--tp-dim) !important; cursor: default; }
.dk-tradebox .swap-cta[data-k="warn"]:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { background: color-mix(in srgb, var(--warn, #F5B942) 18%, var(--panel, #111)) !important; color: var(--warn, #F5B942) !important; border: 1px solid var(--warn, #F5B942) !important; font-size: 13px !important; }
.dk-tradebox .swap-cta[data-k="armed"]:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { background: var(--warn, #F5B942) !important; color: #1a1200 !important; }
.dk-tradebox .swap-cta[data-k="busy"]:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { background: color-mix(in srgb, var(--up) 55%, var(--panel, #111)) !important; color: #04140c !important; }
.dk-tradebox .swap-box.sell .swap-cta[data-k="busy"]:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { background: color-mix(in srgb, var(--down) 55%, var(--panel, #111)) !important; color: #1a0307 !important; }
.dk-tradebox .swap-cta[data-k]:not(:disabled):hover:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { filter: brightness(1.06) !important; }
:root[data-theme="light"] .dk-tradebox .swap-cta:is([data-k="go"], [data-k="busy"]):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: #fff !important; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .dk-tradebox .swap-cta:is([data-k="go"], [data-k="busy"]):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: #fff !important; } }
.cta-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cta-rot .8s linear infinite; flex: none; opacity: .8; }
.cta-spin.sm { width: 11px; height: 11px; border-width: 1.6px; }
@keyframes cta-rot { to { transform: rotate(1turn); } }
/* the trade's own status: a soft box, icon first */
.dk-tradebox .swap-stat:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: flex !important; gap: 7px !important; align-items: flex-start !important; font-size: 12px !important; line-height: 1.4 !important; padding: 8px 10px !important; border-radius: 8px !important; background: var(--raise) !important; box-shadow: none !important; color: var(--muted) !important; }
.dk-tradebox .swap-stat[hidden]:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: none !important; }
.dk-tradebox .swap-stat > :first-child:not(span) { margin-top: 1px; flex: none; }
.dk-tradebox .swap-stat.ok:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--up) !important; } .dk-tradebox .swap-stat.bad:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--down) !important; }
.dk-tradebox .swap-stat:is(.ok, .bad) > span { color: var(--text); }
.dk-tradebox .swap-stat a { margin: 0; color: var(--up); text-decoration: underline; }
/* your position */
.dk-tradebox .swap-pos:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { border: 1px solid var(--line) !important; border-radius: 9px !important; padding: 9px 11px !important; display: flex !important; flex-direction: column !important; gap: 7px !important; background: none !important; }
.dk-tradebox .swap-pos[hidden]:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: none !important; }
.dk-tradebox .swap-poshead:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: flex !important; justify-content: space-between !important; align-items: baseline; font-size: 12.5px !important; }
.dk-tradebox .swap-poshead > strong:first-child { font-weight: 600; }
.dk-tradebox .swap-poshead > strong + strong:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { font-family: var(--font-mono) !important; font-size: 12px !important; font-weight: 400 !important; }
.dk-tradebox .swap-posgrid:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
.dk-tradebox .swap-posgrid > div > span:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: block !important; font-size: 10.5px !important; color: var(--muted) !important; }
.dk-tradebox .swap-posgrid > div > strong:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { font-family: var(--font-mono) !important; font-size: 12.5px !important; font-weight: 500 !important; }
/* trade settings: one line at the foot, opening into label / buttons rows */
.dk-tradebox .swap-slip.swap-adv:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { margin-top: auto !important; border: 0 !important; padding: 0 !important; background: none !important; }
.dk-tradebox .adv:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { margin: 0 !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; background: none !important; padding: 8px 0 0 !important; display: flex; flex-direction: column; gap: 8px; }
.dk-tradebox .adv-sum:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: flex !important; align-items: center !important; gap: 6px !important; padding: 0 !important; min-height: 0 !important; color: var(--muted) !important; }
.dk-tradebox .adv-eye:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { order: 0; display: inline-flex !important; gap: 6px !important; align-items: center; font-size: 11px !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--muted) !important; font-weight: 400 !important; border: 0 !important; padding: 0 !important; white-space: nowrap; }
.dk-tradebox .adv-eye .ic:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { width: 13px !important; height: 13px !important; }
.dk-tradebox .adv-vals:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { order: 1; margin-left: auto !important; grid-column: auto !important; flex: 0 1 auto; min-width: 0; font-family: var(--font-mono) !important; font-size: 11px !important; color: var(--text) !important; gap: 0 !important; justify-content: flex-end; }
.dk-tradebox .adv-vals .adv-p:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6)::before { content: '·' !important; margin: 0 5px !important; opacity: 1 !important; }
.dk-tradebox .adv-vals .adv-p:is(.first, :first-child):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6)::before { content: none !important; margin: 0 !important; }
.dk-tradebox .swap-recv .sc-f .sc-l .swap-1 { display: inline !important; }
.dk-tradebox .adv-chev:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { order: 2; margin: 0 2px 0 4px !important; color: var(--muted) !important; }
.dk-tradebox .adv-rows:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { border: 0 !important; margin: 0 !important; padding: 0 !important; display: grid !important; grid-template-columns: auto 1fr; gap: 8px 8px; align-items: center; }
.dk-tradebox .adv-lbl:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { margin: 0 !important; font-size: 12px !important; color: var(--muted) !important; text-transform: none !important; letter-spacing: 0 !important; display: block !important; }
.dk-tradebox .adv-lbl i:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: none !important; }
.dk-tradebox .adv-lbl.adv-maxrow:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: flex !important; justify-content: space-between; grid-column: 1 / -1; }
.dk-tradebox .adv-seg:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { justify-self: end; display: flex !important; gap: 0 !important; background: var(--raise) !important; border-radius: 6px !important; padding: 2px !important; width: auto !important; }
.dk-tradebox .adv-seg > .sg-thumb:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: none !important; }
.dk-tradebox .adv-seg > button:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { flex: none !important; height: auto !important; font-family: var(--font-mono) !important; font-size: 11px !important; padding: 3px 6px !important; border-radius: 4px !important; color: var(--muted) !important; background: none !important; font-weight: 400 !important; box-shadow: none !important; }
.dk-tradebox .adv-seg > button.on:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { background: var(--panel, #111) !important; color: var(--text) !important; box-shadow: 0 0 0 1px var(--line-strong) !important; }
.dk-tradebox .adv-seg > .adv-pen:not(.on):not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { flex: none !important; }
.dk-tradebox .adv-edit:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { flex: none !important; width: 60px; height: auto !important; }
/* limit: bordered fields like the mockup's amount box, % chips four across, Lasts on one line */
.dk-tradebox .lim .swap-field:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { background: var(--bg) !important; border: 1px solid var(--line) !important; border-radius: 8px !important; padding: 9px 11px !important; flex-direction: column !important; gap: 4px !important; }
.dk-tradebox .lim .swap-field > .small:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6), .dk-tradebox .lim .swap-field > .muted:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { font-size: 11px !important; color: var(--muted) !important; }
.dk-tradebox .lim .swap-field .swap-in:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { font-family: var(--font-mono) !important; font-size: 22px !important; font-weight: 500 !important; }
.dk-tradebox .lim .swap-field .swap-unit:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { background: var(--raise) !important; border: 0 !important; border-radius: 99px !important; padding: 3px 9px !important; font-size: 13px !important; font-weight: 600 !important; }
.dk-tradebox .lim .swap-quick:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 5px !important; }
.dk-tradebox .lim .swap-quick .chip:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { height: 32px !important; border: 1px solid var(--line) !important; border-radius: 7px !important; background: var(--raise) !important; font-family: var(--font-mono) !important; font-size: 12.5px !important; font-weight: 400 !important; color: var(--text) !important; box-shadow: none !important; justify-content: center !important; padding: 0 4px !important; }
.dk-tradebox .lim .swap-quick .chip.on:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { border-color: var(--up) !important; color: var(--up) !important; background: color-mix(in srgb, var(--up) 12%, transparent) !important; }
.dk-tradebox .lim > .swap-slip:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: flex !important; align-items: center !important; gap: 4px !important; font-size: 12px !important; }
.dk-tradebox .lim > .swap-slip > span:first-child { margin-right: auto; color: var(--muted); font-size: 12px; }
.dk-tradebox .lim > .swap-slip .chip:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { height: auto !important; padding: 4px 8px !important; border-radius: 6px !important; color: var(--muted) !important; border: 1px solid transparent !important; background: none !important; font-size: 12px !important; box-shadow: none !important; font-family: inherit !important; }
.dk-tradebox .lim > .swap-slip .chip.on:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { border-color: var(--line-strong) !important; color: var(--text) !important; background: var(--raise) !important; }
.dk-tradebox .lim .swap-get strong:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { font-family: var(--font-mono) !important; font-size: 16px !important; font-weight: 600 !important; }
.dk-tradebox .adv-vals:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { justify-content: flex-start !important; overflow: hidden; }
.dk-tradebox .adv-sum[aria-expanded="true"] .adv-vals:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: none !important; }
.dk-tradebox .adv-sum[aria-expanded="true"] .adv-chev { margin-left: auto !important; }
.dk-tradebox .lim .swap-field .swap-row:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { padding: 0 !important; min-height: 0 !important; }
.dk-tradebox .lim .swap-field > .small:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { font-family: var(--font-mono) !important; margin: 0 !important; }
.dk-tradebox .lim .lim-amts:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { grid-template-columns: 1fr 1fr !important; gap: 6px !important; }
.dk-tradebox .lim > .swap-slip .chip:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { flex: none !important; width: auto !important; min-width: 0 !important; }
.dk-tradebox .lim .lim-out:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { padding: 0 !important; border: 0 !important; background: none !important; }
.dk-tradebox .lim .swap-get:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: flex !important; flex-direction: column !important; gap: 2px !important; }
.dk-tradebox .lim .swap-get > .small:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { font-size: 11.5px !important; }
.dk-tradebox .swap-stat:is(.ok, .bad) > span:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--text) !important; }
.dk-tradebox .swap-stat a:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { color: var(--up) !important; text-decoration: underline !important; margin: 0 !important; }
.dk-tradebox i.cta-spin:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { display: inline-block !important; width: 14px !important; height: 14px !important; padding: 0 !important; margin: 0 !important; background: none !important; border: 2px solid currentColor !important; border-right-color: transparent !important; border-radius: 50% !important; box-shadow: none !important; animation: cta-rot .8s linear infinite !important; }
.dk-tradebox i.cta-spin.sm:not(#_m1):not(#_m2):not(#_m3):not(#_m4):not(#_m5):not(#_m6) { width: 11px !important; height: 11px !important; border-width: 1.6px !important; }

/* ===== Chart settings: options B (pill groups) + F (chips row) + G (side toolbar) of ui/chartbar.html, 2026-12-03 ===== */
.chart-tools.cb-top:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { display: flex !important; align-items: center !important; flex-wrap: nowrap !important; gap: 6px !important; height: 46px !important; min-height: 46px; padding: 0 12px !important; border-bottom: 1px solid var(--line) !important; white-space: nowrap; }
.chart-tools.cb-top > *:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { flex: none !important; }
.chart-tools.cb-top > .grow:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { flex: 1 1 auto !important; }
.chart-tools.cb-top .ut-wrap:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { display: flex !important; gap: 6px !important; flex: none !important; }
/* a pill: the group's soft box; the pick inside it a raised chip */
.chart-tools.cb-top :is(.seg, .cb-pill):not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { position: relative !important; display: flex !important; align-items: center !important; gap: 1px !important; background: var(--raise) !important; border: 0 !important; border-radius: 9px !important; padding: 3px !important; box-shadow: none !important; flex: none !important; margin: 0 !important; height: auto !important; }
.chart-tools.cb-top :is(.seg, .cb-pill) > button:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { position: relative; z-index: 1; height: 26px !important; min-height: 26px !important; padding: 0 8px !important; border-radius: 6px !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--muted) !important; font-size: 12.5px !important; font-weight: 400 !important; line-height: 26px !important; transform: none !important; filter: none !important; }
.chart-tools.cb-top :is(.seg, .cb-pill) > button:hover:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { color: var(--text) !important; }
.chart-tools.cb-top :is(.seg, .cb-pill) > button.on:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { color: var(--text) !important; }
.chart-tools.cb-top .cb-pill > button.on:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { background: var(--panel) !important; box-shadow: 0 0 0 1px var(--line-strong) !important; }
.chart-tools.cb-top .seg > :is(.sg-thumb, .ut-thumb):not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { position: absolute !important; z-index: 0 !important; top: 3px !important; bottom: 3px !important; height: auto !important; border-radius: 6px !important; background: var(--panel) !important; box-shadow: 0 0 0 1px var(--line-strong) !important; border: 0 !important; }
/* the second row: every indicator, then every kind of mark, as chips */
.chart-tools.cb-chips:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { display: flex !important; align-items: center !important; flex-wrap: nowrap !important; gap: 5px !important; height: 38px !important; min-height: 38px; padding: 0 12px !important; background: var(--bg) !important; border-bottom: 1px solid var(--line) !important; white-space: nowrap; }
.chart-tools.cb-chips > *:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { flex: none !important; }
.chart-tools.cb-chips .cb-ch:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { display: inline-flex !important; align-items: center !important; gap: 6px !important; height: 24px !important; min-height: 24px !important; padding: 0 9px !important; border-radius: 99px !important; border: 1px solid var(--line) !important; background: none !important; box-shadow: none !important; font-size: 12px !important; font-weight: 400 !important; color: var(--muted) !important; transform: none !important; filter: none !important; }
.chart-tools.cb-chips .cb-ch:hover:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { color: var(--text) !important; }
.chart-tools.cb-chips .cb-ch.on:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { color: var(--text) !important; border-color: var(--line-strong) !important; background: var(--raise) !important; }
.chart-tools.cb-chips .cb-mk > i:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: .35; flex: none; }
.chart-tools.cb-chips .cb-mk.on > i:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { opacity: 1; }
.chart-tools.cb-chips .cb-mk.on:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { border-color: color-mix(in srgb, var(--c) 50%, transparent) !important; }
.chart-tools.cb-chips .cb-vr:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { display: block; width: 1px; height: 20px; background: var(--line); margin: 0 3px; }
/* the drawing tools down the chart's left edge */
.cb-wrap > .chart-box:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { margin-left: 50px !important; }
.cb-wrap > .dt-side:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { position: absolute; left: 8px; top: 44px; z-index: 5; display: flex; flex-direction: column; gap: 2px; padding: 4px; background: var(--raise); border: 1px solid var(--line); border-radius: 10px !important; }
.cb-wrap > .dt-side > button:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { width: 30px !important; height: 28px !important; min-height: 0 !important; padding: 0 !important; display: grid !important; place-items: center !important; border-radius: 6px !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--muted) !important; transform: none !important; }
.cb-wrap > .dt-side > button:hover:not(:disabled):not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { color: var(--text) !important; }
.cb-wrap > .dt-side > button.on:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { background: color-mix(in srgb, var(--up) 15%, transparent) !important; color: var(--up) !important; }
.cb-wrap > .dt-side > button:disabled:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { opacity: .45 !important; cursor: default; }
.cb-wrap > .dt-side svg:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { width: 15px !important; height: 15px !important; fill: none !important; stroke: currentColor !important; stroke-width: 2 !important; stroke-linecap: round; stroke-linejoin: round; }
.cb-wrap > .dt-side .dt-hr:not(#_n1):not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6):not(#_n7) { display: block; height: 1px; background: var(--line); margin: 3px 2px; }

/* ===== Trade settings: option H of ui/settings.html (icon bar + popover), 2026-12-03 ===== */
.dk-tradebox .adv.adv-h:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { position: relative; display: block !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; background: none !important; padding: 8px 0 0 !important; margin: 0 !important; }
.adv-h .h-bar:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { display: grid !important; gap: 4px !important; }
.adv-h .h-b:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 3px !important; padding: 6px 0 !important; height: auto !important; min-height: 0 !important; border-radius: 8px !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--muted) !important; transform: none !important; filter: none !important; min-width: 0; }
.adv-h .h-b > span:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { font-family: var(--font-mono) !important; font-size: 10.5px !important; color: var(--text) !important; font-weight: 400 !important; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.adv-h .h-b:hover:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { color: var(--text) !important; }
.adv-h .h-b.on:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { background: var(--raise) !important; color: var(--up) !important; }
.adv-h .h-pop:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 30; background: var(--raise) !important; border: 1px solid var(--line-strong) !important; border-radius: 12px !important; padding: 11px !important; display: flex !important; flex-direction: column !important; gap: 9px !important; box-shadow: 0 14px 34px rgba(0, 0, 0, .45) !important; }
.adv-h .h-pop::after { content: ''; position: absolute; bottom: -6px; left: var(--ax, 26px); width: 10px; height: 10px; background: var(--raise); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transform: rotate(45deg); }
:root[data-theme="light"] .adv-h .h-pop:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { background: var(--panel) !important; box-shadow: 0 14px 34px rgba(8, 16, 56, .14) !important; }
:root[data-theme="light"] .adv-h .h-pop::after { background: var(--panel); }
.adv-h .h-ph:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { display: flex !important; flex-direction: column !important; gap: 2px !important; }
.adv-h .h-ph > b:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { font-weight: 600 !important; font-size: 13px !important; color: var(--text) !important; }
.adv-h .h-ph > span:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { font-size: 11px !important; color: var(--muted) !important; line-height: 1.35 !important; }
.adv-h .h-pop .adv-rows:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { display: block !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
.adv-h .h-pop .adv-seg:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { display: flex !important; width: 100% !important; justify-self: auto !important; gap: 1px !important; background: var(--panel) !important; border-radius: 7px !important; padding: 2px !important; border: 0 !important; box-shadow: none !important; }
:root[data-theme="light"] .adv-h .h-pop .adv-seg:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { background: var(--raise) !important; }
.adv-h .h-pop .adv-seg > button:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { flex: 1 1 0 !important; min-width: 0 !important; height: auto !important; font-family: var(--font-mono) !important; font-size: 11px !important; font-weight: 400 !important; padding: 4px 6px !important; border-radius: 5px !important; color: var(--muted) !important; background: none !important; box-shadow: none !important; border: 0 !important; white-space: nowrap; }
.adv-h .h-pop .adv-seg > button.on:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { background: var(--panel) !important; color: var(--text) !important; box-shadow: 0 0 0 1px var(--line-strong) !important; }
.adv-h .h-pop .adv-seg > .adv-pen:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { flex: 0 0 28px !important; }
.adv-h .h-pop .adv-seg > .adv-pen.on:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { flex: 1 1 0 !important; }
.adv-h .h-pop .adv-seg > .sg-thumb:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { display: none !important; }
.adv-h .h-pop .adv-edit:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { flex: 1 1 0 !important; width: auto !important; height: auto !important; padding: 3px 7px !important; border-radius: 5px !important; background: var(--panel) !important; box-shadow: 0 0 0 1.5px var(--up) !important; }
.adv-h .h-pop .adv-in:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { font-family: var(--font-mono) !important; font-size: 11px !important; padding: 0 !important; height: 16px !important; }
.adv-h .h-pop .adv-maxpop:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { display: flex !important; justify-content: flex-end !important; }
.adv-h .h-pop .adv-max:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { font-family: var(--font-mono) !important; font-size: 12px !important; color: var(--text) !important; border-bottom: 1px dashed var(--line-strong) !important; padding: 0 !important; height: auto !important; }
.adv-h .h-foot:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { display: flex !important; justify-content: space-between !important; gap: 8px; font-size: 11px !important; color: var(--muted) !important; }
.adv-h .h-foot > b:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { color: var(--text) !important; font-weight: 500 !important; font-family: var(--font-mono) !important; text-align: right; }
.adv-h .h-foot > b.plain:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { font-family: inherit !important; font-weight: 400 !important; line-height: 1.35; }
.adv-h .h-pop .adv-in:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { background: none !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; color: var(--text) !important; width: 100% !important; }
.adv-h .h-pop .adv-edit:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { display: flex !important; align-items: center !important; min-height: 0 !important; }
/* the five settings frozen to the bottom of the trade tab (2026-12-03): the panel fills the tab, the bar sits at its foot and stays
   in view (sticky) when the panel is taller than the tab */
.dk-side .dk-scroll:has(> .dk-tradebox):not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { display: flex !important; flex-direction: column !important; }
.dk-side .dk-scroll > .dk-tradebox:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { flex: 1 0 auto !important; display: flex !important; flex-direction: column !important; }
.dk-side .dk-tradebox > .swap-box:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { flex: 1 0 auto !important; }
.dk-side .dk-tradebox .swap-slip.swap-adv:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { margin-top: auto !important; position: sticky !important; bottom: 0 !important; z-index: 6 !important; background: var(--panel) !important; padding-bottom: 6px !important; }

/* the bar spans the full width on the Limit tab too; a ✕ closes the popover; each icon does its own little dance on hover (2026-12-03) */
.dk-side .dk-tradebox .swap-slip.swap-adv:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { align-self: stretch !important; width: 100% !important; box-sizing: border-box !important; }
.adv-h .h-ph:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { padding-right: 22px !important; }
.adv-h .h-x:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { position: absolute !important; top: 8px !important; right: 8px !important; width: 22px !important; height: 22px !important; min-height: 0 !important; padding: 0 !important; display: grid !important; place-items: center !important; border: 0 !important; border-radius: 6px !important; background: none !important; color: var(--muted) !important; font-size: 12px !important; line-height: 1 !important; cursor: pointer; box-shadow: none !important; }
.adv-h .h-x:hover:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { background: var(--panel) !important; color: var(--text) !important; }
.adv-h .h-b .ic { transform-origin: 50% 60%; }
@media (prefers-reduced-motion: no-preference) {
  .adv-h .h-b[data-k="slip"]:hover .ic { animation: h-drip .7s ease-in-out; }
  .adv-h .h-b[data-k="prio"]:hover .ic { animation: h-zap .55s ease-in-out; }
  .adv-h .h-b[data-k="tip"]:hover .ic { animation: h-flip .7s ease-in-out; }
  .adv-h .h-b[data-k="mev"]:hover .ic { animation: h-guard .7s ease-in-out; }
  .adv-h .h-b[data-k="max"]:hover .ic { animation: h-spin .8s cubic-bezier(.3,1.4,.5,1); }
}
@keyframes h-drip { 0%,100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-3px) scale(.92,1.08); } 55% { transform: translateY(1px) scale(1.1,.9); } 75% { transform: translateY(-1px) scale(.97,1.03); } }
@keyframes h-zap { 0%,100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-2px) rotate(-10deg); } 40% { transform: translateX(2px) rotate(10deg); } 60% { transform: translateX(-1px) rotate(-6deg); } 80% { transform: translateX(1px) rotate(4deg); } }
@keyframes h-flip { 0% { transform: translateY(0) rotateY(0); } 40% { transform: translateY(-4px) rotateY(180deg); } 80% { transform: translateY(0) rotateY(360deg); } 90% { transform: translateY(-1px) rotateY(360deg); } 100% { transform: translateY(0) rotateY(360deg); } }
@keyframes h-guard { 0%,100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-12deg) scale(1.08); } 50% { transform: rotate(10deg) scale(1.08); } 75% { transform: rotate(-4deg) scale(1.02); } }
@keyframes h-spin { 0% { transform: rotate(0); } 100% { transform: rotate(180deg); } }
.dk-tradebox .swap-adv > .adv-h:not(#_q1):not(#_q2):not(#_q3):not(#_q4):not(#_q5):not(#_q6):not(#_q7):not(#_q8) { flex: 1 1 auto !important; width: 100% !important; align-self: stretch !important; }
/* Trending strip, option H of ui/trending.html (2026-12-03, "Build H"): a 54 px strip of two-line cards. Logo 26, ticker with a
   crown on the top three (#N on the rest) over the 24 h % and the market cap; lift on hover; a % that moves flashes; a coin that
   climbs glows; skeleton cards until the list arrives; a fade at the right edge. */
.ticker.tk-h { height: 54px !important; padding: 0 0 0 14px !important; gap: 8px !important; overflow: hidden !important; display: flex !important; align-items: center !important; }
.tk-h .tk-lbl { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); flex: none; margin-right: 4px; }
.tk-h .tk-lbl .ic { color: #FB923C; } :root[data-theme="light"] .tk-h .tk-lbl .ic { color: #EA580C; }
.tk-h .tk-rail { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-right: 60px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); }
.tk-h .tk-rail::-webkit-scrollbar { display: none; }
.tk-h .tcd { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 8px; border-radius: 6px !important; background: var(--raise); border: 1px solid var(--line); flex: none; color: var(--text); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s, background .12s; }
.tk-h a.tcd:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--text) 5%, var(--raise)); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
:root[data-theme="light"] .tk-h a.tcd:hover { box-shadow: 0 4px 12px rgba(8, 16, 56, .12); }
.tk-h a.tcd:active { transform: none; box-shadow: none; }
.tk-h .tcd > img, .tk-h .tcd > .tok-ic { width: 26px !important; height: 26px !important; border-radius: 50% !important; flex: none; object-fit: cover; font-size: 12px; }
.tk-h .st { display: flex; flex-direction: column; gap: 3px; line-height: 1.05; }
.tk-h .t1, .tk-h .t2 { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tk-h .t1 b { font-size: 13px; font-weight: 600; }
.tk-h .t1 .rk { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.tk-h .t1 .tick-crown .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.tk-h .pc { font-family: var(--font-mono); font-size: 12px; font-weight: 500; border-radius: 3px; transition: background .5s, box-shadow .5s; }
.tk-h .pc.up { color: var(--up); } .tk-h .pc.dn { color: var(--down); }
.tk-h .pc.fl-dn { background: color-mix(in srgb, var(--down) 22%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--down) 45%, transparent); transition: none; }
.tk-h .pc.fl-up { background: color-mix(in srgb, var(--up) 22%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--up) 45%, transparent); transition: none; }
.tk-h .mc { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.tk-h .tcd.climb { box-shadow: 0 0 0 1px color-mix(in srgb, var(--up) 55%, transparent); }
.tk-h .skb { display: inline-block; border-radius: 3px; background: var(--line); flex: none; animation: tk-sk 1.4s ease-in-out infinite; }
@keyframes tk-sk { 50% { opacity: .45; } }
.tk-h .tcd.sk > .skb { border-radius: 50% !important; }
/* the update flash: rounder and roomier (2026-12-03). The padding is cancelled by a negative margin so the text never moves. */
.tk-h .pc { padding: 2px 6px !important; margin: -2px -6px !important; border-radius: 6px !important; }
.tk-h .t2 { gap: 12px !important; }

/* Home, option H "Market pulse" (2026-12-03, "H"): five numbers across the top, the four panels as cards below with pill tabs,
   "Open ↗" on the right, coin rows without the age · DEX line, market caps in mono. The :not(#_h…) chain outranks the
   app-wide tab, radius and logo rules above. Narrow windows: four numbers and three panels. Phone: 2 × 2 numbers over a switcher. */
.hp-h { display: flex; flex-direction: column; gap: 10px; padding: 12px; min-width: 0; }
.hp-pulse { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-kpi { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 11px 12px; border-radius: 8px !important; background: var(--panel); border: 1px solid var(--line); overflow: hidden; min-width: 0; color: var(--text); text-decoration: none; transition: border-color .12s; }
.hp-h a.hp-kpi:hover { border-color: var(--line-strong); }
.hp-kpi .hp-kl { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-kpi .hp-kv { font-family: var(--font-mono); font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-kpi .hp-ks { font-family: var(--font-mono); font-size: 12px; min-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-kpi .hp-ks.muted { font-family: var(--font); font-size: 11.5px; }
.hp-kpi .spark { position: absolute; right: 12px; bottom: 12px; width: 90px; height: 22px; opacity: .9; }
.hp-kpi .spark.up { color: var(--up); } .hp-kpi .spark.down { color: var(--down); }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-kpi.you { border-color: color-mix(in srgb, var(--up) 40%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--up) 7%, transparent), var(--panel)); }
.hp-kpi.dim .hp-kv { color: color-mix(in srgb, var(--muted) 70%, var(--panel)); }
.hp-skb { display: inline-block; border-radius: 3px; background: var(--line); flex: none; animation: tk-sk 1.4s ease-in-out infinite; max-width: 100%; }
.hp-seg { display: none; }

/* the panels as cards */
.hp-h .hp-grid:not(#_fh) { flex: 1 1 0; min-height: 0; height: auto; padding: 0; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) :is(.hp-grid > .hp-panel, .hp-stack > .hp-panel) { border: 1px solid var(--line); border-radius: 8px !important; background: var(--panel); height: auto; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-stack { border: 0; gap: 10px; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-stack > .hp-pos { border-color: color-mix(in srgb, var(--up) 35%, var(--line)); }
.hp-h .hp-head { gap: 7px; padding: 11px 12px 8px; }
.hp-h .hp-title { font-size: 14px; font-weight: 600; gap: 7px; } .hp-h .hp-title .ic { color: var(--muted); }
.hp-h .hp-more { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-tabs { display: flex; gap: 2px; padding: 0 8px 8px; border-bottom: 1px solid var(--line); flex-wrap: nowrap; overflow: hidden; align-items: center; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-tab { padding: 5px 8px !important; border-radius: 5px !important; font-size: 12.5px; font-weight: 400 !important; color: var(--muted) !important; background: none !important; box-shadow: none !important; white-space: nowrap; line-height: 1.3; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-tab:hover { color: var(--text) !important; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-tab.on { background: var(--raise) !important; color: var(--text) !important; box-shadow: none !important; }

/* rows */
.hp-h:not(#_h1):not(#_h2):not(#_h3) .hp-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: none; border-bottom: 1px solid var(--line); min-width: 0; transition: background .12s; }
.hp-h:not(#_h1):not(#_h2):not(#_h3) a.hp-row:hover { background: var(--raise); box-shadow: inset 2px 0 0 var(--up); }
.hp-h .hp-ic { flex: none; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-ic .tok-ic { width: 30px; height: 30px; font-size: 12px; }
.hp-h .hp-ic .chain-ic { right: -3px; bottom: -3px; }
.hp-h .hp-nm { flex: 1; gap: 2px; line-height: 1.15; }
.hp-h .hp-nm strong { font-size: 13.5px; font-weight: 600; }
.hp-h .hp-n { font-size: 11.5px; }
.hp-h .hp-eb { font-size: 10.5px; color: color-mix(in srgb, var(--muted) 75%, var(--panel)); }
.hp-h .hp-eb .hp-bd { color: var(--up); }
.hp-h .hp-sp { flex: none; }
.hp-h .hp-num { flex: none; gap: 3px; text-align: right; }
.hp-h .hp-num strong { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); }
.hp-h .hp-num > span { font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.hp-h .hp-num > span.muted { font-family: var(--font); font-size: 11px; font-weight: 400; }
.hp-h .hp-num .mcap { border-radius: 5px; transition: background .5s, box-shadow .5s, color .5s; }
.hp-h .hp-num .mcap.fl { background: color-mix(in srgb, var(--up) 20%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--up) 45%, transparent); padding: 1px 5px; margin: -1px -5px; color: var(--up); transition: none; }
.hp-h .hp-rank { width: 18px; flex: none; font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--muted); text-align: center; }
.hp-h .hp-rank.top { color: #FB923C; font-weight: 600; }
.hp-h .hp-tt .hp-nm strong { font-family: var(--font-mono); font-weight: 600; }
.hp-h .hp-tt .hp-num { flex-direction: row; align-items: center; gap: 6px; }
.hp-h .hp-tt .hp-num strong.up { color: var(--up); } .hp-h .hp-tt .hp-num strong.down { color: var(--down); }
.hp-h .hp-tt .hp-num .chain-ic { position: static; box-shadow: none; }
.hp-h .hp-posr .tok-ic { width: 26px !important; height: 26px !important; flex: none; }
.hp-h .hp-posr .hp-num strong { font-size: 12.5px; } .hp-h .hp-posr .hp-num > span { font-size: 11px; }
.hp-h .hp-sk { gap: 10px; } .hp-h .hp-skc { align-items: flex-start; }
.hp-h .hp-skcol { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .hp-h .hp-skcol.end { align-items: flex-end; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-sk > .hp-skb:first-child { border-radius: 4px !important; }
.hp-h .hp-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 36px 22px; font-size: 12.5px; line-height: 1.45; }
.hp-h .hp-empty .ic { color: color-mix(in srgb, var(--muted) 75%, var(--panel)); }

/* compact callout cards */
.hp-h .cl-list .cl-card { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 11px 12px; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .cl-list .cl-av { width: 28px; height: 28px; border-radius: 50% !important; }
.hp-h .cl-list .cl-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hp-h .cl-list .cl-who { font-size: 11px; line-height: 1.2; color: var(--muted); }
.hp-h .cl-list .cl-who > strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 1px; }
.hp-h .cl-list .cl-who > span:nth-of-type(1) { margin-left: 0; }
.hp-h .cl-list .cl-src { display: none; }
.hp-h .cl-list .cl-text { margin: 0; font-size: 12.5px; line-height: 1.4; white-space: normal; -webkit-line-clamp: 2; }
.hp-h .cl-list .cl-chips { margin: 0; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .cl-list .cl-chip { font-family: var(--font-mono); font-size: 11.5px; gap: 6px; padding: 5px 8px; border-radius: 6px !important; white-space: nowrap; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .cl-list .cl-chip .tok-ic { width: 14px; height: 14px; border-radius: 50% !important; }
.hp-h .cl-list .cl-chip strong { font-weight: 600; } .hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .cl-list .cl-chip .mcap { color: var(--up) !important; font-weight: 600 !important; }
.hp-h .cl-list .cl-chip .up { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); padding: 0 4px; border-radius: 3px; font-size: 11px; }
.hp-h .cl-list .cl-chip .cl-why { display: none; }
.hp-h .cl-list .cl-foot { margin: 0; gap: 14px; font-size: 11.5px; }
.hp-h .cl-list .cl-foot > .grow { display: none; }
.hp-h .cl-list .cl-foot > span[title="Likes"] { display: none; }

/* wide and narrow windows: the page runs to the bottom of the screen, panels scroll inside */
@media (min-width: 761px) {
  #view:not(#_fh):has(> .hp-h) { display: flex; flex-direction: column; }
  #view > .hp-h { flex: 1 1 0; min-height: calc(560px / var(--z, 1)); }
  .hp-h .hp-stack > .hp-panel:not(#_fh) { min-height: 0; height: auto; }
}
@media (min-width: 761px) and (max-width: 1400px) {
  .hp-pulse { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6):not(#_h7) .hp-pulse > :nth-child(n+5) { display: none; }
  .hp-h .hp-grid:not(#_fh) { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hp-h .hp-grid:not(#_fh) > :nth-child(4) { display: none; }
  .hp-h .hp-grid > .hp-panel:not(#_fh) { height: auto; }
}
@media (max-width: 760px) {
  .hp-h { padding: 12px 0 0; gap: 10px; }
  .hp-pulse { grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; } .hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6):not(#_h7) .hp-pulse > :nth-child(n+5) { display: none; }
  .hp-kpi .hp-kv { font-size: 17px; } .hp-kpi .spark { display: none; }
  .hp-seg { display: flex; gap: 4px; margin: 0 12px; padding: 3px; border-radius: 8px; background: var(--raise); }
  .hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-seg button { flex: 1; height: 30px; border: 0; border-radius: 6px !important; font-size: 12px; color: var(--muted); background: none; white-space: nowrap; padding: 0 4px; }
  .hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
  .hp-h .hp-grid:not(#_fh) { display: block; height: auto; }
  .hp-h .hp-grid:not(#_fh) > * { display: none; }
  .hp-h .hp-grid:not(#_fh):not(#_fi)[data-ph="coins"] > .hp-p-coins, .hp-h .hp-grid:not(#_fh):not(#_fi)[data-ph="calls"] > .hp-p-calls, .hp-h .hp-grid:not(#_fh):not(#_fi)[data-ph="ms"] > .hp-p-ms, .hp-h .hp-grid:not(#_fh):not(#_fi)[data-ph="tt"] > .hp-p-tt { display: flex; flex-direction: column; }
  .hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) :is(.hp-grid > .hp-panel, .hp-stack > .hp-panel) { border-radius: 0 !important; border-width: 1px 0 0; height: auto; }
  .hp-h .hp-head { display: none; }
  .hp-h .hp-tabs { padding-top: 8px; }
  .hp-h .hp-stack > .hp-pos { display: none; }
  .hp-h .hp-body { overflow: visible; }
  .hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) :is(.hp-stack, .hp-stack > .hp-panel, .hp-grid > .hp-panel) { flex: none; height: auto; min-height: 0; max-height: none; overflow: visible; }
}
.hp-h .hp-head > .grow { flex: 1 1 auto; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-num strong.mcap { color: var(--text) !important; font-family: var(--font-mono); font-weight: 600 !important; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-num strong.mcap.fl { color: var(--up) !important; }
.hp-h :is(a.hp-row, a.hp-kpi, .hp-row *, .hp-kpi *):hover, .hp-h :is(a.hp-row, a.hp-kpi) { text-decoration: none !important; }
/* the Callouts panel's own empty note, drawn like the other panels' (icon over one quiet line) */
.hp-h .cl-list .empty-state { padding: 36px 22px; gap: 10px; }
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .cl-list .empty-state .es-ic { background: none !important; border: 0 !important; box-shadow: none !important; width: auto; height: auto; color: color-mix(in srgb, var(--muted) 75%, var(--panel)); }
.hp-h .cl-list .empty-state strong { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.hp-h .cl-list .empty-state p { font-size: 12.5px; color: var(--muted); margin: -6px 0 0; }
/* Signed-out sidebar, option E "Ink top, quiet bottom" (2026-12-03: "No more blue color"): the card's Sign in is solid in the
   text colour (white on dark, near-black on light); the bottom Sign in / Sign Up is a plain outline so the two never compete. */
:is(.sw-out > .btn, .acct-btn):not(#_z1):not(#_z2):not(#_z3):not(#_z4):not(#_z5):not(#_z6):not(#_z7):not(#_z8) { background-image: none !important; box-shadow: none !important; text-shadow: none !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 7px !important; }
.sw-out > .btn:not(#_z1):not(#_z2):not(#_z3):not(#_z4):not(#_z5):not(#_z6):not(#_z7):not(#_z8) { background: var(--text) !important; color: var(--bg) !important; border: 0 !important; }
.acct-btn:not(#_z1):not(#_z2):not(#_z3):not(#_z4):not(#_z5):not(#_z6):not(#_z7):not(#_z8) { background: transparent !important; color: var(--text) !important; border: 1px solid var(--line-strong) !important; }
:is(.sw-out > .btn, .acct-btn):hover:not(#_z1):not(#_z2):not(#_z3):not(#_z4):not(#_z5):not(#_z6):not(#_z7):not(#_z8) { opacity: .85; }

/* Sign in / Sign Up popup, option C "Split with promise" (2026-12-03, "Build C"): why Ripper on a green-lit panel on the left,
   the form on the right. Phones: the left side is one line over the form. No blue anywhere. */
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) { width: 780px; max-width: calc(100vw - 24px); padding: 0; display: grid; grid-template-columns: 300px 1fr; overflow: hidden; border-radius: 12px !important; background: var(--panel); border: 1px solid var(--line-strong); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.55); text-align: left; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) * { box-sizing: border-box; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-x { position: absolute; top: 12px; right: 12px; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); font-size: 20px; border-radius: 6px !important; cursor: pointer; padding: 0; line-height: 1; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-x:hover { background: var(--raise); color: var(--text); }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-side { padding: 28px 24px; background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, #34D399 22%, transparent), transparent 60%), #0B0F0D; color: #EDEDED; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-wm { font-weight: 700; font-size: 20px; letter-spacing: -.03em; } .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-wi { color: #34D399; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-side h2 { font-size: 24px; font-weight: 600; margin: 18px 0 4px; letter-spacing: -.01em !important; text-transform: none !important; color: #EDEDED; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; } .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-side li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.35; color: #cfcfcf; } .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-side li svg { color: #34D399; flex: none; margin-top: 1px; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-sfoot { margin: auto 0 0; font-size: 12px; color: #8F8F8F; } .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-sline { display: none; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-main { padding: 28px 26px 22px; min-width: 0; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au2-form { display: block; margin: 0; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au2-form h1 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.2; padding-right: 24px; text-transform: none; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au2-form .au-d { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 8px 0 18px; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au2-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--muted); cursor: pointer; margin: 0 0 14px; padding: 0; border: 0; border-radius: 0 !important; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au2-agree a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au2-agree input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 4px !important; border: 1.5px solid var(--line-strong); background: var(--bg) no-repeat center / 13px; cursor: pointer; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au2-agree input[type=checkbox]:checked { background-color: #34D399; border-color: #34D399; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306140D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au2-agree.au2-shake { color: var(--text); }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au2-agree.au2-shake input[type=checkbox] { border-color: var(--down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 22%, transparent); }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au2-invite { margin: 0 0 14px; padding: 9px 11px; border-radius: 8px !important; font-size: 12.5px; line-height: 1.4; color: var(--text); background: color-mix(in srgb, #34D399 10%, transparent); border: 1px solid color-mix(in srgb, #34D399 30%, transparent); }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-body { margin: 0; gap: 0; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-form { display: flex; flex-direction: column; gap: 10px; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-in { width: 100%; height: 44px; padding: 0 13px; border-radius: 8px !important; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 14.5px; outline: none; box-shadow: none; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-in::placeholder { color: var(--muted); opacity: .8; } .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-in:focus { border-color: var(--text); }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) :is(.au-go, .au-google) { width: 100%; height: 44px; border-radius: 8px !important; font: inherit; font-size: 14.5px !important; font-weight: 600 !important; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; box-shadow: none !important; text-shadow: none !important; background-image: none !important; filter: none !important; transform: none !important; transition: opacity .15s, background .15s; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-go { border: 0 !important; background: var(--text) !important; color: var(--bg) !important; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-go:hover { opacity: .86; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-google { border: 1px solid var(--line-strong) !important; background: transparent !important; color: var(--text) !important; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-google:hover { background: var(--raise) !important; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .is-off { opacity: .4; } .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .is-off:hover { opacity: .4; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-or { margin: 14px 0; font-size: 12px; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-msg { margin: 12px 0 0; min-height: 0; font-size: 12.5px; color: var(--down); } .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-msg:empty { display: none; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-form > p { font-size: 13.5px; line-height: 1.45; color: var(--muted); margin: 0 0 4px; } .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-form > p strong { color: var(--text); font-weight: 600; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-code { font-family: var(--font-mono) !important; letter-spacing: .5em !important; font-size: 20px; text-align: center; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-links { display: flex; justify-content: space-between; margin-top: 2px; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-link { border: 0 !important; background: none !important; box-shadow: none !important; color: var(--muted) !important; font: inherit; font-size: 12.5px !important; font-weight: 400 !important; height: auto !important; padding: 4px 0 !important; text-decoration: underline; text-underline-offset: 2px; } .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-link:hover { color: var(--text) !important; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-coding :is(.au2-agree, .au2-invite, .au-or, .au-google) { display: none !important; }
@media (max-width: 760px) {
  .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) { grid-template-columns: 1fr; width: calc(100vw - 24px); }
  .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-side { padding: 16px 18px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-side :is(h2, ul, .au-sfoot) { display: none; } .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-side .au-sline { display: block; margin: 0; font-size: 12px; color: #cfcfcf; }
  .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-main { padding: 20px 18px 18px; } .au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au2-form h1 { font-size: 20px; }
}

/* Sign-in popup C: the sidebar's wordmark; the left panel is dark in both themes, so always its dark-theme file */
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-side .wm .wm-d { display: block !important; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-side .wm .wm-l { display: none !important; }
.au-pop.au-split:not(#_u1):not(#_u2):not(#_u3):not(#_u4):not(#_u5):not(#_u6) .au-side .au2-logo .wm img { height: 28px; width: auto; }

/* Signed-in sidebar footer, option C of ui/footer.html (2026-12-03): one account chip; its menu (Light / Dark, Sign out) opens
   to the right of the sidebar, above the chip on phones. Signed in, the separate theme button is hidden. */
.side-bottom .side-theme[hidden] { display: none !important; }
.acsf:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { width: 100%; }
.acsf-chip:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { width: 100%; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 8px; border: 1px solid var(--line); background: transparent; border-radius: 8px !important; text-align: left; color: var(--text); font: inherit; font-weight: 400; cursor: pointer; transition: background .15s, border-color .15s; text-transform: none; letter-spacing: 0; }
.acsf-chip:not(#_s1):not(#_s2):not(#_s3):not(#_s4):hover, .acsf-chip.on:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { background: var(--raise); border-color: var(--line-strong); }
.acsf-av:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px !important; background: color-mix(in srgb, #34D399 18%, transparent); color: #34D399; font-weight: 700; font-size: 13px; }
.acsf-txt:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
:is(.acsf-chip, .acsf-menu) .acsf-n:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.acsf-chip, .acsf-menu) .acsf-e:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acsf-ic:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { display: inline-grid; place-items: center; flex: none; } .acsf-dots:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { color: var(--muted); }
.acsf-menu:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { position: fixed; z-index: 1000; width: 240px; padding: 6px; border-radius: 10px !important; background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0,0,0,.45); color: var(--text); font-family: var(--font); }
.acsf-menu .acsf-legal { display: flex; gap: 14px; padding: 4px 10px; font-size: 12.5px; } .acsf-menu .acsf-legal a { color: var(--muted); text-decoration: none; } .acsf-menu .acsf-legal a:hover { color: var(--text); text-decoration: underline; }
.acsf-menu .acsf-head:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { padding: 8px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acsf-menu .acsf-lbl:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { font-size: 11px; color: var(--muted); padding: 6px 8px; }
.acsf-menu .acsf-seg:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin: 0 2px 6px; border-radius: 8px !important; background: var(--bg); border: 1px solid var(--line); }
.acsf-menu .acsf-seg button:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { height: 30px; border: 0; background: none; border-radius: 6px !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; padding: 0; min-width: 0; }
.acsf-menu .acsf-seg button.on:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { background: var(--raise); color: var(--text); box-shadow: 0 1px 0 var(--line-strong) inset; }
.acsf-menu .acsf-sep:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { height: 1px; background: var(--line); margin: 6px 2px; }
.acsf-menu .acsf-out:not(#_s1):not(#_s2):not(#_s3):not(#_s4) { width: 100%; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; background: none; border-radius: 6px !important; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; justify-content: flex-start; }
.acsf-menu .acsf-out:not(#_s1):not(#_s2):not(#_s3):not(#_s4) .acsf-ic { color: var(--muted); }
.acsf-menu .acsf-out:not(#_s1):not(#_s2):not(#_s3):not(#_s4):hover { color: var(--down); background: color-mix(in srgb, var(--down) 10%, transparent); } .acsf-menu .acsf-out:not(#_s1):not(#_s2):not(#_s3):not(#_s4):hover .acsf-ic { color: var(--down); }

.acsf-menu .acsf-head:not(#_s1):not(#_s2):not(#_s3):not(#_s4) > div { display: block; } .acsf-chip:not(#_s1):not(#_s2):not(#_s3):not(#_s4) .acsf-e { font-weight: 400; }
/* Home rows' market-cap flash (2026-12-03): rounded like the trending bar's, and a softer tint. */
.hp-h:not(#_h1):not(#_h2):not(#_h3):not(#_h4):not(#_h5):not(#_h6) .hp-num strong.mcap.fl { padding: 2px 6px !important; margin: -2px -6px !important; border-radius: 6px !important; background: color-mix(in srgb, var(--up) 11%, transparent) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--up) 22%, transparent) !important; }
.au2-doc .lg-doc .lg-toc-l, .ag-read .lg-doc .lg-toc-l { columns: 1; } .au2-doc .lg-doc .lg-head h2 { font-size: 24px; }

/* New pairs, list and grid (2026-12-03, options F "Curve first" and D "Card grid" of ui/newpairs.html). A switch top right picks
   the view (prefs.live.view). Shared: stage tabs as pills, presets as round pills, on/off switches with a tick, market caps in
   white mono, softer check cells, an outlined green quick buy. List: each coin's launchpad curve under its name. Grid: cards. */
.np-top:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) { display: flex; align-items: center; gap: 12px; margin: 2px 0 10px; }
.np-top:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .grow { flex: 1; }
.np-top:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .m-views { display: flex; gap: 4px; border: 0 !important; margin: 0 !important; padding: 0 !important; }
.np-top:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .m-view { height: 32px !important; padding: 0 12px !important; border-radius: 7px !important; color: var(--muted) !important; font-size: 13.5px !important; border: 0 !important; box-shadow: none !important; background: none !important; white-space: nowrap; }
.np-top:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .m-view.on { color: var(--text) !important; background: var(--raise) !important; }
.np-vsw:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) { display: inline-grid; grid-auto-flow: column; gap: 3px; padding: 3px; border-radius: 9px !important; background: var(--bg); border: 1px solid var(--line); flex: none; }
.np-vsw:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) button { height: 28px; padding: 0 11px; border: 0; background: none; border-radius: 6px !important; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; text-transform: none; letter-spacing: 0; }
.np-vsw:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) button:hover { color: var(--text); }
.np-vsw:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) button.on { background: var(--raise); color: var(--text); box-shadow: 0 1px 0 var(--line-strong) inset; } .np-vsw:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) button.on .np-vic { color: #34D399; }
.np-vsw:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-vic { display: inline-grid; place-items: center; }
.np-bar.np-vf:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
.np-bar.np-vf:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) > .chip { height: 30px !important; border-radius: 7px !important; font-size: 12.5px !important; white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; }
.np-bar.np-vf:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) > .chip:first-child { border: 1px solid var(--line-strong) !important; background: transparent !important; color: var(--text) !important; padding: 0 11px !important; }
.np-bar.np-vf:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) > .chip:first-child.on { background: var(--raise) !important; }
.np-bar.np-vf:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-fn { font-style: normal; font-size: 10.5px; min-width: 16px; height: 16px; border-radius: 8px !important; background: #34D399; color: #06140D; display: inline-grid; place-items: center; font-weight: 700; padding: 0 4px; }
.np-bar.np-vf:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) > .np-pre { border-radius: 999px !important; border: 1px solid var(--line) !important; background: transparent !important; color: var(--muted) !important; padding: 0 11px !important; box-shadow: none !important; }
.np-bar.np-vf:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) > .np-pre.on { color: var(--text) !important; border-color: var(--line-strong) !important; background: var(--raise) !important; }
.np-bar.np-vf:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) > :is(.np-tog, .np-reset) { border: 0 !important; background: transparent !important; color: var(--muted) !important; padding: 0 10px !important; box-shadow: none !important; }
.np-bar.np-vf:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) > .np-tog.on { color: var(--text) !important; background: color-mix(in srgb, #34D399 10%, transparent) !important; box-shadow: 0 0 0 1px color-mix(in srgb, #34D399 30%, transparent) inset !important; }
.np-bar.np-vf:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) > .np-tog.on .ic { color: #34D399; }
.np-bar.np-vf:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) > .grow { flex: 1; min-width: 8px; }
:is(.np-v-list, .np-v-grid):not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-c2 :is(.mcap, b, strong) { color: var(--text) !important; font-family: var(--font-mono); font-weight: 600 !important; font-size: 13.5px; }
:is(.np-v-list, .np-v-grid):not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-c2 .mcap.flash-up { color: var(--up) !important; } :is(.np-v-list, .np-v-grid):not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-c2 .mcap.flash-down { color: var(--down) !important; }
:is(.np-v-list, .np-v-grid):not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-hc.ok { background: color-mix(in srgb, #34D399 9%, transparent); color: #34D399; }
:is(.np-v-list, .np-v-grid):not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-hc.bad { background: color-mix(in srgb, var(--down) 11%, transparent); color: var(--down); }
:is(.np-v-list, .np-v-grid):not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-hc.warn { background: color-mix(in srgb, #E7B44C 11%, transparent); color: #E7B44C; }
:is(.np-v-list, .np-v-grid):not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-hc { border-radius: 5px !important; font-family: var(--font-mono); font-weight: 500; }
:is(.np-v-list, .np-v-grid):not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-qb { display: inline-flex; gap: 6px; justify-content: flex-end; align-items: center; }
/* List (F): the curve under the name */
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-curve { display: none; }
.np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-curve { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 3px; margin-top: 3px; min-width: 0; overflow: visible !important; }
.np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-cbar { display: block; height: 4px; width: 160px; max-width: 100%; border-radius: 3px !important; background: var(--line); overflow: hidden; }
.np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-cbar i { display: block; height: 100%; border-radius: 3px !important; background: var(--muted); } .np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-cbar i.hot { background: #34D399; }
.np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-clab { font-size: 11px; color: var(--muted); line-height: 1.1; }
.np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row:not(.head) { height: 74px !important; }
.np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-nm { gap: 2px; }
/* Grid (D): cards, four across */
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row.head { display: none !important; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 2px 0 16px; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-list > .empty-state { grid-column: 1 / -1; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row:not(.head) { display: grid !important; height: auto !important; min-height: 0 !important; grid-template-columns: 46px minmax(0, 1fr) auto !important; grid-template-areas: "ic nm st" "mc mc ho" "bs bs bs" "ck ck ck" "qb qb qb"; gap: 10px !important; align-items: center; padding: 12px !important; border: 1px solid var(--line) !important; border-radius: 12px !important; background: var(--panel) !important; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row:hover { border-color: var(--line-strong) !important; background: var(--raise) !important; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > :is(.np-c0, .np-c3, .np-c6, .np-c7, .np-c9) { display: none !important; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-c1 { display: contents !important; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-ic { grid-area: ic; width: 46px !important; height: 46px !important; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-ic .tok-ic { width: 100% !important; height: 100% !important; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-nm { grid-area: nm; min-width: 0; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-l1 strong { max-width: 100% !important; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-star { grid-area: st; position: static !important; align-self: start; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-c2 { grid-area: mc; display: flex !important; justify-content: flex-start !important; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-c2 :is(.mcap, b, strong) { font-size: 20px !important; } .np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-c2 .nv { justify-content: flex-start !important; text-align: left !important; width: auto !important; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-c5 { grid-area: ho; display: flex !important; justify-content: flex-end; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-c4 { grid-area: bs; display: flex !important; width: 100%; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-c4 .np-bs { width: 100%; } .np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-c4 .np-bsbar { flex: 1; width: auto; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-c8 { grid-area: ck; display: block !important; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-hm { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 4px; width: 100%; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-hc { height: auto !important; display: flex !important; flex-direction: column; padding: 4px 0; border-radius: 6px !important; font-size: 11.5px; gap: 1px; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-hc::before { font-family: var(--font); font-size: 9.5px; font-weight: 400; color: var(--muted); }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-hc:nth-child(1)::before { content: 'Top 10'; } .np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-hc:nth-child(2)::before { content: 'Dev'; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-hc:nth-child(3)::before { content: 'Snipers'; } .np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-hc:nth-child(4)::before { content: 'Insiders'; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-hc:nth-child(5)::before { content: 'Bundlers'; } .np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-hc:nth-child(6)::before { content: 'Mint'; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-hc:nth-child(7)::before { content: 'Freeze'; } .np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row .np-hc:nth-child(8)::before { content: 'LP'; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-qb { grid-area: qb; display: flex !important; width: 100%; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-qb { justify-content: flex-end; }
@media (max-width: 1400px) { .np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-list { grid-template-columns: 1fr; }
  .np-top:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) { gap: 8px; } .np-top:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .m-views { overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; } .np-top:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .grow { display: none; }
  .np-top:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .m-view { padding: 0 9px !important; font-size: 13px !important; }
  .np-vsw:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) button span:not(.np-vic) { display: none; } .np-vsw:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) button { padding: 0 8px; }
  .np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row:not(.head) { height: auto !important; } .np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-cbar { max-width: none; }
}

/* the quick buy sits in its own column (room for the second amount on hover) in the list, and in the card's flow in the grid */
@media (min-width: 901px) {
  .np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row { grid-template-columns: 26px minmax(180px, 2fr) 84px 124px 66px 330px 196px !important; }
  .np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row.head::after { content: ''; }
  .np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-qb { position: static !important; grid-column: 7; justify-self: end; transform: none !important; }
}
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-qb { position: static !important; transform: none !important; inset: auto !important; }
.np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-c2 { justify-self: start !important; text-align: left !important; } .np-v-grid:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-row > .np-c2 > * { margin: 0 !important; }

/* light: the theme's darker check colours, and a darker green on the buy and the switches */
:root[data-theme="light"] :is(.np-v-list, .np-v-grid):not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-hc.ok { color: var(--hc-ok); background: color-mix(in srgb, var(--hc-ok) 10%, transparent); }
:root[data-theme="light"] :is(.np-v-list, .np-v-grid):not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-hc.bad { color: var(--hc-bad); background: color-mix(in srgb, var(--hc-bad) 10%, transparent); }
:root[data-theme="light"] :is(.np-v-list, .np-v-grid):not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-hc.warn { color: var(--hc-warn); background: color-mix(in srgb, var(--hc-warn) 12%, transparent); }
:root[data-theme="light"] .np-bar.np-vf:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) > .np-tog.on .ic, :root[data-theme="light"] .np-vsw:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) button.on .np-vic { color: var(--hc-ok); }
:root[data-theme="light"] .np-v-list:not(#_v1):not(#_v2):not(#_v3):not(#_v4):not(#_v5) .np-cbar i.hot { background: var(--hc-ok); }

/* The one quick-buy button (2026-12-04: "only ONE quick buy button, anywhere it appears … pill with depth, animated on click").
   Every ⚡ on the site is trade.js buyButton and buys the account's quick-buy amount; this block is its only look and wins
   over every older .qb rule (six id-free :not(#) steps). Bolt and amount are one pill; a darker edge under it gives depth,
   pressing sinks it onto the edge and a ring pulses out. */
button.qb:not(.np-bell):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) {
  --qb: var(--candle-up, #34D399); --qb-e: color-mix(in srgb, var(--qb) 55%, #000); --qb-t: #04170D;
  display: inline-flex; align-items: center; gap: 4px; height: 28px; min-height: 0; padding: 0 12px 0 9px !important;
  border: 0 !important; border-radius: 999px !important; overflow: visible; white-space: nowrap; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--qb) 88%, #fff), var(--qb)) !important; color: var(--qb-t) !important;
  font: 700 12.5px/1 var(--font-mono); text-shadow: none; filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 var(--qb-e), 0 4px 10px rgba(0, 0, 0, .28) !important;
  transform: translateY(0) !important; transition: transform .09s ease, box-shadow .09s ease, filter .12s ease; position: relative;
}
button.qb:not(.np-bell):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) > :is(.qb-b, .qb-a) {
  background: transparent !important; color: inherit !important; border: 0 !important; padding: 0 !important; font: inherit; border-radius: 0;
}
button.qb:not(.np-bell):not(:disabled):hover:not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) {
  filter: brightness(1.08) !important; transform: translateY(-1px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 0 var(--qb-e), 0 6px 14px rgba(0, 0, 0, .3) !important;
}
button.qb:not(.np-bell):not(:disabled):active:not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) {
  transform: translateY(3px) !important; filter: brightness(.96) !important;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .22), 0 0 0 var(--qb-e) !important;
}
button.qb:not(.np-bell):not(:disabled):active:not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6)::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px !important; pointer-events: none; animation: qb-pulse .45s ease-out;
}
@keyframes qb-pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--candle-up, #34D399) 60%, transparent); } to { box-shadow: 0 0 0 9px transparent; } }
button.qb:not(.np-bell):disabled:not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) { opacity: .6 !important; cursor: default; transform: translateY(3px) !important; box-shadow: 0 0 0 var(--qb-e) !important; }
:root[data-theme="light"] button.qb:not(.np-bell):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) { --qb-t: #fff; --qb-e: color-mix(in srgb, var(--qb) 60%, #000); }
@media (prefers-reduced-motion: reduce) { button.qb:not(.np-bell):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) { transition: none; } button.qb:active::after { animation: none !important; } }

button.qb:not(.np-bell):focus:not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) { outline: none !important; }
button.qb:not(.np-bell):focus-visible:not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) { outline: 2px solid var(--focus, #6FA3DE) !important; outline-offset: 2px; }

/* Two-tone pill (2026-12-04: "give the lightning side a different color (gray)"): the bolt sits on a gray cap, the amount on
   green; each half keeps its own darker edge underneath, so the depth and the press read the same as before. */
button.qb:not(.np-bell):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) { --qb-g: #3A3B41; --qb-ge: #1E1F23; --qb-gt: #D4D4D8; background: transparent !important; padding: 0 !important; gap: 0; align-items: stretch; box-shadow: 0 4px 10px rgba(0, 0, 0, .28) !important; }
button.qb:not(.np-bell):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) > .qb-b { display: inline-flex; align-items: center; padding: 0 6px 0 9px !important; border-radius: 999px 0 0 999px !important; background: linear-gradient(180deg, color-mix(in srgb, var(--qb-g) 85%, #fff), var(--qb-g)) !important; color: var(--qb-gt) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 3px 0 var(--qb-ge); transition: box-shadow .09s ease; }
button.qb:not(.np-bell):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) > .qb-a { display: inline-flex; align-items: center; padding: 0 12px 0 7px !important; border-radius: 0 999px 999px 0 !important; background: linear-gradient(180deg, color-mix(in srgb, var(--qb) 88%, #fff), var(--qb)) !important; color: var(--qb-t) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 var(--qb-e); transition: box-shadow .09s ease; }
button.qb:not(.np-bell):not(:disabled):hover:not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) { box-shadow: 0 6px 14px rgba(0, 0, 0, .3) !important; }
button.qb:not(.np-bell):not(:disabled):hover:not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) > .qb-b { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 4px 0 var(--qb-ge); }
button.qb:not(.np-bell):not(:disabled):hover:not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) > .qb-a { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 0 var(--qb-e); }
button.qb:not(.np-bell):is(:not(:disabled):active, :disabled):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) { box-shadow: none !important; }
button.qb:not(.np-bell):is(:not(:disabled):active, :disabled):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) > :is(.qb-b, .qb-a) { box-shadow: inset 0 2px 3px rgba(0, 0, 0, .22); }
:root[data-theme="light"] button.qb:not(.np-bell):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) { --qb-g: #E4E4E7; --qb-ge: #B4B4BB; --qb-gt: #3F3F46; box-shadow: 0 3px 8px rgba(0, 0, 0, .12) !important; }

/* Whatever holds a quick buy never clips it: the pill lifts 1px on hover and keeps a 3-4px edge under it (Trending rows
   held it in a 28px cell with overflow hidden, cutting the top and bottom off, 2026-12-04). */
:has(> button.qb:not(.np-bell)):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) { overflow: visible !important; }
/* Rows (New pairs list and grid, Pairs / Trending): the compact pill, 22px tall (2026-12-04: "still too big … scale it down"). */
:is(.np-row, .board.pr a.row) button.qb:not(.np-bell):not(#_g1):not(#_g2):not(#_g3):not(#_g4):not(#_g5):not(#_g6):not(#_g7) { height: 22px; font-size: 11px; gap: 0; flex: none; }
:is(.np-row, .board.pr a.row) button.qb:not(.np-bell):not(#_g1):not(#_g2):not(#_g3):not(#_g4):not(#_g5):not(#_g6):not(#_g7) > .qb-b { padding: 0 4px 0 7px !important; }
:is(.np-row, .board.pr a.row) button.qb:not(.np-bell):not(#_g1):not(#_g2):not(#_g3):not(#_g4):not(#_g5):not(#_g6):not(#_g7) > .qb-b svg { width: 11px; height: 11px; }
:is(.np-row, .board.pr a.row) button.qb:not(.np-bell):not(#_g1):not(#_g2):not(#_g3):not(#_g4):not(#_g5):not(#_g6):not(#_g7) > .qb-a { padding: 0 8px 0 5px !important; }
/* Coin page info row: only the bookmark at the end, a bare 26px icon with a hairline divider (2026-12-04). */
.dk-zoned .dkz-ac:not(#_b1):not(#_b2):not(#_b3) { padding: 0 6px; gap: 0; }
.dk-zoned .dkz-ac .pp-star:not(.on):not(#_b1):not(#_b2):not(#_b3):not(#_b4):not(#_b5):not(#_b6):not(#_b7) { color: var(--muted); }
.dk-zoned .dkz-ac .pp-star:not(#_b1):not(#_b2):not(#_b3):not(#_b4):not(#_b5):not(#_b6):not(#_b7) { width: 26px; height: 26px; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 6px !important; }
.dk-zoned .dkz-ac .pp-star:hover:not(#_b1):not(#_b2):not(#_b3):not(#_b4):not(#_b5):not(#_b6):not(#_b7) { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent) !important; }
/* Sent: the instant a quick buy is clicked the pill flashes bright and a ring goes out; the button never waits or shows a
   loader, the notifications carry the result (2026-12-04). */
button.qb.qb-sent:not(.np-bell):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6) > .qb-a { animation: qb-sent .7s ease-out; }
button.qb.qb-sent:not(.np-bell):not(#_k1):not(#_k2):not(#_k3):not(#_k4):not(#_k5):not(#_k6)::after { content: ''; position: absolute; inset: 0; border-radius: 999px !important; pointer-events: none; animation: qb-pulse .6s ease-out; }
@keyframes qb-sent { 0% { filter: brightness(1.45) saturate(1.2); } 100% { filter: none; } }
@media (prefers-reduced-motion: reduce) { button.qb.qb-sent > .qb-a, button.qb.qb-sent::after { animation: none !important; } }

/* Terms popup, option D of ui/tos.html (2026-12-04): sign-in's split shape, the wordmark on a side panel, and the full
   Terms + Privacy Policy in a box you can read through (never required: the tick is the agreement). */
.ag-card.tosd:not(#_d1):not(#_d2) { flex-direction: row; width: min(880px, calc(94vw / var(--z, 1))); height: min(calc(640px / var(--z, 1)), calc(90vh / var(--z, 1))); }
.tosd .tosd-side { width: 270px; flex: none; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, #3B82F6 22%, transparent), transparent 60%), var(--bg); border-right: 1px solid var(--line); }
.tosd .tosd-side .wm img { height: 28px; width: auto; }
.tosd .tosd-side p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--text); }
.tosd .tosd-main { flex: 1; min-width: 0; min-height: 0; padding: 26px 28px 22px; display: flex; flex-direction: column; gap: 13px; }
.tosd .tosd-main h2 { margin: 0; }
.tosd .tosd-lead { margin: -4px 0 0; font-size: 13.5px; line-height: 1.5; }
.tosd .tosd-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.tosd .tosd-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.tosd .tosd-links a svg { color: var(--muted); }
.tosd .ag-read:not(#_d1) { flex: 1; min-height: 110px; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; }
.tosd .ag-read .lg-doc h2 { font-size: 17px; }
.tosd .ag-check { font-size: 13.5px; line-height: 1.45; }
.tosd .ag-accept:not(#_d1) { width: 100%; flex: none; }
.tosd .tos-leave { text-align: center; font-size: 12px; }
@media (max-width: 720px) {
  .ag-card.tosd:not(#_d1):not(#_d2) { flex-direction: column; width: 100%; height: calc(94vh / var(--z, 1)); }
  .tosd .tosd-side { width: auto; padding: 14px 18px; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; align-items: center; gap: 14px; }
  .tosd .tosd-side p { display: none; }
  .tosd .tosd-main { padding: 16px 18px 16px; gap: 11px; }
  .tosd .tos-leave { display: block !important; }
}

/* Trending views (2026-12-03, options A, C and J of ui/trending-tab.html): the Table / Grid / Sheet switch top right, as on
   New pairs, then the grid of cards and the sheet. Every quick buy is New pairs' pill, at the rows' compact size. */
.pl-top .pl-vsw { margin: 0 0 8px auto; align-self: center; }
.spark-area { stroke: none; } .spark-area.up { fill: color-mix(in srgb, var(--up) 14%, transparent); } .spark-area.down { fill: color-mix(in srgb, var(--down) 14%, transparent); }
.trv { margin-top: 4px; }
.trc-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.trc:not(#_t1):not(#_t2) { display: flex; flex-direction: column; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 10px !important; background: var(--raise); color: var(--text); text-decoration: none; min-width: 0; transition: border-color .15s, transform .15s; }
.trc:not(.trc-sk):hover:not(#_t1):not(#_t2) { border-color: color-mix(in srgb, var(--up) 55%, var(--line)); transform: translateY(-1px); }
.trc-h { display: flex; align-items: center; gap: 9px; min-width: 0; } .trc-h img, .trc-h .tok-ic { width: 30px; height: 30px; flex: none; }
.trc-n { display: flex; flex-direction: column; min-width: 0; flex: 1; } .trc-n b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .trc-n small, .trc-s small { font-size: 11px; color: var(--muted); }
.trc-rk { font: 500 11px var(--font-mono); color: var(--muted); }
.trc-m { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .trc-m b { font: 600 17px var(--font-mono); } .trc-m > span { font-family: var(--font-mono); font-size: 13px; }
.trc-sp { display: block; height: 46px; } .trc-sp .spark { width: 100%; height: 46px; display: block; }
.trc-s { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font: 12px var(--font-mono); } .trc-s > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .trc-s small { font-family: var(--font); }
.trc-f { display: flex; align-items: center; gap: 8px; padding-top: 2px; } .trc-f .grow { flex: 1; }
.trc-sk { min-height: 200px; }
.trs-cols { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.trs { border: 1px solid var(--line); border-radius: 10px !important; overflow-x: auto; overflow-y: hidden; }
.trs-r:not(#_t1):not(#_t2) { display: grid; align-items: stretch; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font: 12px var(--font-mono); }
.trs-r:last-child { border-bottom: 0 !important; }
a.trs-r:hover:not(#_t1):not(#_t2) { background: var(--raise); }
.trs-r > * { display: flex; align-items: center; justify-content: flex-end; padding: 0 9px; min-height: 36px; min-width: 0; }
.trs-r > :nth-child(-n+2) { justify-content: flex-start; position: sticky; z-index: 1; background: var(--bg); } .trs-r > :nth-child(1) { left: 0; } .trs-r > :nth-child(2) { left: 36px; box-shadow: 1px 0 0 var(--line); }
a.trs-r:hover > :nth-child(-n+2) { background: var(--raise); }
.trs-h:not(#_t1):not(#_t2) { font-family: var(--font); font-size: 11.5px; color: var(--muted); background: var(--raise); } .trs-h > :nth-child(-n+2) { background: var(--raise); }
.trs-hb { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; } .trs-hb:hover, .trs-hb.on { color: var(--text); }
.trs-k { color: var(--muted); }
.trs-t { gap: 7px; } .trs-t img, .trs-t .tok-ic { width: 20px; height: 20px; flex: none; } .trs-t b { font: 600 12.5px var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trs-bar { position: relative; } .trs-bar > i { position: absolute; right: 4px; top: 7px; bottom: 7px; background: color-mix(in srgb, var(--up) 17%, transparent); border-radius: 2px !important; } .trs-bar > span { position: relative; }
.trs-heat > span { font-family: var(--font-mono); }
.trs-qb { justify-content: center !important; }
:is(.trc, .trs-r) button.qb:not(.np-bell):not(#_g1):not(#_g2):not(#_g3):not(#_g4):not(#_g5):not(#_g6):not(#_g7) { height: 22px; font-size: 11px; gap: 0; flex: none; }
:is(.trc, .trs-r) button.qb:not(.np-bell):not(#_g1):not(#_g2):not(#_g3):not(#_g4):not(#_g5):not(#_g6):not(#_g7) > .qb-b { padding: 0 4px 0 7px !important; }
:is(.trc, .trs-r) button.qb:not(.np-bell):not(#_g1):not(#_g2):not(#_g3):not(#_g4):not(#_g5):not(#_g6):not(#_g7) > .qb-b svg { width: 11px; height: 11px; }
:is(.trc, .trs-r) button.qb:not(.np-bell):not(#_g1):not(#_g2):not(#_g3):not(#_g4):not(#_g5):not(#_g6):not(#_g7) > .qb-a { padding: 0 8px 0 5px !important; }
.trc .p-buy, .trs-r .p-buy { position: static !important; transform: none !important; opacity: 1 !important; pointer-events: auto !important; display: inline-flex; }
@media (max-width: 720px) {
  .trc-g { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trc:not(#_t1):not(#_t2) { padding: 10px; gap: 7px; } .trc-m b { font-size: 15px; } .trc-s { grid-template-columns: 1fr 1fr; } .trc-s > span:nth-child(3) { display: none; }
  .pl-top .pl-vsw { margin: 0 0 0 auto; }
}

/* Trending header (2026-12-03, option D of ui/trending-header.html): lists, window and view switch on one line, then one
   command bar where the list, the window and each filter are tokens. Phones: lists, bar, then window + view switch. */
.trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "tabs win vsw" "bar bar bar"; align-items: center; gap: 10px 12px; margin: 16px 0 14px; }
.trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) .m-views { grid-area: tabs; display: flex; gap: 4px; border: 0 !important; margin: 0 !important; padding: 0 !important; min-width: 0; }
.trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) .m-view { height: 32px !important; padding: 0 12px !important; border-radius: 7px !important; color: var(--muted) !important; font-size: 13.5px !important; font-weight: 400 !important; border: 0 !important; box-shadow: none !important; background: none !important; white-space: nowrap; }
.trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) .m-view:hover { color: var(--text) !important; }
.trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) .m-view.on { color: var(--text) !important; background: var(--raise) !important; }
.trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) > .seg { grid-area: win; margin: 0 !important; display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line) !important; border-radius: 8px !important; background: var(--raise); box-shadow: none !important; }
.trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) > .seg button { height: 28px !important; min-width: 0; padding: 0 11px !important; border: 0 !important; border-radius: 6px !important; background: none !important; box-shadow: none !important; color: var(--muted) !important; font: 500 12px var(--mono, ui-monospace, monospace) !important; letter-spacing: 0; }
.trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) > .seg button:hover { color: var(--text) !important; }
.trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) > .seg button.on { background: var(--bg) !important; color: var(--text) !important; box-shadow: 0 1px 2px rgba(0,0,0,.18) !important; }
.trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) > .pl-vsw { grid-area: vsw; margin: 0 !important; }
.trh-bar { grid-area: bar; position: relative; min-width: 0; }
.trh-cmd:not(#_d1):not(#_d2):not(#_d3) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 7px; min-height: 42px; padding: 6px 10px 6px 12px; border: 1px solid var(--line); border-radius: 10px !important; background: var(--raise); color: var(--muted); cursor: text; transition: border-color .15s, box-shadow .15s; }
.trh-cmd.foc:not(#_d1):not(#_d2):not(#_d3) { border-color: var(--blue, #3B82F6); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue, #3B82F6) 22%, transparent); }
.trh-cmd > .ic, .trh-cmd > svg { flex: none; }
.trh-toks { display: contents; }
.trh-tok:not(#_d1):not(#_d2):not(#_d3) { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 0; border-radius: 6px !important; background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); font: inherit; font-size: 12.5px; white-space: nowrap; cursor: pointer; text-transform: none; letter-spacing: 0; }
.trh-tok.k:not(#_d1):not(#_d2):not(#_d3) { background: color-mix(in srgb, var(--up) 15%, transparent); color: var(--up); }
.trh-tok.f:not(#_d1):not(#_d2):not(#_d3) { background: color-mix(in srgb, var(--blue, #3B82F6) 15%, transparent); color: var(--blue, #3B82F6); }
.trh-tok.f:hover .trh-x { opacity: 1; } .trh-x { opacity: .7; font-size: 14px; line-height: 1; }
.trh-in:not(#_d1):not(#_d2):not(#_d3) { flex: 1; min-width: 120px; height: 28px; padding: 0 2px; border: 0 !important; outline: 0; background: none !important; box-shadow: none !important; color: var(--text); font: inherit; font-size: 13px; }
.trh-in::placeholder { color: var(--muted); } .trh-in.bad:not(#_d1):not(#_d2):not(#_d3) { color: var(--down); }
.trh-end { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.trh-clr:not(#_d1):not(#_d2):not(#_d3) { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0 2px; } .trh-clr:hover { color: var(--text); }
.trh-kbd { font: 500 10.5px var(--mono, ui-monospace, monospace); padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--bg); }
.trh-menu:not(#_d1):not(#_d2):not(#_d3) { position: absolute; left: 0; top: calc(100% + 6px); width: 300px; max-height: min(480px, 70vh); overflow-y: auto; z-index: 40; display: flex; flex-direction: column; gap: 1px; padding: 8px; background: var(--panel, var(--bg)); border: 1px solid var(--line); border-radius: 10px !important; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.trh-menu[hidden] { display: none !important; }
.trh-menu small { padding: 6px 8px 2px; font-size: 11.5px; color: var(--muted); } .trh-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.trh-mi:not(#_d1):not(#_d2):not(#_d3) { display: block; width: 100%; text-align: left; padding: 7px 8px; border: 0; border-radius: 6px !important; background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-transform: none; letter-spacing: 0; height: auto; }
.trh-mi:hover:not(#_d1):not(#_d2):not(#_d3), .trh-mi.act:not(#_d1):not(#_d2):not(#_d3) { background: var(--raise); }
.trh-mi.on:not(#_d1):not(#_d2):not(#_d3) { background: var(--raise); color: var(--up); }
.trh-hint { margin: 0; padding: 8px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 720px) {
  .trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tabs tabs" "bar bar" "win vsw"; gap: 8px; }
  .trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) .m-views { overflow-x: auto; scrollbar-width: none; } .trh .m-views::-webkit-scrollbar { display: none; }
  .trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) .m-view { padding: 0 9px !important; font-size: 13px !important; }
  .trh:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6) > .seg { justify-self: start; width: auto !important; }
  .trh-kbd { display: none; } .trh-in:not(#_d1):not(#_d2):not(#_d3) { min-width: 110px; font-size: 16px; } .trh-menu:not(#_d1):not(#_d2):not(#_d3) { max-height: 55vh; }
  .trh-menu:not(#_d1):not(#_d2):not(#_d3) { width: 100%; }
  .trh ~ .pl-sort { display: flex !important; } .trh ~ .sc { display: flex !important; }
}
.trh ~ .sc:has(> .sc-panel[hidden]:only-child) { margin: 0; }
