/* Quiet Precision: bestätigte Standortanschrift und kompakte 7-Tage-Wetterprojektion. */
body.package1-ui-active .location-weather-mount {
  position: relative;
  min-width: 0;
  flex: 0 1 430px;
}

body.package1-ui-active .location-weather-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

body.package1-ui-active .location-weather-address {
  display: grid;
  min-width: 0;
  flex: 1 1 250px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 4px 7px;
  color: var(--kms-color-text, #172033);
  border-radius: 10px;
  background: var(--kms-color-surface-subtle, #f5f7fa);
}

body.package1-ui-active .location-weather-address > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

body.package1-ui-active .location-weather-address small,
body.package1-ui-active .location-weather-panel header small {
  color: var(--kms-color-text-secondary-strong, #64748b);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.package1-ui-active .location-weather-address strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.package1-ui-active .location-weather-pin {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--kms-color-primary, #2563eb);
  border-radius: 8px;
  background: color-mix(in srgb, var(--kms-color-primary, #2563eb) 10%, var(--kms-color-surface, #fff));
}

body.package1-ui-active .location-weather-pill {
  display: flex;
  min-width: 98px;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 10px;
  color: var(--kms-color-text, #172033);
  border: 1px solid var(--kms-color-border, #dbe2ea);
  border-radius: 12px;
  background: var(--kms-color-surface, #fff);
  box-shadow: none;
}

body.package1-ui-active .location-weather-pill:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: color-mix(in srgb, var(--kms-color-primary, #2563eb) 42%, var(--kms-color-border, #dbe2ea));
  background: color-mix(in srgb, var(--kms-color-primary, #2563eb) 5%, var(--kms-color-surface, #fff));
}

body.package1-ui-active .location-weather-pill:focus-visible,
body.package1-ui-active .location-weather-close:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--kms-color-primary, #2563eb) 28%, transparent);
  outline-offset: 2px;
}

body.package1-ui-active .location-weather-pill-symbol {
  color: var(--kms-color-warning, #d97706);
  font-size: 22px;
  line-height: 1;
}

body.package1-ui-active .location-weather-pill > span:last-child {
  display: grid;
  gap: 1px;
  text-align: left;
}

body.package1-ui-active .location-weather-pill strong { font-size: 13px; line-height: 1; }
body.package1-ui-active .location-weather-pill small { color: var(--kms-color-text-secondary-strong, #64748b); font-size: 9px; line-height: 1.2; white-space: nowrap; }
body.package1-ui-active .location-weather-summary.is-unavailable .location-weather-pill { min-width: 140px; color: var(--kms-color-text-secondary-strong, #64748b); cursor: default; }
body.package1-ui-active .location-weather-neutral { color: var(--kms-color-text-secondary-strong, #64748b); font-size: 11px; font-weight: 750; white-space: nowrap; }

body.package1-ui-active .location-weather-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--kms-color-border, #dbe2ea);
  border-top-color: var(--kms-color-primary, #2563eb);
  border-radius: 999px;
  animation: location-weather-spin .8s linear infinite;
}

@keyframes location-weather-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  body.package1-ui-active .location-weather-spinner { animation: none; }
}

body.package1-ui-active .location-weather-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  right: 0;
  width: min(650px, calc(100vw - 44px));
  padding: 16px;
  color: var(--kms-color-text, #172033);
  border: 1px solid var(--kms-color-border, #dbe2ea);
  border-radius: var(--kms-radius-lg, 16px);
  background: var(--kms-color-surface, #fff);
  box-shadow: 0 22px 55px rgba(20, 31, 48, .2);
}

body.package1-ui-active .location-weather-panel.hidden { display: none; }
body.package1-ui-active .location-weather-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
body.package1-ui-active .location-weather-panel header > div { min-width: 0; }
body.package1-ui-active .location-weather-panel h2 { margin: 2px 0 3px; font-size: 18px; }
body.package1-ui-active .location-weather-panel header p { margin: 0; color: var(--kms-color-text-secondary-strong, #64748b); font-size: 12px; overflow-wrap: anywhere; }
body.package1-ui-active .location-weather-close {
  display: grid;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  place-items: center;
  color: var(--kms-color-text-secondary-strong, #64748b);
  border: 0;
  border-radius: 10px;
  background: var(--kms-color-surface-subtle, #f5f7fa);
  box-shadow: none;
  font-size: 22px;
}

body.package1-ui-active .location-weather-status { margin: 14px 0 10px; color: var(--kms-color-text-secondary-strong, #64748b); font-size: 11px; }
body.package1-ui-active .location-weather-status.is-stale { padding: 8px 10px; color: var(--kms-color-warning-text, #8a4b00); border-radius: 9px; background: var(--kms-color-warning-soft-bg, #fff7df); }
body.package1-ui-active .location-weather-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
body.package1-ui-active .location-weather-day {
  display: grid;
  min-width: 0;
  min-height: 118px;
  align-content: space-between;
  justify-items: center;
  gap: 6px;
  padding: 10px 5px;
  border: 1px solid var(--kms-color-border, #dbe2ea);
  border-radius: 11px;
  background: var(--kms-color-surface-subtle, #f5f7fa);
  text-align: center;
}

body.package1-ui-active .location-weather-day time,
body.package1-ui-active .location-weather-temperatures { display: grid; gap: 1px; }
body.package1-ui-active .location-weather-day time strong { font-size: 11px; text-transform: uppercase; }
body.package1-ui-active .location-weather-day time small,
body.package1-ui-active .location-weather-temperatures small { color: var(--kms-color-text-secondary-strong, #64748b); font-size: 10px; }
body.package1-ui-active .location-weather-symbol { color: var(--kms-color-primary, #2563eb); font-size: 24px; line-height: 1; }
body.package1-ui-active .location-weather-temperatures strong { font-size: 13px; }

@media (min-width: 769px) and (max-width: 1180px) {
  body.package1-ui-active .location-weather-mount { flex-basis: auto; }
  body.package1-ui-active .location-weather-address { display: none; }
  body.package1-ui-active .location-weather-panel {
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;
    width: auto;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  body.package1-ui-active .location-weather-mount { position: static; flex: 0 0 auto; }
  body.package1-ui-active .location-weather-address { display: none; }
  body.package1-ui-active .location-weather-neutral { display: none; }
  body.package1-ui-active .location-weather-summary.is-neutral { display: none; }
  body.package1-ui-active .location-weather-pill,
  body.package1-ui-active .location-weather-summary.is-unavailable .location-weather-pill {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 11px;
  }
  body.package1-ui-active .location-weather-pill > span:last-child { display: none; }
  body.package1-ui-active .location-weather-pill-symbol { font-size: 21px; }
  body.package1-ui-active .location-weather-panel {
    position: fixed;
    z-index: 180;
    top: auto;
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100dvh - 100px - env(safe-area-inset-bottom));
    overflow-y: auto;
    padding: 16px;
    border-radius: 18px 18px 14px 14px;
    box-shadow: 0 28px 70px rgba(20, 31, 48, .3);
  }
  body.package1-ui-active .location-weather-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.package1-ui-active .location-weather-day {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) 28px auto;
    align-content: center;
    align-items: center;
    justify-items: start;
    gap: 8px;
    padding: 6px 9px;
    text-align: left;
  }
  body.package1-ui-active .location-weather-day:last-child { grid-column: 1 / -1; }
  body.package1-ui-active .location-weather-day time,
  body.package1-ui-active .location-weather-temperatures { text-align: left; }
}

@media (max-width: 420px) {
  body.package1-ui-active .location-weather-days { grid-template-columns: 1fr; }
  body.package1-ui-active .location-weather-day:last-child { grid-column: auto; }
  body.package1-ui-active .location-weather-panel { padding: 14px; }
  body.package1-ui-active .location-weather-panel h2 { font-size: 17px; }
  body.package1-ui-active .location-weather-status { margin: 10px 0 8px; }
  body.package1-ui-active .location-weather-symbol { font-size: 21px; }
  body.package1-ui-active .location-weather-temperatures { grid-template-columns: auto auto; gap: 6px; align-items: baseline; }
  body.package1-ui-active .location-weather-temperatures strong { font-size: 13px; }
  body.package1-ui-active .location-weather-temperatures small { font-size: 11px; }
}
