/* Juntapp · estilos. Layout: mapa + panel; en teléfono el panel es una hoja inferior con 3 alturas, en pantalla ancha es lateral y plegable. */
/* Layout: mapa + panel. Teléfono: panel inferior con 3 alturas (oculto, medio, alto). Pantalla ancha: panel lateral plegable. */
:root{
  --bg:#eef2ee; --surface:#ffffff; --surface-2:#f3f6f3; --fg:#17201a; --muted:#56645a; --line:#d6ded7;
  --brand:#1f7a45; --brand-ink:#ffffff; --brand-soft:#dcefe2; --biz:#2a5d9f; --biz-soft:#e2ebf7; --pub:#8a4fbf; --pub-soft:#efe5f8;
  --s0:#2f8f4e; --s1:#b98900; --s2:#d4651f; --s3:#c42b2b; --s1-soft:#fbf1d2; --s2-soft:#fbe5d6; --s3-soft:#f8dddd; --s0-soft:#dcefe2;
  --s1-ink:#7d5c00; --s2-ink:#a8481a; --s3-ink:#a32222; --s0-ink:#23703c;
  --street:#ffffff; --street-2:#f7f9f7; --map:#e6ebe4; --barrio:#1f7a45;
  --shadow:0 6px 24px rgba(20,40,28,.16);
  --f-display:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;
  --f-body:"Manrope","Segoe UI",system-ui,-apple-system,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --ph:46%;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0f1511; --surface:#18211b; --surface-2:#1f2a22; --fg:#e6ede7; --muted:#9aa89e; --line:#2c3a30;
  --brand:#3fae6d; --brand-ink:#06140b; --brand-soft:#1d3a27; --biz:#6c9be0; --biz-soft:#1c2a40; --pub:#b48ae6; --pub-soft:#2c2240;
  --s0:#47b56c; --s1:#e0b52e; --s2:#f0874a; --s3:#f06060; --s1-soft:#3a3115; --s2-soft:#3d2616; --s3-soft:#3f1d1d; --s0-soft:#1d3a27;
  --s1-ink:#e8c25a; --s2-ink:#f39a66; --s3-ink:#f47f7f; --s0-ink:#63c585;
  --street:#2a362d; --street-2:#222c25; --map:#141c16; --barrio:#3fae6d; --shadow:0 6px 24px rgba(0,0,0,.45); color-scheme:dark }}
:root[data-theme="dark"]{
  --bg:#0f1511; --surface:#18211b; --surface-2:#1f2a22; --fg:#e6ede7; --muted:#9aa89e; --line:#2c3a30;
  --brand:#3fae6d; --brand-ink:#06140b; --brand-soft:#1d3a27; --biz:#6c9be0; --biz-soft:#1c2a40; --pub:#b48ae6; --pub-soft:#2c2240;
  --s0:#47b56c; --s1:#e0b52e; --s2:#f0874a; --s3:#f06060; --s1-soft:#3a3115; --s2-soft:#3d2616; --s3-soft:#3f1d1d; --s0-soft:#1d3a27;
  --s1-ink:#e8c25a; --s2-ink:#f39a66; --s3-ink:#f47f7f; --s0-ink:#63c585;
  --street:#2a362d; --street-2:#222c25; --map:#141c16; --barrio:#3fae6d; --shadow:0 6px 24px rgba(0,0,0,.45); color-scheme:dark }
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--f-body);font-size:14px;overflow:hidden}
[hidden]{display:none!important}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}

