:root {
  --bg: #080a0d;
  --panel: #0d1014;
  --panel-2: #11151a;
  --line: #20262d;
  --line-bright: #303943;
  --text: #f2f4f6;
  --muted: #7e8894;
  --soft: #aeb6bf;
  --acid: #c9ff3d;
  --cyan: #5ce1e6;
  --orange: #ff9d52;
  --red: #ff5c6c;
  --purple: #a58cff;
  --radius: 7px;
  --surface: #0d1014;
  --surface-raised: #11151a;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --mono: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button { border-radius: 4px; font: inherit; }

.shell { min-height: 100vh; }
.metric small { color: var(--muted); font-size: 10px; }
.settings-button, .dialog-close, .settings-input-row button, .settings-remove {
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  color: var(--soft);
  background: var(--surface-raised);
  cursor: pointer;
  font: 650 10px/1 var(--sans);
}
.settings-button { min-height: 30px; padding: 0 10px; }
.settings-button.icon-only { width: 30px; height: 30px; min-height: 30px; flex: 0 0 30px; display: grid; place-items: center; padding: 0; }
.settings-button.icon-only span { font-size: 15px; line-height: 1; }
.global-settings-button { position: fixed; top: 11px; right: 12px; z-index: 30; background: var(--bg); }
.settings-button:hover, .dialog-close:hover, .settings-remove:hover { color: var(--acid); border-color: rgba(201,255,61,.34); }

.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(350px, 400px) minmax(0, 1fr);
}

.feed-panel { height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(13, 16, 20, .78); min-width: 0; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font: 600 10px/1 var(--sans); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 24px; line-height: 1; letter-spacing: -.035em; }

