:root {
  color-scheme: dark;
  --panel: rgb(13 19 23 / 0.88);
  --panel-strong: rgb(9 14 18 / 0.96);
  --line: rgb(122 138 150 / 0.42);
  --line-soft: rgb(122 138 150 / 0.24);
  --text: #f6f8fb;
  --muted: #aab3bc;
  --dim: #7f8a94;
  --cyan: #49b7ff;
  --cyan-soft: #1d6d9c;
  --amber: #ffb32c;
  --orange: #ff8a30;
  --font-base: "Avenir Next", Roboto, "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-instrument: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-base);
  background: #05080b;
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #05080b;
}

body {
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.console-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #080c10 0%, #030506 100%);
}

.boot-screen,
.console-frame {
  width: 100%;
  height: 100%;
}

.boot-screen,
.loading-screen,
.setup-required,
.placeholder-panel {
  display: grid;
  place-items: center;
  text-align: center;
}

.boot-screen p,
.loading-screen p,
.setup-required p,
.placeholder-panel p {
  margin: 0;
  color: #aeb7c1;
  font-size: 2rem;
}

.boot-mark {
  width: 6rem;
  height: 6rem;
  border: 0.35rem solid #1e3344;
  border-top-color: #49b7ff;
  border-radius: 50%;
}

.console-frame {
  padding: 2rem;
  border: 0.4rem solid #141a20;
  box-shadow: inset 0 0 0 0.15rem #3a4249;
}

.top-line {
  display: flex;
  gap: 2rem;
  align-items: baseline;
  color: #f7f8fa;
}

.clock {
  font-size: 4rem;
  font-weight: 800;
}

.date-line {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.placeholder-panel h1,
.loading-screen h1,
.setup-required h1 {
  margin: 0 0 1rem;
  font-size: 5rem;
}

.instrument-console {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-rows: 4.35rem minmax(14.8rem, 0.98fr) minmax(8rem, 0.48fr) minmax(5.05rem, 0.3fr) minmax(10.25rem, 0.64fr);
  gap: 0.55rem;
  width: 1280px;
  height: 800px;
  padding: 0.95rem 1.2rem 1rem;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--console-scale, 1));
  transform-origin: center;
  font-family: var(--font-instrument);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.035), transparent 20%),
    linear-gradient(180deg, #070b0e 0%, #020405 100%);
  border: 0.34rem solid #111820;
  box-shadow:
    inset 0 0 0 0.11rem #51606a,
    inset 0 0 2.4rem rgb(255 255 255 / 0.07),
    0 0 0 0.2rem #030506;
}

.instrument-header {
  display: grid;
  grid-template-columns: auto 0.18rem auto 1fr;
  gap: 1.65rem;
  align-items: center;
  min-height: 0;
  padding-bottom: 0.55rem;
  border-bottom: 0.14rem solid var(--cyan-soft);
}

.header-clock {
  white-space: nowrap;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
  text-shadow: 0 0.1rem 0.7rem rgb(255 255 255 / 0.16);
}

.header-rule {
  width: 0.16rem;
  height: 3.2rem;
  background: var(--cyan);
  opacity: 0.92;
}

.header-date {
  align-self: center;
  white-space: nowrap;
  font-size: 1.65rem;
  font-weight: 650;
  line-height: 1;
  color: #e7ebef;
  text-transform: uppercase;
}

.header-updated {
  justify-self: end;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
  text-transform: uppercase;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18.6rem, 0.28fr);
  gap: 0.15rem;
  min-height: 0;
}

.current-panel,
.wind-panel,
.rain-panel,
.metric-band,
.forecast-rail {
  background: linear-gradient(180deg, rgb(18 27 33 / 0.92), rgb(7 11 14 / 0.94));
  border: 0.12rem solid var(--line);
  box-shadow:
    inset 0 0 0 0.06rem rgb(255 255 255 / 0.06),
    inset 0 -1rem 3rem rgb(0 0 0 / 0.2);
}

.current-panel {
  display: grid;
  grid-template-columns: minmax(9.8rem, 0.22fr) minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  padding: 0.3rem 1.35rem 0.45rem 0.9rem;
  border-color: transparent;
  border-right: 0.12rem solid var(--line);
  background: transparent;
  box-shadow: none;
}

