:root {
  color-scheme: light;
  --bg: #f6f1f7;
  --paper: #fffafd;
  --panel: #fffafd;
  --panel-2: #efe1f3;
  --line: rgba(47, 13, 55, 0.2);
  --line-strong: rgba(47, 13, 55, 0.44);
  --text: #171019;
  --muted: #735b7a;
  --soft: #3b2b41;
  --purple: #7b229e;
  --purple-2: #b864d5;
  --purple-soft: rgba(143, 56, 189, 0.12);
  --green: #087e5a;
  --green-soft: rgba(8, 126, 90, 0.1);
  --red: #b32b48;
  --red-soft: rgba(179, 43, 72, 0.09);
  --blue: #315bcf;
  --ink: #0b0d14;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16px 16px, rgba(47, 13, 55, 0.2) 1.5px, transparent 1.8px) 0 0 / 32px 32px,
    linear-gradient(90deg, transparent 0 74%, rgba(123, 34, 158, 0.08) 74% 76%, transparent 76%),
    linear-gradient(180deg, rgba(255, 250, 253, 0.9), rgba(246, 241, 247, 0.96));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.44;
  background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(47, 13, 55, 0.035) 7px 8px);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--purple-2);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

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

.bundle-shell {
  position: relative;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.site-bar {
  position: sticky;
  z-index: 8;
  top: 12px;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 22px;
  border: 2px solid var(--line);
  padding: 9px 12px;
  background: rgba(255, 250, 253, 0.95);
  box-shadow: 0 10px 28px rgba(25, 14, 28, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 31px;
  height: 31px;
  border: 2px solid var(--line-strong);
  background:
    radial-gradient(circle at 30% 35%, var(--purple) 0 6px, transparent 7px),
    radial-gradient(circle at 70% 35%, var(--purple-2) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 72%, #2d0938 0 6px, transparent 7px),
    var(--paper);
}

.primary-nav {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
}

.primary-nav a {
  min-width: 100px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--text);
}

.primary-nav a.active {
  border-bottom-color: var(--purple);
}

.site-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.preview-badge,
.type-badge,
.live-label,
.signal-mark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font-weight: 800;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 42px 4px 26px;
}

.token-discovery {
  position: relative;
  z-index: 7;
  margin-top: 18px;
}

.token-search-form {
  min-height: 74px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 2px solid #252832;
  background: var(--ink);
  color: #fff;
  box-shadow: 8px 8px 0 rgba(123, 34, 158, 0.2);
}

.token-search-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #b864d5;
  border-radius: 50%;
}

.token-search-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: #b864d5;
  transform: rotate(45deg);
}

