/* Pillan360 v10.8.25 · Capas ambientales oficiales SMA en Mapas OSM. */
#sma-official-controls{flex:0 1 176px;box-sizing:border-box;min-width:0;width:176px;max-width:176px;padding:.27rem .42rem;border:1px solid #64748b;border-radius:.45rem;background:rgba(15,23,42,.42);color:#f1f5f9;align-self:flex-start;}
#sma-official-controls summary{cursor:pointer;font-size:.6rem;font-weight:800;line-height:1.2;list-style-position:inside;white-space:normal;overflow-wrap:anywhere;}
#sma-official-controls[open]{flex-basis:260px;width:min(260px,100%);max-width:min(260px,100%);}
#sma-official-controls summary:focus-visible{outline:2px solid #38bdf8;outline-offset:3px;}
#sma-official-controls .sma-layer-actions{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.5rem;max-width:520px;}
#sma-official-controls .sma-layer-actions button{min-height:34px;padding:.35rem .55rem;border:1px solid #64748b;border-radius:.4rem;background:#1e3a5f;color:#f8fafc;font-size:.6rem;font-weight:700;}
#sma-official-controls .sma-layer-actions button:hover{background:#075985;}
#sma-official-controls .sma-layer-actions button.is-active{background:#166534;border-color:#86efac;color:#fff;}
#sma-official-controls .sma-layer-actions button:focus-visible{outline:2px solid #38bdf8;outline-offset:2px;}
#sma-map-status{margin-top:.45rem;font-size:.66rem;line-height:1.4;color:#bfdbfe;}
#sma-map-status[data-state=warning]{color:#fde68a;}
#sma-map-status[data-state=error]{color:#fecaca;}
#sma-map-status[data-state=ok]{color:#bbf7d0;}
#sma-official-controls .sma-disclaimer{margin-top:.35rem;font-size:.61rem;max-width:540px;line-height:1.4;color:#cbd5e1;}
#sma-official-controls .sma-disclaimer a{color:#7dd3fc;text-decoration:underline;}
#risk-sma-context{padding:.75rem 1rem;border:1px solid #64748b;border-radius:.65rem;color:var(--text-primary,#f1f5f9);}
#risk-sma-context summary{cursor:pointer;font-size:.83rem;font-weight:800;}
#risk-sma-context p{font-size:.75rem;line-height:1.5;margin:.5rem 0;}
#risk-sma-context .sma-risk-actions{display:flex;flex-wrap:wrap;gap:.5rem;}
#risk-sma-context button{min-height:36px;background:#1e3a5f;color:#fff;border:1px solid #64748b;border-radius:.4rem;padding:.4rem .65rem;font-size:.73rem;font-weight:700;}
#risk-sma-context button:hover{background:#075985;}
.light-mode #sma-official-controls{background:rgba(248,250,252,.98);color:#0f172a;}
.light-mode #sma-map-status{color:#075985;}
.light-mode #sma-map-status[data-state=warning]{color:#92400e;}
.light-mode #sma-map-status[data-state=error]{color:#991b1b;}
.light-mode #sma-map-status[data-state=ok]{color:#166534;}
.light-mode #sma-official-controls .sma-disclaimer{color:#334155;}
.light-mode #sma-official-controls .sma-disclaimer a{color:#075985;}
.light-mode #risk-sma-context{color:#0f172a;}
@media(max-width:640px){#sma-official-controls{flex:0 1 176px;width:min(176px,100%);max-width:176px;min-width:0;box-sizing:border-box;}
 #sma-official-controls .sma-layer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
 #sma-official-controls .sma-layer-actions button{min-width:0;white-space:normal;}
 #risk-sma-context .sma-risk-actions button{flex:1 1 145px;}}
