:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #101620;
  --panel-2: #151d29;
  --line: #253247;
  --text: #eef4ff;
  --muted: #9cadc3;
  --accent: #22d3a6;
  --accent-2: #63b3ff;
  --danger: #ff6b78;
  --warning: #ffd166;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(34, 211, 166, 0.08), transparent 28%),
    linear-gradient(260deg, rgba(99, 179, 255, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 0;
}

.app-shell > .topbar {
  order: 1;
}

.app-shell > .launch-notice {
  order: 2;
}

.app-shell > .summary-grid {
  order: 3;
}

.app-shell > .top-volume-panel {
  order: 4;
}

.app-shell > .workspace {
  order: 5;
}

.app-shell > .market-chart {
  order: 6;
}

.app-shell > .launch-guide {
  order: 3;
}

.app-shell > .ecosystem-panel {
  order: 7;
}

.app-shell > .community-panel {
  order: 8;
}

.topbar,
.workspace,
.summary-grid,
.launch-guide,
.top-volume-panel,
.community-panel,
.panel-heading,
.wallet-panel,
.community-actions,
.voice-panel,
.live-panel,
.listing-meta,
.card-actions,
.chat-form,
.filters,
.tabs {
  display: flex;
  gap: 10px;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.42rem, 1.8vw, 2.05rem);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.wallet-panel,
.panel-heading {
  align-items: center;
  justify-content: space-between;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 4px 7px;
  white-space: nowrap;
}

.primary-button,
.ghost-button,
.primary-link,
.ghost-link,
.tab,
.filter,
.icon-button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--text);
  font-size: 0.88rem;
}

.primary-button {
  background: var(--accent);
  color: #05120e;
  font-weight: 800;
}

.ghost-button,
.ghost-link,
.tab,
.filter,
.icon-button {
  background: var(--panel-2);
  border-color: var(--line);
}

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-link {
  background: var(--accent);
  color: #05120e;
  font-weight: 800;
}

.social-link {
  padding-inline: 12px;
}

.checkout-page {
  width: min(960px, calc(100% - 32px));
}

.checkout-panel {
  display: grid;
  gap: 16px;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 22, 32, 0.92);
  box-shadow: var(--shadow);
  padding: 22px;
}

.community-panel {
  display: none;
}

.community-panel h2 {
  margin-bottom: 6px;
}

.community-panel p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.community-actions {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-page {
  width: min(1320px, calc(100% - 32px));
}

.legal-page {
  width: min(920px, calc(100% - 48px));
}

.legal-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 22, 32, 0.92);
  box-shadow: var(--shadow);
  padding: 18px;
}

.legal-panel h2 {
  margin: 8px 0 0;
  font-size: 0.98rem;
}

.legal-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 22, 32, 0.92);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 16px;
}

.admin-stack {
  display: grid;
  gap: 8px;
}

.admin-row,
.admin-table-row,
.banner-admin-row {
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111a;
  padding: 9px;
}

.admin-row {
  grid-template-columns: 150px minmax(0, 1fr);
}

.admin-row span,
.admin-table-row small {
  color: var(--muted);
}

.admin-row code {
  overflow-wrap: anywhere;
  color: var(--accent);
}

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

.admin-metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111a;
  padding: 9px;
}

.admin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-metrics strong {
  display: block;
  margin-top: 4px;
}

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

.admin-actions input {
  min-height: 38px;
  width: 150px;
}

.export-center {
  display: grid;
  gap: 12px;
}

.export-date-row,
.export-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.export-date-row label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  gap: 5px;
}

.export-date-row input {
  min-height: 38px;
  width: 160px;
}

.reconciliation-grid {
  display: grid;
  gap: 12px;
}

.reconciliation-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111a;
  padding: 12px;
}

.reconciliation-box h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.reconciliation-box > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
}

.admin-table {
  display: grid;
  gap: 7px;
}

.admin-table-row {
  grid-template-columns: minmax(140px, 1fr) minmax(100px, 0.7fr) minmax(100px, 0.7fr) minmax(120px, 0.8fr) minmax(70px, 0.4fr) auto auto;
}

.admin-table-row span {
  min-width: 0;
}

.admin-table-row small {
  display: block;
  font-size: 0.72rem;
  margin-top: 2px;
}

.admin-message {
  grid-column: span 5;
  overflow-wrap: anywhere;
}

.banner-admin-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.banner-admin-row input[type="text"] {
  min-height: 38px;
}

.tab.active,
.filter.active {
  border-color: var(--accent);
  color: var(--accent);
}

.wide {
  width: 100%;
}

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