.current-panel-with-sidecard {
  grid-template-columns: minmax(8.8rem, 0.18fr) minmax(0, 1fr) minmax(15.8rem, 0.3fr);
  column-gap: 0.9rem;
}

.hero-weather-icon {
  justify-self: center;
  width: 10.9rem;
  height: 10.9rem;
  filter: drop-shadow(0 0 1.1rem rgb(255 179 44 / 0.24));
}

.temperature-lockup {
  min-width: 0;
  display: grid;
  justify-items: center;
  text-align: center;
}

.location-label {
  margin-bottom: 0.22rem;
  color: var(--cyan);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.temperature-value {
  font-size: 13.1rem;
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: 0;
  color: var(--text);
  text-shadow: 0 0.18rem 1rem rgb(255 255 255 / 0.16);
}

.current-panel-with-sidecard .temperature-value {
  font-size: 11.6rem;
}

.current-panel-with-sidecard .hero-weather-icon {
  width: 9.9rem;
  height: 9.9rem;
}

.condition-line {
  margin-top: 0.35rem;
  font-size: 2.55rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.current-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 1.32rem;
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}

.current-panel-with-sidecard .current-meta {
  gap: 0.55rem;
  font-size: 1.08rem;
}

.current-meta strong,
.warm {
  color: var(--amber);
}

.current-meta .cool,
.cool {
  color: #76beff;
}

.meta-divider {
  width: 0.12rem;
  height: 1.65rem;
  background: var(--line);
}

.hero-side-card {
  min-width: 0;
  width: 100%;
  max-width: 16.2rem;
  justify-self: center;
}

.lightning-alert {
  display: grid;
  grid-template-columns: 3.65rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0.85rem 0.72rem;
  color: var(--text);
  background:
    radial-gradient(circle at 32% 42%, rgb(255 179 44 / 0.18), transparent 62%),
    rgb(9 14 18 / 0.78);
  border: 0.1rem solid rgb(255 179 44 / 0.65);
  box-shadow:
    inset 0 0 0 0.05rem rgb(255 255 255 / 0.08),
    0 0 1rem rgb(255 179 44 / 0.16);
}

.front-yard-card {
  display: grid;
  grid-template-rows: auto minmax(3.2rem, 1fr) auto auto;
  justify-items: center;
  align-content: center;
  height: 100%;
  max-height: 13.2rem;
  padding: 0.65rem 0.8rem 0.8rem;
  color: var(--text);
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgb(73 183 255 / 0.12), transparent 65%),
    rgb(9 14 18 / 0.74);
  border: 0.1rem solid var(--line);
  box-shadow:
    inset 0 0 0 0.05rem rgb(255 255 255 / 0.08),
    0 0 1rem rgb(73 183 255 / 0.08);
}

