:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #121417;
  --muted: #68717d;
  --line: #dbe1e8;
  --green: #0b7a4b;
  --green-soft: #e7f6ef;
  --red: #b42318;
  --red-soft: #fdeceb;
  --amber: #a15c00;
  --amber-soft: #fff4df;
  --ink: #22252a;
  --shadow: 0 10px 24px rgba(18, 20, 23, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-brand,
.topbar-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.topbar-brand {
  justify-self: start;
}

.topbar-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.topbar-title h1,
.topbar-title p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.topbar p,
.panel-head p,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  justify-self: end;
  justify-content: flex-end;
}

.topbar-spacer {
  min-width: 0;
}

.topbar-back-button {
  white-space: nowrap;
}

.topbar-menu {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.topbar-menu-item {
  position: relative;
}

.topbar-menu-link,
.topbar-network-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.topbar-menu-link {
  padding: 0 12px;
}

.topbar-network-link {
  width: 100%;
  padding: 8px 10px;
}

.topbar-menu-link:hover,
.topbar-menu-link:focus-visible,
.topbar-network-link:hover,
.topbar-network-link:focus-visible {
  outline: 0;
  border-color: #aeb8c4;
  background: #fff;
}

.topbar-menu-link[aria-current="page"],
.topbar-network-link[aria-current="page"],
.topbar-home-button[aria-current="page"] {
  border-color: #7da2d8;
  background: #eef4ff;
  color: #1d4ed8;
}

.topbar-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  display: none;
  width: 150px;
  transform: translateX(-50%);
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.topbar-menu-dropdown::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 8px;
  content: "";
}