.launch-notice,
.launch-guide,
.top-volume-panel,
.summary-grid article,
.ecosystem-panel,
.trade-panel,
.market-panel,
.chat-panel,
.listing-card,
.modal {
  background: rgba(16, 22, 32, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.launch-notice {
  display: none;
}

.launch-notice span {
  color: var(--muted);
}

.launch-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 0;
  padding: 8px;
}

.top-volume-panel {
  display: block;
  padding: 8px;
}

.launch-guide article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 9px;
  align-content: center;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111a;
  padding: 8px 10px;
}

.launch-guide span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(34, 211, 166, 0.14);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.launch-guide strong {
  font-size: 0.92rem;
}

.launch-guide p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.launch-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.launch-links .ghost-link {
  min-height: 28px;
  padding-inline: 8px;
  font-size: 0.78rem;
}

.summary-grid article {
  padding: 9px 11px;
}

.ecosystem-panel {
  margin-bottom: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ecosystem-panel .panel-heading {
  display: none;
}

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

.route-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111a;
  min-height: 40px;
  padding: 7px 9px;
}

.route-card.route-primary {
  border-color: rgba(34, 211, 166, 0.45);
  background: rgba(34, 211, 166, 0.08);
}

.route-card span,
.route-card small {
  color: var(--muted);
  font-size: 0.74rem;
}

.route-card strong {
  display: block;
  margin-top: 1px;
  font-size: 0.88rem;
}

.route-card p {
  display: none;
}

.route-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.route-footer small {
  display: none;
}

.route-footer a {
  flex: 0 0 auto;
  min-height: 28px;
  padding-inline: 8px;
  font-size: 0.78rem;
}

.summary-grid span,
label,
.listing-card small,
.chat-message span,
.voice-panel span {
  color: var(--muted);
  font-size: 0.86rem;
}

.summary-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
}

.workspace {
  align-items: stretch;
  flex-wrap: wrap;
}

.trade-panel {
  order: 1;
  flex: 0 0 286px;
  padding: 10px;
}

.chat-panel {
  order: 3;
  flex: 1 1 100%;
  padding: 10px;
}

.market-panel {
  order: 2;
  flex: 1;
  min-width: 0;
  padding: 10px;
}

.tabs {
  margin-bottom: 8px;
}

.tab {
  flex: 1;
}

.trade-form,
.chat-panel,
.purchase-form {
  display: grid;
  gap: 8px;
}

label {
  display: grid;
  gap: 4px;
}

input,
select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090d14;
  color: var(--text);
  padding: 0 11px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
}

.voice-panel {
  display: none;
}

.live-panel {
  margin-top: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex-direction: column;
}

.live-panel .setup-field {
  display: none;
}

.live-panel:focus-within .setup-field,
.live-panel:hover .setup-field,
.live-panel.open .setup-field {
  display: block;
}

.live-panel.open {
  border-color: rgba(229, 9, 20, 0.45);
}

.balance-panel {
  display: none;
}

.balance-panel span,
.balance-panel dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.balance-panel strong {
  display: block;
  margin-top: 4px;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.balance-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
}

.balance-grid dt,
.balance-grid dd {
  margin: 0;
}

.balance-grid dd {
  margin-top: 4px;
  color: var(--text);
  font-weight: 800;
}

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

.live-panel span {
  color: var(--muted);
  font-size: 0.86rem;
}

.live-panel strong {
  display: block;
  margin-top: 4px;
}

.voice-panel div {
  flex: 1;
}

.voice-panel strong {
  display: block;
}

#voiceTranscript {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.panel-heading {
  margin-bottom: 4px;
}

.panel-heading.compact {
  margin-bottom: 4px;
}

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

.market-title-row small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.pair-chain-row {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-weight: 900;
}

.pair-token-row,
.pair-network-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pair-token-row {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1;
}

.pair-network-row {
  gap: 5px;
}

.pair-separator {
  color: var(--muted);
  font-weight: 900;
}

.chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px 0 5px;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.chain-symbol {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  background: currentColor;
}

.chain-trac {
  color: var(--accent);
  background: rgba(34, 211, 166, 0.08);
}

.chain-trac .chain-symbol {
  border: 1px solid rgba(34, 211, 166, 0.45);
  background:
    radial-gradient(circle at 42% 32%, rgba(255, 255, 255, 0.16), transparent 48%),
    #071710;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.chain-trac .chain-symbol::before {
  content: "";
  position: absolute;
  inset: 2.5px 2px;
  background: url("./assets/trac-t-symbol-white.svg") center / contain no-repeat;
}

.chain-eth {
  color: #8aa4ff;
  background: rgba(98, 126, 234, 0.12);
}

