:root {
  --dex-bg: #020202;
  --dex-panel: rgba(9, 9, 10, 0.98);
  --dex-panel-soft: rgba(14, 14, 16, 0.98);
  --dex-panel-alt: rgba(18, 18, 20, 0.98);
  --dex-border: rgba(255, 255, 255, 0.08);
  --dex-border-strong: rgba(255, 255, 255, 0.14);
  --dex-border-gold: rgba(255, 191, 71, 0.24);
  --dex-text: #f5f2ec;
  --dex-muted: #8d959f;
  --dex-gold: #ffbf47;
  --dex-cyan: #74d7ff;
  --dex-lime: #8ef0ba;
  --dex-red: #ff8fa0;
  --dex-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  --dex-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --dex-select-menu-bg: #090909;
  --dex-select-menu-text: #f5f2ec;
  --dex-select-menu-accent: #ffbf47;
  --dex-select-menu-accent-text: #050505;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Segoe UI Variable Text", sans-serif;
  color: var(--dex-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 191, 71, 0.05), transparent 18%),
    radial-gradient(circle at 88% 3%, rgba(116, 215, 255, 0.05), transparent 15%),
    linear-gradient(180deg, #050505 0%, #020202 58%, #000 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76), transparent 92%);
}

.dex-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 191, 71, 0.04), transparent 18%),
    radial-gradient(circle at 82% 22%, rgba(116, 215, 255, 0.04), transparent 18%);
  z-index: -1;
}

a,
button,
input,
select {
  font: inherit;
  color: inherit;
}

select {
  color-scheme: dark;
}

select option,
select optgroup {
  background: var(--dex-select-menu-bg);
  color: var(--dex-select-menu-text);
}

select option:checked,
select option:hover,
select option:focus-visible {
  background: var(--dex-select-menu-accent);
  color: var(--dex-select-menu-accent-text);
}

button {
  cursor: pointer;
}

.dex-header,
.dex-card {
  border: 1px solid var(--dex-border);
  background: linear-gradient(180deg, rgba(12, 12, 13, 0.98), rgba(7, 7, 8, 0.98));
  box-shadow: var(--dex-shadow);
  backdrop-filter: blur(12px);
}

.dex-header {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1440px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 12px 16px;
  border-radius: 18px;
}

.dex-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--dex-border-strong);
  background: linear-gradient(180deg, rgba(22, 22, 24, 0.98), rgba(9, 9, 10, 0.98));
  color: var(--dex-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dex-brand-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.dex-nav,
.dex-header-actions,
.dex-detail-actions,
.dex-pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dex-nav {
  justify-content: center;
}

.dex-nav a {
  color: var(--dex-muted);
  text-decoration: none;
  font-size: 0.96rem;
}

.dex-nav a:hover,
.dex-nav a[aria-current="page"] {
  color: var(--dex-text);
}

.dex-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--dex-border);
  background: rgba(255, 255, 255, 0.015);
  color: var(--dex-text);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.dex-button:hover {
  transform: translateY(-2px);
  border-color: var(--dex-border-strong);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.dex-button-primary {
  border-color: var(--dex-border-gold);
  background: linear-gradient(180deg, #171208 0%, #0e0c08 100%);
  color: var(--dex-gold);
  font-weight: 700;
}

.dex-button-ghost {
  background: rgba(255, 255, 255, 0.02);
}

.dex-mobile-dock {
  display: none;
}

.dex-shell {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 18px;
  width: min(1440px, calc(100% - 28px));
  margin: 18px auto 52px;
}

.dex-directory {
  display: grid;
  gap: 14px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.dex-card,
.dex-directory-card,
.dex-hero,
.dex-toolbar,
.dex-table-card,
.dex-detail-card {
  border-radius: 18px;
}

.dex-card,
.dex-directory-card {
  padding: 16px;
}

.dex-directory-card {
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.dex-directory-card:hover {
  transform: translateY(-2px);
  border-color: var(--dex-border-strong);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--dex-gold);
  font-size: 0.72rem;
  font-family: var(--dex-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dex-copy {
  margin: 0;
  color: var(--dex-muted);
  line-height: 1.6;
  max-width: 68ch;
}

.dex-live-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dex-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(142, 240, 186, 0.18);
  background: rgba(142, 240, 186, 0.06);
  color: var(--dex-text);
  font-family: var(--dex-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dex-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dex-lime);
  box-shadow: 0 0 0 0 rgba(142, 240, 186, 0.4);
  animation: dexPulse 1.8s ease-out infinite;
}

.dex-live-copy {
  color: var(--dex-muted);
  font-size: 0.92rem;
}

.dex-subtle {
  color: var(--dex-muted);
  font-size: 0.8rem;
}

.dex-directory-card strong,
.dex-section-head strong,
.dex-subsection-head span:first-child,
.dex-detail-card strong,
.dex-hero strong {
  display: block;
}

.dex-directory-links {
  display: grid;
  gap: 8px;
}

.dex-directory-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  color: var(--dex-text);
  text-decoration: none;
}

.dex-directory-links a::after {
  content: "->";
  color: var(--dex-gold);
  font-family: var(--dex-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.dex-watchlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.dex-bookmark-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.dex-main {
  display: grid;
  gap: 16px;
}

.dex-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.82fr);
  gap: 16px;
}

.dex-hero h1 {
  margin: 8px 0 12px;
  max-width: 12ch;
  font-family: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4.7vw, 4.4rem);
  line-height: 0.92;
  text-wrap: balance;
}

.dex-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

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

.dex-stat-card,
.dex-mini-metric,
.dex-tape-card,
.dex-fact-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(17, 17, 18, 0.98), rgba(10, 10, 11, 0.98));
}

