:root {
  --amber: #ffcc66;
  --cyan: #64d9ff;
}

.liquidity-shell {
  max-width: 1440px;
}

.liquidity-control-grid {
  grid-template-columns: minmax(320px, 520px);
  margin-bottom: 16px;
}

.inline-check {
  min-height: 42px;
  align-content: end;
}

.readonly-control {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #101615;
}

.scan-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.scan-row button {
  min-width: 180px;
}

.liquidity-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.liquidity-visual-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.65fr);
  align-items: stretch;
}

.liquidity-visual-grid > .visual-panel:first-child {
  display: flex;
  flex-direction: column;
}

.chart-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.liquidity-heatmap {
  flex: 1;
  min-height: 680px;
}

.liquidity-heatmap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.heatmap-bg {
  fill: #070d18;
}

.heatmap-grid {
  stroke: rgba(159, 176, 170, 0.16);
  stroke-width: 1;
}

.heatmap-mid {
  stroke: rgba(237, 245, 241, 0.72);
  stroke-width: 1.4;
  stroke-dasharray: 6 7;
}

.heatmap-band.bid {
  fill: var(--bull);
}

.heatmap-band.ask {
  fill: var(--bear);
}

.heatmap-price-label,
.heatmap-axis-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.heatmap-axis-label.right {
  text-anchor: end;
}

.heatmap-mid-label {
  fill: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.wall-list {
  display: grid;
  gap: 10px;
}

.wall-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #101615;
}

.wall-card.bid {
  border-left: 5px solid var(--bull);
}

.wall-card.ask {
  border-left: 5px solid var(--bear);
}

.wall-card-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}

.wall-card-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.strength-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.strength-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.strength-bar.bid {
  background: var(--bull);
}

.strength-bar.ask {
  background: var(--bear);
}

.side-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.side-pill.bid {
  color: #052015;
  background: var(--bull);
}

.side-pill.ask {
  color: #25080c;
  background: var(--bear);
}

.liquidity-shell table {
  min-width: 920px;
}

@media (max-width: 1180px) {
  .liquidity-metrics,
  .liquidity-control-grid,
  .liquidity-visual-grid {
    grid-template-columns: 1fr;
  }

  .liquidity-heatmap {
    min-height: 520px;
  }
}

@media (max-width: 700px) {
  .liquidity-heatmap {
    min-height: 440px;
  }

  .wall-card,
  .ladder-row {
    gap: 8px;
  }
}