.chain-eth .chain-symbol {
  border: 1px solid rgba(138, 164, 255, 0.5);
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.18), transparent 46%),
    #101736;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.chain-eth .chain-symbol::before,
.chain-eth .chain-symbol::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.chain-eth .chain-symbol::before {
  top: 2px;
  width: 8px;
  height: 7px;
  background: linear-gradient(135deg, #eef2ff 0 48%, #8ea2ff 49% 100%);
  clip-path: polygon(50% 0, 100% 62%, 50% 100%, 0 62%);
}

.chain-eth .chain-symbol::after {
  bottom: 2px;
  width: 8px;
  height: 5px;
  background: linear-gradient(135deg, #8ea2ff 0 48%, #5267d9 49% 100%);
  clip-path: polygon(0 0, 50% 100%, 100% 0, 50% 48%);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 8px;
}

.market-chart {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 10px;
}

.price-chart-panel {
  margin-bottom: 10px;
}

.price-chart-heading {
  align-items: center;
}

.chart-heading,
.recent-heading,
.chart-stats,
.recent-trade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chart-heading h3 {
  margin: 1px 0 0;
  font-size: 1.08rem;
}

.chart-heading span,
.recent-heading span,
.recent-trade-row small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.chart-body {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #090d14;
  overflow: hidden;
}

.depth-chart {
  display: block;
  width: 100%;
  height: 220px;
}

.chart-frame {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.08);
}

.chart-axis {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.ask-bar {
  fill: rgba(34, 211, 166, 0.62);
}

.trade-area {
  fill: rgba(34, 211, 166, 0.13);
}

.trade-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.trade-dot {
  fill: #0b111a;
  stroke: var(--accent);
  stroke-width: 2.4;
}

.trade-dot.latest {
  fill: var(--accent);
  stroke: rgba(238, 244, 255, 0.94);
}

.chart-label,
.chart-caption,
.chart-empty,
.chart-latest {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.chart-latest {
  fill: var(--text);
  font-size: 13px;
}

.chart-empty {
  fill: var(--text);
  font-size: 15px;
}

.chart-empty.muted {
  fill: var(--muted);
  font-size: 12px;
}

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

.chart-stats span,
.volume-stats span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  color: var(--muted);
  font-size: 0.76rem;
}

.chart-stats strong,
.volume-stats strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 0.88rem;
}

.volume-stats span {
  background: rgba(34, 211, 166, 0.055);
}

.recent-trades {
  display: grid;
  gap: 4px;
}

.recent-trades p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.recent-trade-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
  color: var(--text);
  font-size: 0.82rem;
}

.recent-trade-row strong {
  color: var(--accent);
}

.listing-card {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.empty-listing {
  grid-column: 1 / -1;
  align-content: center;
  min-height: 142px;
  text-align: center;
}

.empty-listing strong {
  font-size: 1.08rem;
}

.empty-listing p {
  max-width: 540px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.listing-card.own-listing {
  border-color: rgba(248, 113, 113, 0.35);
}

.listing-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.side-pill {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-pill {
  margin-left: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.listing-id {
  display: inline-block;
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.owner-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
  vertical-align: middle;
}

.side-sell {
  background: rgba(34, 211, 166, 0.14);
  color: var(--accent);
}

.side-buy {
  background: rgba(99, 179, 255, 0.15);
  color: var(--accent-2);
}

.price {
  font-size: 1.08rem;
  font-weight: 900;
}

.listing-meta {
  justify-content: space-between;
}

.listing-meta strong {
  display: block;
  margin-top: 1px;
}

.settlement-note {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.08);
  color: var(--warning);
  padding: 10px;
  line-height: 1.35;
}

.settlement-note span {
  color: var(--muted);
  font-size: 0.84rem;
}

.pending-fill-row {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255, 209, 102, 0.25);
  padding-top: 8px;
}

.payment-invoice {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(34, 211, 166, 0.45);
  border-radius: 8px;
  background: rgba(34, 211, 166, 0.12);
  padding: 10px;
}

.payment-invoice strong {
  color: var(--text);
  font-size: 1rem;
}

.payment-invoice span {
  color: var(--muted);
  font-size: 0.8rem;
}

.invoice-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.invoice-address-row code {
  display: block;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.35;
  scrollbar-width: thin;
}

.invoice-address-row button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
}

.checkout-screen {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111a;
  padding: 22px;
}

.checkout-screen h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.checkout-screen p {
  color: var(--muted);
  line-height: 1.5;
}

.checkout-back {
  justify-self: start;
}

.checkout-payment {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(34, 211, 166, 0.45);
  border-radius: 8px;
  background: rgba(34, 211, 166, 0.12);
  padding: 18px;
}

.release-notice {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(34, 211, 166, 0.65);
  border-radius: 8px;
  background: rgba(34, 211, 166, 0.16);
  padding: 14px;
}

.release-notice strong {
  color: var(--text);
  font-size: 1.15rem;
}

.release-notice span,
.release-notice small {
  color: var(--muted);
  line-height: 1.45;
}

.release-notice small {
  overflow-wrap: anywhere;
}

.checkout-payment span,
.checkout-payment small {
  color: var(--muted);
}

.checkout-payment strong {
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1;
}

.invoice-amount-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.invoice-amount-row button {
  flex: 0 0 auto;
}

.checkout-note {
  border-top: 1px solid rgba(34, 211, 166, 0.25);
  color: var(--muted);
  line-height: 1.45;
  margin: 4px 0 0;
  padding-top: 10px;
}

.checkout-complete {
  border-color: rgba(34, 211, 166, 0.75);
}

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

.checkout-details span {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 10px;
}

.checkout-details strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
}

