/**
 * Top navigation layout — replaces the left sidebar.
 * Brand + full menu taxonomy live in a horizontal top bar.
 */

/* Full-width main panel (no 260px sidebar offset) */
.top-nav-layout .main-panel {
  width: 100% !important;
  float: none !important;
  max-height: none !important;
  height: auto !important;
  min-height: 100vh;
  position: relative;
}

.top-nav-layout .main-panel > .content {
  padding-top: 12px;
  padding-left: 12px;
  padding-right: 12px;
  min-height: calc(100vh - 140px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Dashboard units: use near full viewport width */
.top-nav-layout .main-panel > .content:has(.shelly-btn-page) {
  padding-left: 10px;
  padding-right: 10px;
}

/* ── Top main nav ─────────────────────────────────────────────── */
.top-main-nav {
  background: #1f77d0;
  background-image: linear-gradient(to bottom, #1f77d0 0%, #1a5fb4 100%);
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0.35rem 0.75rem;
  min-height: 56px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  z-index: 1030;
  position: sticky;
  top: 0;
}

.top-main-nav .navbar-brand {
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 1.25rem;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.top-main-nav .navbar-brand:hover,
.top-main-nav .navbar-brand:focus {
  color: #fff !important;
  opacity: 0.92;
}

.top-main-nav .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.35rem 0.55rem;
}

.top-main-nav .navbar-toggler-icon {
  /* Bootstrap 4 hamburger via bars (no SVG icon font here) */
  display: none;
}

.top-main-nav .navbar-toggler .navbar-toggler-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  border-radius: 1px;
}

.top-main-nav .navbar-nav {
  align-items: center;
}

.top-main-nav .navbar-nav .nav-item {
  margin: 0 1px;
}

.top-main-nav .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.65rem !important;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  opacity: 1;
}

.top-main-nav .navbar-nav .nav-link:hover,
.top-main-nav .navbar-nav .nav-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14);
}

.top-main-nav .navbar-nav .nav-item.active > .nav-link,
.top-main-nav .navbar-nav .nav-item.active.nav-item > .nav-link {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.24);
}

.top-main-nav .navbar-nav .nav-link i {
  font-size: 16px;
  width: auto;
  margin: 0;
  float: none;
  line-height: 1;
  vertical-align: middle;
}

.top-main-nav .navbar-nav .nav-link p,
.top-main-nav .navbar-nav .nav-link .nav-label {
  margin: 0;
  line-height: 1.2;
  font-size: inherit;
  font-weight: inherit;
  text-transform: inherit;
  display: inline;
}

.top-main-nav .navbar-nav .nav-link .no-icon {
  font-size: inherit;
  font-weight: inherit;
}

/* Account / logout cluster on the right */
.top-main-nav .nav-account .nav-link {
  opacity: 0.9;
}