.side-card-label {
  color: var(--cyan);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.front-yard-icon {
  width: 5.7rem;
  height: 4.1rem;
  margin: 0.08rem 0 0.1rem;
}

.side-card-temp {
  color: var(--text);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 0.88;
  text-shadow: 0 0.14rem 0.8rem rgb(255 255 255 / 0.14);
}

.side-card-humidity {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.38rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.mini-drop {
  width: 1.25rem;
  height: 1.25rem;
}

.lightning-alert-icon {
  width: 3.65rem;
  height: 3.65rem;
  filter: drop-shadow(0 0 0.65rem rgb(255 179 44 / 0.42));
}

.lightning-alert-copy {
  display: grid;
  justify-items: start;
  min-width: 0;
  line-height: 1;
  text-transform: uppercase;
}

.lightning-alert span {
  color: var(--amber);
  font-size: 1.03rem;
  font-weight: 700;
}

.lightning-alert strong {
  margin-top: 0.14rem;
  color: var(--text);
  font-size: 2.55rem;
  font-weight: 700;
  white-space: nowrap;
}

.lightning-alert em {
  margin-top: 0.24rem;
  color: var(--muted);
  max-width: 100%;
  font-size: 0.94rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.wind-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 0.25rem 0.1rem;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.wind-stack {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.22rem;
  justify-items: center;
  align-content: center;
  width: min(15.4rem, 100%);
  height: 100%;
  max-height: 100%;
}

.wind-compass {
  position: relative;
  width: min(12.65rem, 100%);
  aspect-ratio: 1;
}

.wind-compass-face {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 1rem rgb(73 183 255 / 0.08));
}

.compass-face-bg {
  fill: rgb(15 21 25 / 0.45);
}

.compass-outer-ring {
  fill: none;
  stroke: rgb(178 190 200 / 0.5);
  stroke-width: 3;
}

.compass-ring {
  fill: none;
  stroke: rgb(178 190 200 / 0.45);
  stroke-width: 2.5;
}

.compass-cardinal-marks line {
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-width: 4.2;
  opacity: 0.96;
}

.compass-ticks line {
  stroke: rgb(223 234 242 / 0.72);
  stroke-linecap: round;
}

.wind-bearing {
  filter: drop-shadow(0 0 0.55rem rgb(255 179 44 / 0.5));
}

.wind-marker-line {
  stroke: #ffb32c;
  stroke-linecap: round;
  stroke-width: 2.3;
  opacity: 0.72;
}

.wind-marker-head {
  fill: url("#wind-marker-gold");
  stroke: #ffe08a;
  stroke-linejoin: round;
  stroke-width: 0.8;
}

.compass-label {
  fill: #e7edf3;
  font-size: 30px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgb(0 0 0 / 0.55);
  stroke-width: 5.5px;
  text-anchor: middle;
}

.compass-label-n,
.compass-label-s,
.compass-label-e,
.compass-label-w {
  dominant-baseline: middle;
}

.wind-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 8.2rem;
  min-height: 5rem;
  padding: 0;
  transform: translate(-50%, -50%);
  text-align: center;
}

.wind-speed {
  display: grid;
  grid-template-rows: auto auto;
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 0.05rem;
  line-height: 0.86;
}

.wind-speed strong {
  color: var(--text);
  font-size: 4.15rem;
  font-weight: 700;
}

.wind-speed span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.wind-readouts {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1rem;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  min-height: 1.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.wind-readouts strong {
  color: var(--text);
  font-size: 1.14rem;
  font-weight: 700;
}

.rain-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(30rem, 1fr);
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 0.45rem;
}

.rain-summary {
  display: grid;
  grid-template-rows: 3.2rem minmax(0, 1fr);
  min-width: 0;
  height: 100%;
  border-right: 0.12rem solid var(--line);
}

.rain-readouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  height: 100%;
}

.rain-stat,
.rain-time,
.rain-next {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
  height: 100%;
  padding: 0.2rem 0.7rem 0.5rem;
  border-right: 0.12rem solid var(--line);
}

.rain-next {
  border-right: 0;
}

.rain-title {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: 0.45rem 1rem 0;
  color: var(--cyan);
  font-size: 1.56rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  line-height: 1.05;
  text-transform: uppercase;
}

.section-icon {
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
}

.rain-stat {
  grid-template-columns: minmax(0, max-content) auto;
  column-gap: 0.35rem;
  justify-content: center;
  justify-items: center;
  text-align: center;
}

.rain-time {
  justify-items: center;
  text-align: center;
}

.rain-next {
  justify-items: center;
  text-align: center;
}

.rain-stat span,
.rain-time span,
.rain-next span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}

.rain-stat strong {
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 3.05rem;
  font-weight: 600;
  line-height: 0.92;
}

.rain-time strong {
  margin-top: 0.24rem;
  color: var(--text);
  font-size: 2.18rem;
  font-weight: 600;
  line-height: 0.95;
  text-transform: none;
  white-space: nowrap;
}

.rain-time em {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}

.rain-stat em {
  position: static;
  align-self: end;
  margin-bottom: 0.28rem;
  color: var(--text);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
}

.rain-next strong {
  margin-top: 0.4rem;
  color: var(--text);
  font-size: 2.35rem;
  font-weight: 650;
  line-height: 0.98;
  text-transform: uppercase;
}

.rain-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  height: 100%;
  min-width: 0;
  padding: 0.55rem 0.8rem 0.55rem;
}

.rain-day {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.25rem;
  justify-items: center;
  height: 100%;
  min-width: 0;
  border-left: 0.08rem solid var(--line-soft);
  color: #dfe8f0;
}

.rain-day span {
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}

.rain-day strong {
  color: var(--cyan);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1;
}

