.theme-toggle{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;margin:0 0 12px;padding:10px;border:1px solid #315165;border-radius:8px;background:#142d40;color:#e3edf2;cursor:pointer;font:600 12px RGTechText,sans-serif}.theme-toggle b{font-size:18px}.theme-toggle:focus-visible{outline:2px solid #63dfcc;outline-offset:2px}
html[data-theme=dark]{color-scheme:dark;--bg:#101923;--ink:#e1eaf0;--muted:#a8bbc8;--line:#344654;--green:#53d5bf;--lime:#63dfcc;--shadow:0 3px 18px #0003}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] :is(.panel,.stat,.settings-card,.fleet-card,.auth-form-wrap,.event-drawer,.assistant-floating,.assistant-floating-bar,.assistant-user-guide>div,.history-filters,.assistant-conversation,.assistant-composer,.device-card){background:#192733;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(h1,h2,h3,h4,strong,label,td,dt){color:inherit}
html[data-theme=dark] :is(p,small,.help,.breadcrumb,.section-header p,.section-intro p){color:var(--muted)}
html[data-theme=dark] :is(input,select,textarea){background:#101d28;color:#e1eaf0;border-color:#465c6c}
html[data-theme=dark] :is(input,select,textarea)::placeholder{color:#9bb0bf}
html[data-theme=dark] :is(.button,.icon-button){background:#233746;color:#e1eaf0;border-color:#4b6170}
html[data-theme=dark] .button:hover{background:#304b5e}
html[data-theme=dark] .button.primary{background:#007e80;color:#fff;border-color:#299da0}
html[data-theme=dark] :is(th,thead,.table-footer,.map-footer){background:#20313e;color:#b8cbd6;border-color:var(--line)}
html[data-theme=dark] :is(td,tr,.panel-header,.topbar,.main-footer,.drawer-section,.assistant-floating-bar){border-color:var(--line)}
html[data-theme=dark] tbody tr:hover{background:#213847}
html[data-theme=dark] :is(.notice,.history-chart-readout,.assistant-message,.assistant-filter-box){background:#16373d;color:#cfede8;border-color:#35626a}
html[data-theme=dark] :is(.eco-rating>strong,.eco-details>summary,.text-button,a){color:#70dfc4}
html[data-theme=dark] .security-panel .eco-rating>strong{color:#ff96a8}
html[data-theme=dark] .eco-leaf{color:#3e5360}
html[data-theme=dark] .eco-leaf-fill{color:#52c990}
html[data-theme=dark] .security-panel .eco-leaf-fill{color:#ed748a}
html[data-theme=dark] #history-chart text{fill:#b8cbd6}
html[data-theme=dark] #history-chart line{stroke:#48606e}
html[data-theme=dark] :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-control-zoom a,.leaflet-tooltip){background:#1c2e3c;color:#e1eaf0;border-color:#607887}
html[data-theme=dark] .history-stop-label{background:transparent;color:#18242c}
html[data-theme=dark] .form-error{color:#ff9b9b}
@media(max-width:1000px){.theme-toggle span{display:none}.theme-toggle{padding:8px 0}.navigation-expanded .theme-toggle span{display:inline}}

html[data-theme=dark] #history-chart .timeline-line{stroke:#59dfd0}

.topbar-right .theme-toggle{width:auto;margin:0;flex-shrink:0;padding:8px 12px}.topbar-right{flex-wrap:wrap}@media(max-width:720px){.topbar-right .theme-toggle{padding:7px 9px;margin-right:8px}}

.topbar-right .theme-toggle,.topbar-right .live-badge{box-sizing:border-box;height:26px;line-height:14px}.topbar-right .theme-toggle{padding:5px 10px;font-size:10px;border-radius:5px;gap:6px}.topbar-right .theme-toggle b{font-size:12px;line-height:14px}@media(max-width:720px){.topbar-right .theme-toggle{padding:5px 7px;font-size:8px}}

.rating-toggle{cursor:pointer;list-style:none;min-height:36px;flex-direction:row;gap:14px}.rating-toggle::-webkit-details-marker{display:none}.rating-toggle:after{content:'⌄';font-size:20px;color:var(--muted);flex-shrink:0}.rating-disclosure[open]>.rating-toggle:after{content:'⌃'}.rating-toggle .eco-rating{margin-left:auto;display:flex;align-items:center;gap:12px}.rating-toggle .eco-rating>strong{margin:0;font-size:20px;white-space:nowrap}.rating-toggle .eco-leaf,.rating-toggle .eco-leaf svg{width:28px;height:28px}.rating-expanded{border-top:1px solid var(--line);margin-top:16px;padding-top:6px}.rating-toggle:focus-visible{outline:2px solid #00a98f;outline-offset:6px;border-radius:4px}@media(max-width:600px){.eco-top.rating-toggle{flex-direction:row;align-items:center}.rating-toggle h3{font-size:14px}.rating-toggle .eco-rating{gap:7px}.rating-toggle .eco-leaves{gap:1px}.rating-toggle .eco-leaf,.rating-toggle .eco-leaf svg{width:20px;height:20px}.rating-toggle .eco-rating>strong{font-size:16px}}

.rating-disclosure{margin:0;padding:0}.rating-toggle{padding:0;color:var(--ink)}.rating-toggle h3{margin:0;color:var(--ink)}

.history-map-title{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0}.history-map-title h3{margin:0}.history-mini-ratings{display:flex;flex-direction:column;gap:3px;flex-shrink:0}.history-mini-ratings .eco-leaves{gap:2px}.history-mini-ratings .eco-leaf,.history-mini-ratings .eco-leaf svg{width:14px;height:14px}.history-mini-ratings .mini-hearts .eco-leaf-fill{color:#c74559}html[data-theme=dark] .history-mini-ratings .mini-hearts .eco-leaf-fill{color:#ed748a}
