/* Dialogo unico, accessibile anche nel Timoniere a schermo intero. */
body.ra-pois-on{overflow:hidden!important}
[data-ra-follow],[data-ra-pois]{min-height:42px;padding:8px 12px;touch-action:manipulation;cursor:pointer}
[data-ra-follow][aria-pressed=true]{border-color:#32bda1;background:#123c38;color:#fff}
#ra-pois{position:fixed;inset:0;z-index:2147483100;background:#071629b8;display:flex;align-items:center;justify-content:center;padding:12px;font:16px/1.4 system-ui,sans-serif;text-align:left;overflow:auto;color:#172538}
#ra-pois[hidden],#ra-pois [hidden],#ra-poi-pick-banner[hidden]{display:none!important}
#ra-pois *{box-sizing:border-box}
#ra-pois .ra-poi-dialog{background:#fff;color:#172538;border:2px solid #579aa8;border-radius:16px;padding:20px;width:min(660px,100%);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 70px #0005}
#ra-pois header{display:flex;align-items:center;gap:12px;margin-bottom:10px}
#ra-pois h2{font:700 23px/1.2 system-ui,sans-serif;white-space:normal;margin:0;flex:1;color:inherit}
#ra-pois button{min-height:44px;padding:9px 13px;border:1px solid #698596;border-radius:8px;background:#f1f7fa;color:#152f42;font:600 15px/1.3 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
#ra-pois button:disabled{opacity:.5;cursor:wait}
#ra-pois input,#ra-pois select,#ra-pois textarea{font:400 16px/1.4 system-ui,sans-serif;width:100%;max-width:100%;min-height:44px;padding:8px;border:1px solid #698596;border-radius:7px;background:#fff;color:#172538;margin:4px 0 0}
#ra-pois :focus-visible{outline:3px solid #007da3;outline-offset:2px}
#ra-pois label{display:block;margin:10px 0;font-weight:650}
#ra-pois small{display:block;font-size:13px;font-weight:400;line-height:1.4}
#ra-poi-status{font-size:13px;margin:6px 0}
#ra-poi-error{color:#ad1425;font-weight:650;white-space:pre-wrap}
#ra-poi-error:empty{display:none}
.ra-poi-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.ra-poi-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ra-poi-pair>label{min-width:0}
.ra-poi-dms-row{display:grid;grid-template-columns:1fr 1fr 1fr 1.3fr;gap:8px}
#ra-pois fieldset{border:1px solid #c0cdd4;border-radius:8px;padding:8px 12px;margin:8px 0}
#ra-pois legend{padding:0 6px}
#ra-pois .ra-poi-result{border:1px solid #bacbd4;border-radius:10px;margin:10px 0;padding:10px}
#ra-pois .ra-poi-go{text-align:left;width:100%;border:0;background:#e9f5f5;white-space:normal;overflow-wrap:anywhere}
#ra-pois .ra-poi-go strong{display:block;font-size:19px}
#ra-pois .ra-poi-go span{display:block;font-size:14px;font-weight:400;margin:4px 0}
#ra-pois .ra-poi-go small{color:#086a71;font-weight:650}
#ra-pois .ra-poi-coords{margin-top:8px}
#ra-pois .ra-poi-result .ra-poi-actions{margin:8px 0 0}
#ra-poi-submit,#ra-poi-new{background:#006b75!important;color:#fff!important}
#ra-poi-pick-banner{position:fixed;z-index:2147483101;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(560px,calc(100% - 24px));padding:14px;display:flex;align-items:center;gap:12px;background:#fff6ce;color:#172538;border:2px solid #886c10;border-radius:12px;font:600 16px/1.4 system-ui,sans-serif;box-shadow:0 4px 30px #0006}
#ra-poi-pick-banner button{min-height:44px;padding:8px 12px;cursor:pointer}
#ra-helm[data-theme=night] #ra-pois .ra-poi-dialog{background:#09121b;color:#fff}
#ra-helm[data-theme=night] #ra-pois input,#ra-helm[data-theme=night] #ra-pois select,#ra-helm[data-theme=night] #ra-pois textarea,#ra-helm[data-theme=night] #ra-pois button{background:#142a39;color:#fff;border-color:#7e9baa}
#ra-helm[data-theme=night] #ra-pois .ra-poi-go{background:#17353d}
#ra-helm[data-theme=night] #ra-pois .ra-poi-go small{color:#76e3cd}
#ra-helm[data-theme=night] #ra-poi-error{color:#ff929c}
@media(max-width:460px){#ra-pois{padding:6px}#ra-pois .ra-poi-dialog{padding:14px;max-height:calc(100dvh - 12px)}#ra-pois h2{font-size:20px}.ra-poi-dms-row{grid-template-columns:1fr 1fr}.ra-poi-pair{gap:8px}}