.feed-toolbar { flex: 0 0 auto; min-height: 48px; display: flex; align-items: stretch; justify-content: space-between; gap: 10px; padding: 0 10px 0 12px; border-bottom: 1px solid var(--line); }
.view-tabs { min-width: 0; display: flex; align-items: stretch; gap: 18px; }
.view-tab { position: relative; min-width: 0; display: inline-flex; align-items: center; gap: 6px; padding: 0; color: var(--muted); border: 0; border-radius: 0; background: transparent; cursor: pointer; font: 700 10px/1 var(--sans); }
.view-tab::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; }
.view-tab:hover { color: var(--text); }
.view-tab.active { color: var(--text); }
.view-tab.active::after { background: var(--acid); }
.view-tab > i { width: 6px; height: 6px; border-radius: 2px; background: var(--acid); opacity: .35; }
.view-tab.active > i { opacity: 1; }
.view-tab > b { min-width: 16px; color: var(--muted); font: 600 9px/1 var(--sans); text-align: left; }
.filters { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.filter {
  min-height: 30px;
  border: 0;
  border-radius: 3px;
  padding: 0 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: 600 10px/1 var(--sans);
  white-space: nowrap;
}
.filter:hover { color: var(--text); background: rgba(255,255,255,.035); }
.filter.active { color: var(--acid); background: rgba(201,255,61,.065); }
.logo-filter { display: inline-flex; align-items: center; gap: 6px; }
.logo-filter img { display: block; width: 17px; height: 17px; object-fit: contain; }
.bridge-filter { padding-inline: 5px; gap: 2px; }
.bridge-filter img { width: 15px; height: 15px; }

.feed { min-height: 0; height: auto; flex: 1 1 auto; padding: 4px 7px 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.runner-summary { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 7px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.runner-summary > span { min-width: 0; padding: 9px 8px; background: var(--panel); }
.runner-summary small { display: block; color: var(--muted); font: 600 9px/1 var(--sans); text-transform: uppercase; }
.runner-summary b { display: block; margin-top: 6px; color: var(--text); font: 700 14px/1 var(--sans); overflow: hidden; text-overflow: ellipsis; }
.runner-summary > span:nth-child(3) b, .runner-summary > span:nth-child(4) b { color: var(--acid); }
.runner-row { margin: 4px 0; padding: 0 11px 10px; border: 1px solid transparent; border-radius: var(--radius); background: rgba(255,255,255,.012); }
.runner-row:hover { background: rgba(255,255,255,.028); }
.runner-row.active { border-color: rgba(201,255,61,.28); background: rgba(201,255,61,.045); }
.runner-item { min-width: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 12px 0 9px; cursor: pointer; }
.runner-item:focus-visible { outline: 1px solid var(--acid); outline-offset: 3px; }
.runner-rank { color: var(--muted); font: 600 10px/1 var(--sans); }
.runner-token, .runner-performance { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.runner-token b { overflow: hidden; color: var(--text); font: 700 13px/1.1 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.runner-token small, .runner-performance small { color: var(--muted); font: 500 9px/1.2 var(--sans); white-space: nowrap; }
.runner-performance { align-items: flex-end; text-align: right; }
.runner-performance b { color: var(--acid); font: 750 17px/1 var(--sans); }
.runner-meta { min-width: 0; min-height: 30px; display: flex; align-items: center; gap: 8px; padding-left: 35px; }
.runner-meta .launch-brand { margin-left: auto; }
.runner-chart { flex: 0 0 auto; }
.feed-item-shell {
  position: relative;
  margin: 4px 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgba(255,255,255,.012);
  overflow: hidden;
}
.feed-item {
  width: 100%;
  display: block;
  padding: 13px 12px;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.feed-item:focus-visible { outline: 1px solid var(--acid); outline-offset: -2px; }
.feed-item-shell:hover { background: rgba(255,255,255,.028); }
.feed-item-shell.active { border-color: rgba(201,255,61,.28); background: rgba(201,255,61,.045); }
.feed-item-shell .feed-bottom { padding-right: 49px; }
.feed-chart { position: absolute; right: 11px; bottom: 9px; z-index: 2; }
.feed-chart .gmgn-button.compact,
.runner-chart .gmgn-button.compact { width: 39px; height: 39px; padding: 5px; border-radius: 4px; }
.feed-chart .gmgn-button.compact img,
.runner-chart .gmgn-button.compact img { width: 26px; height: 26px; }
.feed-compact-signals, .feed-expand { display: none; }
.feed-top, .feed-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.token-name { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.token-name b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.token-name small { color: var(--muted); font: 500 10px/1.2 var(--sans); }
.time { color: var(--muted); font: 10px/1 var(--sans); white-space: nowrap; }
.feed-origin { margin-top: 8px; display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); }
.feed-origin .launch-brand { min-width: 0; }
.feed-origin .launch-brand strong { overflow: hidden; text-overflow: ellipsis; }
.feed-identities { margin: 7px 0 10px; display: grid; gap: 3px; }
.feed-identity-row { min-width: 0; min-height: 20px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 6px; color: var(--soft); font: 500 10px/1.2 var(--sans); }
.feed-identity-row.contract { grid-template-columns: 28px auto; justify-content: start; }
.feed-identity-key { color: var(--muted); font-size: 9px; font-weight: 650; }
.feed-address-group { min-width: 0; width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 5px; }
.feed-address-group > span, .feed-address-group > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-address-group > strong { color: var(--text); font-size: 10px; }
.feed-address-group .copy-button { width: 18px; height: 18px; flex-basis: 18px; }
.feed-identity-row > small { color: var(--acid); font: 600 10px/1.2 var(--sans); white-space: nowrap; }
.developer-launch-total { flex: none; color: var(--acid); font: 650 10px/1.2 var(--sans); white-space: nowrap; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; overflow: visible; }
.signal-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 20px; }
.signal-icon img { display: block; width: 20px; height: 20px; object-fit: contain; }
.hl-signal { min-height: 20px; display: inline-flex; align-items: center; gap: 4px; padding-right: 5px; border-radius: 3px; background: rgba(255,255,255,.035); }
.hl-signal img { display: block; width: 20px; height: 20px; object-fit: contain; }
.hl-signal b { color: var(--soft); font: 750 7px/1 var(--sans); letter-spacing: .06em; }
.hl-signal.own b { color: var(--acid); }
.hl-signal.used b { color: var(--purple); }
.hl-signal.both b { color: var(--cyan); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 0 6px;
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  color: var(--soft);
  background: rgba(255,255,255,.018);
  font: 600 10px/1.15 var(--sans);
  white-space: nowrap;
}
.badge.good { color: var(--acid); border-color: rgba(201,255,61,.26); background: rgba(201,255,61,.055); }
.badge.info { color: var(--cyan); border-color: rgba(92,225,230,.24); background: rgba(92,225,230,.05); }
.badge.hop { color: var(--purple); border-color: rgba(165,140,255,.3); background: rgba(165,140,255,.07); }
.badge.warn { color: var(--orange); border-color: rgba(255,157,82,.24); }
.badge.pending { color: var(--muted); border-style: dashed; }
.ath-mini { color: var(--acid); font: 600 10px/1.2 var(--sans); white-space: nowrap; }
.hop-banner { margin: 0 0 11px; display: flex; align-items: center; gap: 6px; min-height: 24px; padding: 4px 8px; border-left: 2px solid var(--purple); border-radius: 0 5px 5px 0; color: var(--muted); background: rgba(165,140,255,.07); font-size: 10px; }
.hop-banner i { width: 5px; height: 5px; border-radius: 50%; background: var(--purple); }
.hop-banner strong { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hop-banner small { margin-left: auto; color: var(--purple); font: 600 10px/1.2 var(--sans); }

.empty-feed, .empty-dossier { color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-feed { height: 280px; gap: 7px; }
.empty-feed b { color: var(--soft); font-size: 12px; }
.empty-feed small { font-size: 11px; }
.feed-tail { padding: 18px 12px 26px; color: var(--muted); text-align: center; font-size: 10px; }
.load-more { border: 1px solid var(--line-bright); border-radius: 4px; padding: 7px 11px; color: var(--soft); background: transparent; cursor: pointer; font: 600 10px/1 var(--sans); }
.load-more:hover { color: var(--acid); border-color: rgba(201,255,61,.3); }
.scanline { width: 56px; height: 1px; background: var(--acid); animation: pulse 1.5s ease-in-out infinite; }

.dossier { min-width: 0; padding: 28px clamp(22px, 3.5vw, 48px) 64px; overflow-y: auto; overflow-anchor: none; height: 100vh; overscroll-behavior: contain; scrollbar-gutter: stable; }
.empty-dossier { min-height: 70vh; max-width: 500px; margin: auto; }
.empty-dossier.compact { min-height: 48vh; }
.empty-dossier h2 { margin: 6px 0 10px; color: var(--soft); font-size: 24px; letter-spacing: -.03em; }
.empty-dossier > p:last-child { line-height: 1.6; max-width: 460px; }
.radar { width: 72px; height: 72px; margin-bottom: 24px; border: 1px solid var(--line-bright); border-radius: 50%; background: radial-gradient(circle, rgba(201,255,61,.35) 1px, transparent 2px), repeating-radial-gradient(circle, transparent 0 13px, rgba(201,255,61,.08) 14px 15px); }

.dossier-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding-bottom: 8px; }
.title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.dossier-head h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: .95; letter-spacing: -.055em; }
.dossier-head .full-name { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.launch-summary { margin-top: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.launch-brand { display: inline-flex; align-items: center; gap: 7px; min-width: max-content; color: var(--text); font: 700 12px/1.2 var(--sans); text-decoration: none; }
.launch-brand img { display: block; width: 24px; height: 24px; object-fit: contain; }
.launch-brand i { color: var(--muted); font-size: 10px; font-style: normal; }
.launch-brand:hover { color: var(--acid); }
.launch-brand.compact { gap: 5px; font-size: 10px; }
.launch-brand.compact img { width: 18px; height: 18px; }
.developer-summary { width: min(100%, 520px); margin-top: 14px; display: grid; gap: 6px; }
.developer-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.developer-summary-head > small { color: var(--muted); font: 10px/1 var(--sans); }
.wallet-identity { min-width: 0; display: grid; gap: 5px; }
.wallet-identity > strong { min-width: 0; color: var(--text); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-value { min-width: 0; width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; }
.wallet-address { min-width: 0; color: var(--soft); font: 500 10px/1.4 var(--sans); letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--muted);
  border: 0;
  border-radius: 3px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.copy-icon { position: relative; width: 12px; height: 12px; }
.copy-icon::before, .copy-icon::after { content: ""; position: absolute; width: 7px; height: 8px; border: 1px solid currentColor; border-radius: 2px; }
.copy-icon::before { left: 1px; top: 1px; opacity: .55; }
.copy-icon::after { right: 0; bottom: 0; background: var(--panel); }
.copy-button:hover { color: var(--acid); }
.copy-button:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.copy-button.copied .copy-icon { display: none; }
.copy-button.copied::after { content: "✓"; color: var(--acid); font: 700 13px/1 var(--sans); }
.checking { color: var(--muted); font: 600 10px/1.2 var(--sans); }
.token-actions { width: min(100%, 520px); margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.contract-copy { min-width: 0; width: fit-content; max-width: 100%; justify-self: start; display: inline-flex; gap: 6px; align-items: center; color: var(--soft); font: 500 10px/1.35 var(--sans); letter-spacing: .01em; }
.contract-copy > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmgn-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--acid);
  border-radius: 4px;
  color: var(--text);
  background: #131916;
  font: 700 10px/1.2 var(--sans);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 120ms ease, background 120ms ease;
}
.gmgn-button img { display: block; width: 18px; height: 18px; object-fit: contain; }
.gmgn-button:hover { transform: translateY(-1px); }
.gmgn-button:focus-visible { outline: 2px solid var(--soft); outline-offset: 2px; }
.gmgn-button.compact { width: 36px; height: 30px; justify-content: center; padding: 4px; }
.gmgn-button.compact img { width: 20px; height: 20px; }
.ca-link { color: inherit; text-decoration: none; }
.ca-link:hover { color: var(--acid); text-decoration: underline; text-underline-offset: 3px; }
.headline-metrics { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); gap: 8px; }
.metric { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric b { font: 700 20px/1.1 var(--sans); letter-spacing: -.02em; }
.metric.acid b { color: var(--acid); }

.route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.route-node { position: relative; padding: 12px; min-width: 0; border-right: 1px solid var(--line); }
.route-node:last-child { border-right: 0; }
.route-node small { display: block; color: var(--muted); font: 600 10px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.route-node b { display: block; margin-top: 7px; color: var(--soft); font: 600 10px/1.25 var(--sans); overflow: hidden; text-overflow: ellipsis; }
.route-node::after { content: "›"; position: absolute; right: -5px; top: 18px; z-index: 1; color: var(--acid); background: var(--panel); }
.route-node:last-child::after { display: none; }

.intel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; align-items: stretch; }
.intel-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.intel-card.wide, .intel-card.full { grid-column: 1 / -1; }
.card-head { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px 0; }
.card-head h3 { margin: 0; font: 700 13px/1.2 var(--sans); }
.card-head span { min-width: 0; color: var(--muted); font: 500 10px/1.2 var(--sans); text-align: right; }
.card-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.blacklist-developer {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255,92,108,.3);
  border-radius: 4px;
  color: #ff8995;
  background: rgba(255,92,108,.055);
  cursor: pointer;
  font: 650 9px/1 var(--sans);
  white-space: nowrap;
}
.blacklist-developer:hover { border-color: rgba(255,92,108,.55); background: rgba(255,92,108,.1); }
.blacklist-developer:disabled { opacity: .5; cursor: wait; }
.card-body { padding: 13px 15px 15px; }
.launch-card-brand { min-height: 31px; display: flex; align-items: center; margin-bottom: 10px; }
.launch-facts { padding-top: 0; }
.launch-facts .fact { grid-template-columns: 86px minmax(0, 1fr); }
.fact-list { display: grid; gap: 12px; }
.fact { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 12px; align-items: start; }
.fact dt { color: var(--muted); font: 10px/1.3 var(--sans); }
.fact dd { margin: 0; color: var(--soft); font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.fact dd strong { color: var(--text); }
.fact dd .wallet-identity { display: grid; }
.state-hit { color: var(--acid) !important; }
.state-pending { color: var(--muted) !important; }
.state-error { color: var(--red) !important; }
.wallet-label { color: var(--text); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .01em; }

.track-record { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.track-stat { min-width: 0; padding: 13px 11px; border-radius: 5px; background: var(--surface-raised); }
.track-stat b { display: block; color: var(--text); font: 700 18px/1.1 var(--sans); letter-spacing: -.02em; }
.track-stat small { display: block; margin-top: 7px; color: var(--muted); font: 500 10px/1.3 var(--sans); }
.history-note { margin-top: 10px; color: var(--muted); font-size: 10px; }
.history-best { min-height: 46px; margin-top: 9px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 5px; background: var(--surface-raised); }
.history-best > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.history-best small { color: var(--muted); font-size: 10px; }
.history-best strong { color: var(--text); font-size: 11px; }
.history-best > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow: hidden; white-space: nowrap; }
.history-best > span:nth-child(2) small { overflow: hidden; text-overflow: ellipsis; }
.history-best > span:nth-child(2) strong { color: var(--acid); }
.token-cell { display: inline-flex; flex-direction: column; gap: 4px; }
.token-cell strong { color: var(--text); font-size: 10px; }
.token-cell small { color: var(--muted); font: 500 10px/1.2 var(--sans); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 10px 12px; color: var(--muted); font: 600 10px/1.2 var(--sans); text-align: left; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px; color: var(--soft); border-bottom: 1px solid rgba(32,38,45,.75); }
tr:last-child td { border-bottom: 0; }
.no-data { padding: 22px 12px; color: var(--muted); font-size: 11px; text-align: center; }

.bridge-list { display: grid; gap: 0; }
.protocol-brand { display: inline-flex; align-items: center; gap: 7px; min-width: max-content; color: var(--text); font: 700 12px/1.2 var(--sans) !important; }
.protocol-mark { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; overflow: hidden; }
.protocol-mark img { display: block; width: 24px; height: 24px; object-fit: contain; }
.protocol-mark.debridge { width: 30px; flex-basis: 30px; }
.protocol-mark.debridge img { width: 30px; height: 20px; }
.protocol-mark.relay img { width: 26px; height: 22px; }
.protocol-brand > span:last-child { font-family: var(--sans); }

.bridge-hop-card { min-width: 0; padding: 14px 0 13px; border-top: 1px solid var(--line); outline: 0; background: transparent; cursor: pointer; }
.bridge-hop-card:first-child { padding-top: 3px; border-top: 0; }
.bridge-hop-card:last-child { padding-bottom: 2px; }
.bridge-hop-card.has-label { border-left: 2px solid rgba(201,255,61,.55); padding-left: 11px; }
.bridge-hop-card:hover .bridge-evidence, .bridge-hop-card:focus-visible .bridge-evidence { color: var(--soft); }
.bridge-hop-card:focus-visible { outline: 1px solid var(--line-bright); outline-offset: 3px; }
.funding-path { min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 7px; margin: 0; overflow-x: auto; scrollbar-width: none; }
.funding-path::-webkit-scrollbar { display: none; }
.funding-via { min-width: max-content; display: flex; align-items: center; justify-content: flex-start; gap: 7px; }
.route-wallet { min-width: max-content; flex: 0 0 auto; padding: 0; background: transparent; }
.route-wallet-main { min-width: 0; display: flex; align-items: center; gap: 6px; }
.route-wallet-main > strong { min-width: 0; max-width: 190px; color: var(--text); font: 700 11px/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-wallet-main > span:not(.same-wallet) { color: var(--muted); font: 500 9px/1 var(--sans); white-space: nowrap; }
.route-wallet.labeled .route-wallet-main > strong { color: var(--acid); }
.route-wallet.destination { width: auto; }
.route-wallet-history { display: block; margin-top: 5px; color: var(--acid); font: 600 9px/1.2 var(--sans); white-space: nowrap; }
.same-wallet { color: var(--muted); font: 500 9px/1 var(--sans); white-space: nowrap; }
.funding-arrow { align-self: center; flex: 0 0 auto; color: #59636e; font-size: 14px; }
.funding-arrow.outer { color: var(--muted); }
.proxy-note { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: 10px; }
.proxy-note .copy-button { width: 20px; height: 20px; flex-basis: 20px; }
.bridge-evidence { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 0; color: var(--muted); font: 500 9px/1.35 var(--sans); }
.bridge-evidence > span { min-width: 0; white-space: nowrap; }
.bridge-evidence > span + span::before { content: "·"; margin: 0 9px; color: #3f4852; }
.bridge-evidence .hop-evidence { color: var(--acid); }
.bridge-evidence .bridge-status { color: var(--soft); text-transform: uppercase; }
.bridge-tx-detail { min-width: 0; margin-top: 9px; display: flex; align-items: center; gap: 7px; color: var(--muted); font: 500 9px/1.3 var(--sans); }
.bridge-tx-detail[hidden] { display: none; }
.bridge-tx-detail strong { min-width: 0; color: var(--soft); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.evidence-bar { margin-top: 2px; padding: 11px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-radius: 5px; background: var(--surface-raised); color: var(--muted); font: 500 10px/1.45 var(--sans); }
.evidence-bar strong { color: var(--soft); }

.technical-details { margin-top: 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(13, 16, 20, .62); overflow: hidden; }
.technical-details summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 15px; cursor: pointer; list-style: none; }
.technical-details summary::-webkit-details-marker { display: none; }
.technical-details summary span { display: flex; flex-direction: column; gap: 5px; }
.technical-details summary b { font-size: 12px; }
.technical-details summary small { color: var(--muted); font-size: 10px; }
.technical-details summary i { color: var(--muted); font-size: 18px; font-style: normal; transition: transform 150ms ease; }
.technical-details[open] summary { border-bottom: 1px solid var(--line); }
.technical-details[open] summary i { transform: rotate(180deg); }
.technical-body { display: grid; gap: 12px; padding: 14px; }
.technical-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }

.settings-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  background: var(--bg);
  box-shadow: 0 22px 70px rgba(0,0,0,.58);
  font-family: var(--sans);
}
.settings-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.settings-shell { padding: 22px; }
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.settings-head h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.dialog-close { width: 32px; height: 32px; padding: 0; font-size: 20px; }
.settings-intro { max-width: 620px; margin: 14px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-group { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.settings-group-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.settings-group-head h3 { margin: 0; font-size: 13px; }
.settings-group-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.settings-group-head > span { display: grid; place-items: center; min-width: 25px; height: 24px; padding: 0 6px; border-radius: 4px; color: var(--acid); background: rgba(201,255,61,.07); font: 650 10px/1 var(--sans); }
.blacklist-form { margin-top: 16px; }
.blacklist-form label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.settings-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.settings-input-row input {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  outline: 0;
  background: var(--bg);
  font: 500 11px/1 var(--sans);
}
.settings-input-row input:focus { border-color: rgba(201,255,61,.5); }
.settings-input-row button { min-width: 48px; padding: 0 10px; }
.form-message { display: block; min-height: 14px; margin-top: 5px; color: var(--red); font: 500 9px/1.4 var(--sans); }
.form-message.success { color: var(--acid); }
.settings-list { max-height: 290px; margin-top: 8px; display: grid; gap: 5px; overflow-y: auto; overscroll-behavior: contain; }
.settings-entry { min-width: 0; min-height: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 5px 6px 5px 9px; border-radius: 4px; background: var(--surface-raised); }
.settings-entry.ticker { grid-template-columns: minmax(0, 1fr) auto; }
.settings-wallet { min-width: 0; width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; }
.settings-entry-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); font: 500 10px/1.2 var(--sans); }
.settings-entry.ticker .settings-entry-value { color: var(--text); font-weight: 650; }
.settings-remove { min-height: 24px; padding: 0 7px; }
.settings-button:disabled, .dialog-close:disabled, .settings-input-row button:disabled, .settings-remove:disabled { opacity: .48; cursor: wait; }
.settings-empty { padding: 18px 8px; color: var(--muted); text-align: center; font-size: 10px; }

@keyframes pulse { 50% { opacity: .25; transform: scaleX(.5); } }

@media (max-width: 980px) {
  .workspace { grid-template-columns: 320px minmax(0, 1fr); min-height: 100vh; }
  .feed-panel, .dossier { height: 100vh; }
  .feed-item-shell:not(.expanded) .feed-item { padding: 10px 40px 10px 11px; }
  .feed-item-shell:not(.expanded) .feed-top { display: flex; align-items: center; gap: 8px; min-height: 28px; }
  .feed-item-shell:not(.expanded) .token-name { min-width: 50px; flex: 1 1 auto; }
  .feed-item-shell:not(.expanded) .token-name b { font-size: 12px; }
  .feed-item-shell:not(.expanded) .feed-origin,
  .feed-item-shell:not(.expanded) .feed-identities,
  .feed-item-shell:not(.expanded) .hop-banner,
  .feed-item-shell:not(.expanded) .feed-bottom,
  .feed-item-shell:not(.expanded) .feed-chart { display: none; }
  .feed-item-shell:not(.expanded) .feed-compact-signals { min-width: 0; max-width: 90px; display: flex; align-items: center; gap: 3px; overflow: hidden; white-space: nowrap; }
  .feed-item-shell:not(.expanded) .feed-compact-signals .badges { flex-wrap: nowrap; gap: 3px; }
  .feed-item-shell:not(.expanded) .feed-compact-signals .signal-icon,
  .feed-item-shell:not(.expanded) .feed-compact-signals .signal-icon img { width: 18px; height: 18px; flex-basis: 18px; }
  .feed-item-shell:not(.expanded) .feed-compact-signals .hl-signal { min-height: 18px; }
  .feed-item-shell:not(.expanded) .feed-compact-signals .hl-signal img { width: 18px; height: 18px; }
  .feed-expand { position: absolute; top: 10px; right: 8px; z-index: 3; width: 28px; height: 28px; place-items: center; padding: 0; color: var(--muted); border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
  .feed-expand:hover { color: var(--acid); background: rgba(255,255,255,.04); }
  .feed-expand span { display: block; font-size: 17px; line-height: 1; transition: transform 130ms ease; }
  .feed-item-shell.expanded .feed-expand span { transform: rotate(180deg); }
  .feed-item-shell.expanded .feed-compact-signals { display: none; }
  .dossier-head { grid-template-columns: 1fr; }
  .headline-metrics { justify-content: flex-start; }
  .headline-metrics { width: 100%; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .workspace { display: block; }
  .feed-panel { height: min(44vh, 430px); min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line-bright); }
  .feed-toolbar { min-height: 72px; display: grid; grid-template-columns: 1fr; gap: 0; padding: 0 10px; background: #0a0d11; }
  .view-tabs { height: 39px; gap: 0; border-bottom: 1px solid var(--line); }
  .global-settings-button:not([hidden]) + .workspace .view-tabs { padding-right: 38px; }
  .view-tab { flex: 1 1 0; justify-content: center; }
  .view-tab::after { right: 18px; left: 18px; }
  .filters { height: 32px; justify-content: stretch; gap: 4px; }
  .filter { flex: 1 1 0; min-height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
  .bridge-filter { gap: 4px; }
  .feed { height: auto; padding: 0; scrollbar-gutter: auto; }
  .feed-item-shell { margin: 0; border-width: 0 0 1px; border-color: var(--line); border-radius: 0; background: transparent; }
  .feed-item-shell:hover { background: rgba(255,255,255,.022); }
  .feed-item-shell.active { border-color: var(--line); border-left: 2px solid var(--acid); background: rgba(201,255,61,.035); }
  .feed-item-shell:not(.expanded) .feed-item { min-height: 48px; padding: 9px 76px 9px 12px; display: flex; align-items: center; }
  .feed-item-shell:not(.expanded) .feed-top { width: 100%; display: grid; grid-template-columns: minmax(56px, 1fr) auto auto; gap: 8px; }
  .feed-item-shell:not(.expanded) .token-name b { font-size: 12px; }
  .feed-item-shell:not(.expanded) .feed-compact-signals { max-width: 126px; gap: 5px; }
  .feed-item-shell:not(.expanded) .feed-compact-signals > .badges { display: flex; flex-wrap: nowrap; gap: 3px; }
  .compact-launch-icon { width: 18px; height: 18px; flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; }
  .compact-launch-icon img { display: block; width: 18px; height: 18px; object-fit: contain; }
  .feed-item-shell:not(.expanded) .feed-chart { display: block; top: 9px; right: 39px; bottom: auto; }
  .feed-item-shell:not(.expanded) .feed-chart .gmgn-button.compact { width: 30px; height: 30px; padding: 4px; }
  .feed-item-shell:not(.expanded) .feed-chart .gmgn-button.compact img { width: 21px; height: 21px; }
  .feed-expand { top: 9px; right: 5px; width: 30px; height: 30px; color: var(--soft); }
  .feed-item-shell.expanded { margin: 6px; border: 1px solid var(--line-bright); border-left: 2px solid var(--acid); border-radius: 5px; background: var(--panel); }
  .dossier { height: auto; min-height: 54vh; padding: 20px 14px 50px; border-top: 1px solid var(--line-bright); }
  .route { grid-template-columns: repeat(2, 1fr); }
  .route-node:nth-child(2) { border-right: 0; }
  .route-node:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .route-node:nth-child(2)::after { display: none; }
  .headline-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric { padding: 10px; }
  .metric b { font-size: 16px; }
  .intel-grid { grid-template-columns: 1fr; }
  .intel-card, .intel-card.wide, .intel-card.full { grid-column: 1; }
  .card-head-actions > span { display: none; }
  .fact, .launch-facts .fact { grid-template-columns: 1fr; gap: 5px; }
  .funding-path { gap: 6px; }
  .funding-via { gap: 5px; }
  .route-wallet.destination { width: auto; }
  .protocol-brand { gap: 4px; font-size: 10px !important; }
  .protocol-mark { width: 22px; height: 22px; flex-basis: 22px; }
  .protocol-mark img { width: 20px; height: 20px; }
  .bridge-evidence { grid-template-columns: repeat(2, minmax(0, auto)); }
  .settings-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .settings-shell { padding: 16px; }
  .settings-grid { grid-template-columns: 1fr; }
}
[hidden] {
  display: none !important;
}
