/* Browser workspace: keep the radar's DOM and behavior, give its list room. */
body.desktop-app.web-app {
  box-sizing: border-box;
  --bg: #101815;
  --surface: #18231d;
  --chrome: #1d2b23;
  --muted: #b6c7bd;
  --dim: #9caea2;
  --line: #2b3b31;
  --accent: #b6f5ce;
  --fresh: #23452f;
  min-width: 320px;
  padding: 0 32px 24px;
  font-size: 16px;
  line-height: 1.6;
}

.web-app .titlebar,
.web-app .desktop-main {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}
.web-app .titlebar {
  height: 100px;
  gap: 14px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}
.web-app .app-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 27px;
}
.web-app .app-title {
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -.5px;
}
.web-app .app-subtitle { font-size:13px;line-height:1.5; }
.web-app #connection-status {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
}
.web-app .titlebar-actions { gap: 16px; }
.web-app #pin-window,
.web-app .window-controls { display: none !important; }
.web-app .titlebar #open-settings {
  width: auto;
  height: 44px;
  min-height: 44px;
  padding: 8px 14px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 16px;
}
.web-app .titlebar #open-settings:hover { background: var(--surface); }
.web-app #full-dashboard {
  gap: 6px;
  min-height: 44px;
  font-size: 16px;
}
.web-app #full-dashboard .icon { width: 16px; height: 16px; }

