.wn-controls { display:flex; align-items:center; gap:10px 16px; flex-wrap:wrap; margin-bottom:18px; }
.wn-controls label { font-size:.85rem; font-weight:600; }
.wn-controls select { width:auto; max-width:100%; min-height:44px; }
.wn-coverage { font-size:.8rem; color:var(--muted); margin:0; }
.wn-legend { display:flex; gap:10px 25px; flex-wrap:wrap; margin:0 0 18px; font-size:.86rem; }
.wn-legend > span { display:inline-flex; gap:8px; align-items:center; }
.wn-key { width:12px; height:12px; border-radius:50%; flex:none; display:inline-block; }
.wn-current { background:var(--surface); border:2px solid var(--ink); }
.wn-alternative { background:var(--wild-blue); border:2px solid var(--wild-blue); }
.wn-rows { list-style:none; margin:0; padding:0; }
.wn-row { display:grid; grid-template-columns:minmax(170px,1.2fr) minmax(90px,1.6fr) minmax(115px,.6fr); gap:18px; align-items:center; min-height:52px; padding:7px 4px; font-size:.85rem; }
.wn-label { min-width:0; overflow-wrap:anywhere; line-height:1.45; }
.wn-label small { display:block; color:var(--muted); font-size:.74rem; }
.wn-track { position:relative; height:22px; border-bottom:1px solid var(--grid); margin:0 8px; }
.wn-connector,.wn-interval { position:absolute; height:2px; top:10px; background:var(--wild-blue); }
.wn-point { position:absolute; top:5px; width:12px; height:12px; border-radius:50%; transform:translateX(-50%); }
.wn-point.wn-current { z-index:1; }
.wn-rank-point { border:2px solid var(--wn-family); background:var(--surface); width:10px; height:10px; top:6px; }
.wn-interval { background:var(--wn-family); }
.wn-to-zero::before { content:"\25c0"; color:var(--wn-family); position:absolute; left:-5px; top:-7px; font-size:12px; line-height:16px; }
.wn-point.wn-zero::after { content:"0"; position:absolute; font-style:normal; font-size:10px; font-weight:700; left:-10px; top:-15px; color:var(--ink); }
.wn-value { text-align:right; min-width:0; font-variant-numeric:tabular-nums; }
.wn-value strong { font-weight:650; }
.wn-value small { display:block; color:var(--muted); font-size:.72rem; line-height:1.4; margin-top:3px; }
.wn-axis-row { display:grid; grid-template-columns:minmax(170px,1.2fr) minmax(90px,1.6fr) minmax(115px,.6fr); column-gap:18px; padding:0 4px; margin:10px 0 18px; color:var(--muted); font-size:.68rem; }
.wn-axis { grid-column:2; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; margin:0 8px; }
.wn-axis span:last-child { margin-left:auto; }
.wn-axis-caption { grid-column:2; text-align:center; margin:5px 8px 0; }
/* Where the track's column is too narrow for "Logarithmic" (very large text on a phone), the caption takes the row's
   width, from the axis's left end, instead of running out of its column (GBS-2). */
.wn-axis-row { container:wn-axis-row / inline-size; }
/* An end label ("1 × 10²²", kept on one line) gets smaller where it would be wider than the track (300% text on a
   320px phone); at other sizes 10cqi is above its size and nothing changes (GBS-2). */
.wn-axis-row > .wn-axis { font-size:min(1em, 10cqi); }
@container wn-axis-row (width < calc(11em + 50px)) { .wn-axis-row > .wn-axis-caption { grid-column:1 / -1; text-align:left; } }
.wn-show { min-height:44px; margin:6px 0 4px; }
.wn-family-legend { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 20px; list-style:none; padding:0; margin:18px 0 8px; font-size:.76rem; color:var(--ink-2); }
.wn-family-legend li { display:flex; gap:8px; align-items:baseline; overflow-wrap:anywhere; }
.wn-family-legend i { width:10px; height:10px; flex:none; }
.wn-scenario-detail { padding:12px 0; border-bottom:1px solid var(--grid); }
.wn-scenario-detail:last-child { border-bottom:0; }
.wn-scenario-detail h3 { font-size:.9rem; margin:0 0 6px; }
.wn-scenario-detail p { font-size:.84rem; margin:5px 0; }
.wn-scenario-detail a { font-size:.84rem; }
.wn-table { min-width:800px; font-size:.82rem; }
.wn-table th:first-child { min-width:160px; }
.wn-table td,.wn-table th { vertical-align:top; }
@media(max-width:700px) {
  .wn-row { grid-template-columns:minmax(0,1fr) minmax(0,44%); gap:4px 12px; margin-bottom:13px; }
  .wn-label { grid-column:1/-1; }
  .wn-value { font-size:.8rem; max-width:12em; }
  .wn-family-legend { grid-template-columns:minmax(0,1fr); }
  .wn-axis-row { grid-template-columns:minmax(0,1fr) minmax(0,44%); column-gap:12px; }
  .wn-axis,.wn-axis-caption { grid-column:1; }
}
@media(forced-colors:active) {
  .wn-current,.wn-rank-point { background:Canvas; border-color:CanvasText; }
  .wn-alternative { background:Highlight; border-color:Highlight; }
  .wn-connector,.wn-interval { background:CanvasText; }
  .wn-to-zero::before { color:CanvasText; }
  .wn-label,.wn-value { font-weight:700; }
}
/* While the groups' 90% ranges are worked out (assets/js/intervals.js): the finished note keeps its room, unseen, and
   the note of the moment is laid over it, so the card is as tall as it will be (fix round 1 of the perf work, speed-2). */
.wn-note-pending { position:relative; }
.wn-note-room { visibility:hidden; }
.wn-note-now { position:absolute; inset:0; }
