/* IoTree municipios · estilos
   La tipografía sale del tema del sitio (Twenty Twenty-One en equitec.uy usa Inconsolata).
   Colores de Equitec: verde #659b40, negro y blanco. Los colores de estado son los de la plataforma IoTree. */
#eqt-iotree{
  --f-body:var(--global--font-primary, inherit);
  --f-head:var(--heading--font-family, var(--global--font-primary, inherit));
  --ink:#1a1a1a; --ink-2:#333; --mute:#666; --line:#dcdcd6; --line-2:#c4c4bc;
  --paper:#fff; --paper-2:#f5f6f2; --surface:#fff;
  --frond:#659b40; --frond-2:#557f36; --frond-text:#4a7a2c; --frond-soft:#eef4e8; --on-frond:#fff;
  --leaf:#3ddc97; --signal:#c47414; --signal-soft:#fbf1e3; --alert:#b8392c;
  --r:6px;
}
#eqt-iotree *{box-sizing:border-box}
#eqt-iotree [hidden]{display:none!important}

/* ===== integración con WordPress: ancho completo y reseteo de estilos del tema ===== */
#eqt-iotree{position:relative;width:100vw;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;margin-top:0!important;margin-bottom:0!important;padding:0!important;overflow:hidden;text-align:left;
  background:var(--paper);color:var(--ink);font-family:var(--f-body);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
body.eqt-iotree-page{overflow-x:clip}
body.eqt-iotree-page.eqt-hide-title .entry-header,body.eqt-iotree-page.eqt-hide-title .entry-title,body.eqt-iotree-page.eqt-hide-title .wp-block-post-title,body.eqt-iotree-page.eqt-hide-title .page-title{display:none}
body.eqt-iotree-page .site-main{padding-top:0}
#eqt-iotree h1,#eqt-iotree h2,#eqt-iotree h3,#eqt-iotree h4,#eqt-iotree p,#eqt-iotree ul,#eqt-iotree ol,#eqt-iotree figure,#eqt-iotree table,#eqt-iotree details,#eqt-iotree dl{margin:0;padding:0;border:0;background:none;text-transform:none;max-width:none}
#eqt-iotree h1,#eqt-iotree h2,#eqt-iotree h3,#eqt-iotree h4{font-family:var(--f-head);font-weight:500;color:var(--ink);letter-spacing:normal;text-wrap:balance}
#eqt-iotree p,#eqt-iotree li,#eqt-iotree td,#eqt-iotree th,#eqt-iotree label,#eqt-iotree summary,#eqt-iotree input,#eqt-iotree select,#eqt-iotree textarea,#eqt-iotree button{font-family:var(--f-body);letter-spacing:normal}
#eqt-iotree section{margin:0;border:0;max-width:none;width:auto}
#eqt-iotree li{margin:0}
#eqt-iotree a{color:var(--frond-text);text-decoration:none;box-shadow:none;border:0}
#eqt-iotree a:hover{text-decoration:underline}
#eqt-iotree button{text-shadow:none;min-height:0;min-width:0;width:auto;height:auto;margin:0;line-height:1.2}
#eqt-iotree input,#eqt-iotree select,#eqt-iotree textarea{margin:0;box-shadow:none;height:auto;min-height:0;max-width:100%;line-height:1.3;color:var(--ink)}
#eqt-iotree table{border-collapse:collapse;width:100%;border:0}
#eqt-iotree td,#eqt-iotree th{border-left:0;border-right:0;border-top:0;background:none}
#eqt-iotree svg{overflow:visible;max-width:100%}
#eqt-iotree img{max-width:100%}
#eqt-iotree :focus-visible{outline:2px solid var(--frond);outline-offset:2px}

