:root{color-scheme:dark;--bg:#131218;--card:#1c1b21;--line:#343339;--muted:#a6a6b0;--ink:#f6f5f8;--accent:#ebc304;--green:#82d7b1;--red:#f07878;--warn:#e5b875;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input{font:inherit}button,a{touch-action:manipulation}a{color:inherit}button{cursor:pointer;color:var(--ink);border:1px solid var(--line);background:var(--card);border-radius:9px;padding:10px 15px;font-size:12px;font-weight:600;min-height:40px}button:hover{background:#302e37}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button[aria-pressed=true]{color:var(--accent);border-color:#73641e}button:disabled{opacity:.4;cursor:default}.topbar{max-width:1344px;margin:auto;height:80px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font-size:13px;letter-spacing:.12em;font-weight:700;text-decoration:none}.brand-mark{font-size:12px;letter-spacing:-.03em;width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--accent);border-radius:8px;color:var(--accent)}.brand-live{font-size:10px;letter-spacing:.15em;font-weight:500;color:var(--muted);border-left:1px solid var(--line);padding-left:12px}.source-label{font-size:9px;letter-spacing:.18em;color:var(--muted)}main{max-width:1344px;margin:auto;padding:36px 32px 24px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:34px}.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:500;color:var(--muted);margin:0 0 10px}.eyebrow span{padding:0 10px;color:#5b5966}h1{font-size:clamp(38px,4.6vw,58px);font-weight:500;letter-spacing:-.055em;margin:0;line-height:1.12}.title-dot{color:var(--accent)}.subtitle{font-size:13px;color:var(--muted);margin:13px 0 0}.connection{text-align:right;flex-shrink:0}.status{display:inline-block;border:1px solid #58483a;border-radius:30px;color:var(--warn);padding:9px 14px;font-size:12px}.status:before{content:'●';margin-right:8px;font-size:9px}.status.online{border-color:#315c4b;color:var(--green);background:#82d7b108}.status.offline{border-color:#824545;color:var(--red);background:#f0787810}.connection p{font-size:11px;color:var(--muted);margin:10px 0 0}.connection p:last-child{color:#8d8996;margin-top:5px}.connection.online p,.connection.online p:last-child{color:var(--green)}.connection.offline p,.connection.offline p:last-child{color:var(--red)}.connection-note{padding:13px 16px;margin:0 0 22px;border:1px solid #824545;border-radius:10px;background:#f0787808;color:var(--red);font-size:12px;line-height:1.6}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:28px 0 16px}.section-heading h2{font-size:19px;letter-spacing:-.025em;font-weight:500;margin:0;display:flex;align-items:center;gap:14px}.section-number{color:#918b9c;font-size:10px;letter-spacing:.05em}.section-detail{color:var(--muted);font-size:11px}.map-actions{display:flex;gap:7px}.map-actions span{font-variant-numeric:tabular-nums;margin-left:7px;color:var(--muted)}#fullscreen{font-size:19px;padding:5px 12px}.map-shell{position:relative;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#252a30;height:438px;isolation:isolate}#yacht-map{width:100%;height:100%;z-index:0;background:#252a30}.map-empty{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(ellipse at center,#29323b,#1d2028);color:var(--muted);font-size:14px;z-index:1}.map-badge{position:absolute;bottom:28px;left:16px;z-index:2;display:flex;align-items:center;gap:8px;background:#131218e8;border:1px solid #ffffff20;padding:10px 12px;border-radius:8px;font-size:11px;pointer-events:none;box-shadow:0 3px 10px #0002}.map-badge #position-state{color:var(--muted)}.boat-key{background:var(--accent);height:7px;width:7px;border-radius:50%}.map-caption{display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:11px;line-height:1.65;padding:11px 2px}.map-caption #position{font-variant-numeric:tabular-nums}.map-caption #ais-status{text-align:right;max-width:50%}.map-error{position:absolute;top:14px;left:60px;right:16px;background:#131218ee;padding:10px 12px;z-index:3;color:var(--warn);font-size:11px;border-radius:7px}.map-shell:fullscreen,.map-shell.expanded{width:100vw!important;height:100dvh!important;border-radius:0}.map-shell.expanded{position:fixed;inset:0;z-index:9999}.exit-map{position:absolute;right:15px;top:15px;z-index:1001;background:#131218}.leaflet-control-attribution{font-size:9px!important;color:#333!important}.leaflet-control-attribution a{color:#17526f!important}.leaflet-bar{border:1px solid #666!important;box-shadow:0 2px 8px #0002!important}.leaflet-bar a{background:#1c1b21!important;color:white!important;border-bottom-color:#444!important}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#1c1b21;color:var(--ink)}.leaflet-popup-content{line-height:1.8;font-family:inherit}.leaflet-tooltip{font-family:inherit;font-size:11px;background:#131218e8;border:1px solid #ffffff30;color:white;box-shadow:none}.leaflet-tooltip-top:before{border-top-color:#131218}.own-boat,.ais-target{background:none;border:0}.own-boat svg{width:36px;height:42px;filter:drop-shadow(0 2px 3px #0009)}.own-boat.stale,.ais-target.stale{opacity:.55}.ais-target svg{width:19px;height:25px;filter:drop-shadow(0 1px 2px #0009)}.instruments{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.instrument{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:15px 12px 13px;min-width:0;position:relative}.instrument-head{display:flex;align-items:center;justify-content:space-between;padding:0 2px;gap:8px}.instrument-head h3{font-size:10px;font-weight:600;letter-spacing:.1em;color:#d7d5de;margin:0}.led{display:inline-block;background:#716f77;width:5px;height:5px;border-radius:50%;flex-shrink:0}.instrument.fresh .led,.energy-card.fresh .led,.additional-card.fresh .led,.battery-reading.fresh .led,.battery-panel.fresh>.energy-head .led,.battery-panel.fresh>.battery-heading .led,.tank-card.fresh>.energy-head .led,.tank-card.fresh>.tank-head .led{background:var(--accent);box-shadow:0 0 8px #ebc30455}.instrument.stale .led,.energy-card.stale .led,.additional-card.stale .led,.battery-reading.stale .led,.battery-panel.stale>.energy-head .led,.battery-panel.stale>.battery-heading .led,.tank-card.stale>.energy-head .led,.tank-card.stale>.tank-head .led,.instrument.missing .led,.energy-card.missing .led,.additional-card.missing .led,.battery-reading.missing .led,.battery-panel.missing>.energy-head .led,.battery-panel.missing>.battery-heading .led,.tank-card.missing>.energy-head .led,.tank-card.missing>.tank-head .led{background:var(--red);box-shadow:0 0 8px #f0787833}.dial{position:relative;aspect-ratio:1;width:100%;max-width:182px;margin:7px auto 0}.dial svg{display:block;width:100%;height:100%;overflow:visible}.dial-base{fill:none;stroke:#34323c;stroke-width:2}.dial-progress{fill:none;stroke:var(--accent);stroke-width:2.6;stroke-linecap:round}.dial-tick{stroke:#65616d;stroke-width:1}.dial-tick.major{stroke:#aaa6b3;stroke-width:1.2}.dial-number{fill:#aaa5b3;font-size:7px;font-family:inherit}.dial-needle{fill:var(--accent)}.dial-value{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding-top:10px;pointer-events:none}.dial-value strong{color:var(--accent);font-size:clamp(25px,2.7vw,38px);letter-spacing:-.045em;line-height:1.15;font-weight:500;font-variant-numeric:tabular-nums}.dial-value span{font-size:10px;color:var(--muted);margin-top:4px}.instrument-label{text-align:center;font-size:10px;line-height:1.45;color:var(--muted);margin:2px 0 0;min-height:15px}.instrument-age{text-align:center;font-size:9px;color:#9b95a5;margin:6px 0 0;min-height:12px}.instrument.missing .dial-value strong,.energy-card.missing .energy-value strong,.additional-card.missing strong,.all-readings tr.missing td:nth-child(2){color:var(--muted)}.energy-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.energy-card{padding:20px 22px;background:var(--card);border:1px solid var(--line);border-radius:12px;min-width:0}.energy-card.primary{border-color:#696020;background:linear-gradient(120deg,#302d20,#1c1b21)}.energy-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.energy-head>h3{flex:1;min-width:0}.energy-head h3,.additional-head h3,.battery-heading h3,.tank-head h3{min-width:0;overflow-wrap:anywhere}.additional-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.additional-card .additional-head h3{margin:0}.battery-heading,.tank-head{display:flex;align-items:center;gap:10px;min-width:0}.battery-detail-label:has(.led){display:flex;align-items:center;justify-content:space-between;gap:8px}.energy-card h3{font-weight:400;font-size:11px;color:var(--muted);margin:0}.energy-icon{color:var(--accent);font-size:16px}.energy-value{display:flex;align-items:baseline;gap:7px;margin-top:20px}.energy-value strong{color:var(--accent);font-size:34px;line-height:1.1;letter-spacing:-.04em;font-weight:500;font-variant-numeric:tabular-nums}.energy-value span{color:var(--muted);font-size:12px}.energy-card p{font-size:10px;color:var(--muted);margin:12px 0 0;line-height:1.4}.additional-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;overflow:hidden}.additional-card{padding:18px 22px;background:#18171d;min-width:0;border-right:1px solid var(--line)}.additional-card:last-child{border-right:0}.additional-card h3{font-size:11px;font-weight:400;color:var(--muted);margin:0 0 13px}.additional-card strong{color:var(--accent);font-size:25px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.035em}.additional-card .small-unit{font-size:12px;color:var(--muted);margin-left:6px}.additional-card p{font-size:10px;line-height:1.5;color:var(--muted);margin:9px 0 0}.all-readings{margin-top:30px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}summary{cursor:pointer;padding:19px 2px;font-size:12px;color:var(--muted)}summary #metric-count{margin-left:10px;padding:3px 7px;border:1px solid var(--line);border-radius:4px;font-size:10px}.readings-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 2px 18px;gap:15px;font-size:12px;color:var(--muted)}input{width:240px;max-width:100%;background:var(--card);border:1px solid var(--line);border-radius:8px;color:var(--ink);padding:10px 12px;font-size:12px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{color:var(--muted);font-size:10px;font-weight:500;background:#1c1b21;padding:12px 16px;border-bottom:1px solid var(--line)}td{font-size:12px;padding:13px 16px;border-bottom:1px solid #29272f;white-space:nowrap}td:nth-child(2){font-variant-numeric:tabular-nums;color:var(--accent);font-size:14px}td:last-child{color:var(--muted);font-size:11px}.metric-meta{font-size:9px;color:#9b95a5;margin-top:5px}.unit{font-size:11px;color:var(--muted);margin-left:5px}#no-results{text-align:center;font-size:12px;color:var(--muted);padding:24px}footer{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:27px 0 5px;color:#9b95a5;font-size:10px;line-height:1.7}footer strong{font-size:11px;letter-spacing:.13em;color:var(--muted);display:block;font-weight:600}footer span{display:block}footer p{margin:0}#updated{text-align:right}
@media(min-width:1500px){main{padding-top:44px}.map-shell{height:470px}}@media(max-width:1000px){.instruments{grid-template-columns:repeat(3,minmax(0,1fr))}.dial{max-width:160px}.dial-value strong{font-size:36px}.energy-card{padding:18px 16px}.energy-value strong{font-size:29px}.section-detail{font-size:10px}.map-shell{height:390px}}
@media(max-width:650px){.topbar{height:64px;padding:0 18px}.source-label{display:none}main{padding:25px 16px 16px}.page-heading{display:block;margin-bottom:24px}h1{font-size:42px}.subtitle{font-size:12px}.connection{display:flex;flex-wrap:wrap;align-items:center;gap:7px 11px;text-align:left;margin-top:22px}.connection p{margin:0;font-size:10px}.connection p:last-child{margin:0}.status{font-size:10px;padding:7px 10px}.section-heading{gap:10px;margin:23px 0 12px;flex-wrap:wrap}.section-heading h2{font-size:17px;gap:10px}.section-detail{font-size:10px}.map-actions{gap:5px}.map-actions button{padding:7px 9px;font-size:10px;min-height:36px}#fullscreen{font-size:19px;padding:3px 9px}.map-shell{height:350px;border-radius:11px}.map-badge{font-size:10px;left:10px;bottom:28px;padding:8px 10px}.map-caption{flex-direction:column;gap:3px;font-size:10px}.map-caption #ais-status{max-width:none;text-align:left}.map-error{left:50px;right:10px;font-size:10px}.instruments{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.instrument{padding:12px 5px 10px;border-radius:10px}.instrument-head{padding:0 5px}.instrument-head h3{font-size:9px}.dial-value strong{font-size:28px}.dial-value span{font-size:9px}.instrument-label{font-size:9px}.instrument-age{font-size:8px}.energy-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.energy-card{padding:16px}.energy-value{margin-top:16px}.energy-value strong{font-size:31px}.energy-card p{font-size:9px}.additional-grid{grid-template-columns:1fr 1fr}.additional-card{padding:16px;border-bottom:1px solid var(--line)}.additional-card:nth-child(2){border-right:0}.additional-card:nth-child(n+3){border-bottom:0}.additional-card strong{font-size:24px}.additional-card p{font-size:9px}.all-readings{margin-top:23px}.readings-toolbar{align-items:flex-start;flex-direction:column;gap:10px}input{width:100%}td,th{padding:12px}footer{align-items:flex-start;flex-wrap:wrap;gap:15px}footer p{max-width:65%}#updated{width:100%;text-align:left}.section-number{font-size:9px}}@media(max-width:360px){.instruments{grid-template-columns:repeat(2,minmax(0,1fr))}.map-actions{width:100%}.map-shell{height:310px}.dial-value strong{font-size:31px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,color .15s}.dial-progress{transition:stroke-dasharray .4s}}
/* Shared sky and weather, with Selene page layout. */
#weather-slot{margin:26px 0}#dashboard #weather-slot #yacht-weather{position:static;inset:auto;width:100%;max-width:none;margin:0;padding:22px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:none;font-family:inherit}#dashboard #weather-slot #yacht-weather .weather-title{font-size:19px;font-weight:500;margin:0 0 14px;letter-spacing:-.025em}#dashboard #weather-slot #yacht-weather .weather-model{width:230px;max-width:100%;height:34px;font-size:12px}#dashboard #weather-slot #yacht-weather .weather-status{font-size:11px;color:var(--muted);margin:12px 0}#dashboard #weather-slot #yacht-weather .weather-rows{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}#dashboard #weather-slot #yacht-weather .weather-row{display:flex;flex-direction:column;gap:9px;padding:12px 0;margin:0}#dashboard #weather-slot #yacht-weather .weather-row strong{font-size:22px;font-weight:500;letter-spacing:-.03em}#dashboard #weather-slot #yacht-weather .weather-row span{font-size:11px}#dashboard #weather-slot #yacht-weather .weather-footer{margin-top:14px}#dashboard #weather-slot #yacht-weather .weather-credit{font-size:10px}
#sky-slot #live-sky{margin:32px 0 26px}#sky-slot #live-sky>h2{display:flex;align-items:center;gap:14px;font-size:19px;font-weight:500;letter-spacing:-.025em;margin:0 0 13px}#sky-slot #live-sky>p{color:var(--muted);font-size:11px;line-height:1.6}#sky-slot .sky-panel canvas{height:400px}#sky-slot #live-sky .sky-event{padding:16px 18px}#sky-slot #live-sky .sky-event-label{font:11px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--muted)}#sky-slot #live-sky .sky-event-time{font-size:14px!important}#sky-slot #live-sky .sky-events-note{font-size:10px}#sky-slot #live-sky .sky-tools{justify-content:flex-end}#sky-slot .sky-tools>button:not(.sky-fullscreen){display:none}#sky-slot #live-sky .sky-fullscreen{border-color:#73641e;color:var(--accent);border-radius:9px;font:600 12px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;padding:10px 15px}
#sky-slot .sky-panel:fullscreen>.sky-tools,#sky-slot .sky-expanded>.sky-tools{position:absolute;top:12px;left:12px;right:12px;z-index:5;display:flex;justify-content:center!important;align-items:center;margin:0;padding:10px;background:#131218ed;border:1px solid #343339;border-radius:12px}#sky-slot .sky-panel:fullscreen>.sky-tools>button,#sky-slot .sky-expanded>.sky-tools>button{display:inline-block}#sky-slot .sky-panel:fullscreen .sky-readout,#sky-slot .sky-expanded .sky-readout{top:var(--sky-toolbar-bottom,100px)}#sky-slot .sky-expanded{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:99999!important;border-radius:0!important}#sky-slot .sky-panel:fullscreen canvas,#sky-slot .sky-expanded canvas{height:100dvh!important}#sky-slot .sky-panel:not(:fullscreen):not(.sky-expanded) canvas{pointer-events:none;touch-action:auto;cursor:default}#sky-slot .sky-panel:not(:fullscreen):not(.sky-expanded) .sky-readout{display:none}
@media(max-width:650px){#dashboard #weather-slot #yacht-weather{padding:18px}#dashboard #weather-slot #yacht-weather .weather-rows{grid-template-columns:1fr 1fr;gap:8px 16px}#dashboard #weather-slot #yacht-weather .weather-row strong{font-size:20px}#sky-slot .sky-panel canvas{height:330px}#sky-slot #live-sky>h2{font-size:17px;gap:10px}#sky-slot #live-sky .sky-events{grid-template-columns:1fr 1fr;gap:8px}#sky-slot #live-sky .sky-event{padding:13px}#sky-slot #live-sky .sky-event-time{font-size:12px!important}}
#sky-slot #live-sky .sky-event{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:14px;align-items:center}#sky-slot .sky-event-icon{grid-column:1;grid-row:1/3;display:grid;place-items:center;width:44px;height:48px;border:1px solid #ebc30426;border-radius:12px;background:#ebc30409;color:#ebc304}#sky-slot .sky-event-icon.moon{color:#b5c8f6;border-color:#b5c8f630;background:#b5c8f609}#sky-slot .sky-event-icon svg{width:29px;height:32px}#sky-slot .sky-event-label,#sky-slot .sky-event-time{grid-column:2}#sky-slot #live-sky .sky-event-time{line-height:1.5}@media(max-width:650px){#sky-slot #live-sky .sky-event{grid-template-columns:30px minmax(0,1fr);column-gap:10px}#sky-slot .sky-event-icon{width:30px;height:38px;border-radius:9px}#sky-slot .sky-event-icon svg{width:23px;height:27px}}
.map-layers{position:absolute;right:14px;top:14px;z-index:4}#map-layers-toggle{display:grid;place-items:center;width:40px;height:40px;padding:8px;background:#131218ef;border-color:#ffffff40;box-shadow:0 2px 10px #0003}#map-layers-toggle svg{width:23px;height:23px}#map-layer-menu{position:absolute;top:47px;right:0;width:204px;background:#19181ef5;border:1px solid #5a5664;border-radius:12px;padding:13px;box-shadow:0 10px 30px #0005;display:grid;gap:6px}.layers-title{color:var(--muted);font-size:10px;letter-spacing:.08em;padding:0 3px 6px}#map-layer-menu button{text-align:left;padding:10px 12px;font-size:12px;font-weight:400;background:#24222c}#map-layer-menu button[aria-pressed=true]{background:#ebc30412;border-color:#ebc304;color:#ebc304}#map-layer-note{font-size:9px;line-height:1.5;color:var(--muted);padding:4px 3px 0}#yacht-map[data-palette=night] .live-base-tiles{filter:invert(1) hue-rotate(180deg) saturate(.7) brightness(.85) contrast(.95)}.map-error{right:64px}.map-shell:fullscreen .map-layers,.map-shell.expanded .map-layers{top:65px}

/* Keep mobile cards readable without clipping values or hiding page overflow. */
.page-heading>div,.section-heading>*,.energy-head h3,.weather-row,.sky-event-time{min-width:0}
.subtitle,.connection p,.section-detail,.instrument-label,.instrument-age,.energy-card p,.additional-card p,.map-caption,.sky-event-time{overflow-wrap:anywhere}
.energy-icon,.led,.boat-key{flex-shrink:0}
.energy-value{flex-wrap:wrap}
#dashboard #weather-slot #yacht-weather .weather-row strong{white-space:normal;overflow-wrap:anywhere;line-height:1.35}
#map-layer-menu{max-height:calc(100dvh - 125px);overflow-y:auto;overscroll-behavior:contain}
.map-badge{max-width:calc(100% - 24px);flex-wrap:wrap}
.dial{container-type:inline-size}
.dial-value strong{font-size:clamp(22px,25cqw,38px);max-width:100%;overflow-wrap:anywhere}
@media(max-width:650px){
 
 #dashboard #weather-slot #yacht-weather .weather-model{min-height:44px}
 #map-layers-toggle{width:44px;height:44px}
 #map-layer-menu{top:51px}
 .map-actions button{min-height:44px}
 .table-wrap table{table-layout:fixed}
 .table-wrap th,.table-wrap td{padding:11px 7px;white-space:normal;overflow-wrap:anywhere}
 .table-wrap th:first-child{width:42%}.table-wrap th:nth-child(2){width:27%}.table-wrap th:last-child{width:31%}
 .table-wrap td{font-size:11px;line-height:1.5}.table-wrap td:nth-child(2){font-size:12px}.table-wrap td:last-child{font-size:10px}
 .table-wrap .unit{display:block;margin-left:0}
 #sky-slot #live-sky .sky-fullscreen{min-height:44px}
}
@media(max-width:480px){
 .instruments{grid-template-columns:repeat(2,minmax(0,1fr))}
 .instrument{padding:14px 9px}.instrument-label{font-size:10px}.instrument-age{font-size:9px}
 #sky-slot #live-sky .sky-events{grid-template-columns:1fr}
 #sky-slot #live-sky .sky-event{grid-template-columns:44px minmax(0,1fr);column-gap:14px;padding:15px}
 #sky-slot .sky-event-icon{width:44px;height:48px}
 #sky-slot .sky-event-icon svg{width:29px;height:32px}
 #sky-slot #live-sky .sky-event-time{font-size:13px!important}
 #dashboard #weather-slot #yacht-weather .weather-row strong{font-size:18px}
 #dashboard #weather-slot #yacht-weather{padding:16px}
 .energy-value strong{font-size:clamp(26px,8vw,31px)}
 .map-actions{width:100%}
}
@media(max-height:430px){
 .map-shell:fullscreen .map-layers,.map-shell.expanded .map-layers{top:12px;right:180px}
 .map-shell:fullscreen #map-layer-menu,.map-shell.expanded #map-layer-menu{max-height:calc(100dvh - 80px)}
 #sky-slot .sky-panel:fullscreen>.sky-tools,#sky-slot .sky-expanded>.sky-tools{max-height:40dvh;overflow-y:auto}
}

.topbar{gap:18px}.language-switch{display:flex;gap:4px;margin-left:auto;flex-shrink:0}.language-switch button{min-width:44px;min-height:44px;padding:8px;font-size:11px;letter-spacing:.02em}.language-switch button[aria-pressed=true]{background:#ebc30412}
@media(max-width:480px){.topbar{gap:8px;padding:0 16px}.brand{gap:8px;font-size:12px;letter-spacing:.08em}.brand-live{padding-left:8px;font-size:9px}.language-switch{gap:2px}.language-switch button{min-width:38px;padding:6px}}

/* Charging is an estimate from each system's voltage, never an inferred discharge. */
.battery-icon{display:block;width:30px;height:24px;color:var(--muted)}.battery-icon svg{display:block;width:100%;height:100%}.battery-bolt{display:none}.battery-state{font-size:11px;line-height:1.5;color:var(--muted);margin-top:12px;overflow-wrap:anywhere}
.energy-card[data-charge-state=charging-likely] .battery-icon,.energy-card[data-charge-state=charging-likely] .battery-state{color:var(--green)}.energy-card[data-charge-state=charging-likely] .battery-bolt{display:block}.energy-card[data-charge-state=charging-likely] .battery-neutral{display:none}
.energy-estimate-note{font-size:11px;line-height:1.5;color:var(--muted);margin:12px 2px 0}.energy-explanation{color:var(--muted);font-size:11px;line-height:1.7}.energy-explanation summary{font-size:11px;padding:10px 2px;min-height:36px}.energy-explanation p{margin:0 0 10px;max-width:760px;overflow-wrap:anywhere}.energy-card:has(.battery-state) .energy-value{margin-top:15px}
@media(max-width:650px){.battery-state{font-size:11px}.energy-explanation summary{min-height:44px}}

@media(max-width:650px){.energy-head{min-height:32px}.energy-card h3{line-height:1.4}}
/* Axioma's GX equipment uses the same instrument palette and individual timestamps. */
.battery-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:12px}.battery-panel,.tank-card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:22px;min-width:0}.battery-panel>.energy-head h3,.tank-card h3{font-size:13px;font-weight:500;margin:0;color:var(--ink);line-height:1.5;overflow-wrap:anywhere}.battery-summary{display:grid;grid-template-columns:140px minmax(0,1fr);gap:30px;align-items:center;margin-top:22px}.soc-ring,.tank-ring{--fill:0%;border-radius:50%;aspect-ratio:1;background:conic-gradient(var(--accent) var(--fill),#34323c 0);padding:4px;max-width:140px;width:100%}.soc-inner{display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:50%;height:100%;width:100%;background:var(--card);line-height:1.2}.soc-inner strong{color:var(--accent);font-size:35px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.04em}.soc-inner span{font-size:11px;color:var(--muted);margin-top:5px}.battery-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.battery-reading{min-width:0}.battery-detail-label{display:block;color:var(--muted);font-size:11px;margin-bottom:9px;line-height:1.5;overflow-wrap:anywhere}.battery-reading strong{color:var(--accent);font-size:29px;font-weight:500;letter-spacing:-.035em;font-variant-numeric:tabular-nums}.battery-reading p,.battery-measured,.tank-stamp{font-size:10px;color:var(--muted);line-height:1.5;margin:10px 0 0;overflow-wrap:anywhere}.battery-reading .unit{white-space:nowrap}.battery-state{margin-top:20px}.battery-panel .battery-bolt,.battery-panel .battery-flow{display:none}.battery-panel[data-charge-state=charging] .battery-bolt,.battery-panel[data-charge-state=discharging] .battery-flow{display:block}.battery-panel[data-charge-state=charging] .battery-neutral,.battery-panel[data-charge-state=discharging] .battery-neutral{display:none}.battery-panel[data-charge-state=charging] .battery-icon,.battery-panel[data-charge-state=charging] .battery-state{color:var(--green)}.battery-panel[data-charge-state=discharging] .battery-icon,.battery-panel[data-charge-state=discharging] .battery-state{color:var(--accent)}.battery-panel.missing .soc-inner strong,.battery-reading.missing strong,.tank-card.missing .soc-inner strong,.tank-details>strong.missing,.tank-details>span.missing:last-child{color:var(--muted)}.tank-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tank-summary{display:grid;grid-template-columns:105px minmax(0,1fr);gap:20px;align-items:center;margin-top:22px}.tank-ring .soc-inner strong{font-size:30px}.tank-details{min-width:0}.tank-details>strong{display:block;color:var(--accent);font-size:24px;font-weight:500;letter-spacing:-.025em;overflow-wrap:anywhere}.tank-details>span:last-child{font-size:13px;display:block;color:var(--accent);line-height:1.5;overflow-wrap:anywhere}.tank-capacity-label{font-size:10px;color:var(--muted);display:block;margin-top:10px;margin-bottom:3px}.tank-stamp{margin-top:18px}.state-card .energy-value strong{font-size:21px;line-height:1.35;overflow-wrap:anywhere}.additional-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.additional-card:nth-child(-n+3){border-bottom:1px solid var(--line)}.additional-card:nth-child(3n){border-right:0}.connection-note{line-height:1.6}
@media(max-width:1000px){.battery-details{grid-template-columns:repeat(2,minmax(0,1fr))}.tank-summary{grid-template-columns:85px minmax(0,1fr);gap:12px}.tank-card{padding:18px}.tank-details>strong{font-size:21px}.tank-ring .soc-inner strong{font-size:27px}}
@media(max-width:700px){.tank-grid{grid-template-columns:1fr}.tank-summary{grid-template-columns:105px minmax(0,1fr);gap:24px}.tank-card{padding:20px}.tank-details>strong{font-size:27px}.tank-ring .soc-inner strong{font-size:32px}.battery-summary{grid-template-columns:110px minmax(0,1fr);gap:22px}.battery-panel{padding:20px}.battery-details{gap:18px 14px}.battery-reading strong{font-size:25px}.battery-reading .unit{font-size:10px}.battery-detail-label{font-size:10px}.additional-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.additional-card{border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}.additional-card:nth-child(2n){border-right:0!important}.additional-card:nth-last-child(-n+2){border-bottom:0!important}}
@media(max-width:480px){.battery-panel{padding:17px}.battery-summary{grid-template-columns:87px minmax(0,1fr);gap:16px}.battery-details{gap:17px 9px}.battery-reading strong{font-size:20px}.battery-reading p{font-size:9px}.battery-reading .unit{font-size:9px;margin-left:3px}.battery-detail-label{font-size:9px;min-height:27px}.soc-ring .soc-inner strong{font-size:26px}.soc-inner span{font-size:10px}.battery-measured,.tank-stamp{font-size:9px}.state-card .energy-value strong{font-size:18px}.tank-summary{grid-template-columns:95px minmax(0,1fr);gap:24px}}
@media(max-width:350px){.battery-summary{grid-template-columns:76px minmax(0,1fr);gap:12px}.battery-reading strong{font-size:18px}.soc-ring .soc-inner strong{font-size:23px}.battery-panel{padding:14px}.battery-details{column-gap:8px}}
.additional-card .quality-mark{display:inline-block;max-width:100%;margin:0 0 9px;padding:4px 7px;border:1px solid #796047;border-radius:5px;color:var(--warn);font-size:9px;line-height:1.4;overflow-wrap:anywhere}.additional-card.unverified strong{color:var(--warn)}