.topbar-menu-item:hover .topbar-menu-dropdown,
.topbar-menu-item:focus-within .topbar-menu-dropdown {
  display: grid;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.live {
  background: var(--red-soft);
  color: var(--red);
}

button {
  font: inherit;
}

.icon-button,
.text-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.icon-button {
  width: 36px;
  font-size: 18px;
}

.text-button,
.text-link-button {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.icon-button:hover,
.text-button:hover,
.text-link-button:hover {
  border-color: #aeb8c4;
}

.icon-button:disabled,
.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.text-link-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

body[data-project="whale-bot"] .external-link-disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

body[data-project="whale-bot"] .external-entity-link {
  color: #1d4ed8;
  text-decoration: none;
}

body[data-project="whale-bot"] .external-entity-link:hover,
body[data-project="whale-bot"] .external-entity-link:focus-visible {
  text-decoration: underline;
}

body[data-project="whale-bot"] .external-entity-unavailable {
  color: var(--muted);
  cursor: not-allowed;
}

body[data-project="whale-bot"] .external-fallback-badge {
  margin-top: 5px;
  font-size: 10px;
}

body[data-project="whale-bot"] .external-link-note {
  margin: 0;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f5f7f9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

body[data-project="whale-bot"] .external-link-group {
  align-items: stretch;
}

.topbar-docs-button {
  flex: 0 0 auto;
  border-color: #b9c9dc;
  background: #f8fbff;
}

.topbar-docs-button[aria-current="page"] {
  border-color: #7da2d8;
  background: #eef4ff;
  color: #1d4ed8;
}

.layout {
  width: min(1800px, 100%);
  margin: 0 auto;
  padding: 20px 28px 36px;
}

.portal-layout {
  width: min(1180px, 100%);
}

.portal-panel {
  overflow: visible;
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.network-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-card {
  display: grid;
  min-width: 0;
  min-height: 188px;
  align-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfd;
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.portal-card:hover,
.portal-card:focus-visible {
  outline: 0;
  border-color: #93a4b8;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 20, 23, 0.1);
  transform: translateY(-1px);
}

.portal-card.primary {
  border-color: #b9dfc6;
  background: #f7fffa;
}

.portal-card.muted-card {
  background: #f8fafc;
}

.portal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.portal-card-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #9fb0c2;
  border-radius: 8px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.portal-card-mark.solana {
  border-color: #b9dfc6;
  background: var(--green-soft);
  color: var(--green);
}

.portal-card-mark.base {
  border-color: #b7c7e6;
  background: #eef4ff;
  color: #3157a3;
}

.portal-card-mark.prediction {
  border-color: #c8b6e6;
  background: #f5f0ff;
  color: #6941a5;
}

.portal-card-mark.whale {
  border-color: #9ec8d8;
  background: #eefaff;
  color: #0f6478;
}

.portal-card-mark.mev {
  border-color: #f0c084;
  background: #fff7e8;
  color: #8a5200;
}

.portal-card-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-card-status.active {
  background: var(--green-soft);
  color: var(--green);
}

.portal-card-status.planned {
  background: #eef2f7;
  color: #5c6673;
}

.portal-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-card > span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.project-scaffold-layout {
  display: grid;
  gap: 16px;
}

.project-scaffold-grid,
.scaffold-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.scaffold-method-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-scaffold-card,
.scaffold-method-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.project-scaffold-card span,
.scaffold-method-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.project-scaffold-card > span {
  font-weight: 800;
  text-transform: uppercase;
}

.project-scaffold-card strong,
.scaffold-method-card strong {
  min-width: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-scaffold-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mev-layout {
  display: grid;
  gap: 14px;
}

.mev-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mev-summary-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 14px;
}

.mev-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mev-summary-card strong {
  overflow: hidden;
  font-size: 24px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mev-module-grid,
.mev-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mev-module-card,
.mev-setting-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.mev-module-card strong,
.mev-setting-card strong {
  min-width: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mev-module-card span,
.mev-setting-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mev-module-card code {
  overflow: hidden;
  border-radius: 8px;
  padding: 7px 8px;
  background: #eef2f7;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whale-layout {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 14px;
  padding-right: 16px;
  padding-left: 16px;
}

.whale-shell {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.whale-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.whale-nav-button {
  display: flex;
  min-height: 38px;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.whale-nav-button:hover,
.whale-nav-button:focus-visible {
  outline: 0;
  border-color: #aeb8c4;
  background: #fbfcfd;
}

.whale-nav-button.active {
  border-color: #7da2d8;
  background: #eef4ff;
  color: #1d4ed8;
}

.whale-workspace,
.whale-view {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.whale-view[hidden] {
  display: none;
}

.whale-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.whale-dashboard-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.whale-summary-card {
  display: grid;
  min-width: 0;
  min-height: 80px;
  align-content: center;
  gap: 6px;
  padding: 14px;
}

.whale-summary-card span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.whale-summary-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whale-analytics-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.whale-analytics-summary-card {
  display: grid;
  min-width: 0;
  min-height: 78px;
  align-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 41, 55, 0.04);
}

.whale-analytics-summary-card span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.whale-analytics-summary-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whale-analytics-summary-card strong.positive {
  color: var(--green);
}

.whale-analytics-summary-card strong.negative {
  color: var(--red);
}

.whale-analytics-empty-cell {
  padding: 0;
}

.whale-analytics-empty-state {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 38px 24px 42px;
  text-align: center;
}

.whale-analytics-empty-state > div:first-child {
  display: grid;
  max-width: 680px;
  gap: 6px;
}

.whale-analytics-empty-state h3,
.whale-analytics-empty-state p {
  margin: 0;
}

.whale-analytics-empty-state h3 {
  color: var(--ink);
  font-size: 17px;
}

.whale-analytics-empty-state p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.whale-analytics-empty-actions {
  display: flex;
  max-width: 900px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.whale-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.whale-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.whale-form label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.whale-form input,
.whale-form select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.whale-smart-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.whale-smart-summary span {
  display: grid;
  min-width: 0;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.whale-smart-summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whale-smart-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.whale-performance-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.whale-discovery-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.whale-manual-token-form {
  grid-template-columns: minmax(280px, 2fr) minmax(240px, 1.5fr) minmax(120px, 0.7fr) minmax(110px, 0.6fr) auto;
}

.whale-manual-token-form .text-button {
  min-height: 36px;
  white-space: nowrap;
}

.whale-manual-token-run {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(220px, 1.5fr) repeat(2, minmax(120px, 0.7fr));
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #f7faff;
}

.whale-manual-token-run span {
  display: grid;
  min-width: 0;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.whale-manual-token-run strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}

.whale-discovery-preset-bar {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(170px, 240px) auto minmax(260px, 1fr);
  gap: 8px;
  align-items: end;
  border: 1px solid #d7e2f0;
  border-radius: 6px;
  padding: 8px;
  background: #f7faff;
}

.whale-discovery-preset-bar label {
  min-width: 0;
}

.whale-discovery-preset-bar .text-button {
  min-height: 32px;
  white-space: nowrap;
}

.whale-discovery-preset-bar p {
  align-self: center;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.whale-embedded-form {
  border: 0;
  padding: 10px 0 0;
  background: transparent;
}

.whale-nested-settings {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px 10px;
  background: #fff;
}

.whale-nested-settings summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.whale-discovery-actions {
  grid-column: 1 / -1;
  justify-self: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.whale-discovery-status {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
  background: #fbfcfd;
}

.whale-discovery-status span {
  display: grid;
  min-width: 0;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.whale-discovery-status strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.whale-discovery-note {
  margin: -4px 14px 14px;
  border: 1px solid #f3d49b;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff7e6;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.whale-discovery-quality {
  display: grid;
  gap: 8px;
  margin: -4px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.whale-discovery-quality[hidden] {
  display: none;
}

.whale-discovery-filter-group {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.whale-discovery-filter-group legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.whale-discovery-source-panel,
.whale-discovery-progress,
.whale-discovery-empty-debug {
  display: grid;
  gap: 10px;
  margin: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.whale-discovery-source-panel h3,
.whale-discovery-progress h3,
.whale-discovery-empty-debug h3 {
  margin: 0;
  font-size: 13px;
}

.whale-discovery-empty-debug[hidden] {
  display: none;
}

.whale-discovery-empty-debug p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.whale-discovery-empty-debug ul,
.whale-warning-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
}

.whale-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.whale-progress-step {
  display: grid;
  min-width: 0;
  gap: 5px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
}

.whale-progress-step strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whale-progress-step em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.whale-progress-step.running {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.whale-progress-step.done {
  border-left-color: #16803a;
  background: #effaf2;
}

.whale-progress-step.failed {
  border-left-color: #b42318;
  background: #fff1f0;
}

.whale-progress-step.skipped {
  border-left-color: #8a5a00;
  background: #fff7e6;
}

.whale-discovery-step-error {
  margin: 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}

.whale-quality-grid,
.whale-quality-reasons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.whale-quality-grid span,
.whale-quality-reasons span {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.whale-quality-grid strong,
.whale-quality-reasons strong {
  color: var(--ink);
  white-space: nowrap;
}

.whale-quality-reasons span {
  grid-column: span 2;
  background: #fbfcfd;
  text-transform: none;
}

.whale-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(112px, 0.6fr));
  gap: 10px;
  align-items: end;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.whale-filter-bar label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.whale-filter-bar input,
.whale-filter-bar select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.whale-performance-filter-bar {
  grid-template-columns: minmax(190px, 1.4fr) repeat(auto-fit, minmax(126px, 1fr));
}

.whale-performance-filter-actions {
  display: flex;
  align-items: end;
  min-height: 34px;
}

.whale-performance-filter-actions .text-button {
  width: 100%;
  min-height: 34px;
}

.whale-sort-button {
  display: inline-flex;
  width: 100%;
  min-width: max-content;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.whale-sort-button:hover,
.whale-sort-button:focus-visible {
  color: var(--green);
}

.whale-sort-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.whale-sort-indicator::before {
  content: "\2195";
  color: var(--muted);
}

.whale-sort-button.is-ascending .whale-sort-indicator::before {
  content: "\25B2";
  color: currentColor;
}

.whale-sort-button.is-descending .whale-sort-indicator::before {
  content: "\25BC";
  color: currentColor;
}

.whale-signal-filter-bar {
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(130px, 0.75fr));
}

.whale-settings-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #fbfcfd;
}

.whale-setting-item {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.whale-setting-item > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.whale-setting-item > strong {
  width: fit-content;
  max-width: 100%;
}

.whale-view .panel-head {
  flex-wrap: wrap;
}

.whale-view .table-wrap {
  max-width: 100%;
  scrollbar-gutter: stable;
}

.whale-view td {
  line-height: 1.35;
}

.whale-list-footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.whale-list-footer .text-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.whale-discovery-table th,
.whale-discovery-table td {
  vertical-align: top;
}

.whale-discovery-table {
  min-width: 1450px;
}

.whale-discovery-table .cell-mono {
  max-width: 180px;
  color: var(--muted);
  font-size: 11px;
}

.whale-address-copy-row {
  display: flex;
  min-width: 260px;
  align-items: flex-start;
  gap: 6px;
}

.whale-discovery-table .whale-full-address {
  display: inline-block;
  max-width: 250px;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.whale-copy-button {
  flex: 0 0 auto;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.whale-copy-button:hover {
  border-color: #9fb3c8;
  background: #f5f8fc;
}

.whale-copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.whale-confirm-modal {
  width: min(520px, calc(100% - 28px));
}

.whale-confirm-modal .danger-button {
  border-color: #efaaa4;
  background: #fff1f0;
  color: #b42318;
}

.whale-confirm-modal .danger-button:hover {
  border-color: #d77c74;
  background: #ffe5e2;
}

.whale-method-badge {
  display: inline-flex;
  max-width: 150px;
  min-height: 24px;
  align-items: center;
  border: 1px solid #c6d3e2;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f5f8fc;
  color: #3b536f;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.whale-method-badge.method-swap {
  border-color: #9ab7e8;
  background: #eef4ff;
  color: #1d4ed8;
}

.whale-method-badge.method-holder {
  border-color: #a9d8b8;
  background: var(--green-soft);
  color: var(--green);
}

.whale-method-badge.method-fallback,
.whale-method-badge.method-neutral {
  border-color: #cbd3dc;
  background: #f3f5f7;
  color: #5c6673;
}

.whale-method-badge.method-birdeye {
  border-color: #f0cb90;
  background: var(--amber-soft);
  color: var(--amber);
}

.whale-method-badge.method-dex {
  border-color: #9ec8d8;
  background: #eefaff;
  color: #0f6478;
}

.whale-method-badge.method-chain {
  border-color: #c8b6e6;
  background: #f5f0ff;
  color: #6941a5;
}

.whale-discovery-row-actions {
  flex-wrap: wrap;
  min-width: 220px;
}

.whale-discovery-row-actions .text-button,
.whale-discovery-row-actions .text-link-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.whale-discovery-view .whale-discovery-workspace {
  overflow: visible;
}

.whale-discovery-view .whale-discovery-head {
  padding: 12px 14px;
}

.whale-discovery-view .whale-discovery-head h2 {
  font-size: 16px;
}

.whale-discovery-view .whale-discovery-head p {
  font-size: 12px;
}

.whale-discovery-view .whale-panel-actions {
  gap: 6px;
}

.whale-discovery-view .whale-panel-actions .text-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.whale-discovery-view .whale-primary-action {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #fff;
}

.whale-auto-discovery-view .whale-primary-action {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #fff;
}

.whale-auto-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.whale-auto-summary .whale-summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.whale-auto-trading-view .whale-primary-action {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #fff;
}

.whale-auto-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.whale-auto-section-head h3,
.whale-auto-section-head p {
  margin: 0;
}

.whale-auto-section-head h3 {
  color: var(--ink);
  font-size: 15px;
}

.whale-auto-section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.whale-auto-status-form {
  grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(360px, 2fr);
}

.whale-auto-risk-form {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.whale-auto-config-actions,
.whale-auto-risk-actions {
  align-self: end;
}

.whale-auto-risk-actions {
  grid-column: 1 / -1;
}

.whale-auto-trading-view td.positive {
  color: var(--green);
  font-weight: 800;
}

.whale-auto-trading-view td.negative {
  color: var(--red);
  font-weight: 800;
}

.whale-auto-discovery-form {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.whale-auto-note {
  margin: 0;
  padding: 0 14px 14px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.whale-auto-discovery-form .whale-auto-note.warning {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #f3d49b;
  border-radius: 10px;
  background: #fff7e6;
  color: var(--amber);
}

.whale-auto-history {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.whale-auto-discovery-view .whale-discovery-diagnostics-grid strong {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whale-discovery-view .whale-primary-action:hover {
  border-color: #1e40af;
  background: #1d4ed8;
}

.whale-discovery-overview {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.whale-discovery-view .whale-discovery-status {
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 6px;
  padding: 0;
  background: transparent;
}

.whale-discovery-view .whale-discovery-status span {
  gap: 2px;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 9px;
}

.whale-discovery-view .whale-discovery-status strong {
  font-size: 13px;
}

.whale-discovery-view .whale-discovery-source-panel {
  align-content: start;
  gap: 6px;
  margin: 0;
  padding: 8px;
  background: #fff;
}

.whale-discovery-view .whale-discovery-source-panel h3 {
  font-size: 11px;
  text-transform: uppercase;
}

.whale-discovery-view .whale-discovery-source-panel .whale-quality-grid {
  grid-template-columns: 1fr;
  gap: 4px;
}

.whale-discovery-view .whale-discovery-source-panel .whale-quality-grid span {
  border: 0;
  border-top: 1px solid #edf1f5;
  border-radius: 0;
  padding: 4px 2px;
  font-size: 10px;
}

.whale-discovery-precheck {
  display: grid;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.whale-discovery-precheck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.whale-discovery-precheck-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.whale-discovery-precheck-head .text-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 10px;
}

.whale-discovery-precheck-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 6px;
}

.whale-discovery-precheck-grid > span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.whale-discovery-precheck-grid .signal {
  flex: 0 0 auto;
  max-width: 100%;
}

.whale-discovery-precheck-messages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.whale-discovery-precheck-messages:empty {
  display: none;
}

.whale-discovery-precheck-messages p {
  margin: 0;
  border-radius: 4px;
  padding: 5px 7px;
  background: #eef4fb;
  color: #35506d;
  font-size: 10px;
  font-weight: 800;
}

.whale-discovery-precheck-messages p.warning {
  background: #fff7df;
  color: #7a5200;
}

.whale-discovery-precheck-messages p.error {
  background: #fff0f0;
  color: #a61b1b;
}

.whale-discovery-view .whale-discovery-progress {
  margin: 10px 14px;
  padding: 8px;
}

.whale-discovery-view .whale-discovery-progress h3 {
  font-size: 11px;
  text-transform: uppercase;
}

.whale-discovery-diagnostics {
  display: grid;
  gap: 8px;
  margin: 10px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #2563eb;
  border-radius: 6px;
  padding: 10px;
  background: #fff;
}

.whale-discovery-diagnostics[hidden] {
  display: none;
}

.whale-discovery-diagnostics-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.whale-discovery-diagnostics-head h3,
.whale-discovery-filter-breakdown h4,
.whale-discovery-source-breakdown h4,
.whale-discovery-error-handling h4,
.whale-discovery-soft-suggestions h4,
.whale-discovery-diagnostics-reasons h4 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.whale-discovery-diagnostics-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.whale-discovery-diagnostics-head p.success {
  color: var(--green);
}

.whale-discovery-diagnostics-head p.warning {
  color: var(--amber);
}

.whale-discovery-diagnostics-head p.danger {
  color: var(--red);
}

.whale-discovery-diagnostics-head > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.whale-discovery-diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.whale-discovery-diagnostics-grid span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid #e5eaf0;
  border-radius: 5px;
  padding: 6px 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.whale-discovery-diagnostics-grid strong {
  color: var(--ink);
  text-align: right;
}

.whale-discovery-seed-status {
  margin: 0;
  border: 1px solid #dbe7df;
  border-radius: 5px;
  padding: 6px 8px;
  background: #f5fbf7;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.whale-discovery-seed-status.warning {
  border-color: #f3d49b;
  background: #fff7e6;
  color: var(--amber);
}

.whale-discovery-filter-breakdown {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.whale-discovery-filter-breakdown > div {
  display: grid;
  grid-template-columns: repeat(8, minmax(80px, 1fr));
  gap: 5px;
}

.whale-discovery-filter-breakdown span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border: 1px solid #e5eaf0;
  border-radius: 5px;
  padding: 5px 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.whale-discovery-filter-breakdown strong {
  color: var(--ink);
}

.whale-discovery-soft-suggestions {
  display: grid;
  gap: 7px;
  border: 1px solid #f3d49b;
  border-radius: 5px;
  padding: 8px;
  background: #fffaf0;
}

.whale-discovery-error-handling {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.whale-discovery-error-handling p {
  margin: 0;
  border-radius: 5px;
  padding: 6px 8px;
  background: #fff7e6;
  color: var(--amber);
  font-size: 10px;
  font-weight: 800;
}

.whale-discovery-error-handling p.danger {
  background: #fff0f0;
  color: var(--red);
}

.whale-discovery-soft-suggestions > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.whale-discovery-soft-suggestions p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.whale-discovery-soft-suggestions .text-button {
  flex: 0 0 auto;
  min-height: 30px;
}

.whale-discovery-soft-suggestions ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  margin: 0;
  padding-left: 18px;
  color: #6f4b00;
  font-size: 11px;
  font-weight: 700;
}

.whale-discovery-source-breakdown {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.whale-discovery-source-breakdown > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 5px;
}

.whale-discovery-source-breakdown span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border: 1px solid #e5eaf0;
  border-radius: 5px;
  padding: 5px 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.whale-discovery-source-breakdown strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
}

.whale-discovery-source-breakdown em {
  border-radius: 4px;
  padding: 2px 4px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}

.whale-discovery-source-breakdown em.ok {
  background: #e4f5ec;
  color: var(--green);
}

.whale-discovery-source-breakdown em.failed {
  background: #fdeaea;
  color: var(--red);
}

.whale-discovery-source-breakdown em.partial,
.whale-discovery-source-breakdown em.empty {
  background: #fff2d8;
  color: var(--amber);
}

.whale-discovery-diagnostics-reasons {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.whale-discovery-diagnostics-reasons ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 11px;
}

.whale-discovery-view .whale-progress-steps {
  grid-template-columns: repeat(8, minmax(90px, 1fr));
  gap: 5px;
}

.whale-discovery-view .whale-progress-step {
  gap: 2px;
  padding: 6px;
}

.whale-discovery-view .whale-collapsible summary {
  min-height: 40px;
  padding: 0 14px;
}

.whale-discovery-view .whale-discovery-form {
  gap: 8px;
  padding: 10px 14px;
}

.whale-discovery-view .whale-discovery-filter-group,
.whale-discovery-view .whale-nested-settings {
  padding: 8px;
}

.whale-discovery-view .whale-embedded-form {
  gap: 8px;
  padding-top: 8px;
}

.whale-discovery-view .whale-form label {
  gap: 4px;
  font-size: 11px;
}

.whale-discovery-view .whale-form input,
.whale-discovery-view .whale-form select {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

.whale-discovery-view .whale-filter-bar {
  grid-template-columns: minmax(180px, 1.4fr) repeat(6, minmax(100px, 0.65fr));
  gap: 7px;
  padding: 9px 12px;
}

.whale-discovery-view .whale-filter-bar input,
.whale-discovery-view .whale-filter-bar select {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

.whale-discovery-view .whale-list-footer {
  padding: 7px 12px;
}

.whale-discovery-view .whale-discovery-table {
  min-width: 1160px;
  table-layout: fixed;
}

.whale-discovery-view .whale-discovery-table th,
.whale-discovery-view .whale-discovery-table td {
  padding: 8px;
}

.whale-discovery-view .whale-discovery-table th:nth-child(1) {
  width: 245px;
}

.whale-discovery-view .whale-discovery-table th:nth-child(2) {
  width: 150px;
}

.whale-discovery-view .whale-discovery-table th:nth-child(3) {
  width: 130px;
}

.whale-discovery-view .whale-discovery-table th:nth-child(4),
.whale-discovery-view .whale-discovery-table th:nth-child(5) {
  width: 120px;
}

.whale-discovery-view .whale-discovery-table th:nth-child(6) {
  width: 155px;
}

.whale-discovery-view .whale-discovery-table th:nth-child(7) {
  width: 90px;
}

.whale-discovery-view .whale-discovery-table th:nth-child(8) {
  width: 220px;
}

.whale-discovery-view .whale-address-copy-row {
  min-width: 0;
}

.whale-discovery-view .whale-discovery-table .whale-full-address {
  max-width: 205px;
  font-size: 10px;
}

.whale-discovery-cell-detail {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.whale-discovery-score {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.whale-discovery-view .whale-discovery-row-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  gap: 5px;
}

.whale-discovery-view .whale-discovery-row-actions .text-button,
.whale-discovery-view .whale-discovery-row-actions .text-link-button {
  min-width: 0;
  min-height: 26px;
  padding: 0 6px;
  font-size: 10px;
}

.whale-smart-wallet-table th,
.whale-smart-wallet-table td,
.whale-signal-table th,
.whale-signal-table td {
  vertical-align: top;
}

.whale-smart-wallet-table {
  min-width: 2380px;
}

.whale-signal-table {
  min-width: 1620px;
}

.whale-performance-table {
  min-width: 1900px;
}

.whale-performance-breakdown-row td {
  padding: 0 11px 12px;
  background: #f7f9fb;
}

.whale-performance-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.whale-performance-breakdown > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 11px 12px;
  background: #fff;
}

.whale-performance-breakdown span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.whale-performance-breakdown strong {
  max-width: none;
  color: var(--ink);
  font-size: 13px;
  white-space: normal;
}

.whale-performance-breakdown strong.positive {
  color: var(--green);
}

.whale-performance-breakdown strong.negative {
  color: var(--red);
}

.whale-performance-total-pnl {
  background: #f2f7f5 !important;
}

.whale-performance-roi {
  display: grid;
  min-width: 138px;
  gap: 3px;
}

.whale-performance-roi > div {
  display: grid;
  grid-template-columns: 64px minmax(60px, 1fr);
  align-items: baseline;
  gap: 6px;
}

.whale-performance-roi span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.whale-performance-roi strong {
  max-width: none;
  font-size: 11px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.whale-performance-roi strong.positive {
  color: var(--green);
}

.whale-performance-roi strong.negative {
  color: var(--red);
}

.whale-performance-quality {
  min-width: 150px;
}

.whale-performance-quality small {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whale-performance-source-movements {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.whale-performance-source-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.whale-performance-source-head h3,
.whale-performance-source-head p {
  margin: 0;
}

.whale-performance-source-head h3 {
  font-size: 13px;
}

.whale-performance-source-head p,
.whale-performance-source-head > span {
  color: var(--muted);
  font-size: 11px;
}

.whale-performance-source-head > div {
  display: grid;
  gap: 3px;
}

.whale-performance-movements-table {
  overflow-x: auto;
}

.whale-performance-movements-table table {
  min-width: 900px;
}

.whale-performance-movements-table th,
.whale-performance-movements-table td {
  padding: 8px 9px;
  font-size: 11px;
}

.whale-performance-movements-empty {
  padding: 14px;
}

.whale-view table th,
.whale-view table td {
  padding-right: 11px;
  padding-left: 11px;
}

.whale-smart-wallet-table .cell-mono,
.whale-signal-table .cell-mono {
  max-width: 170px;
  color: var(--muted);
  font-size: 11px;
}

.whale-wallet-address-cell {
  display: flex;
  align-items: flex-start;
  min-width: 300px;
  gap: 7px;
}

.whale-wallet-address-cell .cell-mono {
  max-width: 250px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.whale-copy-button {
  min-height: 24px;
  padding: 2px 7px;
  font-size: 11px;
}

.whale-skip-note {
  display: block;
  max-width: 150px;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.3;
}

.whale-smart-wallet-bulk {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.whale-smart-wallet-bulk > strong {
  min-width: 78px;
  font-size: 12px;
}

.whale-smart-wallet-bulk > span {
  flex: 1 1 320px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.whale-smart-wallet-bulk .text-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.whale-wallet-preview {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.whale-wallet-preview[hidden] {
  display: none;
}

.whale-preview-error {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.whale-import-error-table {
  min-width: 680px;
}

#smartWalletDetailsModal,
#smartWalletImportModal {
  width: min(1120px, calc(100% - 28px));
}

.whale-smart-wallet-actions,
.whale-signal-actions {
  flex-wrap: wrap;
  min-width: 230px;
}

.whale-smart-wallet-actions .text-button,
.whale-signal-actions .text-button,
.whale-signal-actions .text-link-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

.whale-advanced-actions {
  position: relative;
}

.whale-smart-wallet-actions .whale-primary-action {
  border-color: #91add0;
  background: #edf5ff;
  color: #174f91;
}

.whale-smart-wallet-actions .whale-primary-action:hover {
  border-color: #6e93c0;
  background: #dfedff;
}

.whale-advanced-actions > summary {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  white-space: nowrap;
}

.whale-advanced-actions > summary::-webkit-details-marker {
  display: none;
}

.whale-advanced-actions > summary::after {
  margin-left: 7px;
  color: var(--muted);
  content: "\25BE";
}

.whale-advanced-actions[open] > summary {
  border-color: #9fb3c8;
  background: #f5f8fc;
}

.whale-advanced-actions-menu {
  display: grid;
  min-width: 190px;
  gap: 5px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px;
  background: #fff;
  box-shadow: var(--shadow);
}

.whale-advanced-actions-menu .text-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.whale-discovery-table strong,
.whale-smart-wallet-table strong,
.whale-signal-table strong,
.whale-performance-table strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whale-analysis-status {
  display: grid;
  min-width: 150px;
  gap: 4px;
}

.whale-analysis-status > small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.whale-wallet-run-status {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.whale-wallet-run-status > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.whale-wallet-run-status strong {
  max-width: 120px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  white-space: normal;
}

.whale-wallet-run-status strong.success {
  color: var(--green);
}

.whale-wallet-run-status strong.warning {
  color: var(--amber);
}

.whale-wallet-run-status strong.danger {
  color: var(--red);
}

.whale-wallet-run-status > small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.whale-analysis-checks > summary {
  width: max-content;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.whale-analysis-checks dl {
  display: grid;
  min-width: 230px;
  gap: 4px;
  margin: 7px 0 0;
}

.whale-analysis-checks dl div {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr;
  gap: 8px;
}

.whale-analysis-checks dt,
.whale-analysis-checks dd,
.whale-analysis-checks p {
  margin: 0;
  font-size: 11px;
}

.whale-analysis-checks dt {
  color: var(--muted);
}

.whale-analysis-checks dd {
  color: var(--ink);
  white-space: nowrap;
}

.whale-analysis-checks p {
  max-width: 230px;
  overflow: hidden;
  color: var(--red);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whale-reason-list,
.whale-risk-list {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.whale-risk-pill,
.whale-reason-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.whale-form-wide {
  grid-column: span 2;
}

.whale-risk-pill.risk-on {
  border-color: #f0a4a0;
  background: var(--red-soft);
  color: var(--red);
}

.whale-risk-pill.risk-off {
  border-color: #b9dfc6;
  background: var(--green-soft);
  color: var(--green);
}

.whale-collapsible {
  border-top: 1px solid var(--line);
}

.panel > .whale-collapsible:first-child {
  border-top: 0;
}

.whale-collapsible summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.whale-collapsible summary::-webkit-details-marker {
  display: none;
}

.whale-collapsible summary::after {
  color: var(--muted);
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.whale-collapsible[open] summary::after {
  content: "-";
}

.whale-section-note {
  padding: 0 16px 12px;
  color: var(--muted);
  font-size: 13px;
}

.whale-card-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.whale-wallet-card,
.whale-alert-card,
.whale-discovery-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.whale-wallet-card {
  grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
  align-items: start;
}

.whale-discovery-card {
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  align-items: start;
}

.whale-wallet-card-main,
.whale-wallet-score,
.whale-alert-card > div {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.whale-wallet-title,
.whale-wallet-meta,
.whale-alert-card-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.whale-discovery-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.whale-discovery-metrics span {
  display: grid;
  min-width: 0;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.whale-discovery-metrics strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whale-discovery-reason {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.whale-wallet-title {
  justify-content: space-between;
}

.whale-wallet-title strong,
.whale-alert-card strong {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whale-wallet-meta span:not(.signal),
.whale-alert-card span:not(.signal) {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whale-wallet-score {
  justify-items: end;
  text-align: right;
}

.whale-wallet-score > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.whale-wallet-score strong {
  font-size: 28px;
  line-height: 1;
}

.whale-alert-card {
  grid-template-columns: minmax(150px, 0.9fr) auto minmax(240px, 1.2fr);
  align-items: center;
}

.whale-alert-card-meta {
  justify-content: flex-end;
}

.whale-alert-card .whale-discovery-reason {
  grid-column: 1 / -1;
}

.whale-discovery-modal-body h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

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

.whale-detail-grid section,
.whale-detail-section {
  display: grid;
  min-width: 0;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.whale-detail-grid dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.whale-detail-grid dl div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.whale-detail-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.whale-detail-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
}

.whale-detail-section p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.whale-inline-table {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.whale-inline-table th,
.whale-inline-table td {
  padding: 8px;
  font-size: 12px;
}

.whale-modal-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.whale-modal-field-full {
  grid-column: 1 / -1;
}

.whale-compact-panel .table-wrap,
.whale-legacy-panel .table-wrap {
  border-top: 1px solid var(--line);
}

.whale-nested-head {
  border-top: 1px solid var(--line);
}

.whale-check {
  display: inline-flex !important;
  min-height: 36px;
  align-items: center;
  grid-template-columns: auto auto;
  gap: 8px !important;
  color: var(--ink) !important;
}

.whale-check input {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--green);
}

.whale-form-actions,
.whale-table-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.whale-form-actions {
  justify-content: flex-end;
  justify-self: end;
}

.cell-mono {
  max-width: 260px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  text-overflow: ellipsis;
}

.whale-alert-message {
  max-width: 520px;
  white-space: pre-wrap;
}

.whale-message {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(460px, calc(100vw - 32px));
  border: 1px solid #bce8d2;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f6fffa;
  color: var(--green);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
}

.whale-message.error {
  border-color: #f0a4a0;
  background: var(--red-soft);
  color: var(--red);
}

.scaffold-method-card code {
  overflow: hidden;
  border-radius: 8px;
  padding: 7px 8px;
  background: #eef2f7;
  color: #364152;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallets-page-layout {
  width: min(1680px, 100%);
}

.login-layout {
  display: grid;
  min-height: 100vh;
  align-items: center;
  justify-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  overflow: hidden;
}

.login-panel .modal-actions {
  justify-content: stretch;
}

.login-panel .text-button {
  width: 100%;
}

.top-activity-panel {
  margin-bottom: 16px;
}

.dashboard-status-panel .activity-strategy-summary {
  border-bottom: 0;
}

.dashboard-activity-feed-panel {
  margin-top: 0;
}

.main-nav-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
}

.main-nav-card {
  display: grid;
  min-width: 0;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
  color: var(--ink);
  text-decoration: none;
}

.main-nav-card:hover {
  border-color: #aeb8c4;
  background: #fff;
}

.main-nav-card strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.base-dashboard-layout {
  align-items: stretch;
}

.base-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(360px, 0.68fr);
  gap: 16px;
  margin-bottom: 16px;
}

.base-status-note {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.base-status-note strong {
  font-size: 13px;
}

.base-status-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.base-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.base-wallet-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.base-wallet-list .wallet-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.base-message-ok {
  border-color: #b9dcc8;
  background: #f4fbf7;
  color: #166534;
}

#baseStrategyWalletFields .strategy-wallet-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

#baseStrategyWalletFields .strategy-wallet-option input {
  width: 16px;
  height: 16px;
}

#baseStrategyWalletFields .strategy-wallet-option span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

#baseStrategyWalletFields .strategy-wallet-option small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(760px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-logs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.profile-logs-grid > .launch-panel {
  order: 1;
}

.profile-logs-grid > .trade-panel {
  grid-column: auto;
  order: 2;
}

.profile-logs-grid > .activity-panel {
  grid-column: 1 / -1;
  order: 3;
  margin-top: 0;
}

.profile-logs-grid > .trade-panel .trade-list {
  grid-template-columns: 1fr;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head.compact {
  min-height: 54px;
}

.launch-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.launch-summary-item {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.launch-summary-filter {
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.launch-summary-filter:hover,
.launch-summary-filter:focus-visible {
  background: #f2f6fb;
  outline: 0;
  box-shadow: inset 0 0 0 1px #b9c9dc;
}

.launch-summary-filter.active {
  background: #eef4ff;
  box-shadow: inset 0 0 0 2px #7da2d8;
}

.launch-summary-item:last-child {
  border-right: 0;
}

.launch-summary-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.launch-summary-item strong {
  display: block;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-panel-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.launch-limit-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.launch-limit-control select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.wallet-panel-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-head-title {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.wallet-panel .panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.wallet-summary {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.wallet-summary span {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.wallet-summary strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-list-head {
  align-items: flex-start;
}

.wallet-list-heading {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
}

.wallet-list-summary {
  display: grid;
  gap: 8px;
}

.wallet-summary-context {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.wallet-summary-context span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wallet-summary-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.wallet-summary-card {
  display: grid;
  min-width: 0;
  min-height: 72px;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfcfd;
}

.wallet-summary-card span,
.wallet-summary-card small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-summary-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-summary-card.primary {
  border-color: #b9c9dc;
  background: #f8fbff;
}

.wallet-summary-card.balance {
  border-color: #b9dfc6;
  background: var(--green-soft);
}

.wallet-panel-tools select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

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

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

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

td.mint-cell {
  max-width: 210px;
  overflow: hidden;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  text-overflow: ellipsis;
}

.mint-token-link {
  color: inherit;
  text-decoration: none;
}

.mint-token-link:hover,
.mint-token-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.decision,
.signal {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.decision.accepted,
.signal.on {
  background: var(--green-soft);
  color: var(--green);
}

.decision.rejected,
.signal.off {
  background: var(--red-soft);
  color: var(--red);
}

body[data-project="whale-bot"] .signal.success {
  background: var(--green-soft);
  color: var(--green);
}

body[data-project="whale-bot"] .signal.danger {
  background: var(--red-soft);
  color: var(--red);
}

body[data-project="whale-bot"] .signal.warning {
  background: var(--amber-soft);
  color: var(--amber);
}

body[data-project="whale-bot"] .signal.info {
  background: #eef4ff;
  color: #1d4ed8;
}

body[data-project="whale-bot"] .signal.neutral {
  background: #eef2f7;
  color: #5c6673;
}

.whale-quality-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 118px;
}

.whale-score-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 8px;
}

.whale-score-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.whale-score-breakdown > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  text-transform: capitalize;
}

.whale-reject-reason {
  margin-top: 4px;
  max-width: 180px;
  overflow-wrap: anywhere;
}

.whale-setting-item strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.whale-settings-actions {
  margin: 12px 0;
}

.whale-run-details-grid span {
  min-width: 180px;
}

.whale-run-settings-snapshot {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.whale-run-settings-snapshot h3 {
  margin: 0;
  font-size: 13px;
}

.whale-run-details-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.whale-run-details-columns h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.whale-run-events {
  display: grid;
  gap: 6px;
}

.whale-run-events > div {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(80px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.whale-run-events time,
.whale-run-events span {
  color: var(--muted);
}

@media (max-width: 820px) {
  .whale-score-breakdown {
    grid-template-columns: 1fr;
  }

  .whale-run-details-columns {
    grid-template-columns: 1fr;
  }

  .whale-run-events > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

body[data-project="whale-bot"] .signal {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.whale-summary-card strong.whale-summary-status {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 800;
  text-transform: capitalize;
}

.whale-summary-status.success,
.whale-status-value.success {
  background: var(--green-soft);
  color: var(--green);
}

.whale-summary-status.danger,
.whale-status-value.danger {
  background: var(--red-soft);
  color: var(--red);
}

.whale-summary-status.warning,
.whale-status-value.warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.whale-summary-status.neutral,
.whale-status-value.neutral {
  background: #eef2f7;
  color: #5c6673;
}

.whale-discovery-status strong.whale-status-value {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 12px;
  text-transform: capitalize;
}

.whale-discovery-status strong.whale-method-badge {
  width: fit-content;
  max-width: 100%;
  color: inherit;
  font-size: 11px;
}

.signal.strategy {
  max-width: 130px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: #eef4ff;
  color: #1d4ed8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 160px;
}

.side-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.trade-panel {
  grid-column: 1 / -1;
}

.trade-panel .panel-head.compact {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  min-height: 0;
}

.trade-panel .panel-head.compact h2 {
  margin: 0;
}

.trade-panel-tools {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(170px, 1.2fr) minmax(108px, 0.7fr);
  align-items: end;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.trade-panel-tools .launch-limit-control {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  min-width: 0;
}

.trade-panel-tools .launch-limit-control select {
  width: 100%;
  min-width: 0;
}

.trade-token-filter {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
}

.trade-token-combobox {
  position: relative;
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.trade-token-input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.trade-token-input:focus {
  border-color: #93c5fd;
  outline: 2px solid #dbeafe;
  outline-offset: 0;
}

.trade-token-clear {
  flex: 0 0 auto;
  width: 34px;
  font-size: 14px;
}

.trade-token-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  right: 40px;
  left: 0;
  display: grid;
  overflow: auto;
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgb(15 23 42 / 16%);
}

.trade-token-options[hidden] {
  display: none !important;
}

.trade-token-option {
  display: grid;
  gap: 2px;
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.trade-token-option:hover,
.trade-token-option:focus-visible,
.trade-token-option[aria-selected="true"] {
  background: #f0f9ff;
}

.trade-token-option strong,
.trade-token-option span,
.trade-token-option-empty {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-token-option strong {
  font-size: 13px;
}

.trade-token-option span,
.trade-token-option-empty {
  color: var(--muted);
  font-size: 11px;
}

.trade-token-option-empty {
  padding: 9px 10px;
}

.config-list,
.strategy-config-list {
  display: grid;
  margin: 0;
  padding: 8px 16px 16px;
  gap: 8px;
}

.config-list div,
.strategy-config-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  min-height: 26px;
  align-items: center;
}

.config-list dt,
.strategy-config-list dt {
  color: var(--muted);
  font-size: 12px;
}

.config-list dd,
.strategy-config-list dd {
  margin: 0;
  max-width: 190px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-list,
.activity-list,
.wallet-box {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.trade-panel .trade-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-box {
  gap: 6px;
}

.trade-item,
.activity-item,
.wallet-item {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.trade-item.success {
  border-color: #bce8d2;
  background: #f6fffa;
}

.trade-item.failed {
  border-color: #f4c7c7;
  background: #fffafa;
}

.trade-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.trade-title strong {
  min-width: 0;
}

.trade-title .decision {
  flex: 0 0 auto;
}

.trade-links {
  align-items: flex-start;
}

.trade-link,
.trade-reference-pill {
  max-width: 100%;
}

.trade-transaction-link {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
}

.trade-transaction-link:hover,
.trade-transaction-link:focus-visible {
  border-color: #0369a1;
  text-decoration: underline;
}

.activity-item {
  border-left-width: 4px;
}

.activity-item.success {
  border-color: #bce8d2;
  border-left-color: var(--green);
  background: #f6fffa;
}

.activity-item.success strong {
  color: #075f3c;
}

.activity-item.warning {
  border-color: #f4d79d;
  border-left-color: var(--amber);
  background: #fffaf0;
}

.activity-item.warning strong {
  color: #7b4700;
}

.activity-item.error {
  border-color: #f3b9b4;
  border-left-color: var(--red);
  background: #fff7f6;
}

.activity-item.error strong {
  color: #8c1d14;
}

.activity-item.neutral {
  border-left-color: #8fa0b3;
}

.activity-item .activity-detail {
  display: block;
  margin-top: 4px;
  color: #536579;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wallet-list-large .wallet-item {
  padding-left: 42px;
}

.wallet-row {
  cursor: pointer;
}

.wallet-row:focus-within,
.wallet-row:hover {
  border-color: #b9c9dc;
  background: #f8fbff;
}

.wallet-item-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 8px 10px;
}

.wallet-item-compact .wallet-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.strategy-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.strategy-head {
  display: grid;
  gap: 8px;
}

.strategy-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.strategy-title-main {
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.strategy-head-actions {
  display: grid;
  grid-template-columns: minmax(126px, 1.28fr) minmax(96px, 1fr) minmax(88px, 0.92fr);
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.strategy-head-actions .text-button,
.strategy-head-actions .text-link-button {
  justify-content: center;
  min-width: 0;
  padding-inline: 8px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-head-actions-two {
  grid-template-columns: minmax(148px, 1fr) minmax(106px, 0.72fr);
}

.strategy-panel-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.strategies-page-panel .panel-head {
  align-items: flex-start;
}

.strategies-page-panel .strategy-runtime-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0 16px;
}

.strategies-page-panel .strategy-runtime-stats div {
  display: grid;
  min-height: 62px;
  align-content: center;
  gap: 6px;
  border-color: #d8e1eb;
  padding: 11px 14px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fb 100%);
}

.strategies-page-panel .strategy-runtime-stats span {
  font-size: 12px;
}

.strategies-page-panel .strategy-runtime-stats strong {
  margin-top: 0;
  font-size: 15px;
  line-height: 1;
}

.strategies-page-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.strategies-page-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.strategies-page-list .strategy-item {
  grid-template-rows: auto auto auto;
  min-width: 0;
  padding: 12px;
}

.strategies-page-list .strategy-head {
  align-content: start;
}

.strategy-head-actions-page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strategies-page-list .strategy-config-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0;
  overflow: visible;
}

.strategies-page-list .strategy-config-list div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.strategies-page-list .strategy-config-list dt,
.strategies-page-list .strategy-config-list dd {
  min-width: 0;
}

.strategies-page-list .strategy-config-list dd {
  max-width: min(260px, 46vw);
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.strategy-title-row strong {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.strategy-badge.active {
  background: var(--green-soft);
  color: var(--green);
}

.strategy-badge.paused {
  background: var(--amber-soft);
  color: var(--amber);
}

.strategy-badge.limit {
  background: var(--red-soft);
  color: var(--red);
}

.strategy-badge.archived {
  background: #f3f4f6;
  color: var(--muted);
}

.strategy-status-button.start {
  border-color: #b9dfc6;
  color: var(--green);
}

.strategy-status-button.pause {
  border-color: #f0d7a6;
  color: var(--amber);
}

.strategy-wallet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.strategy-wallet-tag {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-wallet-tag.connected {
  border-color: #b9dfc6;
  background: var(--green-soft);
  color: var(--green);
}

.strategy-wallet-tag.disconnected {
  border-color: #f0d7a6;
  background: #fff8e9;
  color: #8a6500;
}

.strategy-wallet-tag.archived {
  background: #f3f4f6;
  color: var(--muted);
}

.strategy-item .strategy-config-list {
  padding: 0;
}

.strategy-volume-limit {
  display: grid;
  gap: 6px;
  padding: 8px 0 2px;
}

.strategy-volume-limit-head,
.strategy-volume-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.strategy-volume-limit-head span,
.strategy-volume-meta {
  color: var(--muted);
  font-size: 12px;
}

.strategy-volume-limit-head strong {
  font-size: 12px;
}

.strategy-volume-limit-tools {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.strategy-limit-lock {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.strategy-limit-refresh {
  min-height: 28px;
  padding-inline: 9px;
  font-size: 12px;
}

.strategy-volume-limit.locked .strategy-volume-track span {
  background: var(--red);
}

.strategy-volume-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
}

.strategy-volume-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #22c55e);
}

.strategy-runtime-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 0;
}

.strategy-runtime-stats div {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px;
  background: #f8fafc;
}

.strategy-runtime-stats span,
.strategy-runtime-stats strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-runtime-stats span {
  color: var(--muted);
  font-size: 11px;
}

.strategy-runtime-stats strong {
  margin-top: 3px;
  font-size: 12px;
}

.strategy-performance-modal-body,
.strategy-performance-body {
  display: grid;
  gap: 12px;
}

.performance-range-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.strategy-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.performance-metric-card {
  display: grid;
  gap: 6px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.performance-metric-card span,
.performance-result-row span {
  color: var(--muted);
  font-size: 12px;
}

.performance-metric-card strong {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 18px;
}

.performance-usd-equivalent {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.performance-wallet-row .performance-usd-equivalent {
  margin-left: 4px;
  font-size: 10px;
}

.performance-metric-card.positive strong,
.performance-result-row .positive {
  color: var(--green);
}

.performance-metric-card.negative strong,
.performance-result-row .negative {
  color: var(--red);
}

.performance-result-list {
  display: grid;
  gap: 6px;
}

.wallet-performance-pager {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-top: 2px;
}

.performance-section {
  display: grid;
  gap: 8px;
}

.performance-section.secondary {
  opacity: 0.92;
}

.performance-section-head {
  display: grid;
  gap: 2px;
}

.performance-section-head h3 {
  margin: 0;
  font-size: 13px;
}

.performance-transaction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.performance-transaction-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.performance-transaction-card.successful {
  border-color: #b9dfc6;
  background: var(--green-soft);
}

.performance-transaction-card.failed {
  border-color: #f0c2bf;
  background: var(--red-soft);
}

.performance-transaction-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.performance-transaction-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.performance-transaction-card dt {
  color: var(--muted);
  font-size: 12px;
}

.performance-transaction-card dd {
  margin: 0;
  font-weight: 800;
}

.performance-wallet-table {
  display: grid;
  gap: 6px;
}

.performance-wallet-count {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.performance-wallet-header,
.performance-wallet-row {
  display: grid;
  grid-template-columns:
    minmax(170px, 1.3fr) minmax(132px, 0.9fr) minmax(118px, 0.78fr)
    minmax(130px, 0.85fr) minmax(78px, 0.48fr) minmax(58px, 0.4fr);
  gap: 10px;
  align-items: center;
}

.performance-wallet-header {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.performance-wallet-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  font-size: 12px;
}

.performance-wallet-row.inactive {
  background: #f8fafc;
  color: var(--muted);
}

.performance-wallet-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.performance-wallet-row strong,
.performance-wallet-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performance-wallet-row div span {
  color: var(--muted);
}

.performance-wallet-row .performance-wallet-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  white-space: normal;
}

.performance-wallet-balance-pill {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.performance-wallet-funding-status {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.performance-wallet-row .performance-wallet-balance {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  white-space: normal;
}

.performance-wallet-row .performance-wallet-balance b {
  color: var(--red);
  font-size: 11px;
}

.performance-wallet-status {
  font-size: 11px;
  font-weight: 800;
  text-transform: lowercase;
}

.performance-wallet-status.approved {
  color: var(--green);
}

.performance-wallet-status.disapproved,
.performance-wallet-status.not-approve {
  color: var(--red);
}

.performance-wallet-status.archived {
  color: var(--muted);
}

.performance-wallet-row .positive {
  color: var(--green);
  font-weight: 800;
}

.performance-wallet-row .negative {
  color: var(--red);
  font-weight: 800;
}

.performance-wallet-row .neutral {
  color: var(--muted);
  font-weight: 800;
}

.performance-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.performance-trade-row.success {
  border-color: #bce8d2;
  background: #f6fffa;
}

.performance-trade-row.failed {
  border-color: #f4c7c7;
  background: #fffafa;
}

.performance-token-link {
  color: inherit;
  text-decoration: none;
}

.performance-token-link:hover,
.performance-token-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.performance-trade-outcome {
  justify-items: end;
}

.performance-trade-outcome .activity-pill {
  justify-self: end;
}

.performance-result-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.performance-result-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-item-compact .wallet-balance {
  grid-column: 1;
}

.wallet-item-compact .wallet-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
}

.wallet-list-header,
.wallet-row {
  display: grid;
  grid-template-columns: 28px minmax(240px, 1.35fr) minmax(112px, 0.5fr) minmax(132px, 0.58fr) minmax(92px, 0.42fr) minmax(144px, 0.58fr) minmax(328px, 0.9fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.wallet-list-header {
  padding: 0 12px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.wallet-row.wallet-item {
  padding: 10px 12px;
}

.wallet-cell {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.wallet-cell strong {
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
}

.wallet-cell-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.wallet-select-cell {
  justify-items: center;
  padding-top: 4px;
}

.wallet-status-cell {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wallet-strategy-cell {
  align-content: start;
}

.wallet-strategy-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.wallet-strategy-tag {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef6ff;
  color: #25577f;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-item.selected {
  border-color: #9fb3c8;
  background: #f6fbff;
}

.wallet-copy-button {
  flex: 0 0 auto;
  width: 32px;
  min-height: 32px;
  font-size: 16px;
}

.trade-item strong,
.activity-item strong,
.wallet-item strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-item span,
.activity-item span,
.wallet-item span {
  color: var(--muted);
  font-size: 12px;
}

.wallet-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.wallet-status.connected {
  background: var(--green-soft);
  color: var(--green);
}

.wallet-status.disconnected {
  background: var(--red-soft);
  color: var(--red);
}

.wallet-status.archived {
  background: #edf1f5;
  color: var(--muted);
}

.wallet-new-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.wallet-key {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}

.wallet-key-row {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 6px;
  align-items: center;
}

.wallet-solscan-link {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.wallet-solscan-link:hover,
.wallet-solscan-link:focus-visible {
  color: #075985;
  text-decoration: underline;
}

.wallet-item .wallet-name {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.wallet-delta.positive {
  color: var(--green);
}

.wallet-delta.negative {
  color: var(--red);
}

.wallet-delta.neutral {
  color: var(--muted);
}

.wallet-performance-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.wallet-performance-summary div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wallet-performance-summary strong,
.wallet-performance-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-performance-address-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
  word-break: break-word;
}

.wallet-performance-address-link:hover,
.wallet-performance-address-link:focus-visible {
  color: #075985;
  text-decoration: underline;
}

.wallet-performance-strategies {
  justify-content: flex-start;
}

.wallet-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.wallet-row > .wallet-actions .text-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 7px;
  font-size: 11px;
  white-space: nowrap;
}

.wallet-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.wallet-selection-toggles {
  display: grid;
  gap: 6px;
}

.wallet-select-all,
.wallet-select-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.wallet-select-row {
  position: absolute;
  top: 12px;
  left: 12px;
}

.wallet-row .wallet-select-row {
  position: static;
}

.wallet-select-all input,
.wallet-select-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.wallet-selection-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.wallet-selected-balance {
  font-weight: 700;
}

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

.wallet-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.wallet-form-title {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.wallet-form-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wallet-form-headline .text-button {
  min-height: 32px;
  padding-inline: 12px;
}

.wallet-form-headline .text-button.active {
  border-color: #9fb3c8;
  background: #eef6ff;
  color: #075985;
}

.wallet-form-grid {
  display: grid;
  grid-template-columns: minmax(92px, 0.7fr) minmax(0, 1.3fr);
  gap: 10px;
}

.wallet-form-grid-single {
  grid-template-columns: minmax(120px, 1fr);
}

.wallet-list-message {
  margin: 0;
  padding: 0 12px 8px;
}

.wallet-create-page-panel {
  overflow: hidden;
}

.wallet-create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.wallet-import-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-generate-grid {
  grid-template-columns: minmax(260px, 520px);
}

.wallet-create-grid .wallet-form {
  border-top: 1px solid var(--line);
}

.wallet-warm-up-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.warm-up-main-column {
  display: grid;
  min-width: 0;
}

.warm-up-profile-log-panel {
  align-self: stretch;
  align-content: start;
  border-left: 1px solid var(--line);
}

.warm-up-profile-log-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.warm-up-profile-history-modal {
  width: min(920px, calc(100% - 28px));
}

.warm-up-profile-history-body {
  align-content: start;
}

.warm-up-profile-history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.warm-up-profile-history-stat {
  display: grid;
  min-width: 0;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fbfcfd;
}

.warm-up-profile-history-stat strong,
.warm-up-profile-history-stat small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-profile-history-stat strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
}

.warm-up-profile-history-stat small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.warm-up-profile-history-list {
  display: grid;
  gap: 6px;
}

.warm-up-profile-log-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.warm-up-profile-log-stat {
  display: grid;
  min-width: 0;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fbfcfd;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.warm-up-profile-log-stat:hover,
.warm-up-profile-log-stat:focus-visible {
  border-color: #9fb2c8;
  color: var(--ink);
  outline: 0;
}

.warm-up-profile-log-stat.active {
  border-color: #7d95b2;
  background: #f3f8ff;
  box-shadow: inset 0 0 0 1px rgba(125, 149, 178, 0.35);
}

.warm-up-profile-log-stat strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-profile-log-stat span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-profile-log-list {
  display: grid;
  gap: 6px;
  max-height: 700px;
  overflow: auto;
}

.warm-up-profile-log-empty {
  display: grid;
  gap: 4px;
  border: 1px dashed #c8d3df;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.warm-up-profile-log-empty strong {
  color: var(--ink);
  font-size: 13px;
}

.warm-up-profile-log-item {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
}

.warm-up-profile-log-head,
.warm-up-profile-log-meta,
.warm-up-profile-log-route {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.warm-up-profile-log-head {
  justify-content: space-between;
}

.warm-up-profile-log-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.warm-up-profile-log-head strong,
.warm-up-profile-log-meta span,
.warm-up-profile-log-route span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-profile-log-head strong {
  color: var(--ink);
  font-size: 13px;
}

.warm-up-profile-log-meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
}

.warm-up-profile-log-route {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.warm-up-profile-log-item p {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-profile-log-status[title] {
  cursor: help;
}

.warm-up-side-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 36px;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.warm-up-side-badge.buy {
  background: #e8f8ef;
  color: #137547;
}

.warm-up-side-badge.sell {
  background: #fff0e6;
  color: #9a4a0f;
}

.warm-up-strategy-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.warm-up-strategy-limit-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.wallet-generated-history-meta.warm-up-strategy-fill {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0;
}

.warm-up-strategy-fill-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.warm-up-strategy-fill-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.warm-up-strategy-fill-head span,
.warm-up-strategy-fill-meta {
  color: var(--muted);
  font-size: 12px;
}

.warm-up-strategy-fill-head strong {
  color: var(--ink);
  font-size: 12px;
}

.warm-up-strategy-fill-track {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #e9edf2;
}

.warm-up-strategy-fill-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b7a4b, #22c55e);
}

.warm-up-strategy-fill-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.warm-up-strategy-fill-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-strategy-fill-meta strong {
  color: var(--ink);
}

.warm-up-toggle-button.start {
  border-color: #b9dfc6;
  color: var(--green);
}

.warm-up-toggle-button.stop {
  border-color: #f0d7a6;
  color: var(--amber);
}

.warm-up-check-wallets-button {
  justify-self: stretch;
}

dialog.warm-up-wallet-check-modal {
  width: min(1760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.warm-up-wallet-check-modal .modal-panel {
  max-height: calc(100vh - 24px);
}

.warm-up-wallet-check-body {
  gap: 14px;
}

.warm-up-wallet-check-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.warm-up-wallet-check-summary span {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.warm-up-wallet-check-summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-wallet-check-progress {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e9edf2;
}

.warm-up-wallet-check-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b7a4b, #22c55e);
}

.warm-up-wallet-check-section {
  display: grid;
  gap: 8px;
}

.warm-up-wallet-check-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.warm-up-wallet-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.warm-up-wallet-check-item {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
}

.warm-up-wallet-check-item-head,
.warm-up-wallet-check-address,
.warm-up-wallet-check-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.warm-up-wallet-check-item-head {
  justify-content: space-between;
}

.warm-up-wallet-check-item-head strong,
.warm-up-wallet-check-address,
.warm-up-wallet-check-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-wallet-check-item-head strong {
  color: var(--ink);
  font-size: 13px;
}

.warm-up-wallet-check-address {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.warm-up-wallet-check-meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.warm-up-wallet-token-panel {
  display: grid;
  min-width: 0;
  gap: 7px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.warm-up-wallet-token-panel.error {
  color: #9b1c1c;
}

.warm-up-wallet-token-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.warm-up-wallet-token-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-wallet-token-head strong {
  border-radius: 999px;
  padding: 2px 8px;
  background: #e8f4ff;
  color: #25577f;
  font-size: 11px;
}

.warm-up-wallet-token-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  min-width: 0;
  gap: 8px;
}

.warm-up-wallet-token-chip {
  display: grid;
  min-width: 0;
  gap: 2px;
  overflow: hidden;
  border: 1px solid #cddce8;
  border-radius: 8px;
  padding: 6px 7px;
  background: #fbfdff;
  color: #25577f;
  text-decoration: none;
}

.warm-up-wallet-token-chip:hover,
.warm-up-wallet-token-chip:focus-visible {
  border-color: #8db9dc;
  outline: none;
  background: #f2f8fd;
}

.warm-up-wallet-token-chip strong,
.warm-up-wallet-token-chip span,
.warm-up-wallet-token-chip small {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.warm-up-wallet-token-chip strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.warm-up-wallet-token-chip span,
.warm-up-wallet-token-chip small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.warm-up-wallet-token-chip span {
  word-break: break-all;
}

.warm-up-wallet-check-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .warm-up-wallet-check-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .warm-up-wallet-token-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.warm-up-strategy-preview {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.warm-up-strategy-preview div {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 4px;
}

.warm-up-strategy-preview dt,
.warm-up-strategy-preview dd {
  max-width: none;
  text-align: left;
}

.warm-up-strategy-modal-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.warm-up-strategy-modal-body > label.strategy-field-full,
.warm-up-strategy-modal-body .warm-up-strategy-option-row,
.warm-up-strategy-modal-body .warm-up-wallet-fields,
.warm-up-strategy-modal-body .form-message {
  grid-column: 1 / -1;
}

.warm-up-strategy-option-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.warm-up-strategy-check-option,
.warm-up-strategy-check-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  cursor: pointer;
}

.warm-up-strategy-check-option {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfd;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.warm-up-strategy-check-option:hover,
.warm-up-strategy-check-option:focus-within {
  border-color: #b9c9dc;
  background: #f4f8fc;
}

.warm-up-strategy-check-option:has(input:checked) {
  border-color: #efb08f;
  background: #fff7f2;
}

.warm-up-strategy-check-option-with-action {
  grid-template-columns: minmax(0, 1fr) auto;
}

.warm-up-strategy-check-label {
  grid-template-columns: auto minmax(0, 1fr);
}

.warm-up-strategy-check-option input,
.warm-up-strategy-check-label input {
  width: 17px;
  min-height: 17px;
  margin: 0;
  padding: 0;
  accent-color: #df5f35;
}

.warm-up-strategy-check-box {
  display: none;
}

.warm-up-strategy-check-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.warm-up-strategy-check-copy strong,
.warm-up-strategy-check-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.warm-up-strategy-check-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.warm-up-strategy-check-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

@media (max-width: 720px) {
  .warm-up-strategy-option-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .warm-up-strategy-check-option-with-action {
    grid-template-columns: minmax(0, 1fr);
  }

  .warm-up-strategy-check-option-with-action .strategy-wallet-clear-button {
    justify-self: start;
  }
}

.warm-up-wallet-fields .strategy-wallet-options {
  max-height: 260px;
  overflow: auto;
}

.wallet-generator-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.wallet-generator-tab {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.wallet-generator-tab.active {
  border-color: #9fb7d2;
  background: #edf6ff;
  color: var(--text);
}

.wallet-generator-panel {
  display: grid;
  gap: 10px;
}

.wallet-history-actions,
.wallet-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-history-search {
  display: block;
}

.wallet-history-search input {
  width: 100%;
  min-width: 0;
}

.wallet-generated-history-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.wallet-generated-history-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fbfdff;
}

.wallet-generated-history-main,
.wallet-generated-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.wallet-generated-history-main strong,
.wallet-generated-history-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-generated-history-main span,
.wallet-generated-history-meta {
  color: var(--muted);
  font-size: 12px;
}

.wallet-generated-history-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

#warmUpRunsList {
  max-height: 460px;
}

.warm-up-run-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.warm-up-run-head,
.warm-up-run-subtitle {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.warm-up-run-head div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.warm-up-run-head strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-run-head span,
.warm-up-run-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.warm-up-run-subtitle {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.warm-up-run-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.warm-up-run-stat {
  display: grid;
  min-width: 0;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.warm-up-run-stat small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-run-stat strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-run-stat.danger {
  border-color: #f0c2bf;
  background: var(--red-soft);
}

.warm-up-attempt-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.warm-up-attempt-preview span,
.warm-up-attempt-preview button.warm-up-more-attempts {
  display: inline-flex;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-attempt-preview button.warm-up-more-attempts {
  cursor: pointer;
  font-family: inherit;
}

.warm-up-attempt-preview button.warm-up-more-attempts:hover,
.warm-up-attempt-preview button.warm-up-more-attempts:focus-visible {
  border-color: #8fb0d4;
  background: #edf6ff;
  color: #123e5e;
}

.warm-up-attempt-preview .warm-up-side-badge {
  min-height: 18px;
  border: 0;
  padding: 2px 6px;
  font-size: 10px;
}

.warm-up-attempt-preview b {
  color: var(--ink);
  font-size: 11px;
}

.warm-up-wallet-solscan-link {
  min-width: 0;
  overflow: hidden;
  color: #25577f;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warm-up-wallet-solscan-link:hover,
.warm-up-wallet-solscan-link:focus-visible {
  color: #123e5e;
  text-decoration: underline;
}

.warm-up-attempt-preview i {
  color: var(--muted);
  font-style: normal;
}

.warm-up-attempt-preview .warm-up-more-attempts {
  border-color: #b9c9dc;
  background: #f8fbff;
  color: #25577f;
  font-weight: 800;
}

.wallet-generated-export-button {
  min-height: 28px;
  padding-inline: 10px;
}

.wallet-export-confirm {
  display: grid;
  gap: 10px;
}

.wallet-export-result {
  display: grid;
  gap: 10px;
}

.wallet-export-result textarea {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.wallet-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.wallet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 12px;
}

.wallet-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.wallet-tab.active {
  border-color: #9fb3c8;
  background: #eef6ff;
  color: #075985;
}

#walletSearchInput {
  grid-column: 1 / 3;
  grid-row: 1;
}

#walletLimitSelect {
  grid-column: 3;
  grid-row: 1;
}

#walletStatusFilter {
  grid-column: 1;
  grid-row: 2;
  width: fit-content;
}

#walletStrategyFilter {
  grid-column: 2;
  grid-row: 2;
  min-width: 150px;
  width: fit-content;
}

#walletSortSelect {
  grid-column: 3;
  grid-row: 2;
  width: fit-content;
}

.wallet-tools input,
.wallet-tools select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}

.wallet-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.wallet-page-grid > aside.panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wallet-page-grid > aside.panel .panel-head {
  grid-column: 1 / -1;
}

.wallet-list-large {
  display: grid;
  gap: 8px;
  overflow-x: hidden;
  padding: 12px;
}

.wallet-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.wallet-pager-actions {
  display: flex;
  gap: 8px;
}

.withdraw-logs-panel {
  display: grid;
  gap: 0;
  padding: 12px;
}

.withdraw-logs-panel.hidden {
  display: none;
}

.withdraw-logs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}

.withdraw-logs-head h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0;
}

.withdraw-logs-table td {
  vertical-align: middle;
}

.withdraw-log-address,
.withdraw-log-link {
  max-width: 150px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  text-overflow: ellipsis;
}

.withdraw-log-link {
  display: inline-block;
  color: #075985;
  font-weight: 700;
  text-decoration: none;
}

.withdraw-log-link:hover {
  text-decoration: underline;
}

.launch-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.launch-pager-actions {
  display: flex;
  gap: 8px;
}

.wallet-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wallet-form input,
.wallet-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.wallet-form textarea {
  min-height: 92px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

input::placeholder,
textarea::placeholder {
  color: #87919d;
  opacity: 1;
}

.form-message {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}

.form-hint {
  color: var(--muted);
  font-size: 12px;
}

.form-message.error {
  color: var(--red);
}

.form-message.ok {
  color: var(--green);
}

.activity-panel {
  margin-top: 16px;
}

.top-activity-panel.activity-panel {
  margin-top: 0;
}

.activity-strategy-summary {
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.activity-strategy-summary .empty {
  grid-column: 1 / -1;
  padding: 8px;
}

.activity-strategy-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.activity-strategy-stats article {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.activity-strategy-stats span,
.activity-active-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.activity-strategy-stats strong {
  font-size: 18px;
}

.activity-strategy-stats small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-balance-card {
  align-content: start;
}

.activity-balance-change.positive {
  color: var(--green);
}

.activity-balance-change.negative {
  color: var(--red);
}

.activity-balance-change.neutral {
  color: var(--muted);
}

.activity-strategy-stats .positive {
  color: var(--green);
}

.activity-strategy-stats .muted-count {
  color: var(--muted);
}

.activity-active-strategies {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.activity-strategy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.activity-strategy-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-strategy-chip.active {
  background: var(--green-soft);
  color: var(--green);
}

.activity-strategy-chip.paused {
  background: var(--amber-soft);
  color: var(--amber);
}

.activity-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-activity-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activity-meta,
.activity-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  align-items: center;
}

.activity-pill,
.activity-mint {
  display: inline-flex;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-token-link:hover,
.activity-token-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: underline;
}

.trade-token-link {
  display: inline-flex;
  margin-left: 4px;
  vertical-align: middle;
}

.activity-strategy-pill {
  border-color: #c7d7fe;
  background: #eef4ff;
  color: #3157a5;
}

.activity-wallet-link {
  border-color: #bce8d2;
  background: var(--green-soft);
  color: var(--green);
}

.activity-wallet-link:hover,
.activity-wallet-link:focus-visible {
  border-color: var(--green);
  text-decoration: underline;
}

.activity-wallet-pill.approved {
  border-color: #bce8d2;
  background: var(--green-soft);
  color: var(--green);
}

.activity-wallet-pill.not-approved {
  border-color: #f3b9b4;
  background: var(--red-soft);
  color: var(--red);
}

.activity-wallet-pill.archived {
  border-color: var(--line);
  background: #edf1f5;
  color: var(--muted);
}

.activity-wallet-pill.unknown {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

.activity-wallet-link.approved:hover,
.activity-wallet-link.approved:focus-visible {
  border-color: var(--green);
}

.activity-wallet-link.not-approved:hover,
.activity-wallet-link.not-approved:focus-visible {
  border-color: var(--red);
}

.activity-wallet-link.archived:hover,
.activity-wallet-link.archived:focus-visible,
.activity-wallet-link.unknown:hover,
.activity-wallet-link.unknown:focus-visible {
  border-color: #9fb3c8;
}

.dashboard-analytics-panel {
  margin-bottom: 16px;
}

.documentation-layout {
  width: min(1180px, 100%);
}

.documentation-stack {
  display: grid;
  gap: 16px;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fbfcfd;
}

.provider-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.provider-card-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.provider-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.provider-card p,
.provider-card li,
.provider-meta dt,
.provider-meta dd {
  font-size: 13px;
  line-height: 1.45;
}

.provider-card p,
.provider-card li,
.provider-meta dt {
  color: var(--muted);
}

.provider-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.provider-tag.critical {
  background: var(--red-soft);
  color: var(--red);
}

.provider-tag.runtime {
  background: var(--green-soft);
  color: var(--green);
}

.provider-tag.market {
  background: #eef4ff;
  color: #1d4ed8;
}

.provider-meta {
  display: grid;
  gap: 6px;
  margin: 0;
}

.provider-meta div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
}

.provider-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.provider-note-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 16px 16px 32px;
}

.dashboard-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: #fbfcfd;
}

.analytics-card {
  display: grid;
  min-width: 0;
  min-height: clamp(320px, 36vh, 460px);
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.analytics-card-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.analytics-card-head h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.analytics-card-head p,
.analytics-card-main span,
.analytics-card-main small,
.analytics-donut-meta span,
.analytics-donut-meta small,
.analytics-more {
  color: var(--muted);
  font-size: 12px;
}

.analytics-kpi {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.analytics-kpi.positive {
  color: var(--green);
}

.analytics-kpi.warning {
  color: var(--amber);
}

.analytics-kpi.negative {
  color: var(--red);
}

.analytics-card-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.analytics-card-main strong {
  min-width: 0;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-card-main span,
.analytics-donut-meta span {
  font-weight: 800;
  text-transform: uppercase;
}

.analytics-bars,
.analytics-limit-list,
.analytics-donut-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.analytics-bar-row,
.analytics-limit-row {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.analytics-bar-link {
  border-radius: 8px;
  padding: 2px;
  color: inherit;
  text-decoration: none;
}

.analytics-bar-link:hover,
.analytics-bar-link:focus-visible {
  outline: 0;
  background: #f8fafc;
}

.analytics-bar-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(11, 122, 75, 0.22);
}

.analytics-limit-row {
  position: relative;
}

.analytics-limit-button {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  padding: 2px 78px 2px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.analytics-limit-button:hover,
.analytics-limit-button:focus-visible {
  outline: 0;
  background: #f8fafc;
}

.analytics-limit-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(11, 122, 75, 0.22);
}

.analytics-limit-tools {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.analytics-limit-refresh {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  min-height: 24px;
  padding-inline: 8px;
  font-size: 11px;
}

.analytics-bar-meta,
.analytics-limit-name,
.analytics-limit-value,
.analytics-donut-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.analytics-bar-meta span,
.analytics-limit-name strong,
.analytics-limit-value strong,
.analytics-donut-row span,
.analytics-donut-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-bar-meta span,
.analytics-limit-value span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.analytics-bar-meta strong,
.analytics-limit-value strong,
.analytics-donut-row strong {
  font-size: 12px;
}

.analytics-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e9edf2;
}

.analytics-track span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: #94a3b8;
}

.analytics-track span.accepted,
.analytics-track span.positive {
  background: #0b7a4b;
}

.analytics-track span.rejected,
.analytics-track span.danger {
  background: #b42318;
}

.analytics-track span.executed {
  background: #2563eb;
}

.analytics-track span.warning {
  background: #a15c00;
}

.analytics-limit-name strong {
  font-size: 13px;
}

.analytics-limit-name span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}

.analytics-limit-name span.active {
  background: var(--green-soft);
  color: var(--green);
}

.analytics-limit-name span.paused {
  background: var(--amber-soft);
  color: var(--amber);
}

.analytics-limit-name span.limit {
  background: var(--red-soft);
  color: var(--red);
}

.analytics-more {
  margin: 0;
  font-weight: 700;
  text-align: center;
}

.analytics-wallet-chart {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.analytics-donut {
  position: relative;
  display: grid;
  width: 126px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
}

.analytics-donut::after {
  position: absolute;
  inset: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  content: "";
}

.analytics-donut span {
  position: relative;
  z-index: 1;
  max-width: 74px;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
}

.analytics-donut-meta {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.analytics-donut-meta strong {
  min-width: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-donut-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.analytics-donut-row i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.analytics-donut-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

.error-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #f0a4a0;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
}

.error-panel pre {
  overflow-x: auto;
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.modal {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

#strategyPerformanceModal {
  width: min(1040px, calc(100% - 28px));
}

.modal::backdrop {
  background: rgba(18, 20, 23, 0.42);
}

.modal-panel {
  display: grid;
  max-height: calc(100vh - 40px);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal-body {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding: 16px;
}

.modal-body label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.modal-body textarea {
  min-height: 170px;
  resize: vertical;
}

.modal-body input.withdraw-confirm-input.pending {
  border-color: #efb2b2;
  background: #fff7f7;
}

.modal-body input.withdraw-confirm-input.confirmed {
  border-color: #8acfa0;
  background: #f4fbf7;
}

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

.strategy-field-full {
  grid-column: 1 / -1;
}

.strategy-wallet-fields {
  display: grid;
  gap: 8px;
}

.strategy-wallet-assign-control {
  display: grid;
  gap: 10px;
}

.strategy-wallet-assign-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-wallet-assign-toggle {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.modal-body .strategy-wallet-assign-toggle {
  display: inline-flex;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.strategy-wallet-assign-toggle input,
.modal-body .strategy-wallet-assign-toggle input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  accent-color: #df5f35;
}

.strategy-wallet-assign-toggle small {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid #b7c0cc;
  border-radius: 50%;
  color: #8b96a3;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.strategy-wallet-clear-button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.warm-up-wallet-fields[hidden] {
  display: none;
}

.warm-up-wallet-fields {
  gap: 7px;
}

.warm-up-wallet-fields .strategy-wallet-title::before {
  margin-right: 4px;
  color: var(--red);
  content: "*";
}

.strategy-wallet-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.strategy-wallet-assigned-count {
  justify-self: end;
  flex: 0 0 auto;
  margin-left: 4px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #eef2f7;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.strategy-wallet-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 6px;
}

.strategy-wallet-search-live {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.strategy-wallet-search-input {
  min-height: 34px;
}

.strategy-wallet-search-button {
  min-height: 34px;
  padding: 7px 12px;
}

.strategy-wallet-search-clear {
  width: 34px;
  min-height: 34px;
}

.strategy-wallet-search-result {
  min-width: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.strategy-editor-tools:not(.hidden) {
  display: flex;
  align-items: center;
}

.strategy-linked-wallets {
  display: grid;
  gap: 4px;
}

.strategy-linked-wallet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
}

.strategy-linked-wallet-row strong,
.strategy-linked-wallet-row span,
.strategy-linked-wallet-empty {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-linked-wallet-row.connected {
  border-color: #b9dfc6;
  background: var(--green-soft);
}

.strategy-linked-wallet-row.disconnected {
  border-color: #f0d7a6;
  background: #fff8e9;
}

.strategy-linked-wallet-row.archived {
  background: #f3f4f6;
}

.strategy-wallet-options {
  display: grid;
  gap: 6px;
}

.strategy-wallet-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fbfcfd;
  color: var(--text);
  cursor: pointer;
}

.strategy-wallet-option.strategy-wallet-option-hidden {
  display: none;
}

.strategy-wallet-option.strategy-wallet-option-unavailable {
  cursor: not-allowed;
  opacity: 0.72;
}

.strategy-wallet-option input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}

.strategy-wallet-option-body {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.8fr);
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.strategy-wallet-option-body strong,
.strategy-wallet-option-body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-wallet-option-body strong {
  font-size: 13px;
}

.strategy-wallet-option-body span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.strategy-wallet-option-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.strategy-wallet-option-address {
  max-width: 150px;
}

.strategy-wallet-option-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.strategy-wallet-option-badge.balance {
  background: #f8fafc;
  color: var(--text);
}

.strategy-wallet-option-badge.approved {
  background: var(--green-soft);
  color: var(--green);
}

.strategy-wallet-option-badge.not-approve {
  background: var(--red-soft);
  color: var(--red);
}

.warm-up-wallet-fields .strategy-wallet-options {
  gap: 5px;
  max-height: min(280px, 38vh);
  overflow-y: auto;
  padding-right: 2px;
}

.warm-up-wallet-fields .strategy-wallet-option {
  min-height: 36px;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  padding: 5px 8px;
}

.warm-up-wallet-fields .strategy-wallet-option-body {
  grid-template-columns: minmax(108px, 0.75fr) minmax(0, 1.8fr);
  gap: 6px;
}

.warm-up-wallet-fields .strategy-wallet-option-body strong {
  font-size: 12px;
}

.warm-up-wallet-fields .strategy-wallet-option-meta {
  gap: 4px;
}

.warm-up-wallet-fields .strategy-wallet-option-badge {
  min-height: 19px;
  padding: 1px 6px;
  font-size: 10px;
}

.strategy-wallet-empty.empty {
  padding: 10px 0;
  text-align: left;
}

.wallet-dialog-modal .modal-body {
  gap: 12px;
}

.wallet-dialog-field {
  display: grid;
  gap: 6px;
}

.wallet-dialog-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wallet-dialog-field input,
.wallet-dialog-field textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.wallet-dialog-field textarea {
  min-height: 92px;
  resize: vertical;
}

.text-button.danger {
  border-color: #f0a4a0;
  color: var(--red);
}

.text-button.danger:hover {
  border-color: var(--red);
}

.withdraw-balance-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.withdraw-recipients {
  display: grid;
  gap: 8px;
}

.withdraw-recipient {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 130px 92px auto;
  gap: 8px;
  align-items: center;
}

.withdraw-batch-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
}

.hidden {
  display: none;
}

@media (max-width: 1500px) {
  .whale-discovery-precheck-grid {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }

  .whale-analytics-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .whale-dashboard-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .whale-settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1240px) {
  .whale-layout {
    padding-right: 12px;
    padding-left: 12px;
  }

  .whale-shell {
    grid-template-columns: 1fr;
  }

  .whale-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .whale-nav-button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .whale-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-card-wide {
    grid-column: 1 / -1;
  }

  .strategies-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategies-page-panel .strategy-runtime-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-list-header {
    display: none;
  }

  .wallet-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .wallet-address-cell,
  .wallet-balance-cell,
  .wallet-token-cell,
  .wallet-status-cell,
  .wallet-strategy-cell,
  .wallet-row > .wallet-actions {
    grid-column: 2;
  }

  .wallet-row > .wallet-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topbar-brand,
  .topbar-actions {
    width: 100%;
  }

  .topbar-spacer {
    display: none;
  }

  .topbar-menu {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .topbar-actions {
    justify-self: stretch;
    justify-content: flex-start;
  }

  .whale-shell {
    grid-template-columns: 1fr;
  }

  .whale-analytics-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .whale-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .whale-nav-button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .topbar-actions .topbar-docs-button {
    margin-left: auto;
  }

  .portal-card-grid,
  .network-card-grid,
  .project-scaffold-grid,
  .scaffold-method-list,
  .mev-summary-grid,
  .mev-module-grid,
  .mev-settings-grid,
  .whale-summary-grid,
  .whale-dashboard-summary {
    grid-template-columns: 1fr;
  }

  .whale-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whale-smart-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whale-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whale-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whale-wallet-card,
  .whale-alert-card,
  .whale-discovery-card {
    grid-template-columns: 1fr;
  }

  .whale-discovery-status,
  .whale-quality-grid,
  .whale-quality-reasons,
  .whale-progress-steps,
  .whale-discovery-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whale-quality-reasons span {
    grid-column: span 1;
  }

  .whale-wallet-score {
    justify-items: start;
    text-align: left;
  }

  .whale-alert-card-meta {
    justify-content: flex-start;
  }

  .whale-form-wide,
  .whale-form-actions {
    grid-column: 1 / -1;
  }

  .main-nav-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .base-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-logs-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-card-wide {
    grid-column: auto;
  }

  .provider-grid {
    grid-template-columns: 1fr;
  }

  .strategies-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .launch-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-list {
    grid-template-columns: 1fr;
  }

  .wallet-page-grid {
    grid-template-columns: 1fr;
  }

  .wallet-summary-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wallet-page-grid > aside.panel {
    grid-template-columns: 1fr;
  }

  .wallet-create-grid {
    grid-template-columns: 1fr;
  }

  .warm-up-profile-log-panel {
    border-left: 0;
  }

  .warm-up-profile-log-stats {
    grid-template-columns: 1fr;
  }

  .warm-up-profile-history-summary {
    grid-template-columns: 1fr;
  }

  .wallet-form-grid {
    grid-template-columns: 1fr;
  }

  .warm-up-strategy-preview,
  .wallet-generated-history-meta.warm-up-strategy-fill,
  .warm-up-strategy-modal-body,
  .warm-up-run-stats {
    grid-template-columns: 1fr;
  }

  .launch-panel-tools,
  .launch-pager,
  .trade-panel-tools,
  .wallet-performance-pager {
    align-items: flex-start;
    flex-direction: column;
  }

  .trade-token-filter,
  .trade-token-combobox,
  .trade-token-input {
    width: 100%;
    min-width: 0;
  }

  .wallet-tools {
    grid-template-columns: 1fr;
  }

  #walletSearchInput,
  #walletLimitSelect,
  #walletStatusFilter,
  #walletStrategyFilter,
  #walletSortSelect {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .wallet-selection-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .wallet-selection-actions {
    justify-content: flex-start;
    margin-left: 0;
  }

  #walletSearchInput,
  #walletLimitSelect,
  #walletStatusFilter,
  #walletSortSelect {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .withdraw-recipient,
  .withdraw-batch-fields {
    grid-template-columns: 1fr;
  }

  .strategy-fields {
    grid-template-columns: 1fr;
  }

  .strategy-performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-wallet-option-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .side-stack,
  .strategies-page-panel .strategy-runtime-stats,
  .strategies-page-list,
  .trade-panel .trade-list {
    grid-template-columns: 1fr;
  }

  .wallet-summary {
    grid-template-columns: 1fr;
  }

  .strategy-performance-grid,
  .activity-strategy-summary,
  .base-form-grid,
  .whale-detail-grid,
  .analytics-wallet-chart,
  .performance-range-controls,
  .performance-transaction-grid,
  .performance-result-row {
    grid-template-columns: 1fr;
  }

  .base-wallet-list .wallet-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .performance-trade-outcome,
  .performance-trade-outcome .activity-pill {
    justify-items: start;
    justify-self: start;
  }

  .analytics-card {
    min-height: 0;
  }

  .analytics-donut {
    justify-self: center;
  }

  .performance-wallet-header {
    display: none;
  }

  .performance-wallet-row {
    grid-template-columns: 1fr;
  }

  .performance-wallet-row > span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .performance-wallet-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 800;
  }
}

@media (max-width: 620px) {
  .topbar,
  .layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    align-items: stretch;
  }

  .topbar-left {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topbar-brand {
    width: 100%;
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .topbar-docs-button {
    width: auto;
    justify-content: center;
  }

  .topbar-menu {
    justify-content: flex-start;
  }

  .topbar-menu-link {
    padding: 0 10px;
  }

  .provider-meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .launch-summary {
    grid-template-columns: 1fr;
  }

  .trade-panel-tools {
    grid-template-columns: 1fr;
  }

  .trade-panel-tools .launch-limit-control,
  .trade-token-filter {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .main-nav-panel {
    grid-template-columns: 1fr;
  }

  .whale-summary-grid,
  .whale-analytics-summary,
  .whale-form,
  .whale-smart-summary,
  .whale-settings-grid,
  .whale-filter-bar,
  .whale-discovery-status,
  .whale-quality-grid,
  .whale-quality-reasons,
  .whale-progress-steps,
  .whale-discovery-metrics {
    grid-template-columns: 1fr;
  }

  .whale-form-wide,
  .whale-form-actions {
    grid-column: 1;
  }

  .whale-form-actions {
    justify-self: stretch;
  }

  .whale-panel-actions,
  .whale-analytics-empty-actions,
  .whale-form-actions,
  .whale-list-footer,
  .whale-table-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .whale-view .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .whale-view .panel-head > div:first-child {
    min-width: 0;
  }

  .whale-view .panel-head .whale-panel-actions {
    width: 100%;
  }

  .wallet-panel .panel-head {
    grid-template-columns: 1fr;
  }

  .wallet-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-panel-tools {
    justify-content: flex-start;
  }

  .warm-up-strategy-limit-bar {
    grid-template-columns: 1fr;
  }

  .warm-up-strategy-limit-bar .strategy-limit-refresh {
    justify-self: end;
  }

  .strategy-wallet-search {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .strategy-wallet-search-result {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: left;
  }

  .launch-summary-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .launch-summary-item:last-child {
    border-bottom: 0;
  }

  th,
  td {
    padding: 10px;
  }
}

@media (max-width: 1500px) {
  .whale-auto-summary,
  .whale-auto-discovery-form,
  .whale-auto-risk-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .whale-auto-status-form {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .whale-auto-config-actions {
    grid-column: 1 / -1;
  }

  .whale-discovery-view .whale-discovery-status {
    grid-template-columns: repeat(5, minmax(82px, 1fr));
  }

  .whale-discovery-view .whale-progress-steps {
    grid-template-columns: repeat(4, minmax(90px, 1fr));
  }
}

@media (max-width: 1100px) {
  .whale-auto-summary,
  .whale-auto-discovery-form,
  .whale-auto-status-form,
  .whale-auto-risk-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whale-manual-token-form,
  .whale-manual-token-run {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whale-discovery-overview {
    grid-template-columns: 1fr;
  }

  .whale-discovery-view .whale-discovery-source-panel .whale-quality-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .whale-discovery-view .whale-discovery-source-panel .whale-quality-grid span {
    border-top: 0;
    border-left: 1px solid #edf1f5;
  }
}

@media (max-width: 760px) {
  .whale-auto-status-form,
  .whale-auto-risk-form {
    grid-template-columns: 1fr;
  }

  .whale-discovery-precheck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whale-manual-token-form,
  .whale-manual-token-run {
    grid-template-columns: 1fr;
  }

  .whale-discovery-overview {
    padding: 8px;
  }

  .whale-discovery-view .whale-discovery-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whale-discovery-view .whale-discovery-source-panel .whale-quality-grid,
  .whale-discovery-view .whale-progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whale-discovery-view .whale-discovery-progress,
  .whale-discovery-diagnostics,
  .whale-discovery-view .whale-discovery-quality,
  .whale-discovery-view .whale-discovery-note {
    margin-right: 8px;
    margin-left: 8px;
  }

  .whale-discovery-view .whale-discovery-row-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whale-discovery-diagnostics-grid,
  .whale-discovery-filter-breakdown > div,
  .whale-discovery-source-breakdown > div,
  .whale-discovery-soft-suggestions ul,
  .whale-discovery-diagnostics-reasons ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .whale-discovery-preset-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .whale-discovery-preset-bar p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .whale-auto-summary,
  .whale-auto-discovery-form {
    grid-template-columns: 1fr;
  }

  .whale-discovery-view .whale-discovery-status,
  .whale-discovery-view .whale-discovery-source-panel .whale-quality-grid,
  .whale-discovery-view .whale-progress-steps {
    grid-template-columns: 1fr;
  }

  .whale-discovery-preset-bar {
    grid-template-columns: 1fr;
  }

  .whale-discovery-preset-bar p {
    grid-column: auto;
  }

  .whale-discovery-diagnostics-grid,
  .whale-discovery-filter-breakdown > div,
  .whale-discovery-source-breakdown > div,
  .whale-discovery-soft-suggestions ul,
  .whale-discovery-diagnostics-reasons ul {
    grid-template-columns: 1fr;
  }

  .whale-discovery-soft-suggestions > div {
    align-items: stretch;
    flex-direction: column;
  }

  .whale-discovery-soft-suggestions .text-button {
    width: 100%;
  }
}
