/* Flush layout (Ben, 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(100vh - 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; }
@media (max-width: 900px) { .np-row .np-star { top: auto; bottom: 12px; transform: none; left: 14px; right: auto; } } /* phones: the star sits bottom-left, clear of the numbers */

/* New pairs: one fixed row shape (Ben, 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) repeat(3, 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; }
}

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

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