:root {
  color-scheme: dark;
  --bg: #070b10;
  --panel: #0c1219;
  --panel-2: #101821;
  --panel-3: #131e29;
  --line: #1d2a36;
  --line-soft: rgba(87, 111, 132, 0.16);
  --text: #e8eef5;
  --muted: #7f91a3;
  --muted-2: #566778;
  --green: #41e5a1;
  --green-soft: rgba(65, 229, 161, 0.12);
  --red: #ff6b7a;
  --red-soft: rgba(255, 107, 122, 0.12);
  --yellow: #e9c45b;
  --yellow-soft: rgba(233, 196, 91, 0.12);
  --blue: #61a9ff;
  --blue-soft: rgba(97, 169, 255, 0.12);
  --radius: 10px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}

button,
input,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: clamp(288px, 22vw, 360px) minmax(0, 1fr) 276px;
  width: 100%;
  height: 100vh;
  background:
    radial-gradient(circle at 70% -20%, rgba(52, 104, 145, 0.13), transparent 42%),
    var(--bg);
}

.sidebar {
  z-index: 20;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: rgba(9, 14, 20, 0.98);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.brand-mark,
.token-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(99, 185, 255, 0.45);
  border-radius: 9px;
  background: linear-gradient(145deg, #81c7ff, #6684ff 58%, #805eea);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.42), 0 8px 30px rgba(46, 103, 193, 0.2);
  color: #08121d;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.brand-row h1,
.launches-heading h2,
.token-title-group h2,
.trades-toolbar h3,
.empty-state h2 {
  margin: 0;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.brand-row h1 {
  font-size: 16px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launches-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 16px 12px;
}

.launches-heading h2 {
  font-size: 15px;
}

.launches-heading p,
.trades-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.connection-pill,
.fcfs-badge,
.state-badge,
.symbol-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.connection-pill {
  padding: 6px 8px;
}

.status-dot,
.network-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px currentColor;
}

.connection-pill.online .status-dot,
.network-dot {
  color: var(--green);
  background: var(--green);
}

.connection-pill.error .status-dot {
  color: var(--red);
  background: var(--red);
}

.search-box,
.table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #0a1118;
  color: var(--muted);
}

.search-box {
  margin: 0 12px 10px;
  padding: 0 11px;
  border-radius: 8px;
}

.search-box:focus-within,
.table-search:focus-within {
  border-color: rgba(97, 169, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(97, 169, 255, 0.08);
}

.search-box input,
.table-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input {
  height: 38px;
  font-size: 12px;
}

.alias-filter-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 10px;
  padding: 9px 9px 9px 11px;
  border: 1px solid rgba(97, 169, 255, 0.24);
  border-radius: 8px;
  background: var(--blue-soft);
}

.alias-filter-banner > div {
  min-width: 0;
}

.alias-filter-banner span,
.alias-filter-banner strong,
.alias-filter-banner small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alias-filter-banner span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alias-filter-banner strong {
  margin-top: 2px;
  color: var(--blue);
  font-size: 11px;
}

.alias-filter-banner small {
  margin-top: 3px;
  color: #7f9bb4;
  font-family: var(--mono);
  font-size: 8px;
}

.alias-filter-banner button {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  margin-left: 0;
  border: 1px solid rgba(97, 169, 255, 0.25);
  border-radius: 5px;
  background: rgba(7, 16, 24, 0.45);
  color: var(--blue);
  cursor: pointer;
}

.alias-filter-banner .alias-filter-refresh {
  margin-left: auto;
}

.alias-filter-banner button:disabled {
  cursor: wait;
  opacity: 0.45;
}

input::placeholder {
  color: #536271;
}

.launch-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 8px 12px;
}

.launch-list-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 18px 4px;
  padding: 24px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.launch-list-state strong {
  color: #b8c5d0;
  font-size: 11px;
}

.launch-list-state span {
  font-size: 9px;
  line-height: 1.5;
}

.launch-list-state > div {
  display: flex;
  gap: 6px;
}

.launch-list-state button {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--blue);
  font-size: 9px;
  cursor: pointer;
}

.launch-list-state.error {
  border-color: rgba(255, 107, 122, 0.25);
}

.launch-list-state.error strong {
  color: var(--red);
}