#app{height:100%;display:flex;flex-direction:column}
header.bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px 8px 16px;background:var(--surface);border-bottom:1px solid var(--line);position:relative;z-index:2000}
.brand{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.brand b{font:700 17px var(--f-display);white-space:nowrap}
.brand span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbtns{display:flex;gap:6px;align-items:center}
.iconbtn{position:relative;width:44px;height:44px;border-radius:12px;border:0;background:var(--surface-2);display:flex;align-items:center;justify-content:center;cursor:pointer}
.badge{position:absolute;top:4px;right:4px;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border-radius:9px;background:var(--s3);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.userbtn{display:flex;align-items:center;gap:8px;height:44px;padding:0 10px 0 6px;border-radius:12px;border:0;background:var(--surface-2);cursor:pointer;max-width:190px}
.avatar{width:32px;height:32px;flex:none;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12.5px}
.userbtn .who{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;min-width:0}
.userbtn .who b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}
.userbtn .who span{font-size:11px;color:var(--muted);white-space:nowrap}
@media (max-width:420px){.userbtn .who{display:none}.userbtn{padding:0 6px}}
.drop{position:absolute;right:12px;top:62px;width:min(380px,calc(100vw - 24px));background:var(--surface);border-radius:16px;box-shadow:var(--shadow);border:1px solid var(--line);z-index:2500;display:flex;flex-direction:column;max-height:70vh}
.drop .dh{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px 10px;border-bottom:1px solid var(--line)}
.drop .dl{overflow-y:auto}
.notif{display:flex;gap:12px;padding:12px 16px;border:0;border-bottom:1px solid var(--line);background:transparent;width:100%;text-align:left;cursor:pointer}
.notif.nueva{background:color-mix(in srgb,var(--brand-soft) 55%,transparent)}
.notif .main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}

main{flex:1;position:relative;min-height:0;display:grid;grid-template-columns:1fr}
#mapwrap{position:relative;min-height:0;height:100%}
#map{position:absolute;inset:0;background:var(--map)}
@media (min-width:900px){
  main{grid-template-columns:1fr 410px}
  main.plegado{grid-template-columns:1fr 0}
  #panel{position:relative!important;inset:auto!important;height:auto!important;border-radius:0!important;border-left:1px solid var(--line);box-shadow:none!important;overflow:hidden}
  main.plegado #panel{border-left:0}
  #p-size{display:none!important}
}
.leaflet-container{font-family:var(--f-body);background:var(--map)}
.leaflet-control-zoom a{background:var(--surface);color:var(--fg);border-color:var(--line)!important}
.leaflet-control-attribution{background:color-mix(in srgb,var(--surface) 80%,transparent)!important;color:var(--muted)}
.leaflet-control-attribution a{color:var(--brand)}
@media (max-width:899px){.leaflet-bottom{bottom:var(--ph);transition:bottom .25s ease}}
.lbl-calle{font:700 10.5px var(--f-body);color:var(--muted);background:color-mix(in srgb,var(--surface) 88%,transparent);padding:2px 6px;border-radius:6px;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.12);transform:translate(-50%,-50%);display:inline-block}
.lbl-barrio{font:700 12px var(--f-display);letter-spacing:.06em;color:var(--barrio);white-space:nowrap;transform:translate(-50%,-50%);display:inline-block;text-transform:uppercase;text-shadow:0 0 4px var(--surface),0 0 4px var(--surface)}