.rain-bar-track {
  position: relative;
  align-self: stretch;
  width: 3.2rem;
  border-radius: 0.14rem;
  background: rgb(73 183 255 / 0.1);
  overflow: hidden;
}

.rain-bar-track i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  background: linear-gradient(180deg, #67c9ff, #147cc3);
  box-shadow: inset 0 0 1rem rgb(255 255 255 / 0.22);
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(var(--metric-count, 4), minmax(0, 1fr));
  min-height: 0;
  border-radius: 0.42rem;
}

.metric-band-with-indoor {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-tile {
  display: grid;
  grid-template-columns: minmax(3.9rem, auto) auto;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  align-content: center;
  min-width: 0;
  padding: 0.45rem 0.85rem;
  border-right: 0.12rem solid var(--line);
}

.metric-tile:last-child {
  border-right: 0;
}

.metric-icon {
  width: 4.15rem;
  height: 4.15rem;
}

.metric-band-with-indoor .metric-tile {
  grid-template-columns: minmax(3.3rem, auto) auto;
  gap: 0.72rem;
  padding: 0.42rem 0.55rem;
}

.metric-band-with-indoor .metric-icon {
  width: 3.65rem;
  height: 3.65rem;
}

.metric-copy {
  min-width: 0;
}

.metric-tile span,
.metric-tile em {
  display: block;
  color: var(--muted);
  font-size: 1.08rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}

.metric-tile strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--text);
  font-size: 2.45rem;
  font-weight: 650;
  line-height: 1;
}

.metric-tile-sensor {
  grid-template-columns: minmax(3.7rem, auto) auto;
  gap: 0.8rem;
}

.sensor-metric-copy {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.68rem;
  align-items: end;
}

.sensor-metric-copy span {
  grid-column: 1 / -1;
}

.sensor-metric-copy strong {
  margin-top: 0;
  font-size: 2.55rem;
}

.sensor-metric-copy em {
  align-self: end;
  margin: 0 0 0.17rem;
  color: var(--muted);
  font-size: 1rem;
}

.metric-tile-sensors {
  grid-template-columns: 1fr;
  gap: 0.16rem;
  justify-items: stretch;
  padding: 0.48rem 0.85rem;
}

.sensor-stack-title {
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.sensor-stack-list {
  display: grid;
  gap: 0.2rem;
}

.sensor-stack-row {
  display: grid;
  grid-template-columns: minmax(5.2rem, 1fr) auto auto;
  gap: 0.42rem;
  align-items: baseline;
  min-width: 0;
}

.sensor-stack-row span,
.sensor-stack-row em {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.sensor-stack-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sensor-stack-row strong {
  margin-top: 0;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
}

.metric-band-with-indoor .metric-tile span,
.metric-band-with-indoor .metric-tile em {
  font-size: 0.95rem;
}

.metric-band-with-indoor .metric-tile strong {
  font-size: 2.15rem;
}

.metric-tile em {
  margin-top: 0.05rem;
  color: var(--amber);
}

.metric-tile-uv {
  grid-template-columns: minmax(4.9rem, auto) auto;
  gap: 0.85rem;
}

.metric-band-with-indoor .metric-tile-uv {
  grid-template-columns: minmax(4.1rem, auto) auto;
  gap: 0.58rem;
}

.metric-tile-uv .metric-icon {
  width: 4.8rem;
  height: 4.8rem;
}

.metric-band-with-indoor .metric-tile-uv .metric-icon {
  width: 4.2rem;
  height: 4.2rem;
}

.metric-tile-uv .metric-copy {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.55rem;
  align-items: end;
}

.metric-tile-uv span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.metric-tile-uv strong {
  margin-top: 0;
  font-size: 3.25rem;
  line-height: 0.9;
}

.metric-band-with-indoor .metric-tile-uv strong {
  font-size: 2.85rem;
}

.metric-tile-uv em {
  align-self: end;
  margin: 0 0 0.18rem;
  font-size: 1.45rem;
  line-height: 1;
}

.metric-band-with-indoor .metric-tile-uv em {
  margin-bottom: 0.12rem;
  font-size: 1.22rem;
}

.forecast-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 0;
  border-radius: 0.42rem;
}

.forecast-day {
  display: grid;
  grid-template-rows: 3.1rem 2.3rem auto auto;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.5rem 0.75rem 0.55rem;
  border-right: 0.12rem solid var(--line);
}

.forecast-day:last-child {
  border-right: 0;
}

.forecast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.forecast-head strong {
  font-size: 1.42rem;
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}

.forecast-icon {
  flex: 0 0 auto;
  width: 3.85rem;
  height: 3.05rem;
}

.forecast-day > span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.12;
  text-transform: uppercase;
  white-space: normal;
}

