.erp-weather { display: inline-flex; align-items: center; }
.erp-weather .erp-weather-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 6px;
  padding: 3px 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: calc(14px * var(--font-scale, 1)) !important;
  cursor: pointer;
}
.erp-weather-trigger:hover { background: #ffffff12; }
.erp-weather-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.erp-weather-summary,
.erp-weather-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.erp-weather { gap: 9px; white-space: nowrap; }
.erp-weather-summary { cursor: inherit; }
.erp-weather-summary { font-size: calc(14px * var(--font-scale, 1)); font-weight: 600; }
.erp-weather-degrees { min-inline-size: 4ch; font-variant-numeric: tabular-nums; }
.erp-weather-summary > .bi { font-size: 15px; font-weight: 400; }
.erp-weather-location { font-weight: 400; opacity: .85; }
.erp-weather-location {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 3px 0;
  font: inherit;
  /* 공용 밀도 규칙의 모든 button 크기 강제보다 작은 보조 지역 표시를 유지한다. */
  font-size: calc(11px * var(--font-scale, 1)) !important;
  cursor: inherit;
}
.erp-weather-location .bi { font-size: 12px; }
.erp-weather-location:focus-visible,
.erp-weather-summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 3px; }
.erp-weather-panel {
  box-sizing: border-box;
  overflow-wrap: anywhere;
  position: fixed;
  z-index: 10030;
  padding: 18px;
  border: 1px solid var(--color-border, var(--bs-border-color, #dee2e6));
  border-radius: 16px;
  background: var(--color-surface, var(--bs-body-bg, #fff));
  color: var(--color-text, var(--bs-body-color, #212529));
  box-shadow: 0 12px 36px #0002;
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
}
.erp-weather-panel[hidden] { display: none; }
.erp-weather-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: calc(13px * var(--font-scale, 1)); }
.erp-weather-panel label { display: block; width: 100%; font-size: calc(13px * var(--font-scale, 1)); }
.erp-weather-panel input { margin-top: 6px; }
.erp-weather-panel button { font: inherit; }
.erp-weather-panel .erp-weather-close { border: 0; border-radius: 6px; background: transparent; color: var(--color-text-muted, var(--bs-secondary-color, #64748b)); padding: 4px 6px; font-size: calc(13px * var(--font-scale, 1)) !important; }
.erp-weather-close:hover { background: var(--color-bg, var(--bs-tertiary-bg, #f8f9fa)); }
.erp-weather-region { font-size: calc(13px * var(--font-scale, 1)); text-align: center; }
.erp-weather-temperature { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 0 14px; }
.erp-weather-temperature > .bi { font-size: 28px; }
.erp-weather-temperature strong { font-size: calc(34px * var(--font-scale, 1)); font-weight: 600; letter-spacing: -1px; line-height: 1.2; }
.erp-weather-temperature > span { font-size: calc(13px * var(--font-scale, 1)); color: var(--color-text-muted, var(--bs-secondary-color, #64748b)); }
.erp-weather-metrics { display: flex; gap: 8px; }
.erp-weather-metrics > span { flex: 1; background: var(--color-bg, var(--bs-tertiary-bg, #f8f9fa)); border-radius: 8px; padding: 9px 6px; text-align: center; font-size: calc(12px * var(--font-scale, 1)); }
.erp-weather-detail > .erp-weather-message { text-align: center; font-size: calc(11px * var(--font-scale, 1)); margin: 12px 0 16px; }
.erp-weather-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; border-top: 1px solid var(--color-border, var(--bs-border-color, #dee2e6)); padding-top: 14px; }
.erp-weather-panel .erp-weather-change,
.erp-weather-panel .erp-weather-calendar { flex: 1 1 120px; overflow-wrap: anywhere; text-align: center; border: 1px solid var(--color-border, var(--bs-border-color, #dee2e6)); border-radius: 8px; padding: 9px 6px; font-size: calc(12px * var(--font-scale, 1)) !important; line-height: 1.4; }
.erp-weather-panel .erp-weather-change { background: var(--color-text, var(--bs-body-color, #212529)); color: var(--color-surface, var(--bs-body-bg, #fff)); }
.erp-weather-calendar { color: inherit; background: transparent; }
.erp-weather-calendar:hover { background: var(--color-bg, var(--bs-tertiary-bg, #f8f9fa)); }
.erp-weather-settings { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border, var(--bs-border-color, #dee2e6)); }
.erp-weather-settings[hidden] { display: none; }
.erp-weather-message { margin: 10px 0; font-size: calc(12px * var(--font-scale, 1)); color: var(--color-text-muted, var(--bs-secondary-color, #6c757d)); }
.erp-weather-results { max-height: 240px; overflow-y: auto; }
.erp-weather-result { display: block; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; padding: 9px; border: 0; border-radius: 6px; background: transparent; color: inherit; }
.erp-weather-result:hover,
.erp-weather-result:focus-visible { background: var(--color-bg, var(--bs-tertiary-bg, #f8f9fa)); }

.erp-weather-panel :is(button, a, input):focus-visible {
  outline: 2px solid var(--color-primary, #0d6efd);
  outline-offset: -2px;
}

.erp-weather-actions > * { min-width: 0; }

@media (hover: none) {
  .erp-weather .erp-weather-trigger,
  .erp-weather-panel :is(button, a, input) {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (max-width: 768px) {
  .top-nav .erp-weather-summary { font-size: calc(11px * var(--font-scale, 1)); }
}
