.take { max-width: 1200px; margin: 0 auto; padding: 10px 16px 40px; }
.take .lede { color: var(--muted); font-size: 14px; margin: 0 0 18px; max-width: 760px; }
.take .hint { color: #56677c; font-size: 12px; margin: 10px 0 0; }
.take .hint.touch { display: none; }
.chart-error { color: var(--muted); text-align: center; margin: 20px 0; }

.readout {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid #121a24; border-radius: 6px; padding: 10px 14px 10px 10px;
  margin-bottom: 14px; min-height: 92px;
}
.readout img { width: 170px; aspect-ratio: 2.4 / 1; object-fit: cover; border-radius: 4px; background: #05080c; display: block; }
.readout .who { min-width: 120px; }
.readout .frame { display: block; color: var(--ink); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.readout .pin { color: var(--red); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.readout .frame-link { font-size: 12px; text-decoration: none; }
.readout .vals { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.readout .val { display: grid; grid-template-columns: 14px auto; column-gap: 8px; align-items: center; }
.readout .val b { font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--ink); grid-column: 2; }
.readout .val span { grid-column: 2; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.readout .val i { grid-row: 1 / span 2; width: 14px; height: 2px; border-radius: 1px; background: var(--key); }
.readout .val.quiet b { font-size: 18px; color: var(--muted); }

.plot { position: relative; }
.plot svg { display: block; width: 100%; height: auto; font: 11px -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif; }
.plot .tick line, .plot .panel > line { stroke: #141b24; stroke-width: 1; shape-rendering: crispEdges; }
.plot text { fill: var(--muted); font-variant-numeric: tabular-nums; }
.plot .title { fill: var(--ink); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.plot .area { fill-opacity: .12; }
.plot .line { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.plot .hair { stroke: #e8eef5; stroke-opacity: .55; stroke-width: 1; shape-rendering: crispEdges; }
.plot .dot .ring { fill: var(--bg); }
.plot .tag { fill: var(--ink); font-weight: 600; font-size: 12px; paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
.plot .hit { position: absolute; cursor: crosshair; outline: none; touch-action: pan-y; }
.plot[data-orientation="vertical"] .hit { touch-action: none; }
.plot .hit:focus-visible { outline: 1px solid var(--steel); outline-offset: 2px; }

.legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 2px; border-radius: 1px; background: var(--key); }

@media (pointer: coarse) {
  .take .hint.touch { display: block; }
  .take .hint.mouse { display: none; }
}
@media (max-width: 639px) {
  .readout { position: sticky; top: 0; z-index: 2; gap: 12px; padding: 8px; }
  .readout img { width: 120px; }
  .readout .vals { gap: 14px; margin-left: 0; width: 100%; }
  .readout .val b { font-size: 20px; }
  .readout .val.quiet b { font-size: 16px; }
}
