@import url("./onchain-card-shared.css");

:root { --line: #f7931a; --price: #38bdf8; --zline: #a78bfa; }
html.light, body.light { --line: #bc5c00; --price: #0369a1; --zline: #7c3aed; }

.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.metric { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--panel); box-shadow: var(--shadow); }
.metric span { display: block; color: var(--muted); font-size: 11px; font-weight: 750;
  text-transform: uppercase; letter-spacing: .05em; }
.metric strong { display: block; margin-top: 7px; font-size: 34px; line-height: 1;
  font-weight: 850; font-variant-numeric: tabular-nums; }
.metric small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.regime-note { grid-column: 1 / -1; margin: 0; padding: 13px 15px;
  border-left: 4px solid var(--line); border-radius: 8px; background: var(--panel-2);
  font-size: 13px; line-height: 1.55; }
.meter { height: 8px; margin-top: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #dc2626, #f97316 25%, #eab308 50%, #22c55e 75%, #16a34a); }
.meter i { display: block; position: relative; top: -5px; width: 3px; height: 18px;
  border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--panel); }

.zone-bg { opacity: .13; }
.axis-left { font-weight: 700; }
.price-axis { fill: var(--price); }
.mvrv-line, .price-line, .z-line { fill: none; stroke: var(--line); stroke-width: 2;
  vector-effect: non-scaling-stroke; }
.price-line { stroke: var(--price); stroke-width: 1.65; }
.z-line { stroke: var(--zline); }
.cycle-marker { stroke: var(--price); stroke-width: 1; stroke-dasharray: 3 4;
  opacity: .55; vector-effect: non-scaling-stroke; }
.cycle-dot { fill: var(--price); stroke: var(--panel); stroke-width: 1.5;
  vector-effect: non-scaling-stroke; }
.cycle-label { fill: var(--text); font-size: 10px; font-weight: 750; }

.zone-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.zone-card { padding: 11px; border-top: 4px solid; border-radius: 9px;
  background: var(--panel-2); }
.zone-card b { font-size: 12px; }
.zone-card p, .about p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about b { color: var(--text); }

@media (max-width: 760px) {
  .summary { grid-template-columns: 1fr 1fr; }
  .metric:first-child { grid-column: 1 / -1; }
  .zone-grid, .about { grid-template-columns: 1fr; }
  .chart-host { min-height: 245px; }
  .metric strong { font-size: 30px; }
}
