/* src/web/frontend/styles.css */
:root {
  --bg-0: #08090b;
  --bg-1: #0e1013;
  --bg-2: #14171c;
  --bg-3: #1b1f26;
  --line: #1e2229;
  --line-2: #272c35;
  --line-dim: #14181e;
  --fg: #eceef2;
  --fg-dim: #9aa0ab;
  --fg-mute: #5f6670;
  --fg-ghost: #3a404a;
  --acc: #c6f24e;
  --acc-2: #afd93d;
  --on-acc: #0a0d04;
  --acc-dim: #c6f24e24;
  --acc-glow: #c6f24e66;
  --up: #4ade80;
  --up-dim: #4ade8024;
  --down: #f87171;
  --down-dim: #f8717124;
  --warn: #f5b544;
  --warn-dim: #f5b54424;
  --info: #7ab8ff;
  --degen: #d67aff;
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --z-row-hover-card: 50;
}

* {
  box-sizing: border-box;
}

html, body {
  background: var(--bg-0);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.app-loading {
  display: flex;
  color: var(--fg-mute);
  letter-spacing: .14em;
  text-transform: uppercase;
  justify-content: center;
  align-items:  center;
  min-height: 100vh;
  font-family: Geist Mono, ui-monospace, monospace;
  font-size: 11px;
}

.token-avatar {
  display: inline-flex;
  color: var(--bg-0);
  letter-spacing: -.02em;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  font-family: Geist Mono, monospace;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 3px;
  align-items:  center;
  height: 20px;
  padding: 0 6px;
  font-family: Geist Mono, monospace;
  font-size: 10.5px;
  font-weight: 500;
}

.badge-neutral {
  background: var(--bg-2);
  color: var(--fg-dim);
  border: 1px solid var(--line);
}

.badge-acc {
  background: var(--acc-dim);
  color: var(--acc);
}

.badge-up {
  background: var(--up-dim);
  color: var(--up);
}

.badge-down {
  background: var(--down-dim);
  color: var(--down);
}

.badge-warn {
  background: var(--warn-dim);
  color: var(--warn);
}

.badge-info {
  color: var(--info);
  background: #7ab8ff24;
}

.badge-degen {
  color: var(--degen);
  background: #d67aff24;
}

.badge-live {
  background: var(--up-dim);
  color: var(--up);
  gap: 5px;
}

.badge-live:before {
  content: "";
  background: var(--up);
  animation: badge-live-pulse 1.6s ease-in-out infinite;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

@keyframes badge-live-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 216px;
  padding: 16px 12px;
}

.brand {
  display: flex;
  align-items:  center;
  gap: 10px;
  margin-bottom: 14px;
}

.brand-mark {
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  box-shadow: 0 0 12px var(--acc-glow);
  width: 28px;
  height: 28px;
}

.brand-name {
  letter-spacing: -.01em;
  font-size: 14px;
  font-weight: 500;
}

.brand-sub {
  color: var(--fg-mute);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: Geist Mono, monospace;
  font-size: 10px;
}

.nav-eyebrow {
  color: var(--fg-mute);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 10px 6px 4px;
  font-family: Geist Mono, monospace;
  font-size: 10px;
}

.nav-item {
  color: var(--fg-dim);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 6px 10px;
  font-size: 13px;
}

.nav-item:hover {
  background: var(--bg-2);
  color: var(--fg);
}

.nav-item-active {
  color: var(--fg);
  background: var(--acc-dim);
  border-left: 1.5px solid var(--acc);
  padding-left: 8.5px;
}

.sidebar-footer {
  display: flex;
  border-top: 1px solid var(--line-dim);
  color: var(--fg-mute);
  align-items:  center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-family: Geist Mono, monospace;
  font-size: 10px;
}

.rpc-dot {
  background: var(--up);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.rpc-label {
  letter-spacing: .08em;
  text-transform: uppercase;
}

.main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg-0);
  display: flex;
  align-items:  center;
  gap: 12px;
  height: 56px;
  padding: 0 20px;
}

.topbar-greet {
  font-size: 14px;
}

.topbar-spacer {
  flex: 1;
}

.topbar-sol {
  color: var(--fg-dim);
  font-family: Geist Mono, monospace;
  font-size: 12px;
}

.topbar-logout {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg-dim);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 6px 12px;
  font-family: Geist Mono, monospace;
  font-size: 12px;
}

.topbar-logout:hover {
  color: var(--fg);
  background: var(--bg-3);
}

