:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f3f6f4;
  color: #17201c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(33, 95, 78, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(18, 91, 148, 0.12), transparent 42%),
    #f3f6f4;
}

button {
  border: 0;
  border-radius: 8px;
  background: #143d36;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 40px;
  padding: 0 16px;
}

button:hover {
  background: #0e2c27;
}

.shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 32px 20px 48px;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.eyebrow,
.label {
  color: #5f6f68;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

h2 {
  font-size: 1.15rem;
}

.status-pill,
.network {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8e0dc;
  border-radius: 999px;
  color: #26463d;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
}

.status-dot {
  background: #14a06f;
  border-radius: 999px;
  display: inline-block;
  height: 9px;
  width: 9px;
}

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

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dbe4df;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(34, 54, 48, 0.08);
  padding: 20px;
}

.summary-panel {
  grid-column: span 2;
}

.chart-panel {
  grid-column: span 4;
}

.panel-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.metrics div {
  border-left: 3px solid #1f6f5d;
  padding-left: 12px;
}

.metrics span,
.token-list span {
  color: #63736c;
  display: block;
  font-size: 0.9rem;
}

.metrics strong {
  display: block;
  font-size: 1.25rem;
  margin-top: 6px;
}

.positive {
  color: #11855e;
}

canvas {
  display: block;
  height: min(38vh, 360px);
  margin-top: 16px;
  width: 100%;
}

.token-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.token-list div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
}

.token-dot {
  border-radius: 999px;
  display: inline-block;
  height: 12px;
  width: 12px;
}

.eth {
  background: #335cce;
}

.usdc {
  background: #1f9fc7;
}

.lp {
  background: #d88a21;
}

.route-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

code {
  background: #edf3f0;
  border: 1px solid #d8e2dd;
  border-radius: 6px;
  color: #153f37;
  display: inline-block;
  font-size: 0.9rem;
  padding: 8px 10px;
  width: 100%;
}

@media (max-width: 760px) {
  .topbar,
  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .summary-panel,
  .chart-panel {
    grid-column: auto;
  }

  .status-pill,
  .network {
    justify-content: center;
  }
}