.state-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(97, 169, 255, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

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

.launch-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  margin-bottom: 5px;
  padding: 11px 9px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.launch-card:hover {
  border-color: rgba(97, 169, 255, 0.2);
  background: rgba(26, 39, 52, 0.45);
}

.launch-card.selected {
  border-color: rgba(65, 229, 161, 0.52);
  background: linear-gradient(90deg, rgba(65, 229, 161, 0.11), rgba(28, 47, 59, 0.38));
  box-shadow: inset 3px 0 0 var(--green);
}

.launch-card:active {
  transform: scale(0.99);
}

.launch-content {
  min-width: 0;
}

.launch-name-line,
.launch-meta,
.launch-window {
  display: flex;
  align-items: center;
  gap: 6px;
}

.launch-name {
  overflow: hidden;
  color: #e7edf3;
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-symbol {
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
}

.launch-address {
  display: block;
  margin: 4px 0 5px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-overflow: ellipsis;
}

.launch-meta {
  color: var(--muted-2);
  font-size: 9px;
}

.launch-meta b {
  color: #8395a6;
  font-family: var(--mono);
  font-weight: 500;
}

.alias-match-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.alias-match-meta b {
  padding: 2px 4px;
  border-radius: 3px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 650;
}

.launch-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 54px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.launch-side .complete {
  color: var(--green);
}

.launch-window {
  gap: 5px;
}

.mini-progress {
  width: 42px;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #1d2a34;
}

.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.launch-skeleton {
  height: 68px;
  margin: 5px 4px;
  border-radius: 8px;
  background: linear-gradient(100deg, #0d151d 20%, #14202b 42%, #0d151d 64%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.sidebar-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.sidebar-footer div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 14px;
  background: #090f15;
}

.sidebar-footer span {
  color: var(--muted-2);
  font-size: 9px;
  text-transform: uppercase;
}

.sidebar-footer strong {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  text-overflow: ellipsis;
}

.aliases-panel {
  z-index: 20;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: rgba(9, 14, 20, 0.98);
}

.aliases-header {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line-soft);
}

.aliases-header h2,
.alias-editor h3,
.aliases-list-heading h3 {
  margin: 0;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.aliases-header h2 {
  font-size: 16px;
}

.aliases-close {
  display: none;
  margin-left: auto;
}

.alias-editor {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.alias-editor-heading,
.aliases-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.alias-editor h3,
.aliases-list-heading h3 {
  font-size: 11px;
}

.alias-cancel {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 9px;
  cursor: pointer;
}

.alias-editor form {
  display: grid;
  gap: 6px;
  margin-top: 11px;
}

.alias-editor label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.alias-editor input {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #0a1118;
  color: var(--text);
  font-family: var(--mono);
  font-size: 10px;
}

.alias-editor input:focus {
  border-color: rgba(97, 169, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(97, 169, 255, 0.08);
}

.alias-editor input[aria-invalid="true"] {
  border-color: rgba(255, 107, 122, 0.7);
}

.alias-form-message {
  min-height: 12px;
  margin: 0;
  color: var(--red);
  font-size: 8px;
  line-height: 1.4;
}

.alias-save {
  height: 32px;
  border: 1px solid rgba(65, 229, 161, 0.3);
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.aliases-list-section {
  min-height: 0;
  overflow: auto;
  padding: 14px 9px;
}

.aliases-list-heading {
  padding: 0 5px;
}

.aliases-list-heading span {
  min-width: 21px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
}

.aliases-local-note {
  margin: 7px 5px 12px;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.45;
}

.aliases-storage-warning {
  margin: 0 4px 10px;
  padding: 8px;
  border: 1px solid rgba(233, 196, 91, 0.25);
  border-radius: 6px;
  background: var(--yellow-soft);
  color: var(--yellow);
  font-size: 8px;
  line-height: 1.45;
}

.aliases-list {
  display: grid;
  gap: 5px;
}

.aliases-empty {
  display: grid;
  gap: 6px;
  padding: 22px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.aliases-empty strong {
  color: #b4c1cc;
  font-size: 10px;
}

.aliases-empty span {
  font-size: 8px;
  line-height: 1.5;
}

.alias-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(15, 23, 31, 0.72);
}

.alias-list-item:hover {
  border-color: rgba(97, 169, 255, 0.18);
}

.alias-list-item.active {
  border-color: rgba(97, 169, 255, 0.42);
  background: var(--blue-soft);
  box-shadow: inset 2px 0 0 var(--blue);
}

.alias-filter-button {
  display: grid;
  min-width: 0;
  padding: 9px 8px 9px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.alias-filter-button span,
.alias-filter-button code,
.alias-filter-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alias-filter-button span {
  color: #dce5ed;
  font-size: 11px;
  font-weight: 650;
}

.alias-filter-button code {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.alias-filter-button small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 8px;
}

.alias-list-item.active .alias-filter-button span,
.alias-list-item.active .alias-filter-button small {
  color: var(--blue);
}

.alias-item-actions {
  display: flex;
  gap: 3px;
  padding-right: 6px;
}

.alias-item-actions button {
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 12, 17, 0.45);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.alias-item-actions button:hover {
  border-color: rgba(97, 169, 255, 0.4);
  color: var(--blue);
}

.main-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.topbar {
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 19, 0.88);
  backdrop-filter: blur(16px);
}

.network-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cad5de;
  font-size: 11px;
  font-weight: 600;
}

.chain-id {
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--panel-3);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.topbar-spacer,
.toolbar-spacer {
  flex: 1;
}

.fcfs-badge {
  padding: 5px 8px;
  border-color: rgba(97, 169, 255, 0.22);
  background: var(--blue-soft);
  color: var(--blue);
}

.alias-panel-button {
  display: none;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0a1118;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  cursor: pointer;
}

.alias-panel-button span {
  min-width: 17px;
  padding: 2px 4px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: var(--blue);
  text-align: center;
}

.alias-panel-button:hover,
body.aliases-open .alias-panel-button {
  border-color: rgba(97, 169, 255, 0.4);
  color: var(--blue);
}

.window-control {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0a1118;
}

.window-control span {
  padding: 0 6px;
  color: var(--muted);
  font-size: 10px;
}

.window-control button,
.filter-tabs button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.window-control button {
  min-width: 34px;
  padding: 6px 7px;
}

.window-control button:hover,
.filter-tabs button:hover {
  color: var(--text);
}

.window-control button.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.detail-view {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}

.is-hidden {
  display: none !important;
}

.empty-state {
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 40px;
  text-align: center;
}

.empty-state h2 {
  margin-top: 4px;
  font-size: 22px;
}

.empty-state > p:last-child {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.radar-visual {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
  border: 1px solid rgba(65, 229, 161, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 229, 161, 0.11), transparent 68%);
}

.radar-visual span {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(65, 229, 161, 0.18);
  border-radius: 50%;
}

.radar-visual span:nth-child(2) {
  inset: 34px;
}

.radar-visual::before,
.radar-visual::after {
  position: absolute;
  content: "";
  background: rgba(65, 229, 161, 0.14);
}

.radar-visual::before {
  top: 45px;
  left: 8px;
  width: 76px;
  height: 1px;
}

.radar-visual::after {
  top: 8px;
  left: 45px;
  width: 1px;
  height: 76px;
}

.radar-visual i {
  position: absolute;
  top: 45px;
  left: 45px;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
  transform-origin: left;
  animation: radar 2.2s linear infinite;
}

@keyframes radar {
  to { transform: rotate(360deg); }
}

.token-hero {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(20, 31, 42, 0.55), rgba(10, 15, 21, 0));
}

.token-identity,
.title-line,
.address-line,
.hero-actions {
  display: flex;
  align-items: center;
}

.token-identity {
  gap: 13px;
  min-width: 0;
}

.token-avatar.large {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  font-size: 14px;
}

.token-title-group {
  min-width: 0;
}

.title-line {
  flex-wrap: wrap;
  gap: 8px;
}

.token-title-group h2 {
  max-width: min(42vw, 620px);
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.symbol-badge,
.state-badge {
  padding: 5px 8px;
}

.symbol-badge {
  border-color: rgba(97, 169, 255, 0.2);
  background: var(--blue-soft);
  color: var(--blue);
}

.state-badge.restricted {
  border-color: rgba(233, 196, 91, 0.28);
  background: var(--yellow-soft);
  color: var(--yellow);
}

.state-badge.open {
  border-color: rgba(65, 229, 161, 0.28);
  background: var(--green-soft);
  color: var(--green);
}

.state-badge.locked {
  border-color: rgba(255, 107, 122, 0.3);
  background: var(--red-soft);
  color: var(--red);
}

.state-badge.loading {
  border-color: rgba(97, 169, 255, 0.28);
  background: var(--blue-soft);
  color: var(--blue);
}

.state-badge.load-error {
  border-color: rgba(255, 107, 122, 0.3);
  background: var(--red-soft);
  color: var(--red);
}

.detail-load-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.detail-load-state::before {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(97, 169, 255, 0.22);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 650ms linear infinite;
  content: "";
}

.detail-load-state.error {
  color: var(--red);
}

.detail-load-state.error::before {
  border: 0;
  animation: none;
  content: "!";
}

.address-line {
  gap: 7px;
  margin-top: 7px;
}

.address-line code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.copy-button,
.export-button,
.icon-button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111a23;
  cursor: pointer;
}

.copy-button {
  padding: 3px 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.copy-button:hover,
.export-button:hover,
.icon-button:hover {
  border-color: rgba(97, 169, 255, 0.45);
  color: var(--blue);
}

.hero-actions {
  gap: 6px;
  margin-left: auto;
  padding-left: 18px;
}

.link-button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d151d;
  color: #a8b6c3;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.link-button:hover {
  border-color: rgba(97, 169, 255, 0.45);
  color: var(--blue);
}

.link-button.primary {
  border-color: rgba(65, 229, 161, 0.3);
  background: var(--green-soft);
  color: var(--green);
}

.link-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.38;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line-soft);
}

.stat-card {
  min-width: 0;
  min-height: 84px;
  padding: 13px 16px;
  background: rgba(11, 17, 24, 0.97);
}

.stat-card > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#stat-current-l1 {
  line-height: 1.35;
  white-space: normal;
}

.stat-card.accent-buy strong {
  color: var(--green);
}

.stat-card.accent-sell strong {
  color: var(--red);
}

.progress-track {
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #1d2934;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 220ms ease;
}

.gas-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 16px;
  padding: 10px 12px;
  border: 1px solid rgba(97, 169, 255, 0.15);
  border-radius: 8px;
  background: rgba(97, 169, 255, 0.055);
  color: var(--muted);
  font-size: 10px;
}