.forecast-temps {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  justify-content: center;
  min-width: 0;
  font-size: 2.08rem;
  font-weight: 650;
  line-height: 1;
}

.forecast-temps b {
  color: var(--amber);
}

.forecast-temps b.cool {
  color: var(--cyan);
}

.forecast-temps i {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.forecast-rain {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.38rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--cyan);
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1;
}

.forecast-drop {
  width: 1.05rem;
  height: 1.28rem;
  filter: drop-shadow(0 0 0.35rem rgb(73 183 255 / 0.28));
}

@media (max-height: 720px) {
  .instrument-console {
    grid-template-rows: 4.2rem minmax(14.7rem, 0.96fr) minmax(8.1rem, 0.48fr) minmax(5.2rem, 0.3fr) minmax(10.2rem, 0.64fr);
    gap: 0.55rem;
    padding: 0.9rem 1.1rem 1rem;
  }

  .temperature-value {
    font-size: 11.4rem;
  }

  .wind-compass {
    width: min(12.2rem, 100%);
  }

  .wind-stack {
    gap: 0.18rem;
  }

  .wind-speed strong {
    font-size: 3.65rem;
  }

  .wind-readouts {
    gap: 0.7rem;
    font-size: 0.78rem;
  }

  .wind-readouts strong {
    font-size: 1rem;
  }

.rain-stat strong {
    font-size: 3.05rem;
  }
}

/* Front-yard sensor experiment layout: mirrors the approved Option A mockup. */
.instrument-console {
  grid-template-rows: 4.35rem 20.45rem 10.55rem minmax(0, 1fr);
}

.weather-card,
.wind-panel,
.forecast-rail {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgb(73 183 255 / 0.07), transparent 62%),
    linear-gradient(180deg, rgb(18 27 33 / 0.92), rgb(7 11 14 / 0.95));
  border: 0.12rem solid var(--line);
  border-radius: 0.42rem;
  box-shadow:
    inset 0 0 0 0.06rem rgb(255 255 255 / 0.06),
    inset 0 -1rem 3rem rgb(0 0 0 / 0.22);
}

.hero-row {
  grid-template-columns: minmax(0, 1.62fr) minmax(17.8rem, 0.8fr) minmax(18.7rem, 0.88fr);
  gap: 0.62rem;
}

.over-pond-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 3.95rem;
}

.over-pond-main {
  display: grid;
  grid-template-columns: minmax(10.6rem, 0.32fr) minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  padding: 0.7rem 1.2rem 0.35rem 0.95rem;
}

.over-pond-card .hero-weather-icon {
  justify-self: center;
  width: 10.3rem;
  height: 10.3rem;
}

.over-pond-card .temperature-value {
  font-size: 9.9rem;
  line-height: 0.76;
}

.over-pond-card .condition-line {
  margin-top: 0.28rem;
  font-size: 2rem;
}

.over-pond-card .current-meta {
  margin-top: 0.55rem;
  gap: 0.72rem;
  font-size: 1.28rem;
}

.location-label {
  margin-bottom: 0.22rem;
  font-size: 1.25rem;
}

.humidity-strip {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 0.72rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  color: var(--muted);
  border-top: 0.12rem solid var(--line);
  text-transform: uppercase;
}

.humidity-strip-icon {
  width: 2.2rem;
  height: 2.2rem;
}

.humidity-strip strong {
  color: var(--text);
  font-size: 2.05rem;
  font-weight: 650;
  line-height: 1;
}

.humidity-strip span {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1;
}

.sensor-hero-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto 3.95rem;
  justify-items: center;
  align-items: center;
  text-align: center;
}

.sensor-card-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  align-self: end;
  gap: 0.18rem;
  min-height: 0;
}