.top-main-nav .nav-account {
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

/* Hide the old secondary account navbar if present */
.top-nav-layout .main-panel > .navbar:not(.top-main-nav) {
  display: none;
}

/* Mobile: stacked menu */
@media (max-width: 991.98px) {
  .top-main-nav .navbar-collapse {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .top-main-nav .navbar-nav {
    align-items: stretch;
    width: 100%;
  }

  .top-main-nav .navbar-nav .nav-link {
    width: 100%;
    padding: 0.65rem 0.75rem !important;
  }

  .top-main-nav .nav-account {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 0.35rem;
    padding-top: 0.35rem;
  }

  .top-main-nav .navbar-nav.nav-account {
    width: 100%;
  }
}

/* Compact icons on medium widths so more items fit */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .top-main-nav .navbar-nav .nav-link {
    padding: 0.4rem 0.45rem !important;
    font-size: 10px;
  }

  .top-main-nav .navbar-nav .nav-link i {
    font-size: 14px;
  }

  .top-main-nav .navbar-brand {
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }
}

/* ── Portland ME weather strip (below top nav, full width) ───── */
.wx-strip {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(90deg, #eef6ff 0%, #f8fbff 45%, #fff7ed 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  z-index: 1020;
  position: sticky;
  top: 56px;
}

.wx-strip.is-sun {
  background: linear-gradient(90deg, #fff7ed 0%, #fefce8 40%, #eff6ff 100%);
}
.wx-strip.is-rain {
  background: linear-gradient(90deg, #e0f2fe 0%, #f0f9ff 50%, #eef2ff 100%);
}
.wx-strip.is-snow {
  background: linear-gradient(90deg, #f0f9ff 0%, #f8fafc 50%, #eff6ff 100%);
}
.wx-strip.is-night {
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 55%, #1e1b4b 100%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.wx-strip-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 1rem;
  max-width: 100%;
  min-height: 52px;
  box-sizing: border-box;
}

/* Live EST/EDT day + time */
.wx-strip-clock {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  flex: 0 0 auto;
  min-width: 5.5rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  padding-right: 0.65rem;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
}
.wx-strip.is-night .wx-strip-clock {
  border-right-color: rgba(255, 255, 255, 0.12);
}
.wx-clock-day {
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}
.wx-strip.is-night .wx-clock-day { color: #e2e8f0; }
.wx-clock-time {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: nowrap;
}
.wx-strip.is-night .wx-clock-time { color: #f8fafc; }
.wx-clock-tz {
  font-size: 0.58rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
}
.wx-strip.is-night .wx-clock-tz { color: #94a3b8; }

.wx-strip-now {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

/* Shared height for hub / lock / AQI status chips (locks are 3 lines) */
.wx-strip-hub,
.wx-strip-lock,
.wx-strip-aqi {
  min-height: 3.05rem;
  box-sizing: border-box;
  align-self: stretch;
}

/* Shelly button-hub smart plug (critical infrastructure) */
.wx-strip-hub {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  padding: 0.35rem 0.6rem 0.35rem 0.45rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: rgba(15, 23, 42, 0.04);
}
.wx-hub-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #94a3b8;
}
.wx-hub-icon {
  font-size: 0.85rem;
  width: 0.95rem;
  text-align: center;
  color: #64748b;
}
.wx-hub-meta {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
  min-width: 0;
}
.wx-hub-caption {
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
  color: #64748b;
  white-space: nowrap;
}
.wx-hub-state {
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  color: #334155;
}
.wx-hub-power {
  font-weight: 700;
  opacity: 0.85;
}
.wx-strip-hub.hub-online {
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(22, 163, 74, 0.28);
}
.wx-strip-hub.hub-online .wx-hub-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
  animation: wx-hub-pulse 2s ease-in-out infinite;
}
.wx-strip-hub.hub-online .wx-hub-icon,
.wx-strip-hub.hub-online .wx-hub-state { color: #15803d; }
.wx-strip-hub.hub-online .wx-hub-caption { color: #16a34a; }
.wx-strip-hub.hub-offline {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(220, 38, 38, 0.35);
}
.wx-strip-hub.hub-offline .wx-hub-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}
.wx-strip-hub.hub-offline .wx-hub-icon,
.wx-strip-hub.hub-offline .wx-hub-state { color: #b91c1c; }
.wx-strip-hub.hub-offline .wx-hub-caption { color: #dc2626; }
.wx-strip-hub.hub-unknown {
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(217, 119, 6, 0.3);
}
.wx-strip-hub.hub-unknown .wx-hub-dot { background: #f59e0b; }
.wx-strip-hub.hub-unknown .wx-hub-icon,
.wx-strip-hub.hub-unknown .wx-hub-state { color: #b45309; }
.wx-strip-hub.hub-unknown .wx-hub-caption { color: #d97706; }

@keyframes wx-hub-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.08); }
}

.wx-strip.is-night .wx-strip-hub.hub-online {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(74, 222, 128, 0.3);
}
.wx-strip.is-night .wx-strip-hub.hub-online .wx-hub-icon,
.wx-strip.is-night .wx-strip-hub.hub-online .wx-hub-state { color: #86efac; }
.wx-strip.is-night .wx-strip-hub.hub-online .wx-hub-caption { color: #4ade80; }
.wx-strip.is-night .wx-strip-hub.hub-offline {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.35);
}
.wx-strip.is-night .wx-strip-hub.hub-offline .wx-hub-icon,
.wx-strip.is-night .wx-strip-hub.hub-offline .wx-hub-state { color: #fca5a5; }
.wx-strip.is-night .wx-strip-hub.hub-offline .wx-hub-caption { color: #f87171; }
.wx-strip.is-night .wx-strip-hub.hub-unknown {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.3);
}
.wx-strip.is-night .wx-strip-hub.hub-unknown .wx-hub-icon,
.wx-strip.is-night .wx-strip-hub.hub-unknown .wx-hub-state { color: #fde047; }
.wx-strip.is-night .wx-strip-hub.hub-unknown .wx-hub-caption { color: #fbbf24; }

/* Schlage lock badges on weather strip (Backdoor, Basement) */
.wx-strip-lock {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  padding: 0.35rem 0.55rem 0.35rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.1);
  line-height: 1.1;
  max-width: 9.5rem;
}
.wx-lock-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #94a3b8;
}
.wx-lock-icon {
  font-size: 0.85rem;
  width: 0.95rem;
  text-align: center;
  color: #64748b;
  flex: 0 0 auto;
}
.wx-lock-meta {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
  min-width: 0;
}
.wx-lock-caption {
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
  color: #64748b;
  white-space: nowrap;
}
.wx-lock-state {
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  color: #334155;
}
.wx-lock-who {
  font-size: 0.58rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 7.5rem;
}
.wx-strip-lock.lock-online.lock-closed {
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(22, 163, 74, 0.28);
}
.wx-strip-lock.lock-online.lock-closed .wx-lock-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.wx-strip-lock.lock-online.lock-closed .wx-lock-icon,
.wx-strip-lock.lock-online.lock-closed .wx-lock-state { color: #15803d; }
.wx-strip-lock.lock-online.lock-closed .wx-lock-caption { color: #16a34a; }

.wx-strip-lock.lock-online.lock-open {
  color: #78350f;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(217, 119, 6, 0.5);
}
.wx-strip-lock.lock-online.lock-open .wx-lock-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}
.wx-strip-lock.lock-online.lock-open .wx-lock-icon,
.wx-strip-lock.lock-online.lock-open .wx-lock-state { color: #92400e; font-weight: 800; }
.wx-strip-lock.lock-online.lock-open .wx-lock-caption { color: #b45309; font-weight: 800; }
.wx-strip-lock.lock-online.lock-open .wx-lock-who { color: #a16207; }

/* Compact Open / Close controls on header lock chips */
.wx-lock-actions {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-shrink: 0;
  margin-left: 0.15rem;
}
.wx-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.12rem 0.35rem;
  border-radius: 5px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
}
.wx-lock-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(0.35);
}
.wx-lock-btn-unlock {
  color: #92400e;
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.55);
}
.wx-lock-btn-unlock:hover:not(:disabled) {
  background: #fde68a;
}
.wx-lock-btn-lock {
  color: #14532d;
  background: #f0fdf4;
  border-color: rgba(34, 197, 94, 0.5);
}
.wx-lock-btn-lock:hover:not(:disabled) {
  background: #bbf7d0;
}

.wx-strip-lock.lock-offline {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(220, 38, 38, 0.35);
}
.wx-strip-lock.lock-offline .wx-lock-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}
.wx-strip-lock.lock-offline .wx-lock-icon,
.wx-strip-lock.lock-offline .wx-lock-state { color: #b91c1c; }
.wx-strip-lock.lock-offline .wx-lock-caption { color: #dc2626; }

.wx-strip.is-night .wx-strip-lock.lock-online.lock-closed {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(74, 222, 128, 0.3);
}
.wx-strip.is-night .wx-strip-lock.lock-online.lock-closed .wx-lock-icon,
.wx-strip.is-night .wx-strip-lock.lock-online.lock-closed .wx-lock-state { color: #86efac; }
.wx-strip.is-night .wx-strip-lock.lock-online.lock-closed .wx-lock-caption { color: #4ade80; }
.wx-strip.is-night .wx-strip-lock.lock-online.lock-open {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.65) 0%, rgba(69, 26, 3, 0.5) 100%);
  border-color: rgba(251, 191, 36, 0.55);
}
.wx-strip.is-night .wx-strip-lock.lock-online.lock-open .wx-lock-icon,
.wx-strip.is-night .wx-strip-lock.lock-online.lock-open .wx-lock-state {
  color: #fef3c7;
  font-weight: 800;
}
.wx-strip.is-night .wx-strip-lock.lock-online.lock-open .wx-lock-caption {
  color: #fde68a;
  font-weight: 800;
}
.wx-strip.is-night .wx-strip-lock.lock-online.lock-open .wx-lock-who { color: #fcd34d; }
.wx-strip.is-night .wx-strip-lock.lock-offline {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.35);
}
.wx-strip.is-night .wx-strip-lock.lock-offline .wx-lock-icon,
.wx-strip.is-night .wx-strip-lock.lock-offline .wx-lock-state { color: #fca5a5; }
.wx-strip.is-night .wx-strip-lock.lock-offline .wx-lock-caption { color: #f87171; }
.wx-strip.is-night .wx-lock-who { color: #94a3b8; }
.wx-strip.is-night .wx-lock-btn-unlock {
  color: #1c1917;
  background: #fbbf24;
  border-color: #f59e0b;
}
.wx-strip.is-night .wx-lock-btn-lock {
  color: #052e16;
  background: #4ade80;
  border-color: #22c55e;
}

/* US AQI badge */
.wx-strip-aqi {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem;
  border-radius: 0.45rem;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.wx-aqi-value {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  min-width: 1.5rem;
  text-align: center;
}
.wx-aqi-meta {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
}
.wx-aqi-caption {
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.wx-aqi-label {
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}
.wx-strip-aqi.aqi-good {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
  color: #15803d;
}
.wx-strip-aqi.aqi-moderate {
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(202, 138, 4, 0.4);
  color: #a16207;
}
.wx-strip-aqi.aqi-usg {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.4);
  color: #c2410c;
}
.wx-strip-aqi.aqi-unhealthy {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #b91c1c;
}
.wx-strip-aqi.aqi-very {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.4);
  color: #7e22ce;
}
.wx-strip-aqi.aqi-hazardous {
  background: rgba(127, 29, 29, 0.18);
  border-color: rgba(127, 29, 29, 0.45);
  color: #7f1d1d;
}
.wx-strip.is-night .wx-strip-aqi.aqi-good { color: #86efac; background: rgba(34, 197, 94, 0.18); }
.wx-strip.is-night .wx-strip-aqi.aqi-moderate { color: #fde047; background: rgba(234, 179, 8, 0.18); }
.wx-strip.is-night .wx-strip-aqi.aqi-usg { color: #fdba74; background: rgba(249, 115, 22, 0.2); }
.wx-strip.is-night .wx-strip-aqi.aqi-unhealthy { color: #fca5a5; background: rgba(239, 68, 68, 0.2); }
.wx-strip.is-night .wx-strip-aqi.aqi-very { color: #d8b4fe; background: rgba(168, 85, 247, 0.22); }
.wx-strip.is-night .wx-strip-aqi.aqi-hazardous { color: #fecaca; background: rgba(127, 29, 29, 0.3); }

.wx-strip-icon {
  font-size: 1.15rem;
  width: 1.25rem;
  text-align: center;
  color: #64748b;
}
.wx-strip.is-sun .wx-strip-icon { color: #f59e0b; }
.wx-strip.is-cloud .wx-strip-icon { color: #64748b; }
.wx-strip.is-rain .wx-strip-icon { color: #0ea5e9; }
.wx-strip.is-snow .wx-strip-icon { color: #38bdf8; }
.wx-strip.is-night .wx-strip-icon { color: #fbbf24; }

.wx-strip-temp {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1;
}
.wx-strip.is-night .wx-strip-temp { color: #f8fafc; }

.wx-strip-deg {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  margin-left: 0.05rem;
  vertical-align: super;
}
.wx-strip.is-night .wx-strip-deg { color: #94a3b8; }

/* Relative humidity next to temp */
.wx-strip-humidity {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #0369a1;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid rgba(15, 23, 42, 0.1);
  margin-left: 0.05rem;
  padding-left: 0.4rem;
}
.wx-strip-humidity .fa {
  font-size: 0.62rem;
  color: #0ea5e9;
  margin-right: 0.05rem;
  position: relative;
  top: -0.05rem;
}
.wx-strip.is-night .wx-strip-humidity {
  color: #7dd3fc;
  border-left-color: rgba(255, 255, 255, 0.12);
}
.wx-strip.is-night .wx-strip-humidity .fa { color: #38bdf8; }
.wx-strip-pct {
  font-size: 0.58rem;
  font-weight: 700;
  color: #64748b;
  margin-left: 0.02rem;
  vertical-align: super;
}
.wx-strip.is-night .wx-strip-pct { color: #94a3b8; }

.wx-strip-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
  min-width: 0;
}

.wx-strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}
.wx-strip.is-night .wx-strip-label { color: #e2e8f0; }

.wx-strip-city {
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.wx-strip.is-night .wx-strip-city { color: #94a3b8; }

.wx-strip-hl {
  font-size: 0.62rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.wx-strip.is-night .wx-strip-hl { color: #cbd5e1; }

/* Day arc: sunrise ──●── sunset across remaining width */
.wx-strip-day {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
}

.wx-sun-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  flex: 0 0 auto;
  min-width: 3.2rem;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
.wx-strip.is-night .wx-sun-end { color: #cbd5e1; }

.wx-sun-end i {
  font-size: 0.65rem;
  opacity: 0.85;
}
.wx-sun-rise i { color: #f59e0b; }
.wx-sun-set i { color: #f97316; }
.wx-strip.is-night .wx-sun-rise i { color: #fbbf24; }
.wx-strip.is-night .wx-sun-set i { color: #fb923c; }

.wx-sun-time {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
  line-height: 1.1;
}
.wx-strip.is-night .wx-sun-time { color: #f1f5f9; }

.wx-sun-caption {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.wx-strip.is-night .wx-sun-caption { color: #64748b; }

.wx-sun-track {
  position: relative;
  flex: 1 1 auto;
  height: 22px;
  min-width: 80px;
  display: flex;
  align-items: center;
}

.wx-sun-sky {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(251, 191, 36, 0.25) 0%,
    rgba(56, 189, 248, 0.18) 45%,
    rgba(249, 115, 22, 0.28) 100%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}
.wx-strip.is-night .wx-sun-sky {
  background: linear-gradient(90deg,
    rgba(251, 191, 36, 0.15) 0%,
    rgba(99, 102, 241, 0.2) 50%,
    rgba(249, 115, 22, 0.18) 100%);
}

.wx-sun-arc-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.35);
  z-index: 1;
}
.wx-strip.is-night .wx-sun-arc-line {
  background: rgba(148, 163, 184, 0.25);
}

.wx-sun-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #38bdf8);
  z-index: 2;
  max-width: 100%;
  transition: width 0.6s ease;
}

.wx-sun-now-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fde68a, #f59e0b 55%, #d97706);
  box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(15, 23, 42, 0.25);
  z-index: 3;
  transition: left 0.6s ease;
}
.wx-strip.is-night .wx-sun-now-dot {
  background: radial-gradient(circle at 35% 35%, #e2e8f0, #94a3b8 60%, #64748b);
  box-shadow: 0 0 0 2px #1e293b, 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767.98px) {
  .wx-strip {
    top: auto;
    position: relative;
  }
  .wx-strip-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem 0.5rem;
  }
  .wx-strip-clock {
    flex-direction: row;
    align-items: baseline;
    gap: 0.45rem;
    min-width: 0;
    padding-right: 0;
    border-right: none;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
  .wx-strip.is-night .wx-strip-clock {
    border-right: none;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  .wx-strip-now {
    justify-content: flex-start;
  }
  .wx-strip-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
  }
  .wx-strip-aqi,
  .wx-strip-hub,
  .wx-strip-lock {
    align-self: stretch;
    width: 100%;
    max-width: none;
  }
  .wx-sun-end {
    min-width: 2.6rem;
  }
  .wx-sun-caption {
    display: none;
  }
}
