/* Invert light tiles */
[data-theme="light"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(0.85) saturate(0.8); }
[data-theme="light"] .leaflet-overlay-pane { filter: none; }
[data-theme="light"] .leaflet-overlay-pane .leaflet-tile { filter: invert(1) hue-rotate(180deg) brightness(1.2) contrast(1.5); }
[data-theme="light"] .leaflet-shadow-pane { filter: invert(1) hue-rotate(180deg) contrast(1.3); }
[data-theme="light"] #panel { backdrop-filter: blur(24px) brightness(1.05); box-shadow: 0 2px 12px rgba(28,25,23,0.08), 0 0 0 1px rgba(120,113,108,0.06); }
[data-theme="light"] .leaflet-control-zoom { background: var(--ctrl-bg) !important; box-shadow: 0 2px 8px rgba(28,25,23,0.1) !important; }
[data-theme="light"] .leaflet-control-zoom a { color: var(--text) !important; }
[data-theme="light"] .leaflet-control-zoom a:hover { background: rgba(71,85,105,0.08) !important; color: var(--green) !important; }
[data-theme="light"] .ld-progress .fill { stroke: var(--green); }
[data-theme="light"] .ft-clock { color: var(--green); text-shadow: 0 0 4px rgba(71,85,105,0.3); }
[data-theme="light"] #map-controls { box-shadow: 0 2px 10px rgba(28,25,23,0.1); }
[data-theme="light"] .ctrl-btn { color: #78716C; }
[data-theme="light"] .ctrl-btn:hover { background: rgba(0,0,0,0.05); color: #1C1917; }
[data-theme="light"] .lang-btn.active { color: #1C1917; background: rgba(0,0,0,0.08); font-weight: 800; }
[data-theme="light"] #cloud-toggle.active { color: #0369A1; background: rgba(3,105,161,0.08); }
[data-theme="light"] #cloud-toggle.active svg { color: #0369A1; }
[data-theme="light"] #coord-bar { border-color: rgba(71,85,105,0.2); border-top-color: rgba(71,85,105,0.3); border-bottom-color: rgba(71,85,105,0.1); box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 1px 0 rgba(255,255,255,0.3) inset, 0 -1px 0 rgba(0,0,0,0.05) inset; }
[data-theme="light"] .coord-val { text-shadow: none; }
[data-theme="light"] .cond-box { background: rgba(71,85,105,0.04); border-color: rgba(71,85,105,0.12); }
[data-theme="light"] .cond-lbl { color: var(--green); }
[data-theme="light"] .cond-text li::before { color: var(--green); }
[data-theme="light"] #funny-toggle { color: var(--muted); }
[data-theme="light"] #funny-toggle:hover { color: var(--text); }
[data-theme="light"] #funny-toggle.active { color: var(--green); }
[data-theme="light"] .loc-pin { color: var(--green); }
[data-theme="light"] #loc-wrap { background: rgba(71,85,105,0.04); border-color: rgba(71,85,105,0.12); border-left-color: var(--green); }
[data-theme="light"] .m-bar { background: rgba(120,113,108,0.15); }
[data-theme="light"] #tip-bubble { background: rgba(28,25,23,0.95); color: #E8EAF6; border-color: rgba(71,85,105,0.3); }
[data-theme="light"] #tip-bubble .tip-desc { color: rgba(232,234,246,0.75); }
[data-theme="light"] .metric { box-shadow: 0 1px 3px rgba(28,25,23,0.06), 0 0 0 1px rgba(120,113,108,0.06); }
[data-theme="light"] #sheet-backdrop { background: rgba(28,25,23,0.25); }
[data-theme="light"] #credit-desktop, [data-theme="light"] #credit-mobile { color: rgba(28,25,23,0.35); }
[data-theme="light"] #credit-desktop a, [data-theme="light"] #credit-mobile a { color: rgba(28,25,23,0.55); text-shadow: none; }
[data-theme="light"] #credit-desktop a:hover, [data-theme="light"] #credit-mobile a:hover { color: rgba(28,25,23,0.8); }
[data-theme="light"] .shimmer, [data-theme="light"] #panel::before { background: linear-gradient(90deg, transparent 0%, #94A3B8 25%, #475569 50%, #94A3B8 75%, transparent 100%); background-size: 300% 100%; }
/* Light theme: eliminate all green */
[data-theme="light"] .pulse-dot { background: var(--green); box-shadow: 0 0 8px var(--green), 0 0 16px rgba(71,85,105,0.4); }
[data-theme="light"] .loc-pin { animation: none; filter: none; }
[data-theme="light"] .u-dot { background: #3B82F6; border-color: #fff; box-shadow: 0 0 0 2px #3B82F6, 0 0 12px rgba(59,130,246,0.5); animation: none; }
[data-theme="light"] #panel::before { background: linear-gradient(90deg, transparent 0%, #7C3AED 25%, #6366F1 50%, #7C3AED 75%, transparent 100%); background-size: 300% 100%; }
[data-theme="light"] #panel-toggle { background: rgba(232,234,246,0.96); border-color: var(--border); }
[data-theme="light"] #panel-toggle:hover { background: rgba(71,85,105,0.08); }
[data-theme="light"] #feedback-btn, [data-theme="light"] #share-btn { color: var(--green); border-color: rgba(71,85,105,0.2); }
[data-theme="light"] #feedback-btn:hover, [data-theme="light"] #share-btn:hover { border-color: var(--green); background: rgba(71,85,105,0.06); }
[data-theme="light"] .tip-hint { color: rgba(71,85,105,0.45); }
[data-theme="light"] .tip-hint:hover, [data-theme="light"] .metric.tip-active .tip-hint { color: var(--green); }
[data-theme="light"] .m-bar { background: rgba(120,113,108,0.12); }
[data-theme="light"] .ft-clock { color: var(--text); text-shadow: none; animation: none; }
[data-theme="light"] .ft-label { color: var(--muted); }
[data-theme="light"] .ft-clock { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); box-shadow: inset 0 1px 2px rgba(0,0,0,0.06); }
[data-theme="light"] .ft-label { color: var(--muted); }
[data-theme="light"] #sheet-handle::after { background: rgba(71,85,105,0.35); }
[data-theme="light"] #sheet-handle:active::after { background: rgba(71,85,105,0.6); }
[data-theme="light"] #sheet-tab { background: var(--glass); border-color: var(--border); color: var(--green); }
[data-theme="light"] .fb-type.active { color: var(--green); border-color: var(--green); background: rgba(71,85,105,0.06); }
[data-theme="light"] .fb-type:hover { border-color: rgba(71,85,105,0.25); }
[data-theme="light"] .fb-submit { background: var(--green); }
[data-theme="light"] #tip-bubble li::before { color: #A78BFA; }
[data-theme="light"] .hr { background: var(--border); }

@keyframes electrify-light {
  0%, 100% { text-shadow: 0 0 3px rgba(71,85,105,0.3); }
  30% { text-shadow: 0 0 3px rgba(71,85,105,0.3); }
  32% { text-shadow: 0 0 5px rgba(71,85,105,0.5), 0 0 10px rgba(71,85,105,0.2); }
  34% { text-shadow: 0 0 2px rgba(71,85,105,0.15); }
  36% { text-shadow: 0 0 6px rgba(71,85,105,0.6), 0 0 12px rgba(71,85,105,0.3); }
  38% { text-shadow: 0 0 3px rgba(71,85,105,0.3); }
}

/* Light theme: panel internals */
[data-theme="light"] .gauge-svg text { fill: var(--text) !important; }
[data-theme="light"] .gauge-svg g[id="g-ticks"] line { stroke: var(--muted) !important; }
[data-theme="light"] .m-lbl { color: var(--muted); }
[data-theme="light"] .m-unit { color: var(--muted); }
[data-theme="light"] .m-bar { background: rgba(120,113,108,0.12) !important; }
[data-theme="light"] .foot-actions button { color: var(--green); border-color: rgba(71,85,105,0.2) !important; }
[data-theme="light"] .foot-actions button:hover { border-color: var(--green) !important; background: rgba(71,85,105,0.06) !important; }
[data-theme="light"] .credit-year { color: var(--muted); }
[data-theme="light"] #no-location-msg svg { color: rgba(71,85,105,0.5) !important; }
[data-theme="light"] #no-location-msg div div:first-child { color: var(--muted) !important; }
[data-theme="light"] #no-location-msg div div:last-child { color: var(--muted) !important; }
[data-theme="light"] .gauge-svg text:last-of-type { fill: var(--muted) !important; }
[data-theme="light"] .gauge-svg g[id="g-labels"] { fill: var(--muted) !important; }
[data-theme="light"] .gauge-svg line[stroke="rgba(255,255,255,0.07)"] { stroke: rgba(28,25,23,0.08) !important; }
[data-theme="light"] #verdict { color: var(--text); }
/* Light theme status colors */
[data-theme="light"] .c-go   { color: #0369A1; }
[data-theme="light"] .c-good { color: #0E7490; }
[data-theme="light"] .c-warn { color: #B45309; }
[data-theme="light"] .c-no   { color: #DC2626; }
[data-theme="light"] .b-go   { background: #0369A1; box-shadow: 0 0 6px rgba(3,105,161,0.4); }
[data-theme="light"] .b-good { background: #0E7490; box-shadow: 0 0 6px rgba(14,116,144,0.4); }
[data-theme="light"] .b-warn { background: #B45309; box-shadow: 0 0 6px rgba(180,83,9,0.3); }
[data-theme="light"] .b-no   { background: #DC2626; box-shadow: none; }
/* Light theme tooltip colors */
[data-theme="light"] #tip-bubble .clr-go { color: #7DD3FC; }
[data-theme="light"] #tip-bubble .clr-warn { color: #FCD34D; }
[data-theme="light"] #tip-bubble .clr-no { color: #FCA5A5; }
/* Score ring */
[data-theme="light"] .gauge-svg line[stroke] { opacity: 0.8; }
/* Header gradient */
[data-theme="light"] #header { background: linear-gradient(to bottom, rgba(240,243,250,0.96) 0%, transparent 100%); }
/* Mini widget */
[data-theme="light"] #panel-mini { backdrop-filter: blur(24px) brightness(1.05); box-shadow: 0 2px 12px rgba(28,25,23,0.08); background: rgba(255,253,250,0.80); }
[data-theme="light"] #panel-mini circle:first-child { stroke: rgba(0,0,0,0.08); }
[data-theme="light"] #mini-kp { fill: var(--text) !important; filter: none !important; }
[data-theme="light"] #panel-mini text:last-of-type { fill: var(--muted) !important; }
