.pw-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:12px;margin:16px 0}
.pw-grid article{border:1px solid var(--line);border-top:3px solid var(--accent);background:var(--surface-2);border-radius:8px;padding:18px;display:grid;gap:8px}
.pw-grid h3,.pw-grid p{margin:0}
.pw-median span{display:block;color:var(--muted);font-size:.8125rem}
.pw-grid strong{font:700 clamp(26px,4vw,42px)/1.15 var(--font-mono);color:var(--accent)}
.pw-grid small,[data-pro-weekly] [role=status]{color:var(--muted)}
[data-weekly-history]{margin:24px 0}
[data-weekly-history] svg{width:100%;height:190px;display:block}
[data-weekly-history] text{fill:currentColor;font:11px var(--font-mono)}
.pw-legend{display:flex;gap:16px;font:13px var(--font-mono)}
.pw-legend span:before{content:"";display:inline-block;width:12px;height:3px;vertical-align:middle;margin-right:5px;background:#158f85}
.pw-legend span:nth-child(2):before{background:#b37909}
.pw-legend span:nth-child(3):before{background:#9276ce}
/* Ticket 376: heading, key and plot read as one group. While the SVG has no children (loading,
   unavailable, or no plottable points) it keeps its 190px box, so nothing shifts when points
   arrive, but shows as a dashed frame with the existing state note centred inside it instead of
   unexplained blank space. Once drawn, the note returns below the plot. */
[data-weekly-history]{display:grid;grid-template-columns:minmax(0,1fr)}
[data-weekly-history] h4{margin:0 0 6px}
[data-weekly-history] .pw-legend{flex-wrap:wrap;gap:4px 16px;margin-bottom:8px;color:var(--text-2)}
[data-weekly-history] small{margin-top:6px;color:var(--text-2)}
[data-weekly-history] svg:not(:has(*)){grid-row:3;grid-column:1;border:1px dashed var(--line-2);border-radius:var(--r-md,4px)}
[data-weekly-history] svg:not(:has(*)) + small{grid-row:3;grid-column:1;align-self:center;justify-self:center;margin:0;padding:0 12px;text-align:center}

:root .ru-chapter .quota-cross-window{margin:0 0 20px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.quota-cross-window h3{margin:0 0 8px}.quota-cross-window p,.quota-cross-window li{font-size:13px;line-height:1.65;color:var(--text-2)}
.quota-cross-window ul{padding-left:1.25em}.quota-cross-window summary{cursor:pointer;color:var(--accent)}