/* ===== base ===== */
#eqt-iotree .wrap{max-width:1200px;margin:0 auto;padding-inline:32px}
#eqt-iotree .wrap.narrow{max-width:900px}
@media (max-width:600px){#eqt-iotree .wrap{padding-inline:16px}}
#eqt-iotree h1{font-size:clamp(34px,4.4vw,52px);line-height:1.15}
#eqt-iotree h2{font-size:clamp(26px,3vw,34px);line-height:1.25}
#eqt-iotree h3{font-size:20px;line-height:1.3}
#eqt-iotree h4{font-size:17px;line-height:1.3}
#eqt-iotree .small{font-size:15px}
#eqt-iotree .fine{font-size:14px;color:var(--mute);line-height:1.5}
#eqt-iotree .muted{color:var(--mute)}
#eqt-iotree .center{text-align:center}
#eqt-iotree .eyebrow{font-size:14px;font-weight:600}
#eqt-iotree .note{padding:14px 18px;border-left:3px solid var(--frond);background:var(--frond-soft);font-size:16px;color:var(--ink)}

/* botones: como los de equitec.uy */
#eqt-iotree .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:2px solid var(--frond);background:transparent;color:var(--frond-text);border-radius:var(--r);padding:11px 22px;font-family:var(--f-body);font-weight:600;font-size:14px;line-height:1.2;text-transform:uppercase;letter-spacing:.02em;cursor:pointer;text-decoration:none;transition:background .15s,color .15s,border-color .15s}
#eqt-iotree .btn:hover{background:var(--frond-soft);text-decoration:none}
#eqt-iotree .btn-primary{background:var(--frond);border-color:var(--frond);color:var(--on-frond)}
#eqt-iotree .btn-primary:hover{background:var(--frond-2);border-color:var(--frond-2);color:var(--on-frond)}
#eqt-iotree .btn-sm{padding:7px 12px;font-size:13px}
#eqt-iotree .btn-danger{color:var(--alert)}
#eqt-iotree .btn[disabled]{opacity:.45;cursor:not-allowed}

/* selector de idioma */
#eqt-iotree .topline .wrap{display:flex;justify-content:flex-end;padding-block:10px}
#eqt-iotree .lang{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--mute)}
#eqt-iotree .lang a{color:var(--mute)}
#eqt-iotree .lang a[aria-current="true"]{color:var(--ink);font-weight:700}

/* secciones */
#eqt-iotree section{padding-block:80px}
#eqt-iotree section.alt{background:var(--paper-2)}
#eqt-iotree .sec-head{text-align:center;max-width:820px;margin:0 auto 48px}
#eqt-iotree .sec-head p{margin-top:16px;color:var(--ink-2)}
#eqt-iotree .sub{margin-top:72px}
#eqt-iotree .sub-title{text-align:center;font-size:24px;margin-bottom:28px!important}
#eqt-iotree .sub-title+.sub-text{margin-top:-16px}
#eqt-iotree .sub-text{text-align:center;max-width:720px;margin:12px auto 28px;color:var(--ink-2)}
#eqt-iotree .two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:start}
@media (max-width:960px){#eqt-iotree .two-col{grid-template-columns:1fr;gap:36px}}
#eqt-iotree .cols3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
@media (max-width:860px){#eqt-iotree .cols3{grid-template-columns:1fr;gap:24px}}
#eqt-iotree .col p{margin-top:8px;color:var(--ink-2)}

/* portada */
#eqt-iotree .hero{padding-block:56px 64px;text-align:center}
#eqt-iotree .hero .lead{margin:22px auto 0;max-width:760px;font-size:19px;color:var(--ink-2)}
#eqt-iotree .cta-row{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:32px}
#eqt-iotree .hero.has-photo{position:relative;background-size:cover;background-position:center;padding-block:120px 110px;color:#fff}
#eqt-iotree .hero.has-photo::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.5)}
#eqt-iotree .hero.has-photo .wrap{position:relative}
#eqt-iotree .hero.has-photo h1,#eqt-iotree .hero.has-photo .lead{color:#fff}
#eqt-iotree .hero.has-photo .btn:not(.btn-primary){border-color:#fff;color:#fff}
#eqt-iotree .hero.has-photo .btn:not(.btn-primary):hover{background:rgba(255,255,255,.12)}
#eqt-iotree .facts-sec{padding-block:0}
#eqt-iotree .facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
#eqt-iotree .fact{padding:24px 20px;text-align:center;border-right:1px solid var(--line);min-width:0}
#eqt-iotree .fact:last-child{border-right:0}
#eqt-iotree .fact .n{font-family:var(--f-head);font-size:32px;line-height:1.1;color:var(--frond-text)}
#eqt-iotree .fact .n small{font-size:16px;margin-left:3px;color:var(--mute)}
#eqt-iotree .fact p{font-size:15px;color:var(--mute);margin-top:6px}
@media (max-width:760px){#eqt-iotree .facts{grid-template-columns:1fr 1fr}
#eqt-iotree .fact:nth-child(2){border-right:0}
#eqt-iotree .fact:nth-child(n+3){border-top:1px solid var(--line)}}

/* qué aporta */
#eqt-iotree .items{display:grid;gap:28px}
#eqt-iotree .item p{margin-top:6px;color:var(--ink-2)}
#eqt-iotree .states{list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:12px!important;font-size:15px}
#eqt-iotree .states li{display:inline-flex;align-items:center;gap:7px}
#eqt-iotree .states i,#eqt-iotree .state i{width:11px;height:11px;border-radius:50%;display:inline-block}
#eqt-iotree .state{display:inline-flex;align-items:center;gap:6px;font-size:13px}
#eqt-iotree .figure{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);padding:16px;min-width:0}
#eqt-iotree .figure svg{display:block;width:100%;height:auto}
#eqt-iotree .fig-title{font-size:16px;font-weight:600}
#eqt-iotree .chart-wrap{overflow-x:auto}
#eqt-iotree .chart-legend{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px;color:var(--mute);margin-top:10px}

/* palmera */
#eqt-iotree .figs{display:grid;gap:16px;min-width:0}
#eqt-iotree .sizes{display:grid;grid-template-columns:1fr 1fr;gap:28px}
@media (max-width:520px){#eqt-iotree .sizes{grid-template-columns:1fr}}
#eqt-iotree .size .n{font-family:var(--f-head);font-size:36px;line-height:1;color:var(--frond-text)}
#eqt-iotree .size .n small{font-size:16px;margin-left:4px;color:var(--mute)}
#eqt-iotree .size h3{margin-top:10px}
#eqt-iotree .size p{margin-top:4px;font-size:15px;color:var(--mute)}
#eqt-iotree table.spec{margin-top:32px;border-top:1px solid var(--line);font-size:16px}
#eqt-iotree .spec th,#eqt-iotree .spec td{padding:12px 0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
#eqt-iotree .spec th{width:170px;padding-right:16px;font-weight:700}
@media (max-width:520px){#eqt-iotree .spec th,#eqt-iotree .spec td{display:block;width:auto}#eqt-iotree .spec th{border-bottom:0;padding-bottom:0}}
#eqt-iotree .two-col>table.spec{margin-top:0}
#eqt-iotree .install{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
@media (max-width:1100px){#eqt-iotree .install{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){#eqt-iotree .install{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:440px){#eqt-iotree .install{grid-template-columns:1fr}}
#eqt-iotree .install li{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;min-width:0}
#eqt-iotree .install svg{display:block;width:100%;height:auto;background:var(--paper-2);border-bottom:1px solid var(--line)}
#eqt-iotree .install .cap{padding:12px 14px 14px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:start}
#eqt-iotree .install .cap b{font-weight:700;color:var(--frond-text)}
#eqt-iotree .install .cap b::after{content:"."}
#eqt-iotree .install .cap span{font-size:15px;line-height:1.4;color:var(--ink-2)}

/* red */
#eqt-iotree .figure.wide{padding:0;overflow:hidden}
#eqt-iotree .sim{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:center;margin-top:24px;border:1px solid var(--line);border-radius:var(--r);padding:20px}
@media (max-width:860px){#eqt-iotree .sim{grid-template-columns:1fr}}
#eqt-iotree .sim svg{width:100%;height:auto;display:block}
#eqt-iotree .sim-label{display:block;margin-top:10px;font-size:15px}
#eqt-iotree .sim input[type=range]{width:100%;accent-color:var(--frond);padding:0;border:0;background:none}
#eqt-iotree .sim-out{font-family:var(--f-head);font-size:24px;line-height:1.25}
#eqt-iotree .sim-out small{display:block;font-family:var(--f-body);font-size:15px;line-height:1.45;color:var(--mute);margin-top:8px}
#eqt-iotree .rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 40px;margin-top:48px}
@media (max-width:900px){#eqt-iotree .rules{grid-template-columns:1fr 1fr}}
@media (max-width:560px){#eqt-iotree .rules{grid-template-columns:1fr;gap:24px}}
#eqt-iotree .rule{border-top:2px solid var(--frond);padding-top:14px;min-width:0}
#eqt-iotree .rule p{margin-top:6px;font-size:16px;color:var(--ink-2)}

/* energía */
#eqt-iotree .tl{display:grid;gap:18px}
#eqt-iotree .tl-row .lbl{display:flex;justify-content:space-between;gap:10px;font-size:15px;margin-bottom:6px}
#eqt-iotree .tl-bar{height:30px;border-radius:4px;background:#e8eae4;overflow:hidden;display:flex}
#eqt-iotree .tl-seg{height:100%;border-right:2px solid #fff;display:flex;align-items:center;padding-left:8px;font-size:13px;color:#fff}
#eqt-iotree .tl-seg.c1{background:var(--frond)}
#eqt-iotree .tl-seg.c2{background:#86b464}
#eqt-iotree .tl-seg.c3{background:#555}
#eqt-iotree .tl-axis{display:flex;justify-content:space-between;font-size:13px;color:var(--mute);margin-top:6px}

/* plataforma */
#eqt-iotree .feat{list-style:none;columns:2 300px;column-gap:48px;max-width:860px;margin:0 auto!important}
#eqt-iotree .feat li{break-inside:avoid;margin-bottom:14px!important}
#eqt-iotree .feat li{padding-left:22px;position:relative;color:var(--ink-2);font-size:16px}
#eqt-iotree .feat li::before{content:"";position:absolute;left:0;top:.55em;width:9px;height:9px;background:var(--frond)}
#eqt-iotree .shots{margin-top:40px;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
#eqt-iotree .shot{margin:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
#eqt-iotree .shot a{display:block;cursor:zoom-in}
#eqt-iotree .shot img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top left}
#eqt-iotree .shot figcaption{padding:10px 14px;font-size:15px;color:var(--ink-2)}
#eqt-iotree .shot.empty{border-style:dashed;display:grid;place-items:center;min-height:180px;color:var(--mute);font-size:14px;text-align:center;padding:16px;background:var(--paper)}

/* preguntas */
#eqt-iotree .faq details{border-bottom:1px solid var(--line);padding:16px 0}
#eqt-iotree .faq details:first-child{border-top:1px solid var(--line)}
#eqt-iotree .faq summary{cursor:pointer;font-weight:600;font-size:17px;list-style:none;display:flex;justify-content:space-between;gap:16px}
#eqt-iotree .faq summary::-webkit-details-marker{display:none}
#eqt-iotree .faq summary::after{content:"+";font-size:22px;line-height:1;color:var(--frond-text)}
#eqt-iotree .faq details[open] summary::after{content:"\2212"}
#eqt-iotree .faq details p{margin-top:10px;color:var(--ink-2)}
#eqt-iotree .credit{margin-top:40px;text-align:center;font-size:14px;color:var(--mute)}

/* ===== planificador ===== */
#eqt-iotree .est-sec{background:var(--paper-2)}
#eqt-iotree .app{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
#eqt-iotree .app-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line)}
#eqt-iotree .stepper{display:flex;gap:4px;flex-wrap:wrap}
#eqt-iotree .stepper button{display:flex;align-items:center;gap:8px;border:0;background:transparent;padding:8px 12px;border-radius:var(--r);cursor:pointer;font-weight:600;font-size:15px;color:var(--mute)}
#eqt-iotree .stepper button .n{width:24px;height:24px;border-radius:4px;display:grid;place-items:center;font-size:13px;border:1.5px solid var(--line-2)}
#eqt-iotree .stepper button[aria-current="step"]{color:var(--ink);background:var(--paper-2)}
#eqt-iotree .stepper button[aria-current="step"] .n{background:var(--frond);border-color:var(--frond);color:#fff}
#eqt-iotree .stepper button.done .n{border-color:var(--frond);color:var(--frond-text)}
#eqt-iotree .stepper button[disabled]{cursor:not-allowed;opacity:.5}
#eqt-iotree .savestate{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--mute)}
#eqt-iotree .savestate i{width:8px;height:8px;border-radius:50%;background:var(--frond)}
#eqt-iotree .savestate.warn,#eqt-iotree .savestate.warn i{color:var(--signal);background:none}
#eqt-iotree .savestate.warn i{background:var(--signal)}
#eqt-iotree .menu-wrap{position:relative}
#eqt-iotree .menu{position:absolute;right:0;top:calc(100% + 6px);z-index:1200;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 4px 18px rgba(0,0,0,.12);min-width:260px;padding:6px}
#eqt-iotree .menu button,#eqt-iotree .menu label{display:block;width:100%;text-align:left;border:0;background:transparent;padding:9px 10px;border-radius:4px;cursor:pointer;font-size:15px;font-weight:400;text-transform:none;color:var(--ink)}
#eqt-iotree .menu button:hover,#eqt-iotree .menu label:hover{background:var(--paper-2)}
#eqt-iotree .menu .btn-danger{color:var(--alert)}
#eqt-iotree .menu hr{border:0;border-top:1px solid var(--line);margin:4px 0}

#eqt-iotree .stage1{display:grid;grid-template-columns:340px minmax(0,1fr);height:min(780px,calc(100vh - 120px));min-height:600px}
@media (max-width:980px){#eqt-iotree .stage1{grid-template-columns:1fr;height:auto}}
#eqt-iotree .sites-col{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;min-width:0}
@media (max-width:980px){#eqt-iotree .sites-col{border-right:0;border-top:1px solid var(--line);order:2}}
#eqt-iotree .sites-top{padding:16px 16px 12px;border-bottom:1px solid var(--line)}
#eqt-iotree .sites-top .row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
#eqt-iotree .totals-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
#eqt-iotree .tm{background:var(--paper-2);border-radius:4px;padding:8px 10px}
#eqt-iotree .tm .v{font-family:var(--f-head);font-size:20px;line-height:1.1;font-variant-numeric:tabular-nums}
#eqt-iotree .tm .k{font-size:13px;color:var(--mute)}
#eqt-iotree .sites-scroll{flex:1;overflow:auto;padding:12px;min-height:0}
@media (max-width:980px){#eqt-iotree .sites-scroll{max-height:420px}}
#eqt-iotree .site-card{border:1px solid var(--line);border-radius:var(--r);padding:12px;margin-bottom:10px;background:var(--surface);cursor:pointer;transition:border-color .15s}
#eqt-iotree .site-card:hover{border-color:var(--line-2)}
#eqt-iotree .site-card.sel{border-color:var(--frond);box-shadow:0 0 0 1px var(--frond)}
#eqt-iotree .site-card.editing{border-style:dashed;border-color:var(--signal);background:var(--signal-soft);cursor:default}
#eqt-iotree .sc-top{display:flex;align-items:center;gap:10px}
#eqt-iotree .sc-num{font-size:13px;font-weight:700;color:#fff;background:var(--frond);border-radius:4px;padding:3px 6px;min-width:28px;text-align:center}
#eqt-iotree .site-card.editing .sc-num{background:var(--signal)}
#eqt-iotree .sc-name{flex:1;min-width:0;font-weight:600;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#eqt-iotree .sc-stats{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:14px;color:var(--mute)}
#eqt-iotree .sc-stats b{color:var(--ink);font-weight:600}
#eqt-iotree .sc-warn{margin-top:8px;font-size:14px;color:var(--signal);display:flex;gap:6px}
#eqt-iotree .sc-actions{display:flex;gap:6px;margin-top:10px}
#eqt-iotree .sites-bottom{padding:12px;border-top:1px solid var(--line);display:grid;gap:8px}
#eqt-iotree .empty-sites{text-align:center;padding:26px 14px;color:var(--mute);font-size:15px}
#eqt-iotree .empty-sites svg{margin-bottom:10px}
#eqt-iotree .mapcol{position:relative;min-height:540px;min-width:0}
@media (max-width:980px){#eqt-iotree .mapcol{height:72vh;min-height:460px;order:1}}
#eqt-iotree #eqt-map{position:absolute;inset:0;background:#2a2f2a}
#eqt-iotree .leaflet-container{font-family:var(--f-body)}
#eqt-iotree .leaflet-container a{color:#0078a8}
#eqt-iotree .leaflet-container svg{overflow:visible}
#eqt-iotree .edit-bar{position:absolute;z-index:700;top:12px;left:12px;right:12px;display:flex;flex-direction:column;gap:8px;pointer-events:none}
#eqt-iotree .edit-bar>*{pointer-events:auto}
#eqt-iotree .eb-row{display:flex;gap:8px;flex-wrap:wrap;align-items:stretch}
#eqt-iotree .chip-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 2px 10px rgba(0,0,0,.25);display:flex;align-items:center}
#eqt-iotree .name-box{flex:1 1 220px;max-width:360px;padding-left:12px;gap:8px}
#eqt-iotree .name-box label{font-size:14px;font-weight:700;color:var(--signal);white-space:nowrap}
#eqt-iotree .name-box input{flex:1;min-width:0;border:0;background:transparent;padding:10px 10px 10px 0;font-weight:600;font-size:16px;outline:none}
#eqt-iotree .search-box{flex:1 1 220px;max-width:340px}
#eqt-iotree .search-box input{flex:1;min-width:0;border:0;background:transparent;padding:10px 12px;outline:none;font-size:16px}
#eqt-iotree .search-box button{border:0;background:transparent;padding:0 12px;cursor:pointer;color:var(--mute);align-self:stretch}
#eqt-iotree .tools{overflow:hidden}
#eqt-iotree .tool{border:0;background:transparent;padding:9px 12px;cursor:pointer;display:flex;align-items:center;gap:7px;font-size:15px;font-weight:500;color:var(--ink);border-right:1px solid var(--line);white-space:nowrap;align-self:stretch;text-transform:none}
#eqt-iotree .tool:last-child{border-right:0}
#eqt-iotree .tool[aria-pressed="true"]{background:var(--frond);color:#fff}
#eqt-iotree .sw{width:11px;height:11px;border-radius:50%;background:var(--leaf);box-shadow:0 0 0 2px #fff}
#eqt-iotree .sw.g{width:15px;height:15px;box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--leaf)}
@media (max-width:700px){#eqt-iotree .tool .lbl{display:none}}
#eqt-iotree .save-box{margin-left:auto;gap:6px;padding:0;background:transparent;border:0;box-shadow:none}
#eqt-iotree .save-box .btn{box-shadow:0 2px 10px rgba(0,0,0,.25)}
#eqt-iotree .save-box .btn:not(.btn-primary){background:#fff}
#eqt-iotree .map-note{position:absolute;z-index:650;left:12px;bottom:28px;max-width:min(470px,calc(100% - 80px));background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;font-size:14px;box-shadow:0 2px 10px rgba(0,0,0,.25)}
#eqt-iotree .map-note b{font-weight:700}
#eqt-iotree .live{display:grid;grid-template-columns:repeat(4,auto);gap:4px 18px;margin-top:8px;font-size:13px;color:var(--mute)}
#eqt-iotree .live b{display:block;font-family:var(--f-head);font-size:20px;line-height:1.1;color:var(--ink);font-weight:600}
#eqt-iotree .legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px;font-size:13px;color:var(--mute)}
#eqt-iotree .legend i{display:inline-block;vertical-align:-1px;margin-right:5px}
#eqt-iotree .lg-p{width:10px;height:10px;border-radius:50%;background:var(--leaf);border:2px solid #fff;box-shadow:0 0 0 1px #999}
#eqt-iotree .lg-r{width:9px;height:9px;background:#f0a64c;transform:rotate(45deg);border:2px solid #fff;box-shadow:0 0 0 1px #999}
#eqt-iotree .lg-g{width:12px;height:12px;border-radius:3px;background:#1a1a1a;border:2px solid #fff}
#eqt-iotree .lg-l{width:16px;border-top:3px dashed #f0a64c;vertical-align:3px!important}
/* en el celular la ayuda del mapa ocupa menos: solo los números */
@media (max-width:700px){
  #eqt-iotree .map-note{left:8px;right:56px;bottom:22px;max-width:none;padding:8px 10px}
  #eqt-iotree .live{margin-top:0;gap:2px 12px}
  #eqt-iotree .live b{font-size:17px}
  #eqt-iotree .edit-bar{top:8px;left:8px;right:8px;gap:6px}
}
#eqt-iotree .idle-note{position:absolute;z-index:650;inset:0;display:grid;place-items:center;pointer-events:none;padding:20px}
#eqt-iotree .idle-card{pointer-events:auto;background:var(--surface);border-radius:var(--r);padding:24px;max-width:380px;text-align:center;box-shadow:0 4px 24px rgba(0,0,0,.3)}
#eqt-iotree .idle-card p{color:var(--mute);font-size:15px;margin:8px 0 18px}
#eqt-iotree .line-card{position:absolute;z-index:760;top:170px;left:12px;width:min(320px,calc(100% - 24px));background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px;box-shadow:0 4px 20px rgba(0,0,0,.3)}
#eqt-iotree .line-card .row{display:flex;gap:8px;align-items:center;margin-top:10px}
#eqt-iotree .line-card input,#eqt-iotree .line-card select{border:1px solid var(--line-2);border-radius:4px;padding:6px 8px;background:#fff}
#eqt-iotree .restore{position:absolute;z-index:780;top:170px;right:12px;max-width:320px;background:var(--signal-soft);border:1px solid var(--signal);border-radius:var(--r);padding:12px 14px;font-size:14px}
/* marcadores del mapa */
#eqt-iotree .pm{width:14px;height:14px;border-radius:50%;background:#3ddc97;border:2.5px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.55)}
#eqt-iotree .pm.g{width:20px;height:20px;box-shadow:0 0 0 2.5px #3ddc97,0 1px 6px rgba(0,0,0,.6)}
#eqt-iotree .rep{width:13px;height:13px;background:#f0a64c;border:2px solid #fff;transform:rotate(45deg);box-shadow:0 1px 4px rgba(0,0,0,.55)}
#eqt-iotree .gw{width:30px;height:30px;border-radius:6px;background:#1a1a1a;border:2px solid #fff;display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.55)}
#eqt-iotree .site-label{background:rgba(0,0,0,.82);color:#fff;font:600 13px/1.2 var(--f-body);padding:4px 8px;border-radius:4px;white-space:nowrap;transform:translate(-50%,-160%);display:inline-block;pointer-events:none}
#eqt-iotree .site-label span{font-weight:400;opacity:.8;margin-left:6px}
#eqt-iotree .gap-label{background:#f0a64c;color:#1d1406;border:0;font:600 12px var(--f-body);padding:2px 5px;border-radius:3px;box-shadow:none}
#eqt-iotree .gap-label::before{display:none}
#eqt-iotree .leaflet-popup-content{margin:12px 14px;font-size:14px}
#eqt-iotree .pop-actions{display:flex;gap:6px;margin-top:8px}
#eqt-iotree .pop-actions button{border:1px solid var(--line-2);background:#fff;border-radius:4px;padding:4px 8px;cursor:pointer;font-size:13px;color:var(--ink)}

/* etapa 2 */
#eqt-iotree .stage-pad{padding:26px}
@media (max-width:520px){#eqt-iotree .stage-pad{padding:16px}}
#eqt-iotree .sum-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}
@media (max-width:980px){#eqt-iotree .sum-grid{grid-template-columns:1fr}}
#eqt-iotree .seg{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin-top:12px}
#eqt-iotree .seg button{border:0;border-right:1px solid var(--line);background:transparent;padding:10px 6px;cursor:pointer;font-weight:600;font-size:15px;line-height:1.25;color:var(--ink)}
#eqt-iotree .seg button:last-child{border-right:0}
#eqt-iotree .seg button small{display:block;font-size:12px;font-weight:400;color:var(--mute)}
#eqt-iotree .seg button[aria-pressed="true"]{background:var(--frond);color:#fff}
#eqt-iotree .seg button[aria-pressed="true"] small{color:#fff;opacity:.85}
#eqt-iotree .seg-v{grid-template-columns:repeat(5,1fr)}
@media (max-width:420px){#eqt-iotree .seg-v{grid-template-columns:repeat(3,1fr)}}
#eqt-iotree .kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
@media (max-width:700px){#eqt-iotree .kpis{grid-template-columns:1fr}}
#eqt-iotree .kpi{border:1px solid var(--line);border-radius:var(--r);padding:16px;min-width:0}
#eqt-iotree .kpi .k{font-size:14px;color:var(--mute);line-height:1.35}
#eqt-iotree .kpi .v{font-family:var(--f-head);font-size:32px;line-height:1.05;font-variant-numeric:tabular-nums;margin-top:6px}
#eqt-iotree .kpi .v small{font-size:14px;color:var(--mute);margin-left:3px}
#eqt-iotree .kpi .s{font-size:13px;color:var(--mute);margin-top:6px}
#eqt-iotree .kpi.hl{background:var(--frond-soft);border-color:transparent}
#eqt-iotree .kpi.hl .v{color:var(--frond-text)}
#eqt-iotree .tbl-wrap{overflow-x:auto;margin-top:22px;border:1px solid var(--line);border-radius:var(--r)}
#eqt-iotree table.tbl{width:100%;border-collapse:collapse;font-size:15px;min-width:760px}
#eqt-iotree .tbl th:nth-child(2),#eqt-iotree .tbl td:nth-child(2){min-width:200px}
#eqt-iotree .tbl th{font-size:14px;font-weight:700;color:var(--ink-2);text-align:left;padding:10px 12px;background:var(--paper-2);border-bottom:1px solid var(--line)}
#eqt-iotree .tbl td{padding:10px 12px;border-bottom:1px solid var(--line)}
#eqt-iotree .tbl tr:last-child td{border-bottom:0}
#eqt-iotree .tbl .n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#eqt-iotree .tbl tr.tot td{font-weight:700;background:var(--paper-2)}
#eqt-iotree .costs{border:1px solid var(--line);border-radius:var(--r);padding:18px;background:var(--surface)}
#eqt-iotree .costs h4{margin-bottom:10px}
#eqt-iotree .costs table{width:100%;border-collapse:collapse;font-size:15px}
#eqt-iotree .costs td{padding:7px 0;border-bottom:1px dashed var(--line);vertical-align:top}
#eqt-iotree .costs td.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;padding-left:10px}
#eqt-iotree .costs tr.sub td{font-weight:700;border-bottom:1px solid var(--line-2)}
#eqt-iotree .costs .grp td{padding-top:14px;font-size:13px;font-weight:700;color:var(--mute);border-bottom:0}
#eqt-iotree .stage-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:16px 26px;border-top:1px solid var(--line);background:var(--surface)}
#eqt-iotree .sketches{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-top:14px}
#eqt-iotree .sketch{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--surface);min-width:0}
#eqt-iotree .sketch svg{display:block;width:100%;height:auto}
#eqt-iotree .sketch .cap{padding:10px 12px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:8px;font-size:14px}
#eqt-iotree .sketch .cap b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#eqt-iotree .sketch .cap span{font-size:13px;color:var(--mute);white-space:nowrap}
#eqt-iotree .next{list-style:none;counter-reset:nx;margin-top:12px!important;display:grid;gap:12px}
#eqt-iotree .next li{counter-increment:nx;display:grid;grid-template-columns:26px minmax(0,1fr);gap:4px 10px;font-size:15px}
#eqt-iotree .next li::before{content:counter(nx) ".";grid-row:span 2;font-weight:700;color:var(--frond-text)}
#eqt-iotree .next li span{color:var(--mute);font-size:14px}

/* etapa 3 */
#eqt-iotree .form{display:grid;gap:14px}
#eqt-iotree .form .two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:620px){#eqt-iotree .form .two{grid-template-columns:1fr}}
#eqt-iotree .form label{display:grid;gap:6px;font-size:15px;font-weight:600;color:var(--ink-2)}
#eqt-iotree .form input,#eqt-iotree .form select,#eqt-iotree .form textarea{border:1px solid var(--line-2);border-radius:4px;padding:11px 12px;background:#fff;font-size:16px;width:100%;font-weight:400}
#eqt-iotree .form input:focus,#eqt-iotree .form textarea:focus,#eqt-iotree .form select:focus{border-color:var(--frond);outline:none;box-shadow:0 0 0 3px var(--frond-soft)}
#eqt-iotree .check{display:flex!important;gap:10px!important;align-items:flex-start;font-weight:400!important}
#eqt-iotree .check input{width:auto;margin-top:4px}
#eqt-iotree .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
#eqt-iotree .sent{text-align:center;padding:40px 20px}
#eqt-iotree .preview{font-size:13px;line-height:1.55;background:var(--paper-2);border:1px solid var(--line);border-radius:4px;padding:12px;white-space:pre-wrap;max-height:260px;overflow:auto;text-align:left}
#eqt-iotree .share{max-width:560px;margin:22px auto 0;text-align:left;border:1px solid var(--line);border-radius:var(--r);padding:16px;background:var(--paper-2)}
#eqt-iotree .share-row{display:flex;gap:8px;margin-top:10px}
#eqt-iotree .share-row input{flex:1;min-width:0;border:1px solid var(--line-2);border-radius:4px;padding:8px 10px;background:#fff;font-size:14px}
#eqt-iotree .fb-steps{margin-top:16px!important;list-style:none;counter-reset:fb;display:grid;gap:14px}
#eqt-iotree .fb-steps li{counter-increment:fb;display:grid;grid-template-columns:24px minmax(0,1fr);gap:2px 10px;font-size:15px}
#eqt-iotree .fb-steps li::before{content:counter(fb) ".";grid-row:span 3;font-weight:700;color:var(--frond-text)}
#eqt-iotree .fb-steps li span{color:var(--mute);font-size:14px}

#eqt-iotree .toast{position:fixed;z-index:3000;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:#1a1a1a;color:#fff;padding:11px 15px;border-radius:var(--r);font-size:15px;display:flex;gap:12px;align-items:center;box-shadow:0 6px 24px rgba(0,0,0,.3);max-width:calc(100% - 32px)}
#eqt-iotree .toast button{background:transparent;border:1px solid currentColor;color:inherit;border-radius:4px;padding:4px 9px;cursor:pointer;font-size:14px;white-space:nowrap}

/* visor de imágenes */
#eqt-lightbox{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.88);display:grid;place-items:center;padding:24px;cursor:zoom-out}
#eqt-lightbox figure{margin:0;max-width:min(1400px,100%)}
#eqt-lightbox img{max-width:100%;max-height:85vh;display:block;margin:0 auto}
#eqt-lightbox figcaption{color:#eee;text-align:center;margin-top:10px;font-size:15px;font-family:var(--global--font-primary,inherit)}
#eqt-lightbox[hidden]{display:none}

@media (prefers-reduced-motion:reduce){#eqt-iotree *{transition:none!important;animation:none!important}}

/* impresión del resumen */
#eqt-report{display:none}
@media print{
  body.eqt-printing *{visibility:hidden!important}
  body.eqt-printing #eqt-report,body.eqt-printing #eqt-report *{visibility:visible!important}
  body.eqt-printing #eqt-report{display:block!important;position:absolute;left:0;top:0;width:100%;font:10.5pt/1.45 Arial,sans-serif;color:#000;background:#fff}
  #eqt-report h1{font:700 18pt/1.15 Arial,sans-serif;margin:4pt 0 8pt}
  #eqt-report h2{font:700 12pt/1.2 Arial,sans-serif;margin:14pt 0 6pt}
  #eqt-report table{width:100%;border-collapse:collapse;font-size:9.5pt}
  #eqt-report th,#eqt-report td{border-bottom:.5pt solid #999;padding:3pt 4pt;text-align:left}
  #eqt-report .n{text-align:right}
  #eqt-report .warn{background:#eef4e8;padding:7pt 10pt;border-left:3pt solid #659b40;margin:6pt 0 10pt}
  #eqt-report svg{width:100%;height:auto}
  @page{margin:15mm}
}
@media (max-width:600px){#eqt-iotree .hero .lead,#eqt-iotree .sec-head p,#eqt-iotree .sub-text{text-align:left}}

/* pasos de instalación con fotos reales */
#eqt-iotree .install .ph{display:block;aspect-ratio:4/3;background:var(--paper-2);border-bottom:1px solid var(--line);overflow:hidden}
#eqt-iotree .install .ph img{display:block;width:100%;height:100%;object-fit:cover}
#eqt-iotree .install a.ph{cursor:zoom-in}
#eqt-iotree .install .ph.empty{display:grid;place-items:center;text-align:center;padding:12px;font-size:13px;color:var(--mute);border:1px dashed var(--line-2)}

/* pasos del planificador: barra de progreso legible */
#eqt-iotree .stepper{align-items:center;gap:0}
#eqt-iotree .step-of{width:100%;font-size:13px;color:var(--mute);padding:0 12px 4px}
#eqt-iotree .stepper button{border-radius:0;background:transparent!important;padding:8px 12px;border-bottom:3px solid transparent}
#eqt-iotree .stepper button+button::before{content:"";display:inline-block;width:22px;height:2px;background:var(--line-2);margin-right:4px}
#eqt-iotree .stepper button[aria-current="step"]{color:var(--ink);border-bottom-color:var(--frond)}
#eqt-iotree .stepper button.done{color:var(--frond-text)}
#eqt-iotree .stepper button.done .n{background:var(--frond-soft);border-color:var(--frond);color:transparent;position:relative}
#eqt-iotree .stepper button.done .n::after{content:"\2713";position:absolute;inset:0;display:grid;place-items:center;color:var(--frond-text);font-weight:700}
#eqt-iotree .stepper button:not([disabled]):not([aria-current]):hover{color:var(--ink)}
@media (max-width:520px){#eqt-iotree .stepper button+button::before{width:10px}#eqt-iotree .stepper button{padding:8px 6px;font-size:14px}}

/* deslizador de distancia: estilo propio, que el tema no pueda pisar */
#eqt-iotree .range-box{margin-top:14px}
#eqt-iotree .sim-label{margin:0 0 8px;font-size:16px}
#eqt-iotree .sim-label b{color:var(--frond-text);font-size:20px}
#eqt-iotree input[type=range]#eqt-simRange{-webkit-appearance:none;appearance:none;display:block;width:100%;height:28px;margin:0;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer;--p:20%}
#eqt-iotree #eqt-simRange::-webkit-slider-runnable-track{height:8px;border-radius:4px;background:linear-gradient(to right,var(--frond) 0 var(--p),#dcdcd6 var(--p) 100%);border:0}
#eqt-iotree #eqt-simRange::-moz-range-track{height:8px;border-radius:4px;background:#dcdcd6;border:0}
#eqt-iotree #eqt-simRange::-moz-range-progress{height:8px;border-radius:4px;background:var(--frond)}
#eqt-iotree #eqt-simRange::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:26px;height:26px;margin-top:-9px;border-radius:50%;background:#fff;border:3px solid var(--frond);box-shadow:0 1px 4px rgba(0,0,0,.25)}
#eqt-iotree #eqt-simRange::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid var(--frond);box-shadow:0 1px 4px rgba(0,0,0,.25)}
#eqt-iotree #eqt-simRange:focus-visible{outline:2px solid var(--frond);outline-offset:4px}
#eqt-iotree .range-ends{display:flex;justify-content:space-between;gap:8px;margin-top:6px;font-size:13px;color:var(--mute)}
#eqt-iotree .range-ends span:nth-child(2){text-align:center}
@media (max-width:520px){#eqt-iotree .range-ends span:nth-child(2){display:none}}
#eqt-iotree .stepper button:focus:not(:focus-visible){outline:none}
/* pasos de uso del planificador, arriba del mapa */
#eqt-iotree .how-steps{list-style:none;counter-reset:hs;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin:0 0 36px!important}
#eqt-iotree .how-steps li{counter-increment:hs;position:relative;padding-left:44px}
#eqt-iotree .how-steps li::before{content:counter(hs);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;background:var(--frond);color:#fff;display:grid;place-items:center;font-weight:700;font-size:15px}
#eqt-iotree .how-steps h3{font-size:18px}
#eqt-iotree .how-steps p{margin-top:6px;font-size:16px;color:var(--ink-2)}
@media (max-width:860px){#eqt-iotree .how-steps{grid-template-columns:1fr;gap:18px}}

/* ===== planificador simplificado (v1.3) ===== */
#eqt-iotree .app .btn{text-transform:none;letter-spacing:normal;font-size:16px;padding:11px 18px}
#eqt-iotree .app .btn-sm{font-size:15px;padding:8px 14px}
#eqt-iotree .stage1{grid-template-columns:380px minmax(0,1fr)}
#eqt-iotree .sites-col{overflow:auto}
#eqt-iotree .list-panel{display:flex;flex-direction:column;min-height:0}
#eqt-iotree .stage1.is-editing .list-panel{display:none}
#eqt-iotree .sites-top{padding:18px 18px 14px}
#eqt-iotree .sites-top h3{font-size:22px}
#eqt-iotree .sites-top #eqt-totLbl{display:block;margin-top:2px}
#eqt-iotree .totals-mini{grid-template-columns:repeat(4,1fr);gap:6px}
#eqt-iotree .tm{padding:8px}
#eqt-iotree .tm .k{font-size:13px}
#eqt-iotree .sites-scroll{flex:0 1 auto;max-height:none;padding:14px 18px 4px}
#eqt-iotree .sites-bottom{border-top:0;padding:4px 18px 18px;gap:10px}
#eqt-iotree .sites-bottom .btn{width:100%}
#eqt-iotree .site-card .sc-name{font-size:17px}
#eqt-iotree .sc-stats{font-size:15px}
/* editor de sitio, en la columna izquierda */
#eqt-iotree .editor{padding:18px;display:grid;gap:20px}
#eqt-iotree .ed-step{display:grid;gap:8px}
#eqt-iotree .ed-h{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;color:var(--ink)}
#eqt-iotree .ed-n{width:26px;height:26px;border-radius:50%;background:var(--frond);color:#fff;display:grid;place-items:center;font-size:14px;flex:none}
#eqt-iotree .editor input[type=text],#eqt-iotree .editor input:not([type]),#eqt-iotree .editor input[type=search]{width:100%;border:1px solid var(--line-2);border-radius:4px;padding:11px 12px;font-size:16px;background:#fff}
#eqt-iotree .editor input:focus{border-color:var(--frond);outline:none;box-shadow:0 0 0 3px var(--frond-soft)}
#eqt-iotree .ed-search{display:flex;gap:8px}
#eqt-iotree .ed-search input{flex:1;min-width:0}
#eqt-iotree .ed-hint{font-size:15px;color:var(--ink-2);line-height:1.45}
#eqt-iotree .ed-hint b{font-weight:700}
#eqt-iotree .ed-size{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#eqt-iotree .ed-size .tool{border:2px solid var(--line-2);border-radius:var(--r);background:#fff;padding:12px;display:flex;align-items:center;gap:12px;text-align:left;color:var(--ink);font-size:16px;white-space:normal}
#eqt-iotree .ed-size .tool b{display:block;font-weight:700}
#eqt-iotree .ed-size .tool small{display:block;font-size:14px;color:var(--mute)}
#eqt-iotree .ed-size .tool[aria-pressed="true"]{border-color:var(--frond);background:var(--frond-soft);color:var(--ink)}
#eqt-iotree .ed-size .tool[aria-pressed="true"] small{color:var(--ink-2)}
#eqt-iotree .ed-links{display:flex;flex-wrap:wrap;gap:6px 18px}
#eqt-iotree .ed-links .link{border:0;background:none;padding:2px 0;color:var(--frond-text);font-size:15px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:normal}
#eqt-iotree .ed-links .link[aria-pressed="true"]{font-weight:700;text-decoration:none;color:var(--ink)}
#eqt-iotree .ed-links .link[aria-pressed="true"]::before{content:"\2713  "}
#eqt-iotree .ed-count{background:var(--paper-2);border-radius:var(--r);padding:12px 14px;display:grid;gap:8px}
#eqt-iotree .ed-count .ed-h{font-size:15px}
#eqt-iotree .editor .live{grid-template-columns:repeat(4,auto);margin-top:0;font-size:13px}
#eqt-iotree .editor .live b{font-size:22px}
#eqt-iotree .ed-actions{display:grid;gap:8px}
#eqt-iotree .ed-actions .btn{width:100%}
/* sobre el mapa solo queda la leyenda */
#eqt-iotree .map-note{left:12px;bottom:28px;padding:8px 12px;max-width:calc(100% - 80px)}
#eqt-iotree .map-note .legend{margin-top:0}
#eqt-iotree .line-card{top:12px}
#eqt-iotree .restore{top:12px}
@media (max-width:980px){
  #eqt-iotree .sites-col{order:1;border-top:0;border-bottom:1px solid var(--line);overflow:visible}
  #eqt-iotree .mapcol{order:2}
  #eqt-iotree .map-note .legend{display:flex}
}
@media (max-width:700px){
  #eqt-iotree .map-note{right:56px;bottom:22px}
  #eqt-iotree .map-note .legend{gap:6px 10px;font-size:12px}
}
@media (max-width:980px){
  #eqt-iotree .stage1{grid-template-columns:1fr}
  /* en el celular: nombre y búsqueda arriba del mapa; tamaño, conteo y guardar debajo */
  #eqt-iotree .stage1.is-editing .sites-col,#eqt-iotree .stage1.is-editing .editor{display:contents}
  #eqt-iotree .stage1.is-editing .ed-step{order:1;padding:14px 16px 0}
  #eqt-iotree .stage1.is-editing .ed-step:nth-child(2){padding-bottom:14px}
  #eqt-iotree .stage1.is-editing .mapcol{order:2}
  #eqt-iotree .stage1.is-editing .ed-mark{order:3;padding:16px 16px 0}
  #eqt-iotree .stage1.is-editing .ed-count{order:4;margin:16px 16px 0}
  #eqt-iotree .stage1.is-editing .ed-actions{order:5;padding:16px}
  #eqt-iotree .stage1.is-editing .mapcol{height:62vh;min-height:380px}
}

/* pasos 1, 2 y 3: versión simple */
#eqt-iotree .how-steps{counter-reset:none;max-width:1000px;margin-left:auto!important;margin-right:auto!important;gap:24px}
#eqt-iotree .how-steps li{padding:0 0 0 16px;border-left:3px solid var(--frond)}
#eqt-iotree .how-steps li::before{content:none}
#eqt-iotree .how-steps h3{font-size:20px;color:var(--frond-text)}

/* instalación en tres pasos */
#eqt-iotree .install{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1000px;margin-left:auto!important;margin-right:auto!important}
@media (max-width:700px){#eqt-iotree .install{grid-template-columns:1fr}}

/* ===== celular: planificador tipo app (v1.4) ===== */
#eqt-iotree .m-only,#eqt-iotree .m-tip,#eqt-iotree .m-hint,#eqt-iotree .m-mapbar,#eqt-iotree .m-bar,#eqt-iotree .m-dots,#eqt-iotree .sum-cards,#eqt-iotree .m-lbl,#eqt-iotree .ed-back{display:none}
#eqt-iotree .ed-top,#eqt-iotree .ed-sheet{display:grid;gap:20px}
html.eqt-lock,html.eqt-lock body{overflow:hidden!important;overscroll-behavior:none}
@media (max-width:700px){
  /* encabezado de una línea */
  #eqt-iotree .app-head{flex-wrap:nowrap;gap:10px;padding:10px 12px}
  #eqt-iotree .stepper{flex:1;min-width:0;flex-wrap:wrap}
  #eqt-iotree .stepper button{display:none}
  #eqt-iotree .step-of{display:block;width:100%;padding:0;font-size:15px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #eqt-iotree .step-of b{font-weight:700}
  #eqt-iotree .m-lbl{display:inline}
  #eqt-iotree .m-bar{display:block;width:100%;height:5px;background:#e3e5df;border-radius:3px;margin-top:7px;overflow:hidden}
  #eqt-iotree .m-bar i{display:block;height:100%;width:33%;background:var(--frond);transition:width .2s}
  #eqt-iotree .savestate{display:none}
  #eqt-iotree #eqt-menuBtn{padding:4px 10px;min-width:40px}
  #eqt-iotree #eqt-menuBtn .d-lbl{display:none}
  #eqt-iotree #eqt-menuBtn .m-dots{display:inline;font-size:20px;line-height:1;font-weight:700;letter-spacing:-1px}
  #eqt-iotree .menu{right:0;min-width:250px}

  /* pantalla 1: lista sin mapa */
  #eqt-iotree .stage1{display:block;height:auto;min-height:0}
  #eqt-iotree .sites-col{border:0;overflow:visible}
  #eqt-iotree .mapcol{display:none}
  #eqt-iotree .idle-note{display:none!important}
  #eqt-iotree .sites-top{padding:14px 12px 10px}
  #eqt-iotree .sites-top h3{font-size:20px}
  #eqt-iotree .totals-mini{gap:5px}
  #eqt-iotree .tm{padding:6px}
  #eqt-iotree .tm .v{font-size:18px}
  #eqt-iotree .tm .k{font-size:12px}
  #eqt-iotree .sites-scroll{padding:10px 12px 2px}
  #eqt-iotree .sc-actions{flex-wrap:wrap}
  #eqt-iotree .sc-actions .m-only{display:inline-flex}
  #eqt-iotree .m-tip{display:block;margin:6px 12px 10px!important;font-size:14px;line-height:1.45;color:var(--ink-2);background:var(--frond-soft);border-left:3px solid var(--frond);padding:8px 10px}
  #eqt-iotree .sites-bottom{position:sticky;bottom:0;z-index:5;background:#fff;border-top:1px solid var(--line);padding:10px 12px calc(12px + env(safe-area-inset-bottom,0px))}

  /* pantalla 2: mapa a pantalla completa */
  #eqt-iotree .stage1.map-open .mapcol,#eqt-iotree .stage1.is-editing .mapcol{display:block;position:fixed;inset:0;z-index:100000;height:auto!important;min-height:0!important;background:#2a2f2a}
  #eqt-iotree .stage1.map-open .m-mapbar{display:block;position:absolute;top:calc(10px + env(safe-area-inset-top,0px));left:10px;z-index:900}
  #eqt-iotree .stage1.map-open .m-mapbar .btn{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.3)}
  #eqt-iotree .stage1.is-editing .m-hint{display:block;position:absolute;left:50%;top:calc(118px + env(safe-area-inset-top,0px));transform:translateX(-50%);z-index:800;background:rgba(0,0,0,.75);color:#fff;font-size:14px;padding:6px 12px;border-radius:16px;white-space:nowrap;pointer-events:none}
  #eqt-iotree .stage1.is-editing .map-note,#eqt-iotree .stage1.is-editing .line-card,#eqt-iotree .stage1.map-open .map-note{display:none!important}
  #eqt-iotree .stage1.is-editing .leaflet-bottom{bottom:230px}
  #eqt-iotree .stage1.is-editing .editor{display:block!important;position:fixed;inset:0;z-index:100001;pointer-events:none;padding:0}
  #eqt-iotree .stage1.is-editing .ed-step,#eqt-iotree .stage1.is-editing .ed-mark,#eqt-iotree .stage1.is-editing .ed-actions{padding:0!important;margin:0!important;order:0}
  #eqt-iotree .stage1.is-editing .ed-count{margin:0!important;order:0}
  #eqt-iotree .ed-top{position:absolute;top:calc(10px + env(safe-area-inset-top,0px));left:10px;right:10px;gap:6px!important;pointer-events:auto}
  #eqt-iotree .ed-top .ed-h{display:none}
  #eqt-iotree .ed-name{display:flex!important;align-items:center;gap:0;background:#fff;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.3)}
  #eqt-iotree .ed-back{display:block;border:0;background:none;padding:10px 4px 10px 12px;font-size:20px;line-height:1;color:var(--frond-text);cursor:pointer}
  #eqt-iotree .ed-name input{border:0!important;box-shadow:none!important;font-weight:600}
  #eqt-iotree .ed-search{background:#fff;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.3);padding:4px}
  #eqt-iotree .ed-search input{border:0!important;box-shadow:none!important}
  #eqt-iotree .ed-sheet{position:absolute;left:0;right:0;bottom:0;background:#fff;border-radius:16px 16px 0 0;box-shadow:0 -4px 16px rgba(0,0,0,.25);padding:12px 14px calc(14px + env(safe-area-inset-bottom,0px));gap:10px!important;pointer-events:auto}
  #eqt-iotree .ed-sheet::before{content:"";display:block;width:40px;height:4px;border-radius:2px;background:#ccc;margin:0 auto}
  #eqt-iotree .ed-mark .ed-h,#eqt-iotree .ed-mark .ed-hint,#eqt-iotree .ed-count .ed-h{display:none}
  #eqt-iotree .ed-size .tool{padding:8px 10px;font-size:15px}
  #eqt-iotree .ed-links{gap:0}
  #eqt-iotree .ed-links .tool,#eqt-iotree #eqt-rangeBtn{display:none}
  #eqt-iotree .ed-mark{display:grid;gap:8px}
  #eqt-iotree .ed-links{justify-content:flex-end;margin-top:-2px}
  #eqt-iotree .ed-count{background:none;padding:0}
  #eqt-iotree .editor .live{gap:2px 10px}
  #eqt-iotree .editor .live b{font-size:18px}
  #eqt-iotree .ed-actions{grid-template-columns:1fr 1fr}
  #eqt-iotree .ed-actions #eqt-cancelEditBtn{order:-1}
  #eqt-iotree .sc-warn{font-size:13px}

  /* pantalla 3: resumen y envío */
  #eqt-iotree .kpis{grid-template-columns:1fr 1fr;gap:8px}
  #eqt-iotree .kpis .kpi:first-child{grid-column:1 / -1}
  #eqt-iotree .kpi{padding:10px 12px}
  #eqt-iotree .kpi .v{font-size:26px}
  #eqt-iotree .tbl-wrap{display:none}
  #eqt-iotree .sum-cards{display:grid;gap:8px;margin-top:14px}
  #eqt-iotree .sum-card{border:1px solid var(--line);border-radius:var(--r);padding:10px 12px;font-size:15px;background:#fff}
  #eqt-iotree .sum-card b{display:block;margin-bottom:4px;font-size:16px}
  #eqt-iotree .sum-card .r{display:flex;justify-content:space-between;color:var(--ink-2);padding:1px 0}
  #eqt-iotree .sum-card .r span:last-child{color:var(--ink);font-weight:700}
  #eqt-iotree .stage-pad{padding:14px 12px}
  #eqt-iotree .stage-foot{position:sticky;bottom:0;z-index:5;padding:10px 12px calc(12px + env(safe-area-inset-bottom,0px));flex-wrap:nowrap}
  #eqt-iotree .stage-foot>div{flex:1}
  #eqt-iotree .stage-foot .btn{flex:1}
  #eqt-iotree #eqt-printBtn{display:none}
  #eqt-iotree .form-actions{position:sticky;bottom:0;z-index:5;background:#fff;padding:10px 0 calc(10px + env(safe-area-inset-bottom,0px));flex-wrap:nowrap!important}
  #eqt-iotree .form-actions .btn{flex:1}

  /* avisos por encima de las barras fijas */
  #eqt-iotree .toast{bottom:calc(84px + env(safe-area-inset-bottom,0px));font-size:14px;padding:9px 12px}
  html.eqt-lock #eqt-iotree .toast{bottom:calc(240px + env(safe-area-inset-bottom,0px));z-index:100002}
}
@media (max-width:700px){
  #eqt-iotree .sc-actions{flex-wrap:nowrap;gap:6px}
  #eqt-iotree .sc-actions .btn{padding:6px 9px;font-size:14px;white-space:nowrap}
  #eqt-iotree .toast{left:12px;right:12px;transform:none;max-width:none;justify-content:space-between}
}
#eqt-iotree .toast button{flex:none}#eqt-iotree .toast span{min-width:0}
