.weather-control{margin-top:10px!important;border:0!important}
.weather-button{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:48px!important;
  height:48px!important;
  padding:0!important;
  border:1px solid rgba(102,204,204,.28)!important;
  border-radius:14px!important;
  background:#071b24!important;
  color:#66cccc!important;
  box-shadow:0 10px 28px rgba(3,15,22,.26)!important;
  text-decoration:none!important;
}
.weather-button:hover,.weather-button:focus-visible{background:#123640!important;color:#fff!important}
.weather-button svg{width:25px;height:25px}.weather-button span{display:none}
.weather-button.has-point::after{content:"";position:absolute;right:5px;bottom:5px;width:7px;height:7px;border:2px solid #071b24;border-radius:50%;background:#66cccc}

.weather-panel{
  position:absolute;
  z-index:950;
  right:90px;
  bottom:20px;
  box-sizing:border-box;
  width:min(350px,calc(100vw - 40px));
  max-height:min(610px,calc(100dvh - 120px));
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid rgba(102,204,204,.28);
  border-radius:18px;
  background:rgba(7,27,36,.97);
  color:#f4fbfc;
  box-shadow:0 18px 52px rgba(3,15,22,.38);
  backdrop-filter:blur(16px);
  font:13px Arial,sans-serif;
}
.weather-panel[hidden]{display:none}
.weather-head{position:sticky;z-index:2;top:0;display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid rgba(102,204,204,.18);background:#071b24}
.weather-head svg{width:23px;height:23px;color:#66cccc}.weather-head h2{flex:1;margin:0;font-size:17px}.weather-close{display:grid;place-items:center;width:40px;height:40px;margin:-8px -8px -8px 0;border:0;border-radius:50%;background:transparent;color:#d7e7e9;font-size:27px;line-height:1;cursor:pointer}.weather-close:hover,.weather-close:focus-visible{background:#123640;color:#fff}
.weather-body{padding:16px}.weather-location{margin:0 0 5px;color:#a9c0c6;font-size:11px}.weather-temperature{display:flex;align-items:flex-start;margin:3px 0 15px;font-size:48px;font-weight:800;letter-spacing:-.045em}.weather-temperature small{margin:7px 0 0 4px;color:#a9c0c6;font-size:18px;font-weight:500;letter-spacing:0}
.weather-summary{margin:-9px 0 16px;color:#d7e7e9;font-size:12px}
.weather-grid{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid rgba(102,204,204,.18);border-left:1px solid rgba(102,204,204,.18)}
.weather-item{min-height:66px;padding:11px 12px;border-right:1px solid rgba(102,204,204,.18);border-bottom:1px solid rgba(102,204,204,.18)}.weather-item span{display:block;color:#8da7ad;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.weather-item strong{display:block;margin-top:6px;color:#fff;font-size:17px}.weather-item small{color:#a9c0c6;font-size:10px;font-weight:500}
.weather-alert{display:flex;align-items:flex-start;gap:9px;margin-top:14px;padding:11px 12px;border-radius:10px;background:#352913;color:#ffd36f;font-weight:700;line-height:1.35}.weather-alert::before{content:"!";display:grid;place-items:center;flex:0 0 20px;height:20px;border:2px solid currentColor;border-radius:50%;font-size:12px}.weather-alert.clear{background:#12352f;color:#8ee3c7}.weather-alert.clear::before{content:"✓"}
.weather-meta{margin:14px 0 0;color:#8da7ad;font-size:10px;line-height:1.45}.weather-meta a{color:#8ad9d9}.weather-loading,.weather-empty,.weather-error{margin:0;padding:12px;border-radius:10px;background:#102c35;color:#c9dade;line-height:1.5}.weather-error{background:#3a2028;color:#ffd4dc}

@media(min-width:900px){
  .weather-button{width:auto!important;padding:0 14px!important}.weather-button span{display:inline;color:#f4fbfc;font-size:12px;font-weight:700}.weather-button.has-point::after{right:8px}
}
@media(max-width:640px){
  .weather-control{position:fixed!important;top:68px!important;left:max(10px,env(safe-area-inset-left,0px))!important;right:auto!important;bottom:auto!important;margin:0!important}
  .weather-panel{position:fixed;top:124px;right:auto;bottom:auto;left:max(10px,env(safe-area-inset-left,0px));width:min(290px,calc(100vw - 20px));max-height:min(34dvh,290px);border-radius:16px}
  .weather-head{padding:10px 13px}.weather-head h2{font-size:15px}.weather-close{width:38px;height:38px;font-size:25px}
  .weather-body{padding:10px 12px}.weather-temperature{margin-bottom:9px;font-size:32px}.weather-temperature small{font-size:14px}.weather-summary{margin:-5px 0 9px;font-size:11px}.weather-grid{grid-template-columns:1fr 1fr}.weather-item{min-height:46px;padding:7px 8px}.weather-item strong{margin-top:3px;font-size:13px}.weather-alert{margin-top:8px;padding:8px 9px;font-size:10px}.weather-meta{margin-top:8px;font-size:9px}
}
