.poi-add-marker-btn,.poi-lock-map-btn { display:none!important; }
body.poi-map-mode .poi-add-marker-btn,body.poi-map-mode .poi-lock-map-btn { display:inline-flex!important; }
.poi-placement-hud { position:fixed; z-index:1600; top:84px; left:50%; display:flex; align-items:center; gap:22px; padding:13px 14px 13px 18px; color:#effcff; border:1px solid var(--primary,#00e5ff); background:rgba(2,7,10,.94); box-shadow:0 0 24px rgba(0,229,255,.22); transform:translateX(-50%); }
.poi-placement-hud[hidden] { display:none; }
.poi-placement-hud span,.poi-placement-hud b,.poi-placement-hud small { display:block; }
.poi-placement-hud b { color:var(--primary,#00e5ff); font:800 10px/1.2 "Orbitron",sans-serif; letter-spacing:.09em; }
.poi-placement-hud small { margin-top:5px; color:#91a5ac; font:600 11px/1 "Rajdhani",sans-serif; }
.poi-placement-hud button { padding:9px 11px; color:#ff5168; border:1px solid #ff4059; background:transparent; cursor:pointer; font:800 9px/1 ui-monospace,monospace; }
.poi-placement-active #map,.poi-placement-active #map * { cursor:crosshair!important; }
.poi-editor-modal { position:fixed; z-index:1700; inset:0; display:grid; place-items:center; padding:22px; }
.poi-editor-modal.hidden { display:none; }
.poi-editor-backdrop { position:absolute; inset:0; background:rgba(0,3,5,.78); backdrop-filter:blur(5px); }
.poi-editor-panel { position:relative; width:min(100%,560px); color:#eafaff; border:1px solid var(--primary,#00e5ff); background:rgba(3,9,12,.98); box-shadow:0 28px 90px rgba(0,0,0,.75),0 0 32px rgba(0,229,255,.12); }
.poi-editor-head { display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid rgba(0,229,255,.2); background:linear-gradient(90deg,rgba(0,229,255,.1),transparent); }
.poi-editor-head small,.poi-editor-head strong { display:block; }
.poi-editor-head small { color:var(--primary,#00e5ff); font:700 8px/1 ui-monospace,monospace; letter-spacing:.12em; }
.poi-editor-head strong { margin-top:6px; font:800 17px/1 "Orbitron",sans-serif; letter-spacing:.06em; }
.poi-editor-close { width:34px;height:34px;color:#effcff;border:1px solid rgba(255,255,255,.2);background:transparent;cursor:pointer;font:24px/1 sans-serif; }
#poi-editor-form { display:grid; gap:14px; padding:20px; }
#poi-editor-form label { display:grid; gap:7px; color:var(--primary,#00e5ff); font:700 9px/1 ui-monospace,monospace; letter-spacing:.11em; }
#poi-editor-form input,#poi-editor-form select,#poi-editor-form textarea { width:100%; padding:11px 12px; color:#effcff; border:1px solid rgba(255,255,255,.17); border-radius:0; outline:0; background:#020608; font:600 14px/1.35 "Rajdhani",sans-serif; resize:vertical; }
#poi-editor-form input:focus,#poi-editor-form select:focus,#poi-editor-form textarea:focus { border-color:var(--primary,#00e5ff); box-shadow:inset 0 0 15px rgba(0,229,255,.05); }
.poi-editor-coordinates { display:grid; grid-template-columns:1fr 1fr auto; gap:8px; }
.poi-editor-coordinates div { padding:9px 11px; border:1px solid rgba(255,255,255,.1); background:#03080b; }
.poi-editor-coordinates span,.poi-editor-coordinates strong { display:block; }
.poi-editor-coordinates span { color:#73878f; font:700 8px/1 ui-monospace,monospace; }
.poi-editor-coordinates strong { margin-top:5px; font:700 12px/1 ui-monospace,monospace; }
.poi-editor-coordinates button { padding:0 12px; color:var(--secondary,#f7ff00); border:1px solid color-mix(in srgb,var(--secondary,#f7ff00) 55%,transparent); background:transparent; cursor:pointer; font:800 8px/1.25 ui-monospace,monospace; }
.poi-editor-region { padding:10px 12px; color:#9db0b6; border-left:2px solid var(--secondary,#f7ff00); background:rgba(247,255,0,.035); font:700 9px/1.4 ui-monospace,monospace; letter-spacing:.05em; }
.poi-editor-error { min-height:14px; margin:0; color:#ff4059; font:700 10px/1.3 ui-monospace,monospace; }
.poi-editor-actions { display:flex; flex-wrap:wrap; gap:8px; }
.poi-editor-actions button { min-height:38px; padding:0 14px; color:#bacbd0; border:1px solid rgba(255,255,255,.16); background:transparent; cursor:pointer; font:800 9px/1 ui-monospace,monospace; letter-spacing:.08em; }
.poi-editor-actions .poi-editor-save { color:#020507; border-color:var(--primary,#00e5ff); background:var(--primary,#00e5ff); }
.poi-editor-actions .poi-editor-danger { color:#ff5168; border-color:#ff4059; }
.poi-popup__edit { width:100%; margin-top:12px; padding:9px 10px; color:var(--primary,#00e5ff); border:1px solid color-mix(in srgb,var(--primary,#00e5ff) 50%,transparent); background:rgba(0,229,255,.04); cursor:pointer; font:800 9px/1 ui-monospace,monospace; letter-spacing:.08em; text-transform:uppercase; }
.poi-popup__custom { display:inline-block; margin-left:7px; padding:2px 5px; color:#020507; background:var(--secondary,#f7ff00); font-size:7px; letter-spacing:.05em; }
@media (max-width:760px){.poi-add-marker-btn span{display:none}.poi-placement-hud{top:72px;width:calc(100% - 24px);justify-content:space-between}.poi-editor-modal{padding:10px}.poi-editor-coordinates{grid-template-columns:1fr 1fr}.poi-editor-coordinates button{grid-column:1/-1;min-height:38px}}

@media (max-width:760px), (pointer:coarse) and (max-width:900px), (max-height:520px) and (max-width:900px){
  .poi-placement-hud{top:70px;right:10px;left:10px;width:auto;min-height:50px;padding:8px 10px;gap:8px}.poi-placement-hud button{min-width:44px;min-height:44px}
  .poi-editor-modal{place-items:end center;padding:0}.poi-editor-backdrop{backdrop-filter:blur(3px)}
  .poi-editor-panel{width:100%;max-width:none;max-height:min(84dvh,720px);overflow:auto;border-right:0;border-bottom:0;border-left:0;border-radius:18px 18px 0 0;overscroll-behavior:contain}
  .poi-editor-panel:before{content:"";position:absolute;z-index:2;top:8px;left:50%;width:42px;height:4px;border-radius:4px;background:rgba(255,255,255,.27);translate:-50% 0}
  .poi-editor-head{position:sticky;z-index:1;top:0;padding:24px 16px 12px;background:rgba(3,9,12,.99)}.poi-editor-close{width:44px;height:44px}
  #poi-editor-form{padding:14px 16px calc(18px + env(safe-area-inset-bottom))}#poi-editor-form input,#poi-editor-form select,#poi-editor-form textarea{min-height:44px;font-size:16px}
  .poi-editor-coordinates{grid-template-columns:1fr 1fr}.poi-editor-coordinates button{min-height:44px}.poi-editor-actions{position:sticky;bottom:calc(-18px - env(safe-area-inset-bottom));z-index:2;margin:0 -16px calc(-18px - env(safe-area-inset-bottom));padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(3,9,12,.98);box-shadow:0 -10px 24px rgba(0,0,0,.4)}.poi-editor-actions button{min-height:44px;flex:1}.poi-editor-actions .poi-editor-save{color:#020507;border-color:var(--secondary,#00e5ff);background:var(--secondary,#00e5ff)}
}

@media (max-height:520px) and (orientation:landscape){.poi-editor-modal{place-items:stretch end}.poi-editor-panel{width:min(470px,72vw);max-height:100dvh;border-radius:18px 0 0 18px}}
