.premium-shell {
  max-width: 1520px;
}

.premium-control-grid {
  display: grid;
  grid-template-columns: minmax(320px, 560px);
  gap: 12px;
  margin-bottom: 16px;
}

.premium-control-grid button {
  width: min(180px, 100%);
}

.premium-metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

.metric-card .positive,
.premium-card.positive strong,
.premium-card.positive small {
  color: var(--bull);
}

.metric-card .negative,
.premium-card.negative strong,
.premium-card.negative small {
  color: var(--bear);
}

.premium-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}

.premium-chart-panel,
.premium-diagnostics,
.premium-table-panel {
  padding: 16px;
}

.panel-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.premium-chart {
  min-height: 520px;
  display: grid;
  align-items: center;
}

.premium-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.premium-axis {
  fill: #a9c7c1;
  font-size: 12px;
  font-weight: 800;
}

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

.coinbase-line {
  fill: none;
  stroke: #5fd8ff;
  stroke-width: 3;
}

.mexc-line {
  fill: none;
  stroke: #ffcc66;
  stroke-width: 2;
  stroke-dasharray: 8 7;
}

.premium-line {
  fill: none;
  stroke-width: 3;
}

.premium-line.positive {
  stroke: var(--bull);
}

.premium-line.negative {
  stroke: var(--bear);
}

.premium-zero {
  stroke: rgba(237, 245, 241, 0.45);
  stroke-width: 1;
  stroke-dasharray: 5 6;
}

.premium-bar {
  opacity: 0.72;
}

.premium-bar.positive {
  fill: var(--bull);
}

.premium-bar.negative {
  fill: var(--bear);
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.legend-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 6px;
}

.legend-coinbase {
  background: #5fd8ff;
}

.legend-mexc {
  background: #ffcc66;
}

.legend-premium {
  background: var(--accent);
}

.read-stack {
  display: grid;
  gap: 10px;
}

.read-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101615;
  padding: 12px;
}

.read-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 5px;
}

.read-item strong {
  display: block;
  font-size: 1.1rem;
}

.read-item.positive {
  border-left: 4px solid var(--bull);
}

.read-item.negative {
  border-left: 4px solid var(--bear);
}

.read-item.neutral {
  border-left: 4px solid var(--warn);
}

.premium-table-panel {
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
}

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

.premium-table-panel th,
.premium-table-panel td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.premium-table-panel th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.state-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.state-pill.positive {
  color: #07130f;
  border-color: var(--bull);
  background: var(--bull);
}

.state-pill.negative {
  color: #16070a;
  border-color: var(--bear);
  background: var(--bear);
}

.state-pill.neutral {
  color: #151007;
  border-color: var(--warn);
  background: var(--warn);
}

@media (max-width: 1180px) {
  .premium-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .premium-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .premium-metric-grid {
    grid-template-columns: 1fr;
  }

  .premium-chart {
    min-height: 380px;
  }
}
