/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; }

body {
  background: #5f6873;
  font-family: Arial, sans-serif;
  margin: 10px;
  padding: 0;
}

h1 {
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 2px;
  text-align: center;
}

@media screen and (max-width: 1400px) {
  .dashboard-wrapper {
    transform: scale(0.75);
    transform-origin: top left;
    width: 133.33%;  /* compensate for scale so content doesn't get clipped: 100/0.75 */
  }
}
/* ============================================================
   LAYOUT
   ============================================================ */
.dashboard-wrapper {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

.first-column,
.second-column {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 10px;
}

.gauge-row {
  display: -webkit-flex;
  display: flex;
  width: 100%;
}

.heading {
  color: #ccc;
  display: flex;
  font-size: 1.5rem;
  justify-content: center;
  width: 100%;
}


/* ============================================================
   OUTDOOR DONUT GAUGE  (outdoor + feels-like)
   ============================================================ */
.gauge {
  --value: 0.65;
  --cutout: 50px;
  --background: #789;
  --status-color: #5f6873;
  --fill-color: #789;
  --setpoint: 0.5;
  --setpoint-color: transparent;
  align-items: center;
  background:
    conic-gradient(from -135deg,
      transparent calc(270deg * var(--value)),
      #7d7d7d    calc(270deg * var(--value)) 270deg,
      transparent 270deg
    ),
    conic-gradient(from -135deg,
      var(--fill-color) 270deg,
      transparent 270deg
    );
  border-radius: 50%;
  color: #333;
  display: flex;
  font-size: 1.4rem;
  font-weight: bold;
  height: 145px;
  justify-content: center;
  margin: 5px 5px 20px 5px;
  position: relative;
  width: 145px;
}

.gauge::before {
  background: conic-gradient(from -135deg,
    transparent calc(270deg * var(--setpoint) - 2deg),
    var(--setpoint-color) calc(270deg * var(--setpoint) - 2deg),
    var(--setpoint-color) calc(270deg * var(--setpoint) + 2deg),
    transparent calc(270deg * var(--setpoint) + 2deg)
  );
  border-radius: 50%;
  content: '';
  inset: 0;
  -webkit-mask: radial-gradient(transparent 0 calc(var(--cutout)), black calc(var(--cutout)) calc(var(--cutout) + 22px), transparent calc(var(--cutout) + 22px) 100%);
  mask: radial-gradient(transparent 0 calc(var(--cutout)), black calc(var(--cutout)) calc(var(--cutout) + 22px), transparent calc(var(--cutout) + 22px) 100%);
  position: absolute;
  z-index: 3;
}

.gauge::after {
  background: radial-gradient(
      var(--background) 0 50%,
      rgba(0,0,0,0.25) 50%,
      transparent      calc(50% + 12%),
      rgba(0,0,0,0.20) calc(50% + 25%),
      transparent      calc(50% + 25%) 100%
    ),
    conic-gradient(from -135deg, transparent 270deg, var(--status-color) 270deg);
  border-radius: 50%;
  content: '';
  inset: 0;
  position: absolute;
  z-index: 2;
}

/*.gauge::after {
  background:
    radial-gradient(
      var(--background) 0 var(--cutout),
      rgba(0,0,0,0.25) var(--cutout),
      transparent      calc(var(--cutout) + 12px),
      rgba(0,0,0,0.20) calc(var(--cutout) + 22px),
      transparent      calc(var(--cutout) + 22px) 100%
    ),
    conic-gradient(from -135deg, transparent 270deg, var(--status-color) 270deg);
  border-radius: 50%;
  content: '';
  inset: 0;
  position: absolute;
  z-index: 2;
}*/

.gauge-label {
  line-height: 1.3;
  position: relative;
  text-align: center;
  z-index: 4;
}
.gauge-label .humidity { color: #ccc;  font-size: 0.75rem; }
.gauge-label .name     { color: #ccc;  font-size: 0.8rem; }
.gauge-label .temp     { color: #222;  font-size: 1.6rem; font-weight: bold; }


/* ============================================================
   HALF-ARC GAUGE  (indoor temps)
   ============================================================ */
.half-wrap-gauge {
  -webkit-align-items: center;
  align-items: center;
  background: #789;
  border-radius: 10px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  margin: 4px;
  padding: 8px 0 6px;
    box-shadow:
    0 1px 2px rgba(255,255,255,0.15) inset,
    0 3px 8px rgba(0,0,0,0.25);
}

.half-arc-wrap {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.half-arc-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  top: 0;
  width: 100%;
  height: 200%;

  background:
    radial-gradient(
      transparent 0 45%,
      rgba(0,0,0,0.30) 48% 55%,
      rgba(255,255,255,0.25) 68% 78%,
      transparent 80% 100%
    );
  z-index: 5;
  pointer-events: none;
}

/* Full circle clipped to a semicircle by the wrap's overflow:hidden.
   height: 200% makes the circle fill the full diameter while the wrap
   only shows the top half. */
.indoor-temp-arc,
.fridge-arc {
  border-radius: 50%;
  height: 200%;
  position: absolute;
  top: 0;
  width: 100%;
}

.indoor-temp-arc {
  background: conic-gradient(from -90deg,
    #0000BB      0deg calc(180deg * var(--g1, 0.33) - 15deg),
    #007700      calc(180deg * var(--g1, 0.33) + 15deg) calc(180deg * var(--g2, 0.66) - 15deg),
    #A00000      calc(180deg * var(--g2, 0.66) + 15deg) 180deg,
    transparent  180deg 360deg
  );
}

/* Donut hole — scales with arc */
.indoor-temp-arc::before {
  background: radial-gradient(
    circle at 40% 30%,
    rgba(255,255,255,0.20) 0%,
    rgba(255,255,255,0.05) 20%,
    transparent 40%
  ),
  #789;
  border-radius: 50%;
  content: '';
  inset: 18%;
  position: absolute;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.25),
    inset 0 -3px 5px rgba(0,0,0,0.35);
}

.half-arc-fan {
  --fan: 0;
  --fan-color: transparent;
  width: 100%;
  height: 200%;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: conic-gradient(from -90deg,
    #456 0deg calc(180deg * var(--fan)),
    transparent calc(180deg * var(--fan)) 180deg,
    transparent 180deg 360deg
  );
  -webkit-mask: radial-gradient(transparent 0 32%, black 32% 41%, transparent 41% 100%);
  mask: radial-gradient(transparent 0 32%, black 32% 41%, transparent 41% 100%);
}

.half-arc-fan-tick {
  --fan: 0;
  --fan-color: #fff;
  width: 100%;
  height: 200%;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: conic-gradient(from -90deg,
    transparent calc(180deg * var(--fan) - 2deg),
    var(--fan-color) calc(180deg * var(--fan) - 2deg),
    var(--fan-color) calc(180deg * var(--fan) + 2deg),
    transparent calc(180deg * var(--fan) + 2deg),
    transparent 180deg 360deg
  );
  -webkit-mask: radial-gradient(transparent 0 32%, black 32% 41%, transparent 41% 100%);
  mask: radial-gradient(transparent 0 32%, black 32% 41%, transparent 41% 100%);
}

/* Setpoint tick — all dimensions as percentages so it scales */
.half-arc-setpoint {
  --setpoint: 0.5;
  --setpoint-color: transparent;
  background: conic-gradient(from -90deg,
    transparent calc(180deg * var(--setpoint) - 2deg),
    var(--setpoint-color) calc(180deg * var(--setpoint) - 2deg),
    var(--setpoint-color) calc(180deg * var(--setpoint) + 2deg),
    transparent calc(180deg * var(--setpoint) + 2deg),
    transparent 180deg 360deg
  );
  border-radius: 50%;
  height: 200%;
  -webkit-mask: radial-gradient(transparent 0 48%, black 48% 70%, transparent 70% 100%);
  mask: radial-gradient(transparent 0 48%, black 48% 70%, transparent 70% 100%);
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 6;
}

.half-arc-needle {
  background: linear-gradient(
    to right,
    #666,
    #222
  );
  border-radius: 2px 2px 0 0;
  bottom: 0;
  height: 61%;
  left: 50%;
  margin-left: -1.5%;
  position: absolute;
  transform: rotate(var(--needle-angle, -90deg));
  transform-origin: bottom center;
  transition: transform 0.5s ease;
  width: 3%;
  z-index: 4;
}

.half-arc-pivot {
  background:
  radial-gradient(
    circle at 35% 30%,
    #aaa,
    #555 60%,
    #222 100%
  );
  border-radius: 50%;
  bottom: -3%;
  height: 8%;
  left: 50%;
  margin-left: -4%;
  position: absolute;
  width: 8%;
  z-index: 5;
}

.arc-center {
  /*background: var(--center-color, #789);*/
    background:
    radial-gradient(
      circle at 35% 25%,
      rgba(255,255,255,0.25) 0%,
      rgba(255,255,255,0.10) 20%,
      transparent 40%
    ),
    var(--center-color, #789);
  border-radius: 50%;
  height: 80%;
  bottom: -40%;
  left: 50%;
  position: absolute;
  top: auto;
  transform: translateX(-50%);
  transition: background-color 0.5s ease;
  width: 40%;
  z-index: 3;
  pointer-events: none;
    box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.25),
    inset 0 -3px 5px rgba(0,0,0,0.35);
}

.half-arc-labels {
  -webkit-align-items: center;
  align-items: center;
  display: -webkit-flex;
  display: flex;
  gap: 15px;
  height: 30px;
}

.indoor-temp-value {
  color: #222;
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 2px;
}

.indoor-temp-name {
  color: #222;
  font-size: 0.8rem;
  text-align: center;
}

/* Used in both half-arc labels and donut gauge label */
.humidity {
  color: #222;
  font-size: 0.75rem;
  font-weight: bold;
}


/* ============================================================
   HOME TEMPS & FRIDGE CONTAINERS
   ============================================================ */
.home-temps,
.fridges {
  background: #456;
  border-radius: 15px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  padding: 0 4px 4px;
}

/* heading spans full width */
.home-temps .heading,
.fridges .heading {
  grid-column: 1 / -1;
}

/* normal gauges: 3-per-row = 4 cols each */
.half-wrap-gauge,
.fridge-gauge {
  grid-column: span 4;
}

/* small gauges: 4-per-row = 3 cols each */
.half-wrap-sm {
  grid-column: span 3;
}


/* ============================================================
   FRIDGE / FREEZER GAUGES
   ============================================================ */
.fridge-gauge {
  -webkit-align-items: center;
  align-items: center;
  background: #789;
  border-radius: 10px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  margin: 4px;
  padding: 8px 0 6px;
  box-shadow:
    0 1px 2px rgba(255,255,255,0.15) inset,
    0 3px 8px rgba(0,0,0,0.25);
}

/* Fixed-size wrap — fridge gauges don't need to scale small */
.fridge-arc-wrap {
  height: 63px;
  overflow: hidden;
  position: relative;
  width: 125px;
}

.fridge-arc-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;

  background:
    radial-gradient(
      transparent 0 47%,
      rgba(0,0,0,0.30) 55% 60%,
      rgba(255,255,255,0.25) 68% 78%,
      transparent 80% 100%
    );
}

.fridge-arc {
  background: conic-gradient(from -90deg,
    #007700  0deg calc(180deg * var(--g1, 0.4)),
    #f0a500  calc(180deg * var(--g1, 0.4)) calc(180deg * var(--g2, 0.7)),
    #A00000  calc(180deg * var(--g2, 0.7)) 180deg,
    transparent 180deg 360deg
  );
  height: 125px;
  width: 125px;
}

.fridge-arc::before {
  background: radial-gradient(
    circle at 40% 30%,
    rgba(255,255,255,0.20) 0%,
    rgba(255,255,255,0.05) 20%,
    transparent 40%
  ),
  #789;
  border-radius: 50%;
  content: '';
  inset: 18px;
  position: absolute;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.25),
    inset 0 -3px 5px rgba(0,0,0,0.35);
}

.fridge-needle {
  background: linear-gradient(
    to right,
    #666,
    #222
  );
  border-radius: 2px 2px 0 0;
  bottom: 0;
  height: 67%;
  left: 50%;
  margin-left: -2px;
  position: absolute;
  transform: rotate(var(--needle-angle, -90deg));
  transform-origin: bottom center;
  transition: transform 0.5s ease;
  width: 4px;
  z-index: 2;
}

.fridge-pivot {
  background:
  radial-gradient(
    circle at 35% 30%,
    #aaa,
    #555 65%,
    #222 100%
  );
  border-radius: 50%;
  bottom: -4px;
  height: 10px;
  left: 50%;
  margin-left: -5px;
  position: absolute;
  width: 10px;
  z-index: 3;
}

.fridge-value {
  color: #222;
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 2px;
}

.fridge-name {
  color: #222;
  font-size: 0.8rem;
  text-align: center;
}


/* ============================================================
   AXIS
   ============================================================ */
.camera-column {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 10px;
}

.camera-tile {
  background: #456;
  border-radius: 15px;
  margin: 0 0 0 12px;
  padding: 0 10px;
}

.camera-wrap {
  border-radius: 10px;
  overflow: hidden;
  margin: 6px 0;
  box-shadow:
    0 1px 2px rgba(255,255,255,0.15) inset,
    0 3px 8px rgba(0,0,0,0.25);
}

.camera-wrap img {
  display: block;
  width: 640px;
  height: 480px;
}


/* ============================================================
   ELECTRICITY / SOLAR (PV)
   ============================================================ */
.pv {
  background: #456;
  border-radius: 15px;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 250px;
  grid-template-rows: auto 1fr;
  margin: 0 12px;
  padding: 0 10px 10px;
  position: relative;
  width: 550px;
}

.pv .heading { grid-column: 1 / 3; grid-row: 1; }

.flow-area {
  display: grid;
  gap: 6px;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  position: relative;
}

#battery { grid-column: 3 / 5; grid-row: 2; }
#grid    { grid-column: 1 / 3; grid-row: 1; }
#load    { grid-column: 1 / 3; grid-row: 2; }
#solar   { grid-column: 3 / 5; grid-row: 1; }

#load, #battery {
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
}