.web-app .desktop-main { border-top: 1px solid var(--line); }
.web-app .view-tabs {
  display: flex;
  gap: 24px;
  padding: 0 4px;
}
.web-app .view-tabs button {
  justify-content: center;
  min-width: 72px;
  min-height: 60px;
  padding: 16px 8px;
  font-size: 17px;
  font-weight: 600;
}
.web-app .view-tabs button[aria-pressed="true"] { color: var(--accent); }
.web-app .view-tabs button[aria-pressed="true"]::after { height: 2px; }
.web-app .view-tabs button.has-unread::before { top: 15px; right: 4px; }
.web-app .feed { scroll-padding: 12px; scrollbar-color: #4a6453 transparent; }
.web-app .signal-row,
.web-app .signal-row.watch-row {
  padding: 18px 22px;
  border-radius: 0;
}
.web-app .signal-row:hover { background: #19271f; }
.web-app .signal-row.qualified { background: #142b1e; }
.web-app .signal-row.qualified:hover { background: #1b3726; }
.web-app .signal-row.fresh { background: var(--fresh); }
.web-app .signal-row.selected { box-shadow: inset 3px 0 var(--accent); }
.web-app .row-top {
  gap: 8px 12px;
  margin-bottom: 12px;
  font-size: 16px;
}
.web-app .stage-badge,
.web-app .event-time,
.web-app .token-symbol,
.web-app .row-bottom,
.web-app .metric > span,
.web-app .valuation > span,
.web-app .sell-row .valuation > span,
.web-app .sell-addresses,
.web-app .sell-addresses a {
  font-size: 16px;
  line-height: 1.5;
}
.web-app .unread-badge { font-size: 16px; padding: 1px 6px; }
.web-app .row-identity { gap: 12px; }
.web-app .avatar { width: 44px; height: 44px; border-radius: 9px; font-size: 20px; }
.web-app .token-name { font-size: 22px; letter-spacing: -.35px; }
.web-app .valuation { max-width: 170px; font-size: 22px; }
.web-app .row-metrics { gap: 18px 24px; margin: 16px 0; }
.web-app .metric { gap: 5px; }
.web-app .metric > strong { min-height: 26px; font-size: 22px; line-height: 26px; }
.web-app .rhythm { max-width: 132px; height: 26px; gap: 3px; }
.web-app .row-bottom { gap: 8px 12px; }
.web-app .platform-badge { font-size:12px; }
.web-app .wallet-age.established { padding: 2px 7px; }
.web-app .token-link,
.web-app .watch-row .token-link,
.web-app .watch-row .secondary-button {
  min-height: 36px;
  padding: 5px 10px;
  font-size: 16px;
  line-height: 1.5;
}
.web-app .token-link { background: #193122; border-color: #4f755b; }
.web-app .project-link,
.web-app .watch-row .project-link {
  min-width: 34px;
  min-height: 36px;
  padding: 5px 9px;
  font-size: 16px;
}
.web-app .dev-sell-badge { font-size: 16px; }
.web-app .sell-row .valuation { max-width: 220px; font-size: 25px; }
.web-app .sell-addresses { margin-top: 14px; gap: 8px; }
.web-app .sell-addresses > div { grid-template-columns: 80px minmax(0, 1fr); }
.web-app .sell-row .row-bottom { margin-top: 14px; }

.web-app .watch-toolbar { gap: 12px; padding: 14px 20px; }
.web-app .watch-toolbar button { min-height: 40px; padding: 7px 12px; font-size: 16px; }
.web-app .watch-identity { gap: 12px; }
.web-app .watch-identity .avatar { width: 42px; height: 42px; font-size: 19px; }
.web-app .watch-names .token-name { font-size: 21px; }
.web-app .watch-contract { margin-top: 4px; font-size: 16px; }
.web-app .watch-facts { font-size: 16px; }
.web-app .watch-value { font-size: 22px; }
.web-app .watch-drawdowns { gap: 24px; margin-top: 15px; }
.web-app .watch-drawdowns > div,
.web-app .watch-state { font-size: 16px; }
.web-app .watch-drawdowns strong { font-size: 18px; }
.web-app .watch-row .row-bottom { gap: 12px; margin-top: 14px; min-height: 36px; }
.web-app .watch-row .watch-actions { gap: 8px; }

.web-app .attention-banner { margin: 12px 20px 0; padding: 12px 14px; font-size: 16px; }
.web-app .connection-error,
.web-app .filter-event,
.web-app .new-events,
.web-app .sound-resume { padding: 12px 22px; font-size: 16px; }
.web-app .pagination { min-height: 58px; padding: 10px 20px; background: transparent; }
.web-app .page-label { font-size: 16px; }
.web-app .page-button { width: 40px; height: 40px; }
.web-app .feed-empty p,
.web-app .empty-state p { max-width: 460px; font-size: 16px; }
.web-app .feed-empty h2,
.web-app .empty-state h2 { font-size: 22px; }
.web-app .empty-action { min-height: 44px; font-size: 16px; }

.web-app .desktop-dialog { width: min(740px, calc(100vw - 40px)); max-width: calc(100vw - 40px); }
.web-app .dialog-heading,
.web-app .dialog-body,
.web-app .dialog-footer { padding-inline: 28px; }
.web-app .dialog-heading { padding-block: 22px; }
.web-app .dialog-body { padding-block: 24px 28px; }
.web-app .dialog-footer { padding-block: 16px; }
.web-app .eyebrow,
.web-app .form-field,
.web-app .field-note,
.web-app .settings-intro,
.web-app .filter-setting-note,
.web-app .form-error,
.web-app .monitor-details summary,
.web-app .monitor-details .feed-context,
.web-app .discovery-status,
.web-app .input-unit > span,
.web-app #sound-status,
.web-app .checkbox-field,
.web-app .primary-button,
.web-app .secondary-button { font-size: 16px; }
.web-app .field-grid { gap: 18px 24px; }
.web-app .input-unit { height: 48px; }
.web-app .input-unit input { height: 46px; font-size: 17px; padding-inline: 12px; }
.web-app .setting-section h3,
.web-app legend { font-size: 19px; }
.web-app .volume-label { font-size: 16px; }
.web-app #watch-dialog { width: min(540px, calc(100vw - 40px)); }
.web-app #watch-dialog .dialog-heading,
.web-app #watch-dialog .dialog-body,
.web-app #watch-dialog .dialog-footer { padding: 20px 24px; }
.web-app #watch-dialog .dialog-heading h2 { font-size: 22px; }
.web-app #watch-dialog .form-field,
.web-app #watch-dialog .field-note,
.web-app #watch-dialog .primary-button,
.web-app #watch-dialog .secondary-button { font-size: 16px; }
.web-app #watch-dialog input { height: 44px; padding: 9px 10px; font-size: 16px; }
.web-app #detail-content p,
.web-app #detail-content code,
.web-app #detail-content .detail-address,
.web-app #detail-content dt,
.web-app #detail-content .detail-note,
.web-app #detail-content .detail-subtitle,
.web-app #detail-content .detail-link { font-size: 16px; }
.web-app .toast { bottom: 30px; font-size: 16px; }
.web-app .crash-popup { inset: 110px max(24px, calc((100vw - 980px) / 2)) auto; width: auto; max-height: calc(100dvh - 140px); gap: 12px; }
.web-app .crash-popup-card { padding: 16px 18px; }
.web-app .crash-popup-name { font-size: 19px; }
.web-app .crash-popup-facts,
.web-app .crash-popup-countdown,
.web-app .crash-popup .token-link { font-size: 16px; }

@media (min-width: 800px) {
  .web-app .signal-row:not(.watch-row) {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 10px 40px;
  }
  .web-app .signal-row:not(.watch-row) .row-top,
  .web-app .signal-row:not(.watch-row) .row-bottom { grid-column: 1 / -1; margin: 0; }
  .web-app .signal-row:not(.watch-row) .row-identity { grid-column: 1; align-self: center; }
  .web-app .signal-row:not(.watch-row) .row-metrics,
  .web-app .signal-row:not(.watch-row) .sell-addresses { grid-column: 2; margin: 0; align-self: center; }
  .web-app .signal-row:not(.watch-row) .row-bottom { margin-top: 2px; }
  .web-app .signal-row.watch-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 6px 40px;
    padding: 10px 22px;
  }
  .web-app .watch-names .token-name { font-size: 20px; line-height: 1.25; }
  .web-app .watch-contract { margin-top: 2px; line-height: 1.25; }
  .web-app .watch-facts { line-height: 1.3; }
  .web-app .watch-value { line-height: 1.2; }
  .web-app .watch-row .watch-drawdowns { margin: 0; align-self: center; }
  .web-app .watch-row > p,
  .web-app .watch-row .row-bottom { grid-column: 1 / -1; margin: 0; }
}

@media (max-width: 799px) {
  body.desktop-app.web-app { padding: 0 20px 12px; }
  .web-app .titlebar { height: 88px; }
  .web-app .app-title { font-size: 22px; }
  .web-app .titlebar-actions { gap: 10px; }
  .web-app .signal-row,
  .web-app .signal-row.watch-row { padding: 18px 14px; }
  .web-app .row-metrics { gap: 12px; }
  .web-app .crash-popup { inset: 96px 20px auto; max-height: calc(100dvh - 116px); }
}

@media (max-width: 479px) {
  body.desktop-app.web-app { padding: 0 12px 8px; }
  .web-app .titlebar { height: 86px; gap: 9px; }
  .web-app .app-mark { width: 30px; height: 30px; font-size: 23px; }
  .web-app .app-title { font-size: 20px; }
  .web-app #connection-status { max-width: 100%; }
  .web-app .titlebar-actions { gap: 0; }
  .web-app #full-dashboard { display: none; }
  .web-app .titlebar #open-settings { padding: 8px 10px; }
  .web-app .view-tabs { justify-content: space-between; gap: 4px; padding: 0 2px; }
  .web-app .view-tabs button { min-width: 0; flex: 1; min-height: 54px; padding-inline: 3px; font-size: 15px; }
  .web-app .signal-row,
  .web-app .signal-row.watch-row { padding: 16px 8px; }
  .web-app .row-top { gap: 8px; }
  .web-app .row-identity { gap: 9px; }
  .web-app .avatar { width: 38px; height: 38px; }
  .web-app .token-name { font-size: 20px; }
  .web-app .valuation { max-width: 122px; font-size: 20px; }
  .web-app .sell-row .valuation { max-width: 150px; font-size: 22px; }
  .web-app .row-metrics { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1fr); gap: 8px; }
  .web-app .metric > strong { font-size: 20px; }
  .web-app .watch-toolbar { padding: 12px 8px; flex-wrap: wrap; }
  .web-app .watch-toolbar #watch-config { padding-inline: 0; white-space: normal; text-align: left; }
  .web-app .watch-identity { gap: 9px; }
  .web-app .watch-identity .avatar { width: 38px; height: 38px; }
  .web-app .watch-names .token-name { font-size: 20px; }
  .web-app .watch-value { font-size: 20px; }
  .web-app .watch-drawdowns { gap: 14px; flex-wrap: wrap; }
  .web-app .watch-drawdowns .watch-state { margin-left: 0; }
  .web-app .watch-row .row-bottom { flex-wrap: wrap; gap: 10px; }
  .web-app .watch-row .watch-actions { margin-left: auto; gap: 5px; }
  .web-app .pagination { padding-inline: 8px; }
  .web-app .desktop-dialog,
  .web-app #watch-dialog { width: calc(100vw - 20px); max-width: calc(100vw - 20px); }
  .web-app .dialog-heading,
  .web-app .dialog-body,
  .web-app .dialog-footer,
  .web-app #watch-dialog .dialog-heading,
  .web-app #watch-dialog .dialog-body,
  .web-app #watch-dialog .dialog-footer { padding-inline: 16px; }
  .web-app .field-grid { gap: 14px; }
  .web-app .input-unit > span { margin-right: 7px; }
  .web-app .input-unit input { padding-inline: 8px; }
  .web-app .sound-controls { flex-wrap: wrap; }
  .web-app .crash-popup { inset-inline: 12px; }
}
