/* LIGHTS under SOUND MAP and its panel (owner 18 Nov 2026): one setting for everyone, the map large on top.
   The button sits under the map's free corner (left on a wide window, right under the player), out of the flow, so
   nothing under the map moves. The panel is the CUSTOM dialog's look (custom-sound-*.css), dark round the map. */
.sound-map-stage{position:relative;width:fit-content;margin:0 0 0 auto}
.more .sound-map-stage{margin:0}
.lights-open{position:absolute;top:calc(100% + .3rem);left:0;display:flex;align-items:center;width:auto;height:auto;margin:0;padding:.1rem .55rem;border:1px solid var(--box-line,#252c37);border-radius:2px;background:var(--box-fill,#ffffff01);color:var(--klf-text-secondary);font-family:Montserrat,sans-serif;font-size:.46rem;font-weight:400;letter-spacing:.12em;line-height:1.5;cursor:pointer;pointer-events:none;transition:color 200ms ease,background 400ms ease,border-color 400ms ease}
.more .lights-open{left:auto;right:0}
.sound-map.is-on .lights-open{pointer-events:auto}
.lights-open[aria-expanded=true]{border-color:var(--box-line-on,#465161);background:var(--box-fill-on,#171e28);color:var(--klf-text-primary)}
@media(hover:hover){.lights-open:hover{border-color:var(--box-line-hover,#4f5a6a);background:var(--box-fill-hover,#ffffff07);color:var(--box-text-hover,#eef1f4)}}
.lights-open:focus-visible{outline:1px solid #778395;outline-offset:3px}

.lights-dialog{width:min(30rem,calc(100% - 2rem))}
.lights-stage{display:block;width:100%;height:auto;margin:.9rem 0 .4rem;overflow:visible}
.lights-stage .sm-dot{fill:#525d6c}
.lights-now{fill:none;stroke:#f4f6fb;stroke-width:.8;opacity:.55}
.lights-silent,.lights-status{min-height:1rem;margin:0;color:var(--klf-text-secondary);font-size:.5rem;letter-spacing:.14em}
.lights-silent[hidden]{display:block;visibility:hidden}
.lights-row{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-top:.7rem}
.lights-name{width:4.6rem;color:var(--klf-text-secondary);font-size:.5rem;letter-spacing:.14em}
.lights-pads{display:grid;grid-template-columns:repeat(4,1fr);gap:.35rem;flex:1}
.lights-dialog .lights-pads button{width:100%}
.lights-dialog button[aria-pressed=true]{border-color:#465161;background:#171e28;color:var(--klf-text-primary)}
.lights-range{flex:1;display:flex;align-items:center;gap:.6rem}
.lights-range input{flex:1;accent-color:#8b95a3}
.lights-range output{width:2.4rem;color:var(--klf-text-secondary);font-size:.5rem;letter-spacing:.1em;text-align:right}
.lights-status{margin-top:.9rem}
@media(prefers-reduced-motion:reduce){.lights-open{transition:none}}
.lights-dialog .lights-close{width:1.75rem;height:1.75rem;padding:0;border:0;font-size:1.15rem}
.lights-pads-5{grid-template-columns:repeat(5,1fr)}
.lights-dialog .custom-header{gap:.6rem}
.lights-dialog .custom-header h2{margin-right:auto}
.lights-dialog .lights-mode{height:1.6rem;font-size:.46rem}
.lights-scenes{display:grid;grid-template-columns:repeat(4,1fr);gap:.35rem;margin-top:.7rem}
.lights-scenes button{width:100%}
.lights-advanced[hidden]{display:none}
.lights-advanced{margin-top:.4rem}
