.tkx-weather-widget {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1200;
}

.tkx-weather-widget__fab,
.tkx-weather-widget__backdrop {
  display: none;
}

.tkx-weather-widget__panel {
  min-width: 260px;
  max-width: min(360px, 46vw);
  padding: 12px 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(19, 46, 86, 0.88), rgba(9, 26, 50, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.tkx-weather-widget__city {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.tkx-weather-widget__main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.tkx-weather-widget__temp {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
}

.tkx-weather-widget__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.tkx-weather-widget__meta {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.tkx-weather-widget__warn {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.tkx-weather-widget__warn-item {
  font-size: 12px;
  line-height: 1.45;
  border-radius: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.tkx-weather-widget__warn-item strong {
  margin-right: 4px;
}

.tkx-weather-widget__warn-item--low {
  border-color: rgba(178, 231, 209, 0.28);
  background: rgba(36, 106, 84, 0.18);
}

.tkx-weather-widget__warn-item--mid {
  border-color: rgba(255, 216, 122, 0.26);
  background: rgba(139, 95, 22, 0.24);
}

.tkx-weather-widget__warn-item--high {
  border-color: rgba(255, 140, 130, 0.28);
  background: rgba(123, 35, 24, 0.28);
}

html[data-tkx-theme="day"] .tkx-weather-widget__panel {
  color: #22372c;
  background: linear-gradient(180deg, rgba(253,252,245,.94), rgba(238,246,235,.90));
  border-color: rgba(102,132,95,.16);
  box-shadow: 0 10px 24px rgba(55,86,70,.10);
}
html[data-tkx-theme="day"] .tkx-weather-widget__city,
html[data-tkx-theme="day"] .tkx-weather-widget__desc,
html[data-tkx-theme="day"] .tkx-weather-widget__meta { color: #556d5c; }
html[data-tkx-theme="day"] .tkx-weather-widget__temp { color: #233a2e; }
html[data-tkx-theme="day"] .tkx-weather-widget__warn-item {
  border-color: rgba(102,132,95,.12);
  background: rgba(252,255,250,.72);
  color: #496151;
}
html[data-tkx-theme="day"] .tkx-weather-widget__warn-item--low {
  border-color: rgba(86,161,128,.22);
  background: rgba(220,246,235,.72);
}
html[data-tkx-theme="day"] .tkx-weather-widget__warn-item--mid {
  border-color: rgba(214,170,83,.24);
  background: rgba(255,241,213,.74);
}
html[data-tkx-theme="day"] .tkx-weather-widget__warn-item--high {
  border-color: rgba(216,120,110,.24);
  background: rgba(255,231,226,.76);
}

@media (max-width: 680px) {
  .tkx-weather-widget { top: auto; left: 10px; bottom: 10px; z-index: 1300; }
  .tkx-weather-widget__fab {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    background: linear-gradient(180deg, rgba(19, 46, 86, 0.95), rgba(9, 26, 50, 0.92));
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(0,0,0,.24);
    backdrop-filter: blur(6px);
  }
  html[data-tkx-theme="day"] .tkx-weather-widget__fab {
    background: linear-gradient(180deg, rgba(253,252,245,.96), rgba(237,245,233,.92));
    color: #456b53;
    border-color: rgba(102,132,95,.18);
    box-shadow: 0 10px 24px rgba(55,86,70,.12);
  }
  .tkx-weather-widget__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    border: 0;
    background: rgba(3, 5, 10, 0.46);
  }
  .tkx-weather-widget__panel {
    min-width: 220px;
    max-width: min(92vw, 420px);
    padding: 10px 12px;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 62px;
    z-index: 2;
    transform: translateY(8px) scale(.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
  }
  .tkx-weather-widget.is-open .tkx-weather-widget__backdrop { display: block; }
  .tkx-weather-widget.is-open .tkx-weather-widget__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .tkx-weather-widget__temp { font-size: 28px; }
  .tkx-weather-widget__city,
  .tkx-weather-widget__desc { font-size: 12px; }
  .tkx-weather-widget__meta,
  .tkx-weather-widget__warn-item { font-size: 11px; }
}
