:root {
  --bg: #0b0d0f;
  --panel: #111417;
  --surface: #15191d;
  --surface-2: #1a1f24;
  --surface-3: #20262c;
  --line: #2b3238;
  --line-soft: #22282e;
  --text: #e7eaee;
  --muted: #9aa3ad;
  --muted-2: #6f7984;
  --ok: #63c58f;
  --warn: #d2a84f;
  --bad: #cf6679;
  --focus: #7f8b96;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="robinhood"] {
  --bg: #090b05;
  --panel: #10140a;
  --surface: #151b0c;
  --surface-2: #1d260d;
  --surface-3: #283510;
  --line: #3e5217;
  --line-soft: #27340f;
  --text: #f4ffcf;
  --muted: #abbc7c;
  --muted-2: #768451;
  --accent: #CCFF00;
  --accent-ink: #071000;
  --accent-soft: rgb(204 255 0 / 12%);
  --ok: #CCFF00;
  --warn: #ffd568;
  --focus: #CCFF00;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
}

.login-body {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell { width: min(390px, 100%); }

.login-card {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 22px 70px rgb(0 0 0 / 30%);
}

.login-card h1 { font-size: 25px; }
.login-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.login-card input { width: 100%; min-height: 44px; }
.login-card .button { min-height: 44px; }
.login-error { margin: 0; color: var(--bad); font-size: 13px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(0 0 0 / 68%);
}

.modal-card {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
}

.modal-card h2 { margin: 0 0 5px; font-size: 20px; }
.modal-card p { margin: 0; line-height: 1.45; }
.field-stack { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.field-stack input, .field-stack select { width: 100%; min-height: 42px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

.chainbot-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.chainbot-migration-grid,
.chainbot-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chainbot-fees,
.chainbot-auto-sell {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.chainbot-fees legend,
.chainbot-auto-sell legend {
  padding: 0 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.chainbot-legend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.chainbot-legend-toggle input { margin: 0; }

.chainbot-phases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chainbot-phase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface);
}

.chainbot-phase h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
}

.chainbot-note {
  margin-top: 10px !important;
  color: var(--muted);
  font-size: 11px;
}

.chainbot-lane {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface);
}

.chainbot-lane h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
}

.chainbot-lane .field-stack:last-child { grid-column: 1 / -1; }

button, input, select { font: inherit; }

.shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.account-identity {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.rule {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.app-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.app-tab {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.app-tab:hover { color: var(--text); background: var(--surface); }
.app-tab.active { color: var(--text); background: var(--surface-2); }
.app-tab span { margin-left: 5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.stats {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.stat-card {
  min-height: 82px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat-card.accent { background: var(--surface); }

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.coverage-note { display: none; }
.coverage-note.robinhood-note {
  display: block;
  margin: 0 0 12px;
  border-color: rgb(204 255 0 / 42%);
  background: rgb(204 255 0 / 9%);
  color: #e6ffb3;
}

:root[data-theme="robinhood"] .shell { width: min(1580px, calc(100% - 32px)); }
:root[data-theme="robinhood"] .robinhood-tab.active {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
:root[data-theme="robinhood"] .robinhood-panel {
  box-shadow: 0 18px 55px rgb(91 120 0 / 22%);
}
:root[data-theme="robinhood"] .stat-card.accent {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent);
}
:root[data-theme="robinhood"] .stat-card.accent span { color: #273100; }
:root[data-theme="robinhood"] .button.primary {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent);
}
:root[data-theme="robinhood"] .button.primary:hover { background: #dcff52; }
:root[data-theme="robinhood"] .button.secondary {
  color: var(--accent);
  border-color: rgb(204 255 0 / 42%);
}
:root[data-theme="robinhood"] .button.secondary:hover,
:root[data-theme="robinhood"] .check-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
:root[data-theme="robinhood"] input:focus,
:root[data-theme="robinhood"] select:focus,
:root[data-theme="robinhood"] button:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(204 255 0 / 22%);
}
:root[data-theme="robinhood"] .check-option input { accent-color: var(--accent); }
:root[data-theme="robinhood"] #robinhoodView .profile-link { color: var(--accent); }
:root[data-theme="robinhood"] #robinhoodView .profile-link:hover { color: #e6ff80; }
:root[data-theme="robinhood"] #robinhoodView .badge-ok {
  color: var(--accent);
  border-color: rgb(204 255 0 / 55%);
  background: var(--accent-soft);
}
.badge-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }

.parser-issues {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  font-size: 13px;
}

.parser-issues {
  display: grid;
  gap: 8px;
  color: #d8b8bf;
  border-color: #51323a;
  background: #171214;
}

.parser-issue-title {
  color: #e2a6b0;
  font-weight: 750;
}

.parser-issues-warning {
  color: #d9c393;
  border-color: #4c4026;
  background: #171511;
}

.parser-issues-warning .parser-issue-title { color: #dfc27d; }

.parser-issue-row {
  display: grid;
  gap: 3px;
}

.parser-issue-row code {
  color: #d9c393;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.deployment-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.deployment-tab {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-soft);
  border-radius: 7px 7px 0 0;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.deployment-tab span {
  display: inline-flex;
  min-width: 24px;
  margin-left: 6px;
  padding: 1px 6px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.deployment-tab.active {
  color: var(--text);
  border-color: var(--line);
  border-bottom-color: var(--panel);
  background: var(--panel);
}

.onchain-tabs {
  padding-top: 0;
  border-bottom: 1px solid var(--line);
}

.onchain-actions {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(112px, .45fr)) repeat(5, auto);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) repeat(4, minmax(112px, .55fr)) minmax(150px, .7fr) repeat(5, auto);
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.number-input { min-width: 112px; }

.export-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.export-panel.hidden,
.hidden { display: none !important; }

.export-panel strong {
  display: block;
  font-size: 13px;
}

.export-panel > div {
  min-width: 220px;
  flex: 1;
}

.export-panel > div span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.check-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.check-option input {
  width: 15px;
  min-height: 15px;
  accent-color: #b8c0ca;
}

input,
select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  color: var(--text);
  background: var(--surface);
  font-size: 13px;
}

input {
  width: 100%;
  padding: 0 11px;
}

select { padding: 0 32px 0 10px; }

input::placeholder { color: var(--muted-2); }

input:focus,
select:focus,
button:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(127, 139, 150, .25);
}

.button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  color: var(--text);
  background: var(--surface);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.button.primary {
  border-color: #5c6570;
  color: #f4f6f8;
  background: #303741;
}

.button.secondary {
  color: var(--text);
  background: var(--surface);
}

.button:hover,
.deployment-tab:hover,
.copy-button:hover,
.check-option:hover {
  background: var(--surface-2);
}

.button:active,
.deployment-tab:active,
.copy-button:active {
  background: var(--surface-3);
}

.button:disabled {
  opacity: .55;
  cursor: wait;
}

.table-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.table-scroll { overflow-x: auto; }


table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 10px 13px;
  color: var(--muted);
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 10px 13px;
  border-top: 1px solid var(--line-soft);
  vertical-align: middle;
  font-size: 13px;
}

tbody tr:hover { background: rgba(255, 255, 255, .025); }

.profile-link {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.profile-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subtext {
  display: block;
  max-width: 260px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-pump,
.badge-fomo { color: #cfd5dc; }

.badge-ok,
.badge-old { color: var(--ok); border-color: #315341; }

.badge-rejected,
.badge-recent { color: var(--warn); border-color: #51462e; }

.wallet-cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.wallet {
  max-width: 170px;
  overflow: hidden;
  color: #c7ced6;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

a.wallet:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy-button {
  min-width: 42px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.copy-button:hover {
  color: var(--text);
  border-color: var(--focus);
}

.wallet-missing { color: var(--muted-2); }

.manual-wallet-form {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 290px;
}

.manual-wallet-input {
  width: 190px;
  min-height: 30px;
  padding: 0 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.manual-wallet-save,
.manual-wallet-cancel,
.manual-wallet-open {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.manual-wallet-save:hover,
.manual-wallet-cancel:hover,
.manual-wallet-open:hover { background: var(--surface-2); }
.manual-wallet-save:disabled,
.manual-wallet-cancel:disabled { cursor: wait; opacity: .55; }

.manual-wallet-badge {
  color: var(--muted-2);
  font-size: 10px;
  white-space: nowrap;
}

.wallet-decision {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  vertical-align: middle;
}

.wallet-decision-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--muted-2);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.wallet-decision-button:first-child { border-left: 0; }
.wallet-decision-button:hover { color: var(--text); background: var(--surface-2); }
.wallet-decision-button:disabled { cursor: wait; opacity: .55; }
.wallet-decision-added.active { color: var(--ok); background: rgba(99, 197, 143, .14); }
.wallet-decision-rejected.active { color: var(--bad); background: rgba(207, 102, 121, .14); }
.wallet-decision-later.active { color: var(--warn); background: rgba(210, 168, 79, .14); }

.wallet-decision-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.number { font-variant-numeric: tabular-nums; }

.empty {
  padding: 34px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.events-panel,
.onchain-panel { margin-top: 10px; }

.radar-panel,
.radar-health-panel { margin-top: 10px; }

.radar-heading > div { min-width: 0; }
.radar-heading > div > span { display: block; margin-top: 4px; }
.radar-toolbar { grid-template-columns: minmax(240px, 1fr) auto auto auto auto auto; }
.radar-mode-tabs { margin-top: 10px; }

.radar-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.radar-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
}

.radar-card-header,
.session-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.radar-identity { min-width: 0; }
.radar-handle { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.radar-score {
  display: grid;
  min-width: 60px;
  justify-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.radar-score strong { font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.radar-score span { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.radar-score-urgent { border-color: #6b3540; color: #ef9aa8; }
.radar-score-high { border-color: #66522c; color: #e2c078; }
.radar-score-watch { border-color: #355643; color: #80c99e; }

.radar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.radar-chip {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.radar-chip-green { color: var(--ok); border-color: #315341; }
.radar-chip-red { color: #ef9aa8; border-color: #6b3540; }
.radar-chip-green:hover { color: #96d9b2; }

.radar-why {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #cbd1d7;
  font-size: 12px;
}

.radar-why li + li { margin-top: 4px; }
.radar-posts { display: grid; gap: 6px; margin-top: 12px; }

.radar-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.radar-action {
  min-height: 29px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.radar-action:hover { color: var(--text); border-color: var(--focus); }
.radar-action-danger:hover { color: #ef9aa8; border-color: #6b3540; }
.radar-action:disabled { cursor: wait; opacity: .5; }

.radar-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel);
}

.radar-post:hover { border-color: var(--focus); background: var(--surface-2); }
.radar-post small { color: var(--muted); font-size: 10px; }
.radar-post-link {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}
.radar-card-footer { margin-top: 10px; color: var(--muted); font-size: 10px; }

.radar-management-panel { margin-top: 10px; }
.moderation-list { display: grid; }
.moderation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 13px;
  border-top: 1px solid var(--line-soft);
}
.moderation-row:first-child { border-top: 0; }
.moderation-row > div { display: grid; min-width: 0; gap: 5px; }
.moderation-row small { color: var(--muted); font-size: 10px; }
.moderation-post-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.button.compact { min-height: 30px; padding: 5px 9px; font-size: 11px; }

.session-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.session-card {
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface);
}

.session-card strong { font-size: 12px; }
.session-card p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}

.compact-heading { padding-bottom: 9px; }

.section-heading h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.events-list { display: grid; }

.event {
  display: grid;
  grid-template-columns: 105px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border-top: 1px solid var(--line-soft);
}

.event:first-child { border-top: 0; }

.event-type {
  font-size: 12px;
  font-weight: 750;
}

.event-qualified { color: var(--ok); }
.event-disqualified { color: var(--bad); }

.event-main { min-width: 0; }

.event-wallet {
  overflow: hidden;
  color: #c7ced6;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-reason,
.event-time,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.muted {
  margin: 0;
  padding: 15px 13px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  opacity: 0;
  transform: translateY(10px);
  color: var(--text);
  background: #191d21;
  pointer-events: none;
  transition: .18s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 1fr 1fr 1fr; }
  .search-wrap { grid-column: 1 / -1; }
  .export-panel { flex-wrap: wrap; }
  .onchain-actions { grid-template-columns: 1fr 1fr 1fr; }
  .radar-cards { grid-template-columns: 1fr; }
  .radar-toolbar { grid-template-columns: 1fr 1fr 1fr; }
  .session-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 20px, 1500px);
    padding-top: 16px;
  }

  .topbar { flex-direction: column; }
  .chainbot-migration-grid, .chainbot-lanes, .chainbot-phases { grid-template-columns: 1fr; }
  .chainbot-phase { grid-template-columns: 1fr; }
  .chainbot-phase h3 { grid-column: auto; }
  .status { white-space: normal; }
  .stats { grid-template-columns: 1fr 1fr; }

  .stat-card {
    min-height: 78px;
    padding: 12px;
  }

  .stat-card strong { font-size: 24px; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search-wrap, #sortOrder { grid-column: 1 / -1; }

  .export-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .onchain-actions {
    align-items: stretch;
    grid-template-columns: 1fr 1fr;
  }

  .table-meta {
    flex-direction: column;
    gap: 4px;
  }

  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }

  tr {
    padding: 10px 12px;
    border-top: 1px solid var(--line);
  }

  td {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    border: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
  }

  .wallet-decision-button {
    width: 40px;
    height: 40px;
  }

  .event {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .app-tabs { width: 100%; flex-wrap: wrap; }
  .app-tab { flex: 1 1 auto; }
  .radar-cards { padding: 8px; }
  .radar-toolbar { grid-template-columns: 1fr 1fr; }
  .radar-toolbar .search-wrap { grid-column: 1 / -1; }
  .session-grid { grid-template-columns: 1fr; }
}
