/* Live Time & Weather module - visual polish 2026-05-16
   Targeted change only: improve spacing/contrast for live weather text. */
html body #app.app-shell .dashboard .panel h3 {
  margin-bottom: 8px !important;
}

html body #app.app-shell .clock-grid .mini-card {
  min-height: 92px !important;
  justify-content: center !important;
  overflow: hidden !important;
}

html body #app.app-shell .clock-grid .mini-card .weather-line {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 5px 7px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(2, 8, 28, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.45);
  white-space: normal;
}

html body #app.app-shell .clock-grid .mini-card .weather-line.is-loading,
html body #app.app-shell .clock-grid .mini-card .weather-line.is-unavailable {
  opacity: 0.88;
  font-weight: 800;
  font-size: 0.62rem;
  line-height: 1.15;
}

html body #app.app-shell .clock-grid .mini-card .weather-main {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 0.66rem;
  line-height: 1.05;
  font-weight: 950;
}

html body #app.app-shell .clock-grid .mini-card .weather-temp {
  font-size: 0.78rem;
  font-weight: 950;
}

html body #app.app-shell .clock-grid .mini-card .weather-condition {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #app.app-shell .clock-grid .mini-card .weather-detail {
  margin-top: 2px;
  font-size: 0.55rem;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}

@media (max-width: 720px) {
  html body #app.app-shell .clock-grid .mini-card {
    min-height: 88px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  html body #app.app-shell .clock-grid .mini-card .weather-line {
    margin-top: 4px;
    padding: 4px 6px 4px;
  }

  html body #app.app-shell .clock-grid .mini-card .weather-main {
    font-size: 0.6rem;
  }

  html body #app.app-shell .clock-grid .mini-card .weather-temp {
    font-size: 0.7rem;
  }

  html body #app.app-shell .clock-grid .mini-card .weather-detail {
    font-size: 0.49rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 430px) {
  html body #app.app-shell .dashboard .panel {
    padding-top: 11px !important;
    padding-bottom: 13px !important;
  }

  html body #app.app-shell .clock-grid .mini-card {
    min-height: 86px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  html body #app.app-shell .clock-grid .mini-card .weather-line {
    border-radius: 9px;
    padding-left: 5px;
    padding-right: 5px;
  }

  html body #app.app-shell .clock-grid .mini-card .weather-main {
    font-size: 0.56rem;
    gap: 3px;
  }

  html body #app.app-shell .clock-grid .mini-card .weather-temp {
    font-size: 0.66rem;
  }

  html body #app.app-shell .clock-grid .mini-card .weather-detail {
    font-size: 0.45rem;
    letter-spacing: 0.045em;
  }
}

/* Weather readability contrast fix - 2026-05-16
   Targeted change only: make live weather values high-contrast over flag backgrounds. */
html body #app.app-shell .clock-grid .mini-card .weather-line,
html body #app.app-shell .clock-grid .mini-card .weather-line * {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

html body #app.app-shell .clock-grid .mini-card .weather-line {
  background: rgba(3, 6, 18, 0.74) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  border-top-color: rgba(255, 255, 255, 0.52) !important;
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body #app.app-shell .clock-grid .mini-card .weather-main,
html body #app.app-shell .clock-grid .mini-card .weather-temp,
html body #app.app-shell .clock-grid .mini-card .weather-condition,
html body #app.app-shell .clock-grid .mini-card .weather-detail,
html body #app.app-shell .clock-grid .mini-card .weather-icon {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(0, 0, 0, 0.70) !important;
}

html body #app.app-shell .clock-grid .mini-card .weather-temp {
  font-weight: 1000 !important;
  letter-spacing: 0.01em !important;
}

html body #app.app-shell .clock-grid .mini-card .weather-condition,
html body #app.app-shell .clock-grid .mini-card .weather-detail {
  font-weight: 950 !important;
}