.sensor-card-label {
  color: var(--cyan);
  font-size: 1.23rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.front-yard-icon {
  width: 6.4rem;
  height: 4.5rem;
}

.sensor-card-temp {
  color: var(--text);
  font-size: 5.35rem;
  font-weight: 700;
  line-height: 0.86;
  text-shadow: 0 0.14rem 0.8rem rgb(255 255 255 / 0.14);
}

.sensor-hero-card-empty {
  align-content: center;
  padding: 1rem;
}

.sensor-hero-card-empty em {
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
  font-weight: 650;
  text-transform: uppercase;
}

.lightning-alert {
  grid-template-columns: 4.8rem minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 0.75rem;
  align-content: center;
  padding: 1.4rem 1rem;
  max-width: none;
  border-color: rgb(255 179 44 / 0.7);
}

.lightning-alert-icon {
  width: 4.8rem;
  height: 4.8rem;
}

.lightning-alert span {
  font-size: 1.15rem;
}

.lightning-alert strong {
  font-size: 3.1rem;
}

.lightning-alert em {
  font-size: 1.02rem;
  white-space: normal;
}

.wind-panel {
  position: relative;
  display: grid;
  place-items: stretch;
  padding: 0;
  border-color: var(--line);
  background:
    radial-gradient(circle at 50% 38%, rgb(73 183 255 / 0.08), transparent 62%),
    linear-gradient(180deg, rgb(18 27 33 / 0.9), rgb(7 11 14 / 0.95));
  box-shadow:
    inset 0 0 0 0.06rem rgb(255 255 255 / 0.06),
    inset 0 -1rem 3rem rgb(0 0 0 / 0.22);
}

.wind-stack {
  grid-template-rows: minmax(0, 1fr) 6.1rem;
  gap: 0;
  width: 100%;
  height: 100%;
}

.wind-compass {
  align-self: center;
  width: min(14.4rem, 92%);
}

.wind-speed strong {
  font-size: 4.65rem;
}

.wind-speed span {
  font-size: 1.15rem;
}

.wind-readouts {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  min-height: 0;
  font-size: 1.28rem;
}

.wind-readouts span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 0.12rem solid var(--line);
}

.wind-readouts strong {
  margin: 0 0.35rem;
  font-size: 1.85rem;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(12.1rem, 0.7fr) minmax(25rem, 1.42fr) minmax(17.3rem, 0.96fr) minmax(20rem, 1.18fr);
  gap: 0.62rem;
  min-height: 0;
}

.inside-panel,
.sensors-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 3.15rem;
}

.inside-main {
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.5rem 0.7rem 0.25rem;
}

.inside-panel-icon {
  width: 4.9rem;
  height: 4.9rem;
}

