.alerts-launch {
  width: 46px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid #c4d2cc;
  border-radius: 15px;
  background: #fff8e8;
  color: #654407;
  display: grid;
  place-content: center;
  gap: 0;
  line-height: 1.1;
}
.alerts-launch span {
  font-size: 18px;
}
.alerts-launch small {
  font-size: 9px;
  font-weight: 800;
}
.alerts-launch.has-alert {
  background: #ffe1a3;
  border: 2px solid #a74300;
}
#weather-panel .panel-head > div {
  min-width: 0;
  flex: 1;
}
.weather-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
#weather-panel .weather-title-row h2 {
  margin: 0;
  min-width: 0;
}
#weather-panel #alerts-open {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border-radius: 12px;
  background: #fff8e8;
  color: #654407;
}
#weather-panel #alerts-open.has-alert {
  background: #ffe1a3;
  border: 2px solid #a74300;
}
@media (max-width: 380px) {
  #weather-panel .weather-title-row h2 {
    font-size: 23px;
  }
  .weather-title-row {
    gap: 8px;
  }
}
.alerts-entry {
  display: block;
  width: 100%;
  border: 1px solid #b78936;
  border-radius: 14px;
  background: #fff4d8;
  color: #563600;
  padding: 14px;
  font-weight: 750;
  margin: 12px 0;
  text-align: left;
}
#alerts-panel {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 0;
  border-radius: 24px;
  padding: 24px;
  background: #faf8f1;
  color: #173d36;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 20px 80px #0005;
}
#alerts-panel::backdrop {
  background: #123b3677;
}
.alerts-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.alerts-heading h2 {
  margin: 6px 0;
  font:
    700 28px Georgia,
    serif;
}
#alerts-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #c4d2cc;
  border-radius: 50%;
  background: white;
  font-size: 26px;
}
.alerts-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
#alerts-refresh {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #175b49;
  background: white;
  color: #175b49;
}
#alerts-updated {
  font-size: 12px;
}
#alerts-content h3 {
  margin: 24px 0 12px;
  font-size: 20px;
}
.alert-card {
  border: 1px solid #d4ddd6;
  border-radius: 15px;
  padding: 15px;
  margin: 10px 0;
  background: #fff;
  overflow-wrap: anywhere;
}
.alert-card.in-period {
  border: 2px solid #af6511;
  background: #fff8e9;
}
.alert-card h4 {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.4;
}
.alert-card p {
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0;
}
.alert-badge {
  display: inline-block;
  border-radius: 12px;
  padding: 4px 9px;
  background: #e7eee9;
  font-size: 12px;
  font-weight: 750;
}
.in-period .alert-badge {
  background: #ffe1a3;
  color: #633700;
}
.alert-card[data-severity] {
  border-color: var(--severity-border);
  background: var(--severity-background);
}
.alert-card[data-severity] .alert-badge {
  background: var(--severity-badge);
  color: var(--severity-text);
}
.alert-card[data-severity="green"] {
  --severity-border: #27813c;
  --severity-background: #f0faf2;
  --severity-badge: #cdebd3;
  --severity-text: #174d24;
}
.alert-card[data-severity="yellow"] {
  --severity-border: #a17b00;
  --severity-background: #fffde8;
  --severity-badge: #ffe66a;
  --severity-text: #594300;
}
.alert-card[data-severity="orange"] {
  --severity-border: #c45b00;
  --severity-background: #fff4e8;
  --severity-badge: #ffbd78;
  --severity-text: #693000;
}
.alert-card[data-severity="red"] {
  --severity-border: #bb2033;
  --severity-background: #fff0f2;
  --severity-badge: #bb2033;
  --severity-text: #fff;
}
.alert-card[data-severity="unknown"] {
  --severity-border: #87958d;
  --severity-background: #f5f6f4;
  --severity-badge: #e7eee9;
  --severity-text: #173d36;
}
.alert-warning {
  padding: 12px;
  border-left: 4px solid #af6511;
  background: #fff0ce;
  font-size: 14px;
}
.alert-risks {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.alert-risks li {
  padding: 8px;
  background: #f5f6f2;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.risk-green {
  color: #205b2a;
}
.risk-yellow {
  color: #795000;
}
.risk-orange {
  color: #a04100;
}
.risk-red {
  color: #b00020;
}
#alerts-panel a {
  color: #14594b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.alerts-sources {
  border-top: 1px solid #ccd8d1;
  margin-top: 24px;
  padding-top: 16px;
  font-size: 13px;
}
.alerts-sources a {
  display: block;
  padding: 8px 0;
}
.alerts-sources p {
  line-height: 1.5;
}
#alerts-panel details > summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
}
@media (min-width: 1081px) {
  .welcome {
    right: 390px;
  }
}
@media (min-width: 701px) and (max-width: 1080px) {
  .welcome {
    right: 350px;
  }
}
@media (max-width: 700px) {
  .header-actions {
    gap: 4px;
  }
  .header-actions > button,
  .header-actions .language > button {
    width: 34px;
    height: 38px;
    min-width: 34px;
    padding: 0;
  }
  .alerts-launch small {
    font-size: 8px;
  }
  #alerts-panel {
    padding: 18px;
  }
  .alert-risks {
    grid-template-columns: 1fr;
  }
}