.arrow-cell {
  -webkit-align-items: center;
  align-items: center;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
}

.arrow-batt  { left: 75%; position: absolute; top: 52%; z-index: 5; }
.arrow-grid  { left: 12%; position: absolute; top: 34%; z-index: 5; }
.arrow-load  { left: 12%; position: absolute; top: 52%; z-index: 5; }
.arrow-solar { left: 75%; position: absolute; top: 34%; z-index: 5; }
.arrow-batt, .arrow-grid, .arrow-load, .arrow-solar {
  filter: drop-shadow(2px 5px 3px rgba(0,0,0, 0.5));
}


.house-icon {
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.house-icon img, .house-icon object {
  width: 120px;
  height: 120px;
  filter: drop-shadow(2px 5px 3px rgba(0,0,0, 0.5));
}

.pv-gauge {
  -webkit-align-items: center;
  align-items: center;
  background: #789;
  border-radius: 10px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  padding: 8px 10px;
  position: relative;
  box-shadow:
    0 1px 2px rgba(255,255,255,0.15) inset,
    0 3px 8px rgba(0,0,0,0.25);
}

.pv-gauge .name        { color: #222; font-size: 0.75rem; margin-bottom: 4px; }
.pv-gauge .volts       { color: #ccc; font-size: 0.85rem; font-weight: regular; margin-bottom: 2px; }
.pv-gauge .volts-row   { display: flex; justify-content: space-between; width: 100%; }
.pv-gauge .volts       { flex: 1; }
.pv-gauge .volts:first-child { text-align: left; }
.pv-gauge .volts:last-child { text-align: right; }
.pv-gauge .volts-red  { color: #A00000; }
.pv-gauge .watts       { color: #ccc;    font-size: 1.2rem;  font-weight: bold; }
.pv-gauge .watts-green { color: #007700; }
.pv-gauge .watts-red  { color: #A00000; }


.batt-meter,
.pv-meter {
  -webkit-align-items: stretch;
  align-items: stretch;
  background: #333;
  border-radius: 4px;
  display: -webkit-flex;
  display: flex;
  height: 24px;
  margin: 10px 0;
  position: relative;
  width: 100%;
  box-shadow:
    0 1px 2px rgba(255,255,255,0.15) inset,
    0 3px 8px rgba(0,0,0,0.35);
}

.batt-meter::after,
.pv-meter::after {
  background: var(--meter-color, #639922);
  border-radius: 4px;
  bottom: 0;
  content: '';
  height: var(--meter-value, 0%);
  left: 0;
  position: absolute;
  transition: height 0.5s ease;
  width: 100%;
}

.batt-fill,
.pv-fill {
  border-radius: 4px;
  height: 100%;
  transition: width 0.5s ease, background-color 0.5s ease;
}

.pv-watts-overlay {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 4px #000, 0 0 4px #000;
  line-height: 24px;
  z-index: 3;
  pointer-events: none;
}

.batt-soc {
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  left: 0;
  line-height: 24px;
  position: absolute;
  text-align: center;
  text-shadow: 0 0 4px #000, 0 0 4px #000;
  width: 100%;
  z-index: 1;
}

.pv-charts {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 6px;
  grid-column: 2;
  grid-row: 2;
  box-shadow:
    0 1px 2px rgba(255,255,255,0.15) inset,
    0 3px 8px rgba(0,0,0,0.25);
}

.chart-box {
  background: #789;
  border-radius: 8px;
  padding: 6px 6px 14px 6px;
  height: 305px;
  position: relative;
}

.chart-box .chart-title {
  color: #222;
  font-size: 0.7rem;
  margin-bottom: 4px;
  text-align: center;
}

.chart-expand-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.2);
  border: none;
  border-radius: 4px;
  color: #333;
  padding: 3px 5px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.chart-expand-btn:hover {
  background: rgba(0,0,0,0.4);
  color: #fff;
}

.chart-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.chart-modal.open {
  display: -webkit-flex;
  display: flex;
}

.chart-modal-box {
  background: #456;
  border-radius: 15px;
  padding: 16px;
  width: 90vw;
  height: 70vh;
  position: relative;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.chart-modal-title {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 8px;
}

.chart-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.2rem;
  cursor: pointer;
}

#pv-chart {
  width: 100%;
  height: 275px;
}

#pv-chart-modal {
  -webkit-flex: 1;
  flex: 1;
  width: 100%;
}

/* ============================================================
   OUTDOOR
   ============================================================ */
.outdoor {
  background: #456;
  border-radius: 15px;
  margin: 0 12px;
  width: 550px;
}

.outdoor-left {
  -webkit-align-items: center;
  align-items: center;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 180px;
}

.uv-column {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
}

.uv-bar-vertical {
  width: 25px;
  height: 160px;
  border-radius: 6px;
  background: #333;
  position: relative;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  overflow: hidden;
}

.uv-fill-vertical {
  width: 100%;
  height: 0%;
  border-radius: 6px;
  transition: height 0.5s ease, background-color 0.5s ease;
}

.solar-irr {
  font-size: 0.85rem;
  color: #ccc;
  text-align: center;
  white-space: nowrap;
  padding: 8px 0;
}

.wind-rose-wrap {
  -webkit-align-items: center;
  align-items: center;
  display: -webkit-flex;
  display: flex;
  -webkit-flex: 1;
  flex: 1;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
}

.wind-gust-label  { color: #ccc; font-size: 0.9rem; margin-left: 6px; }
.wind-speed-label { color: #ccc; font-size: 0.9rem; margin-top: 4px;  text-align: center; }


/* ============================================================
   SOIL MOISTURE
   ============================================================ */
.soilmoist {
  background: #456;
  border-radius: 15px;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr auto auto auto;
  margin: 0 12px;
  padding: 6px 12px;
  position: relative;
  width: 550px;
}

.soilmoist .heading { grid-column: 1 / 4; grid-row: 1; }

.soil-sensor {
  padding: 0 6px 6px;
  width: 160px;
}

.soil-label {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.soil-sensor-bar {
  -webkit-align-items: stretch;
  align-items: stretch;
  background: #333;
  border-radius: 4px;
  display: -webkit-flex;
  display: flex;
  height: 24px;
  position: relative;
  width: 100%;
  box-shadow:
    0 1px 2px rgba(255,255,255,0.15) inset,
    0 3px 8px rgba(0,0,0,0.25);
}

.moisture-fill {
  border-radius: 4px;
  height: 100%;
  transition: width 0.5s ease, background-color 0.5s ease;
}

.moisture-pct {
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 24px;
  position: absolute;
  text-align: center;
  text-shadow: 0 0 4px #000, 0 0 4px #000;
  width: 100%;
  z-index: 1;
}

.soil-sensor-bar::before,
.batt-meter::before,
.pv-meter::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.30) 0%,
    rgba(255,255,255,0.06) 25%,
    rgba(0,0,0,0.06)      75%,
    rgba(0,0,0,0.30)      100%
  );
  pointer-events: none;
  z-index: 2;
}