.inside-main span {
  display: block;
  color: var(--muted);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.inside-main strong {
  display: block;
  color: var(--text);
  font-size: 3.1rem;
  font-weight: 650;
  line-height: 0.95;
}

.inside-panel .humidity-strip {
  gap: 0.42rem;
}

.inside-panel .humidity-strip strong {
  font-size: 1.42rem;
}

.inside-panel .humidity-strip span {
  font-size: 0.83rem;
}

.inside-panel .humidity-strip-icon {
  width: 1.55rem;
  height: 1.55rem;
}

.sensors-panel {
  grid-template-rows: 2.1rem minmax(0, 1fr);
  padding: 0.65rem 0.7rem;
}

.sensor-stack-title {
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.sensor-stack-list {
  align-self: center;
  display: grid;
  gap: 0.38rem;
}

.sensor-stack-row {
  display: grid;
  grid-template-columns: minmax(5.6rem, 1fr) auto auto;
  gap: 0.5rem;
  align-items: baseline;
}

.sensor-stack-row span,
.sensor-stack-row em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.sensor-stack-row strong {
  color: var(--text);
  font-size: 1.62rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.rain-panel {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 3.5rem minmax(0, 1fr);
  align-items: stretch;
  border-radius: 0.42rem;
}

.rain-summary {
  display: contents;
  border-right: 0;
}

.rain-title {
  justify-content: center;
  padding: 0.44rem 0.65rem 0;
  font-size: 1.34rem;
}

.section-icon {
  width: 3.25rem;
  height: 3.25rem;
}

.rain-readouts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rain-stat,
.rain-time,
.rain-next {
  padding: 0.15rem 0.5rem 0.42rem;
}

.rain-stat span,
.rain-time span,
.rain-next span {
  font-size: 0.85rem;
}

.rain-stat strong {
  font-size: 2.08rem;
}

.rain-stat em {
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.rain-time strong {
  font-size: 1.62rem;
}

.rain-time em {
  font-size: 0.64rem;
}

.rain-next strong {
  font-size: 1.48rem;
}

.sun-uv-panel {
  display: grid;
  grid-template-columns: minmax(6.9rem, 0.8fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
}

.compact-uv {
  grid-row: 1 / -1;
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 0;
  border-right: 0.12rem solid var(--line);
}

.compact-uv-icon {
  width: 4.7rem;
  height: 4.7rem;
}

.compact-uv strong {
  margin-top: 0.1rem;
  color: var(--amber);
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.92;
}

.compact-uv em {
  color: var(--amber);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.compact-sun {
  display: grid;
  grid-template-columns: 4.05rem minmax(0, auto);
  gap: 0.46rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.3rem 0.55rem;
}

.compact-sunrise {
  border-bottom: 0.12rem solid var(--line);
}

.compact-sun-icon {
  width: 3.75rem;
  height: 3.75rem;
}

.compact-sun span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.compact-sun strong {
  display: block;
  margin-top: 0.1rem;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.rain-bars-panel {
  display: grid;
  min-height: 0;
}

.rain-bars-panel .rain-bars {
  height: 100%;
  padding: 0.55rem 0.65rem 0.55rem;
}

.rain-bars-panel .rain-day strong {
  font-size: 1.28rem;
}

.rain-bars-panel .rain-day span {
  font-size: 1.03rem;
}

.rain-bars-panel .rain-bar-track {
  width: 3.4rem;
}

.forecast-rail {
  border-radius: 0.42rem;
}

.forecast-day {
  grid-template-rows: 3.15rem 2.2rem auto auto;
  padding: 0.52rem 1rem 0.62rem;
}

/* Alignment polish for the front-yard experiment. */
.location-label {
  margin-bottom: 0.58rem;
}

.front-yard-card {
  align-self: stretch;
  height: 100%;
  max-height: none;
  padding: 0;
}

.sensor-hero-card {
  grid-template-rows: minmax(0, 1fr) 3.95rem;
  align-items: stretch;
}

.sensor-card-main {
  grid-template-rows: auto auto auto;
  align-content: center;
  align-self: stretch;
  gap: 0.34rem;
  padding: 0.72rem 0.8rem 0.5rem;
}

.sensor-card-label {
  font-size: 1.3rem;
}

.front-yard-icon {
  width: 6.15rem;
  height: 4.35rem;
}

.sensor-card-temp {
  font-size: 5.15rem;
  line-height: 0.86;
}

.sensor-hero-card-empty {
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
}

.wind-stack {
  grid-template-rows: minmax(0, 1fr) 5.7rem;
}

.wind-readouts {
  align-items: stretch;
  line-height: 1;
}

.wind-readouts span {
  min-height: 0;
  padding: 0;
}

.sun-uv-panel {
  grid-template-columns: minmax(6.7rem, 0.78fr) minmax(0, 1fr);
}

.compact-uv {
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 0.12rem;
  padding: 0.32rem 0.2rem;
}

.compact-uv-icon {
  width: 4.1rem;
  height: 4.1rem;
}

.compact-uv strong {
  margin-top: 0;
  font-size: 2.78rem;
  line-height: 0.86;
}

.compact-uv em {
  font-size: 0.98rem;
  line-height: 1;
}

.compact-sun {
  grid-template-columns: 3.55rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.52rem;
  row-gap: 0.08rem;
  align-content: center;
  align-items: center;
  justify-content: stretch;
  padding: 0.18rem 0.58rem;
}

.compact-sun-icon {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 3.25rem;
  height: 3.25rem;
}

.compact-sun span {
  grid-column: 2;
  align-self: end;
  font-size: 0.9rem;
}

.compact-sun strong {
  grid-column: 2;
  align-self: start;
  margin-top: 0;
  font-size: 1.5rem;
}

.rain-bars-panel .rain-day strong {
  font-size: 1.42rem;
}

.rain-bars-panel .rain-day span {
  font-size: 1.1rem;
}

.forecast-rain {
  gap: 0.48rem;
  font-size: 1.38rem;
}

.forecast-drop {
  width: 1.22rem;
  height: 1.48rem;
}

.forecast-day {
  grid-template-rows: 2.85rem 2.05rem auto auto;
  padding: 0.5rem 0.9rem 0.62rem;
}

.forecast-head {
  align-items: start;
}

.forecast-icon {
  width: 4.75rem;
  height: 3.85rem;
}

/* Lightning replaces the front-yard sensor card, so it needs its own final layout. */
.lightning-alert {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 13.2rem);
  grid-template-rows: auto;
  gap: 0.95rem;
  place-content: center;
  align-items: center;
  justify-items: center;
  height: 100%;
  padding: 1.15rem 1rem;
  text-align: center;
  border-color: rgb(255 179 44 / 0.95);
  border-width: 0.16rem;
  box-shadow:
    inset 0 0 0 0.08rem rgb(255 226 138 / 0.28),
    inset 0 0 2.2rem rgb(255 179 44 / 0.09),
    0 0 1.45rem rgb(255 179 44 / 0.26);
}

.lightning-alert-icon {
  width: 5.4rem;
  height: 5.4rem;
  filter: drop-shadow(0 0 0.85rem rgb(255 179 44 / 0.38));
}

.lightning-alert-copy {
  display: grid;
  justify-items: center;
  gap: 0.34rem;
  min-width: 0;
}

.lightning-alert-label {
  color: var(--amber);
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.lightning-alert strong {
  color: var(--text);
  font-size: 4rem;
  font-weight: 700;
  line-height: 0.9;
  white-space: nowrap;
}

.lightning-alert em {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.lightning-alert em b,
.lightning-alert em i {
  font: inherit;
  white-space: nowrap;
}

.lightning-alert em i::before {
  content: "";
  display: inline-block;
  width: 0.28rem;
  height: 0.28rem;
  margin: 0 0.45rem 0.08rem 0;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
}

.inside-panel-icon {
  width: 5.75rem;
  height: 5.75rem;
  filter: drop-shadow(0 0 0.55rem rgb(73 183 255 / 0.2));
}

/* Final lightning-state polish: align sensor readings as columns and reserve
   real vertical space for large forecast icons. */
.sensors-panel {
  padding: 0.58rem 0.45rem;
}

.sensor-stack-title {
  justify-self: center;
  width: 100%;
  text-align: center;
}

.sensor-stack-list {
  grid-template-columns: minmax(4.7rem, 1fr) minmax(2.7rem, auto) minmax(2.4rem, auto);
  column-gap: 0.24rem;
  row-gap: 0.5rem;
  align-items: baseline;
  width: 100%;
  max-width: 100%;
  padding: 0 0.12rem;
}

.sensor-stack-row {
  display: contents;
}

.sensor-stack-row span {
  justify-self: start;
}

.sensor-stack-row strong {
  justify-self: end;
  min-width: 2.7rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sensor-stack-row em {
  justify-self: end;
  min-width: 2.4rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.forecast-day {
  grid-template-rows: 3.6rem 1.85rem 2.35rem 1.35rem;
  gap: 0.08rem;
  padding: 0.36rem 0.85rem 0.4rem;
}

.forecast-head {
  align-items: start;
}

.forecast-icon {
  width: 3.95rem;
  height: 3.25rem;
}

.forecast-day > span {
  align-self: start;
  font-size: 0.92rem;
  line-height: 1.02;
}

.forecast-temps {
  align-self: center;
  font-size: 2.05rem;
}

.forecast-rain {
  align-self: end;
  font-size: 1.26rem;
}

.lightning-alert {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0.46rem;
  place-content: center;
  justify-items: center;
  padding: 1rem 1.15rem;
}

.lightning-alert-icon {
  justify-self: center;
  width: 4.85rem;
  height: 4.85rem;
}

.lightning-alert-copy {
  justify-self: center;
  gap: 0.44rem;
  width: 100%;
  max-width: 15.6rem;
}

.lightning-alert em {
  width: 100%;
  gap: 0.4rem;
  font-size: 1.22rem;
  line-height: 1;
}