.token-search-form label {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.token-search-form .eyebrow {
  margin: 0;
  color: #c47ee0;
  font-size: 9px;
}

.token-search-form input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.token-search-form input::placeholder { color: rgba(255, 255, 255, 0.42); }

.token-search-clear {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.token-search-source {
  color: rgba(255, 255, 255, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
}

.token-search-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(590px, calc(100vh - 160px));
  overflow: auto;
  border: 1px solid #323641;
  background: #0d0f15;
  color: #fff;
  box-shadow: 12px 12px 0 rgba(123, 34, 158, 0.3);
}

.token-search-panel > header {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.token-search-panel > header span { color: #c47ee0; }

.token-search-head,
.token-search-row {
  min-width: 1040px;
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) 108px 68px 68px 68px 108px 108px 112px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.token-search-head {
  min-height: 34px;
  background: #151821;
  color: rgba(255, 255, 255, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.token-search-row {
  width: 100%;
  min-height: 82px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.token-search-row:hover,
.token-search-row:focus-visible {
  background: linear-gradient(90deg, rgba(184, 100, 213, 0.14), rgba(184, 100, 213, 0.025));
  box-shadow: inset 3px 0 #b864d5;
}

.token-search-row > strong,
.token-search-row > span:not(.search-token-main) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.search-token-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.search-token-main > .token-cell { min-width: 0; }
.search-token-main > small { padding-left: 42px; color: rgba(255, 255, 255, 0.42); font-size: 9px; }
.search-pair-line {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  white-space: nowrap;
}
.search-pair-line > span { overflow: hidden; text-overflow: ellipsis; }
.search-pair-line > span + span::before { content: "/"; margin-right: 7px; color: rgba(255, 255, 255, 0.18); }
.search-token-main > small b {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid rgba(196, 126, 224, 0.38);
  color: #d586ef;
  font-size: 8px;
  text-transform: uppercase;
}
.token-search-row .token-logo { width: 34px; height: 34px; flex-basis: 34px; border-color: rgba(255, 255, 255, 0.16); background: #171923; }
.token-search-row .token-cell > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.15;
}
.token-search-row .token-cell strong,
.token-search-row .token-cell small { display: block; }
.token-search-row .token-cell strong { color: #fff; }
.token-search-row .token-cell small { color: rgba(255, 255, 255, 0.5); }

.token-search-message {
  min-height: 150px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 24px;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.token-search-message small { color: rgba(255, 255, 255, 0.44); }
.token-search-message.error strong { color: #ff7890; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-head h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
}

.workspace-copy {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 17px;
  font-weight: 600;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin-top: 13px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 253, 0.72);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.save-state:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.save-state.account {
  color: var(--green);
}

.save-state-dot {
  width: 7px;
  height: 7px;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 15%, transparent);
}

.workspace-actions,
.bundle-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 2px solid var(--text);
  background: var(--paper);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 4px 4px 0 rgba(47, 13, 55, 0.16);
}

.button-primary {
  background: var(--purple-2);
  color: #fff;
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button.compact {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 11px;
}

.plus-icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.plus-icon::before,
.plus-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 1px;
  width: 12px;
  height: 2px;
  background: currentColor;
}

.plus-icon::after {
  transform: rotate(90deg);
}

.button-dot {
  width: 8px;
  height: 8px;
  background: var(--purple);
}

.alert-dot {
  box-shadow: 0 0 0 4px var(--purple-soft);
}

.dashboard {
  min-height: 810px;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  border: 2px solid var(--line-strong);
  background: rgba(255, 250, 253, 0.9);
  box-shadow: 10px 10px 0 rgba(123, 34, 158, 0.11);
}

.bundle-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 2px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(239, 225, 243, 0.44), transparent 42%),
    var(--paper);
}

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

.sidebar-head strong {
  font-size: 13px;
}

.icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--text);
  background: var(--paper);
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.icon-button:hover {
  background: var(--panel-2);
}

.search-field {
  position: relative;
  margin: 14px;
}

.search-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(255, 250, 253, 0.72);
  color: var(--text);
}

.search-field input::placeholder {
  color: var(--muted);
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 13px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: var(--muted);
  transform: rotate(45deg);
}

.bundle-list {
  display: grid;
  gap: 5px;
  padding: 0 10px;
}

.bundle-list-item {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-left: 4px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.bundle-list-item:hover {
  background: rgba(239, 225, 243, 0.5);
}

.bundle-list-item.active {
  border-left-color: var(--purple);
  background: var(--purple-soft);
}

.bundle-glyph {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.bundle-glyph.watchlist {
  background: #19101c;
  color: #d783ef;
}

.bundle-glyph.portfolio {
  background: var(--purple-2);
  color: #fff;
}

.bundle-glyph.blue {
  background: #13214a;
  color: #85a5ff;
}

.bundle-glyph.red {
  background: #3c101a;
  color: #ff8fa7;
}

.bundle-glyph.large {
  width: 50px;
  height: 50px;
  font-size: 13px;
}

.bundle-list-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.bundle-list-copy strong,
.bundle-list-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bundle-list-copy strong {
  font-size: 13px;
}

.bundle-list-copy small {
  color: var(--muted);
  font-size: 11px;
}

.bundle-list-signal {
  color: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.positive {
  color: var(--green) !important;
}

.negative {
  color: var(--red) !important;
}

.sidebar-foot {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.sidebar-foot strong {
  margin-left: auto;
  color: var(--text);
}

.status-light {
  width: 8px;
  height: 8px;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.bundle-main {
  min-width: 0;
  background: rgba(255, 250, 253, 0.62);
}

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

.bundle-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bundle-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bundle-name-line h2 {
  margin: 0;
  font-size: 24px;
}

.bundle-title-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.type-badge {
  min-height: 23px;
  border-color: rgba(123, 34, 158, 0.28);
  background: var(--purple-soft);
  font-size: 9px;
}

.type-badge.portfolio {
  color: var(--green);
  background: var(--green-soft);
}

.bundle-tabs {
  min-height: 50px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 2px solid var(--line-strong);
}

.bundle-tabs button {
  position: relative;
  min-width: 92px;
  padding: 0 14px;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bundle-tabs button:hover,
.bundle-tabs button.active {
  color: var(--text);
}

.bundle-tabs button.active {
  border-bottom-color: var(--purple);
}

.bundle-tabs button span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  min-height: 20px;
  margin-left: 5px;
  padding: 2px 5px;
  background: var(--panel-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
}

.bundle-tabs button .alert-count {
  background: var(--red-soft);
  color: var(--red);
}

.tab-panel {
  padding: 18px 20px 22px;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.metric-item {
  min-width: 0;
  min-height: 102px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

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

.metric-item > span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-item strong {
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}

.metric-item strong small {
  color: var(--muted);
  font-size: 13px;
}

.metric-item em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.pulse-section,
.activity-section {
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

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

.section-head h3,
.overlap-intro h3,
.placeholder-view h3 {
  margin: 0;
  font-size: 18px;
}

.segment-control {
  display: inline-flex;
  border: 1px solid var(--line-strong);
}

.segment-control button {
  min-width: 44px;
  height: 30px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
}

.segment-control button:last-child {
  border-right: 0;
}

.segment-control button.active {
  background: var(--ink);
  color: #fff;
}

.token-table {
  width: 100%;
}

.token-row {
  width: 100%;
  min-height: 65px;
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) 112px 96px 110px 86px;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

button.token-row:hover {
  background: rgba(239, 225, 243, 0.28);
}

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

.token-header {
  min-height: 34px;
  background: rgba(239, 225, 243, 0.4);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.token-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.token-cell > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.token-cell strong,
.token-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-cell strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.token-cell small {
  color: var(--muted);
  font-size: 9px;
}

.token-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 16, 25, 0.18);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.token-logo.pengu {
  background: #cae5ff;
  color: #17385a;
}

.token-logo.fart {
  background: #caff83;
  color: #24340d;
}

.token-logo.popcat {
  background: #ffe4b6;
  color: #5a3417;
}

.token-logo.wif {
  background: #e3cdf6;
  color: #56206d;
}

.wallet-stack {
  display: flex;
  align-items: center;
}

.wallet-stack i,
.wallet-stack b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

.wallet-stack i:first-child {
  margin-left: 0;
}

.wallet-stack i:nth-child(2) {
  background: var(--purple);
}

.wallet-stack i:nth-child(3) {
  background: var(--blue);
}

.wallet-stack b {
  background: var(--panel-2);
  color: var(--purple);
}

.token-row > span:not(.token-cell):not(.wallet-stack) {
  font-size: 11px;
  font-weight: 800;
}

.signal-mark {
  min-height: 22px;
  padding: 3px 6px;
  border: 0;
  background: var(--purple-soft);
  font-size: 8px;
}

.signal-mark.hot {
  background: var(--green-soft);
  color: var(--green);
}

.signal-mark.exit {
  background: var(--red-soft);
  color: var(--red);
}

.live-label {
  min-height: 24px;
  gap: 6px;
  border-color: rgba(8, 126, 90, 0.34);
  color: var(--green);
}

.live-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  50% { opacity: 0.35; }
}

.activity-feed {
  display: grid;
}

.activity-item {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.activity-item:hover {
  background: rgba(239, 225, 243, 0.28);
}

.activity-item.priority {
  box-shadow: inset 3px 0 0 var(--red);
}

.wallet-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
}

.wallet-avatar.purple { background: var(--purple); }
.wallet-avatar.red { background: var(--red); }
.wallet-avatar.blue { background: var(--blue); }
.wallet-avatar.green { background: var(--green); }

.activity-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.activity-copy strong,
.activity-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-copy strong {
  font-size: 10px;
}

.activity-copy small,
.activity-item time {
  color: var(--muted);
  font-size: 9px;
}

.activity-copy em {
  font-style: normal;
}

.activity-copy .buy { color: var(--green); }
.activity-copy .sell { color: var(--red); }

.text-button {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--purple);
  font-size: 10px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.text-button:hover {
  background: var(--purple-soft);
}

.overlap-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: #fff;
}

.overlap-intro p:last-child {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

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

.overlap-tokens button {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
}

.overlap-tokens button:hover {
  border-color: rgba(216, 131, 239, 0.72);
}

.overlap-tokens button > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.overlap-tokens strong,
.overlap-tokens small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlap-tokens strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.overlap-tokens small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 8px;
}

.overlap-tokens em {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.placeholder-view {
  min-height: 480px;
  padding: 36px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.placeholder-view h3 {
  max-width: 720px;
  margin-top: 10px;
  font-size: 32px;
}

.placeholder-view > p:not(.eyebrow) {
  color: var(--muted);
}

.placeholder-lines {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.placeholder-lines i {
  min-height: 55px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--purple-soft), transparent 72%);
}

.bundle-dialog {
  width: min(650px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 2px solid var(--text);
  border-radius: 0;
  background: var(--paper);
  color: var(--text);
  box-shadow: 14px 14px 0 rgba(123, 34, 158, 0.28);
}

.bundle-dialog.fallback-open {
  position: fixed;
  z-index: 30;
  inset: 50% auto auto 50%;
  display: block;
  transform: translate(-50%, -50%);
}

body.dialog-fallback-open::after {
  content: "";
  position: fixed;
  z-index: 29;
  inset: 0;
  background: rgba(11, 13, 20, 0.74);
  backdrop-filter: blur(4px);
}

.bundle-dialog::backdrop {
  background: rgba(11, 13, 20, 0.74);
  backdrop-filter: blur(4px);
}

.bundle-dialog form {
  padding: 20px;
}

.bundle-dialog header,
.bundle-dialog footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.bundle-dialog header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.bundle-dialog h2 {
  margin: 0;
  font-size: 30px;
  text-transform: uppercase;
}

.bundle-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  border: 0;
}

.bundle-type-options legend,
.dialog-field > span {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.bundle-type-options legend {
  grid-column: 1 / -1;
}

.type-option {
  min-height: 86px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--line);
  cursor: pointer;
}

.type-option.active {
  border-color: var(--purple);
  background: var(--purple-soft);
}

.type-option input {
  position: absolute;
  opacity: 0;
}

.type-option > span:last-child {
  display: grid;
  gap: 4px;
}

.type-option small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.dialog-field {
  display: grid;
  margin-top: 14px;
}

.dialog-field input,
.dialog-field textarea {
  width: 100%;
  border: 2px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--text);
}

.dialog-field input {
  height: 46px;
  padding: 0 12px;
}

.dialog-field textarea {
  resize: vertical;
  padding: 12px;
}

.dialog-field small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.bundle-dialog footer {
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 13px 16px;
  border: 2px solid var(--text);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

@media (max-width: 1180px) {
  .dashboard {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .activity-feed {
    grid-template-columns: 1fr 1fr;
  }

  .activity-item:nth-child(5) {
    display: none;
  }

  .token-row {
    grid-template-columns: minmax(180px, 1.3fr) 100px 90px 100px 80px;
  }

  .overlap-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .bundle-shell {
    width: min(100% - 20px, 1480px);
    padding-top: 10px;
  }

  .site-bar {
    top: 6px;
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    min-height: 44px;
    border-top: 1px solid var(--line);
  }

  .site-meta .preview-badge {
    display: none;
  }

  .workspace-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .bundle-sidebar {
    border-right: 0;
    border-bottom: 2px solid var(--line-strong);
  }

  .bundle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 12px;
  }

  .sidebar-foot {
    display: none;
  }

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

  .metric-item:nth-child(2) {
    border-right: 0;
  }

  .metric-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .token-row {
    min-width: 760px;
  }

  .overlap-tokens {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bundle-shell {
    width: min(100% - 14px, 1480px);
  }

  .site-bar {
    top: 0;
    gap: 10px;
  }

  .profile-button > span:last-child {
    display: none;
  }

  .workspace-head {
    padding-top: 28px;
  }

  .workspace-head h1 {
    font-size: 45px;
  }

  .workspace-copy {
    font-size: 14px;
  }

  .workspace-actions {
    width: 100%;
  }

  .workspace-actions .button {
    flex: 1;
    min-width: 0;
    font-size: 11px;
  }

  .bundle-list {
    grid-template-columns: 1fr;
  }

  .bundle-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bundle-head-actions {
    width: 100%;
  }

  .bundle-head-actions .button {
    flex: 1;
  }

  .bundle-name-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .bundle-name-line h2 {
    font-size: 20px;
  }

  .bundle-tabs {
    overflow-x: auto;
    padding: 0 8px;
  }

  .bundle-tabs button {
    min-width: 86px;
  }

  .tab-panel {
    padding: 12px 8px 14px;
  }

  .metric-band {
    grid-template-columns: 1fr;
  }

  .metric-item,
  .metric-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-item:last-child {
    border-bottom: 0;
  }

  .activity-feed {
    grid-template-columns: 1fr;
  }

  .activity-item:nth-child(5) {
    display: grid;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-head {
    align-items: center;
    flex-direction: row;
  }

  .bundle-type-options {
    grid-template-columns: 1fr;
  }

  .bundle-dialog form {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Working bundles interface */
select {
  font: inherit;
}

select:focus-visible {
  outline: 3px solid var(--purple-2);
  outline-offset: 2px;
}

.profile-avatar {
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bundle-glyph.watchlist,
.bundle-glyph.portfolio {
  letter-spacing: 0;
}

.sidebar-skeleton,
.sidebar-zero {
  display: grid;
  gap: 8px;
  padding: 8px 4px;
}

.sidebar-skeleton i {
  height: 62px;
  background: linear-gradient(90deg, rgba(123, 34, 158, 0.08), rgba(123, 34, 158, 0.18), rgba(123, 34, 158, 0.08));
  background-size: 220% 100%;
  animation: skeleton-shift 1.4s linear infinite;
}

.sidebar-zero {
  min-height: 130px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.status-light.warning {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.workspace-empty {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
  text-align: center;
}

.workspace-empty h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 0.98;
  text-transform: uppercase;
}

.workspace-empty > p:not(.eyebrow) {
  max-width: 500px;
  margin: 16px auto 22px;
  color: var(--muted);
  font-weight: 650;
}

.empty-glyph {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 2px solid var(--line-strong);
  background: var(--purple-soft);
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 40px;
  font-weight: 800;
}

.refresh-icon {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
}

.sync-strip {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(220px, 1fr) 42px;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--ink);
  color: #fff;
}

.sync-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sync-copy strong {
  font-size: 11px;
  text-transform: uppercase;
}

.sync-copy span,
.sync-strip > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 800;
}

.sync-progress {
  height: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.sync-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--purple-2);
  transition: width 420ms ease;
}

.data-window {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.token-logo {
  overflow: hidden;
  background: var(--panel-2);
  color: var(--purple);
}

.token-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-logo.chain-solana { background: #151126; color: #56e5bb; }
.token-logo.chain-base { background: #0d2a68; color: #8db6ff; }
.token-logo.chain-ethereum { background: #202538; color: #bac7ff; }
.token-logo.chain-bsc,
.token-logo.chain-bnb { background: #352b0c; color: #f2c94c; }
.token-logo.chain-arc { background: #17382f; color: #65e0b1; }

.token-row:not(.token-header) {
  cursor: pointer;
}

.table-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.data-note {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 250, 253, 0.76);
}

.data-note > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.data-note strong {
  font-size: 10px;
  text-transform: uppercase;
}

.data-note span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.data-note button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--red);
  background: var(--red-soft);
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-view,
.wallet-directory-view,
.rules-panel {
  min-height: 560px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.wallet-directory-view .funding-map {
  margin: 16px;
}

.data-view-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.data-view-head h3 {
  margin: 0;
  font-size: 19px;
}

.wallet-directory-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.funding-launcher {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--ink);
  color: #fff;
}

.funding-launcher-title {
  min-width: 0;
}

.funding-launcher-title h4 {
  margin: 2px 0 0;
  font-size: 17px;
  text-transform: uppercase;
}

.funding-launcher-title > span {
  color: rgba(255, 255, 255, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.funding-wallet-picks {
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 5px;
}

.funding-wallet-pick {
  min-width: 180px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
}

.funding-wallet-pick:hover,
.funding-wallet-pick.active {
  border-color: var(--purple-2);
  background: rgba(184, 100, 213, 0.16);
}

.funding-wallet-pick .wallet-avatar {
  width: 32px;
  height: 32px;
  font-size: 9px;
}

.funding-wallet-pick > span:last-child,
.funding-wallet-pick strong,
.funding-wallet-pick small {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funding-wallet-pick strong {
  font-size: 11px;
}

.funding-wallet-pick small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7px;
  font-weight: 800;
}

.filter-row {
  display: flex;
  border: 1px solid var(--line-strong);
}

.filter-row button {
  min-width: 62px;
  height: 34px;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-row button:last-child {
  border-right: 0;
}

.filter-row button.active {
  background: var(--ink);
  color: #fff;
}

.inline-search input {
  width: 220px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
}

.activity-table,
.positions-table,
.wallet-table,
.alert-feed,
#alert-rules {
  min-width: 0;
}

.data-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) 74px minmax(140px, 1fr) 100px 100px 62px;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.data-row > span {
  min-width: 0;
}

.data-row > span:first-child {
  display: grid;
  gap: 2px;
}

.data-row small,
.data-row time {
  color: var(--muted);
  font-size: 9px;
}

.data-header {
  min-height: 36px;
  background: rgba(239, 225, 243, 0.42);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-row .token-cell,
.position-row .token-cell {
  display: flex;
}

.direction {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 24px;
  padding: 3px 7px;
  border: 0;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.direction.buy {
  background: var(--green-soft);
  color: var(--green);
}

.direction.sell {
  background: var(--red-soft);
  color: var(--red);
}

.position-row {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(120px, 0.8fr) 110px 110px 110px 90px;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

button.position-row {
  cursor: pointer;
}

button.position-row:hover,
button.position-row:focus-visible {
  background: rgba(239, 225, 243, 0.34);
}

.position-row > span {
  min-width: 0;
}

.position-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.position-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.position-header {
  min-height: 36px;
  background: rgba(239, 225, 243, 0.42);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 38px minmax(155px, 1fr) 118px minmax(125px, 0.85fr) minmax(140px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.wallet-row.has-error {
  box-shadow: inset 3px 0 0 var(--red);
}

.wallet-row label,
.wallet-value,
.wallet-pnl {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.wallet-row input,
.wallet-row select {
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.wallet-row input:hover,
.wallet-row input:focus,
.wallet-row select:hover,
.wallet-row select:focus {
  border-color: var(--line-strong);
  background: #fff;
}

.wallet-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-value strong,
.wallet-pnl strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-pnl.error strong,
.wallet-pnl.error small {
  color: var(--red);
}

.wallet-pnl.error small {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wallet-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-button {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--text);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-button:hover {
  background: var(--purple-soft);
}

.mini-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.funding-button.active {
  border-color: var(--purple);
  background: var(--purple-soft);
  color: var(--purple);
}

.funding-map {
  margin-top: 16px;
  border: 2px solid var(--line-strong);
  background: var(--ink);
  color: #fff;
  box-shadow: 8px 8px 0 rgba(123, 34, 158, 0.14);
}

.funding-map-head {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.funding-map-head h3 {
  margin: 0;
  font-size: 22px;
  text-transform: uppercase;
}

.funding-map-head p:last-child {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 700;
}

.funding-map-head .icon-button {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.funding-map-body {
  min-height: 330px;
  padding: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(184, 100, 213, 0.08), transparent 38%);
}

.funding-state {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
}

.funding-state strong {
  font-size: 17px;
  text-transform: uppercase;
}

.funding-state small {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  line-height: 1.5;
}

.funding-state.error strong {
  color: #ff8fa7;
}

.funding-state .mini-button {
  margin-top: 8px;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.funding-loader {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--purple-2);
  border-radius: 50%;
  animation: funding-spin 800ms linear infinite;
}

@keyframes funding-spin {
  to { transform: rotate(360deg); }
}

.funding-graph {
  min-height: 282px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 160px;
  align-items: center;
  gap: 12px;
}

.funding-source-cloud {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.funding-node {
  position: relative;
  width: var(--node-size, 104px);
  height: var(--node-size, 104px);
  flex: 0 0 var(--node-size, 104px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
  padding: 10px;
  border: 2px solid #9e79f8;
  border-radius: 50%;
  background: #151321;
  color: #fff;
  text-align: center;
}

.funding-node:hover {
  z-index: 2;
  border-color: #fff;
  transform: translateY(-2px);
}

.funding-node > span,
.funding-node > strong,
.funding-node > small {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funding-node > span,
.funding-node > small,
.funding-node mark {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}

.funding-node > span {
  color: rgba(255, 255, 255, 0.58);
}

.funding-node > strong {
  font-size: 11px;
}

.funding-node > small {
  color: #d9b5e8;
}

.funding-node mark {
  margin-top: 2px;
  padding: 2px 4px;
  background: var(--green);
  color: #fff;
}

.funding-node.tone-1 { border-color: #4f70ef; }
.funding-node.tone-2 { border-color: #d68a43; }
.funding-node.tone-3 { border-color: #19a87b; }

.funding-flow {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.funding-flow i {
  position: relative;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, rgba(184, 100, 213, 0.18), var(--purple-2));
}

.funding-flow i::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -1px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--purple-2);
}

.target-node {
  --node-size: 150px;
  border: 4px solid var(--purple-2);
  background: #211029;
  box-shadow: 0 0 0 8px rgba(184, 100, 213, 0.1);
}

.target-node > strong {
  font-size: 14px;
}

.funding-map-foot {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 4px 18px;
  padding: 11px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.64);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.funding-map-foot strong {
  color: #fff;
}

.funding-map-foot small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.38);
  font-size: 7px;
  line-height: 1.4;
}

.delete-wallet,
.delete-rule {
  width: 32px;
  height: 32px;
  min-height: 32px;
  color: var(--red);
}

.large-empty {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.large-empty > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 64px;
  font-weight: 900;
}

.alerts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 16px;
}

.alert-item {
  min-height: 74px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.alert-item.priority {
  box-shadow: inset 3px 0 0 var(--red);
  background: var(--red-soft);
}

.alert-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}

.alert-item > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.alert-item strong,
.alert-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-item strong {
  font-size: 11px;
}

.alert-item small,
.alert-item time {
  color: var(--muted);
  font-size: 9px;
}

.rule-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

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

.rule-row strong {
  font-size: 10px;
}

.rule-row small {
  color: var(--muted);
  font-size: 8px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: relative;
  width: 34px;
  height: 20px;
  display: block;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  cursor: pointer;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: var(--muted);
  transition: transform 150ms ease, background 150ms ease;
}

.switch input:checked + span {
  background: var(--green-soft);
}

.switch input:checked + span::after {
  background: var(--green);
  transform: translateX(14px);
}

.panel-error {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.panel-error strong {
  font-size: 18px;
  text-transform: uppercase;
}

.panel-error span {
  max-width: 500px;
  color: var(--muted);
  font-size: 11px;
}

.row-skeleton {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.6fr;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.row-skeleton i,
.loading-block i {
  display: block;
  height: 10px;
  background: linear-gradient(90deg, rgba(123, 34, 158, 0.06), rgba(123, 34, 158, 0.18), rgba(123, 34, 158, 0.06));
  background-size: 220% 100%;
  animation: skeleton-shift 1.4s linear infinite;
}

.row-skeleton i:nth-child(2) {
  width: 70%;
}

.row-skeleton i:nth-child(3) {
  width: 60%;
}

.loading-block {
  gap: 9px;
}

.loading-block i:nth-child(1) { width: 54%; }
.loading-block i:nth-child(2) { width: 72%; height: 22px; }
.loading-block i:nth-child(3) { width: 42%; }

@keyframes skeleton-shift {
  to { background-position: -220% 0; }
}

.form-error {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-left: 3px solid var(--red);
  background: var(--red-soft);
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
}

.dialog-field > span em {
  color: var(--line-strong);
  font-style: normal;
}

.compact-dialog {
  width: min(560px, calc(100% - 28px));
}

.split-footer {
  display: grid !important;
  grid-template-columns: auto 1fr auto auto;
}

.danger-button {
  border: 1px solid var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.rule-type-options {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.rule-type-options legend {
  margin-bottom: 2px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.rule-type-options label {
  min-height: 58px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.rule-type-options label:has(input:checked) {
  border-color: var(--purple);
  background: var(--purple-soft);
}

.rule-type-options label > span {
  display: grid;
  gap: 3px;
}

.rule-type-options small {
  color: var(--muted);
  font-size: 9px;
}

.confirm-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 22px;
  border: 2px solid var(--text);
  border-radius: 0;
  background: var(--paper);
  color: var(--text);
  box-shadow: 12px 12px 0 rgba(123, 34, 158, 0.25);
}

.confirm-dialog::backdrop {
  background: rgba(11, 13, 20, 0.74);
}

.confirm-dialog h2 {
  margin: 0;
  font-size: 24px;
  text-transform: uppercase;
}

.confirm-dialog p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.confirm-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.market-dialog {
  width: min(1180px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #454957;
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  box-shadow: 14px 14px 0 rgba(123, 34, 158, 0.34);
}

.market-dialog::backdrop {
  background: rgba(11, 13, 20, 0.8);
  backdrop-filter: blur(5px);
}

.market-dialog.fallback-open {
  position: fixed;
  z-index: 30;
  inset: 50% auto auto 50%;
  display: block;
  transform: translate(-50%, -50%);
}

.market-dialog-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  margin: 0;
}

.market-dialog-head {
  min-height: 88px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(90deg, rgba(184, 100, 213, 0.14), rgba(17, 201, 139, 0.025) 62%, transparent);
}

.market-token {
  min-width: 0;
}

.market-token .token-cell {
  gap: 12px;
}

.market-token .token-logo {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-color: rgba(255, 255, 255, 0.18);
  background: #171923;
}

.market-token strong {
  color: #fff;
  font-size: 22px;
}

.market-token small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  text-transform: uppercase;
}

.market-quote {
  min-width: 190px;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.market-quote span,
.market-control-block > span {
  color: rgba(255, 255, 255, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-quote strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 24px;
}

.market-quote em {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.market-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
  font-weight: 700;
}

.market-close:hover {
  background: rgba(255, 255, 255, 0.13);
}

.market-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f1119;
}

.market-control-block {
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-range-block {
  margin-left: auto;
}

.market-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.market-segments {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.market-segments button {
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-segments button:last-child {
  border-right: 0;
}

.market-segments button:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.market-segments button.active {
  background: var(--purple-2);
  color: #fff;
}

.market-segments button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.market-marker-control,
.market-fit-button {
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-marker-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  cursor: pointer;
}

.market-marker-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.market-toggle-track {
  position: relative;
  width: 26px;
  height: 14px;
  flex: 0 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #090b11;
}

.market-toggle-track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.58);
  transition: transform 140ms ease, background 140ms ease;
}

.market-marker-control input:checked + .market-toggle-track {
  border-color: rgba(184, 100, 213, 0.8);
  background: rgba(123, 34, 158, 0.3);
}

.market-marker-control input:checked + .market-toggle-track i {
  transform: translateX(12px);
  background: #d586ef;
}

.market-marker-control strong {
  white-space: nowrap;
}

.market-marker-control b {
  color: #d586ef;
}

.market-marker-control:hover:not(.disabled),
.market-fit-button:hover:not(:disabled) {
  border-color: rgba(184, 100, 213, 0.78);
  color: #fff;
  background: rgba(184, 100, 213, 0.1);
}

.market-marker-control:focus-within,
.market-fit-button:focus-visible {
  outline: 2px solid var(--purple-2);
  outline-offset: 2px;
}

.market-marker-control.disabled,
.market-fit-button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.market-fit-button {
  min-width: 66px;
  padding: 0 10px;
}

.market-chart-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 480px;
  overflow: hidden;
  background: var(--ink);
}

.market-chart {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 480px;
  overflow: hidden;
}

.market-cursor-readout {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  max-width: calc(100% - 132px);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 13, 20, 0.9);
  color: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.market-cursor-readout time {
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.market-cursor-readout span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.market-cursor-readout b {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
}

.market-cursor-readout[data-direction="up"] span:last-child b {
  color: #61d9aa;
}

.market-cursor-readout[data-direction="down"] span:last-child b {
  color: #ff7890;
}

.market-chart-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  background: rgba(11, 13, 20, 0.94);
  text-align: center;
}

.market-chart-state strong {
  font-size: 16px;
  text-transform: uppercase;
}

.market-chart-state small {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.market-chart-state.error strong {
  color: #ff7b94;
}

.market-loader {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--purple-2);
  border-radius: 50%;
  animation: market-spin 800ms linear infinite;
}

.market-chart-state.error .market-loader {
  display: none;
}

.pnl-ledger {
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.pnl-ledger-head {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.pnl-ledger-head h3,
.pnl-subhead h4 {
  margin: 0;
}

.pnl-ledger-head h3 {
  font-size: 25px;
}

.pnl-ledger-head > div > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.pnl-metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-strong);
}

.pnl-metric-band article {
  min-width: 0;
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.pnl-metric-band article:last-child {
  border-right: 0;
}

.pnl-metric-band span,
.pnl-metric-band em,
.pnl-subhead .eyebrow,
.pnl-method {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pnl-metric-band span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.pnl-metric-band strong {
  overflow: hidden;
  font-size: 22px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pnl-metric-band em {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pnl-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink);
}

.pnl-network-filter {
  min-width: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.pnl-network-filter button,
.pnl-range-filter button {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  text-transform: uppercase;
}

.pnl-network-filter button:hover,
.pnl-network-filter button.active,
.pnl-range-filter button:hover,
.pnl-range-filter button.active {
  border-color: var(--purple-2);
  background: rgba(184, 100, 213, 0.14);
  color: #fff;
}

.pnl-range-filter {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.16);
}

.pnl-range-filter button {
  min-width: 42px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.pnl-chart-shell {
  position: relative;
  min-height: 350px;
  background: #11131b;
}

.pnl-chart {
  width: 100%;
  height: 350px;
}

.pnl-chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.pnl-chart-empty strong {
  font-size: 18px;
  text-transform: uppercase;
}

.pnl-chart-empty span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.pnl-chart-empty .button {
  margin-top: 12px;
  min-width: 190px;
}

.pnl-lower-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(380px, 1.25fr);
  border-top: 1px solid var(--line-strong);
}

.pnl-breakdown {
  border-right: 1px solid var(--line-strong);
}

.pnl-subhead {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
}

.pnl-subhead h4 {
  font-size: 15px;
}

.pnl-breakdown > div:last-child > button,
.pnl-days > div:last-child > div {
  width: 100%;
  min-height: 50px;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.pnl-breakdown > div:last-child > button {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pnl-breakdown > div:last-child > button:hover {
  background: var(--purple-soft);
}

.pnl-breakdown button > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.pnl-breakdown button i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  background: var(--ink);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-style: normal;
}

.pnl-breakdown button b,
.pnl-days strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.pnl-days > div:last-child > div {
  grid-template-columns: minmax(120px, 1fr) 100px auto;
}

.pnl-days time {
  font-size: 10px;
  font-weight: 800;
}

.pnl-days span {
  color: var(--muted);
  font-size: 9px;
}

.pnl-empty-row {
  min-height: 92px !important;
  display: grid !important;
  place-items: center;
  color: var(--muted) !important;
  font-size: 10px;
  text-align: center !important;
}

.pnl-method {
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 15px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.pnl-method span {
  max-width: 760px;
}

.pnl-method strong {
  color: var(--text);
  white-space: nowrap;
}

@keyframes market-spin {
  to { transform: rotate(360deg); }
}

.market-stat-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #11131b;
}

.market-stat-strip > span {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.market-stat-strip > span:last-child {
  border-right: 0;
}

.market-stat-strip small {
  color: rgba(255, 255, 255, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-stat-strip strong {
  overflow: hidden;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-dialog-foot {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.market-dialog-foot span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.market-dialog-foot b {
  margin-left: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.market-dialog-foot i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #08100d;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.market-dialog-foot .buy-key {
  background: #16d99a;
}

.market-dialog-foot .sell-key {
  margin-left: 4px;
  background: #ff607d;
}

.market-dialog-foot a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 900;
  text-decoration: none;
}

.market-dialog-foot a:hover {
  color: #fff;
  text-decoration: underline;
}

.market-links { display: inline-flex; align-items: center; gap: 16px; }
.market-links #market-external-link { color: #d586ef; }

@media (max-width: 980px) {
  .market-toolbar {
    flex-wrap: wrap;
  }

  .market-range-block {
    order: 4;
    width: 100%;
    margin-left: 0;
  }

  .market-range-block .market-segments {
    flex: 1;
  }

  .market-range-block button {
    flex: 1;
  }

  .market-toolbar-actions {
    margin-left: auto;
  }
}

.toast.error {
  background: var(--red);
}

@media (max-width: 1180px) {
  .data-row,
  .position-row,
  .wallet-row {
    min-width: 820px;
  }

  .activity-table,
  .positions-table,
  .wallet-table {
    overflow-x: auto;
  }

  .alerts-layout {
    grid-template-columns: 1fr;
  }

  .rules-panel {
    min-height: 0;
  }
}

@media (max-width: 920px) {
  .workspace-empty {
    min-height: 500px;
  }

  .sync-strip {
    grid-template-columns: 1fr 42px;
  }

  .sync-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .primary-nav {
    width: 100%;
    overflow-x: auto;
  }

  .primary-nav a {
    min-width: 82px;
    flex: 1 0 auto;
    padding: 0 10px;
    font-size: 11px;
  }

  .workspace-head h1 {
    font-size: 42px;
  }

  .workspace-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bundle-head-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bundle-head-actions #add-wallets {
    grid-column: auto;
  }

  .wallet-directory-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .funding-launcher {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .funding-wallet-pick {
    min-width: 168px;
  }

  .sync-strip {
    padding: 10px 12px;
  }

  .pulse-section .token-table {
    overflow: visible;
  }

  .pulse-section .token-header {
    display: none;
  }

  .pulse-section .token-row:not(.token-header) {
    min-width: 0;
    min-height: 116px;
    grid-template-columns: minmax(0, 1fr) minmax(74px, 0.8fr) auto;
    grid-template-rows: auto auto;
    gap: 12px 10px;
    padding: 12px;
  }

  .pulse-section .token-row:not(.token-header) .token-cell {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .pulse-section .token-row:not(.token-header) .wallet-stack {
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
  }

  .pulse-section .token-row:not(.token-header) > span:nth-child(3),
  .pulse-section .token-row:not(.token-header) > span:nth-child(4) {
    display: grid;
    align-self: end;
    gap: 4px;
  }

  .pulse-section .token-row:not(.token-header) > span:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .pulse-section .token-row:not(.token-header) > span:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .pulse-section .token-row:not(.token-header) > span:nth-child(5) {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .pulse-section .token-row:not(.token-header) .wallet-stack::before,
  .pulse-section .token-row:not(.token-header) > span:nth-child(3)::before,
  .pulse-section .token-row:not(.token-header) > span:nth-child(4)::before {
    width: 100%;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .pulse-section .token-row:not(.token-header) .wallet-stack::before {
    content: "Wallets";
  }

  .pulse-section .token-row:not(.token-header) > span:nth-child(3)::before {
    content: "Exposure";
  }

  .pulse-section .token-row:not(.token-header) > span:nth-child(4)::before {
    content: "24h flow";
  }

  .data-note,
  .data-view-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-search,
  .inline-search input {
    width: 100%;
  }

  .filter-row {
    width: 100%;
  }

  .filter-row button {
    flex: 1;
  }

  .split-footer {
    grid-template-columns: 1fr 1fr !important;
  }

  .split-footer > span {
    display: none;
  }

  .split-footer .danger-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .market-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    box-shadow: 6px 6px 0 rgba(123, 34, 158, 0.34);
  }

  .market-dialog-head {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .market-quote {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-items: start;
  }

  .market-close {
    grid-column: 1;
    grid-row: 1;
  }

  .market-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .market-range-block {
    width: 100%;
    margin-left: 0;
  }

  .market-range-block .market-segments {
    width: 100%;
  }

  .market-range-block button {
    flex: 1;
    min-width: 0;
    padding: 0 5px;
  }

  .market-toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  .market-marker-control {
    flex: 1;
  }

  .market-fit-button {
    min-width: 92px;
  }

  .market-chart-stage,
  .market-chart {
    min-height: 330px;
    height: 330px;
  }

  .market-cursor-readout {
    top: 8px;
    right: 8px;
    left: 8px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px 8px;
    max-width: none;
  }

  .market-cursor-readout time {
    grid-column: 1 / -1;
    padding: 0 0 5px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .market-stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .market-stat-strip > span:nth-child(even) {
    border-right: 0;
  }

  .market-stat-strip > span:nth-child(-n + 4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .market-dialog-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-dialog-foot span {
    flex-wrap: wrap;
  }
}

@media (max-width: 920px) {
  .funding-graph {
    grid-template-columns: minmax(0, 1fr) 90px 140px;
  }

  .target-node {
    --node-size: 132px;
  }
}

@media (max-width: 640px) {
  .funding-map-head {
    align-items: flex-start;
  }

  .funding-map-head h3 {
    font-size: 18px;
  }

  .funding-map-body {
    padding: 18px 12px;
  }

  .funding-graph {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
  }

  .funding-source-cloud {
    width: 100%;
  }

  .funding-flow {
    width: 96px;
    transform: rotate(90deg);
  }

  .funding-flow span {
    display: none;
  }

  .funding-map-foot {
    grid-template-columns: 1fr;
  }

  .funding-map-foot small {
    grid-column: 1;
  }
}

@media (max-width: 920px) {
  .pnl-metric-band {
    grid-template-columns: 1fr 1fr;
  }

  .pnl-metric-band article:nth-child(2) {
    border-right: 0;
  }

  .pnl-metric-band article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .pnl-lower-grid {
    grid-template-columns: 1fr;
  }

  .pnl-breakdown {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }
}

@media (max-width: 640px) {
  .pnl-ledger-head,
  .pnl-toolbar,
  .pnl-method {
    align-items: flex-start;
    flex-direction: column;
  }

  .pnl-ledger-head .button,
  .pnl-network-filter,
  .pnl-range-filter {
    width: 100%;
  }

  .pnl-range-filter {
    display: flex;
  }

  .pnl-range-filter button {
    flex: 1;
  }

  .pnl-metric-band article {
    min-height: 88px;
    padding: 12px;
    border-right: 0;
    border-bottom: 0;
  }

  .pnl-metric-band article:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .pnl-metric-band article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .pnl-metric-band strong {
    font-size: 19px;
  }

  .pnl-metric-band em {
    overflow: visible;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }

  .pnl-chart-shell,
  .pnl-chart {
    min-height: 290px;
    height: 290px;
  }

  .pnl-method strong {
    white-space: normal;
  }
}

/* Network workspace: compact bundle index and focused detail view. */
.bundle-shell {
  width: min(1560px, calc(100% - 32px));
}

.workspace-head {
  align-items: center;
  padding: 36px 4px 22px;
}

.workspace-head h1 {
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.workspace-copy {
  max-width: 720px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.workspace-actions .button,
.workspace-actions .profile-button {
  min-height: 42px;
}

.dashboard {
  min-height: 0;
  display: block;
  border: 1px solid var(--line-strong);
  background: rgba(255, 250, 253, 0.94);
  box-shadow: 6px 6px 0 rgba(123, 34, 158, 0.08);
}

.bundle-index {
  min-width: 0;
}

.bundle-index-head {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.bundle-index-head h2 {
  margin: 0;
  font-size: 22px;
}

.bundle-index-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bundle-index-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bundle-index-tools .search-field {
  width: min(320px, 32vw);
  margin: 0;
}

.bundle-index-tools .search-field input {
  height: 40px;
  border-color: var(--line);
  background: #fff;
}

.bundle-index-tools .icon-button {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border: 1px solid var(--line-strong);
  background: var(--purple);
  color: #fff;
}

.bundle-list-head,
.bundle-list-item {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) 150px 150px minmax(230px, 1fr) 82px 22px;
  align-items: center;
  gap: 18px;
}

.bundle-list-head {
  min-height: 44px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(239, 225, 243, 0.34);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.bundle-list {
  display: block;
  padding: 0;
}

.bundle-list-item {
  width: 100%;
  min-height: 82px;
  padding: 13px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.bundle-list-item:hover,
.bundle-list-item.active {
  border-left: 0;
  background: rgba(239, 225, 243, 0.28);
}

.bundle-primary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.bundle-primary .bundle-glyph {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.bundle-list-copy strong {
  font-size: 14px;
}

.bundle-list-copy small,
.bundle-list-value small,
.bundle-wallet-count small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.bundle-list-value,
.bundle-wallet-count {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.bundle-list-value strong,
.bundle-wallet-count strong {
  overflow: hidden;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bundle-top-tokens {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}

.bundle-top-tokens > small {
  color: var(--muted);
  font-size: 10px;
}

.bundle-token-chip {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px 4px 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.bundle-token-chip i {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

.bundle-token-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bundle-token-chip b {
  max-width: 74px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bundle-row-arrow {
  color: var(--muted);
  font-size: 18px;
  transition: transform 140ms ease, color 140ms ease;
}

.bundle-list-item:hover .bundle-row-arrow {
  color: var(--purple);
  transform: translateX(3px);
}

.bundle-index-foot {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: rgba(239, 225, 243, 0.18);
}

.bundle-index-foot .save-state {
  margin: 0;
  border: 0;
  background: transparent;
}

.bundle-index-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.bundle-index-foot strong {
  color: var(--text);
}

.workspace-empty {
  min-height: 430px;
  border: 0;
  background: transparent;
}

.bundle-main {
  min-width: 0;
  background: transparent;
}

.bundle-head {
  min-height: 96px;
  padding: 17px 24px;
}

.back-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font-size: 20px;
}

.back-button:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.bundle-head .bundle-glyph.large {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.bundle-name-line h2 {
  font-size: 22px;
}

.bundle-tabs {
  min-height: 48px;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.bundle-tabs button {
  min-width: 0;
  padding: 0 2px;
  border-bottom-width: 3px;
  font-size: 11px;
}

.bundle-tabs button span {
  min-width: 18px;
  min-height: 18px;
  margin-left: 4px;
}

.tab-panel {
  padding: 20px 24px 24px;
}

.metric-band,
.pulse-section,
.activity-section,
.pnl-ledger,
.data-view,
.wallet-directory-view,
.rules-panel {
  border-color: var(--line);
}

@media (max-width: 1120px) {
  .token-search-head,
  .token-search-row {
    min-width: 760px;
    grid-template-columns: minmax(230px, 1.5fr) 102px 72px 104px 104px 108px;
  }

  .token-search-head > :nth-child(3),
  .token-search-head > :nth-child(4),
  .token-search-row > :nth-child(3),
  .token-search-row > :nth-child(4) {
    display: none;
  }

  .bundle-list-head,
  .bundle-list-item {
    grid-template-columns: minmax(220px, 1.35fr) 125px 125px minmax(170px, 0.9fr) 62px 18px;
    gap: 12px;
  }

  .bundle-token-chip:nth-child(3) {
    display: none;
  }
}

@media (max-width: 820px) {
  .bundle-shell {
    width: min(100% - 20px, 1560px);
  }

  .workspace-head {
    align-items: flex-start;
    padding-top: 28px;
  }

  .workspace-head h1 {
    font-size: 34px;
  }

  .token-search-form { grid-template-columns: 24px minmax(0, 1fr) 32px; }
  .token-search-source { display: none; }
  .token-search-panel { overflow-x: auto; }

  .bundle-list-head {
    display: none;
  }

  .bundle-list-item {
    grid-template-columns: minmax(0, 1.5fr) minmax(90px, 0.65fr) minmax(90px, 0.65fr) 18px;
    gap: 12px;
    padding: 14px 16px;
  }

  .bundle-top-tokens,
  .bundle-wallet-count {
    display: none;
  }

  .bundle-index-head,
  .bundle-index-foot {
    padding-right: 16px;
    padding-left: 16px;
  }

  .bundle-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .workspace-head {
    gap: 16px;
  }

  .workspace-actions {
    display: flex;
  }

  .workspace-actions .profile-button,
  .workspace-actions .button {
    flex: 0 0 auto;
  }

  .bundle-index-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .bundle-index-tools,
  .bundle-index-tools .search-field {
    width: 100%;
  }

  .bundle-list-item {
    grid-template-columns: minmax(0, 1fr) auto 18px;
  }

  .bundle-list-value:nth-of-type(3) {
    display: none;
  }

  .bundle-list-value strong {
    font-size: 12px;
  }

  .bundle-index-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .bundle-head {
    padding: 14px;
  }

  .bundle-title-row {
    align-items: flex-start;
  }

  .bundle-head .bundle-glyph.large {
    display: none;
  }

  .bundle-head-actions {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .bundle-head-actions .button {
    min-width: 0;
    padding: 7px 8px;
    font-size: 9px;
  }

  .bundle-tabs {
    gap: 14px;
    padding: 0 14px;
  }

  .bundle-tabs button {
    min-width: max-content;
  }

  .tab-panel {
    padding: 14px 10px 16px;
  }
}

/* Unified bundle portfolio */
.portfolio-dashboard {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.portfolio-rail,
.portfolio-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.portfolio-summary-card,
.bundle-notes-card,
.portfolio-chart-card,
.portfolio-assets-card,
.portfolio-transactions-card {
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: 7px 7px 0 rgba(47, 13, 55, 0.055);
}

.portfolio-chart-card {
  display: flex;
  flex-direction: column;
}

.portfolio-card-head,
.portfolio-chart-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}

.portfolio-card-head h3,
.portfolio-chart-head h3 {
  margin: 0;
  font-size: 18px;
}

.portfolio-summary {
  min-height: 340px;
}

.portfolio-balance {
  min-height: 136px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(184, 100, 213, 0.09), rgba(8, 126, 90, 0.035));
}

.portfolio-balance > span,
.portfolio-summary-rows span,
.portfolio-chart-head p span {
  color: var(--muted);
}

.portfolio-balance > span,
.portfolio-summary-rows span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-balance strong {
  overflow: hidden;
  font-size: 36px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-balance em {
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.portfolio-summary-rows {
  display: grid;
}

.portfolio-summary-rows > div {
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}

.portfolio-summary-rows > div:last-child {
  border-bottom: 0;
}

.portfolio-summary-rows strong {
  overflow: hidden;
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bundle-notes-card {
  min-height: 270px;
}

.bundle-note-list {
  display: grid;
}

.bundle-note {
  margin: 0;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}

.bundle-note p {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.bundle-note footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
}

.bundle-note time,
.bundle-notes-empty span {
  color: var(--muted);
  font-size: 9px;
}

.bundle-note button {
  width: 24px;
  height: 24px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.bundle-note button:hover {
  border-color: var(--red);
  color: var(--red);
}

.bundle-notes-empty {
  min-height: 198px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  text-align: center;
}

.bundle-notes-empty strong {
  font-size: 13px;
}

.portfolio-chart-head {
  min-height: 84px;
  padding: 14px 18px;
}

.portfolio-chart-head > div > p:last-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 0;
}

.portfolio-chart-head p strong {
  font-size: 24px;
  line-height: 1;
}

.portfolio-chart-head p span {
  font-size: 10px;
  font-weight: 700;
}

.portfolio-chart-card .pnl-toolbar {
  min-height: 50px;
  border-bottom-color: var(--line-strong);
}

.portfolio-chart-card .pnl-chart-shell {
  min-height: 230px;
  order: 4;
  border-top: 1px solid var(--line-strong);
  background: var(--paper);
}

.portfolio-chart-card .pnl-chart {
  height: 230px;
}

.portfolio-chart-card .pnl-chart-empty {
  color: var(--text);
  background: linear-gradient(180deg, rgba(184, 100, 213, 0.035), transparent);
}

.portfolio-chart-card .pnl-chart-empty span {
  color: var(--muted);
}

.pnl-insights {
  order: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  margin: 16px;
  border: 1px solid #2b2e36;
  border-radius: 6px;
  background: #111318;
  color: #f8f7fa;
  overflow: hidden;
}

.pnl-calendar-panel,
.pnl-analysis-panel {
  min-width: 0;
}

.pnl-calendar-panel {
  border-right: 1px solid #2b2e36;
}

.pnl-insight-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border-bottom: 1px solid #2b2e36;
}

.pnl-insights .eyebrow {
  color: #bd70da;
}

.pnl-insights .pnl-hero-metrics span,
.pnl-insights .pnl-hero-metrics small,
.pnl-insights .pnl-tx-balance,
.pnl-insights .pnl-analysis-list dt,
.pnl-insights .pnl-calendar-weekdays {
  color: #a7a4ad;
}

.pnl-insight-head h4 {
  margin: 0;
  font-size: 16px;
}

.pnl-calendar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pnl-mode-filter {
  display: flex;
  border: 1px solid #393c45;
  background: #1b1d23;
}

.pnl-mode-filter button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #393c45;
  background: transparent;
  color: #a7a4ad;
  font: 800 9px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.pnl-mode-filter button:last-child { border-right: 0; }
.pnl-mode-filter button.active { background: #30253a; color: #fff; }

.calendar-nav {
  display: grid;
  grid-template-columns: 30px minmax(104px, auto) 30px;
  align-items: center;
  border: 1px solid #393c45;
  background: #1b1d23;
}

.calendar-nav button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #f8f7fa;
  font-size: 14px;
}

.calendar-nav button:hover {
  background: #30253a;
}

.calendar-nav strong {
  padding: 0 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  text-align: center;
  text-transform: uppercase;
}

.pnl-hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #2b2e36;
}

.pnl-hero-metrics > div {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 16px;
}

.pnl-hero-metrics > div:first-child {
  border-right: 1px solid #2b2e36;
}

.pnl-hero-metrics span,
.pnl-hero-metrics small,
.pnl-tx-balance,
.pnl-analysis-list dt,
.pnl-analysis-list dd,
.pnl-calendar-weekdays,
.pnl-calendar-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pnl-hero-metrics span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.pnl-hero-metrics strong {
  font-size: 30px;
  line-height: 1;
}

.pnl-hero-metrics small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.pnl-summary-lines {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid #2b2e36;
}

.pnl-summary-lines > div {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pnl-summary-lines dt,
.pnl-summary-lines dd {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
}

.pnl-summary-lines dt {
  color: #a7a4ad;
}

.pnl-calendar-weekdays,
.pnl-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  padding-right: 12px;
  padding-left: 12px;
}

.pnl-calendar-weekdays {
  padding-top: 12px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.pnl-calendar {
  padding-top: 6px;
  padding-bottom: 14px;
}

.pnl-calendar-cell {
  min-width: 0;
  aspect-ratio: 1.45;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  border: 1px solid #23262d;
  border-radius: 3px;
  background: #181a1f;
  color: #777984;
  overflow: hidden;
}

.pnl-calendar-cell.gain {
  border-color: rgba(8, 126, 90, calc(0.16 + var(--pnl-intensity) * 0.35));
  background: rgba(18, 178, 124, calc(0.12 + var(--pnl-intensity) * 0.26));
  color: #38d39f;
}

.pnl-calendar-cell.loss {
  border-color: rgba(185, 43, 70, calc(0.16 + var(--pnl-intensity) * 0.35));
  background: rgba(238, 77, 89, calc(0.12 + var(--pnl-intensity) * 0.25));
  color: #ff6671;
}

.pnl-calendar-cell.estimated {
  border-style: dashed;
}

.pnl-calendar-cell.outside {
  visibility: hidden;
}

.pnl-calendar-cell b {
  font-size: 13px;
}

.pnl-calendar-cell small {
  max-width: 100%;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pnl-tx-balance {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.pnl-analysis-list {
  margin: 0;
}

.pnl-analysis-list > div {
  min-height: 49px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(110px, auto);
  align-items: center;
  gap: 14px;
  padding: 9px 15px;
  border-bottom: 1px solid #2b2e36;
}

.pnl-analysis-list > div:last-child {
  border-bottom: 0;
}

.pnl-analysis-list dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.pnl-analysis-list dd {
  margin: 0;
  color: #f8f7fa;
  font-size: 10px;
  font-weight: 900;
  text-align: right;
}

.portfolio-asset-table,
.portfolio-transaction-table {
  min-width: 0;
  overflow: hidden;
}

.portfolio-asset-row {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(190px, 1.7fr) minmax(86px, 0.75fr) minmax(86px, 0.75fr) minmax(94px, 0.8fr) 64px minmax(80px, 0.7fr);
  align-items: center;
  gap: 12px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

button.portfolio-asset-row:hover {
  background: rgba(239, 225, 243, 0.38);
}

.portfolio-asset-row:last-child {
  border-bottom: 0;
}

.portfolio-asset-header {
  min-height: 36px;
  background: rgba(239, 225, 243, 0.46);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-asset-row > span:not(.token-cell),
.portfolio-asset-row > strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-asset-row .token-cell strong {
  font-size: 12px;
}

.portfolio-asset-row .token-cell small {
  max-width: 150px;
}

.transactions-head .filter-row {
  flex: 0 0 auto;
}

.portfolio-transaction-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(135px, 1.1fr) 72px minmax(170px, 1.2fr) minmax(80px, 0.75fr) minmax(85px, 0.65fr) 70px;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.portfolio-transaction-row:last-child {
  border-bottom: 0;
}

.portfolio-transaction-row > span,
.portfolio-transaction-row > strong,
.portfolio-transaction-row > time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-transaction-row > span:first-child {
  display: grid;
  gap: 2px;
}

.portfolio-transaction-row small,
.portfolio-transaction-row time {
  color: var(--muted);
  font-size: 9px;
}

.portfolio-transaction-header {
  min-height: 36px;
  background: rgba(239, 225, 243, 0.46);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .portfolio-dashboard {
    grid-template-columns: 1fr;
  }

  .portfolio-rail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .portfolio-summary,
  .bundle-notes-card {
    min-height: 0;
  }

  .portfolio-asset-row {
    grid-template-columns: minmax(170px, 1.6fr) minmax(80px, 0.8fr) minmax(84px, 0.8fr) minmax(90px, 0.85fr) 56px minmax(76px, 0.7fr);
  }

  .pnl-insights {
    grid-template-columns: 1fr;
  }

  .pnl-calendar-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }
}

@media (max-width: 760px) {
  .portfolio-rail {
    grid-template-columns: 1fr;
  }

  .portfolio-chart-head,
  .portfolio-card-head.transactions-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-chart-head .button,
  .transactions-head .filter-row {
    width: 100%;
  }

  .transactions-head .filter-row button {
    flex: 1;
  }

  .portfolio-chart-card .pnl-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .portfolio-chart-card .pnl-chart-shell,
  .portfolio-chart-card .pnl-chart {
    min-height: 270px;
    height: 270px;
  }

  .pnl-insight-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-nav {
    width: 100%;
    grid-template-columns: 36px 1fr 36px;
  }

  .pnl-calendar-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .pnl-mode-filter button { flex: 1; }

  .calendar-nav button {
    width: 36px;
  }

  .pnl-calendar-weekdays,
  .pnl-calendar {
    gap: 3px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .pnl-calendar-cell {
    aspect-ratio: 1;
  }

  .pnl-calendar-cell small {
    display: block;
    font-size: 9px;
  }

  .portfolio-asset-row {
    grid-template-columns: minmax(150px, 1.5fr) minmax(76px, 0.75fr) minmax(86px, 0.8fr) 54px;
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .portfolio-asset-row > :nth-child(3),
  .portfolio-asset-row > :nth-child(6) {
    display: none;
  }

  .portfolio-transaction-row {
    grid-template-columns: minmax(108px, 1fr) 62px minmax(135px, 1.2fr) minmax(78px, 0.7fr);
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .portfolio-transaction-row > :nth-child(5),
  .portfolio-transaction-row > :nth-child(6) {
    display: none;
  }
}

@media (max-width: 480px) {
  .portfolio-balance strong {
    font-size: 30px;
  }

  .portfolio-chart-head > div > p:last-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-asset-row {
    grid-template-columns: minmax(130px, 1.35fr) minmax(72px, 0.65fr) minmax(76px, 0.7fr);
  }

  .portfolio-asset-row > :nth-child(5) {
    display: none;
  }

  .portfolio-transaction-row {
    grid-template-columns: minmax(105px, 1fr) 58px minmax(115px, 1.1fr);
  }

  .portfolio-transaction-row > :nth-child(4) {
    display: none;
  }
}

/* Network token directory */
.market-launcher {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 2.3fr);
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 250, 253, 0.94);
}

.market-launcher.hidden { display: none; }
.market-launcher-copy h2 { margin: 0; font-size: 24px; }
.market-launcher-copy .eyebrow { margin-bottom: 5px; }

.market-launcher-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.market-launcher-options > button {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.market-launcher-options > button:hover,
.market-launcher-options > button:focus-visible {
  border-color: var(--purple);
  box-shadow: 3px 3px 0 rgba(123, 34, 158, 0.16);
}

.market-launcher-options button > span { min-width: 0; display: grid; gap: 3px; }
.market-launcher-options strong { font-size: 13px; }
.market-launcher-options small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.market-launcher-options button > b { color: var(--purple); font-size: 16px; }

.chain-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #1a1d25;
  color: #fff;
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-style: normal;
}

.chain-mark.base,
.chain-mark.robinhood,
.chain-mark.arc { border: 0; background: transparent; flex-shrink: 0; }
.chain-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.chain-mark.solana { position: relative; background: #11131a; }
.chain-mark.solana::before,
.chain-mark.solana::after,
.chain-mark.solana > span {
  position: absolute;
  left: 6px;
  width: 19px;
  height: 4px;
  transform: skew(-28deg);
  background: linear-gradient(90deg, #a444f0, #40e7c8);
}
.chain-mark.solana::before { content: ""; top: 7px; }
.chain-mark.solana > span { top: 13px; }
.chain-mark.solana::after { content: ""; top: 19px; }

.network-market-page {
  min-height: 680px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  margin-top: 18px;
  border: 1px solid #30333c;
  background: #0c0e13;
  color: #f7f5f8;
  box-shadow: 8px 8px 0 rgba(38, 15, 47, 0.18);
}

.network-market-page.hidden { display: none; }

.market-chain-rail {
  min-width: 0;
  padding: 14px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: #111319;
}

.market-chain-rail header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 10px 18px;
  color: rgba(255, 255, 255, 0.42);
  font: 900 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.market-chain-rail header button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
}

.market-chain-rail > button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  text-align: left;
}

.market-chain-rail > button:hover { background: rgba(255, 255, 255, 0.045); color: #fff; }
.market-chain-rail > button.active { border-left-color: #c15ee1; background: #202127; color: #fff; }

.network-market-content { min-width: 0; padding-bottom: 22px; overflow: hidden; }
.network-market-head {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.network-market-head h1 { margin: 0; color: #fff; font-size: 32px; letter-spacing: 0; }
.network-market-head p:last-child { margin: 7px 0 0; color: rgba(255, 255, 255, 0.44); font-size: 11px; }
.network-market-head .button { border-color: rgba(255, 255, 255, 0.18); }

.network-market-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.network-market-stats:empty { display: none; }
.network-market-stats > div { min-width: 0; display: grid; gap: 5px; padding: 16px 20px; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.network-market-stats > div:last-child { border-right: 0; }
.network-market-stats span,
.network-market-stats small { color: rgba(255, 255, 255, 0.42); font: 800 8px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; }
.network-market-stats strong { overflow: hidden; color: #fff; font-size: 20px; text-overflow: ellipsis; }
.network-market-stats > div:nth-child(2) strong { color: #67d9ff; }
.network-market-stats > div:nth-child(3) strong { color: #63dbab; }
.network-market-stats > div:nth-child(4) strong { color: #e6a5f4; }

.network-token-table {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #4a4e5c #111319;
  scrollbar-width: thin;
}
.network-token-table::-webkit-scrollbar { height: 8px; }
.network-token-table::-webkit-scrollbar-track { background: #111319; }
.network-token-table::-webkit-scrollbar-thumb { border: 2px solid #111319; background: #4a4e5c; }
.network-token-row {
  width: 100%;
  min-width: 1230px;
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(255px, 1.55fr) 108px 62px 84px 112px repeat(4, 70px) 108px 108px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #0c0e13;
  color: rgba(255, 255, 255, 0.76);
  text-align: right;
}
.network-token-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 42px;
  background: #171920;
  color: rgba(255, 255, 255, 0.48);
  font: 900 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.network-token-header > button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
  text-transform: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.network-token-header > button:first-child { text-align: left; }
.network-token-header > button::after { content: ""; display: inline-block; width: 9px; margin-left: 3px; color: #d874f0; }
.network-token-header > button.active { color: #fff; text-shadow: 0 0 18px rgba(216, 116, 240, 0.65); }
.network-token-header > button.active[data-direction="asc"]::after { content: "↑"; }
.network-token-header > button.active[data-direction="desc"]::after { content: "↓"; }
.network-token-header > button:hover,
.network-token-header > button:focus-visible { color: #fff; }
.network-token-row > :first-child { text-align: left; }
.network-token-row > :nth-child(2) { color: #fff; font-size: 11px; }
#network-token-rows .network-token-row:nth-child(even) { background: #0f1117; }
.network-token-row > :first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  align-self: stretch;
  align-items: center;
  background: #0c0e13;
  box-shadow: 14px 0 18px -18px rgba(0, 0, 0, 0.9);
}
.network-token-header > :first-child { z-index: 6; display: flex; align-items: center; background: #171920; }
#network-token-rows .network-token-row:nth-child(even) > :first-child { background: #0f1117; }
#network-token-rows .network-token-row:hover,
#network-token-rows .network-token-row:focus-visible { background: #17151d; box-shadow: inset 3px 0 #bf5cde; }
#network-token-rows .network-token-row:hover > :first-child,
#network-token-rows .network-token-row:focus-visible > :first-child { background: #17151d; }
.network-token-row > strong,
.network-token-row > span:not(.network-token-main) { font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.network-token-main { min-width: 0; display: grid; grid-template-columns: 24px minmax(145px, 1fr) auto; align-items: center; gap: 8px; }
.network-token-main > b { color: rgba(255, 255, 255, 0.26); font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.network-token-main > small { color: rgba(255, 255, 255, 0.34); font-size: 8px; white-space: nowrap; }
.network-token-main .token-cell { min-width: 0; }
.network-token-main .token-logo { width: 34px; height: 34px; flex-basis: 34px; background: #20232c; border-color: rgba(255, 255, 255, 0.14); }
.network-token-main .token-cell > span { min-width: 0; }
.network-token-main .token-cell strong,
.network-token-main .token-cell small { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.network-token-row .positive { color: #48dc9f; background: rgba(33, 190, 124, 0.075); }
.network-token-row .negative { color: #ff6f7d; background: rgba(232, 73, 93, 0.075); }
.network-token-row > :nth-child(6),
.network-token-row > :nth-child(7),
.network-token-row > :nth-child(8),
.network-token-row > :nth-child(9) { justify-self: stretch; padding: 8px 6px; border-radius: 4px; text-align: center; }

.network-market-message {
  min-width: 720px;
  min-height: 330px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
}
.network-market-message.error strong { color: #ff7889; }
.network-market-message button { min-height: 34px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #fff; font-weight: 800; }

@media (max-width: 1400px) {
  .network-token-row {
    min-width: 820px;
    grid-template-columns: minmax(220px, 1.5fr) 92px 50px 72px 96px 62px 62px 92px;
    padding-inline: 14px;
  }
  .network-token-row > :nth-child(6),
  .network-token-row > :nth-child(8),
  .network-token-row > :nth-child(11) { display: none; }
  .network-token-main { grid-template-columns: 24px minmax(0, 1fr); }
  .network-token-main > small { display: none; }
  .network-token-main .token-cell strong,
  .network-token-main .token-cell small { max-width: 150px; }
}

@media (max-width: 1000px) {
  .market-launcher { grid-template-columns: 1fr; }
  .network-market-page { grid-template-columns: 1fr; }
  .market-chain-rail { display: flex; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .market-chain-rail header { flex: 0 0 auto; padding: 8px; }
  .market-chain-rail header span { display: none; }
  .market-chain-rail > button { width: auto; min-width: 142px; border-left: 0; border-bottom: 3px solid transparent; }
  .market-chain-rail > button.active { border-bottom-color: #c15ee1; }
}

@media (max-width: 720px) {
  .market-launcher-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network-market-head { align-items: flex-start; }
  .network-market-head h1 { font-size: 27px; }
  .network-market-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .network-market-stats > div:nth-child(2) { border-right: 0; }
  .network-market-stats > div:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .network-token-row {
    min-width: 560px;
    grid-template-columns: minmax(190px, 1.5fr) 82px 46px 88px 58px;
    gap: 6px;
    padding-inline: 10px;
  }
  .network-token-row > :nth-child(4),
  .network-token-row > :nth-child(7),
  .network-token-row > :nth-child(10) { display: none; }
}
.token-page-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:12px 16px; border-bottom:1px solid #303039; background:#14151a; }
.token-page-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:8px 14px; border:1px solid #49414f; border-radius:4px; color:#f1edf5; text-decoration:none; font:600 13px/1.4 system-ui,sans-serif; }
.token-page-actions a:first-child { background:#8130a3; border-color:#ad65c9; margin-right:auto; }
.token-page-actions a:hover { border-color:#d8a6ed; background:#35243f; }
.token-page-actions a:focus-visible { outline:2px solid #d8a6ed; outline-offset:3px; }
.token-page-actions .hidden { display:none; }