.gas-note strong {
  color: var(--blue);
}

.gas-note-icon {
  color: var(--blue);
}

.gas-note > span:last-child {
  margin-left: auto;
  color: #73889b;
  font-family: var(--mono);
  white-space: nowrap;
}

.trades-panel {
  margin: 0 16px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 15, 21, 0.94);
}

.trades-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px 10px 14px;
  border-bottom: 1px solid var(--line);
}

.trades-toolbar h3 {
  font-size: 13px;
}

.filter-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0a1117;
}

.filter-tabs button {
  padding: 6px 8px;
}

.filter-tabs button.active[data-filter="ALL"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.filter-tabs button.active[data-filter="CREATE"] {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.filter-tabs button.active[data-filter="BUY"] {
  background: var(--green-soft);
  color: var(--green);
}

.filter-tabs button.active[data-filter="SELL"] {
  background: var(--red-soft);
  color: var(--red);
}

.table-search {
  width: 150px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
}

.table-search input {
  font-size: 10px;
}

.export-button {
  height: 32px;
  padding: 0 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.table-wrap {
  max-height: min(52vh, 560px);
  overflow: auto;
}

table {
  width: 100%;
  min-width: 1430px;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

thead {
  position: sticky;
  top: 0;
  z-index: 4;
}

th {
  height: 35px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: #0d151d;
  color: #617283;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-align: left;
  white-space: nowrap;
}

td {
  height: 45px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: #c4cfd9;
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

tbody tr {
  background: rgba(10, 16, 22, 0.7);
}

tbody tr:nth-child(even) {
  background: rgba(13, 21, 29, 0.72);
}

tbody tr:hover {
  background: rgba(28, 43, 56, 0.72);
}

tbody tr.block-start td {
  border-top: 1px solid rgba(97, 169, 255, 0.15);
}

.block-cell a,
.tx-link,
.trader-link {
  color: var(--blue);
  text-decoration: none;
}

.block-cell small,
.delta-cell small,
.position-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 8px;
}

.event-badge {
  display: inline-flex;
  min-width: 46px;
  justify-content: center;
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
}

.event-badge.create {
  background: var(--yellow-soft);
  color: var(--yellow);
}

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

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

.label-chip {
  display: inline-block;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-2);
  color: #94a5b4;
  font-size: 8px;
}

.label-chip.dev {
  border-color: rgba(233, 196, 91, 0.22);
  background: var(--yellow-soft);
  color: var(--yellow);
}

.label-chip.first {
  border-color: rgba(97, 169, 255, 0.25);
  background: var(--blue-soft);
  color: var(--blue);
}

.amount-buy {
  color: var(--green);
}

.amount-sell {
  color: var(--red);
}

.amount-create {
  color: var(--yellow);
}

.muted-cell {
  color: var(--muted);
}

.copy-inline {
  margin-left: 5px;
  padding: 1px 3px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--muted-2);
  font-size: 8px;
  cursor: pointer;
}

.trader-cell-content {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trader-cell-content .copy-inline {
  margin-left: 1px;
}

.wallet-alias-chip,
.wallet-alias-add {
  max-width: 112px;
  overflow: hidden;
  padding: 3px 5px;
  border: 1px solid rgba(97, 169, 255, 0.24);
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.wallet-alias-chip:hover {
  border-color: rgba(97, 169, 255, 0.55);
}

.wallet-alias-add {
  border-color: var(--line);
  background: transparent;
  color: var(--muted-2);
}

.wallet-alias-add:hover {
  border-color: rgba(65, 229, 161, 0.35);
  color: var(--green);
}

.table-empty {
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

.detail-loading-row td {
  height: 132px;
  background: linear-gradient(100deg, rgba(11, 18, 25, 0.9), rgba(18, 30, 40, 0.72), rgba(11, 18, 25, 0.9));
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
  text-align: center;
}

.detail-load-inline,
.detail-load-error {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px 9px;
  color: var(--text);
}

.detail-load-inline .state-spinner {
  grid-row: 1 / span 2;
}

.detail-load-inline strong,
.detail-load-error strong {
  font-size: 11px;
  font-weight: 650;
}

.detail-load-inline small,
.detail-load-error small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
}

.detail-load-error {
  grid-template-columns: 1fr;
  color: var(--red);
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  color: var(--muted);
}

.menu-button,
.sidebar-close {
  display: none;
}

.mobile-scrim {
  display: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 9px 12px;
  border: 1px solid rgba(65, 229, 161, 0.35);
  border-radius: 7px;
  background: #10251f;
  color: var(--green);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #090f15;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #090f15;
  border-radius: 99px;
  background: #31404d;
}

@media (max-width: 1320px) {
  .dashboard-shell {
    grid-template-columns: clamp(288px, 22vw, 360px) minmax(0, 1fr);
  }

  .aliases-panel {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 30;
    width: min(310px, 92vw);
    box-shadow: -18px 0 45px rgba(0, 0, 0, 0.32);
    transform: translateX(102%);
    transition: transform 180ms ease;
  }

  body.aliases-open .aliases-panel {
    transform: translateX(0);
  }

  .alias-panel-button {
    display: inline-flex;
  }

  .aliases-close {
    display: grid;
  }

  .mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.aliases-open .mobile-scrim {
    opacity: 1;
    pointer-events: auto;
  }
}

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

  .stats-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .table-search {
    display: none;
  }
}

@media (max-width: 860px) {
  .dashboard-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(340px, 88vw);
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 15;
    display: block;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.sidebar-open .mobile-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-button,
  .sidebar-close {
    display: grid;
  }

  .sidebar-close {
    margin-left: auto;
  }

  .main-panel {
    height: 100vh;
  }

  .token-hero {
    align-items: flex-start;
    gap: 14px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .gas-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .gas-note > span:last-child {
    width: 100%;
    margin-left: 27px;
  }

  .trades-toolbar {
    flex-wrap: wrap;
  }

  .toolbar-spacer {
    display: none;
  }
}

@media (max-width: 580px) {
  .topbar {
    padding: 0 10px;
  }

  .network-lockup span:nth-child(2),
  .fcfs-badge,
  .window-control > span {
    display: none;
  }

  .token-hero {
    display: block;
    padding: 14px;
  }

  .hero-actions {
    margin: 13px 0 0 61px;
    padding: 0;
  }

  .token-title-group h2 {
    max-width: 54vw;
    font-size: 17px;
  }

  .address-line code {
    max-width: 54vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

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

  .gas-note,
  .trades-panel {
    margin-right: 10px;
    margin-left: 10px;
  }

  .filter-tabs {
    order: 3;
    width: 100%;
  }

  .filter-tabs button {
    flex: 1;
  }
}

@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;
  }
}
