.station-lab{--ls-ink:#15364d;--ls-muted:#56778d;--ls-blue:#087fb3;--ls-gold:#ffca54;color:var(--ls-ink);background:#f4faff;border-radius:20px;overflow:hidden;font-size:1rem}
.station-lab *{box-sizing:border-box}.station-lab [hidden]{display:none!important}
.station-lab h2,.station-lab h3,.station-lab p{margin:0}.station-lab h2{font-size:clamp(1.5rem,3vw,2.2rem)}.station-lab h3{font-size:1.1rem}.station-lab p{line-height:1.6}
.station-lab .ls-header{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;padding:28px;background:linear-gradient(115deg,#0b2d47,#13556b);color:#f1faff}.station-lab .ls-header h2 span{color:var(--ls-gold)}.station-lab .ls-header p{color:#bbdbe6;margin-top:8px}.station-lab .ls-kicker{display:block;color:#1689b2;font-size:.75rem;letter-spacing:1.6px;font-weight:800;margin-bottom:6px}.station-lab .ls-header .ls-kicker{color:#79d3ed}.station-lab .ls-live{display:grid;gap:7px;max-width:100%;font-size:.875rem}.station-lab .ls-live strong{font-size:1.1rem}.station-lab .ls-live span{overflow-wrap:anywhere}
.station-lab .ls-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:18px 22px}.station-lab label{display:flex;align-items:center;gap:8px;font-size:.875rem}.station-lab select{max-width:100%;font:inherit;padding:9px 12px;border:1px solid #bcd4e2;border-radius:8px;background:#fff;color:var(--ls-ink)}.station-lab button{font:inherit;font-size:.875rem;min-height:40px;padding:10px 14px;border:1px solid #bdd7e4;border-radius:9px;background:#e3f1f9;color:#0e4770;cursor:pointer}.station-lab [data-ls-load],.station-lab [data-ls-image-load]{background:#117db2;color:#fff;border-color:#117db2}.station-lab button:disabled{opacity:.5;cursor:default}.station-lab button:focus-visible,.station-lab select:focus-visible,.station-lab input:focus-visible,.station-lab .ls-map:focus-visible{outline:3px solid #2399c8;outline-offset:3px}.station-lab input[type=checkbox]{accent-color:#087fb3;width:17px;height:17px}.station-lab [data-ls-status]{flex:1;min-width:200px;font-size:.875rem;color:var(--ls-muted)}.station-lab [data-ls-status][data-error=true]{color:#915107}
.station-lab .ls-note{font-size:.8rem;color:var(--ls-muted);margin:0 22px 14px}.station-lab .ls-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 22px 14px}.station-lab .ls-metrics article{background:#e7f3fb;border-radius:14px;padding:18px;display:grid;gap:8px;min-width:0}.station-lab .ls-metrics span{font-size:.85rem;color:var(--ls-muted)}.station-lab .ls-metrics strong{font-size:clamp(1.5rem,3vw,2rem);font-variant-numeric:tabular-nums}.station-lab .ls-metrics small{color:var(--ls-muted)}.station-lab .ls-public-details{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin:0 22px 22px;font-size:.875rem;color:var(--ls-muted)}
.station-lab .ls-map-heading,.station-lab .ls-analysis-heading{display:flex;gap:16px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin:20px 22px 14px}.station-lab .ls-map-heading>div{flex:1;min-width:200px}.station-lab .ls-map-heading p{font-size:.8rem;color:var(--ls-muted);margin-top:6px}.station-lab .ls-map{position:relative;background:#082334;margin:0 22px;border-radius:15px;overflow:hidden}.station-lab canvas{display:block;width:100%;height:860px;touch-action:none;cursor:grab}.station-lab canvas:active{cursor:grabbing}.station-lab .ls-map-actions{position:absolute;top:12px;left:12px;display:flex;gap:6px;flex-wrap:wrap;right:12px;pointer-events:none}.station-lab .ls-map-actions button{pointer-events:auto;background:#133b51;color:#e5f8ff;border-color:#3a647a}.station-lab .ls-map-caption{position:absolute;left:18px;bottom:54px;color:#c4dce8;font-size:.8rem;max-width:calc(100% - 36px);pointer-events:none}.station-lab .ls-map-legend{position:absolute;left:0;right:0;bottom:0;background:#092334e8;color:#d8edf7;display:flex;gap:15px;flex-wrap:wrap;padding:12px 18px;font-size:.75rem;pointer-events:none}.station-lab .ls-map-legend span{display:flex;align-items:center;gap:6px}.station-lab .ls-dot{display:inline-block;width:8px;height:8px;border-radius:50%}.station-lab .ls-blue{background:#47c7f0}.station-lab .ls-gold{background:#ffce58}.station-lab .ls-gray{background:#aebcc8}.station-lab .ls-map:fullscreen{margin:0;border-radius:0;display:flex;align-items:center;justify-content:center}.station-lab .ls-map:fullscreen canvas{height:100%!important}.station-lab .ls-map-detail{margin:0 22px 12px;padding:13px 16px;background:#dff0fa;border-radius:0 0 12px 12px;font-size:.875rem;min-height:48px;line-height:1.5}
.station-lab .ls-own-summary{display:flex;gap:28px;flex-wrap:wrap;margin:0 22px 14px;padding:18px;background:#e7f3fb;border-radius:14px}.station-lab .ls-own-summary>div{display:grid;gap:6px;flex:1;min-width:170px}.station-lab .ls-own-summary span{font-size:.875rem;color:var(--ls-muted)}.station-lab .ls-own-summary strong{font-size:1.7rem;font-variant-numeric:tabular-nums}.station-lab .ls-quality{margin:0 22px 18px;color:#7f530b;background:#fff4d6;border-radius:10px;padding:12px 14px;font-size:.875rem}.station-lab .ls-analyses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 22px 20px}.station-lab .ls-analyses article{padding:18px;background:#eaf5fb;border-radius:14px}.station-lab .ls-analyses h3{margin-bottom:14px}.station-lab .ls-bar-row{display:grid;grid-template-columns:100px 1fr 60px;gap:8px;align-items:center;margin:9px 0;font-size:.8rem}.station-lab .ls-bar-track{height:9px;background:#cee1ed;border-radius:6px;overflow:hidden}.station-lab .ls-bar-fill{height:100%;background:#138bb7;border-radius:6px}.station-lab .ls-bar-row strong{text-align:right;font-variant-numeric:tabular-nums;font-weight:700}
.station-lab .ls-details{margin:16px 22px;padding:16px 0;border-top:1px solid #ccdfeb}.station-lab summary{cursor:pointer;font-weight:700;color:#17638a;line-height:1.5}.station-lab .ls-details p{font-size:.875rem;margin:12px 0;color:var(--ls-muted)}.station-lab .ls-details .ls-note{margin:12px 0}.station-lab .ls-table-scroll{overflow:auto;max-height:860px;margin-top:12px}.station-lab table{border-collapse:collapse;width:100%;font-size:.85rem}.station-lab th,.station-lab td{padding:10px 12px;text-align:right;white-space:nowrap;border-bottom:1px solid #d2e4ee;font-variant-numeric:tabular-nums}.station-lab th:first-child,.station-lab td:first-child{text-align:left}.station-lab th{background:#deedf7}.station-lab [data-ls-image]{max-width:100%;height:auto;display:block;margin:12px auto;background:#fff}.station-lab a{color:#117bb1}
@media(max-width:800px){.station-lab .ls-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.station-lab .ls-analyses{grid-template-columns:1fr}.station-lab canvas{height:860px}}
@media(max-width:480px){.station-lab .ls-header{padding:20px}.station-lab .ls-toolbar{padding:14px}.station-lab .ls-metrics,.station-lab .ls-map,.station-lab .ls-map-detail,.station-lab .ls-analyses,.station-lab .ls-quality,.station-lab .ls-own-summary,.station-lab .ls-details,.station-lab .ls-public-details,.station-lab .ls-map-heading,.station-lab .ls-analysis-heading{margin-left:14px;margin-right:14px}.station-lab .ls-note{margin-left:14px;margin-right:14px}.station-lab .ls-metrics article{padding:12px}.station-lab .ls-map-caption{bottom:108px}.station-lab canvas{height:920px}.station-lab .ls-map-legend{gap:8px}.station-lab .ls-bar-row{grid-template-columns:90px 1fr 45px}}
@media(pointer:coarse){.station-lab button{min-height:44px}}
.station-lab .ls-dynamic{position:absolute;inset:0;z-index:1}
.station-lab .ls-dynamic-active>canvas{visibility:hidden;pointer-events:none}
.station-lab .ls-map-actions,.station-lab .ls-map-legend,.station-lab .ls-map-caption{z-index:2}
.station-lab .ls-map-actions{align-items:end}
.station-lab .ls-basemap{pointer-events:auto;display:grid;gap:4px;color:#e5f8ff;font-size:.8rem;width:260px;max-width:100%}
.station-lab .ls-basemap select{width:100%;min-width:0;min-height:42px;padding:8px 10px;color:#e5f8ff;background:#133b51;border-color:#3a647a;color-scheme:dark}
.station-lab .ls-map-empty{position:absolute;z-index:2;left:50%;top:48%;transform:translate(-50%,-50%);width:min(520px,calc(100% - 36px));padding:14px 16px;background:#092334ed;border:1px solid #6c93a5;border-radius:12px;color:#e8f4fa;font-size:.875rem;pointer-events:none}
.station-lab .ls-map-status{margin:8px 22px;color:var(--ls-muted);font-size:.8rem;line-height:1.5}
.station-lab .ls-map-legend a{pointer-events:auto;color:#b9e8ff}
.station-lab .ls-dynamic .maplibregl-canvas:focus-visible{outline:none}
@media(max-width:480px){.station-lab .ls-basemap{width:100%}.station-lab .ls-map-empty{font-size:.8rem;padding:10px 12px;top:58%}.station-lab .ls-map-status{margin-left:14px;margin-right:14px}}

.station-lab .ls-legend-group{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.station-lab .ls-color{pointer-events:auto;display:grid;gap:4px;color:#e5f8ff;font-size:.8rem;width:185px;max-width:100%}.station-lab .ls-color select{width:100%;min-height:42px;color:#e5f8ff;background:#133b51;border-color:#3a647a;color-scheme:dark}
@media(max-width:480px){.station-lab .ls-basemap,.station-lab .ls-color{width:calc(50% - 3px)}.station-lab .ls-map-actions select{font-size:.75rem;padding-left:6px;padding-right:4px}}

.station-lab .ls-context-menu{position:fixed;inset:auto;margin:0;width:330px;max-width:calc(100vw - 16px);padding:18px;border:1px solid #507c94;border-radius:14px;background:#102e42;color:#e7f4fb;box-shadow:0 16px 55px #0008;overflow:auto;z-index:5}.station-lab .ls-context-menu::backdrop{background:#0002}.station-lab .ls-context-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.station-lab .ls-context-heading h3{font-size:1rem}.station-lab .ls-context-menu>label{display:flex;align-items:center;gap:10px;line-height:1.5;margin:14px 0}.station-lab .ls-context-menu>label:first-of-type{display:grid;gap:6px}.station-lab .ls-context-menu input{flex:none}.station-lab .ls-context-menu select{width:100%;background:#183f55;color:#e7f4fb;border-color:#507c94;color-scheme:dark}.station-lab .ls-context-menu button{background:#183f55;color:#e7f4fb;border-color:#507c94}.station-lab .ls-context-menu .ls-context-apply{width:100%;background:#117db2;color:white}.station-lab .ls-context-heading button{font-size:1.3rem;line-height:1;padding:6px 12px}

/* Match the existing public lightning map's light controls and blue primary actions. */
.station-lab{font-family:inherit;border:1px solid #c9dfe9;border-radius:18px;background:#f5faff}
.station-lab .ls-header{background:linear-gradient(120deg,#0e2e4d,#195b71)}
.station-lab .ls-header h1{font-size:clamp(1.5rem,3vw,2.2rem);line-height:1.25;margin:0;color:#f1faff}
.station-lab .ls-header h1 span{color:var(--ls-gold)}
.station-lab select,.station-lab button,.station-lab .ls-map-actions button,.station-lab .ls-basemap select,.station-lab .ls-color select{font:inherit;font-size:.8rem;min-height:40px;padding:8px 12px;color:#163f57;background:#f7fcff;border:1px solid #b9d4e4;border-radius:9px;color-scheme:light}
.station-lab [data-ls-load],.station-lab [data-ls-image-load]{background:#1978b9;border-color:#1978b9;color:#fff}
.station-lab .ls-map-actions button{font-weight:700;box-shadow:0 2px 7px #173d5420}
.station-lab .ls-basemap,.station-lab .ls-color{color:#2b5269;background:#f5fbfff2;border:1px solid #b8d6e4;border-radius:9px;padding:6px;font-weight:700}
.station-lab .ls-basemap select,.station-lab .ls-color select{width:100%;font-weight:500}
.station-lab input[type=checkbox]{accent-color:#148ba5}
.station-lab button:focus-visible,.station-lab select:focus-visible,.station-lab input:focus-visible,.station-lab .ls-map:focus-visible{outline-color:#ffbf32;outline-offset:2px}
.station-lab .ls-metrics article,.station-lab .ls-own-summary,.station-lab .ls-analyses article{background:#f2f9fd;border:1px solid #c9dfe9;border-radius:15px}
.station-lab .ls-map{border:1px solid #aacbde;border-radius:12px}
.station-lab .ls-map:fullscreen{border:0;border-radius:0}
.station-lab .ls-dot{width:14px;height:5px;border-radius:2px}
.station-lab .ls-context-menu{border-color:#8abbd2;border-radius:15px;background:#f5fbff;color:#183e57;box-shadow:0 14px 50px #00132266;color-scheme:light}
.station-lab .ls-context-menu::backdrop{background:transparent}
.station-lab .ls-context-heading h3{color:#173e59}
.station-lab .ls-context-menu select{background:#fff;color:#173e59;border-color:#b9d4e4;color-scheme:light}
.station-lab .ls-context-menu button{background:#e4f1f9;color:#214d67;border-color:#b9d4e4}
.station-lab .ls-context-menu .ls-context-apply{background:#167db8;color:#fff;font-weight:750}
@media(max-width:480px){.station-lab .ls-map-actions select{font-size:.75rem;padding:8px 5px}}

.ls-heading{margin-bottom:16px}
.ls-heading h1{font-size:clamp(1.5rem,2.2vw,2rem);line-height:1.25;margin:9px 0;color:#f1faff}
.station-lab .ls-station-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding:16px 22px;background:#eaf6fc;border-bottom:1px solid #c9dfe9;color:#2b5269}
.station-lab .ls-station-status strong{font-size:1rem;color:#153c55}
.station-lab .ls-map-heading{display:block;margin:22px 22px 14px}
.station-lab .ls-map-heading h3{margin:0 0 8px}
.station-lab .ls-map-heading p{max-width:100%;line-height:1.65;overflow-wrap:anywhere}
.station-lab .ls-map-filters{display:grid;grid-template-columns:minmax(190px,260px) minmax(0,1fr);gap:18px;align-items:center;margin:0 22px 16px;padding:16px;background:#eaf6fc;border:1px solid #c9dfe9;border-radius:12px}
.station-lab .ls-window{display:grid;gap:7px;align-items:start;font-weight:700;color:#2b5269}
.station-lab .ls-window select{width:100%;font-weight:500}
.station-lab .ls-filter-toggles{display:flex;align-items:center;flex-wrap:wrap;gap:14px 24px}
.station-lab .ls-filter-toggles label{line-height:1.5;margin:0}
.station-lab .ls-filter-toggles input,.station-lab .ls-label-toggle input{flex:none}
.station-lab .ls-label-toggle{pointer-events:auto;min-height:40px;padding:9px 12px;border:1px solid #b8d6e4;border-radius:9px;background:#f5fbfff2;color:#2b5269;font-weight:650;line-height:1.4;max-width:100%}
@media(max-width:760px){.station-lab .ls-map-filters{grid-template-columns:1fr;gap:15px}.station-lab .ls-filter-toggles{display:grid;gap:12px}.ls-heading{flex-wrap:wrap}}
@media(max-width:480px){.station-lab .ls-map-filters{margin-left:14px;margin-right:14px;padding:13px}.station-lab .ls-station-status{padding:14px}.station-lab .ls-label-toggle{width:100%}}
