:root {
  color-scheme: dark;
  --bg: #070a09;
  --surface: #0d1210;
  --surface-2: #111814;
  --surface-3: #151e19;
  --line: #202b25;
  --line-soft: #18221d;
  --text: #f4f8f5;
  --muted: #7f9187;
  --muted-2: #54625b;
  --green: #43ef8b;
  --green-dim: #0b4025;
  --green-glow: rgba(67, 239, 139, 0.14);
  --red: #ff5d70;
  --red-dim: #41131a;
  --amber: #ffcc66;
  --radius: 14px;
  --font: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-width: 1080px; min-height: 680px; background: var(--bg); color: var(--text); font-family: var(--font); overflow: hidden; }
#startupSplash{position:fixed;inset:0;background:#0a0f0d;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}#startupSplash img{width:210px;height:210px;object-fit:contain}#startupSplash strong{font-size:28px}#startupSplash span{color:#92aaa0;font-size:13px}
button, input { font: inherit; }
button { color: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: -20% 35% 55% -10%;
  background: radial-gradient(circle, rgba(34, 190, 103, .08), transparent 65%);
  pointer-events: none;
}

.app-shell { height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 80px; flex: none; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); background: rgba(7, 10, 9, .93); -webkit-app-region: drag; }
.brand-wrap { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: linear-gradient(145deg, #173523, #0b1911); border: 1px solid #275e3c; border-radius: 12px; box-shadow: inset 0 1px rgba(255,255,255,.06), 0 0 25px rgba(67,239,139,.08); }
.brand-mark svg { width: 30px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .brand-dot { fill: var(--green); stroke: none; }
h1, h2, p { margin: 0; }
.brand-wrap h1 { font-size: 20px; letter-spacing: -.4px; }
.brand-wrap p { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .55px; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 10px; -webkit-app-region: no-drag; }
.install-identity { height: 30px; padding: 0 10px; display: flex; align-items: center; border: 1px solid #1c2a22; background: #090d0b; border-radius: 7px; color: #687970; font: 9px/1 "Cascadia Code", Consolas, monospace; }
.status-pill { height: 34px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; font-size: 12px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,204,102,.08); }
.status-live .status-dot { background: var(--green); box-shadow: 0 0 0 4px var(--green-glow); animation: pulse 2s infinite; }
.status-error .status-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(255,93,112,.1); }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; cursor: pointer; }
.icon-button:hover { border-color: #395046; background: var(--surface-2); }
.icon-button:disabled { opacity: .38; cursor: default; border-color: var(--line); background: var(--surface); }
.icon-button svg { width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.loading svg { animation: spin 1s linear infinite; }

main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 22px 18px; gap: 10px; }
.market-strip { flex: none; min-height: 98px; display: grid; grid-template-columns: minmax(215px, 1.3fr) minmax(160px, .9fr) minmax(160px, .9fr) minmax(220px, 1.15fr) 130px; gap: 10px; }
.metric-card { min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, var(--surface), #0a0f0c); border: 1px solid var(--line-soft); border-radius: 12px; }
.metric-card.accent-card { flex-direction: row; align-items: center; justify-content: flex-start; gap: 13px; border-color: #21452f; background: linear-gradient(135deg, #10241a, #0a100d 70%); }
.metric-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(67,239,139,.08); border: 1px solid rgba(67,239,139,.16); }
.metric-icon svg { width: 20px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; }
.metric-label { display: block; color: var(--muted); font-size: 10px; letter-spacing: .55px; text-transform: uppercase; white-space: nowrap; }
.metric-card strong { display: block; margin-top: 5px; font-size: 19px; line-height: 1.1; letter-spacing: -.35px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-card small { margin-top: 4px; color: var(--muted-2); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-card { padding: 10px 12px; }
.leader-card-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.leader-ranges { display: flex; gap: 1px; }
.leader-ranges button { height: 18px; min-width: 24px; padding: 0 4px; border: 0; background: transparent; border-radius: 4px; color: #56645c; font-size: 7px; font-weight: 700; cursor: pointer; }
.leader-ranges button:hover { color: #b7c4bd; }
.leader-ranges button.active { color: var(--green); background: rgba(67,239,139,.09); }
.leader-ticker { max-width: 100%; margin-top: 4px; padding: 0; overflow: hidden; border: 0; background: transparent; color: var(--green); font-size: 18px; font-weight: 700; line-height: 1.1; letter-spacing: -.35px; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.leader-ticker:hover { color: #70f8a8; }
.leader-ticker.sell-heavy { color: var(--red); }
.leader-ticker.neutral { color: #d7e0db; }
.leader-card small { margin-top: 2px; }
.leader-actions { margin-top: 5px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 4px; }
.leader-actions button { height: 21px; min-width: 0; padding: 0 5px; overflow: hidden; border: 1px solid #26352d; background: #101713; border-radius: 5px; color: #819087; font-size: 7px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.leader-actions button:hover:not(:disabled) { border-color: #3a5546; color: #d5dfda; }
.leader-actions button:disabled { opacity: .35; cursor: default; }
.mini-meter { height: 3px; margin-top: 8px; background: #241418; border-radius: 10px; overflow: hidden; }
.mini-meter span { display: block; width: 50%; height: 100%; background: var(--green); transition: width .4s ease; }
.refresh-meta { padding-left: 16px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); }
.refresh-meta span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .6px; }
.refresh-meta strong { margin-top: 3px; font-size: 17px; font-variant-numeric: tabular-nums; }
.refresh-meta small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }

.pulse-nav { height: 42px; flex: none; display: flex; align-items: stretch; gap: 3px; padding: 3px; background: #0a0f0c; border: 1px solid var(--line); border-radius: 10px; }
.pulse-nav button { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: transparent; color: #718279; border-radius: 7px; font-size: 10px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pulse-nav button:hover { color: #b2c0b8; background: #101713; }
.pulse-nav button.active { color: var(--text); background: #17211b; box-shadow: inset 0 0 0 1px #29382f, 0 2px 7px rgba(0,0,0,.24); }
.pulse-nav button.active::after { content: ""; position: absolute; left: 28%; right: 28%; bottom: -3px; height: 2px; background: var(--green); border-radius: 3px 3px 0 0; box-shadow: 0 0 8px rgba(67,239,139,.35); }
.pulse-nav button > span:last-child { min-width: 21px; padding: 2px 5px; background: #202c25; border-radius: 10px; color: #8fa198; font-size: 8px; font-variant-numeric: tabular-nums; }
.pulse-nav svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-signal { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-glow); animation: pulse 2s infinite; }
.dips-tab.active::after { background: var(--red) !important; box-shadow: 0 0 8px rgba(255,93,112,.3) !important; }
.watchlist-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 16px 12px}.watchlist-tools.hidden,.watchlist-tools form.hidden{display:none}
.watchlist-tools select,.watchlist-tools input{height:33px;border:1px solid var(--border);border-radius:6px;background:#090f0c;color:#dce7df;padding:0 9px;min-width:0;font:12px var(--font)}
.watchlist-tools select{max-width:180px}.watchlist-tools form{display:flex;gap:6px}.watchlist-tools #watchlistAddForm{flex:1;min-width:280px}.watchlist-tools #watchlistCa{flex:1}
.watchlist-tools #watchlistStatus{flex-basis:100%;font-size:11px;color:var(--muted)}.watchlist-tools #watchlistStatus:empty{display:none}

.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(720px, 1.7fr) minmax(345px, .8fr); gap: 14px; }
.panel { min-height: 0; background: rgba(13, 18, 16, .94); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 35px rgba(0,0,0,.14); }
.leaderboard-panel { position: relative; display: flex; flex-direction: column; }
.panel-header { min-height: 72px; padding: 18px 20px 14px; display: flex; align-items: center; justify-content: space-between; }
.panel-header h2 { font-size: 16px; letter-spacing: -.2px; }
.panel-header p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 12px; color: var(--muted); font-size: 10px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.legend-dot.buy { background: var(--green); }
.legend-dot.sell { background: var(--red); }
.toolbar { flex-wrap: wrap; padding: 0 16px 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.search-box { height: 34px; flex: 1; min-width: 170px; display: flex; align-items: center; gap: 8px; padding: 0 11px; background: #090d0b; border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s; }
.search-box:focus-within { border-color: #315b42; }
.search-box svg { width: 15px; flex: none; fill: none; stroke: var(--muted-2); stroke-width: 1.8; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.search-box input::placeholder { color: #4d5a53; }
.segmented { height: 34px; display: flex; padding: 3px; background: #090d0b; border: 1px solid var(--line); border-radius: 8px; }
.segmented button { padding: 0 10px; border: 0; background: transparent; color: var(--muted); border-radius: 5px; font-size: 10px; cursor: pointer; }
.segmented button:hover { color: var(--text); }
.segmented button.active { color: var(--text); background: var(--surface-3); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.segmented.hidden { display: none; }
.volume-filter { height: 34px; display: flex; align-items: center; gap: 4px; padding: 3px 6px; background: #090d0b; border: 1px solid var(--line); border-radius: 8px; }
.volume-filter > span { padding: 0 3px; color: #526159; font-size: 7px; font-weight: 700; letter-spacing: .45px; white-space: nowrap; }
.volume-filter label { width: 56px; height: 25px; display: flex; align-items: center; gap: 2px; padding: 0 5px; background: #101612; border: 1px solid #1e2a23; border-radius: 5px; }
.volume-filter label:focus-within { border-color: #315b42; }
.volume-filter b { color: #58685e; font-size: 8px; font-weight: 500; }
.volume-filter input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #becbc4; font-size: 8px; }
.volume-filter input::-webkit-inner-spin-button { display: none; }
.volume-filter i { color: #3f4c45; font-size: 7px; font-style: normal; }
.pins-button, .blocked-button { height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #090d0b; color: var(--muted); border-radius: 8px; font-size: 10px; cursor: pointer; }
.pins-button svg, .blocked-button svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pins-button.active { color: var(--amber); border-color: rgba(255,204,102,.3); background: rgba(255,204,102,.06); }
.blocked-button { padding: 0 8px; }
.blocked-button:not(:disabled):hover { color: var(--red); border-color: rgba(255,93,112,.3); background: rgba(255,93,112,.05); }
.blocked-button:disabled { opacity: .38; cursor: default; }
.blocked-button span { min-width: 15px; padding: 1px 4px; background: #211317; border-radius: 8px; color: var(--red); font-size: 7px; text-align: center; }
.filters-button { height: 34px; padding: 0 9px; display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #090d0b; color: var(--muted); border-radius: 8px; font-size: 10px; cursor: pointer; }
.filters-button:hover, .filters-button.open { color: var(--text); border-color: #315b42; }
.filters-button svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.filters-button span { min-width: 15px; padding: 1px 4px; border-radius: 8px; background: #1c2921; color: var(--green); font-size: 7px; text-align: center; }

.filter-drawer { position: absolute; z-index: 20; top: 116px; left: 14px; right: 14px; max-height: calc(100% - 132px); padding: 14px; overflow-y: auto; background: rgba(11, 16, 13, .985); border: 1px solid #2e4437; border-radius: 11px; box-shadow: 0 18px 50px rgba(0,0,0,.65); scrollbar-color: #28372f transparent; }
.filter-drawer.hidden { display: none; }
.filter-drawer-header, .filter-drawer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filter-drawer-header strong { display: block; font-size: 12px; }
.filter-drawer-header span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.drawer-close { width: 27px; height: 27px; border: 1px solid var(--line); background: #101612; color: var(--muted); border-radius: 6px; font-size: 18px; line-height: 1; cursor: pointer; }
.advanced-filter-grid { margin-top: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.advanced-filter { min-width: 0; padding: 8px; background: #0f1512; border: 1px solid #1c2821; border-radius: 7px; }
.advanced-filter > label { display: flex; align-items: center; gap: 4px; color: #94a39b; font-size: 8px; font-weight: 600; }
.advanced-filter > label i { color: #506058; font-size: 7px; font-style: normal; font-weight: 400; }
.advanced-filter-range { margin-top: 6px; display: grid; grid-template-columns: 1fr 10px 1fr; align-items: center; gap: 4px; }
.advanced-filter-range > span { color: #3f4c45; font-size: 7px; text-align: center; }
.advanced-filter input { width: 100%; min-width: 0; height: 27px; padding: 0 7px; border: 1px solid #25342c; outline: 0; background: #090d0b; color: #c8d3cd; border-radius: 5px; font-size: 9px; }
.advanced-filter input:focus { border-color: #36734e; }
.advanced-filter input::-webkit-inner-spin-button { display: none; }
.filter-drawer-footer { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-soft); }
.filter-drawer-footer > span { max-width: 55%; color: #697970; font-size: 8px; line-height: 1.4; }
.filter-drawer-footer > div { display: flex; gap: 6px; }
.drawer-primary, .drawer-secondary { height: 30px; padding: 0 12px; border-radius: 6px; font-size: 9px; font-weight: 600; cursor: pointer; }
.drawer-primary { border: 1px solid #2a8b52; background: #1c713e; color: #edfff4; }
.drawer-secondary { border: 1px solid var(--line); background: #101612; color: var(--muted); }

.table-scroller { position: relative; flex: 1; min-height: 0; overflow: auto; scrollbar-color: #28372f transparent; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead { position: sticky; top: 0; z-index: 4; background: #0d1210; }
th { height: 34px; padding: 0 10px; text-align: left; color: #607067; border-bottom: 1px solid var(--line-soft); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
th.number-col, td.number-col { text-align: right; }
.sort-label { width: 100%; height: 34px; padding: 0; display: flex; align-items: center; gap: 4px; border: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; text-transform: inherit; letter-spacing: inherit; white-space: nowrap; cursor: pointer; }
th.number-col .sort-label { justify-content: flex-end; }
.sort-label:hover { color: #bdc9c2; }
.sort-label.active { color: #b7c5bd; }
.sort-label.active .sort-indicator { color: var(--green); }
.sort-label.activity-buy .sort-indicator { color: var(--green); }
.sort-label.activity-sell .sort-indicator { color: var(--red); }
.rank-col { width: 42px; text-align: center; }
.actions-col { width: 92px; text-align: right; }
.stage-col { width: 88px; }
th:nth-child(2) { width: 190px; }
th:nth-child(4), th:nth-child(5), th:nth-child(6), th:nth-child(7) { width: 90px; }
th:nth-child(8) { width: 102px; }
th:nth-child(9) { width: 76px; }
tbody tr { height: 56px; border-bottom: 1px solid #151e19; cursor: pointer; transition: background .15s, box-shadow .15s; }
tbody tr.virtual-spacer { height: auto; border: 0; cursor: default; background: transparent; transition: none; }
tbody tr.virtual-spacer td { height: 0; padding: 0; border: 0; font-size: 0; line-height: 0; }
tbody tr:hover { background: #111914; }
tbody tr.selected { background: linear-gradient(90deg, rgba(67,239,139,.1), rgba(67,239,139,.025)); box-shadow: inset 2px 0 var(--green); }
tbody tr.pinned:not(.selected) { background: rgba(255,204,102,.025); }
tbody tr.volume-up { animation: flashGreen 1.3s ease; }
tbody tr.volume-down { animation: flashRed 1.3s ease; }
td { padding: 7px 10px; color: #c5d0ca; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
td.rank-col { color: #536159; text-align: center; font-size: 10px; }
.token-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.token-avatar { width: 31px; height: 31px; flex: none; display: grid; place-items: center; border: 1px solid #2b3a32; border-radius: 50%; background: linear-gradient(145deg, #1b2a21, #101712); color: #a4b3aa; font-size: 9px; font-weight: 700; overflow: hidden; }
.token-avatar img { width: 100%; height: 100%; object-fit: cover; }
.token-avatar.large { width: 43px; height: 43px; font-size: 12px; }
.token-copy { min-width: 0; }
.ticker { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #d7e0db; overflow: hidden; text-overflow: ellipsis; }
.ticker.buy-heavy { color: var(--green); text-shadow: 0 0 18px rgba(67,239,139,.15); }
.ticker.sell-heavy { color: var(--red); text-shadow: 0 0 18px rgba(255,93,112,.12); }
.token-name { max-width: 150px; margin-top: 3px; color: #58675f; font-size: 9px; overflow: hidden; text-overflow: ellipsis; }
.venue-badge { padding: 2px 4px; border: 1px solid #26362d; border-radius: 4px; color: #62746a; font-size: 7px; font-weight: 600; text-transform: uppercase; }
.stage-cell { overflow: visible; }
.stage-pill { display: inline-flex; align-items: center; gap: 5px; max-width: 78px; padding: 3px 6px; border: 1px solid #27352e; background: #141d18; border-radius: 99px; color: #84968c; font-size: 7px; font-weight: 700; letter-spacing: .2px; text-transform: uppercase; }
.stage-pill::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.stage-pill.new { color: #58e994; border-color: rgba(67,239,139,.2); background: rgba(67,239,139,.05); }
.stage-pill.final { color: var(--amber); border-color: rgba(255,204,102,.22); background: rgba(255,204,102,.05); }
.stage-pill.migrated { color: #7cb9ff; border-color: rgba(124,185,255,.22); background: rgba(124,185,255,.05); }
.volume-value { font-size: 10px; font-weight: 600; color: #cbd5d0; }
.volume-value.up { color: var(--green); }
.volume-value.down { color: var(--red); }
.activity-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.activity-counts { display: flex; gap: 6px; font-size: 9px; }
.activity-counts .buys { color: var(--green); }
.activity-counts .sells { color: var(--red); }
.activity-bar { width: 72px; height: 3px; display: flex; overflow: hidden; border-radius: 5px; background: #1c1114; }
.activity-bar span:first-child { background: var(--green); }
.activity-bar span:last-child { background: var(--red); }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.neutral { color: var(--muted) !important; }
.row-actions { display: flex; justify-content: flex-end; gap: 3px; opacity: .52; }
tr:hover .row-actions, tr.selected .row-actions { opacity: 1; }
.row-action, .star-button, .block-button { width: 25px; height: 25px; display: grid; place-items: center; border: 0; background: transparent; color: #6c7d73; border-radius: 6px; cursor: pointer; }
.row-action:hover, .star-button:hover { color: var(--text); background: #202c25; }
.block-button:hover { color: var(--red); background: rgba(255,93,112,.08); }
.row-action svg, .star-button svg, .block-button svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.star-button.active { color: var(--amber); }
.star-button.active svg { fill: rgba(255,204,102,.12); }
.table-state { position: absolute; inset: 40px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(13,18,16,.92); color: var(--muted); }
.table-state strong { color: #aab8b0; font-size: 12px; }
.table-state span { color: var(--muted-2); font-size: 10px; }
.table-state.hidden { display: none; }
.spinner { width: 20px; height: 20px; border: 2px solid #243129; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }

.detail-panel { position: relative; }
.empty-detail { position: absolute; inset: 0; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-detail.hidden { display: none; }
.empty-icon { width: 58px; height: 58px; margin-bottom: 18px; display: grid; place-items: center; border: 1px solid #254230; background: #0e1b13; border-radius: 16px; }
.empty-icon svg { width: 28px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; }
.empty-detail h2 { font-size: 17px; }
.empty-detail p { max-width: 280px; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.token-detail { height: 100%; padding: 19px; overflow-y: auto; scrollbar-color: #28372f transparent; scrollbar-width: thin; }
.token-detail.hidden { display: none; }
.detail-heading { display: flex; justify-content: space-between; align-items: center; }
.detail-heading-actions { display: flex; gap: 5px; }
.token-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.token-title-line { display: flex; align-items: center; gap: 7px; }
.token-title-line h2 { max-width: 190px; font-size: 19px; overflow: hidden; text-overflow: ellipsis; }
.token-identity p { max-width: 220px; margin-top: 4px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-badge { padding: 2px 5px; background: #18221d; border: 1px solid #27352e; border-radius: 4px; color: #83968b; font-size: 8px; }
.verified-badge { padding: 2px 5px; border: 1px solid rgba(67,239,139,.2); background: rgba(67,239,139,.06); border-radius: 4px; color: var(--green); font-size: 7px; font-weight: 700; white-space: nowrap; }
.large-star { width: 32px; height: 32px; border: 1px solid var(--line); background: #0a0f0c; }
.large-star svg { width: 15px; }
.detail-price-row { margin-top: 20px; display: flex; align-items: flex-end; justify-content: space-between; }
.detail-price-row div span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }
.detail-price-row div strong { display: block; margin-top: 4px; font-size: 23px; letter-spacing: -.45px; font-variant-numeric: tabular-nums; }
.change-chip { padding: 5px 8px; border-radius: 6px; font-size: 10px; font-weight: 600; }
.change-chip.positive { background: rgba(67,239,139,.08); border: 1px solid rgba(67,239,139,.16); }
.change-chip.negative { background: rgba(255,93,112,.08); border: 1px solid rgba(255,93,112,.15); }
.chart-toolbar { margin-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; }
.chart-toolbar > div:first-child strong { display: block; font-size: 11px; }
.chart-toolbar > div:first-child span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8px; text-transform: uppercase; }
.chart-ranges { display: flex; gap: 2px; }
.chart-ranges button { height: 24px; min-width: 31px; padding: 0 7px; border: 0; background: transparent; color: var(--muted); border-radius: 5px; font-size: 8px; cursor: pointer; }
.chart-ranges button.active { color: var(--green); background: rgba(67,239,139,.09); }
.detail-modes { height: 32px; margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: #090d0b; border: 1px solid var(--line-soft); border-radius: 8px; }
.detail-modes button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: #687970; border-radius: 5px; font-size: 9px; cursor: pointer; }
.detail-modes button.active { color: var(--text); background: #17211b; }
.detail-modes svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chart-wrap { position: relative; height: 220px; margin: 8px -5px 0; }
#priceChart { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: #1a241f; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-area { fill: url(#priceGradient); }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(67,239,139,.2)); }
.chart-volume { fill: rgba(84, 117, 98, .28); }
.chart-volume.up { fill: rgba(67, 239, 139, .23); }.chart-volume.down { fill: rgba(255, 93, 112, .23); }
.chart-candle.up { color: var(--green); }.chart-candle.down { color: var(--red); }.chart-candle.flat { color: #91a699; }
.candle-wick { stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }.candle-body { fill: currentColor; }
.chart-types { display: flex; gap: 4px; margin-top: 12px; }.chart-types button { border: 1px solid #263c2e; border-radius: 5px; padding: 5px 10px; color: #8d9e93; background: #0b100d; font-size: 10px; cursor: pointer; }
.chart-types button.active { color: var(--green); background: #152a1c; border-color: #39724c; }
.chart-axis-label { fill: #526058; font-family: var(--font); font-size: 9px; }
.chart-hover { stroke: #71857a; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart-point { fill: var(--surface); stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-hitbox { fill: transparent; cursor: crosshair; }
.chart-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: rgba(13,18,16,.82); color: var(--muted); font-size: 9px; }
.chart-loading.hidden { display: none; }
.chart-tooltip { position: absolute; z-index: 3; min-width: 105px; padding: 7px 8px; pointer-events: none; background: #18211c; border: 1px solid #304137; border-radius: 7px; box-shadow: 0 6px 18px rgba(0,0,0,.35); font-size: 8px; transform: translate(-50%, -115%); }
.chart-tooltip.hidden { display: none; }
.chart-tooltip strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 9px; }
.chart-tooltip span { display: block; color: var(--muted); line-height: 1.5; }
.bubble-section.hidden, #chartSection.hidden { display: none; }
.bubble-header { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; }
.bubble-header div strong { display: block; font-size: 11px; }
.bubble-header div span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8px; text-transform: uppercase; }
.bundle-badge { padding: 4px 7px; border-radius: 6px; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.bundle-badge.scanning { border: 1px solid #344139; color: #819087; background: #131a16; }
.bundle-badge.low { border: 1px solid rgba(67,239,139,.22); color: var(--green); background: rgba(67,239,139,.06); }
.bundle-badge.medium { border: 1px solid rgba(255,204,102,.25); color: var(--amber); background: rgba(255,204,102,.06); }
.bundle-badge.high { border: 1px solid rgba(255,93,112,.25); color: var(--red); background: rgba(255,93,112,.06); }
.bubble-wrap { position: relative; height: 275px; margin-top: 8px; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(67,239,139,.055), transparent 62%), #090d0b; border: 1px solid var(--line-soft); border-radius: 10px; }
.bubble-wrap svg { width: 100%; height: 100%; }
.bubble-node { stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; }
.bubble-node.normal { fill: rgba(67,239,139,.16); stroke: rgba(67,239,139,.72); }
.bubble-node.insider { fill: rgba(255,93,112,.17); stroke: rgba(255,93,112,.85); }
.bubble-node.creator { fill: rgba(255,204,102,.18); stroke: rgba(255,204,102,.9); }
.bubble-node.cluster { fill: rgba(124,185,255,.18); stroke: rgba(124,185,255,.86); }
.bubble-node.bot { fill: rgba(194,112,255,.18); stroke: rgba(194,112,255,.9); }
.bubble-link { stroke: rgba(255,93,112,.45); stroke-width: 1.2; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.bubble-label { fill: #e1eae5; font-family: var(--font); font-size: 15px; font-weight: 700; pointer-events: none; text-anchor: middle; dominant-baseline: middle; }
.bubble-legend-label { fill: #57655d; font-family: var(--font); font-size: 8px; }
.token-safety { margin-top: 10px; padding: 9px; border: 1px solid var(--line-soft); background: #0b100d; border-radius: 8px; }
.token-safety-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.creator-wallet-flag { padding: 4px 7px; border-radius: 6px; font-size: 9px; font-weight: 600; border: 1px solid #344139; color: #93a49a; }
.creator-wallet-flag.caution { color: var(--amber); border-color: #6f552a; background: #302514; }
.token-safety p { margin: 6px 0 0; color: #92a198; font-size: 9px; line-height: 1.5; }
.bubble-toolbar { display: flex; gap: 5px; align-items: center; margin-top: 10px; }
.bubble-toolbar > span { flex: 1; color: #8b9e92; font-size: 9px; }
.bubble-control, .bubble-toolbar button { padding: 5px 8px; border: 1px solid #304438; background: #142019; border-radius: 6px; color: #c3d8cb; cursor: pointer; font-size: 10px; }
.bubble-toolbar output { min-width: 33px; text-align: center; color: #aabfb2; font-size: 9px; font-variant-numeric: tabular-nums; }
.bubble-control:disabled { opacity: .4; cursor: default; }
.bubble-control:focus-visible, .bubble-toolbar button:focus-visible, .bubble-holder:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
#bubbleChart { cursor: grab; touch-action: none; user-select: none; }
#bubbleChart.dragging { cursor: grabbing; }
.bubble-node.selected, .bubble-node:focus-visible { stroke: #f0fff6; stroke-width: 3; outline: none; }
.bubble-node.dimmed { opacity: .3; }
.bubble-link { stroke: #688eb3; opacity: .55; }
.bubble-link.emphasized { stroke: #acd4ff; opacity: 1; stroke-width: 2; }
.bubble-share { fill: #b5c8be; font: 12px var(--font); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.bubble-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: #99aba0; font-size: 9px; }
.bubble-legend span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #43ef8b; }
.bubble-legend .cluster::before { background: #7cb9ff; }.bubble-legend .creator::before { background: #ffcc66; }.bubble-legend .insider::before { background: #ff5d70; }.bubble-legend .bot::before { background: #c270ff; }
.bubble-summary { margin: 8px 0 4px; font-size: 10px; color: #b3c7ba; }
.bubble-evidence { margin: 0 0 9px; color: #788d7f; font-size: 9px; line-height: 1.45; }
.bubble-inspector { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid #304438; border-radius: 8px; background: #111b15; }
.bubble-inspector > div { min-width: 0; flex: 1; color: #93a99b; font-size: 10px; line-height: 1.5; min-height: 48px; }
.bubble-inspector strong, .bubble-inspector code, .bubble-inspector span { display: block; }
.bubble-inspector strong { color: #d2e2d8; }.bubble-inspector code { font-size: 9px; overflow-wrap: anywhere; color: #91c5aa; }
.bubble-inspector button { flex: none; }
.bubble-holder-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-height: 125px; overflow-y: auto; margin-top: 7px; scrollbar-width: thin; }
.bubble-holder { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 5px; padding: 7px; background: #0a100d; border: 1px solid #26372c; border-left: 3px solid #43ef8b; border-radius: 5px; color: #99ada1; font-size: 9px; cursor: pointer; }
.bubble-holder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.bubble-holder strong { flex: none; color: #c3d5c9; font-size: 9px; }
.bubble-holder.creator { border-left-color: #ffcc66; }.bubble-holder.cluster { border-left-color: #7cb9ff; }.bubble-holder.insider { border-left-color: #ff5d70; }.bubble-holder.bot { border-left-color: #c270ff; }
.bubble-holder[aria-pressed=true] { background: #1e3527; border-top-color: #5c8b6d; }
.bubble-section.expanded { display: block; position: fixed; inset: 22px; z-index: 50; padding: 22px; overflow-y: auto; border: 1px solid #3e5c49; border-radius: 14px; background: #0d1510; box-shadow: 0 0 0 100vmax #020604d9; }
.bubble-section.expanded .bubble-header { margin-top: 0; }.bubble-section.expanded .bubble-wrap { height: min(54vh, 580px); }
.bubble-section.expanded .bubble-holder-list { grid-template-columns: repeat(4, 1fr); max-height: 105px; }
.atlas-toolbar { display: flex; gap: 7px; align-items: center; margin: 14px 0 8px; }
.atlas-toolbar > div { flex: 1; min-width: 0; }.atlas-toolbar strong { display: block; font-size: 12px; }
.atlas-toolbar span { display: block; color: #91a699; font-size: 9px; margin-top: 4px; }
.atlas-viewport { height: 540px; width: 100%; background: #0b100e; color: #7e9286; display: grid; place-items: center; font-size: 11px; }
.bubble-section.expanded .atlas-toolbar { margin-top: 0; }
.bubble-section.expanded .atlas-viewport { height: calc(100vh - 215px); min-height: 320px; }
.risk-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 7px; }
.risk-stats div { padding: 8px; background: #0a0f0c; border: 1px solid var(--line-soft); border-radius: 7px; text-align: center; }
.risk-stats span { display: block; color: var(--muted-2); font-size: 7px; text-transform: uppercase; }
.risk-stats strong { display: block; margin-top: 4px; color: #cbd6d0; font-size: 10px; font-variant-numeric: tabular-nums; }
.bundle-verdict { margin-top: 7px; padding: 8px 9px; border-left: 2px solid #3d4b43; background: #0a0f0c; color: #829188; font-size: 8px; line-height: 1.45; }
.bundle-verdict.low { border-color: var(--green); }
.bundle-verdict.medium { border-color: var(--amber); }
.bundle-verdict.high { border-color: var(--red); }
.full-width { width: 100%; height: 33px; margin-top: 7px; display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; border-radius: 7px; font-size: 8px; }
.full-width svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.risk-note { margin-top: 6px; color: #46524b; font-size: 7px; line-height: 1.4; text-align: center; }
.detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.detail-stats div { padding: 10px 11px; background: #0a0f0c; border: 1px solid var(--line-soft); border-radius: 8px; }
.detail-stats span { display: block; color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .4px; }
.detail-stats strong { display: block; margin-top: 5px; font-size: 11px; font-variant-numeric: tabular-nums; }
.flow-card { margin-top: 8px; padding: 10px 11px; background: #0a0f0c; border: 1px solid var(--line-soft); border-radius: 8px; }
.flow-labels { display: flex; justify-content: space-between; font-size: 8px; }
.flow-labels span:first-child { color: var(--green); }
.flow-labels span:last-child { color: var(--red); }
.flow-meter { height: 4px; margin-top: 7px; display: flex; background: #251316; border-radius: 10px; overflow: hidden; }
.flow-meter span:first-child { background: var(--green); }
.flow-meter span:last-child { background: var(--red); }
.flow-card small { display: block; margin-top: 6px; color: var(--muted-2); font-size: 8px; }
.contract-row { margin-top: 8px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #090d0b; border: 1px solid var(--line-soft); border-radius: 8px; }
.contract-row div { min-width: 0; }
.contract-row span { display: block; color: var(--muted-2); font-size: 8px; text-transform: uppercase; }
.contract-row code { display: block; margin-top: 4px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; color: #98aaa0; font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; white-space: nowrap; }
.contract-row button { width: 28px; height: 28px; flex: none; display: grid; place-items: center; background: #141d18; border: 1px solid #25332c; border-radius: 6px; cursor: pointer; }
.contract-row button:hover { border-color: #3e5849; }
.contract-row svg { width: 13px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.detail-actions { margin-top: 10px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 7px; }
.detail-actions button { height: 36px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; font-size: 9px; font-weight: 600; cursor: pointer; }
.detail-actions svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary-button { border: 1px solid #4df696; background: var(--green); color: #061008; box-shadow: 0 7px 20px rgba(67,239,139,.1); }
.primary-button:hover { background: #67f7a2; }
.secondary-button { border: 1px solid var(--line); background: #111914; color: #b3c0b9; }
.secondary-button:hover { border-color: #35493e; }
.data-note { margin-top: 10px; color: #435047; font-size: 8px; line-height: 1.45; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 50; padding: 9px 13px; background: #1a251f; border: 1px solid #344a3e; border-radius: 8px; color: #d8e2dc; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 10px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .22s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes flashGreen { 0%,100% { background: transparent; } 25% { background: rgba(67,239,139,.07); } }
@keyframes flashRed { 0%,100% { background: transparent; } 25% { background: rgba(255,93,112,.06); } }

@media (max-width: 1240px) {
  .install-identity { display: none; }
  .market-strip { grid-template-columns: 1.2fr repeat(3, .9fr) 110px; }
  .workspace { grid-template-columns: minmax(690px, 1.55fr) minmax(330px, .75fr); }
  th:nth-child(5), td:nth-child(5), th:nth-child(9), td:nth-child(9) { display: none; }
  th:nth-child(2) { width: 190px; }
  .volume-filter > span { display: none; }
  .blocked-button { font-size: 0; gap: 3px; }
  .blocked-button span { font-size: 7px; }
}
/* Wallet and trade controls share the market panel's dark green palette. */
.hidden { display: none !important; }
#walletButton, #headerOpenOrders { padding: 10px 16px; border: 1px solid #355342; border-radius: 8px; background: #14221a; color: #c7e5d2; cursor: pointer; }
.trade-panel .primary-button, .wallet-dialog .primary-button, .wallet-dialog .secondary-button { padding: 11px 15px; border-radius: 8px; font: inherit; font-size: 12px; cursor: pointer; }
.trade-panel button:disabled, .wallet-dialog button:disabled { opacity: .5; cursor: default; }
.trade-panel { margin: 20px 0; padding: 18px; border: 1px solid #294137; border-radius: 12px; background: #101c16; }
.trade-shortcut { width: 100%; padding: 10px; margin: 0 0 12px; border: 1px solid #2d7849; border-radius: 8px; background: #142d1e; color: #64f6a1; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; }
.trade-heading, .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trade-heading strong { font-size: 15px; }
.text-button { color: #83ab95; background: transparent; border: 0; cursor: pointer; font: inherit; font-size: 11px; }
.trade-sides { display: flex; margin: 16px 0; padding: 3px; gap: 4px; background: #09110d; border-radius: 8px; }
.trade-sides button { flex: 1; padding: 9px; background: transparent; border: 0; border-radius: 6px; color: #8ea296; cursor: pointer; font-weight: 700; }
#tradeBuy.active { background: #123b26; color: #39ed8b; }
#tradeSell.active { background: #3c1720; color: #ff7087; }
.trade-panel label, .wallet-dialog label { display: grid; gap: 7px; margin: 12px 0; color: #a6b9ad; font-size: 12px; }
.trade-panel input, .wallet-dialog input, .wallet-dialog textarea { box-sizing: border-box; min-width: 0; width: 100%; padding: 10px; border: 1px solid #304639; border-radius: 7px; background: #080f0b; color: #edf6f0; font: inherit; }
.trade-panel input:focus, .wallet-dialog input:focus, .wallet-dialog textarea:focus { outline: 2px solid #268851; outline-offset: 1px; }
.trade-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wallet-muted { font-size: 11px; color: #93a699; line-height: 1.6; overflow-wrap: anywhere; }
.wallet-dialog { width: min(600px, calc(100vw - 48px)); max-height: calc(100vh - 70px); overflow-y: auto; padding: 26px; border: 1px solid #3a5846; border-radius: 16px; background: #101813; color: #e4eee7; box-shadow: 0 30px 100px #000c; }
.wallet-dialog::backdrop { background: #020805cc; backdrop-filter: blur(4px); }
.wallet-dialog h2 { margin: 0; font-size: 21px; }
.dialog-heading p, .fee-info p { color: #94a79b; font-size: 12px; line-height: 1.6; }
.dialog-heading > button { color: #a9b9af; background: #1c2b22; border: 1px solid #2c3e33; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 22px; }
.wallet-dialog code, #tradeStatus { display: block; overflow-wrap: anywhere; font-size: 11px; line-height: 1.7; }
.wallet-dialog textarea { min-height: 72px; resize: vertical; overflow-wrap: anywhere; }
.wallet-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.wallet-warning { background: #302815; border: 1px solid #655127; padding: 14px; border-radius: 9px; color: #ecd7a0; font-size: 12px; line-height: 1.6; }
.wallet-dialog .backup-check { display: flex; align-items: flex-start; gap: 9px; }
.backup-check input { width: 16px; margin-top: 2px; }
.fee-info, .wallet-history { padding-top: 20px; margin-top: 20px; border-top: 1px solid #2d4034; }
.fee-info strong, .wallet-history strong { font-size: 13px; }
.fee-info span, #tradeHistory { color: #90a396; font-size: 11px; }
.trade-history-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #25372c; }
.trade-history-row span { flex: 1; }
.review-line { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid #25382c; font-size: 12px; }
.review-line span { color: #91a89a; flex: 1; }
.review-line strong { max-width: 62%; text-align: right; overflow-wrap: anywhere; font-weight: 500; }
#walletState, #tradeReviewStatus { font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
#tradeReviewStatus button { margin-top: 10px; }

.atlas-address { padding: 8px 2px; font: 10px/1.5 monospace; color: var(--muted); overflow-wrap: anywhere; user-select: text; }
.venue-exclusions { display:flex; gap:20px; flex-wrap:wrap; border:1px solid var(--line); border-radius:8px; padding:10px 12px; margin:0 0 16px; }
.venue-exclusions legend { font-size:11px; padding:0 5px; color:var(--muted); }
.venue-exclusions label { display:flex; align-items:center; gap:7px; font-size:12px; }
.venue-exclusions input { accent-color:#43ef8b; }
.trade-panel { margin: 8px 0 20px; padding: 14px; background: #0d1711; border-color:#263e30; }
.trade-shortcut { display:none; }
.trade-heading strong {font-size:13px;}
.settings-cog {width:30px;height:30px;background:#18251d;border:1px solid #2a4031;border-radius:7px;color:#a9c8b5;cursor:pointer;font-size:18px;vertical-align:middle;margin-left:8px;}
.trade-sides {margin:10px 0;}
.trade-presets {display:grid;grid-template-columns:repeat(4,1fr);gap:6px;}
.preset-button {padding:12px 3px;border:1px solid #24583a;border-radius:8px;background:#153722;color:#57f79a;font:600 12px 'Segoe UI',sans-serif;cursor:pointer;transition:background .12s;}
.preset-button:hover {background:#1d4f31;}.preset-button.sell {border-color:#62313b;background:#361b23;color:#ff8698;}.preset-button.sell:hover{background:#50222f;}
.custom-buy {display:flex;align-items:center;gap:8px;margin:10px 0;}.custom-buy label {margin:0;font-size:10px;}.custom-buy input{width:100%;font-size:11px;padding:9px;}.custom-buy button{padding:9px 14px!important;}
#unlockTrading{margin:10px 0;padding:10px;border:1px solid #365c42;border-radius:8px;background:#172b1e;color:#94f2b6;cursor:pointer;}
.trade-balance-line {display:flex;justify-content:space-between;gap:8px;margin-top:12px;font-size:10px;color:#a5baaD;flex-wrap:wrap;}
.trade-footnote {font-size:9px;line-height:1.6;color:#718a79;margin-bottom:0;}#tradeStatus:empty{display:none;}#tradeStatus{margin-bottom:0;}
.wallet-dialog {width:min(690px,calc(100vw - 48px));padding:24px;}.wallet-address{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;}.wallet-address code{font-size:10px;}
.wallet-overview{display:grid;grid-template-columns:1.25fr 1fr auto;gap:16px;padding:20px;background:#0a120d;border:1px solid #26382c;border-radius:12px;margin:8px 0 18px;}.wallet-overview span{color:#7f9989;font-size:10px;display:block;margin-bottom:7px;}.wallet-overview strong{display:block;font-size:18px;}.wallet-overview small{display:block;font-size:10px;color:#8ea496;margin-top:5px;}
.wallet-tabs{display:flex;gap:20px;border-bottom:1px solid #273b2f;margin-bottom:16px;}.wallet-tabs button{padding:10px 3px;background:transparent;border:0;border-bottom:2px solid transparent;color:#82978a;font-size:12px;cursor:pointer;}.wallet-tabs button.active{border-color:#43ef8b;color:#e3f5e9;}
.position-row{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #213328;font-size:12px;}.position-row>div:last-child{text-align:right;}.position-row small{display:block;font-size:10px;color:#8aa393;margin-top:5px;}
.trade-history-row{align-items:center;}.trade-history-main{flex:1;}.trade-history-main strong{font-size:11px;}.trade-history-main small{display:block;margin-top:5px;color:#91a99a;font-size:10px;}.trade-history-row button{font-size:10px;}
.preset-settings{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;}.preset-settings label{font-size:10px;}.trade-settings-dialog{width:520px;}
#hiddenTickers{max-height:55vh;overflow:auto;margin:18px 0;}.wallet-dialog .hidden-ticker-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #293e30;border-radius:8px;}.hidden-ticker-row input{width:16px;flex:none;accent-color:#43ef8b;}.hidden-ticker-row code{font-size:10px;color:#7e9988;}.hidden-ticker-row strong{font-size:12px;}
th:nth-child(9){width:90px;}th:nth-child(10){width:76px;}td.market-cap-cell{font-size:10px;font-weight:600;}
/* Compact desktop columns keep the new market cap and row actions visible together. */
.rank-col{width:32px;}th:nth-child(2){width:165px;}.stage-col{width:78px;}th:nth-child(4),th:nth-child(5),th:nth-child(6),th:nth-child(7){width:78px;}th:nth-child(8){width:90px;}th:nth-child(9){width:82px;}th:nth-child(10){width:76px;}.actions-col{width:104px;}
.row-action,.star-button,.block-button{width:21px;height:25px;}.row-actions{gap:1px;}
.actions-col{width:138px}.recommend-button.active{color:var(--green)}.community-badge{margin-left:5px;font-size:12px}.hide-reason-menu button.hidden{display:none}
.actions-col{width:152px;position:static;background:transparent;box-shadow:none;text-align:center}.table-scroller th{position:relative}.column-grip{position:absolute;right:0;top:0;width:7px;height:100%;cursor:col-resize;touch-action:none;z-index:2}.column-grip:hover,.column-grip:focus-visible{background:#43ef8b55;outline:0}.row-actions{overflow:hidden;justify-content:center}.row-actions>button{flex-shrink:0}

/* Detachable tool windows share the same selected token and isolated local UI. */
#panelWindowToolbar { display:none; }
.detach-button { border:1px solid var(--line); background:#101b14; color:var(--muted); border-radius:6px; min-width:28px; height:28px; cursor:pointer; }
.detach-button:hover { color:var(--green); border-color:var(--green); }
.chart-types [data-detach] { margin-left:auto; }
.chart-toolbar { flex-direction:column; align-items:stretch; gap:10px; }
.chart-ranges { flex-wrap:wrap; gap:3px; }
.chart-ranges button { font-size:10px; min-width:32px; }
.vtm-heading{font-size:10px;color:#becdc3;flex-basis:100%;margin-top:5px}.vtm-heading span{font-size:9px;color:var(--muted);margin-left:8px}
.chart-ranges button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:37px}
.vtm-dot{width:6px;height:6px;border-radius:50%;background:#69756d;display:block;flex:none}
.vtm-dot[data-tone=buy]{background:var(--green);box-shadow:0 0 5px #43ef8b45}
.vtm-dot[data-tone=sell]{background:var(--red);box-shadow:0 0 5px #ff5d7045}
.vtm-dot[data-tone=unknown]{background:transparent;border:1px solid #69756d}
.panel-detached > :not(.panel-detached-notice) { display:none !important; }
.panel-detached-notice { display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:20px 12px; color:var(--muted); font-size:12px; }
html.panel-window, body.panel-window { min-width:0; min-height:0; }
body.panel-window #panelWindowToolbar { height:56px; display:flex; justify-content:space-between; align-items:center; padding:10px 16px; border-bottom:1px solid var(--line); gap:12px; }
body.panel-window #panelWindowTitle { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
body.panel-window #dockBack { flex-shrink:0; }
body.panel-window .app-shell { height:calc(100vh - 56px); }
body.panel-window .topbar, body.panel-window .market-strip, body.panel-window .section-tabs, body.panel-window .market-panel { display:none !important; }
body.panel-window main { padding:0; display:block; height:100%; min-height:0; }
body.panel-window main > :not(.workspace) { display:none !important; }
body.panel-window .workspace { display:block; height:100%; min-height:0; margin:0; }
body.panel-window .workspace > :not(.detail-panel) { display:none !important; }
body.panel-window .detail-panel { height:100%; width:100%; border:0; border-radius:0; }
body.panel-window .token-detail { padding:16px; }
body.panel-window #tokenDetail > :not(.detail-heading):not(.detail-price-row):not(#tradePanel):not(#chartSection):not(#bubbleSection) { display:none !important; }
body.panel-window [data-detach], body.panel-window .detail-heading-actions { display:none !important; }
body.panel-trade #chartSection, body.panel-trade #bubbleSection { display:none !important; }
body.panel-chart #tradePanel, body.panel-chart #bubbleSection { display:none !important; }
body.panel-bubbles #tradePanel, body.panel-bubbles #chartSection, body.panel-bubbles .detail-price-row, body.panel-bubbles .detail-heading { display:none !important; }
body.panel-chart #chartWrap { height:max(300px,calc(100vh - 365px)); }
body.panel-chart #priceChart { height:100%; }
body.panel-bubbles #atlasViewport { height:max(240px,calc(100vh - 220px)); }
body.panel-window .wallet-dialog { width:calc(100vw - 24px); max-width:690px; padding:18px; }
body.panel-window .wallet-overview { grid-template-columns:1fr 1fr; }
body.panel-window .wallet-overview > button { grid-column:1/-1; }
.trade-balance-line { flex-wrap:wrap; gap:5px 12px; }
#tradeHolding { overflow-wrap:anywhere; }

#filterDrawer .venue-filter-label { margin:12px 0 7px; color:var(--muted); font-size:11px; }
#filterDrawer #venueFilter { width:max-content; max-width:100%; }

.trade-quote{font-size:11px;line-height:1.6;color:#b7d5c2;margin:12px 0 0;overflow-wrap:anywhere}.wallet-sell{padding:16px;margin:12px 0 18px;border:1px solid #65303c;border-radius:10px;background:#22171c}.position-sell{align-self:center;flex:none;padding:8px 14px;border-radius:7px;border:1px solid #65303c;background:#351b23;color:#ff8698;cursor:pointer;font-size:11px}.position-row>div:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.position-row>div:nth-child(2){text-align:right}#walletTradeStatus:empty{display:none}

#priceChart{width:100%;height:310px;position:relative}#chartWrap{height:310px}.panel-chart #priceChart{height:100%}

#chartWrap{margin:8px 0 0;overflow:visible}
.order-controls{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:10px 0}.order-controls label{flex:1;min-width:110px;color:var(--muted);font-size:11px}.order-controls select,.order-controls input{display:block;width:100%;box-sizing:border-box;background:#101b15;color:#d8e9de;border:1px solid #2b4033;border-radius:6px;padding:9px;margin-top:6px}.order-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #26392c}.order-row>div{min-width:0}.order-row small{display:block;overflow-wrap:anywhere;color:var(--muted);margin-top:6px}.order-row .text-button{text-align:left}#orderList:empty{color:var(--muted)}.hidden-ticker-row small{display:block;color:var(--muted);margin-top:5px}

.chart-types{flex-wrap:wrap;align-items:center}.chart-types button:disabled{opacity:.35;cursor:default}#trendHint{font-size:10px;color:#91a79a}
.chart-drawings{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}.chart-drawings line{stroke:#78b8ff;stroke-width:2}.chart-drawings circle{fill:#0a0e0c;stroke:#78b8ff;stroke-width:2}
.hide-reason-menu{position:fixed;z-index:1000;width:196px;padding:5px;background:#050505;border:1px solid #2a302c;border-radius:8px;box-shadow:0 8px 28px #0009}
.hide-reason-menu.hidden{display:none}.hide-reason-menu>span{display:block;padding:8px 10px 6px;font-size:10px;color:#819087}.hide-reason-menu button{display:block;width:100%;padding:10px;text-align:left;color:#e0e9e3;background:transparent;border:0;border-radius:4px;font:12px var(--font);cursor:pointer}.hide-reason-menu button:hover,.hide-reason-menu button:focus-visible{background:#19221c;color:#70ef9a;outline:none}

/* TradingView owns its table geometry; leaderboard cell padding must not apply. */
#priceChart table{table-layout:auto;border-collapse:separate;border-spacing:0}#priceChart tr,#priceChart tr:hover{height:auto;border:0;background:transparent;transition:none;cursor:default}#priceChart td{padding:0;border:0;overflow:visible;text-overflow:clip}
.order-scopes{display:flex;gap:6px;margin:16px 0}.order-scopes button{border:1px solid #2b3b31;border-radius:7px;background:#101713;padding:9px 18px;color:#98ab9f;cursor:pointer}.order-scopes button.active{background:#193025;color:#7af0ac;border-color:#356548}

/* Browser deployment: market intelligence stays live; signing remains desktop-only. */
.desktop-download{display:none;padding:9px 13px;border:1px solid #355342;border-radius:8px;background:#14221a;color:#9de9b8;text-decoration:none;font-size:11px;font-weight:650}
html.web-client .desktop-download{display:inline-flex}
html.web-client #walletSetup{display:none!important}
html.web-client .row-actions{justify-content:flex-end;gap:5px}
html.web-client .actions-col{width:62px}
html.web-client #atlasViewport{display:grid;place-items:center;padding:24px;text-align:center}
.web-atlas-link{display:grid;gap:10px;max-width:340px;color:var(--muted);font-size:11px;line-height:1.6}
.web-atlas-link a{justify-self:center;padding:10px 14px;border:1px solid #355342;border-radius:8px;background:#14221a;color:#75efa4;text-decoration:none;font-weight:650}
@media (max-width:760px){html.web-client .topbar{align-items:flex-start;gap:10px}html.web-client .top-actions{gap:7px}html.web-client .desktop-download{padding:8px 10px}.desktop-download{white-space:nowrap}}
.order-card{margin:10px 0;padding:16px;border:1px solid #2a3b30;border-radius:10px;background:#0b120e}.order-card-heading{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.order-card-heading .text-button{font-size:14px;font-weight:700;color:#ecf4ef}.order-card-heading>span{font-size:11px}.order-status{margin-left:auto;padding:5px 8px;border-radius:5px;background:#233027;color:#bdcfc3;text-transform:capitalize}.order-status.filled{color:#77eea7}.order-status.failed{color:#fc858b}.order-card-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.order-card-details span{display:block;font-size:10px;color:#82958a;margin-bottom:5px}.order-card-details strong{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.order-card-actions{display:flex;gap:18px;border-top:1px solid #213027;padding-top:10px}.order-error{font-size:11px;line-height:1.5;color:#cead80;overflow-wrap:anywhere}.orders-empty{padding:24px 12px;color:#82958a;font-size:12px;text-align:center}
.order-notifications{position:fixed;z-index:2000;bottom:20px;right:20px;width:min(350px,calc(100vw - 40px));display:grid;gap:10px;pointer-events:none}.order-notification{pointer-events:auto;display:grid;grid-template-columns:1fr auto;gap:8px;padding:16px;background:#0a120e;border:1px solid #42644f;border-radius:10px;box-shadow:0 10px 30px #0008}.order-notification strong{font-size:13px}.order-notification>span{grid-row:2;font-size:11px;color:#99ac9f}.order-notification>button:last-child{grid-column:2;grid-row:1;background:none;color:#a6b5ac;border:0;font-size:18px;cursor:pointer}.order-notification .text-button{grid-row:2;grid-column:2;color:#80e9a8}
.volume-value.stale{text-decoration:underline dotted #a28b56;text-underline-offset:4px}

.order-notifications[popover]{inset:auto 20px 20px auto;margin:0;padding:0;border:0;background:transparent;overflow:visible}.order-notifications[popover]:not(:popover-open){display:none}

#limitStopLoss{border:1px solid #594047;border-radius:8px;padding:10px;margin:10px 0;color:var(--muted);font-size:12px}#limitStopLoss legend{color:#ff8794}#buyStopPriceGroup{display:block;margin-top:8px}#buyStopPrice{display:block;width:100%;box-sizing:border-box;background:#101b15;color:#d8e9de;border:1px solid #594047;border-radius:6px;padding:9px;margin-top:6px}