.dex-stat-card span,
.dex-mini-metric span,
.dex-tape-card span,
.dex-fact-card span {
  display: block;
  color: var(--dex-muted);
  font-size: 0.74rem;
  font-family: var(--dex-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dex-stat-card strong,
.dex-mini-metric strong,
.dex-tape-card strong,
.dex-fact-card strong {
  display: block;
  margin-top: 9px;
  font-size: 1.12rem;
  font-family: var(--dex-mono);
}

.dex-toolbar {
  display: grid;
  grid-template-columns:
    minmax(280px, 1.5fr)
    repeat(3, minmax(138px, 0.82fr))
    repeat(3, minmax(108px, 0.62fr))
    minmax(148px, 0.82fr);
  gap: 12px;
  align-items: end;
}

.dex-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dex-field-wide {
  grid-column: span 2;
}

.dex-field span {
  color: var(--dex-muted);
  font-size: 0.78rem;
  font-family: var(--dex-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dex-field input,
.dex-field select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--dex-text);
  font-family: var(--dex-mono);
}

#dexRefreshButton {
  width: 100%;
  min-height: 42px;
  grid-column: 1 / span 2;
}

.dex-board {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.88fr);
  gap: 16px;
  align-items: start;
}

.dex-table-card,
.dex-detail-card {
  min-height: 0;
}

@media (min-width: 1121px) {
  .dex-board {
    grid-template-rows: minmax(0, calc(100vh - 290px));
  }

  .dex-table-card,
  .dex-detail-card {
    height: 100%;
  }

  .dex-table-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .dex-table-scroll {
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
  }

  .dex-detail-card {
    position: sticky;
    top: 96px;
    overflow-y: auto;
    padding-right: 14px;
  }
}

.dex-section-head,
.dex-subsection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dex-section-head {
  margin-bottom: 14px;
}

.dex-meta-pill,
.dex-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--dex-border-gold);
  background: rgba(255, 191, 71, 0.05);
  color: var(--dex-text);
  font-family: var(--dex-mono);
  font-size: 0.74rem;
}

.dex-pill-muted {
  border-color: rgba(116, 215, 255, 0.16);
  background: rgba(116, 215, 255, 0.04);
  color: var(--dex-muted);
}

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

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

