@charset "UTF-8";
:root{--ink:#202720;--muted:#737b73;--line:#e2e7e0;--paper:#f5f7f3;--lime:#d4ed59;--olive:#66702c;--green:#26764a;--amber:#936421;--radius:13px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #819b28;outline-offset:3px}button,input,select{border-radius:8px}input,select{font-size:.875rem}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.icon{display:inline-flex;width:20px;height:20px;flex-shrink:0;align-items:center;justify-content:center}.icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:16px;z-index:9999;background:var(--lime);padding:14px}.skip-link:focus{top:12px}
.topbar{height:82px;background:#1c231d;color:white;padding:0 4%;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:22px;flex-shrink:0}.brand img{width:112px;height:58px;object-fit:contain;filter:brightness(0) saturate(100%) invert(89%) sepia(52%) saturate(643%) hue-rotate(14deg) brightness(101%) contrast(87%)}.brand-divider{width:1px;height:29px;background:#ffffff26}.brand>span:last-child{font-size:.68rem;letter-spacing:.16em;line-height:1.7;color:#a6afa5}.brand strong{font-size:.72rem;font-weight:600;color:#e8ece4;letter-spacing:.12em}.topbar-center{display:flex;gap:9px;align-items:center;font-size:.875rem;color:#c7cec2}.topbar-center .icon{color:var(--lime);width:18px}.header-actions{display:flex;gap:24px;align-items:center}.top-link{display:flex;align-items:center;gap:9px;font-size:.875rem;color:#d9dfd5}.top-link .icon{width:16px}.account-button{width:36px;height:36px;border:1px solid #ffffff26;background:#ffffff0b;border-radius:50%;display:grid;place-items:center;color:#e8ecdf}.workspace{max-width:1550px;margin:auto;padding:36px 4% 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.eyebrow{font-size:.6875rem;font-weight:700;letter-spacing:.14em;color:#78836f;margin-bottom:10px}h1{font-size:clamp(1.6rem,2.5vw,2.2rem);letter-spacing:-.045em;line-height:1.22;font-weight:650}.title-dot{color:#839933}.page-intro{font-size:.9375rem;color:var(--muted);margin-top:8px;line-height:1.5}.heading-actions{display:flex;align-items:center;gap:18px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;min-height:42px;padding:10px 16px;font-size:.875rem;line-height:1.4;font-weight:600;transition:background .15s,box-shadow .15s}.button-primary{background:var(--lime);color:#252b16;border-color:#c8e047}.button-primary:hover{background:#c7e348;box-shadow:0 3px 9px #a7ba3424}.button-outline{background:white;border-color:#dce2d7}.button-outline:hover{background:#f3f6ec}.connection-badge{display:flex;align-items:center;gap:7px;font-size:.8125rem;color:#706743;white-space:nowrap}.status-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#a39869;flex-shrink:0}.connection-badge.live{color:var(--green)}.live .status-dot{background:#409565;box-shadow:0 0 0 3px #40956512}.notice{display:flex;align-items:center;gap:11px;background:#eef2df;border:1px solid #e3e8d3;border-radius:9px;padding:12px 16px;color:#596142;font-size:.875rem;line-height:1.5;margin-bottom:22px}.notice>.icon{width:17px}.notice p{flex:1}.notice strong{font-weight:600;color:#424b31}.text-button{border:0;background:transparent;font-size:.8125rem;font-weight:650;white-space:nowrap;padding:5px 0 5px 10px}.text-button span{margin-left:5px}.alert{padding:14px 16px;margin:0 0 18px;border:1px solid #ecd1c2;border-radius:9px;background:#fff3ec;color:#8b3e20;font-size:.875rem;line-height:1.5}
.stats{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:26px;box-shadow:0 2px 3px #26311a02}.stat{padding:21px 24px;display:flex;align-items:flex-start;gap:15px;position:relative}.stat+.stat:before{content:"";position:absolute;left:0;top:24px;bottom:24px;width:1px;background:var(--line)}.stat-icon{width:40px;height:40px;border-radius:10px;background:#f1f3ed;display:grid;place-items:center;color:#657345;flex-shrink:0}.stat-icon.green{background:#edf5ee;color:#348159}.stat-icon.amber{background:#f8f2e7;color:#a7894d}.stat p{font-size:.8125rem;color:#697362;line-height:1.5;margin-bottom:5px}.stat strong{font-size:1.85rem;line-height:1.1;font-weight:620;letter-spacing:-.04em}.stat-foot{display:block;color:#92988e;font-size:.6875rem;line-height:1.4;margin-top:5px}.monitor-window{border:1px solid #d9e0d4;background:white;border-radius:var(--radius);overflow:hidden;box-shadow:0 4px 13px #2a352108;margin-bottom:31px;position:relative}.window-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:60px;padding:0 18px;gap:12px;border-bottom:1px solid var(--line)}.view-tabs{display:flex;align-self:stretch;gap:23px}.view-tab{position:relative;display:flex;align-items:center;gap:8px;font-size:.875rem;padding:18px 0;border:0;background:transparent;color:#798172;border-radius:0;font-weight:500}.view-tab.active{color:#38462a;font-weight:650}.view-tab.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;background:#8d9f3f;border-radius:3px 3px 0 0}.view-tab .icon{width:17px}.window-actions{display:flex;align-items:center;gap:7px}.read-time{font-size:.75rem;color:#858d7e;margin-right:12px}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #e3e7de;background:white;width:33px;height:33px;color:#66725f;border-radius:7px}.icon-button .icon{width:16px;height:16px}.icon-button:hover{background:#f1f4e9}.map-panel{position:relative;height:390px;isolation:isolate;background:#e8eddf}.map-panel #map{width:100%;height:100%;background:#e8eddf;z-index:1}.leaflet-container{font-family:inherit;font-size:.875rem}.leaflet-tile-pane{filter:saturate(.6) contrast(.99)}.map-label{position:absolute;z-index:450;top:19px;left:20px;display:flex;align-items:center;gap:8px;background:white;padding:10px 13px;border-radius:7px;box-shadow:0 2px 6px #1c28121a;font-size:.6875rem;font-weight:650;letter-spacing:.06em;color:#5d6852}.map-label .status-dot{width:6px;height:6px;background:#99a256}.fit-button{position:absolute;z-index:450;top:19px;right:20px;background:white;border:1px solid #dfe3db;padding:9px 12px;display:flex;align-items:center;gap:7px;font-size:.8125rem;box-shadow:0 2px 5px #00000008;color:#4d5944}.fit-button .icon{width:16px;height:16px}.leaflet-control-zoom{border:1px solid #d7ddd1!important;box-shadow:0 2px 5px #1c281215!important;margin-bottom:34px!important;margin-right:20px!important}.leaflet-control-zoom a{font-size:21px!important;font-weight:400!important;color:#5d6852!important;width:33px!important;height:33px!important;line-height:32px!important}.leaflet-control-attribution{font-size:.625rem!important;background:#ffffffde!important}.leaflet-control-attribution a{color:#596847!important}.guard-icon{background:none;border:0}.guard-pin{display:flex;align-items:center;justify-content:center;width:37px;height:37px;background:#78893d;border:3px solid #fff;border-radius:50%;box-shadow:0 3px 10px #24341d32;position:relative;color:#fff;transition:background .15s}.guard-pin:after{content:"";position:absolute;inset:-7px;border:1px solid #7990413d;border-radius:50%;background:#849a3320;z-index:-1}.guard-pin svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.guard-pin.offline{background:#9b8358}.guard-pin.unknown{background:#838b82}.guard-pin.selected{background:#20291d;color:#d4ed59;border-color:#d4ed59}.guard-pin.selected:after{background:#d4ed5940;border-color:#c1d44a77;inset:-10px}.marker-name{background:#ffffffed;border:1px solid #e0e5d9;border-radius:4px;box-shadow:0 2px 5px #15280c0a;color:#465239;font-size:.6875rem;font-weight:650;padding:3px 6px}.marker-name:before{display:none}.selected-card{position:absolute;z-index:450;bottom:20px;left:20px;width:286px;padding:17px;background:white;border:1px solid #e0e5da;border-radius:10px;box-shadow:0 4px 18px #26311a16}.selected-top{display:flex;align-items:center;gap:11px;margin-bottom:12px}.avatar{width:39px;height:39px;border-radius:10px;background:#edf1dd;color:#72823c;font-size:.6875rem;font-weight:700;display:grid;place-items:center;flex-shrink:0}.selected-top strong{font-size:.875rem;display:block}.selected-top small{display:block;font-size:.6875rem;color:#879078;margin-top:3px}.selected-top>.status-dot{margin-left:auto}.selected-address{font-size:.8125rem;color:#56614d;line-height:1.5;border-top:1px solid #eef0e9;padding-top:10px;display:flex;gap:7px;align-items:flex-start}.selected-address .icon{width:14px;height:17px}.selected-time{display:block;font-size:.6875rem;color:#8c9486;margin:7px 0 0 21px}.window-footer{padding:12px 19px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border-top:1px solid var(--line)}.legend{display:flex;gap:20px;font-size:.6875rem;color:#7b8571}.legend span{display:flex;align-items:center;gap:6px}.legend-dot{display:inline-block;width:6px;height:6px;border-radius:50%}.online{background:#67853d}.offline{background:#ac9364}.unknown{background:#9aa194}.source-label{display:flex;gap:6px;align-items:center;font-size:.6875rem;color:#8a9282}.source-label .icon{width:12px;height:12px}.traccar-panel{background:#f6f8f3}.frame-notice{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 18px;font-size:.75rem;color:#6d7565;line-height:1.5;border-bottom:1px solid var(--line)}.frame-notice a{display:flex;align-items:center;gap:6px;white-space:nowrap;font-weight:600;color:#586733}.frame-notice .icon{width:13px}.traccar-launch{min-height:620px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:46px 24px;background:linear-gradient(180deg,#fbfcf9,#f4f7ef)}.traccar-launch-icon{width:62px;height:62px;border-radius:18px;background:#eaf2c8;color:#718238;display:grid;place-items:center;margin-bottom:17px}.traccar-launch-icon .icon{width:30px;height:30px}.traccar-launch h3{font-size:1.45rem;letter-spacing:-.03em;margin:4px 0 10px}.traccar-launch>p:not(.eyebrow){max-width:600px;color:#6d7565;line-height:1.65;margin-bottom:22px}.traccar-launch-button{min-width:240px;justify-content:center}.traccar-launch .text-button{margin-top:15px}.traccar-launch small{display:block;max-width:540px;color:#8b9384;line-height:1.5;margin-top:15px}.map-empty{position:absolute;z-index:449;top:50%;left:50%;transform:translate(-50%,-50%);width:min(90%,350px);padding:24px;border:1px solid #dbe3d1;border-radius:12px;background:#fffffff5;text-align:center;box-shadow:0 8px 30px #182a1410}.map-empty>.icon{width:26px;height:26px;color:#899950;margin-bottom:10px}.map-empty strong{display:block;font-size:.875rem}.map-empty p{font-size:.8125rem;color:#79806f;line-height:1.5;margin-top:7px}.map-warning{position:absolute;z-index:460;bottom:4px;left:50%;transform:translateX(-50%);background:#fff4df;border:1px solid #ddc995;border-radius:6px;padding:6px 10px;font-size:.75rem;max-width:95%}.monitor-window:fullscreen,.monitor-window.expanded{height:100vh;width:100vw;margin:0;border:0;border-radius:0;background:white;display:flex;flex-direction:column}.monitor-window.expanded{position:fixed;inset:0;z-index:900}.monitor-window:fullscreen .map-panel,.monitor-window.expanded .map-panel{flex:1;height:auto}.monitor-window:fullscreen .traccar-panel,.monitor-window.expanded .traccar-panel{display:flex;flex:1;flex-direction:column}.monitor-window:fullscreen .traccar-launch,.monitor-window.expanded .traccar-launch{flex:1;min-height:0}.monitor-window:fullscreen .window-footer,.monitor-window.expanded .window-footer{margin-top:auto}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:19px}.section-title{display:flex;align-items:center;gap:10px}h2{font-size:1.2rem;letter-spacing:-.025em;font-weight:620;line-height:1.4}.count-badge{font-size:.6875rem;font-weight:650;background:#e8eddd;border:1px solid #dce4cd;border-radius:5px;color:#6a7852;padding:2px 6px;min-width:24px;text-align:center}.section-heading p{font-size:.8125rem;color:#818978;margin-top:6px;line-height:1.4}.list-controls{display:flex;gap:9px;flex-shrink:0}.search-field{display:flex;align-items:center;gap:8px;background:white;border:1px solid #dfe4d9;border-radius:8px;padding:0 10px;width:245px;min-height:39px}.search-field .icon{width:16px;height:16px;color:#86917c}.search-field input{border:0;padding:9px 0;background:transparent;outline:0!important;width:100%;font-size:.75rem;color:var(--ink)}.search-field:focus-within{outline:2px solid #899b48;outline-offset:1px}input::placeholder{color:#929a88}.list-controls select{padding:9px 25px 9px 11px;border:1px solid #dfe4d9;background:white;color:#647055;font-size:.75rem;max-width:180px}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:white}table{width:100%;border-collapse:collapse;text-align:left;font-size:.8125rem}th{background:#fafbf7;padding:13px 18px;color:#849078;font-size:.6875rem;font-weight:550;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:16px 18px;border-bottom:1px solid #edf0e8;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr{transition:background .15s}tbody tr:hover{background:#fbfcf7}tbody tr.selected{background:#f4f7e9}tbody tr.selected td:first-child{box-shadow:inset 3px 0 #99ad51}.guard-name{display:flex;gap:11px;align-items:center;min-width:143px}.guard-name .avatar{width:34px;height:34px;border-radius:8px;background:#eff2e7;font-size:.625rem}.guard-name strong{display:block;font-size:.8125rem;font-weight:600}.guard-name small{display:block;font-size:.625rem;margin-top:4px;color:#909984;letter-spacing:.025em}.user-names{color:#68715e;font-size:.75rem;max-width:170px;line-height:1.5;overflow-wrap:anywhere}.address-line{display:block;color:#59664d;font-weight:500;line-height:1.5;font-size:.8125rem;max-width:290px;min-width:155px}.coordinate-line{display:block;color:#949d89;font-size:.6875rem;margin-top:4px;font-variant-numeric:tabular-nums}.status-pill{display:inline-flex;align-items:center;gap:6px;font-size:.6875rem;white-space:nowrap;border-radius:5px;padding:5px 8px;background:#eef4e8;color:#5b793b}.status-pill.offline{background:#f7f2e7;color:#937846}.status-pill.unknown{background:#f0f2ed;color:#7e8974}.status-pill .status-dot{width:5px;height:5px;background:currentColor}.report-time{color:#616e54;font-size:.75rem;white-space:nowrap}.report-date{display:block;color:#929b87;font-size:.625rem;margin-top:4px}.row-map-button{display:flex;align-items:center;gap:5px;background:transparent;border:1px solid #dfe6d4;white-space:nowrap;padding:7px 9px;font-size:.6875rem;font-weight:550;color:#667b42}.row-map-button .icon{width:13px;height:13px}.row-map-button:hover{background:#eaf1db;border-color:#b6c88f}.row-map-button:disabled{cursor:default}.table-footer{display:flex;justify-content:space-between;gap:20px;padding:13px 3px;color:#8a947f;font-size:.6875rem}.table-footer>span:last-child{display:flex;gap:5px;align-items:center}.table-footer .icon{width:12px;height:12px}.list-empty{padding:40px 20px;text-align:center}.list-empty>.icon{width:27px;height:27px;color:#869469;margin-bottom:12px}.list-empty h3{font-size:1rem}.list-empty p{font-size:.875rem;color:#818a75;margin:8px 0 18px}.permission-note{font-size:.75rem;line-height:1.5;color:#849078;padding:8px 0}.page-footer{border-top:1px solid var(--line);margin-top:35px;padding:21px 0 25px;display:flex;justify-content:space-between;gap:20px;color:#98a08e;font-size:.6875rem}.page-footer strong{color:#5c694c;font-size:.8125rem;letter-spacing:.06em}.page-footer>span:last-child{display:flex;gap:9px}
dialog{border:1px solid #dbe3d0;border-radius:18px;width:450px;max-width:calc(100% - 30px);max-height:calc(100dvh - 40px);padding:31px;color:var(--ink);background:#fff;box-shadow:0 25px 80px #0d230d30}dialog::backdrop{background:#15201580;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:17px;top:17px;border:0}.dialog-symbol{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:var(--lime);color:#455622;margin-bottom:21px}.dialog-symbol .icon{width:26px;height:26px}dialog .eyebrow{font-size:.625rem;margin-bottom:7px}dialog h2{font-size:1.45rem;margin-bottom:10px}#login-description{font-size:.875rem;line-height:1.65;color:#7a8370}.server-chip{font-size:.8125rem;color:#687650;display:flex;align-items:center;gap:8px;background:#f4f6ef;border:1px solid #e7ecdd;border-radius:7px;padding:10px 12px;margin:18px 0 21px}.server-chip .icon{width:14px;height:14px}#login-form label{display:block;font-size:.8125rem;font-weight:600;margin:16px 0 7px}#login-form input{width:100%;border:1px solid #dbe2d3;padding:11px 12px;background:white;color:var(--ink);height:43px}.password-field{position:relative}.password-field input{padding-right:43px!important}.password-field button{position:absolute;right:4px;top:4px;bottom:4px;width:35px;background:transparent;border:0;color:#89967a;display:grid;place-items:center}.password-field .icon{width:17px}details{font-size:.75rem;color:#808c70;margin:16px 0;line-height:1.5}summary{cursor:pointer}details input{letter-spacing:.2em}.login-submit{width:100%;margin:3px 0 15px;min-height:45px}.privacy-note{font-size:.6875rem;line-height:1.6;color:#8c9680;display:flex;align-items:flex-start;gap:7px}.privacy-note .icon{width:13px;height:15px;margin-top:2px}.setup-link{display:block;text-align:center;color:#7e8a69;font-size:.6875rem;margin-top:18px}.form-error{font-size:.8125rem;line-height:1.5;color:#98482c;background:#fff3ed;border:1px solid #f1d7c8;border-radius:7px;padding:10px;margin:12px 0}.toast{position:fixed;z-index:10000;bottom:22px;left:50%;transform:translateX(-50%);border-radius:9px;padding:13px 20px;background:#28321f;color:#eef4e2;box-shadow:0 6px 30px #15240d30;font-size:.875rem;max-width:90vw}.noscript{padding:30px;background:#fff4d7;position:fixed;bottom:0;left:0;right:0;z-index:10000}.spin .icon{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* Compact metadata is secondary; operational labels remain readable. */
.eyebrow,.brand>span:last-child,.brand strong,.stat-foot,.map-label,.legend,.source-label,.marker-name,.selected-time,.selected-top small,.guard-name small,.guard-name .avatar,.status-pill,.report-date,.row-map-button,.table-footer,.page-footer,.privacy-note,.setup-link,dialog .eyebrow{font-size:max(.75rem,12px)}.stat p,.view-tab,.search-field input,.list-controls select,table,.user-names,.report-time,.address-line,.guard-name strong,.selected-address,.frame-notice,.section-heading p{font-size:.875rem}th{font-size:.75rem}.coordinate-line{font-size:.75rem}.leaflet-control-attribution{font-size:12px!important}
@media(min-width:1600px){.map-panel{height:450px}.workspace{padding-top:40px}}@media(max-width:1190px){.topbar-center{display:none}.workspace{padding-left:3%;padding-right:3%}.stat{padding:20px 17px;gap:11px}.stat-foot{font-size:.75rem}.section-heading{align-items:flex-start;flex-direction:column;gap:15px}.list-controls{width:100%;justify-content:space-between}.search-field{width:min(380px,68%)}.heading-actions{gap:12px}.page-intro{font-size:.875rem}.connection-badge{display:none}.map-panel{height:375px}}
@media(max-width:760px){.topbar{height:72px;padding:0 5%;gap:10px}.brand{gap:13px}.brand img{width:85px;height:45px}.brand>span:last-child,.brand strong{font-size:.625rem}.brand-divider{height:25px}.header-actions{gap:13px}.top-link{font-size:.75rem}.top-link .icon{width:13px}.workspace{padding:26px 4.5% 0}.page-heading{align-items:flex-start;gap:12px}.page-intro{max-width:260px;line-height:1.5}h1{font-size:1.65rem}.heading-actions .button{font-size:.75rem;padding:10px;min-height:39px}.heading-actions .icon{display:none}.eyebrow{margin-bottom:8px}.notice{padding:11px 13px;font-size:.8125rem;align-items:flex-start}.notice>.icon{margin-top:3px}.notice>.text-button{display:none}.stats{grid-template-columns:repeat(2,1fr);margin-bottom:22px}.stat{padding:17px 18px;gap:12px}.stat:nth-child(3),.stat:nth-child(4){border-top:1px solid var(--line)}.stat:nth-child(3):before{display:none}.stat+.stat:before{top:18px;bottom:18px}.stat p{font-size:.8125rem}.stat strong{font-size:1.5rem}.stat-icon{width:34px;height:34px}.stat-icon .icon{width:18px;height:18px}.stat-foot{font-size:.75rem}.window-toolbar{padding:0 12px;gap:8px;flex-wrap:wrap;min-height:56px}.view-tabs{gap:17px}.view-tab{font-size:.8125rem;padding:16px 0}.view-tab .icon{width:16px}.read-time{display:none}.window-actions{gap:5px}.icon-button{width:30px;height:30px}.map-panel{height:395px}.map-label{left:13px;top:13px;padding:9px 11px;font-size:.625rem}.fit-button{right:13px;top:13px;font-size:.75rem;padding:8px}.selected-card{left:13px;bottom:27px;width:235px;padding:13px}.selected-address{font-size:.8125rem}.selected-time{font-size:.75rem;margin-top:4px}.window-footer{padding:11px 13px;gap:7px}.legend{gap:12px;font-size:.625rem}.source-label{font-size:.625rem}.source-label>.icon{display:none}.section-heading{margin-bottom:15px}.section-heading h2{font-size:1.05rem}.section-heading p{font-size:.8125rem;max-width:400px}.search-field{width:60%;padding:0 9px}.search-field input,.list-controls select{font-size:.8125rem}.list-controls select{max-width:40%;padding:8px}.locations table{min-width:0}.locations thead{display:none}.locations tbody{display:grid;grid-template-columns:1fr}.locations tr{display:grid;grid-template-columns:1fr auto;padding:16px;gap:11px 10px;border-bottom:1px solid #e8eddc}.locations tr:last-child{border-bottom:0}.locations td{border:0;padding:0}.locations td:nth-child(1){grid-column:1;grid-row:1}.locations td:nth-child(2){grid-column:1;grid-row:2}.locations td:nth-child(2):before{content:"Usuario: ";font-size:.75rem;color:#8b947f}.locations td:nth-child(2) .user-names{display:inline;font-size:.75rem;max-width:100%}.locations td:nth-child(3){grid-column:1 / 3;grid-row:3;padding:10px 0;border-top:1px solid #e5ebd9}.locations td:nth-child(4){grid-column:2;grid-row:1;align-self:center}.locations td:nth-child(5){grid-column:1;grid-row:4}.locations td:nth-child(6){grid-column:2;grid-row:4;align-self:center}.locations tbody tr.selected td:first-child{box-shadow:none}.locations tbody tr.selected{box-shadow:inset 3px 0 #99ad51}.address-line{font-size:.875rem;max-width:100%}.coordinate-line{font-size:.75rem}.guard-name strong{font-size:.875rem}.guard-name small{font-size:.75rem}.guard-name .avatar{width:38px;height:38px;font-size:.75rem}.status-pill,.row-map-button{font-size:.75rem}.report-time{font-size:.8125rem}.report-date{display:inline;font-size:.75rem;margin-left:8px}.table-footer{font-size:.75rem;line-height:1.4;gap:10px}.table-footer>span:last-child{align-items:flex-start;max-width:47%}.table-footer .icon{flex-shrink:0;margin-top:2px}.frame-notice{font-size:.75rem;padding:10px;align-items:flex-start}.traccar-launch{min-height:480px;padding:34px 18px}.page-footer{margin-top:22px;font-size:.75rem;line-height:1.5}.page-footer>span:last-child{max-width:48%;text-align:right}.page-footer>span:last-child span{display:none}.monitor-window{margin-bottom:25px}.map-warning{width:90%;font-size:.75rem;bottom:0}.source-label{max-width:125px;line-height:1.3;text-align:right}.legend{flex-wrap:wrap;row-gap:5px}}
@media(max-width:430px){.top-link{font-size:0}.top-link .icon{width:18px;height:18px}.header-actions{gap:12px}.page-heading{flex-direction:column;gap:16px}.heading-actions{width:100%;justify-content:space-between}.connection-badge{display:flex}.heading-actions .button{font-size:.8125rem;padding:9px 14px}.page-intro{max-width:100%}.stat{padding:16px 12px;gap:9px}.stat-icon{width:30px;height:30px}.stat-foot{font-size:.75rem}.view-tabs{gap:13px}.view-tab{font-size:.75rem}.view-tab .icon{display:none}.window-toolbar{gap:5px;padding:0 10px}.window-actions{gap:5px}.map-panel{height:405px}.fit-button{font-size:.75rem}.map-label{font-size:.625rem;max-width:185px}.map-label .status-dot{display:none}.selected-card{width:225px}.legend{gap:9px}.legend span{font-size:.625rem}.source-label{font-size:.625rem}.list-controls{flex-wrap:wrap}.search-field{width:100%}.list-controls select{max-width:100%;width:100%}.section-title{align-items:flex-start}.section-heading h2{font-size:1.05rem}.page-footer{font-size:.625rem}.page-footer>span:last-child{max-width:43%}dialog{padding:25px}dialog h2{font-size:1.3rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.export-button{font-size:.8125rem;min-height:39px;padding:8px 12px;color:#57713b;background:#f8fbef;border-color:#d7e1c7}.export-button .icon{width:16px;height:16px}#history-description{font-size:.875rem;color:#77836b;line-height:1.6}#history-form label{display:block;font-size:.875rem;font-weight:550;margin:18px 0 7px}#history-form input,#history-form select{width:100%;padding:11px 12px;border:1px solid #dbe2d3;color:#35432b;background:white;font-size:.875rem;min-height:44px}.history-hint{font-size:.75rem;color:#859477;line-height:1.5;margin:14px 0 16px}#history-submit{margin:0 0 14px}.list-controls{flex-wrap:wrap;justify-content:flex-end}.section-heading{align-items:flex-start}.section-heading>div:first-child{min-width:260px}.search-field{width:220px}@media(max-width:1190px){.list-controls{justify-content:flex-start}.search-field{flex:1;min-width:210px}}@media(max-width:760px){.list-controls .export-button{width:100%;justify-content:center}.search-field{width:60%;min-width:0}.list-controls{justify-content:space-between}}@media(max-width:430px){.search-field{width:100%;flex:auto}}

.report-age{display:block;font-size:.75rem;color:#6f815b;margin-top:5px}.report-age.stale{color:#a26b29;font-weight:600}.accuracy-line{display:block;margin-top:4px;color:#7b866e}.frame-notice .text-button{font-size:.75rem;padding:0}.guard-name .avatar .icon{width:17px;height:17px}

/* v2.3 · dirección enriquecida */
.selected-address>span{min-width:0}.selected-street{display:block;color:#35412f;font-weight:700;line-height:1.35}.selected-full-address{display:block;margin-top:3px;color:#66715d;line-height:1.4}.selected-geocode-source{display:block;margin-top:5px;color:#929a89;font-size:.625rem;line-height:1.35}.selected-address .selected-street:first-child{word-break:break-word}

.top-link-button{border:0;background:transparent;padding:0;cursor:pointer}
.selected-card{width:min(390px,calc(100% - 40px))}.selected-full-address{max-width:330px}
@media(max-width:760px){.traccar-panel{height:560px}.traccar-embed-toolbar{align-items:flex-start}.traccar-embed-toolbar .button{min-height:34px;padding:7px 9px;font-size:.75rem}.selected-card{width:min(330px,calc(100% - 26px))}}

/* v3.1 · geocercas, recorridos y entorno */
.map-tool-button{min-height:34px;padding:7px 10px;font-size:.75rem;white-space:nowrap}.map-tool-button .icon{width:15px;height:15px}.route-summary-card{position:absolute;right:18px;bottom:26px;z-index:520;width:min(360px,calc(100% - 36px));background:#fffffff2;border:1px solid #dfe6d6;border-radius:10px;box-shadow:0 8px 30px #24351a1f;padding:13px 15px;color:#3c4935;font-size:.75rem;line-height:1.45}.route-summary-card strong{display:block;color:#263121;font-size:.875rem;margin-bottom:4px}.route-summary-card .route-meta{display:flex;gap:10px;flex-wrap:wrap;color:#718066}.route-summary-card .route-stops{margin-top:8px;max-height:120px;overflow:auto;border-top:1px solid #e5eadf;padding-top:7px}.route-summary-card .route-stop{display:flex;justify-content:space-between;gap:8px;padding:4px 0}.route-summary-card button{border:0;background:transparent;color:#607d39;font-weight:600;cursor:pointer;padding:5px 0}#route-form label{display:block;font-size:.875rem;font-weight:550;margin:15px 0 7px}#route-form input,#route-form select{width:100%;padding:11px 12px;border:1px solid #dbe2d3;color:#35432b;background:white;font-size:.875rem;min-height:44px}#route-submit{width:100%;margin-top:16px}.geofence-label{background:#f4f8e8;border:1px solid #b9ca79;color:#4b5d30;font-weight:700;border-radius:6px;box-shadow:0 2px 8px #23300f1a;padding:2px 6px}.poi-icon{background:#fff;border:2px solid #4f6335;border-radius:50%;width:28px!important;height:28px!important;display:grid;place-items:center;font-size:14px;box-shadow:0 3px 10px #1d251722}.stop-icon{background:#fff6df;border:2px solid #b78025;border-radius:50%;width:26px!important;height:26px!important;display:grid;place-items:center;font-size:11px;font-weight:700;color:#8d651d;box-shadow:0 3px 9px #5a411b2b}@media(max-width:760px){.map-tool-button{font-size:0;width:31px;padding:0;display:grid;place-items:center}.map-tool-button .icon{width:16px;height:16px}.route-summary-card{left:13px;right:13px;bottom:28px;width:auto}.selected-card:not([hidden])~.route-summary-card{bottom:190px}}

/* v3.2 · navegación táctil, flechas de recorrido y POI más legibles */
.zoom-hint{position:absolute;left:50%;top:14px;transform:translateX(-50%);z-index:510;background:#172013dd;color:#f7faef;border:1px solid #ffffff24;border-radius:999px;padding:7px 12px;font-size:.6875rem;line-height:1.2;box-shadow:0 5px 16px #0002;pointer-events:none;transition:opacity .35s ease,transform .35s ease;white-space:nowrap}.zoom-hint.fade{opacity:0;transform:translate(-50%,-8px)}
.route-main-line{filter:drop-shadow(0 1px 1px #fff)}
.route-arrow-wrap{background:transparent;border:0}.route-arrow-wrap>div{position:relative;width:40px;height:40px}.route-arrow{position:absolute;left:8px;top:8px;width:24px;height:24px;display:grid;place-items:center;background:#fff;border:2px solid #527b38;border-radius:50%;font-size:18px;line-height:1;color:#355b25;box-shadow:0 3px 10px #1c2d1738;transform-origin:50% 50%}.route-seq{position:absolute;right:-2px;bottom:-2px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border-radius:999px;background:#263b1f;color:#fff;border:2px solid #fff;font-size:9px;font-weight:800;font-variant-numeric:tabular-nums}.route-arrow-wrap.revisit .route-arrow{border-style:double;border-width:4px;background:#fff8dc}.route-revisit-badge{position:absolute;left:-8px;top:-8px;min-width:22px;height:19px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:#9d6d1f;color:white;border:2px solid white;font-size:9px;box-shadow:0 2px 7px #0003}.route-popup{min-width:235px;color:#35422f}.route-popup-head{display:flex;align-items:center;gap:9px;margin-bottom:8px}.route-popup-head strong{display:block;font-size:.9rem}.route-popup-head small{display:block;color:#87937e;margin-top:1px}.route-popup-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#edf3df;color:#4a6a32}.route-popup-avatar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.route-revisit-chip{display:inline-flex;background:#fff1c8;color:#805b18;border:1px solid #e6c978;border-radius:999px;padding:3px 7px;font-size:.67rem;font-weight:700;margin-bottom:7px}.route-popup-time{font-weight:650;margin-bottom:7px}.route-popup-address{display:flex;flex-direction:column;gap:2px;padding-top:7px;border-top:1px solid #e5eadf}.route-popup-address span,.route-popup-meta{font-size:.7rem;color:#778372}.route-popup-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}.route-stop-popup{display:flex;flex-direction:column;gap:4px;min-width:210px}.route-stop-popup span{color:#697665}.route-help{margin:8px 0 0;color:#697665;font-size:.7rem;line-height:1.45}.stop-icon{display:grid!important;grid-template-columns:1fr;grid-template-rows:1fr;place-items:center}.stop-icon span{font-size:12px;line-height:1}.stop-icon b{position:absolute;right:-5px;bottom:-5px;background:#835d1c;color:#fff;border:2px solid #fff;border-radius:999px;min-width:16px;height:16px;display:grid;place-items:center;font-size:8px}.poi-icon{background:transparent!important;border:0!important;box-shadow:none!important}.poi-icon span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#fff;border:2px solid #546a40;box-shadow:0 3px 10px #1d25172b;font-size:18px}.poi-police span{border-color:#3d5f86}.poi-traffic_signal span{border-color:#6b6b42}.poi-roadwork span{border-color:#956b2d}.poi-popup{display:flex;flex-direction:column;gap:4px;min-width:210px}.poi-popup span{color:#677563}.poi-popup small{color:#8a9483;line-height:1.35}
@media(max-width:760px){.zoom-hint{top:auto;bottom:76px;max-width:84%;white-space:normal;text-align:center;font-size:.625rem}.route-arrow{width:26px;height:26px}.route-popup{min-width:200px}.leaflet-control-zoom a{width:38px!important;height:38px!important;line-height:38px!important;font-size:22px!important}.leaflet-control-scale{margin-bottom:8px!important}}



/* v3.4 · tema oscuro neón + rendimiento de recorridos */
html{background:#050806}html.light-mode{background:var(--paper)}
.theme-toggle{width:36px;height:36px;border:1px solid #39ff14;background:#07100a;border-radius:50%;display:grid;place-items:center;color:#7dff6a;box-shadow:0 0 0 1px #39ff1424,0 0 18px #39ff1415;transition:border-color .18s,box-shadow .18s,transform .18s}.theme-toggle:hover{border-color:#79ff65;box-shadow:0 0 22px #39ff1433}.theme-toggle:active{transform:scale(.96)}.theme-toggle .icon{width:18px;height:18px}body.light-mode .theme-toggle{border-color:#dce2d7;background:white;color:#5f6e54;box-shadow:none}
body:not(.light-mode){--ink:#eaf6eb;--muted:#91a798;--line:#183d26;--paper:#050806;--lime:#65ff52;--olive:#54c866;--green:#43ff7b;--amber:#ffc85b;color:#eaf6eb;background:radial-gradient(circle at 50% -20%,#0d2b17 0,#07100a 34%,#050806 68%);color-scheme:dark;min-height:100vh}
body:not(.light-mode) .topbar{background:#030604;border-bottom:1px solid #1b7f38;box-shadow:0 8px 28px #0008,0 0 24px #39ff1410}
body:not(.light-mode) .brand img{filter:brightness(0) saturate(100%) invert(91%) sepia(95%) saturate(1720%) hue-rotate(47deg) brightness(111%) contrast(107%)}
body:not(.light-mode) .brand-divider{background:#39ff1438}body:not(.light-mode) .brand>span:last-child{color:#789581}body:not(.light-mode) .brand strong,body:not(.light-mode) .top-link{color:#d9f7dc}body:not(.light-mode) .account-button{border-color:#2dc64d66;background:#07100a;color:#74ff7d;box-shadow:0 0 16px #39ff1412}
body:not(.light-mode) .eyebrow{color:#66e77b}body:not(.light-mode) .title-dot{color:#65ff52}body:not(.light-mode) .page-intro,body:not(.light-mode) .section-heading p{color:#8da296}
body:not(.light-mode) .button-primary{background:#58f24f;color:#021005;border-color:#80ff70;box-shadow:0 0 18px #39ff1422}body:not(.light-mode) .button-primary:hover{background:#72ff65;box-shadow:0 0 24px #39ff1438}
body:not(.light-mode) .button-outline,body:not(.light-mode) .icon-button,body:not(.light-mode) .export-button{background:#070c08;border-color:#1f7f38;color:#baf7c1}body:not(.light-mode) .button-outline:hover,body:not(.light-mode) .icon-button:hover,body:not(.light-mode) .export-button:hover{background:#0b1710;border-color:#3eea62;box-shadow:0 0 14px #39ff1418}
body:not(.light-mode) .connection-badge{color:#a7c5ae}body:not(.light-mode) .connection-badge.live{color:#5cff83}body:not(.light-mode) .status-dot{background:#7d927f}body:not(.light-mode) .live .status-dot{background:#46ff79;box-shadow:0 0 0 3px #46ff7920,0 0 10px #46ff7955}
body:not(.light-mode) .notice{background:#07140b;border-color:#1c6331;color:#9cc5a4}body:not(.light-mode) .notice strong{color:#d6f7da}body:not(.light-mode) .alert,body:not(.light-mode) .form-error{background:#1a0c09;border-color:#7e3428;color:#ff9f8c}
body:not(.light-mode) .stats,body:not(.light-mode) .monitor-window,body:not(.light-mode) .table-wrap{background:#070b08;border-color:#1d7134;box-shadow:0 8px 34px #0007,0 0 24px #39ff1408}
body:not(.light-mode) .stat+.stat:before{background:#153c23}body:not(.light-mode) .stat p{color:#91ad98}body:not(.light-mode) .stat-foot{color:#6e8675}body:not(.light-mode) .stat-icon,body:not(.light-mode) .stat-icon.green,body:not(.light-mode) .stat-icon.amber,body:not(.light-mode) .avatar{background:#0c1c11;color:#66ff7b;border:1px solid #1d713455}
body:not(.light-mode) .window-toolbar,body:not(.light-mode) .window-footer{background:#060a07;border-color:#173f25}body:not(.light-mode) .view-tab{color:#789281}body:not(.light-mode) .view-tab.active{color:#c8f7ce}body:not(.light-mode) .view-tab.active:after{background:#56ff6d;box-shadow:0 0 12px #39ff1466}body:not(.light-mode) .read-time,body:not(.light-mode) .legend,body:not(.light-mode) .source-label{color:#789080}
body:not(.light-mode) .map-panel,body:not(.light-mode) .map-panel #map{background:#050806}body:not(.light-mode) .leaflet-tile-pane{filter:brightness(.54) invert(1) contrast(1.32) hue-rotate(155deg) saturate(.42)}
body:not(.light-mode) .map-label,body:not(.light-mode) .fit-button{background:#061009eF;border:1px solid #2aa84a;color:#c7f9ce;box-shadow:0 0 18px #39ff141d}body:not(.light-mode) .map-label .status-dot{background:#58ff70;box-shadow:0 0 10px #58ff70}
body:not(.light-mode) .leaflet-control-zoom{border-color:#247b38!important;box-shadow:0 0 16px #39ff1418!important}body:not(.light-mode) .leaflet-control-zoom a{background:#061009!important;color:#79ff87!important;border-color:#173f25!important}body:not(.light-mode) .leaflet-control-attribution{background:#040804e8!important;color:#6f8b76!important}body:not(.light-mode) .leaflet-control-attribution a{color:#79d98a!important}
body:not(.light-mode) .leaflet-popup-content-wrapper,body:not(.light-mode) .leaflet-popup-tip{background:#07100a;color:#d9f5dd}body:not(.light-mode) .leaflet-popup-content-wrapper{border:1px solid #247b38;box-shadow:0 8px 30px #0009,0 0 18px #39ff1415}body:not(.light-mode) .leaflet-popup-close-button{color:#7eff8a!important}
body:not(.light-mode) .guard-pin{background:#12823a;border-color:#63ff7b;box-shadow:0 0 16px #39ff1450}body:not(.light-mode) .guard-pin.offline{background:#755a27;border-color:#d4aa55}body:not(.light-mode) .guard-pin.unknown{background:#435048;border-color:#8fa297}body:not(.light-mode) .guard-pin.selected{background:#020703;color:#7dff70;border-color:#7dff70;box-shadow:0 0 24px #39ff1470}body:not(.light-mode) .marker-name{background:#061009ef;border-color:#247b38;color:#bdf6c4;box-shadow:0 0 12px #39ff1414}
body:not(.light-mode) .selected-card,body:not(.light-mode) .route-summary-card,body:not(.light-mode) .map-empty{background:#061009f2;border-color:#247b38;color:#dff8e2;box-shadow:0 8px 30px #0009,0 0 18px #39ff1412}body:not(.light-mode) .selected-top small,body:not(.light-mode) .selected-time,body:not(.light-mode) .selected-full-address,body:not(.light-mode) .selected-geocode-source{color:#7f9986}body:not(.light-mode) .selected-address{color:#b6d8bc;border-color:#173f25}body:not(.light-mode) .selected-street{color:#e6f9e8}
body:not(.light-mode) .route-summary-card strong{color:#e5f8e7}body:not(.light-mode) .route-summary-card .route-meta,body:not(.light-mode) .route-help{color:#84a08b}body:not(.light-mode) .route-summary-card .route-stops{border-color:#173f25}body:not(.light-mode) .route-summary-card button{color:#68ff7a}body:not(.light-mode) .route-main-line{filter:drop-shadow(0 0 4px #39ff14)}body:not(.light-mode) .route-arrow{background:#041007;border-color:#67ff78;color:#67ff78;box-shadow:0 0 14px #39ff144f}body:not(.light-mode) .route-seq{background:#123d20;border-color:#65ff75;color:#effff1}body:not(.light-mode) .route-arrow-wrap.revisit .route-arrow{background:#151407;border-color:#d5c04e}body:not(.light-mode) .route-revisit-badge{background:#9b7a23;border-color:#f1db6f}body:not(.light-mode) .route-popup,body:not(.light-mode) .route-stop-popup{color:#ddf5e0}body:not(.light-mode) .route-popup-avatar{background:#0c2514;color:#69ff7d}body:not(.light-mode) .route-popup-head small,body:not(.light-mode) .route-popup-address span,body:not(.light-mode) .route-popup-meta,body:not(.light-mode) .route-stop-popup span{color:#84a08a}body:not(.light-mode) .route-popup-address{border-color:#1d4e2c}
body:not(.light-mode) .section-title h2{color:#eaf6eb}body:not(.light-mode) .count-badge{background:#0b1a10;border-color:#1c6931;color:#70ef83}body:not(.light-mode) .search-field,body:not(.light-mode) .list-controls select{background:#060b07;border-color:#1f6d34;color:#d9f1dd}body:not(.light-mode) .search-field:focus-within{outline-color:#45e762}body:not(.light-mode) input::placeholder{color:#657b6b}
body:not(.light-mode) th{background:#08100a;color:#7f9986;border-color:#173f25}body:not(.light-mode) td{border-color:#112e1c}body:not(.light-mode) tbody tr:hover{background:#0a140d}body:not(.light-mode) tbody tr.selected{background:#0c1b10}body:not(.light-mode) tbody tr.selected td:first-child{box-shadow:inset 3px 0 #54ff6a}body:not(.light-mode) .address-line,body:not(.light-mode) .guard-name strong,body:not(.light-mode) .report-time{color:#d8efdc}body:not(.light-mode) .coordinate-line,body:not(.light-mode) .report-date,body:not(.light-mode) .report-age,body:not(.light-mode) .user-names,body:not(.light-mode) .table-footer,body:not(.light-mode) .page-footer{color:#799080}body:not(.light-mode) .status-pill.online{background:#0a2413;color:#63ff7d;border-color:#1c7135}body:not(.light-mode) .status-pill.offline{background:#241c0c;color:#e2b65d;border-color:#715721}body:not(.light-mode) .status-pill.unknown{background:#151a17;color:#a6b7aa;border-color:#3f4e43}body:not(.light-mode) .row-map-button{color:#6fff7d}
body:not(.light-mode) dialog{background:#07100a;color:#e9f8eb;border-color:#2ba749;box-shadow:0 25px 90px #000c,0 0 26px #39ff1415}body:not(.light-mode) dialog::backdrop{background:#010401d9;backdrop-filter:blur(7px)}body:not(.light-mode) .dialog-symbol{background:#57ff63;color:#042007;box-shadow:0 0 22px #39ff1440}body:not(.light-mode) #login-description,body:not(.light-mode) #history-description{color:#91a798}body:not(.light-mode) .server-chip{background:#0a160d;border-color:#1c6030;color:#a7cdb0}body:not(.light-mode) #login-form input,body:not(.light-mode) #history-form input,body:not(.light-mode) #history-form select,body:not(.light-mode) #route-form input,body:not(.light-mode) #route-form select{background:#050906;border-color:#206f36;color:#e6f6e8}body:not(.light-mode) .password-field button{color:#72e983}body:not(.light-mode) .history-hint,body:not(.light-mode) .privacy-note,body:not(.light-mode) .setup-link{color:#76917d}
body:not(.light-mode) .geofence-label{background:#07140b;border-color:#2dc253;color:#9cffaa}body:not(.light-mode) .poi-icon span{background:#07100a;border-color:#42e568;box-shadow:0 0 13px #39ff142e}body:not(.light-mode) .poi-popup span,body:not(.light-mode) .poi-popup small{color:#809a87}
body:not(.light-mode) .toast{background:#061009;color:#dcfbe0;border:1px solid #36ce55;box-shadow:0 8px 34px #000a,0 0 22px #39ff1423}
body:not(.light-mode) .monitor-window:fullscreen,body:not(.light-mode) .monitor-window.expanded{background:#050806}
body:not(.light-mode) *{scrollbar-color:#246d38 #07100a;scrollbar-width:thin}
@media(max-width:760px){.theme-toggle{width:32px;height:32px}.theme-toggle .icon{width:16px;height:16px}body:not(.light-mode) .locations tr{border-color:#153b23}body:not(.light-mode) .locations td:nth-child(3){border-color:#153b23}}


/* Mobile compact selected-card optimization */
@media(max-width:760px){
  .selected-card{
    left:10px;
    bottom:10px;
    width:min(210px,calc(100% - 20px));
    padding:10px 11px;
    border-radius:9px;
  }
  .selected-top{gap:8px;margin-bottom:8px}
  .selected-top strong{font-size:.8125rem;line-height:1.2}
  .selected-top small{font-size:.625rem;margin-top:2px;line-height:1.25}
  .avatar{width:32px;height:32px;border-radius:8px}
  .selected-address{
    padding-top:8px;
    gap:6px;
    font-size:.75rem;
    line-height:1.3;
  }
  .selected-address .icon{width:12px;height:14px;margin-top:1px}
  .selected-address>span{display:block;min-width:0}
  .selected-street{display:block;font-size:.78125rem;line-height:1.25}
  .selected-full-address{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    margin-top:2px;
  }
  .selected-geocode-source{display:none}
  .selected-time{margin:6px 0 0 18px;font-size:.625rem;line-height:1.35}
  .selected-time .accuracy-line{display:block;margin-top:2px}
  .selected-card:not([hidden])~.route-summary-card{bottom:150px}
}
@media(max-width:430px){
  .selected-card{
    left:9px;
    bottom:9px;
    width:min(190px,calc(100% - 18px));
    padding:9px 10px;
  }
  .selected-top{gap:7px;margin-bottom:7px}
  .selected-top strong{font-size:.78125rem}
  .selected-top small{font-size:.59375rem}
  .selected-address{font-size:.71875rem;line-height:1.25}
  .selected-street{font-size:.75rem}
  .selected-full-address{display:none}
  .selected-time{margin-left:17px;font-size:.59375rem}
  .selected-card:not([hidden])~.route-summary-card{bottom:138px}
}


/* v3.5 · grupos, bitácora operativa y tarjeta móvil compacta */
.group-link-line{stroke:#4ecf69;filter:drop-shadow(0 0 3px #39ff1440)}
.group-map-label-wrap,.event-map-wrap,.route-endpoint-wrap{background:transparent!important;border:0!important}
.group-map-label{min-width:118px;max-width:155px;padding:5px 9px;border-radius:8px;background:#f8fff5e8;border:1px solid #75a45c;box-shadow:0 4px 14px #24351a22;display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.15;color:#33452d;backdrop-filter:blur(4px)}
.group-map-label b{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:138px}.group-map-label small{font-size:.55rem;color:#70806a;margin-top:2px}
.group-popup,.event-popup{display:flex;flex-direction:column;gap:5px;min-width:210px}.group-popup>span,.group-popup>small,.event-popup>span,.event-popup>small{color:#70806a;font-size:.72rem;line-height:1.4}.event-popup p{margin:3px 0 0;padding-top:6px;border-top:1px solid #e5eadf;font-size:.76rem;line-height:1.4}
.event-map-icon{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid #527b38;color:#355b25;font-size:.7rem;font-weight:800;box-shadow:0 3px 10px #1c2d1738}.event-map-icon.event-contratiempo{border-color:#b75b47;color:#913d2d}.event-map-icon.event-descanso{border-color:#5b78a9;color:#375985}.event-map-icon.event-parada{border-color:#b48739;color:#86611e}
.route-endpoint{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fff;border:3px solid #4a8c52;box-shadow:0 3px 13px #1c2d1744;color:#34723e;font-size:15px}.route-endpoint.flag{border-color:#3d5f86;color:#284e78}
.route-endpoints{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.route-endpoints>div{border:1px solid #e0e7da;border-radius:8px;padding:7px;min-width:0}.route-endpoints b,.route-endpoints span,.route-endpoints small{display:block}.route-endpoints b{font-size:.67rem;text-transform:uppercase;letter-spacing:.05em}.route-endpoints span{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.route-endpoints small,.route-stop small{font-size:.6rem;color:#899482;margin-top:2px;display:block}.route-events{max-height:95px!important}.route-event-item{border-left:2px solid #ad7135;padding-left:7px!important}

.ops-dialog{width:min(780px,calc(100% - 30px))}.event-dialog{width:min(520px,calc(100% - 30px))}.ops-description{font-size:.83rem;line-height:1.55;color:#77816f;margin-bottom:18px}.groups-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(300px,1.2fr);gap:22px;align-items:start}.ops-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px;font-size:.82rem}.groups-list{display:flex;flex-direction:column;gap:8px;max-height:465px;overflow:auto;padding-right:3px}.group-card{border:1px solid #e0e6db;border-radius:10px;padding:10px 11px;display:flex;justify-content:space-between;gap:9px;background:#fafbf8}.group-card>div:first-child{min-width:0}.group-card strong{font-size:.78rem;display:block}.group-card small{display:block;color:#7d8775;font-size:.66rem;line-height:1.35;margin-top:3px}.group-card p{font-size:.62rem;line-height:1.4;color:#90998b;margin-top:5px}.group-card-actions{display:flex;flex-direction:column;gap:3px;flex-shrink:0}.group-card-actions button{border:0;background:transparent;color:#617348;font-size:.66rem;font-weight:650;padding:3px}
#group-form label,.event-dialog form label{display:block;font-size:.76rem;font-weight:600;margin:11px 0 5px}#group-form input,.event-dialog form input,.event-dialog form select,.event-dialog form textarea{width:100%;border:1px solid #dbe2d3;padding:9px 10px;background:white;color:var(--ink);border-radius:8px}.event-dialog form textarea{resize:vertical;min-height:74px;font:inherit;font-size:.82rem}.ops-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.members-fieldset{border:1px solid #e1e7db;border-radius:10px;margin:14px 0;padding:10px}.members-fieldset legend{font-size:.72rem;font-weight:650;padding:0 5px}.member-checks{display:grid;grid-template-columns:1fr 1fr;gap:7px;max-height:210px;overflow:auto}.member-check{display:flex!important;align-items:center;gap:8px;border:1px solid #e7ebe3;border-radius:8px;padding:7px;margin:0!important;background:#fbfcfa;cursor:pointer}.member-check input{width:16px!important;height:16px;margin:0}.member-check span{min-width:0}.member-check strong,.member-check small{display:block}.member-check strong{font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-check small{font-size:.6rem;color:#899283;margin-top:2px}.ops-empty{font-size:.72rem;color:#8a9483;line-height:1.45;padding:10px 2px}#group-save,.event-dialog form .button{width:100%;margin-top:8px}.event-location-preview{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;margin-top:12px;border:1px solid #dde5d7;border-radius:8px;background:#f7f9f4;color:#687661}.event-location-preview .icon{width:15px;height:17px}.event-location-preview span,.event-location-preview strong,.event-location-preview small{display:block}.event-location-preview strong{font-size:.69rem}.event-location-preview small{font-size:.64rem;line-height:1.4;margin-top:2px}.recent-events{margin-top:18px;padding-top:13px;border-top:1px solid #e2e8dc}.recent-events>strong{font-size:.76rem}.events-list{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-height:210px;overflow:auto}.event-row{display:grid;grid-template-columns:24px 1fr 24px;gap:8px;align-items:start;padding:7px;border:1px solid #e5eae0;border-radius:8px}.event-dot{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;border:1px solid #6a8555;font-size:.6rem;font-weight:800}.event-dot.event-contratiempo{border-color:#ad5a49}.event-dot.event-descanso{border-color:#5874a3}.event-row strong,.event-row small,.event-row p{display:block}.event-row strong{font-size:.68rem}.event-row small{font-size:.59rem;color:#8b9585;margin-top:2px}.event-row p{font-size:.64rem;line-height:1.3;color:#6f7b69;margin-top:3px}.event-row button{border:0;background:transparent;color:#8b9485;font-size:1rem;line-height:1;padding:1px}

body:not(.light-mode) .group-map-label{background:#061009ef;border-color:#30bd50;color:#c9f7ce;box-shadow:0 0 15px #39ff1424}body:not(.light-mode) .group-map-label small{color:#7f9a85}body:not(.light-mode) .group-link-line{stroke:#59ff70;filter:drop-shadow(0 0 4px #39ff1460)}body:not(.light-mode) .event-map-icon,body:not(.light-mode) .route-endpoint{background:#061009;border-color:#5dff74;color:#79ff8a;box-shadow:0 0 14px #39ff143f}body:not(.light-mode) .event-map-icon.event-contratiempo{border-color:#ff806d;color:#ff9d8e}body:not(.light-mode) .event-map-icon.event-descanso{border-color:#79a8ff;color:#a8c6ff}body:not(.light-mode) .route-endpoint.flag{border-color:#78aaff;color:#a9c6ff}body:not(.light-mode) .group-popup>span,body:not(.light-mode) .group-popup>small,body:not(.light-mode) .event-popup>span,body:not(.light-mode) .event-popup>small{color:#86a08c}body:not(.light-mode) .event-popup p{border-color:#173f25}body:not(.light-mode) .route-endpoints>div{border-color:#1a5130;background:#07120a}body:not(.light-mode) .route-endpoints small,body:not(.light-mode) .route-stop small{color:#789080}
body:not(.light-mode) .ops-description{color:#8ca294}body:not(.light-mode) .group-card,body:not(.light-mode) .member-check,body:not(.light-mode) .event-row{background:#07120a;border-color:#1c5e30}body:not(.light-mode) .group-card small,body:not(.light-mode) .group-card p,body:not(.light-mode) .member-check small,body:not(.light-mode) .event-row small,body:not(.light-mode) .event-row p{color:#789080}body:not(.light-mode) .group-card-actions button{color:#72f286}body:not(.light-mode) #group-form input,body:not(.light-mode) .event-dialog form input,body:not(.light-mode) .event-dialog form select,body:not(.light-mode) .event-dialog form textarea{background:#050906;border-color:#206f36;color:#e6f6e8}body:not(.light-mode) .members-fieldset{border-color:#1b5830}body:not(.light-mode) .event-location-preview{background:#07150b;border-color:#1d6633;color:#a5c6ac}body:not(.light-mode) .recent-events{border-color:#173f25}

@media(max-width:760px){
  .ops-dialog{padding:22px;width:calc(100% - 18px);max-width:none}.groups-layout{grid-template-columns:1fr;gap:16px}.groups-list{max-height:200px}.ops-grid{grid-template-columns:1fr 1fr}.member-checks{grid-template-columns:1fr 1fr;max-height:170px}.route-endpoints{grid-template-columns:1fr}.route-summary-card{max-height:58%;overflow:auto}
  .selected-card{left:8px;bottom:8px;width:min(205px,calc(100% - 70px));padding:8px 9px}.selected-top{margin-bottom:5px}.selected-top .avatar{width:29px;height:29px}.selected-address{padding-top:5px;font-size:.69rem;line-height:1.2}.selected-full-address,.selected-geocode-source,.accuracy-line{display:none!important}.selected-time{margin:4px 0 0 17px;font-size:.58rem;line-height:1.2}.selected-top small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:132px}.selected-card:not([hidden])~.route-summary-card{bottom:118px}
}
@media(max-width:430px){.ops-grid,.member-checks{grid-template-columns:1fr}.selected-card{width:min(190px,calc(100% - 62px));padding:7px 8px}.selected-top .avatar{width:27px;height:27px}.selected-address{font-size:.66rem}.selected-time{font-size:.56rem}.selected-card:not([hidden])~.route-summary-card{bottom:108px}}

/* v3.6 · tarjeta GPS móvil ultracompacta */
@media(max-width:760px){
  .map-label{left:8px;top:8px;padding:6px 8px;border-radius:7px;font-size:.56rem;max-width:155px;line-height:1.15}
  .fit-button{right:8px;top:8px;padding:6px 8px;font-size:.66rem;min-height:31px;border-radius:7px}
  .fit-button .icon{width:14px;height:14px}

  .selected-card{
    left:7px!important;
    bottom:38px!important;
    width:min(188px,calc(100% - 64px))!important;
    max-height:92px;
    overflow:hidden;
    padding:7px 8px!important;
    border-radius:8px!important;
    box-shadow:0 5px 16px #0003!important;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  .selected-top{gap:6px!important;margin-bottom:4px!important;min-width:0}
  .selected-top .avatar{width:25px!important;height:25px!important;border-radius:7px!important}
  .selected-top .avatar .icon{width:13px!important;height:13px!important}
  .selected-top>div{min-width:0;flex:1}
  .selected-top strong{font-size:.70rem!important;line-height:1.1!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .selected-top small{font-size:.52rem!important;line-height:1.1!important;margin-top:2px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:125px!important}
  .selected-top>.status-dot{width:6px!important;height:6px!important;flex:0 0 6px!important}
  .selected-address{padding-top:4px!important;gap:4px!important;font-size:.60rem!important;line-height:1.12!important;min-width:0}
  .selected-address .icon{width:10px!important;height:12px!important;margin-top:0!important;flex:0 0 10px}
  .selected-address>span{min-width:0;overflow:hidden}
  .selected-street{font-size:.62rem!important;line-height:1.12!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .selected-full-address,.selected-geocode-source,.accuracy-line{display:none!important}
  .selected-time{margin:3px 0 0 14px!important;font-size:.50rem!important;line-height:1.1!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .selected-card:not([hidden])~.route-summary-card{bottom:142px!important}

  /* Un toque amplía la ficha; otro toque vuelve al modo compacto. */
  .selected-card.mobile-expanded{
    width:min(320px,calc(100% - 14px))!important;
    max-height:230px;
    padding:11px 12px!important;
    bottom:34px!important;
    overflow:auto;
  }
  .selected-card.mobile-expanded .selected-top{gap:8px!important;margin-bottom:8px!important}
  .selected-card.mobile-expanded .selected-top .avatar{width:32px!important;height:32px!important}
  .selected-card.mobile-expanded .selected-top strong{font-size:.80rem!important}
  .selected-card.mobile-expanded .selected-top small{font-size:.61rem!important;max-width:none!important}
  .selected-card.mobile-expanded .selected-address{padding-top:8px!important;gap:6px!important;font-size:.72rem!important;line-height:1.3!important}
  .selected-card.mobile-expanded .selected-address .icon{width:13px!important;height:15px!important}
  .selected-card.mobile-expanded .selected-street{font-size:.75rem!important;line-height:1.25!important;white-space:normal}
  .selected-card.mobile-expanded .selected-full-address{display:block!important;font-size:.66rem;margin-top:3px;line-height:1.3}
  .selected-card.mobile-expanded .selected-geocode-source{display:block!important;font-size:.55rem;margin-top:4px}
  .selected-card.mobile-expanded .selected-time{margin:6px 0 0 19px!important;font-size:.60rem!important;white-space:normal;line-height:1.3!important}
  .selected-card.mobile-expanded .accuracy-line{display:block!important;margin-top:2px}
  .selected-card.mobile-expanded:not([hidden])~.route-summary-card{bottom:260px!important}
}
@media(max-width:430px){
  .map-label{max-width:142px;padding:5px 7px;font-size:.53rem}
  .fit-button{width:31px;height:31px;padding:0;font-size:0;display:grid;place-items:center}
  .fit-button .icon{width:15px;height:15px}
  .selected-card{width:min(176px,calc(100% - 58px))!important;max-height:88px;bottom:36px!important;padding:6px 7px!important}
  .selected-top .avatar{width:23px!important;height:23px!important}
  .selected-top strong{font-size:.67rem!important}
  .selected-top small{font-size:.49rem!important;max-width:112px!important}
  .selected-address{font-size:.57rem!important}.selected-street{font-size:.59rem!important}.selected-time{font-size:.48rem!important}
  .selected-card.mobile-expanded{width:calc(100% - 12px)!important;max-height:215px;left:6px!important}
}


/* v3.7 · resumen de recorrido minimizable para liberar el mapa */
.route-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.route-summary-heading{min-width:0;flex:1}
.route-summary-heading>strong{margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.route-summary-mini{display:none;color:#718066;font-size:.66rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.route-summary-toggle{width:30px;height:30px!important;min-width:30px;padding:0!important;display:grid;place-items:center;border:1px solid #dbe3d5!important;border-radius:8px!important;background:#f8faf5!important;color:#4f623f!important}
.route-summary-toggle .icon{width:15px;height:15px}
.route-summary-card.collapsed{width:auto;max-width:min(245px,calc(100% - 72px));padding:8px 9px;overflow:visible!important;max-height:none!important}
.route-summary-card.collapsed .route-summary-body{display:none}
.route-summary-card.collapsed .route-summary-mini{display:block}
.route-summary-card.collapsed .route-summary-head{align-items:center}
.route-summary-card.collapsed .route-summary-toggle{width:28px;height:28px!important;min-width:28px}
body:not(.light-mode) .route-summary-toggle{background:#07150b!important;border-color:#2c8d43!important;color:#73ff82!important}
body:not(.light-mode) .route-summary-card.collapsed .route-summary-mini{color:#8bad92}

@media(max-width:760px){
  .route-summary-card{left:8px!important;right:8px!important;bottom:148px!important;max-height:42%!important;overflow:auto;border-radius:11px;padding:10px 11px}
  .selected-card.mobile-expanded:not([hidden])~.route-summary-card:not(.collapsed){bottom:260px!important}
  .route-summary-card.collapsed{left:8px!important;right:auto!important;top:48px!important;bottom:auto!important;width:auto!important;max-width:calc(100% - 64px)!important;padding:7px 8px!important;box-shadow:0 4px 14px #0003!important}
  .selected-card:not([hidden])~.route-summary-card.collapsed,.selected-card.mobile-expanded:not([hidden])~.route-summary-card.collapsed{bottom:auto!important}
  .route-summary-card.collapsed .route-summary-heading>strong{font-size:.70rem!important;line-height:1.15}
  .route-summary-card.collapsed .route-summary-mini{font-size:.56rem;max-width:160px}
  .route-summary-card.collapsed .route-summary-toggle{width:27px!important;height:27px!important;min-width:27px!important}
}
@media(max-width:430px){
  .route-summary-card:not(.collapsed){bottom:132px!important;max-height:38%!important}
  .route-summary-card.collapsed{top:44px!important;max-width:calc(100% - 54px)!important}
  .route-summary-card.collapsed .route-summary-mini{max-width:145px}
}

.route-history-dot{stroke:#425f30;fill:#c7ec63;filter:drop-shadow(0 0 2px #20311855)}
body:not(.light-mode) .route-history-dot{stroke:#0b2010;fill:#71ff82;filter:drop-shadow(0 0 3px #39ff1470)}


/* v3.8 · panel de recorrido cerrable y mejor densidad visual */
.map-tool-button.active-tool{background:#eaf8e8;border-color:#8dbb6d;color:#305126;box-shadow:0 0 0 1px #d9ecd5 inset}
body:not(.light-mode) .map-tool-button.active-tool{background:#08160c;border-color:#39ff5a;color:#88ff97;box-shadow:0 0 14px #39ff1428,0 0 0 1px #1f7a34 inset}
.route-summary-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.route-summary-close .icon{width:13px;height:13px}
.route-summary-card[hidden]{display:none!important}
@media(max-width:760px){
  .route-summary-actions{gap:5px}
  .route-summary-toggle,.route-summary-close{width:28px!important;height:28px!important;min-width:28px!important}
}


/* v3.9 · Entorno en toda el área visible */
.map-tool-button.loading-tool .icon{animation:p1sPulse 1s ease-in-out infinite}
@keyframes p1sPulse{0%,100%{opacity:.45;transform:scale(.9)}50%{opacity:1;transform:scale(1.08)}}
.poi-icon span{font-weight:800;font-family:system-ui,-apple-system,Segoe UI,sans-serif}
.poi-traffic_signal span{border-color:#87a43e!important;background:#f8fff0!important}
.poi-hospital span{border-color:#a44343!important;color:#8d3030!important}
.poi-fire_station span{border-color:#c16b36!important;color:#a34b1f!important}
.poi-fuel span{border-color:#4e6f88!important}
.poi-toll span{border-color:#82683a!important;color:#685225!important}
body:not(.light-mode) .poi-icon span{background:#061009!important;box-shadow:0 0 12px #39ff1422!important}
body:not(.light-mode) .poi-traffic_signal span{border-color:#73ff82!important;color:#eaffed!important}
body:not(.light-mode) .poi-hospital span{border-color:#ff6868!important;color:#ffb2b2!important}
body:not(.light-mode) .poi-fire_station span{border-color:#ff934d!important;color:#ffc49d!important}
body:not(.light-mode) .poi-fuel span{border-color:#6fb8ff!important;color:#b9ddff!important}
body:not(.light-mode) .poi-toll span{border-color:#e4c36b!important;color:#ffeba9!important}


/* v4.0 · Entorno resiliente: reintentos, caché y estado compacto */
.map-tool-button.tool-warning{border-color:#b99b43!important;box-shadow:0 0 0 1px #b99b432b inset!important}
body:not(.light-mode) .map-tool-button.tool-warning{border-color:#e6ca5d!important;color:#f2dc7a!important;box-shadow:0 0 12px #e6ca5d24!important}
@media(max-width:760px){
  .toast{max-width:min(250px,76vw);padding:9px 12px;font-size:.72rem;line-height:1.35;border-radius:8px;bottom:18px;text-align:left}
}


/* v4.1 · Paradas 10+ min y alarma SOS */
.stop-icon.stop-long{border-color:#a66a20!important;background:#fff2d8!important;box-shadow:0 0 0 3px #f2b64d2b,0 4px 12px #4f351b33!important}
body:not(.light-mode) .stop-icon.stop-long{background:#160d03!important;border-color:#ffae3f!important;color:#ffd28a!important;box-shadow:0 0 14px #ff9f2440!important}
.sos-sound-button{position:relative}
.sos-sound-button.sos-active{border-color:#ff3434!important;color:#c51616!important;background:#fff0f0!important;animation:sosButtonPulse .75s ease-in-out infinite alternate}
body:not(.light-mode) .sos-sound-button.sos-active{border-color:#ff4f4f!important;color:#ff7b7b!important;background:#250707!important;box-shadow:0 0 18px #ff26265c!important}
@keyframes sosButtonPulse{from{transform:scale(1)}to{transform:scale(1.05)}}
.sos-settings-dialog{max-width:460px}
.sos-symbol{background:#fff0f0!important;color:#b62828!important}
body:not(.light-mode) .sos-symbol{background:#260909!important;color:#ff6363!important}
.sos-volume-label{display:flex!important;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 8px!important}
.sos-volume-label>span{display:flex;align-items:center;gap:8px}.sos-volume-label .icon{width:18px;height:18px}
.sos-volume{width:100%;accent-color:#d42b2b}
.sos-alert{position:fixed;z-index:5000;right:18px;top:88px;width:min(390px,calc(100vw - 36px));padding:18px;border:2px solid #e12f2f;border-radius:16px;background:#fff7f7;color:#321010;box-shadow:0 18px 60px #5f08083d;animation:sosAlertPulse 1s ease-in-out infinite alternate}
.sos-alert[hidden]{display:none!important}
.sos-alert-head{display:flex;align-items:center;gap:12px}.sos-alert-head small{display:block;font-size:.72rem;font-weight:900;letter-spacing:.12em;color:#b51616}.sos-alert-head strong{display:block;font-size:1.15rem;margin-top:2px}.sos-alert-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#d72d2d;color:white}.sos-alert-icon .icon{width:24px;height:24px}.sos-alert p{margin:10px 0 0;font-size:.82rem;line-height:1.4}.sos-alert-actions{display:flex;gap:8px;margin-top:14px}.sos-alert-actions button{flex:1;border:1px solid #d95a5a;background:white;color:#8c1a1a;border-radius:9px;padding:9px 10px;font-weight:700}.sos-alert-actions button:last-child{background:#c91f1f;color:white;border-color:#c91f1f}
body:not(.light-mode) .sos-alert{background:#160606;color:#ffe8e8;border-color:#ff4c4c;box-shadow:0 18px 60px #000a,0 0 26px #ff24243b}body:not(.light-mode) .sos-alert p{color:#e5bcbc}body:not(.light-mode) .sos-alert-actions button{background:#240909;color:#ffb2b2;border-color:#7b2626}body:not(.light-mode) .sos-alert-actions button:last-child{background:#d22d2d;color:white;border-color:#ff5353}
@keyframes sosAlertPulse{from{box-shadow:0 18px 60px #5f08083d}to{box-shadow:0 18px 60px #5f08085c,0 0 26px #e12f2f55}}
@media(max-width:760px){.sos-alert{top:82px;left:10px;right:10px;width:auto;padding:14px;border-radius:13px}.sos-alert-head strong{font-size:1rem}.sos-alert p{font-size:.74rem}.sos-alert-actions{flex-direction:column}.sos-alert-actions button{min-height:38px}}


/* v4.2 · Alertas de resguardo detenido: 10 min + repetición cada 40 min */
.stop-notify-settings{margin-top:18px;padding-top:15px;border-top:1px solid #e7e9e3}.stop-notify-settings>strong{display:block;font-size:.86rem}.stop-notify-settings>p{margin:6px 0 12px;color:#77806f;font-size:.76rem;line-height:1.45}.stop-notify-settings .button{width:100%;justify-content:center}
body:not(.light-mode) .stop-notify-settings{border-color:#173f25}body:not(.light-mode) .stop-notify-settings>p{color:#829489}
.stop-alert{position:fixed;z-index:4900;right:18px;top:88px;width:min(410px,calc(100vw - 36px));padding:16px;border:2px solid #e49528;border-radius:15px;background:#fffaf0;color:#39260d;box-shadow:0 16px 55px #6a421d35}
.stop-alert[hidden]{display:none!important}.stop-alert-head{display:flex;align-items:center;gap:11px}.stop-alert-head small{display:block;font-size:.70rem;font-weight:900;letter-spacing:.10em;color:#9c5e12}.stop-alert-head strong{display:block;font-size:1.08rem;margin-top:2px}.stop-alert-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#e59427;color:white}.stop-alert-icon .icon{width:22px;height:22px}.stop-alert p{margin:9px 0 0;font-size:.80rem;line-height:1.4}.stop-alert-actions{display:flex;gap:7px;margin-top:13px}.stop-alert-actions button{flex:1;border:1px solid #d7a154;background:white;color:#75501d;border-radius:8px;padding:8px 9px;font-weight:700;font-size:.75rem}.stop-alert-actions button:first-child{background:#e59427;color:#241604;border-color:#e59427}
body:not(.light-mode) .stop-alert{background:#130d04;color:#ffe8bd;border-color:#ffad37;box-shadow:0 16px 55px #000a,0 0 20px #ff9c2438}body:not(.light-mode) .stop-alert p{color:#ddc49c}body:not(.light-mode) .stop-alert-actions button{background:#211507;color:#ffd798;border-color:#70491d}body:not(.light-mode) .stop-alert-actions button:first-child{background:#e89024;color:#170e02;border-color:#ffb64d}
@media(max-width:760px){.stop-alert{top:82px;left:10px;right:10px;width:auto;padding:13px;border-radius:12px}.stop-alert-head strong{font-size:.96rem}.stop-alert p{font-size:.72rem}.stop-alert-actions{display:grid;grid-template-columns:1fr 1fr}.stop-alert-actions button:first-child{grid-column:1 / 3}.stop-alert-actions button{min-height:37px}}


/* v4.3 · reporte profesional de flotas */
.fleet-export-button{border-color:#9bc58f;background:#f5fff4}
body:not(.light-mode) .fleet-export-button{background:#07150b;border-color:#2c9143;color:#82ff91}
@media(max-width:760px){.list-controls .fleet-export-button{width:100%;justify-content:center}}

/* v4.7 · colores de estado más claros en modo oscuro */
body:not(.light-mode) .selected-top .status-dot.online{background:#46ff79!important;box-shadow:0 0 0 3px #46ff7920,0 0 10px #46ff7955}
body:not(.light-mode) .selected-top .status-dot.offline{background:#d8b15b!important;box-shadow:0 0 0 3px #d8b15b1e,0 0 10px #d8b15b33}
body:not(.light-mode) .selected-top .status-dot.unknown{background:#98a59d!important;box-shadow:0 0 0 3px #98a59d1c}
body:not(.light-mode) .selected-top.status-online strong{color:#7dff70!important}
body:not(.light-mode) .selected-top.status-offline strong{color:#f0d48c!important}
body:not(.light-mode) .selected-top.status-unknown strong{color:#dff8e2!important}
body:not(.light-mode) .marker-name.marker-name-online{color:#7dff70!important;border-color:#2dbd4f!important;box-shadow:0 0 14px #39ff1426!important}
body:not(.light-mode) .marker-name.marker-name-offline{color:#f0d48c!important;border-color:#b98b3f!important;box-shadow:0 0 12px #d8b15b1f!important}
body:not(.light-mode) .marker-name.marker-name-unknown{color:#d7e5da!important;border-color:#587062!important}


/* v4.8 · leyenda de estados con colores inequívocos en modo oscuro */
body:not(.light-mode) .window-footer .legend span:nth-child(1){color:#67ff7a!important;font-weight:700}
body:not(.light-mode) .window-footer .legend span:nth-child(1) .legend-dot{background:#46ff79!important;box-shadow:0 0 8px #46ff7966}
body:not(.light-mode) .window-footer .legend span:nth-child(2){color:#d8b15b!important}
body:not(.light-mode) .window-footer .legend span:nth-child(2) .legend-dot{background:#d8b15b!important}
body:not(.light-mode) .window-footer .legend span:nth-child(3){color:#9da9a1!important}
body:not(.light-mode) .window-footer .legend span:nth-child(3) .legend-dot{background:#9da9a1!important}


/* v4.9 · barra móvil compacta como el diseño original (una sola fila) */
@media(max-width:760px){
  .monitor-window .window-toolbar{
    position:relative!important;
    z-index:650!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    min-height:auto!important;
    padding:12px 12px 0!important;
    gap:8px!important;
    overflow:visible!important;
  }
  .monitor-window .view-tabs{
    width:100%!important;
    min-width:0!important;
    align-self:auto!important;
    gap:0!important;
  }
  .monitor-window .view-tab{
    padding:12px 0 10px!important;
  }
  .monitor-window .window-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    align-items:center!important;
    justify-items:stretch!important;
    gap:7px!important;
    padding:0 0 0!important;
    margin:0 auto!important;
  }
  .monitor-window .window-actions>*{
    margin:0!important;
    min-width:0!important;
  }
  .monitor-window .read-time{display:none!important}
  .monitor-window .map-tool-button,
  .monitor-window .icon-button{
    position:relative!important;
    z-index:2!important;
    pointer-events:auto!important;
    touch-action:manipulation!important;
    width:100%!important;
    height:42px!important;
    min-width:0!important;
    min-height:42px!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:9px!important;
    line-height:1!important;
  }
  .monitor-window .map-tool-button{
    font-size:0!important;
    white-space:nowrap!important;
  }
  .monitor-window .map-tool-button .icon,
  .monitor-window .icon-button .icon{
    width:18px!important;
    height:18px!important;
    margin:0!important;
    display:block!important;
    flex:0 0 18px!important;
  }
}
@media(max-width:430px){
  .monitor-window .window-toolbar{padding-left:10px!important;padding-right:10px!important}
  .monitor-window .window-actions{gap:6px!important}
  .monitor-window .map-tool-button,
  .monitor-window .icon-button{height:40px!important;min-height:40px!important;border-radius:8px!important}
  .monitor-window .map-tool-button .icon,
  .monitor-window .icon-button .icon{width:17px!important;height:17px!important;flex-basis:17px!important}
}
@media(max-width:360px){
  .monitor-window .window-actions{gap:5px!important}
  .monitor-window .map-tool-button,
  .monitor-window .icon-button{height:38px!important;min-height:38px!important}
  .monitor-window .map-tool-button .icon,
  .monitor-window .icon-button .icon{width:16px!important;height:16px!important;flex-basis:16px!important}
}


/* v5.0 · estabilidad de controles */
.monitor-window .map-tool-button:disabled,.monitor-window .icon-button:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){
  .monitor-window .window-actions{isolation:isolate}
  .monitor-window .window-actions button{user-select:none;-webkit-tap-highlight-color:transparent}
}


/* v5.2 mejoras móvil */
.dialog-close{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:transparent;z-index:3}.dialog-close .icon{width:18px;height:18px}.event-ops-grid input{text-transform:none}
@media(max-width:760px){dialog{width:calc(100% - 14px);max-width:none;max-height:calc(100dvh - 16px);padding:56px 16px 18px;border-radius:16px;margin:8px auto}.dialog-close{top:10px;right:10px;width:42px;height:42px;background:rgba(255,255,255,.06);border:1px solid rgba(114,242,134,.22)}.ops-dialog,.event-dialog,.sos-settings-dialog{width:calc(100% - 14px)!important;padding:56px 16px 18px!important;border-radius:16px!important}.event-dialog{max-width:none!important}.event-ops-grid{grid-template-columns:1fr!important}.event-dialog .recent-events{padding-top:12px}.event-dialog .events-list{max-height:180px}}
body:not(.light-mode) .dialog-close{background:#07120a;border-color:#1f6c34}