.pending-fill-row button {
  min-height: 36px;
}

.card-actions {
  align-items: center;
}

.card-actions button {
  flex: 1;
}

.chat-panel {
  min-height: 0;
  align-content: start;
}

.chat-log {
  display: flex;
  flex: 1;
  min-height: 0;
  max-height: 280px;
  overflow: auto;
  flex-direction: column;
  gap: 5px;
}

.chat-message {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 46px 5px 7px;
  background: #0b111a;
}

.chat-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  min-height: 28px;
  padding: 0 6px;
  font-size: 0.78rem;
}

.chat-delete:hover {
  color: var(--danger);
}

.chat-clear {
  min-height: 34px;
  margin-bottom: 5px;
}

.chat-count {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin: -2px 0 4px;
}

.chat-message p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.chat-message strong {
  color: var(--accent);
  font-size: 0.84rem;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  margin-bottom: 5px;
}

.chat-form input {
  min-width: 0;
}

.chat-form button {
  min-width: 72px;
}

.modal {
  width: min(460px, calc(100% - 32px));
  color: var(--text);
  padding: 18px;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.modal form {
  display: grid;
  gap: 14px;
}

.modal-actions {
  padding: 0;
  margin: 0;
}

#fillTotal {
  color: var(--warning);
  font-weight: 800;
}

.modal-warning {
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.08);
  color: var(--warning);
  line-height: 1.45;
  padding: 10px 12px;
}

.fee-box {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111a;
  color: var(--warning);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
  padding: 10px 12px;
}

@media (max-width: 1120px) {
  .workspace {
    flex-wrap: wrap;
  }

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

  .launch-guide {
    grid-template-columns: 1fr;
  }

  .trade-panel,
  .chat-panel {
    flex: 1 1 320px;
  }

  .market-panel {
    order: 2;
    flex-basis: 100%;
  }

  .trade-panel {
    order: 1;
  }

  .chat-panel {
    order: 3;
  }
}

@media (min-width: 1121px) {
  .listing-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .compact-listing {
    display: grid;
    grid-template-columns:
      minmax(150px, 1fr)
      minmax(106px, 0.52fr)
      minmax(122px, 0.58fr)
      minmax(92px, 0.34fr)
      max-content;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }

  .compact-listing .listing-identity {
    align-items: center;
  }

  .compact-listing .price {
    font-size: 1rem;
    margin-top: 1px;
  }

  .compact-listing small {
    font-size: 0.78rem;
  }

  .compact-listing .listing-meta {
    gap: 6px;
  }

  .compact-listing .listing-meta span {
    font-size: 0.78rem;
  }

  .compact-listing .listing-meta strong {
    font-size: 0.9rem;
  }

  .compact-listing .settlement-note {
    gap: 2px;
    padding: 8px;
  }

  .compact-listing .settlement-note strong {
    font-size: 0.86rem;
  }

  .compact-listing .settlement-note span {
    font-size: 0.76rem;
  }

  .compact-listing .pending-fill-row {
    display: none;
  }

  .compact-listing .card-actions {
    gap: 6px;
    justify-content: flex-end;
    white-space: nowrap;
  }

  .compact-listing .card-actions button {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.8rem;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 18px, 1240px);
    padding: 12px 0;
  }

  .topbar,
  .wallet-panel,
  .community-panel,
  .community-actions,
  .launch-notice,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .launch-guide {
    grid-template-columns: 1fr;
  }

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

  .depth-chart {
    height: 200px;
  }

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

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

  .workspace {
    flex-direction: column;
  }

  .trade-panel,
  .chat-panel {
    flex-basis: auto;
  }
}
