.reader-polar-figure { width:100%; min-width:0; }
.reader-polar-figure svg, .visual-kss-wrap .reader-polar-figure svg { display:block; width:100%; height:auto; aspect-ratio:748/758; max-width:100%; }
.reader-polar-figure svg text[data-reader-angle], .reader-polar-figure svg text[data-reader-ring] { font-size:var(--reader-label,16px); fill:#394640; }
.reader-polar-figure svg text[y="728"] { display:none; }
.reader-polar-figure[data-tight] svg text[data-reader-angle="20"], .reader-polar-figure[data-tight] svg text[data-reader-angle="60"],
.reader-polar-figure[data-tight] svg text[data-reader-angle="100"], .reader-polar-figure[data-tight] svg text[data-reader-angle="140"],
.reader-polar-figure[data-close] svg text[data-reader-angle="160"],
.reader-polar-figure[data-tight] svg text[data-reader-ring="1"]:not([data-reader-last="true"]),
.reader-polar-figure[data-tight] svg text[data-reader-ring="3"]:not([data-reader-last="true"]),
.reader-polar-figure[data-tight] svg text[data-reader-ring="5"]:not([data-reader-last="true"]),
.reader-polar-figure[data-tight] svg text[data-reader-ring="7"]:not([data-reader-last="true"]) { display:none; }
.reader-polar-figure svg text[data-reader-last="true"] { transform:translateX(1.4em); }
.reader-polar-units, .reader-plot-help, #readerPlotContext { font-size:1rem; line-height:1.45; color:#4d584e; margin:.5rem 0; }
.reader-polar-units { text-align:center; }
.fp-y-ticks,.fp-x-ticks { font-size:.9375rem; line-height:1.25; color:#394640; }
.fp-coordinate-plot { grid-template-columns:3.35rem minmax(0,1fr);grid-template-rows:auto 1.65rem; }
.fp-axis-instructions, .fp-map-numbers, .fp-map-description { font-size:.9375rem; line-height:1.45; }
.visual-kss-head .right { display:flex; gap:.5rem; flex-wrap:wrap; justify-content:flex-end; align-items:center; }
.reader-open,.reader-close,.reader-size button { background:#fff; color:#303b32; border:1px solid #849183; border-radius:4px; padding:.5rem .75rem; min-height:44px; font:600 1rem/1.2 Arial,sans-serif; cursor:pointer; }
.reader-open:hover,.reader-close:hover,.reader-size button:hover { background:#f2f3ed; }
#readerOpenMap { display:block; margin:.65rem 0 .65rem auto; }
.reader-dialog { color:#283229; background:#fff; width:min(94vw,1000px); max-width:calc(100vw - 12px); max-height:calc(100dvh - 12px); padding:clamp(.65rem,2vw,1.4rem); border:1px solid #a8afa4; border-radius:6px; font:1rem/1.45 Arial,sans-serif; box-sizing:border-box; }
.reader-dialog[open] { display:flex; flex-direction:column; }
.reader-dialog::backdrop { background:rgba(29,34,29,.66); }
.reader-dialog-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:.45rem; flex:none; }
.reader-dialog-head h2 { font-size:clamp(1.25rem,4vw,1.65rem); line-height:1.15; margin:0; }
.reader-dialog-head p { margin:.25rem 0 .4rem; }
.reader-size { display:flex; flex-wrap:wrap; gap:.5rem; flex:none; }
.reader-size button[aria-pressed="true"] { background:#ffe100; border-color:#756d23; color:#222; }
.reader-dialog-body { overflow-y:auto; min-height:0; overscroll-behavior:contain; }
.reader-plot-help { flex:none; font-size:.9375rem; }
.reader-pan { width:100%; overflow:auto; scrollbar-gutter:stable; overscroll-behavior:contain; border:1px solid #cbd2c8; max-height:min(64dvh,800px); box-sizing:border-box; }
.reader-pan:focus-visible { outline:3px solid #176695; outline-offset:-3px; }
#readerPlotGraphic { width:100%; box-sizing:border-box; padding:.45rem; }
#readerPlotGraphic.reader-large { width:max(748px,130%); min-width:748px; }
#readerPlotGraphic.reader-large[data-kind="map"] { width:max(800px,130%); min-width:800px; }
#readerPlotGraphic .reader-polar-figure svg { width:100%; height:auto; margin:0 auto; max-width:none; display:block; background:white; }
#readerPlotGraphic .fp-axis-instructions, #readerPlotGraphic .fp-coordinate-plot { width:100%; max-width:none; }
#readerPlotDetails { margin-top:.75rem; padding-inline:.25rem; }
#readerPlotDetails .kss-legend { display:grid; grid-template-columns:repeat(auto-fit,minmax(5.25rem,1fr)); gap:.4rem .65rem; }
#readerPlotDetails .legend-row, #readerPlotDetails .reader-polar-units { font-size:1rem; line-height:1.4; }
#readerPlotDetails .fp-map-legend { height:.9rem; }
#readerPlotDetails .fp-map-numbers, #readerPlotDetails .fp-map-description { font-size:1rem; line-height:1.45; }
@media (max-width:680px) { .visual-kss-head .right { justify-content:flex-start; margin-top:.65rem; } .reader-dialog {width:calc(100vw - 12px);} }
@media (max-height:430px) { .reader-plot-help {margin:.2rem 0;} .reader-pan {max-height:53dvh;} }