.dex-table th,
.dex-table td {
  padding: 11px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.dex-table th {
  color: var(--dex-muted);
  font-size: 0.7rem;
  font-family: var(--dex-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.dex-table td {
  font-family: var(--dex-mono);
  font-size: 0.88rem;
}

.dex-row-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.dex-table tbody tr {
  transition: background 0.16s ease;
}

.dex-table tbody tr:hover,
.dex-table tbody tr.is-active {
  background: rgba(255, 255, 255, 0.03);
}

.dex-pair-cell {
  display: grid;
  gap: 3px;
}

.dex-pair-cell strong {
  font-family: var(--dex-mono);
  font-size: 0.94rem;
}

.dex-pair-cell span {
  color: var(--dex-muted);
  font-size: 0.8rem;
}

.dex-score {
  color: var(--dex-lime);
  font-family: var(--dex-mono);
  font-weight: 700;
}

.dex-empty-row {
  color: var(--dex-muted);
}

.dex-detail-summary {
  margin-bottom: 14px;
  color: var(--dex-muted);
  line-height: 1.6;
  max-width: 64ch;
}

.dex-chart-card {
  min-height: 240px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 12% 12%, rgba(255, 191, 71, 0.05), transparent 14%),
    #090909;
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.dex-chart-stage {
  position: relative;
}

.dex-chart-empty {
  color: var(--dex-muted);
}

.dex-chart-svg {
  display: block;
  width: 100%;
  height: 210px;
}

.dex-chart-line {
  fill: none;
  stroke: var(--dex-cyan);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 20px rgba(116, 215, 255, 0.18));
}

.dex-chart-area {
  fill: url(#dexChartFill);
}

.dex-chart-hitbox {
  fill: transparent;
  pointer-events: all;
}

.dex-chart-crosshair {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.dex-chart-focus-dot {
  fill: var(--dex-cyan);
  filter: drop-shadow(0 0 10px rgba(116, 215, 255, 0.34));
}

.dex-chart-point {
  fill: rgba(116, 215, 255, 0.45);
}

.dex-chart-tooltip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 10px));
  display: grid;
  gap: 2px;
  min-width: 92px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 191, 71, 0.18);
  background: rgba(7, 7, 8, 0.96);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.dex-chart-tooltip strong,
.dex-chart-tooltip span {
  display: block;
  font-family: var(--dex-mono);
}

.dex-chart-tooltip strong {
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dex-chart-tooltip span {
  color: var(--gold);
  font-size: 0.8rem;
}

.dex-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--dex-muted);
  font-size: 0.76rem;
  font-family: var(--dex-mono);
}

.dex-subsection {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.dex-tape-grid,
.dex-facts-grid,
.dex-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dex-tape-card strong,
.dex-fact-card strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.dex-fact-card code {
  display: block;
  margin-top: 8px;
  color: var(--dex-muted);
  font-family: var(--dex-mono);
  font-size: 0.8rem;
  word-break: break-all;
}

.dex-positive {
  color: var(--dex-lime);
}

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

.dex-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--dex-text);
  text-decoration: none;
  gap: 12px;
  font-family: var(--dex-mono);
  font-size: 0.8rem;
}

.dex-link-pill::after {
  content: "->";
  color: var(--dex-gold);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.dex-bookmark-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--dex-mono);
  font-size: 0.8rem;
}

.dex-bookmark-pill button {
  border: 0;
  background: transparent;
  color: var(--dex-gold);
  font-family: var(--dex-mono);
  font-weight: 600;
}

.dex-empty-inline {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--dex-muted);
  background: rgba(255, 255, 255, 0.02);
}

.dex-detail-actions {
  margin-top: 16px;
}

.dex-trade-panel {
  display: grid;
  gap: 12px;
}

.dex-trade-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dex-quote-feedback {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--dex-muted);
  line-height: 1.6;
}

.dex-quote-feedback.is-success {
  border-color: rgba(142, 240, 186, 0.22);
  color: var(--dex-lime);
}

.dex-quote-feedback.is-warning {
  border-color: var(--dex-border-gold);
  color: var(--dex-gold);
}

.dex-quote-feedback.is-error {
  border-color: rgba(255, 143, 160, 0.22);
  color: var(--dex-red);
}

.dex-risk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-family: var(--dex-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dex-risk-low {
  background: rgba(142, 240, 186, 0.12);
  color: var(--dex-lime);
}

.dex-risk-medium {
  background: rgba(255, 191, 71, 0.12);
  color: var(--dex-gold);
}

.dex-risk-high {
  background: rgba(255, 143, 160, 0.12);
  color: var(--dex-red);
}

@media (max-width: 1360px) {
  .dex-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dex-field-wide {
    grid-column: span 2;
  }

  #dexRefreshButton {
    grid-column: span 2;
  }
}

