/* Laboratorio de Heliora: estilo «Pro» oscuro. Mesa a pantalla completa con paneles de vidrio flotando encima. */
.lab-pro { --lp-t: #f5f5f7; --lp-t2: rgba(235, 235, 245, 0.64); --lp-t3: rgba(235, 235, 245, 0.38); --lp-ac: #ffb020; --lp-sep: rgba(255, 255, 255, 0.09); --lp-fill: rgba(255, 255, 255, 0.07); --lp-fuente: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #000; }
.lab-pro .wa-flotante { display: none; }
.lab-pro .lab-main { background: #000; }
.lp-app { position: relative; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; color: var(--lp-t); font-family: var(--lp-fuente); font-size: 13px; line-height: 1.35; -webkit-font-smoothing: antialiased; background: radial-gradient(90% 90% at 50% 30%, #1d1d1f, #000); user-select: none; -webkit-user-select: none; }
.lp-app input, .lp-app select, .lp-app textarea { user-select: text; -webkit-user-select: text; }
.lp-app button { font-family: inherit; }

/* material */
.lp-vidrio { position: absolute; background: rgba(40, 42, 47, 0.68); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 22px 54px -16px rgba(0, 0, 0, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.09); border-radius: 15px; }
@media (prefers-reduced-transparency: reduce) { .lp-vidrio { background: #2a2c31; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* mesa */
#labMesa { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: default; outline: none; }
#labMesa.modo-mano { cursor: grab; } #labMesa.paneando { cursor: grabbing; }
#labMesa.conectando { cursor: crosshair; }
#labMesa.moviendo [filter] { filter: none; }
#labMesa text { font-family: var(--lp-fuente); fill: var(--lp-t); pointer-events: none; }
#labMesa .cen { text-anchor: middle; } #labMesa .der { text-anchor: end; }
#labMesa .eq-tit { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
#labMesa .eq-sub { font-size: 10.5px; fill: var(--lp-t2); }
#labMesa .eq-mini { font-size: 7.5px; font-weight: 600; fill: var(--lp-t3); letter-spacing: 0.03em; }
#labMesa .eq-val { font-size: 14.5px; font-weight: 600; fill: #ffd60a; font-variant-numeric: tabular-nums; }
#labMesa .eq-med { font-size: 11px; font-weight: 600; fill: #ffd60a; font-variant-numeric: tabular-nums; }
#labMesa .eq-ok { font-size: 10.5px; font-weight: 600; fill: #30d158; }
#labMesa .eq-mal { font-size: 10.5px; font-weight: 600; fill: #ff453a; }
#labMesa .osc { fill: #23262b; } #labMesa .eq-sub.osc { fill: rgba(20, 22, 26, 0.68); } #labMesa .eq-mini.osc { fill: rgba(20, 22, 26, 0.6); } #labMesa .eq-val.osc { fill: #16181c; }
#labMesa .eq-lcd { font-size: 19px; font-weight: 600; fill: #7ee59a; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
#labMesa .eq-lcd.am { fill: #ffd60a; } #labMesa .eq-lcd2 { font-size: 10px; fill: rgba(126, 229, 154, 0.78); } #labMesa .mal { fill: #ff6961; }
.comp { cursor: grab; } .arrastrando .comp { cursor: grabbing; }
.comp .halo { fill: none; stroke: none; }
.comp.sel .halo { stroke: var(--lp-ac); stroke-width: 2; fill: rgba(255, 176, 32, 0.06); }
.comp.error .halo { stroke: #ff453a; stroke-width: 2; fill: rgba(255, 69, 58, 0.07); }
.comp.advertencia .halo { stroke: #ffb020; stroke-width: 1.6; stroke-dasharray: 5 4; }
.comp.sel.error .halo { stroke: var(--lp-ac); stroke-dasharray: none; }
.borne { cursor: crosshair; }
.borne-zona { fill: transparent; }
.borne-anillo { fill: #17181c; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; transition: r 0.12s ease; }
.borne-punto { transition: r 0.12s ease; }
.borne:hover .borne-zona, .borne.activo .borne-zona { fill: rgba(255, 176, 32, 0.3); }
.borne.compatible .borne-zona { fill: rgba(48, 209, 88, 0.26); }
.borne.compatible .borne-anillo { stroke: #30d158; }
.borne.apagado { opacity: 0.32; }
#labMesa .borne-etq { font-size: 10px; font-weight: 700; fill: #d1d1d6; }
#labMesa .borne-fuerte { font-size: 13px; }
.cable, .cable-borde, .cable-flujo, .cable-temp { fill: none; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.cable { stroke-width: 2.8; }
.cable-borde { stroke: rgba(0, 0, 0, 0.5); stroke-width: 5.2; }
.cable-borde.claro { stroke: rgba(255, 255, 255, 0.26); }
.cable-zona { fill: none; stroke: transparent; stroke-width: 16; cursor: pointer; pointer-events: stroke; }
.cable-flujo { stroke: #fff; stroke-width: 2.8; stroke-dasharray: 0.5 15.5; animation: lp-flujo 1s linear infinite; opacity: 0.92; }
.cable-flujo.neg { stroke: #c7c7cc; opacity: 0.7; }
@keyframes lp-flujo { to { stroke-dashoffset: -16; } }
.cable-temp { stroke-width: 2.8; stroke-dasharray: 7 5; }
.capa-temp { pointer-events: none; }
.manija { fill: #fff; stroke: var(--lp-ac); stroke-width: 1.5; }
.manija.v { cursor: ns-resize; } .manija.h { cursor: ew-resize; }
.guia { stroke: #ff375f; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.rect-sel { fill: rgba(10, 132, 255, 0.12); stroke: #0a84ff; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }

/* tableros, barras y protecciones */
#labMesa .eq-tab { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
#labMesa .eq-tab2 { font-size: 13px; font-weight: 700; }
#labMesa .eq-barra { font-size: 11px; font-weight: 800; fill: #fff; letter-spacing: 0.04em; }
#labMesa .eq-barra.osc { fill: #23262b; }
#labMesa .eq-mod { font-size: 12px; font-weight: 700; fill: var(--lp-t); }
#labMesa .eq-mod.osc { fill: #23262b; }
.comp.oculto { display: none; }
.es-tablero:not(.cerrada) .tablero-fondo { pointer-events: none; }
.es-tablero:not(.cerrada) .marco-tablero { pointer-events: stroke; }
.es-tablero .halo { pointer-events: none; }
.es-tablero { cursor: move; }
.tirador { fill: var(--lp-ac); stroke: #fff; stroke-width: 1; cursor: nwse-resize; opacity: 0; pointer-events: none; }
.comp.sel .tirador { opacity: 1; pointer-events: auto; }
.palanca { cursor: pointer; }
.cable.tierra { stroke-dasharray: 9 3; stroke-width: 2.2; }
.lp-ancha { display: block; width: 100%; margin-top: 6px; }

/* barra superior */
.lp-barra { top: 12px; left: 0; right: 0; margin: 0 auto; width: fit-content; display: flex; align-items: center; gap: 3px; height: 46px; padding: 0 8px 0 12px; white-space: nowrap; max-width: calc(100% - 24px); z-index: 6; }
.lp-barra > * { flex: none; }
.lp-barra > .lp-nombre { flex: 0 1 180px; min-width: 60px; }
.lp-logo img { display: block; height: 24px; width: auto; }
.lp-nombre { width: 180px; margin-left: 10px; background: transparent; border: 0; border-radius: 7px; padding: 5px 7px; color: var(--lp-t); font: 600 13px var(--lp-fuente); box-shadow: none; }
.lp-nombre:hover { background: var(--lp-fill); } .lp-nombre:focus { background: rgba(0, 0, 0, 0.26); outline: 2px solid rgba(255, 176, 32, 0.6); box-shadow: none; }
.lp-nombre::placeholder { color: var(--lp-t3); }
.lp-sep { width: 1px; height: 20px; background: var(--lp-sep); margin: 0 5px; flex: none; }
.lp-bt { height: 30px; min-width: 30px; padding: 0 9px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--lp-t); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background 0.12s ease, transform 0.1s ease; }
.lp-bt:hover { background: var(--lp-fill); color: #fff; } .lp-bt:active { transform: scale(0.96); background: rgba(255, 255, 255, 0.13); }
.lp-bt[disabled] { color: var(--lp-t3); cursor: default; background: none; transform: none; }
.lp-bt.activo { background: rgba(255, 176, 32, 0.2); color: var(--lp-ac); }
.lp-acento { background: var(--lp-ac); color: #1a1205; font-weight: 600; padding: 0 13px; }
.lp-acento:hover { background: #ffb340; color: #1a1205; }
.lp-angosto { display: none; }

/* paleta */
.lp-paleta { top: 70px; left: 12px; width: 192px; max-height: calc(100% - 82px); overflow-y: auto; padding: 10px 7px; scrollbar-width: thin; z-index: 4; transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease; }
.lp-paleta h4 { margin: 9px 8px 4px; font-size: 11px; font-weight: 600; color: var(--lp-t3); }
.lp-paleta h4:first-child { margin-top: 2px; }
.lp-paleta button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 5px 7px; border: 0; border-radius: 8px; background: transparent; color: var(--lp-t); font-size: 13px; text-align: left; cursor: grab; transition: background 0.12s ease; touch-action: manipulation; }
.lp-paleta button:hover { background: var(--lp-fill); } .lp-paleta button:active { background: rgba(255, 255, 255, 0.13); }
.lp-mini { flex: none; width: 32px; height: 32px; border-radius: 7px; background: rgba(0, 0, 0, 0.24); display: grid; place-items: center; overflow: hidden; }
.lp-mini svg { width: 100%; height: 100%; display: block; }
.lp-ayuda { margin: 8px 8px 2px; font-size: 11.5px; color: var(--lp-t2); user-select: text; }
.lp-fantasma { position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none; opacity: 0.92; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.55)); }
.lp-fantasma svg { width: 100%; height: auto; display: block; }

/* inspector */
.lp-inspector { top: 70px; right: 12px; width: 268px; max-height: calc(100% - 82px); overflow-y: auto; padding: 14px; scrollbar-width: thin; z-index: 4; transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease; }
.lp-insp-cab h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.012em; color: var(--lp-t); }
.lp-insp-cab p { margin: 1px 0 0; font-size: 12px; color: var(--lp-t2); }
.lp-medidas { margin-top: 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.2); padding: 2px 10px; }
.lp-medidas > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--lp-sep); font-size: 12.5px; }
.lp-medidas > div:first-child { border-top: 0; } .lp-medidas span { color: var(--lp-t2); } .lp-medidas b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.lp-sec { margin-top: 12px; }
.lp-sec > summary { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--lp-t3); cursor: pointer; list-style: none; padding: 2px 0 5px; }
.lp-sec > summary::-webkit-details-marker { display: none; }
.lp-sec > summary::after { content: "›"; margin-left: auto; font-size: 14px; transition: transform 0.15s ease; }
.lp-sec[open] > summary::after { transform: rotate(90deg); }
.lp-campo { display: block; padding: 7px 0 3px; border-top: 1px solid var(--lp-sep); color: var(--lp-t); font-size: 13px; font-weight: 400; }
.lp-campo-fila { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lp-campo-fila > span:first-child { color: var(--lp-t2); }
.lp-num { display: inline-flex; align-items: baseline; gap: 3px; }
.lp-num input { width: 66px; padding: 2px 4px; border: 0; border-radius: 6px; background: transparent; color: var(--lp-t); font: 600 13px var(--lp-fuente); text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; box-shadow: none; }
.lp-num input::-webkit-inner-spin-button { display: none; }
.lp-num input:hover { background: var(--lp-fill); } .lp-num input:focus { background: rgba(0, 0, 0, 0.3); outline: 2px solid rgba(255, 176, 32, 0.6); box-shadow: none; }
.lp-num i { font-style: normal; font-size: 11px; color: var(--lp-t3); min-width: 18px; }
.lp-app input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 3px 0 0; padding: 0; background: transparent; border: 0; box-shadow: none; cursor: pointer; }
.lp-app input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.lp-app input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.lp-app input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 17px; height: 17px; margin-top: -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.55); transition: transform 0.1s ease; }
.lp-app input[type=range]::-moz-range-thumb { width: 17px; height: 17px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.55); }
.lp-app input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.lp-app input[type=range]:focus { outline: none; box-shadow: none; }
.lp-app input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.6); }
.lp-txt { width: 100%; margin-top: 4px; padding: 6px 8px; border: 1px solid var(--lp-sep); border-radius: 8px; background: rgba(0, 0, 0, 0.24); color: var(--lp-t); font: 13px var(--lp-fuente); box-shadow: none; }
.lp-txt:focus { outline: 2px solid rgba(255, 176, 32, 0.6); border-color: transparent; box-shadow: none; }
.lp-txt option { background: #2a2c31; color: #f5f5f7; }
.lp-valida { margin: 8px 0 0; padding: 7px 9px; border-radius: 8px; background: rgba(255, 176, 32, 0.14); color: #ffd28a; font-size: 12px; user-select: text; }
.lp-acciones { display: flex; gap: 6px; margin-top: 11px; flex-wrap: wrap; }
.lp-bt-sec, .lp-bt-pri { flex: 1 1 auto; padding: 6px 11px; border: 0; border-radius: 8px; font: 500 13px var(--lp-fuente); text-align: center; cursor: pointer; text-decoration: none; transition: background 0.12s ease, transform 0.1s ease; }
.lp-bt-sec { background: rgba(255, 255, 255, 0.1); color: var(--lp-t); } .lp-bt-sec:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.lp-bt-sec.peligro { color: #ff6961; }
.lp-bt-pri { background: var(--lp-ac); color: #1a1205; font-weight: 600; } .lp-bt-pri:hover { background: #ffb340; color: #1a1205; }
.lp-bt-sec:active, .lp-bt-pri:active { transform: scale(0.97); }
.lp-inspector > #lpCampos > .lp-bt-pri { display: block; width: 100%; margin-top: 10px; }
.lp-chip { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10.5px; line-height: 16px; text-align: center; color: #1a1205; display: none; }
.lp-chip.err { display: inline-block; background: #ff453a; color: #fff; } .lp-chip.adv { display: inline-block; background: var(--lp-ac); }
.lp-avisos { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.lp-avisos li { padding: 7px 9px; border-radius: 9px; font-size: 12px; background: rgba(255, 255, 255, 0.05); color: var(--lp-t); user-select: text; }
.lp-avisos li[data-k] { cursor: pointer; } .lp-avisos li[data-k]:hover { filter: brightness(1.2); }
.lp-avisos li.error { background: rgba(255, 69, 58, 0.17); color: #ffb3ae; }
.lp-avisos li.advertencia { background: rgba(255, 176, 32, 0.15); color: #ffd28a; }
.lp-avisos li.ok { background: rgba(48, 209, 88, 0.13); color: #a0eeb5; }
.lp-caja-des { margin-top: 12px; padding: 10px; border-radius: 10px; background: rgba(10, 132, 255, 0.13); }
.lp-caja-des h4 { margin: 0 0 2px; font-size: 11px; font-weight: 600; color: #64d2ff; }
.des-tit { font-size: 13px; font-weight: 600; } .des-txt { margin: 4px 0 7px; font-size: 12px; color: var(--lp-t2); user-select: text; }
.des-obj { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: 12px; }
.des-obj li { padding-left: 19px; position: relative; color: var(--lp-t2); }
.des-obj li::before { content: ""; position: absolute; left: 1px; top: 2px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--lp-t3); }
.des-obj li.ok { color: #a0eeb5; } .des-obj li.ok::before { background: #30d158; border-color: #30d158; }
.des-logrado { margin: 0 0 8px; font-weight: 600; color: #30d158; }

/* tablero inferior */
.lp-dock { left: 216px; right: 292px; bottom: 12px; height: 196px; display: grid; grid-template-columns: 190px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); z-index: 4; overflow: hidden; transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease; }
.lp-condiciones { padding: 13px 14px; border-right: 1px solid var(--lp-sep); display: grid; align-content: center; gap: 8px; }
.lp-condiciones label { display: block; font-size: 12px; font-weight: 400; color: var(--lp-t2); }
.lp-condiciones label > span { display: flex; justify-content: space-between; }
.lp-condiciones b { color: var(--lp-t); font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-tablero { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 9px 14px 11px; }
.lp-tabs { display: inline-flex; align-self: flex-start; gap: 2px; padding: 2px; border-radius: 8px; background: rgba(0, 0, 0, 0.24); flex: none; }
.lp-tabs button { padding: 3px 13px; border: 0; border-radius: 6px; background: transparent; color: var(--lp-t2); font-size: 12px; font-weight: 500; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.lp-tabs button[aria-selected=true] { background: rgba(255, 255, 255, 0.17); color: var(--lp-t); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.lp-pan { flex: 1; min-height: 0; margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(190px, 1fr); gap: 14px; align-items: center; }
.lp-pan[hidden] { display: none; }
.lp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px 8px; align-content: center; }
.lp-kpi small { display: block; font-size: 11px; color: var(--lp-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-kpi b { font-size: 23px; font-weight: 600; letter-spacing: -0.022em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.lp-kpi em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--lp-t2); margin-left: 2px; letter-spacing: 0; }
.lp-kpi.am b { color: #ffb340; } .lp-kpi.az b { color: #64d2ff; } .lp-kpi.ve b { color: #30d158; }
.lp-flujo { width: 100%; height: 100%; max-height: 128px; }
.lp-flujo text { font-family: var(--lp-fuente); text-anchor: middle; }
.fl-ic { font-size: 12px; } .fl-val { font-size: 10px; fill: var(--lp-t2); font-weight: 500; text-anchor: start !important; } .fl-val.cen2 { text-anchor: middle !important; }
.fl-base { fill: none; stroke: rgba(255, 255, 255, 0.11); stroke-width: 1.4; stroke-linecap: round; }
.fl-pulso { fill: none; stroke-linecap: round; stroke-dasharray: 1 11; animation: lp-flujo2 0.8s linear infinite; }
.fl-pulso.inv { animation-direction: reverse; }
@keyframes lp-flujo2 { to { stroke-dashoffset: -12; } }
.lp-pan-curva, .lp-pan-dia { display: flex; flex-direction: column; overflow: hidden; align-items: stretch; gap: 3px; }
.lp-pan-tit { display: flex; gap: 12px; align-items: baseline; font-size: 12px; white-space: nowrap; overflow: hidden; }
.lp-pan-tit b { font-weight: 600; } #lpCurvaLectura { color: var(--lp-t2); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.lp-ley { margin-left: auto; color: var(--lp-t2); font-size: 11px; display: flex; align-items: center; gap: 4px; }
.lp-ley i { width: 12px; height: 2px; border-radius: 2px; margin-left: 7px; } .l-i { background: #64d2ff; } .l-p { background: #ffb020; }
#labGrafico, #lpDiaGraf { width: 100%; height: 0; flex: 1 1 0; min-height: 0; display: block; cursor: crosshair; touch-action: none; }
.lp-dia-ctrl { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.lp-dia-ctrl .lp-txt { margin: 0; width: auto; padding: 3px 6px; font-size: 12px; min-width: 0; }
.lp-dia-ctrl #lpDiaComuna { width: 108px; } .lp-dia-ctrl .lp-bt-sec { flex: none; padding: 3px 9px; font-size: 12px; }
.lp-play { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--lp-ac); color: #1a1205; font-size: 10px; cursor: pointer; }
.lp-play:active { transform: scale(0.94); }
.lp-dia-hora { margin-left: auto; font-size: 11.5px; color: var(--lp-t2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-dia-nota { margin: 0; font-size: 10.5px; color: var(--lp-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-dia-salto { font-style: normal; color: #ff6961; font-weight: 600; }
.lp-dia-nota b { color: var(--lp-t); font-weight: 600; } .lp-dia-nota span { color: var(--lp-t2); } .lp-dia-nota em { font-style: normal; }

/* zoom y paneles */
.lp-zoom { right: 292px; bottom: 216px; display: flex; align-items: center; gap: 1px; padding: 3px; border-radius: 11px; z-index: 3; }
.lp-zoom .lp-bt { height: 26px; min-width: 26px; padding: 0 5px; }
.lp-zoom .lp-sep { height: 16px; margin: 0 3px; }
.lp-zoom-val { min-width: 42px; text-align: center; font-size: 11.5px; color: var(--lp-t2); font-variant-numeric: tabular-nums; }
.sin-dock .lp-zoom { bottom: 12px; }
.sin-inspector .lp-zoom, .sin-inspector .lp-dock { right: 12px; }
.sin-paleta .lp-dock { left: 12px; }
.sin-paleta .lp-paleta { transform: translateX(-112%); opacity: 0; pointer-events: none; }
.sin-inspector .lp-inspector { transform: translateX(112%); opacity: 0; pointer-events: none; }
.sin-dock .lp-dock { transform: translateY(112%); opacity: 0; pointer-events: none; }

/* barra flotante sobre la selección */
.lp-barra-sel { top: 0; left: 0; display: flex; gap: 1px; padding: 3px; border-radius: 11px; z-index: 5; will-change: transform; }
.lp-barra-sel[hidden] { display: none; }
.lp-barra-sel button { width: 32px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--lp-t); cursor: pointer; transition: background 0.1s ease, transform 0.1s ease; }
.lp-barra-sel button:hover { background: var(--lp-fill); } .lp-barra-sel button:active { transform: scale(0.92); }
.lp-barra-sel .peligro { color: #ff6961; }

/* menús */
.lp-menu { z-index: 30; min-width: 208px; max-height: calc(100% - 20px); overflow-y: auto; padding: 5px; border-radius: 11px; background: rgba(44, 46, 51, 0.86); }
.lp-menu[hidden] { display: none; }
.lp-menu.abierto { animation: lp-menu 0.14s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes lp-menu { from { opacity: 0; transform: scale(0.95); } }
.lp-menu button { display: flex; justify-content: space-between; gap: 22px; width: 100%; padding: 5px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--lp-t); font-size: 13px; text-align: left; cursor: default; }
.lp-menu button:hover:not([disabled]) { background: #0a84ff; color: #fff; }
.lp-menu button[disabled] { color: var(--lp-t3); }
.lp-menu .peligro { color: #ff6961; } .lp-menu .peligro:hover { background: #ff453a !important; color: #fff; }
.lp-menu hr { margin: 4px 8px; border: 0; border-top: 1px solid var(--lp-sep); }
.lp-menu kbd, .lp-tabla kbd { font: 12px var(--lp-fuente); color: var(--lp-t3); }
.lp-menu button:hover kbd { color: rgba(255, 255, 255, 0.75); }

/* diálogos */
.lp-dialogo { width: min(460px, calc(100% - 28px)); max-height: 82vh; padding: 0; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; background: rgba(42, 44, 49, 0.94); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); color: var(--lp-t); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.8); font-family: var(--lp-fuente); font-size: 13px; }
.lp-dialogo::backdrop { background: rgba(0, 0, 0, 0.45); }
.lp-dialogo[open] { animation: lp-dlg 0.2s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes lp-dlg { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.lp-dlg-cab { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--lp-sep); }
.lp-dlg-cab h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--lp-t); }
.lp-dlg-x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--lp-t); font-size: 15px; line-height: 1; cursor: pointer; }
.lp-dlg-cuerpo { padding: 14px 15px 15px; }
.lp-fila { display: flex; gap: 7px; } .lp-fila .lp-txt { margin: 0; } .lp-fila .lp-bt-pri { flex: none; }
.lp-proys { list-style: none; margin: 12px 0 0; padding: 0; max-height: 280px; overflow-y: auto; }
.lp-proys li { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--lp-sep); padding: 2px 0; }
.lp-proy { flex: 1; min-width: 0; padding: 6px 7px; border: 0; border-radius: 7px; background: transparent; color: var(--lp-t); text-align: left; cursor: pointer; font-size: 13px; }
.lp-proy:hover { background: var(--lp-fill); } .lp-proy b { display: block; font-weight: 500; } .lp-proy small { color: var(--lp-t2); font-size: 11.5px; }
.lp-bt-ico { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--lp-t2); font-size: 14px; cursor: pointer; } .lp-bt-ico:hover { background: var(--lp-fill); color: var(--lp-t); } .lp-bt-ico.peligro:hover { color: #ff6961; }
.lp-vacio { color: var(--lp-t2); padding: 12px 7px !important; }
.lp-archivo { display: inline-block; font-weight: 500; }
.lp-tabla { width: 100%; border-collapse: collapse; font-size: 13px; } .lp-tabla th { text-align: left; font-size: 11px; font-weight: 600; color: var(--lp-t3); padding: 3px 0; } .lp-tabla td { padding: 6px 0; border-top: 1px solid var(--lp-sep); }
.lp-tabla td:last-child, .lp-tabla th:last-child { text-align: right; }
.lp-dialogo .lp-ayuda { margin: 11px 0 0; }

/* guía, avisos */
.lp-guia { width: 280px; padding: 14px; z-index: 20; background: rgba(52, 54, 60, 0.9); user-select: text; }
.lp-guia[hidden] { display: none; }
.lp-guia:not(.centro) { pointer-events: none; } .lp-guia button, .lp-guia a { pointer-events: auto; }
.lp-guia.centro { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); text-align: center; }
.lp-guia small { font-size: 11px; color: var(--lp-ac); font-weight: 600; } .lp-guia h4 { margin: 2px 0 4px; font-size: 15px; font-weight: 600; } .lp-guia p { margin: 0; font-size: 13px; color: var(--lp-t2); }
.lp-foco { position: relative; z-index: 2; outline: 2px solid var(--lp-ac) !important; outline-offset: 2px; border-radius: 8px; animation: lp-foco 1.4s ease-in-out infinite; }
@keyframes lp-foco { 50% { outline-color: rgba(255, 176, 32, 0.35); } }
.lp-toast { position: absolute; left: 50%; bottom: 24px; transform: translate(-50%, 10px); padding: 8px 15px; border-radius: 999px; background: rgba(245, 245, 247, 0.95); color: #1c1c1e; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1); z-index: 40; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.lp-toast.ver { opacity: 1; transform: translate(-50%, 0); } .lp-toast[hidden] { display: none; }
.lp-velo { display: none; }

/* pantallas medianas */
@media (max-width: 1180px) {
  .lp-ancho { display: none; } .lp-angosto { display: inline-grid; }
  .lp-paleta { width: 172px; } .lp-inspector { width: 240px; }
  .lp-dock { left: 194px; right: 262px; grid-template-columns: 150px minmax(0, 1fr); }
  .lp-zoom { right: 262px; } .lp-pan { grid-template-columns: 1fr; } .lp-flujo { display: none; }
  .lp-dia-ctrl .lp-bt-sec, .lp-dia-hora { display: none; }
}

/* celular: la mesa ocupa todo; paneles como hojas que suben desde abajo */
@media (max-width: 760px) {
  .lp-barra { left: 8px; right: 8px; top: 8px; width: auto; margin: 0; max-width: none; padding: 0 5px 0 9px; }
  .lp-nombre { width: auto; flex: 1 1 40px; min-width: 40px; margin-left: 4px; } .lp-barra .lp-sep { display: none; }
  .lp-logo img { height: 20px; }
  .lp-acento { padding: 0 9px; font-size: 12px; }
  #lpDeshacer, #lpRehacer { display: inline-grid; }
  .lp-paleta, .lp-inspector, .lp-dock { position: absolute; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 68%; height: auto; border-radius: 18px 18px 0 0; border-width: 1px 0 0; transform: translateY(105%); opacity: 1; pointer-events: none; z-index: 12; background: rgba(38, 40, 45, 0.93); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .ver-paleta .lp-paleta, .ver-inspector .lp-inspector, .ver-dock .lp-dock { transform: none; pointer-events: auto; }
  .sin-paleta .lp-paleta, .sin-inspector .lp-inspector, .sin-dock .lp-dock { transform: translateY(105%); }
  .lp-dock { display: flex; flex-direction: column; overflow-y: auto; }
  .lp-condiciones { border-right: 0; border-bottom: 1px solid var(--lp-sep); }
  .lp-tablero { min-height: 250px; }
  .lp-pan { display: block; } .lp-pan[hidden] { display: none; } .lp-pan-curva, .lp-pan-dia { display: flex; }
  .lp-kpis { grid-template-columns: repeat(2, 1fr); }
  .lp-flujo { display: block; max-height: 110px; margin-top: 8px; }
  .lp-paleta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
  .lp-paleta h4 { grid-column: 1 / -1; } .lp-paleta .lp-ayuda { grid-column: 1 / -1; }
  .lp-paleta button { padding: 7px; }
  .lp-zoom { left: 50%; right: auto; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 8; }
  .sin-dock .lp-zoom { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .lp-zoom .lp-bt { height: 36px; min-width: 36px; font-size: 15px; } .lp-zoom-val, #lpMenos, #lpMas2 { display: none; }
  .lp-velo { display: block; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.38); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 11; }
  .ver-paleta .lp-velo, .ver-inspector .lp-velo, .ver-dock .lp-velo { opacity: 1; pointer-events: auto; }
  .lp-barra-sel button { width: 40px; height: 38px; }
  .lp-guia { width: calc(100% - 24px); left: 12px !important; top: auto !important; bottom: 66px; z-index: 13; }
  .lp-guia.centro { top: 50% !important; bottom: auto; left: 50% !important; }
  .lp-dia-ctrl { flex-wrap: wrap; } .lp-dia-ctrl #lpDiaComuna { flex: 1; } .lp-dia-nota { white-space: normal; }
  #labGrafico, #lpDiaGraf { min-height: 130px; height: 130px; flex: none; }
  .lp-toast { bottom: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-paleta, .lp-inspector, .lp-dock, .lp-menu, .lp-dialogo, .lp-toast { transition: opacity 0.15s ease; animation: none !important; }
  .fl-pulso, .cable-flujo, .lp-foco { animation: none; }
}

/* logo «heliora» con el sol (igual que el sitio) y guardado en la nube */
.lp-marca { display: inline-flex; align-items: center; font: 600 18px Inter, system-ui, sans-serif; letter-spacing: -0.045em; color: #f5f5f7; text-decoration: none; padding: 0 4px; }
.lp-marca svg { width: 0.95em; height: 0.95em; margin: 0 -0.08em; transform: translateY(0.05em); }
.lp-nube { display: grid; gap: 6px; margin: 12px 0; padding: 14px; border-radius: 14px; background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.25); }
.lp-nube b { font-size: 14px; } .lp-nube span { color: var(--lp-t2); font-size: 12.5px; } .lp-nube .lp-bt-pri { justify-self: start; margin-top: 4px; }
.lp-nube-tit { margin: 14px 0 6px; font-size: 11.5px; font-weight: 600; color: var(--lp-t3); text-transform: uppercase; letter-spacing: 0.05em; }

/* la página del laboratorio no se desplaza: la mesa ocupa la ventana */
html:has(body.lab-pro), body.lab-pro { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