.body {
  display: flex;
  overflow: auto;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 20px;
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-hdr {
  display: flex;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items:  center;
  min-height: 42px;
  padding: 10px 12px;
}

.card-title {
  letter-spacing: -.005em;
  font-size: 12.5px;
  font-weight: 500;
}

.card-meta {
  color: var(--fg-mute);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: Geist Mono, monospace;
  font-size: 10px;
}

.card-body {
  flex: 1;
  padding: 10px 12px;
}

.card-footer {
  border-top: 1px solid var(--line);
  color: var(--fg-mute);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 12px;
  font-family: Geist Mono, monospace;
  font-size: 10px;
}

.empty-state {
  text-align: center;
  padding: 40px 12px;
}

.empty-label {
  color: var(--fg-ghost);
  font-size: 12px;
  font-style: italic;
}

.empty-sub {
  color: var(--fg-mute);
  margin-top: 4px;
  font-size: 11px;
}

.login-page {
  display: flex;
  justify-content: center;
  align-items:  center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 380px;
  padding: 32px;
}

.login-brand {
  display: flex;
  align-items:  center;
  gap: 12px;
}

.login-title {
  letter-spacing: -.01em;
  font-size: 18px;
  font-weight: 500;
}

.login-sub {
  color: var(--fg-mute);
  margin-top: 2px;
  font-size: 12px;
}

.login-hint {
  color: var(--fg-mute);
  font-size: 11px;
  line-height: 1.5;
}

.login-button {
  display: flex;
  background: var(--acc);
  color: var(--on-acc);
  border: 1px solid var(--acc);
  border-radius: var(--r-md);
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 16px var(--acc-glow);
  justify-content: center;
  align-items:  center;
  width: 100%;
  padding: 12px 16px;
  transition: background .12s, box-shadow .12s;
  font-size: 13px;
  font-weight: 600;
}

.login-button:hover {
  background: var(--acc-2);
  border-color: var(--acc-2);
}

.login-button:active {
  box-shadow: none;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  min-height: 220px;
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
  min-height: 220px;
}

.grid-2 {
  grid-template-columns: 1.2fr 1fr;
  min-height: 140px;
}

.tweaks {
  position: fixed;
  z-index: 100;
  bottom: 20px;
  right: 20px;
}

.tweaks-toggle {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg-dim);
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.tweaks-toggle:hover {
  background: var(--bg-3);
  color: var(--fg);
}

.tweaks-panel {
  position: absolute;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 260px;
  padding: 16px;
  bottom: 50px;
  right: 0;
}

.tweaks-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tweaks-label {
  color: var(--fg-mute);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: Geist Mono, monospace;
  font-size: 10px;
}

.tweaks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tweaks-pill {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 4px 8px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.tweaks-pill:hover {
  color: var(--fg);
}

.tweaks-pill-active {
  color: var(--on-acc);
  background: var(--acc);
  border-color: var(--acc);
}

html.accent-mint {
  --acc: #4ade80;
  --acc-2: #3bbf6b;
  --acc-dim: #4ade8024;
  --acc-glow: #4ade8066;
  --on-acc: #02150a;
}

html.accent-cyber {
  --acc: #7ab8ff;
  --acc-2: #5ba0eb;
  --acc-dim: #7ab8ff24;
  --acc-glow: #7ab8ff66;
  --on-acc: #061024;
}

html.accent-amber {
  --acc: #f5b544;
  --acc-2: #d99a2f;
  --acc-dim: #f5b54424;
  --acc-glow: #f5b54466;
  --on-acc: #1a1205;
}

html.accent-violet {
  --acc: #d67aff;
  --acc-2: #b85de0;
  --acc-dim: #d67aff24;
  --acc-glow: #d67aff66;
  --on-acc: #180a20;
}

html.density-compact .body {
  gap: 8px;
  padding: 12px;
}

html.density-comfy .body {
  gap: 20px;
  padding: 28px;
}

.tg-calls-list {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
}

.tg-calls-banner {
  background: var(--acc-dim);
  color: var(--acc);
  border-radius: var(--r-sm);
  letter-spacing: .04em;
  margin-bottom: 6px;
  padding: 6px 10px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.tg-calls-error {
  background: var(--down-dim);
  color: var(--down);
  border-left: 2px solid var(--down);
  border-radius: var(--r-sm);
  margin-bottom: 6px;
  padding: 6px 10px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.tg-call-row {
  display: flex;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: pointer;
  justify-content: space-between;
  align-items:  center;
  padding: 8px 10px;
  transition: background .1s, border-color .1s;
}

.tg-call-row:hover {
  background: var(--bg-3);
  border-color: var(--line-2);
}

.tg-call-row-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.tg-call-token {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tg-call-symbol {
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}

.tg-call-name {
  color: var(--fg-dim);
  font-size: 11px;
}

.tg-call-meta {
  display: flex;
  color: var(--fg-mute);
  flex-wrap: wrap;
  gap: 8px;
  font-family: Geist Mono, monospace;
  font-size: 10.5px;
}

.tg-call-snapshot-age {
  opacity: .75;
}

.tg-call-callers {
  color: var(--fg-dim);
}

.tg-call-row-actions {
  display: flex;
  align-items:  center;
  gap: 4px;
}

.tg-call-icon {
  display: inline-flex;
  color: var(--fg-dim);
  cursor: pointer;
  border-radius: var(--r-xs);
  text-decoration: none;
  background: none;
  border: none;
  justify-content: center;
  align-items:  center;
  width: 24px;
  height: 24px;
  transition: background .1s, color .1s;
  font-size: 13px;
}

.tg-call-icon:hover {
  background: var(--bg-3);
  color: var(--fg);
}

.tracked-sources-row-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trigger-scope-badge {
  display: inline-flex;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  align-self:  flex-start;
  align-items:  center;
  height: 16px;
  margin-left: 10px;
  padding: 0 6px;
  font-family: Geist Mono, monospace;
  font-size: 9.5px;
  font-weight: 600;
}

.trigger-scope-badge--tuple {
  color: var(--acc);
  background: #c6f24e24;
}

.trigger-scope-badge--caller {
  color: var(--info);
  background: #7ab8ff24;
}

.trigger-scope-badge--group {
  color: var(--degen);
  background: #d67aff24;
}

.signal-source-pills {
  display: inline-flex;
  align-items:  center;
  gap: 4px;
}

.signal-source-pill {
  display: inline-flex;
  border-radius: var(--r-xs);
  background: var(--bg-3);
  color: var(--fg-dim);
  justify-content: center;
  align-items:  center;
  width: 18px;
  height: 18px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
  font-weight: 600;
}

.signal-source-pill[data-kind="telegram"] {
  color: var(--info);
  background: #7ab8ff24;
}

.signal-source-pill[data-kind="discord"] {
  color: #8a93ff;
  background: #7ab8ff1a;
}

.signal-source-pill[data-kind="x"] {
  background: var(--bg-3);
  color: var(--fg);
}

.signal-source-pill[data-kind="trade"] {
  background: var(--acc-dim);
  color: var(--acc);
}

.migrating-dest-badge {
  display: inline-flex;
  background: var(--acc-dim);
  color: var(--acc);
  border-radius: var(--r-md);
  align-items:  center;
  padding: 2px 8px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
  font-weight: 600;
}

.migrating-metadata-pending {
  display: inline-flex;
  background: var(--bg-3);
  color: var(--fg-mute);
  border-radius: var(--r-xs);
  align-items:  center;
  padding: 1px 6px;
  font-family: Geist Mono, monospace;
  font-size: 10px;
}

.topbar-search {
  flex: 1;
  max-width: 480px;
  margin: 0 16px;
}

.topbar-search-input {
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 100%;
  padding: 6px 10px;
  font-family: Geist Mono, monospace;
  font-size: 12px;
}

.topbar-search-input:focus {
  outline: 1px solid var(--acc);
}

.topbar-search-input.err {
  border-color: var(--down);
  outline-color: var(--down);
}

.scanner-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}

.scanner-page-error {
  text-align: center;
  padding: 64px 16px;
}

.scanner-error-msg {
  color: var(--down);
  font-family: Geist Mono, monospace;
}

.scanner-section-error-msg {
  color: var(--down);
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.scanner-header {
  display: flex;
  border-bottom: 1px solid var(--line);
  align-items:  center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
}

.scanner-back {
  color: var(--fg);
  cursor: pointer;
  border-radius: var(--r-sm);
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 18px;
}

.scanner-back:hover {
  background: var(--bg-2);
}

.scanner-header-title {
  display: flex;
  flex-direction: column;
}

.scanner-header-name {
  color: var(--fg-dim);
  font-size: 12px;
}

.scanner-header-ca {
  color: var(--fg-dim);
  margin-left: auto;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.scanner-refresh {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg-dim);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 4px 12px;
  font-family: Geist Mono, monospace;
  font-size: 12px;
}

.scanner-refresh:hover {
  color: var(--fg);
  background: var(--bg-3);
}

.scanner-refresh:disabled {
  opacity: .5;
  cursor: default;
}

.scanner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (width <= 900px) {
  .scanner-grid {
    grid-template-columns: 1fr;
  }
}

.scanner-section {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
}

.scanner-section-error {
  border-color: #f8717166;
}

.scanner-section-title {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.scanner-section-body {
  font-size: 12px;
}

.scanner-raw {
  background: var(--bg-2);
  border-radius: var(--r-xs);
  overflow: auto;
  white-space: pre-wrap;
  max-height: 300px;
  margin: 0;
  padding: 8px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.section-skeleton .skeleton-line {
  background: var(--bg-2);
  border-radius: var(--r-xs);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  height: 12px;
  margin-bottom: 6px;
}

.section-skeleton .skeleton-line.short {
  width: 60%;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: .4;
  }

  50% {
    opacity: .8;
  }
}

.cached-badge, .stale-badge, .refreshing-badge {
  border-radius: var(--r-xs);
  padding: 2px 6px;
  font-family: Geist Mono, monospace;
  font-size: 10px;
  font-weight: normal;
}

.cached-badge {
  background: var(--up-dim);
  color: var(--up);
}

.stale-badge {
  background: var(--warn-dim);
  color: var(--warn);
}

.refreshing-badge {
  color: var(--info);
  background: #7ab8ff26;
}

.token-section-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.token-section-header {
  display: flex;
  align-items:  center;
  gap: 10px;
}

.token-section-name-block {
  display: flex;
  flex-direction: column;
}

.token-section-symbol {
  font-size: 15px;
  font-weight: 700;
}

.token-section-name {
  color: var(--fg-dim);
  font-size: 11px;
}

.token-section-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.token-section-row {
  display: flex;
  border-bottom: 1px solid var(--line-dim);
  justify-content: space-between;
  align-items:  center;
  padding: 4px 0;
}

.token-section-row:last-child {
  border-bottom: none;
}

.token-section-label {
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: Geist Mono, monospace;
  font-size: 10.5px;
}

.token-section-value {
  color: var(--fg);
  font-family: Geist Mono, monospace;
  font-size: 12px;
}

.token-partial {
  color: var(--warn);
  margin-left: 4px;
  font-size: 10px;
}

.dex-paid-row {
  display: flex;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  align-items:  flex-start;
  gap: 8px;
  padding: 8px;
}

.dex-paid-row:hover {
  background: var(--bg-2);
}

.dex-paid-row__logo {
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.dex-paid-row__logo--placeholder {
  display: flex;
  justify-content: center;
  align-items:  center;
}

.dex-paid-row__body {
  flex: 1;
  min-width: 0;
}

.dex-paid-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.dex-paid-row__sym {
  font-weight: 600;
}

.dex-paid-row__name {
  color: var(--fg-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.dex-paid-row__desc {
  color: var(--fg-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 11px;
}

.dex-paid-row__socials {
  display: flex;
  align-items:  center;
  gap: 4px;
  margin-top: 4px;
}

.dex-paid-row__overflow {
  color: var(--fg-dim);
  font-size: 10px;
}

.dex-paid-row__right {
  text-align: right;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  font-size: 11px;
}

.dex-paid-row__price {
  color: var(--fg);
}

.dex-paid-row__mcap, .dex-paid-row__age {
  color: var(--fg-dim);
}

.dex-paid-kind-badge {
  letter-spacing: .05em;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 600;
}

.dex-paid-kind-badge--profile {
  color: #4ade80;
  background: #4ade8026;
}

.dex-paid-kind-badge--cto {
  color: #f59e0b;
  background: #f59e0b26;
}

.social-icon {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 20px;
}

.social-icon:hover {
  background: var(--bg-2);
}

.row-hover-trigger {
  display: block;
}

.row-hover-card {
  z-index: var(--z-row-hover-card);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-y: auto;
  pointer-events: auto;
  width: 360px;
  max-width: 95vw;
  padding: 12px;
  font-size: 12px;
  box-shadow: 0 8px 24px #0009;
}

.row-hover-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row-hover-card-banner {
  color: #f59e0b;
  border-radius: var(--r-xs);
  background: #f59e0b1a;
  padding: 4px 8px;
  font-size: 11px;
  font-style: italic;
}

.row-hover-card-banner-link {
  color: #f59e0b;
  text-underline-offset: 2px;
}

.row-hover-card-hero {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.row-hover-card-icon {
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.row-hover-card-icon--placeholder {
  display: inline-flex;
  background: var(--bg-3);
  color: var(--fg-dim);
  justify-content: center;
  align-items:  center;
  font-family: Geist Mono, monospace;
  font-size: 10px;
  font-weight: 600;
}

.row-hover-card-hero-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.row-hover-card-symbol {
  font-size: 14px;
  font-weight: 700;
}

.row-hover-card-name {
  color: var(--fg-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.row-hover-card-chain {
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: Geist Mono, monospace;
  font-size: 10px;
}

.row-hover-card-dex-link {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 13px;
}

.row-hover-card-dex-link:hover {
  color: var(--fg);
}

.row-hover-card-market {
  display: flex;
  color: var(--fg-dim);
  flex-wrap: wrap;
  align-items:  center;
  gap: 4px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.row-hover-card-sep {
  color: var(--fg-ghost);
}

.row-hover-card-divider {
  border: none;
  border-top: 1px solid var(--line-dim);
  margin: 0;
}

.row-hover-card-desc {
  color: var(--fg-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  overflow: hidden;
  -webkit-box-orient: vertical;
  font-size: 11px;
}

.row-hover-card-socials {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 4px;
}

.row-hover-source-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.row-hover-source-label {
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2px;
  font-family: Geist Mono, monospace;
  font-size: 10px;
}

.row-hover-source-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
}

.row-hover-source-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
}

.row-hover-source-icon {
  font-size: 12px;
}

.row-hover-source-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg);
  flex: 1;
}

.row-hover-source-meta {
  color: var(--fg-dim);
  white-space: nowrap;
}

.row-hover-source-age {
  color: var(--fg-mute);
  white-space: nowrap;
}

.row-hover-source-empty {
  color: var(--fg-mute);
  font-size: 11px;
  font-style: italic;
}

.row-hover-source-link {
  color: var(--info);
  text-underline-offset: 2px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.row-hover-source-copy-btn {
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--fg-dim);
  cursor: pointer;
  background: none;
  padding: 1px 4px;
  font-size: 11px;
}

.row-hover-source-copy-btn:hover {
  color: var(--fg);
  background: var(--bg-2);
}

.row-hover-source-kind {
  letter-spacing: .04em;
  border-radius: var(--r-xs);
  padding: 1px 5px;
  font-family: Geist Mono, monospace;
  font-size: 10px;
  font-weight: 600;
}

.row-hover-source-kind--profile {
  color: #4ade80;
  background: #4ade8026;
}

.row-hover-source-kind--cto {
  color: #f59e0b;
  background: #f59e0b26;
}

.row-hover-card-history-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.row-hover-history-skel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}

.row-hover-history-skel div {
  background: var(--bg-2);
  border-radius: var(--r-xs);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  height: 8px;
}

.row-hover-history-skel div:nth-child(2) {
  width: 80%;
}

.row-hover-history-skel div:nth-child(3) {
  width: 60%;
}

.row-hover-history-empty, .row-hover-history-error {
  color: var(--fg-dim);
  font-size: 11px;
  font-style: italic;
}

.row-hover-history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
}

.row-hover-history-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
}

.row-hover-history-type {
  white-space: nowrap;
  min-width: 64px;
  font-weight: 600;
}

.row-hover-history-item--tg_call .row-hover-history-type {
  color: #4ade80;
}

.row-hover-history-item--signal .row-hover-history-type {
  color: #60a5fa;
}

.row-hover-history-item--migrating .row-hover-history-type {
  color: #f59e0b;
}

.row-hover-history-item--dex_paid .row-hover-history-type {
  color: #c084fc;
}

.row-hover-history-summary {
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.row-hover-history-age {
  color: var(--fg-mute);
  white-space: nowrap;
}

.row-hover-history-truncated {
  color: var(--fg-ghost);
  list-style: none;
  font-size: 10px;
  font-style: italic;
}

.row-hover-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
}

.row-hover-card-action-btn {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg-dim);
  border-radius: var(--r-xs);
  cursor: pointer;
  padding: 4px 8px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.row-hover-card-action-btn:hover {
  color: var(--fg);
  background: var(--bg-3);
}

.row-hover-card-action-link {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg-dim);
  border-radius: var(--r-xs);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  padding: 4px 8px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.row-hover-card-action-link:hover {
  color: var(--fg);
  background: var(--bg-3);
}

@media (hover: none) {
  .row-hover-card {
    position: fixed !important;
    border-radius: 12px 12px 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 70vh !important;
    inset: auto 0 0 !important;
    transform: none !important;
  }

  .row-hover-card-backdrop {
    position: fixed;
    z-index: calc(var(--z-row-hover-card)  - 1);
    background: #00000080;
    inset: 0;
  }
}

.row-hover-info-btn {
  color: var(--fg-dim);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 14px;
}

.row-hover-info-btn:hover {
  color: var(--fg);
}

.row-hover-card-close {
  position: absolute;
  color: var(--fg-dim);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 18px;
  line-height: 1;
  top: 8px;
  right: 8px;
}

.row-hover-card-close:hover {
  color: var(--fg);
}

.sources-table-v2-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sources-table-v2__scroll {
  overflow: auto;
  position: relative;
  flex: 1;
  min-height: 0;
}

.sources-table-v2--loading, .sources-table-v2--error, .sources-table-v2--empty {
  color: var(--fg-mute);
  padding: 24px;
  font-size: 13px;
}

.sources-table-v2--error {
  color: var(--down);
}

.sources-table-v2 {
  border-collapse: collapse;
  color: var(--fg);
  width: 100%;
  font-size: 13px;
}

.sources-table-v2 thead {
  position: sticky;
  z-index: 1;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  top: 0;
}

.sources-table-v2 thead th {
  text-align: left;
  color: var(--fg-mute);
  user-select: none;
  position: relative;
  padding: 8px 12px;
  font-weight: 500;
}

.sources-table-v2 thead th[aria-sort="ascending"]:after {
  content: " ▲";
}

.sources-table-v2 thead th[aria-sort="descending"]:after {
  content: " ▼";
}

.sources-table-v2__sortable {
  cursor: pointer;
}

.sources-table-v2__sortable:hover {
  color: var(--fg);
}

.sources-table-v2__resize-handle {
  position: absolute;
  cursor: col-resize;
  user-select: none;
  width: 4px;
  top: 0;
  bottom: 0;
  right: 0;
}

.sources-table-v2__resize-handle:hover {
  background: var(--line-2);
}

.sources-table-v2 tbody {
  overflow-y: auto;
}

.sources-table-v2 tbody tr {
  cursor: pointer;
  transition: background-color .1s;
}

.sources-table-v2 tbody tr:hover {
  background: var(--bg-2);
}

.sources-table-v2 tbody tr[aria-selected="true"], .sources-table-v2 tbody tr.sources-table-v2__row--selected {
  background: var(--acc-dim);
  outline: 1px solid var(--acc);
  outline-offset: -1px;
}

.sources-table-v2 tbody tr.sources-table-v2__row--checked {
  background: #c6f24e0f;
}

.sources-table-v2 td {
  align-items:  center;
  padding: 8px 12px;
}

.sources-row-checkbox {
  display: inline-flex;
  cursor: pointer;
  align-items:  center;
}

.sources-row-checkbox__input {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  width: 1px;
  height: 1px;
}

.sources-row-checkbox__visual {
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  border-radius: var(--r-xs);
  display: inline-flex;
  justify-content: center;
  align-items:  center;
  width: 14px;
  height: 14px;
  transition: background .1s, border-color .1s;
}

.sources-row-checkbox__input:checked + .sources-row-checkbox__visual {
  background: var(--acc);
  border-color: var(--acc);
}

.sources-row-checkbox__input:checked + .sources-row-checkbox__visual:after {
  content: "";
  display: block;
  border-left: 2px solid var(--bg-0);
  border-bottom: 2px solid var(--bg-0);
  width: 8px;
  height: 5px;
  transform: rotate(-45deg)translateY(-1px);
}

.sources-row-checkbox__input:focus-visible + .sources-row-checkbox__visual {
  outline: 2px solid var(--acc);
  outline-offset: 1px;
}

.sources-status-badge {
  display: inline-block;
  border-radius: var(--r-xs);
  letter-spacing: .04em;
  text-transform: lowercase;
  padding: 2px 6px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
  font-weight: 500;
}

.sources-status-badge--default {
  background: var(--bg-2);
  color: var(--fg-dim);
  border: 1px solid var(--line-2);
}

.sources-status-badge--whitelist {
  background: var(--up-dim);
  color: var(--up);
  border: 1px solid #4ade8040;
}

.sources-status-badge--blacklist {
  background: var(--down-dim);
  color: var(--down);
  border: 1px solid #f8717140;
}

@keyframes sources-error-flash {
  0% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.sources-status-badge--error {
  background: var(--warn-dim);
  color: var(--warn);
  animation: sources-error-flash 2s ease forwards;
  border: 1px solid #f5b54440;
}

.sources-quick-actions {
  display: flex;
  opacity: 0;
  pointer-events: none;
  gap: 4px;
  transition: opacity .1s;
}

.sources-table-v2 tbody tr:hover .sources-quick-actions, .sources-table-v2 tbody tr:focus-within .sources-quick-actions {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .sources-quick-actions {
    opacity: 1;
    pointer-events: auto;
  }
}

.sources-quick-actions__btn {
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--fg-dim);
  cursor: pointer;
  padding: 2px 6px;
  transition: background .1s, color .1s, border-color .1s;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.sources-quick-actions__btn:hover:not(:disabled) {
  background: var(--bg-3);
  color: var(--fg);
}

.sources-quick-actions__btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.sources-quick-actions__btn--whitelist:hover:not(:disabled) {
  background: var(--up-dim);
  color: var(--up);
  border-color: #4ade8040;
}

.sources-quick-actions__btn--blacklist:hover:not(:disabled) {
  background: var(--down-dim);
  color: var(--down);
  border-color: #f8717140;
}

.sources-quick-actions__btn--default:hover:not(:disabled) {
  background: var(--bg-3);
  color: var(--fg-dim);
}

.sources-table-v2__footer {
  display: flex;
  border-top: 1px solid var(--line);
  color: var(--fg-mute);
  flex-shrink: 0;
  align-items:  center;
  gap: 12px;
  padding: 8px 12px;
  font-size: 12px;
}

.sources-table-v2__footer-hint {
  color: var(--acc);
  font-size: 11px;
}

.sources-table-v2__footer-spacer {
  flex: 1;
}

.sources-table-v2__footer button {
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--fg-dim);
  cursor: pointer;
  padding: 3px 8px;
  transition: background .1s, color .1s;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.sources-table-v2__footer button:hover:not(:disabled) {
  background: var(--bg-3);
  color: var(--fg);
}

.sources-table-v2__footer button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.sources-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 0;
  padding: 22px 28px;
}

.sources-page__header {
  display: flex;
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
}

.sources-page__header h1 {
  letter-spacing: .04em;
  color: var(--fg);
  margin: 0;
  font-family: Geist Mono, monospace;
  font-size: 20px;
  font-weight: 600;
}

.sources-page__subtitle {
  color: var(--fg-mute);
  letter-spacing: .02em;
  margin: 0;
  font-size: 12px;
}

.sources-page-forbidden {
  color: var(--fg-mute);
  padding: 40px;
  font-style: italic;
}

.sources-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 4px;
  padding-bottom: 0;
}

.sources-tabs__tab, .sources-tab {
  color: var(--fg-mute);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  padding: 8px 14px;
  transition: color .1s, border-color .1s;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.sources-tabs__tab:hover, .sources-tab:hover {
  color: var(--fg-dim);
}

.sources-tabs__tab[aria-selected="true"], .sources-tab--active {
  color: var(--acc);
  border-bottom-color: var(--acc);
}

.sources-tab-layout {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  flex: 1;
  gap: 16px;
  min-height: 0;
}

.sources-tab-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

.sources-filter-sidebar {
  display: flex;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-y: auto;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 14px;
}

.sources-filter-sidebar fieldset {
  display: flex;
  border: none;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.sources-filter-sidebar legend {
  color: var(--fg-mute);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 2px;
  padding: 0;
  font-family: Geist Mono, monospace;
  font-size: 10px;
}

.sources-filter-checkbox {
  display: flex;
  color: var(--fg-dim);
  cursor: pointer;
  border-radius: var(--r-xs);
  align-items:  center;
  gap: 8px;
  padding: 3px 4px;
  transition: background 80ms, color 80ms;
  font-size: 12px;
}

.sources-filter-checkbox:hover {
  color: var(--fg);
  background: var(--bg-2);
}

.sources-filter-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  display: inline-flex;
  cursor: pointer;
  border-radius: 2px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 13px;
  height: 13px;
  margin: 0;
  transition: background 80ms, border-color 80ms;
}

.sources-filter-checkbox input[type="checkbox"]:checked {
  background: var(--acc);
  border-color: var(--acc);
}

.sources-filter-checkbox input[type="checkbox"]:checked:after {
  content: "✓";
  color: var(--on-acc);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.sources-filter-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 1px;
}

.sources-filter-sidebar input[type="text"], .sources-filter-sidebar input[type="search"], .sources-filter-sidebar select {
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  outline: none;
  padding: 6px 8px;
  transition: border-color 80ms;
  font-family: Geist Mono, monospace;
  font-size: 12px;
}

.sources-filter-sidebar input[type="text"]:focus, .sources-filter-sidebar input[type="search"]:focus, .sources-filter-sidebar select:focus {
  border-color: var(--acc);
}

.sources-filter-sidebar input[type="text"]::placeholder {
  color: var(--fg-ghost);
}

.sources-filter-clear {
  background: var(--bg-2);
  color: var(--fg-dim);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  letter-spacing: .04em;
  cursor: pointer;
  margin-top: 4px;
  padding: 6px 10px;
  transition: background 80ms, color 80ms;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.sources-filter-clear:hover {
  background: var(--bg-3);
  color: var(--fg);
}

.sources-bulk-toolbar {
  display: flex;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fg-dim);
  align-items:  center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
}

.sources-bulk-toolbar__count {
  color: var(--fg);
  font-weight: 500;
}

.sources-bulk-toolbar__status-select, .sources-bulk-toolbar__priority-input {
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  padding: 4px 8px;
  font-family: Geist Mono, monospace;
  font-size: 12px;
}

.sources-bulk-toolbar__priority-input {
  width: 80px;
}

.sources-bulk-toolbar__apply-btn, .sources-bulk-toolbar__clear-btn, .sources-bulk-toolbar__confirm-ok-btn, .sources-bulk-toolbar__confirm-cancel-btn {
  background: var(--bg-2);
  color: var(--fg-dim);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  cursor: pointer;
  padding: 4px 10px;
  transition: background 80ms, color 80ms;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.sources-bulk-toolbar__apply-btn:hover, .sources-bulk-toolbar__confirm-ok-btn:hover {
  background: var(--acc-dim);
  color: var(--acc);
}

.sources-bulk-toolbar__clear-btn:hover, .sources-bulk-toolbar__confirm-cancel-btn:hover {
  background: var(--bg-3);
  color: var(--fg);
}

.sources-bulk-toolbar__error {
  color: var(--down);
  font-size: 11px;
}

.sources-bulk-toolbar__confirm {
  position: absolute;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  z-index: 10;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  box-shadow: 0 4px 24px #0009;
}

.sources-detail-panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-y: auto;
  display: flex;
  color: var(--fg-dim);
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 14px;
  font-size: 12px;
}

.sources-detail-panel--empty, .sources-detail-panel--loading, .sources-detail-panel--error {
  text-align: center;
  color: var(--fg-mute);
  justify-content: center;
  align-items:  center;
  font-style: italic;
}

.sources-detail-panel--error {
  color: var(--down);
}

.sources-detail-panel__header h2 {
  letter-spacing: .06em;
  color: var(--fg);
  text-transform: uppercase;
  margin: 0;
  font-family: Geist Mono, monospace;
  font-size: 13px;
  font-weight: 600;
}

.sources-detail-panel__id {
  color: var(--fg-mute);
}

.sources-detail-panel pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--fg-dim);
  overflow-x: auto;
  margin: 0;
  padding: 8px;
  font-size: 11px;
}

.sources-detail-panel h3 {
  color: var(--fg-mute);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
  font-family: Geist Mono, monospace;
  font-size: 10px;
  font-weight: 500;
}

.sources-detail-panel label {
  display: flex;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}

.sources-detail-panel input, .sources-detail-panel textarea, .sources-detail-panel select {
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  text-transform: none;
  letter-spacing: 0;
  outline: none;
  padding: 6px 8px;
  font-family: Geist Mono, monospace;
  font-size: 12px;
}

.sources-detail-panel input:focus, .sources-detail-panel textarea:focus, .sources-detail-panel select:focus {
  border-color: var(--acc);
}

.sources-detail-panel textarea {
  resize: vertical;
  min-height: 60px;
}

.sources-detail-panel button {
  background: var(--acc);
  color: var(--on-acc);
  border: 1px solid var(--acc);
  border-radius: var(--r-xs);
  letter-spacing: .04em;
  cursor: pointer;
  align-self:  flex-start;
  padding: 6px 12px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
  font-weight: 600;
}

.sources-detail-panel button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.sources-detail-panel button:hover:not(:disabled) {
  background: var(--acc-2);
}

.sources-detail-panel__counters-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.sources-detail-panel__counter-row {
  display: flex;
  color: var(--fg-dim);
  justify-content: space-between;
  font-size: 11px;
}

.sources-detail-panel__fires-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.sources-detail-panel__fire-item {
  display: flex;
  border-bottom: 1px solid var(--line-dim);
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
  font-size: 11px;
}

.sources-detail-panel__fire-time {
  color: var(--fg-mute);
}

.sources-detail-panel__fire-link {
  color: var(--info);
  text-decoration: none;
}

.sources-detail-panel__fire-link:hover {
  text-decoration: underline;
}

.sources-status-badge {
  display: inline-flex;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  align-items:  center;
  padding: 2px 9px;
  font-family: Geist Mono, monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
}

.streams-page {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 12px 16px;
}

.streams-header {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 12px;
}

.streams-header h1 {
  color: var(--fg);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.streams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  flex: 1;
  gap: 12px;
  min-height: 0;
}

.stream-column {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-1);
  overflow: hidden;
  position: relative;
  flex-direction: column;
  min-height: 0;
}

.stream-column-header {
  display: flex;
  border-bottom: 1px solid var(--line);
  flex-flow: wrap;
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  padding: 8px 10px;
}

.stream-column-header select {
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex: 1;
  min-width: 0;
  padding: 3px 6px;
  font-family: inherit;
  font-size: 12px;
}

.stream-column-header label {
  display: flex;
  color: var(--fg-dim);
  white-space: nowrap;
  cursor: pointer;
  align-items:  center;
  gap: 4px;
  font-size: 11px;
}

.stream-column-header input[type="checkbox"]:disabled + * {
  opacity: .4;
}

.stream-column-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 4px 0;
}

.stream-column-empty {
  display: flex;
  color: var(--fg-mute);
  justify-content: center;
  align-items:  center;
  height: 100%;
  min-height: 80px;
  font-size: 12px;
}

.stream-column-footer {
  display: flex;
  border-top: 1px solid var(--line);
  color: var(--fg-mute);
  flex-shrink: 0;
  align-items:  center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
}

.stream-column-resume-button {
  position: absolute;
  background: var(--acc);
  color: var(--on-acc);
  letter-spacing: .04em;
  cursor: pointer;
  z-index: 10;
  white-space: nowrap;
  border: none;
  border-radius: 999px;
  padding: 5px 14px;
  transition: background .1s;
  font-family: Geist Mono, monospace;
  font-size: 11px;
  font-weight: 600;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px #00000080;
}

.stream-column-resume-button:hover {
  background: var(--acc-2);
}

.stream-row {
  display: flex;
  border-bottom: 1px solid var(--line-dim);
  flex-direction: row;
  gap: 8px;
  padding: 6px 10px;
}

.stream-row:last-child {
  border-bottom: none;
}

.stream-row-avatar {
  background: var(--bg-3);
  color: var(--fg-dim);
  display: flex;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 600;
}

.stream-row-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.stream-row-meta {
  display: flex;
  flex-flow: wrap;
  align-items: baseline;
  gap: 5px;
}

.stream-row-author {
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
}

.verified-tick {
  color: var(--info);
  font-size: 10px;
}

.stream-row-time {
  color: var(--fg-mute);
  margin-left: auto;
  font-size: 10px;
}

.stream-row-content {
  color: var(--fg-dim);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.4;
}

.stream-row-tokens {
  display: flex;
  flex-flow: wrap;
  gap: 4px;
  margin-top: 2px;
}

.streams-token-chip {
  display: inline-flex;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--acc);
  cursor: pointer;
  border-radius: 999px;
  align-items:  center;
  padding: 2px 7px;
  transition: background .1s, border-color .1s;
  font-family: Geist Mono, monospace;
  font-size: 10px;
  line-height: 1.5;
}

.streams-token-chip:hover {
  background: var(--acc-dim);
  border-color: var(--acc);
}

.streams-save-indicator {
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  padding: 2px 8px;
  font-family: Geist Mono, monospace;
  font-size: 11px;
}

.streams-save-indicator.state-idle {
  color: var(--fg-mute);
}

.streams-save-indicator.state-saving {
  color: var(--warn);
  border-color: var(--warn);
}

.streams-save-indicator.state-saved {
  color: var(--up);
  border-color: var(--up);
}

.streams-save-indicator.state-error {
  color: var(--down);
  border-color: var(--down);
}

.stream-column-footer .live-dot {
  display: inline-block;
  background: var(--fg-ghost);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.streams-mobile-gate {
  display: none;
}

@media (width <= 900px) {
  .streams-page {
    display: none;
  }

  .streams-mobile-gate {
    display: flex;
    color: var(--fg-mute);
    text-align: center;
    justify-content: center;
    align-items:  center;
    padding: 40px 24px;
    font-size: 14px;
  }
}
