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

:root { --line: #f7931a; }
html.light, body.light { --line: #bc5c00; }

.state { padding: 18px; margin-bottom: 14px; border: 1px solid var(--border);
  border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.state-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.state-kicker { color: var(--muted); font-size: 12px; font-weight: 750;
  text-transform: uppercase; letter-spacing: .05em; }
.state-top strong { font-size: 40px; line-height: 1; font-weight: 850;
  font-variant-numeric: tabular-nums; }
.state-mode { font-size: 16px; font-weight: 800; }
.state-date { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.state-note { margin: 8px 0 0; font-size: 14px; line-height: 1.55; }
.meter { position: relative; height: 9px; margin-top: 14px; border-radius: 999px;
  overflow: visible; }
.meter span { position: absolute; top: -5px; width: 3px; height: 19px; border-radius: 2px;
  background: var(--text); box-shadow: 0 0 0 2px var(--panel); }

.chart-host { min-height: 300px; }
.zone-bg { opacity: .13; }
.nupl-line, .cycle-line { fill: none; stroke: var(--line); stroke-width: 2;
  vector-effect: non-scaling-stroke; }
.cycle-line { stroke-width: 1.7; }
.cycle-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 3px 5px;
  color: var(--muted); font-size: 12px; }
.cycle-legend i { display: inline-block; width: 12px; height: 3px; margin-right: 5px;
  vertical-align: 3px; border-radius: 2px; }
.chart-host { position: relative; }
.chart-host svg { display: block; width: 100%; height: auto; outline: none; }
.chart-host svg:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; }
.chart-crosshair { stroke: var(--text); stroke-width: 1; stroke-dasharray: 4 3; opacity: .65; }
.chart-point { fill: var(--panel); stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-tooltip { position: absolute; z-index: 3; top: 12px; width: max-content; max-width: min(260px, calc(100% - 8px));
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel);
  color: var(--text); box-shadow: var(--shadow); font-size: 12px; line-height: 1.45; pointer-events: none; }
.chart-tooltip b { display: block; margin-bottom: 2px; }
.chart-tooltip span { display: block; color: var(--muted); }

.zone-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.zone-card { display: flex; gap: 9px; padding: 11px; border-radius: 10px;
  background: var(--panel-2); }
.zone-card i { flex: 0 0 5px; border-radius: 999px; }
.zone-card b { font-size: 13px; }
.zone-card p, .about p { margin: 4px 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) {
  .zone-grid, .about { grid-template-columns: 1fr; }
  .chart-host { min-height: 250px; }
  .state-top strong { font-size: 32px; }
}
