/* Shared Ecowitt + Ambient sensor hierarchy and dual-unit chart readability.
   No global overrides, authentication changes, or inline styles. */
.ecowitt-panel .weather-sensor-groups,
.ambient-panel .weather-sensor-groups {
  display:flex;
  flex-direction:column;
  gap:17px;
  margin:14px 0 20px;
}
.ecowitt-panel .weather-sensor-group,
.ambient-panel .weather-sensor-group {min-width:0}
.ecowitt-panel .weather-sensor-group h3,
.ambient-panel .weather-sensor-group h3 {
  font-size:14px;
  font-weight:800;
  letter-spacing:.012em;
  line-height:1.5;
  margin:0 0 8px;
  color:#25475a;
}
.ecowitt-panel .weather-sensor-group .ecowitt-metrics,
.ambient-panel .weather-sensor-group .ecowitt-metrics {margin-top:0}
.ecowitt-panel .weather-sensor-group .ecowitt-metric,
.ambient-panel .weather-sensor-group .ecowitt-metric {
  min-height:88px;
  align-content:start;
}
.ecowitt-panel .weather-sensor-group .ecowitt-metric>strong,
.ambient-panel .weather-sensor-group .ecowitt-metric>strong {
  font-size:clamp(13px,1.06vw,16px);
  line-height:1.55;
  overflow-wrap:break-word;
  font-variant-numeric:tabular-nums;
}
.ecowitt-panel .weather-chart-guide,
.ambient-panel .weather-chart-guide {
  font-size:12px;
  line-height:1.6;
  color:#426174;
  margin:9px 0 6px;
}
html[data-theme=dark] .ecowitt-panel .weather-sensor-group h3,
html[data-theme=dark] .ambient-panel .weather-sensor-group h3 {color:#d3ebef}
html[data-theme=dark] .ecowitt-panel .weather-chart-guide,
html[data-theme=dark] .ambient-panel .weather-chart-guide {color:#bed4e4}
@media(max-width:520px){
 .ecowitt-panel .weather-sensor-groups,.ambient-panel .weather-sensor-groups{gap:13px}
 .ecowitt-panel .weather-sensor-group .ecowitt-metric,
 .ambient-panel .weather-sensor-group .ecowitt-metric{min-height:93px;padding:10px}
 .ecowitt-panel .weather-sensor-group .ecowitt-metric>strong,
 .ambient-panel .weather-sensor-group .ecowitt-metric>strong{font-size:13px}
 .ecowitt-panel .ecowitt-series-picker button,
 .ambient-panel .ecowitt-series-picker button{min-height:39px;font-size:12px}
 .ecowitt-panel .ecowitt-chart,
 .ambient-panel .ecowitt-chart{overflow-x:auto}
}

.ambient-panel .ambient-lightning-maps {
  border:1px solid #c1dbe2;
  background:#eaf5f6;
  border-radius:10px;
  padding:14px 15px;
  margin-top:15px;
}
.ambient-panel .ambient-lightning-maps p,
.ambient-panel .ambient-lightning-maps small {
  font-size:13px;line-height:1.6;color:#244b57;
}
.ambient-panel .ambient-lightning-maps p{margin:0 0 10px}
.ambient-panel .ambient-lightning-maps small{display:block;margin-top:10px}
.ambient-panel .ambient-map-links{display:flex;flex-wrap:wrap;gap:10px}
.ambient-panel .ambient-map-links a {
  display:inline-flex;align-items:center;
  border-radius:9px;border:1px solid #268d81;
  padding:10px 12px;background:#dff4ed;color:#075d50;
  font-weight:750;font-size:13px;line-height:1.45;
  text-decoration:none;
}
.ambient-panel .ambient-map-links a:focus-visible {
  outline:3px solid #118476;outline-offset:3px;
}
html[data-theme=dark] .ambient-panel .ambient-lightning-maps {
  border-color:#326473;background:#123542;
}
html[data-theme=dark] .ambient-panel .ambient-lightning-maps p,
html[data-theme=dark] .ambient-panel .ambient-lightning-maps small {color:#c7e7ed}
html[data-theme=dark] .ambient-panel .ambient-map-links a {
  background:#164f4c;color:#c8fbeb;border-color:#44b49d;
}