.overlay{position:absolute;z-index:1000;left:12px;right:12px;top:12px;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.overlay>*{pointer-events:auto}
.search{position:relative;display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:14px;box-shadow:var(--shadow);padding:0 6px 0 14px;height:48px;max-width:520px}
.search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-weight:500;font-size:15px}
.search input::placeholder{color:var(--muted)}
.sugs{position:absolute;left:0;right:0;top:54px;background:var(--surface);border-radius:14px;box-shadow:var(--shadow);max-height:46vh;overflow-y:auto}
.sugs button{display:flex;gap:10px;align-items:center;width:100%;text-align:left;border:0;background:transparent;padding:10px 14px;cursor:pointer;border-top:1px solid var(--line)}
.sugs button:first-child{border-top:0}
.sugs button:hover{background:var(--surface-2)}
.sugs small{display:block;color:var(--muted);font-size:12px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-weight:600;font-size:13px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.chip[aria-pressed="true"]{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.chip .sw{width:10px;height:10px;border-radius:50%}
.modo{position:absolute;z-index:1000;left:50%;transform:translateX(-50%);top:116px;background:var(--fg);color:var(--bg);border-radius:999px;padding:10px 14px;font-weight:700;font-size:13px;box-shadow:var(--shadow);display:flex;gap:10px;align-items:center;white-space:nowrap}
.modo button{border:0;background:transparent;color:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
.fab{position:absolute;z-index:1000;right:12px;bottom:calc(var(--ph) + 92px);display:flex;align-items:center;gap:8px;border:0;border-radius:14px;padding:0 16px;height:48px;background:var(--brand);color:var(--brand-ink);font-weight:700;box-shadow:var(--shadow);cursor:pointer;transition:bottom .25s ease}
.showpanel{position:absolute;z-index:1000;right:12px;top:12px;display:flex;align-items:center;gap:8px;border:0;border-radius:12px;height:44px;padding:0 14px;background:var(--fg);color:var(--bg);font-weight:700;box-shadow:var(--shadow);cursor:pointer}
@media (min-width:900px){.fab{bottom:24px;right:60px}}
.aviso{position:absolute;z-index:999;left:12px;bottom:calc(var(--ph) + 12px);max-width:240px;background:var(--surface);color:var(--muted);font-size:11.5px;line-height:1.4;padding:8px 10px;border-radius:10px;box-shadow:var(--shadow);transition:bottom .25s ease}
@media (min-width:900px){.aviso{bottom:24px}}
@media (max-width:899px){.aviso{display:none!important}}

/* Panel */
#panel{position:absolute;z-index:1001;left:0;right:0;bottom:0;height:var(--ph);background:var(--surface);border-radius:20px 20px 0 0;box-shadow:0 -6px 24px rgba(0,0,0,.14);display:flex;flex-direction:column;min-height:0;transition:height .25s ease}
.phead{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px 0 12px}
.grip{border:0;background:transparent;flex:1;height:30px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.grip span{width:40px;height:4px;border-radius:4px;background:var(--line)}
.pbtn{border:0;background:var(--surface-2);height:32px;padding:0 10px;border-radius:9px;font-size:12.5px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
#panel.oculto .tabs,#panel.oculto .body{display:none}
.ptitle{font-size:13px;font-weight:700;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tabs{flex:none;display:flex;gap:2px;padding:2px 10px 0;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.tabs button{border:0;background:transparent;padding:10px 9px 11px;font-weight:700;font-size:13.5px;color:var(--muted);cursor:pointer;border-bottom:2.5px solid transparent;white-space:nowrap;min-height:44px}
.tabs button[aria-selected="true"]{color:var(--fg);border-bottom-color:var(--brand)}
.tabs .n{display:inline-block;min-width:18px;padding:0 5px;margin-left:4px;border-radius:999px;background:var(--s2);color:#fff;font-size:11px;line-height:18px;text-align:center}
.body{flex:1;overflow-y:auto;padding:14px 16px 28px;display:flex;flex-direction:column;gap:14px;min-height:0}
h2{margin:0;font:700 20px/1.2 var(--f-display);text-wrap:balance}
h3{margin:0;font:700 15px/1.3 var(--f-body)}
p{margin:0;line-height:1.5}
.muted{color:var(--muted)}
.small{font-size:12.5px}
.mono{font-family:var(--f-mono);font-size:11.5px}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.between{justify-content:space-between}
.stack{display:flex;flex-direction:column;gap:8px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);font-weight:700;cursor:pointer;text-align:center}
.btn.pri{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.btn.dark{background:var(--fg);border-color:var(--fg);color:var(--bg)}
.btn.biz{background:var(--biz);border-color:var(--biz);color:#fff}
.btn.warn{border-color:var(--s3);color:var(--s3-ink)}
.btn.sm{min-height:36px;padding:0 12px;font-size:13px;border-radius:10px}
.btn.full{width:100%}
.btn:disabled{opacity:.5;cursor:not-allowed}
.link{border:0;background:none;color:var(--brand);font-weight:700;cursor:pointer;padding:0;text-align:left}
.card{border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px;background:var(--surface)}
.card.soft{background:var(--surface-2);border-color:transparent}
.list{display:flex;flex-direction:column}
.item{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.item:last-child{border-bottom:0}
.item .main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.t{border:0;background:none;padding:0;text-align:left;font-weight:700;cursor:pointer;font-size:14.5px;color:var(--fg)}
.ic{width:36px;height:36px;flex:none;border-radius:10px;display:flex;align-items:center;justify-content:center}
.pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;letter-spacing:.03em;padding:3px 8px;border-radius:999px;white-space:nowrap}
.sev0{background:var(--s0-soft);color:var(--s0-ink)} .sev1{background:var(--s1-soft);color:var(--s1-ink)} .sev2{background:var(--s2-soft);color:var(--s2-ink)} .sev3{background:var(--s3-soft);color:var(--s3-ink)}
.pend{background:var(--s1-soft);color:var(--s1-ink)} .ok{background:var(--s0-soft);color:var(--s0-ink)} .rech{background:var(--s3-soft);color:var(--s3-ink)} .bizp{background:var(--biz-soft);color:var(--biz)} .pubp{background:var(--pub-soft);color:var(--pub)} .neut{background:var(--surface-2);color:var(--muted)}
.legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
.legend div{display:flex;align-items:center;gap:8px;font-size:12.5px}
.dotm{width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;border:2px solid var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.3);flex:none}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tile{display:flex;gap:10px;align-items:center;text-align:left;padding:10px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);cursor:pointer;min-height:56px;font-weight:600;font-size:13px}
.tile[aria-pressed="true"]{border-color:var(--fg);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--fg)}
.field{display:flex;flex-direction:column;gap:6px}
.field label,.lbl{font-weight:700;font-size:13px}
.field input,.field select,.field textarea{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-sizing:border-box;width:100%}
.field textarea{min-height:76px;resize:vertical}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.check{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.4}
.check input{width:20px;height:20px;margin:0;flex:none;accent-color:var(--brand)}
.kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.kpi{padding:12px;border-radius:14px;background:var(--surface-2);display:flex;flex-direction:column;gap:2px}
.kpi b{font:700 26px var(--f-display);font-variant-numeric:tabular-nums}
.kpi span{font-size:12px;color:var(--muted);font-weight:600}
.dist{display:flex;height:14px;gap:2px}
.dist span{display:block;height:100%}
.dist span:first-child{border-radius:4px 0 0 4px}.dist span:last-child{border-radius:0 4px 4px 0}
.chart{position:relative}
.chart svg{display:block;width:100%;height:auto;overflow:visible}
.tip{position:absolute;pointer-events:none;background:var(--fg);color:var(--bg);font-size:12px;font-weight:600;padding:6px 8px;border-radius:8px;white-space:nowrap;transform:translate(-50%,-110%)}
.steps{display:flex;gap:3px}
.steps span{flex:1;height:5px;border-radius:3px;background:var(--line)}
.steps span.on{background:var(--brand)}
.toast{position:fixed;z-index:5000;left:50%;top:70px;transform:translateX(-50%);background:var(--fg);color:var(--bg);padding:12px 16px;border-radius:12px;font-weight:600;box-shadow:var(--shadow);max-width:calc(100% - 32px)}
.empty{padding:18px;text-align:center;color:var(--muted);border:1.5px dashed var(--line);border-radius:14px}
.seg{display:flex;gap:4px;background:var(--surface-2);padding:3px;border-radius:12px}
.seg button{flex:1;border:0;background:transparent;border-radius:9px;min-height:36px;font-weight:700;font-size:13px;cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--surface);box-shadow:0 1px 4px rgba(0,0,0,.12)}
.matrix{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.matrix table{border-collapse:collapse;font-size:12.5px;min-width:520px;width:100%}
.matrix th,.matrix td{padding:8px;border-bottom:1px solid var(--line);text-align:center}
.matrix th:first-child,.matrix td:first-child{text-align:left;position:sticky;left:0;background:var(--surface)}
.matrix thead th{font-size:11.5px;vertical-align:bottom}
.matrix input{width:18px;height:18px;accent-color:var(--brand)}
.pub{border-radius:14px;padding:12px;background:var(--pub-soft);display:flex;flex-direction:column;gap:4px}
.pub .k{font-size:11px;font-weight:700;letter-spacing:.05em;color:var(--pub);text-transform:uppercase}
.sr{position:absolute;left:-9999px}

/* Ingreso */
#login{position:fixed;inset:0;z-index:4000;background:var(--bg);overflow-y:auto;padding:24px 16px}
.lwrap{max-width:420px;margin:0 auto;display:flex;flex-direction:column;gap:18px;padding-block:20px}
.lhero{display:flex;flex-direction:column;gap:6px}
.lhero .mark{width:52px;height:52px;border-radius:16px;background:var(--brand);color:var(--brand-ink);display:flex;align-items:center;justify-content:center}
.lhero h1{margin:0;font:700 30px/1.1 var(--f-display);text-wrap:balance}
.err{color:var(--s3-ink);font-weight:600;font-size:13px}
.demo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.demo button{text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:10px;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.demo button b{font-size:13px}.demo button span{font-size:11.5px;color:var(--muted)}

/* Marcadores */
.mk-poste{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;border:2px solid var(--surface);box-shadow:0 1px 4px rgba(0,0,0,.35);transition:transform .15s;box-sizing:border-box}
.mk-poste.sel{transform:scale(1.5);box-shadow:0 0 0 4px color-mix(in srgb,var(--fg) 25%,transparent)}
.mk-poste.nuevo{border-style:dashed}
.mk-biz{position:relative;width:30px;height:30px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--biz);color:#fff;border:2px solid var(--surface);box-shadow:0 2px 5px rgba(0,0,0,.3);box-sizing:border-box}
.mk-biz.pendiente{background:var(--surface);color:var(--biz);border:2px dashed var(--biz)}
.mk-biz.sel{transform:scale(1.25)}
.mk-biz .pdot{position:absolute;top:-5px;right:-5px;width:12px;height:12px;border-radius:50%;background:var(--pub);border:2px solid var(--surface)}
.mk-hito{width:30px;height:30px;border-radius:50%;background:var(--brand);color:#fff;border:2px solid var(--surface);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 5px rgba(0,0,0,.3);box-sizing:border-box}
.mk-tmp{width:20px;height:20px;border-radius:50%;background:var(--biz);border:3px solid var(--surface);box-shadow:0 0 0 6px color-mix(in srgb,var(--biz) 30%,transparent)}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- Agregados de la versión de producción ---------- */
.brand-wrap{display:flex;align-items:center;gap:10px;min-width:0}
.brand-wrap img{width:36px;height:36px;border-radius:10px;flex:none}
.screen{position:fixed;inset:0;z-index:4000;background:var(--bg);overflow-y:auto;padding:24px 16px}
.lhero img{width:56px;height:56px;border-radius:16px}
.ok-msg{color:var(--s0-ink);font-weight:600;font-size:13px}
.modo{flex-wrap:wrap;justify-content:center;white-space:normal;max-width:calc(100% - 24px);text-align:center}
.modo .mb{border:0;border-radius:999px;padding:6px 12px;font-weight:700;cursor:pointer;background:var(--bg);color:var(--fg);text-decoration:none}
.modo .mb.pri{background:var(--brand);color:var(--brand-ink)}
.mk-vert{width:18px;height:18px;border-radius:5px;background:var(--surface);border:3px solid var(--barrio);box-shadow:0 1px 4px rgba(0,0,0,.35);box-sizing:border-box;cursor:grab}
.mk-mid{width:20px;height:20px;border-radius:50%;background:var(--barrio);color:#fff;font:700 14px/20px var(--f-body);text-align:center;opacity:.85;cursor:pointer}
.mk-yo{width:16px;height:16px;border-radius:50%;background:#2a7bd8;border:3px solid #fff;box-shadow:0 0 0 6px rgba(42,123,216,.25);box-sizing:border-box}
.locbtn{position:absolute;z-index:1000;right:10px;bottom:calc(var(--ph) + 92px + 56px);width:44px;height:44px;border-radius:12px;border:0;background:var(--surface);color:var(--brand);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:bottom .25s ease}
@media (min-width:900px){.locbtn{bottom:96px}}
.fab{bottom:calc(var(--ph) + 92px)}
.thumb{display:block;width:100%;max-width:240px;border-radius:12px;border:1px solid var(--line)}
.install{background:var(--brand-soft);border-color:transparent}
.field select{appearance:auto}
textarea.lista{min-height:120px;font-family:var(--f-mono);font-size:12.5px}
.badge-ver{font-size:11px;color:var(--muted)}
.offline{position:fixed;z-index:5000;left:50%;bottom:16px;transform:translateX(-50%);background:var(--s3);color:#fff;padding:8px 14px;border-radius:999px;font-weight:700;font-size:13px}
/* Barra de modo (mapeo, ubicar, editar límite): abajo, sin tapar el mapa */
.modo{top:auto;bottom:calc(var(--ph) + 12px);left:12px;right:12px;transform:none;border-radius:14px;padding:10px 12px;justify-content:space-between;text-align:left;max-width:none;transition:bottom .25s ease}
.modo span{flex:1 1 180px;min-width:0}
@media (min-width:900px){.modo{bottom:24px;left:50%;right:auto;transform:translateX(-50%);max-width:620px}}
.body>*{flex-shrink:0}
