/* Trading terminal. Uses the app's own tokens and shell; everything here is the new screen. */
.mock .net { color: var(--warn); }
.mock .shell > main.trade { max-width: none; margin: 0; padding: 20px 24px 60px; }

.coinhead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.coinhead .coin { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.ch-name { display: grid; gap: 2px; }
.ch-name b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.ch-name b em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 8px; }
.ch-price { display: grid; gap: 2px; margin-left: 6px; }
.ch-price b { font: 500 24px var(--mono); letter-spacing: -0.03em; line-height: 1.1; }
.chg { font: 500 12.5px var(--mono); }
.chg.up { color: var(--good); } .chg.down { color: var(--bad); }
.kpis { display: flex; margin-left: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.kpis div { display: grid; gap: 2px; padding: 8px 16px; border-right: 1px solid rgba(125, 125, 140, 0.16); }
.kpis div:last-child { border: 0; }
.kpis span { color: var(--muted); font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.kpis b { font: 500 14px var(--mono); }
.kpis .hot b { color: var(--accent); }

.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.chartcard { padding: 12px 14px 12px; border-radius: 18px; display: flex; flex-direction: column; min-width: 0; }
.chartbar { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.chartbar .seg { margin: 0; }
.ohlc { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ohlc b { color: var(--text); font-weight: 500; margin: 0 8px 0 3px; }
.stamptoggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; user-select: none; }
.stamptoggle input { position: absolute; opacity: 0; pointer-events: none; }
.stamptoggle i { position: relative; width: 28px; height: 16px; border-radius: 8px; background: #2a2a31; transition: background 0.15s; }
.stamptoggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #8d8d9b; transition: transform 0.15s, background 0.15s; }
.stamptoggle input:checked + i { background: rgba(255, 102, 77, 0.35); }
.stamptoggle input:checked + i::after { transform: translateX(12px); background: var(--accent); }
.stamptoggle input:checked ~ span { color: var(--text); }
.chartwrap { position: relative; flex: 1; min-height: 380px; }
.tip { position: absolute; z-index: 3; min-width: 190px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(14, 14, 17, 0.95); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); font-size: 12.5px; pointer-events: none; }
.tip .tt { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.tip div { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); padding: 1px 0; }
.tip div b { color: var(--text); font-weight: 500; font-family: var(--mono); }
.tip .redact { margin: 0; width: 54px; }
.chartkey { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text); }
.chartkey span { display: inline-flex; align-items: center; gap: 8px; }
.chartkey .muted { margin-left: auto; }
.stamp { display: inline-block; width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; }
.stamp.buy { background: var(--good); box-shadow: 0 0 0 3px rgba(127, 224, 168, 0.18); }
.stamp.sell { background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 102, 77, 0.2); }

.sidecol { display: grid; gap: 14px; align-content: start; }
.sidecol .card { padding: 16px; border-radius: 18px; }
.deskcard .blk { display: flex; align-items: center; gap: 10px; padding: 9px 8px; margin: 0 -8px; border-radius: 10px; }
.deskcard .blk:hover { background: var(--hover); }
.deskcard .blk span:first-child { flex: 1; color: var(--muted); font-size: 13px; }
.deskcard .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.deskcard .acts .btn { height: 36px; }
.inforow { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; }
.inforow span { color: var(--muted); }
.inforow b { font-weight: 500; font-family: var(--mono); font-size: 12.5px; }
.inforow .ok { color: var(--good); }
.pressure { height: 5px; border-radius: 3px; background: var(--bad); overflow: hidden; margin: 6px 0 4px; opacity: 0.9; }
.pressure i { display: block; height: 100%; background: var(--good); }
.pkey { display: flex; justify-content: space-between; font: 500 11.5px var(--mono); color: var(--muted); margin-bottom: 8px; }

.feed { padding: 0; border-radius: 18px; overflow: hidden; }
.feedbar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ftabs { display: flex; gap: 4px; }
.ftabs button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 500; font-size: 13.5px; }
.ftabs button.on { color: var(--text); background: var(--hover); }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(127, 224, 168, 0.16); }
.feedbar .seg { margin-left: auto; }
.ttable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ttable th { text-align: right; padding: 9px 14px; color: var(--muted); font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: #0a0a0c; }
.ttable th:first-child, .ttable td:first-child, .ttable th:nth-child(2), .ttable td:nth-child(2) { text-align: left; }
.ttable td { padding: 8px 14px; text-align: right; border-bottom: 1px solid rgba(125, 125, 140, 0.1); white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
.ttable tr:hover td { background: rgba(255, 255, 255, 0.025); }
.ttable td.t { color: var(--muted); }
.ttable .buy { color: var(--good); } .ttable .sell { color: var(--bad); }
.ttable tr.conf td { background: rgba(255, 102, 77, 0.045); }
.ttable tr.conf td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.ttable .redact { margin: 0; width: 58px; vertical-align: middle; }
.ttable tr.new td { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: rgba(255, 102, 77, 0.3); } 30% { background: rgba(255, 102, 77, 0.16); } }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 6px; font: 500 11px var(--mono); letter-spacing: 0.04em; }
.badge.c { color: var(--accent); background: rgba(255, 102, 77, 0.12); }
.badge.p { color: var(--muted); background: var(--hover); }
.scroll { max-height: 420px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a2a31 transparent; }
.hbar { display: inline-block; width: 120px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); vertical-align: middle; margin-right: 10px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--accent); }
.hsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line); }
.hsum div { display: grid; gap: 3px; padding: 12px 14px; border-right: 1px solid rgba(125, 125, 140, 0.14); }
.hsum div:last-child { border: 0; }
.hsum span { color: var(--muted); font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.hsum b { font: 500 16px var(--mono); }
.tagx { margin-left: 8px; padding: 1px 6px; border-radius: 5px; background: var(--hover); color: var(--muted); font-size: 10.5px; }
.empty { padding: 26px 14px; color: var(--muted); font-size: 13px; }

@media (max-width: 1180px) { .tgrid { grid-template-columns: minmax(0, 1fr); } .sidecol { grid-template-columns: 1fr 1fr; } .kpis { margin-left: 0; width: 100%; overflow-x: auto; } }
@media (max-width: 720px) {
  .mock .shell > main.trade { padding: 14px 12px 96px; }
  .sidecol { grid-template-columns: 1fr; }
  .chartwrap { min-height: 300px; }
  .ohlc { display: none; }
  .chartkey .muted { margin-left: 0; }
  .feedbar .seg { margin-left: 0; }
  .ttable .hide-s { display: none; }
  .scroll { overflow-x: hidden; }
  .ttable th, .ttable td { padding: 8px 9px; }
  .hsum { grid-template-columns: 1fr 1fr; }
  .hbar { width: 34px; margin-right: 6px; }
  .ttable .redact { width: 40px; }
  .ttable td:nth-child(2) { text-transform: capitalize; }
  .mock .side nav.tabs a { font-size: 10px; }
}

/* live data */
img.coin { object-fit: cover; padding: 0; background: #17171c; }
.coin.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; flex: none; }
.copy.copied { color: var(--good); }
a.blk { text-decoration: none; color: inherit; }
.deskcard .quiet { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.deskcard .acts:has(> :only-child) { grid-template-columns: 1fr; }
.pressure.priv { background: var(--accent); }
.inforow .warn { color: var(--warn); }
.ttable a { color: inherit; text-decoration: none; }
.ttable a:hover { color: var(--accent); }
.hsum .up { color: var(--good); } .hsum .down { color: var(--bad); }
.ohlc b:first-child { color: var(--muted); margin-left: 0; }
body.loading main.trade { opacity: 0.45; transition: opacity 0.15s; }
.chartwrap[data-msg]::after { content: attr(data-msg); position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
[hidden] { display: none !important; }

/* top bar, launchpad style */
.coinhead { gap: 14px 18px; align-items: center; padding: 2px 2px 4px; }
.ch-id { display: grid; gap: 4px; min-width: 0; }
.ch-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ch-name b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.ch-name em { font-style: normal; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.ch-name .copy { align-self: center; display: inline-grid; place-items: center; width: 19px; height: 19px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.ch-name .copy:hover { background: var(--hover); color: var(--text); }
.ch-name .copy svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.800; }
.ch-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font: 500 10.5px var(--mono); }
.ch-meta svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ch-meta svg.fill { fill: currentColor; stroke: none; }
.ch-meta svg.sol { width: 11px; height: 11px; margin: 0; }
.hage { color: var(--good); padding: 0 2px; }
.hpair, .hpad, .hchip { display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 6px; border-radius: 7px; background: var(--hover); color: var(--text); white-space: nowrap; }
.hpad { color: var(--muted); }
.hpad.pump { color: #7fe0a8; background: rgba(127, 224, 168, 0.09); }
.hpad .pill { width: 13px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #7fe0a8 50%, #f4f4f5 50%); transform: rotate(-35deg); }
.hchip.good { color: var(--good); background: rgba(127, 224, 168, 0.09); }
.hchip.warn { color: var(--warn); background: rgba(240, 198, 116, 0.1); }
.hlink { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 7px; color: var(--muted); }
.hlink:hover { background: var(--hover); color: var(--text); }
.coin.xs { width: 14px; height: 14px; border-radius: 4px; font-size: 8px; }
.ch-cap { display: grid; justify-items: end; gap: 1px; margin-left: auto; }
.ch-cap b { font: 500 19px var(--mono); letter-spacing: -0.03em; line-height: 1.1; }
.ch-cap .chg { font-size: 11px; }
.hstats { display: flex; gap: 18px; align-items: center; }
.hstats div { display: grid; gap: 2px; }
.hstats span { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.hstats b { display: inline-flex; align-items: center; gap: 5px; font: 500 12px var(--mono); white-space: nowrap; }
.hstats b .sol { width: 11px; height: 11px; margin: 0; }
.hstats .bcurve b { color: var(--good); }
.bcurve .pill { display: inline-grid; width: 14px; height: 14px; border-radius: 50%; background: rgba(127, 224, 168, 0.16) radial-gradient(circle, transparent 0, transparent 0); position: relative; }
.bcurve .pill::after { content: ""; position: absolute; left: 3.5px; top: 5px; width: 7px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #7fe0a8 50%, #f4f4f5 50%); transform: rotate(-35deg); }
.hstats .hot b { color: var(--accent); }
sub { font-size: 0.68em; vertical-align: baseline; position: relative; top: 0.32em; margin: 0 0.5px; }
@media (max-width: 1280px) { .ch-cap { margin-left: 0; } .hstats { flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } }
@media (max-width: 720px) { .ch-cap { margin-left: auto; } .ch-cap b { font-size: 17px; } .ch-name em { max-width: 110px; } .hstats { gap: 18px; } }
@media (max-width: 720px) {
  .coinhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; }
  .coinhead .hstats { grid-column: 1 / -1; }
  .ch-cap { padding-top: 2px; }
}

/* feed tabs: plain text, the open one underlined */
.feedbar { padding: 0 16px; gap: 14px; align-items: stretch; }
.feedbar .seg { align-self: center; margin-top: 7px; margin-bottom: 7px; }
.ftabs { gap: 22px; margin-bottom: -1px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ftabs::-webkit-scrollbar { display: none; }
.ftabs button, .ftabs button.on { height: 44px; padding: 0; border-radius: 0; background: none; border-bottom: 2px solid transparent; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color 0.12s, border-color 0.12s; white-space: nowrap; }
.ftabs button:hover { color: var(--text); }
.ftabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.ftabs button em { font-style: normal; font-weight: 400; margin-left: -2px; }
.ftabs button em:empty { display: none; }
@media (max-width: 720px) { .feedbar { padding: 0 12px; } .ftabs { gap: 18px; } }
a.hpad { text-decoration: none; transition: background 0.12s; }
a.hpad.pump:hover { background: rgba(127, 224, 168, 0.18); }

/* Confidential verified */
.verified { display: inline-flex; align-items: center; gap: 4px; align-self: center; height: 20px; padding: 0 7px 0 5px; border-radius: 6px; background: rgba(255, 102, 77, 0.12); color: var(--accent); font: 600 11px Geist, system-ui, sans-serif; letter-spacing: 0.01em; white-space: nowrap; }
.verified svg, .instant b svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.instant { display: grid; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 102, 77, 0.07); border: 1px solid rgba(255, 102, 77, 0.2); }
.instant b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.instant span { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.instant .btn { height: 36px; }
.deskcard .quiet.notv { margin-top: 12px; font-size: 12.5px; }

/* ---------- Padre-style layout: flat panels edge to edge, split by thin lines ---------- */
.mock .shell > main.trade { padding: 0; }
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 318px; grid-template-rows: auto minmax(460px, calc(100vh - 262px)) auto; grid-template-areas: "head panel" "chart panel" "feed panel"; gap: 0; margin: 0; align-items: stretch; }
.tgrid > * { min-width: 0; }
.coinhead { grid-area: head; margin: 0; padding: 7px 16px; border-bottom: 1px solid var(--line); }
.chartcard { grid-area: chart; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 0; background: none; }
.tpanel { grid-area: panel; border-left: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); }
.feed { grid-area: feed; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.chartcard:fullscreen { background: #0a0a0c; }

.chartbar { height: 38px; margin: 0; padding: 0 10px; gap: 10px; border-bottom: 1px solid var(--line); flex-wrap: nowrap; }
.chartbar .grow { flex: 1; }
.vsep { width: 1px; height: 16px; background: var(--line); flex: none; }
.tfs { display: flex; gap: 2px; }
.tfs button, .unit button { height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 500 12.5px var(--mono); }
.tfs button:hover, .unit button:hover { color: var(--text); }
.tfs button.on { color: var(--text); background: var(--hover); }
.unit { display: inline-flex; align-items: center; gap: 0; font-size: 12.5px; color: var(--muted); }
.unit button { padding: 0 3px; font-family: Geist, system-ui, sans-serif; }
.unit button.on { color: var(--accent); }
.tool { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--muted); }
.tool:hover { background: var(--hover); color: var(--text); }
.tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chartwrap { flex: 1; min-height: 0; margin: 0 4px 0 8px; }
.legend { position: absolute; z-index: 2; left: 4px; top: 6px; display: flex; align-items: center; gap: 10px; font-size: 12px; pointer-events: none; white-space: nowrap; }
.legend > b { font: 600 12.5px Geist, system-ui, sans-serif; color: var(--text); }
.legend .ohlc { margin: 0; color: var(--muted); }
.legend .ohlc b { margin: 0 7px 0 2px; }
.legend .ohlc b.up { color: var(--good); }
.legend .ohlc b.down { color: var(--bad); }
.legend .ohlc em { font-style: normal; color: var(--text); margin-right: 8px; }
.chartkey { margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 11.5px; gap: 16px; }
.chartkey .hline::before { content: ""; display: inline-block; width: 16px; border-top: 1px dashed var(--accent); margin-right: 8px; vertical-align: middle; }

/* trade panel */
.ptop { display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 6px; border-bottom: 1px solid var(--line); }
.ptop div { display: grid; justify-items: center; gap: 3px; }
.ptop span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.ptop b { font: 500 13px var(--mono); }
.ptop b.accent { color: var(--accent); }
.pbody { display: grid; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.side2 { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.side2 button { height: 30px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-weight: 600; font-size: 13px; }
.side2 button.on[data-side="buy"] { background: rgba(127, 224, 168, 0.14); color: var(--good); }
.side2 button.on[data-side="sell"] { background: rgba(255, 143, 143, 0.14); color: var(--bad); }
.venue { display: flex; gap: 2px; margin-left: 4px; padding: 2px; border-radius: 8px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); }
.side2 .venue button { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; }
.side2 .venue svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side2 .venue button.on[data-venue="private"] { background: rgba(232, 65, 37, 0.18); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 102, 77, 0.35); }
.side2 .venue button.on[data-venue="jup"] { background: rgba(199, 242, 132, 0.14); color: #c7f284; box-shadow: inset 0 0 0 1px rgba(199, 242, 132, 0.3); }
.jupbox { display: grid; gap: 10px; margin-top: 12px; }
.jupbox .tin:focus-within { border-color: rgba(199, 242, 132, 0.5); }
.bigbtn.pub { width: 100%; border: 0; background: #c7f284; color: #10140a; cursor: pointer; }
.bigbtn.pub[disabled] { opacity: 0.5; cursor: default; }
.jnote { display: flex; gap: 8px; margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.jnote b { color: var(--text); font-weight: 500; }
.jmark { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.jupbox .sst a { color: #c7f284; }
.blist { display: grid; gap: 4px; max-height: 190px; overflow-y: auto; scrollbar-width: thin; }
.blist .blk { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 38px; padding: 0 10px; margin: 0; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.blist .blk:hover { background: var(--hover); }
.tpanel .quiet { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.bigbtn { display: grid; place-items: center; height: 44px; border-radius: 999px; background: var(--accent); color: #140705; font-weight: 600; font-size: 14px; text-decoration: none; transition: filter 0.12s; }
.bigbtn:hover { filter: brightness(1.08); }
.subbtn { margin-top: -4px; text-align: center; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.subbtn:hover { color: var(--text); }
.hq2 { display: grid; gap: 6px; padding: 11px 12px; border: 1px solid rgba(255, 102, 77, 0.25); border-radius: 10px; background: rgba(255, 102, 77, 0.06); }
.hqt { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; }
.hqt svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hqr { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.hqr span { color: var(--muted); }
.hqr b { font: 500 12.5px var(--mono); }
.pvol { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; row-gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.pvol div { display: grid; gap: 2px; }
.pvol div:not(:first-child) { justify-items: center; }
.pvol div:nth-child(4) { justify-items: end; }
.pvol span { color: var(--muted); font-size: 11px; }
.pvol b { font: 500 12.5px var(--mono); }
.pvol .up { color: var(--good); }
.pvol .down { color: var(--bad); }
.pbar { grid-column: 1 / -1; display: block; height: 3px; border-radius: 2px; background: var(--bad); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--good); }
.psec { padding: 12px; }
.psec h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.secgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sec { display: grid; justify-items: center; gap: 3px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 9px; text-align: center; }
.sec b { font: 500 13px var(--mono); }
.sec span { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.sec.good b { color: var(--good); }
.sec.warn b { color: var(--warn); }
.sec.bad b { color: var(--bad); }
.sec.accent b { color: var(--accent); }
.addr { display: flex; align-items: center; gap: 7px; margin-top: 8px; height: 36px; padding: 0 6px 0 4px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.addr span { color: var(--muted); }
.addr b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; font-size: 11.5px; }
.addr .copy, .addr a { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.addr .copy:hover, .addr a:hover { background: var(--hover); color: var(--text); }
.addr svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* bottom tabs and tables */
.feedbar { padding: 0 14px; }
.ftabs button, .ftabs button.on { height: 38px; font-size: 13px; }
.chips { display: flex; gap: 4px; margin-left: auto; align-self: center; }
.chips button { height: 24px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 12px; font-weight: 500; }
.chips button:hover { color: var(--text); }
.chips button.on { background: var(--hover); color: var(--text); }
.ttable th { padding: 7px 12px; font: 500 11.5px Geist, system-ui, sans-serif; letter-spacing: 0; text-transform: none; background: #0b0b0e; }
.ttable td { padding: 7px 12px; font-size: 12px; }
.scroll { max-height: 360px; }
.htable td.rem { text-align: right; }
.htable td.rem div { display: inline-flex; align-items: center; gap: 6px; }
.htable td.rem em { font-style: normal; padding: 0 5px; border-radius: 4px; background: var(--hover); color: var(--muted); font-size: 10.5px; }
.htable td.rem .hbar { display: block; width: 130px; height: 3px; margin: 4px 0 0 auto; }
.htag { margin-left: 7px; padding: 1px 6px; border-radius: 5px; font: 600 10.5px Geist, system-ui, sans-serif; }
.htag.dev { color: var(--warn); background: rgba(240, 198, 116, 0.12); }

@media (max-width: 1180px) {
  .tgrid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 460px auto auto; grid-template-areas: "head" "chart" "panel" "feed"; }
  .tpanel { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
  .tpanel .ptop, .tpanel #pvolwrap { grid-column: 1 / -1; }
  .tpanel .psec { border-left: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .tgrid { grid-template-rows: auto 380px auto auto; }
  .tpanel { display: block; }
  .tpanel .psec { border-left: 0; }
  .coinhead { padding: 7px 12px; }
  .chartbar { padding: 0 6px; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .chartbar .tool { display: none; }
  .tfs button { padding: 0 6px; }
  .legend .ohlc { display: none; }
  .chartkey .muted { display: none; }
  .feedbar { padding: 0 12px; }
  .chips button { padding: 0 7px; }
  .htable td.rem .hbar { width: 70px; }
}

/* Sell a block from the trade panel */
.sellbox { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; } /* minmax: wide rows (5 price buttons) must not push the panel past its column */
button.bigbtn { width: 100%; border: 0; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; }
button.bigbtn:disabled { opacity: 0.45; cursor: default; filter: none; }
.wline { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.wline b { color: var(--text); font-weight: 500; font-size: 12px; }
.wline button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.wline button:hover { color: var(--text); }
.tin { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.tin:focus-within { border-color: rgba(255, 102, 77, 0.55); }
.tin span { color: var(--muted); font-size: 12.5px; }
.tin input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); text-align: right; font: 500 14px var(--mono); }
.tin input::placeholder { color: #4a4a55; }
.tin em { font-style: normal; color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; }
.tin em .sol { width: 13px; height: 13px; margin: 0; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.presets.offs { grid-template-columns: repeat(5, 1fr); }
.presets button { min-width: 0; padding: 0; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--text); font: 500 12px var(--mono); cursor: pointer; }
.presets button:hover { background: var(--hover); }
.presets button.on { border-color: rgba(255, 102, 77, 0.55); color: var(--accent); background: rgba(255, 102, 77, 0.07); }
.smode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.03); }
.smode button { height: 28px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; }
.smode button.on { background: var(--hover); color: var(--text); }
.ssum { display: grid; gap: 5px; }
.ssum:empty { display: none; }
.ssum div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.ssum span { color: var(--muted); }
.ssum b { display: inline-flex; align-items: center; gap: 4px; font: 500 12px var(--mono); }
.ssum b .sol { width: 12px; height: 12px; margin: 0; }
.ssum .tot { padding-top: 6px; border-top: 1px solid var(--line); }
.ssum .tot b { font-size: 13px; }
.ssum .under { color: var(--good); }
.ssum .over { color: var(--warn); }
.ssum .warnline { color: var(--warn); line-height: 1.45; }
.sst { min-height: 0; font-size: 12px; color: var(--muted); line-height: 1.45; display: flex; align-items: center; gap: 7px; }
.sst:empty { display: none; }
.sst.bad { color: var(--bad); }
.sst.good { color: var(--good); }
.wpick { display: grid; gap: 6px; }
.wpick button, .wpick a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--text); font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; }
.wpick button:hover, .wpick a:hover { background: var(--hover); }
.wpick img { width: 20px; height: 20px; border-radius: 5px; }
.wpick em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--warn); }

/* Sections in the top bar instead of a left sidebar (the sidebar stays as the phone's bottom bar) */

/* wallet labels in Trades: top holder, fresh wallet, trading app */
.ttable td.maker { white-space: nowrap; }
.mtags { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; vertical-align: middle; }
.mtags:empty { display: none; }
.mt { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; font-style: normal; }
.mt svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mt.top { color: #7aa7ff; }
.mt.fresh { color: #7fe0a8; }
.mt.logo { object-fit: cover; background: #1b1b22; }
.mt.app { width: auto; min-width: 18px; padding: 0 3px; font: 700 8.5px/16px Geist, system-ui, sans-serif; letter-spacing: 0.02em; }
.txl { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 5px; color: var(--muted); vertical-align: middle; opacity: 0; transition: opacity 0.12s; }
.ttable tr:hover .txl { opacity: 1; }
.txl svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* top bar: search on the right, wallet pill in place of the desk button */

/* Trades table filters: Total USD (minimum) and Maker (wallet) */
.thf { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; margin: -2px -6px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
.thf svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; opacity: 0.55; }
.thf:hover { background: var(--hover); color: var(--text); }
.thf:hover svg { opacity: 1; }
.thf.on { color: var(--accent); background: rgba(255, 102, 77, 0.1); }
.thf.on svg { opacity: 1; fill: currentColor; }
.fl { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--muted); vertical-align: middle; cursor: pointer; opacity: 0; transition: opacity 0.12s; }
.fl svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ttable tr:hover .fl, .fl.on { opacity: 1; }
.fl:hover { background: var(--hover); color: var(--text); }
.fl.on { color: var(--accent); }
.fl.on svg { fill: currentColor; }
.fpop { position: fixed; z-index: 30; display: grid; gap: 9px; width: 272px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #0e0e11; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.fpop label { font-size: 12px; color: var(--muted); }
.fin { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.fin:focus-within { border-color: rgba(255, 102, 77, 0.55); }
.fin span { color: var(--muted); font: 500 13px var(--mono); }
.fin input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 500 13px var(--mono); }
.fin input::placeholder { color: #4a4a55; }
.fpre { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fpre button, .fbtns button { height: 30px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--text); font: 500 12px var(--mono); cursor: pointer; }
.fpre button:hover, .fbtns button:hover { background: var(--hover); }
.fbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fbtns button { font-family: inherit; font-size: 12.5px; }
.fbtns .go { border-color: transparent; background: var(--accent); color: #140705; font-weight: 600; }
.fbtns .go:hover { background: var(--accent); filter: brightness(1.08); }
.ferr { font-size: 12px; color: var(--bad); }
.linkbtn { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

/* Trader card: hover a wallet in Trades or Holders */
.wcard { position: fixed; z-index: 40; width: 236px; padding: 4px 0 0; border: 1px solid var(--line); border-radius: 12px; background: #0e0e11; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); font-size: 12.5px; pointer-events: auto; }
.wc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 8px 12px; }
.wc-addr { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--text); font: 500 12.5px var(--mono); cursor: pointer; }
.wc-addr svg, .wc-cur svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.wc-addr:hover svg { color: var(--text); }
.wc-addr.copied svg { color: var(--good); }
.wc-cur { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); font: 600 11px var(--mono); cursor: pointer; }
.wc-cur:hover { background: var(--hover); }
.wc-grp { display: grid; gap: 4px; padding: 9px 12px; border-top: 1px solid var(--line); }
.wc-line { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: baseline; }
.wc-line span { color: var(--muted); }
.wc-line b { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; font: 500 12.5px var(--mono); }
.wc-line b .sol { width: 11px; height: 11px; margin: 0; }
.wc-line em { grid-column: 2; justify-self: end; font-style: normal; color: var(--muted); font: 500 10.5px var(--mono); }
.wc-line:has(em) { grid-template-columns: 1fr auto auto; }
.wc-line:has(em) em { grid-column: auto; margin-left: 8px; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-line b.buy { color: #8fa6ff; }
.wc-line b.sell { color: var(--bad); }
.wc-line b.up { color: var(--good); }
.wc-line b.down { color: var(--bad); }
.wc-tier { display: flex; align-items: center; gap: 8px; padding: 9px 12px 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.wc-tier em { margin-left: auto; font-style: normal; font: 500 10px var(--mono); }
.wc-steps { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.wc-steps i { width: 3px; border-radius: 1px; background: rgba(255, 255, 255, 0.14); }
.wc-steps i.on { background: var(--accent); }
.wc-note { padding: 10px 12px 12px; border-top: 1px solid var(--line); color: var(--muted); }
.wc-load { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.wc-load i { height: 10px; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)); background-size: 200% 100%; animation: wcload 1.1s linear infinite; }
.wc-load i:nth-child(2) { width: 70%; }
.wc-load i:nth-child(3) { width: 85%; }
@keyframes wcload { to { background-position: -200% 0; } }

/* Buy side: pick a listed block, hold it to see its size, buy it from the private balance */
.blist button.blk { width: 100%; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background 0.12s, border-color 0.12s; }
.blist .blk > span:first-child { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.blist .blk .bpx { display: inline-flex; align-items: center; gap: 3px; font: 500 12px var(--mono); }
.blist .blk .bpx .sol { width: 11px; height: 11px; margin: 0; }
.blist .blk.on { border-color: rgba(255, 102, 77, 0.55); background: rgba(255, 102, 77, 0.07); }
.blist .blk.on > span:first-child { color: var(--text); }
.bhint { margin: 8px 0 0; font-size: 12px; }
.buybox { display: grid; gap: 9px; margin-top: 10px; }
.buybox:empty { display: none; }
.buybox .ssum b .redact { width: 30px; height: 9px; }
.buybox .quiet { margin: 0; font-size: 12px; }
#bhold.low { color: var(--warn); }

/* ---------- below the chart: smaller type and badges; Private holders and Top traders ---------- */
.ttable { font-size: 12px; }
.ttable th { font-size: 9.5px; padding: 8px 12px; }
.ttable td { font-size: 11.5px; padding: 7px 12px; }
.hsum b { font-size: 14px; }
.hsum span { font-size: 9.5px; }
.ftabs button, .ftabs button.on { font-size: 13px; }
.mtags { gap: 3px; margin-right: 5px; }
.mt { width: 14px; height: 14px; border-radius: 4px; }
.mt svg { width: 11px; height: 11px; }
.mt.app { min-width: 16px; font-size: 7.5px; line-height: 14px; }
.mt.conf { background: #1a0d0a; box-shadow: inset 0 0 0 1px rgba(255, 102, 77, 0.35); }
.mt.conf svg { width: 10px; height: 10px; }
.hsum .acc { color: var(--accent); }
.hsum .muted { color: var(--muted); }
.txn { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; background: var(--hover); color: var(--muted); font: 500 10px/15px var(--mono); vertical-align: middle; }
.trtable td.two { line-height: 1.3; }
.trtable td.two em, .trtable td em { font-style: normal; color: var(--muted); font-size: 10.5px; }
.trtable td small, .fund small { display: block; color: var(--muted); font-size: 10px; }
.trtable td.buy div { color: var(--good); } .trtable td.sell div { color: var(--bad); }
.trtable td.buy small, .trtable td.sell small { color: var(--muted); }
.trtable .up { color: var(--good); } .trtable .down { color: var(--bad); }
.trtable .fund div { color: var(--text); }
.trtable .rem2 div { display: inline-flex; align-items: center; gap: 6px; }
.trtable .rem2 .hbar { width: 64px; margin: 0; }
.trtable .rem2 em { min-width: 28px; text-align: right; }
.trtable td .sol, .trtable td svg.sol { width: 11px; height: 11px; vertical-align: -1px; }
.ttable td.maker .fl { margin: 0 4px 0 0; }
.ptable td:nth-child(3) { text-align: right; }
.pnote { margin: 0; padding: 10px 14px 14px; color: var(--muted); font-size: 11.5px; }
@media (max-width: 720px) { .ttable td { font-size: 11px; padding: 7px 8px; } .ttable th { padding: 7px 8px; } }