@media (max-width: 1120px) {
  .dex-shell,
  .dex-board,
  .dex-hero {
    grid-template-columns: 1fr;
  }

  .dex-directory {
    display: none;
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .dex-header,
  .dex-toolbar,
  .dex-tape-grid,
  .dex-facts-grid,
  .dex-link-grid,
  .dex-trade-controls,
  .dex-metric-grid {
    grid-template-columns: 1fr;
  }

  .dex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    top: 8px;
    width: min(100%, calc(100% - 16px));
    margin-top: 8px;
    padding: 12px;
    gap: 10px;
  }

  .dex-header-actions {
    justify-content: flex-start;
  }

  .dex-nav {
    display: none;
  }

  .dex-header-actions {
    display: inline-flex;
    width: auto;
  }

  .dex-header-actions .dex-button {
    min-width: 0;
  }

  .dex-header-actions .dex-button-primary {
    display: none;
  }

  .dex-field-wide {
    grid-column: auto;
  }

  #dexRefreshButton {
    grid-column: auto;
  }

  .dex-shell {
    width: min(100%, calc(100% - 12px));
    margin: 12px auto 0;
    gap: 12px;
  }

  .dex-hero {
    gap: 12px;
  }

  .dex-live-rail,
  .dex-hero-actions {
    width: 100%;
  }

  .dex-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 12vw, 3.25rem);
  }

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

  .dex-card,
  .dex-directory-card,
  .dex-hero,
  .dex-toolbar,
  .dex-table-card,
  .dex-detail-card {
    border-radius: 16px;
  }

  .dex-card,
  .dex-directory-card {
    padding: 14px;
  }

  .dex-table-scroll {
    overflow: visible;
  }

  .dex-table thead {
    display: none;
  }

  .dex-table,
  .dex-table tbody,
  .dex-table tr,
  .dex-table td {
    display: block;
    width: 100%;
  }

  .dex-table tbody {
    display: grid;
    gap: 10px;
  }

  .dex-table tbody tr {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.016);
  }

  .dex-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    white-space: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .dex-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .dex-table td::before {
    content: attr(data-label);
    color: var(--dex-muted);
    font-size: 0.68rem;
    font-family: var(--dex-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .dex-table td[data-label="Pair"] {
    display: block;
    padding-top: 0;
  }

  .dex-table td[data-label="Pair"]::before {
    display: block;
    margin-bottom: 6px;
  }

  .dex-row-button {
    width: 100%;
  }

  .dex-pair-cell strong {
    font-size: 1rem;
  }

  .dex-detail-summary {
    max-width: none;
  }

  .dex-chart-card {
    min-height: 196px;
    padding: 12px;
  }

  .dex-chart-svg {
    height: 172px;
  }

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

  .dex-detail-actions .dex-button,
  .dex-detail-actions button {
    width: 100%;
  }

  .dex-mobile-dock {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 18;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--dex-border);
    border-radius: 18px;
    background: rgba(5, 5, 6, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
  }

  .dex-mobile-dock-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--dex-text);
    text-decoration: none;
    font-family: var(--dex-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
  }

  .dex-mobile-dock-item-accent {
    border-color: var(--dex-border-gold);
    color: var(--dex-gold);
  }
}

@media (max-width: 560px) {
  .dex-header {
    gap: 10px;
  }

  .dex-brand {
    min-width: 0;
    justify-content: flex-start;
    min-height: 42px;
    padding: 0 12px;
    letter-spacing: 0.08em;
    font-size: 0.88rem;
  }

  .dex-hero h1 {
    font-size: clamp(1.78rem, 11.5vw, 2.7rem);
    line-height: 0.98;
  }

  .dex-copy {
    font-size: 0.94rem;
  }

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

  .dex-toolbar {
    gap: 8px;
  }

  .dex-field input,
  .dex-field select,
  .dex-button {
    min-height: 44px;
  }

  .dex-table tbody tr {
    padding: 10px;
  }

  .dex-mini-metric strong,
  .dex-stat-card strong {
    font-size: 1rem;
  }

  .dex-mobile-dock {
    gap: 6px;
    padding: 8px;
  }

  .dex-mobile-dock-item {
    min-height: 44px;
    padding: 0 6px;
    font-size: 0.64rem;
  }

  .dex-header-actions .dex-button {
    min-height: 42px;
    padding: 0 12px;
  }
}

@keyframes dexPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(142, 240, 186, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(142, 240, 186, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(142, 240, 186, 0);
  }
}
