.avm-weather-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.avm-weather-shell,
.avm-weather-shell * {
  box-sizing: border-box;
}

.avm-weather-shell .avm-weather {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .avm-weather-shell .avm-weather {
    max-width: 720px;
  }
}

@media (min-width: 1100px) {
  .avm-weather-shell .avm-weather {
    max-width: 860px;
  }
}

.avm-weather-shell .avm-weather h1,
.avm-weather-shell .avm-weather h2,
.avm-weather-shell .avm-weather h3,
.avm-weather-shell .avm-weather h4,
.avm-weather-shell .avm-weather p,
.avm-weather-shell .avm-weather div,
.avm-weather-shell .avm-weather span,
.avm-weather-shell .avm-weather a,
.avm-weather-shell .avm-weather strong {
  max-width: none;
}

.avm-weather-shell .avm-weather h2,
.avm-weather-shell .avm-weather h3 {
  letter-spacing: normal;
  text-transform: none;
}

.avm-weather-shell .avm-weather img {
  height: auto;
}

.avm-weather-shell .avm-weather .avm-strip {
  -webkit-overflow-scrolling: touch;
}


.avm-weather,
.avm-weather * {
  box-sizing: border-box;
}

.avm-weather {
  --avm-bg: #f6f1e8;
  --avm-surface: #fffdf9;
  --avm-border: #d8c7ae;
  --avm-text: #35261a;
  --avm-muted: #6f5e4e;
  --avm-accent: #a56a2a;
  --avm-accent-2: #6f8d99;
  --avm-rain: #587a90;
  --avm-good: #5d8c61;
  --avm-warn: #b6792f;
  background: linear-gradient(180deg, #faf6ef 0%, #f4edde 100%);
  color: var(--avm-text);
  border: 1px solid var(--avm-border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(88, 57, 24, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 100%;
  overflow: hidden;
}

.avm-weather a { color: inherit; text-decoration: none; }
.avm-weather h1,
.avm-weather h2,
.avm-weather h3,
.avm-weather p { margin: 0; }

.avm-weather__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.avm-weather__eyebrow {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--avm-muted);
  margin-bottom: 6px;
}

.avm-weather__title {
  font-size: 24px;
  line-height: 1.08;
  font-weight: 800;
}

.avm-weather__subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: var(--avm-muted);
}

.avm-badge-update {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--avm-border);
  background: rgba(255,255,255,.65);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--avm-muted);
}

.avm-weather__hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin-bottom: 14px;
}

.avm-card {
  border: 1px solid rgba(168, 136, 96, .35);
  background: rgba(255,255,255,.72);
  border-radius: 22px;
  padding: 16px;
  backdrop-filter: blur(6px);
}

.avm-temp-main {
  display: flex;
  align-items: end;
  gap: 12px;
}

.avm-temp-main__value {
  font-size: 54px;
  line-height: .95;
  font-weight: 900;
}

.avm-temp-main__meta {
  padding-bottom: 8px;
  color: var(--avm-muted);
  font-size: 14px;
}

.avm-context {
  margin-top: 12px;
  border-left: 4px solid var(--avm-accent);
  padding-left: 10px;
  font-size: 14px;
  color: var(--avm-text);
}

.avm-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.avm-kpi {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(168, 136, 96, .28);
}

.avm-kpi__label {
  color: var(--avm-muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.avm-kpi__value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.avm-kpi__sub {
  margin-top: 6px;
  color: var(--avm-muted);
  font-size: 12px;
}

.avm-barometer {
  position: relative;
  min-height: 280px;
  background:
    radial-gradient(circle at center, #fffdf8 0%, #f7f0e3 52%, #deceb3 100%);
}

.avm-barometer__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--avm-muted);
  margin-bottom: 12px;
}

.avm-barometer__dial {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #fffdfa 0%, #f8efe0 58%, #d9c5a8 100%);
  border: 10px solid #b78d55;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.85),
    inset 0 -10px 20px rgba(118,76,27,.18),
    0 10px 24px rgba(86,56,20,.12);
}

.avm-barometer__center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border-radius: 50%;
  background: #8d6330;
  box-shadow: 0 0 0 4px #efe1c9;
  z-index: 3;
}

.avm-barometer__needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 84px;
  margin-left: -2px;
  margin-top: -78px;
  background: linear-gradient(180deg, #8f1e18 0%, #c53b2f 100%);
  border-radius: 999px;
  transform-origin: 50% 78px;
  transform: rotate(var(--needle-angle, -25deg));
  z-index: 2;
  box-shadow: 0 2px 6px rgba(95, 27, 20, .24);
  transition: transform .6s ease;
}

.avm-barometer__needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 10px;
  height: 18px;
  margin-left: -5px;
  border-radius: 0 0 8px 8px;
  background: #7a2b22;
}

.avm-barometer__labels span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  font-size: 11px;
  color: #6f5e4e;
  font-weight: 700;
}

.avm-barometer__meta {
  margin-top: 14px;
  text-align: center;
}

.avm-barometer__value {
  font-size: 26px;
  font-weight: 900;
}

.avm-barometer__trend {
  font-size: 13px;
  color: var(--avm-muted);
  margin-top: 4px;
}

.avm-sections {
  display: grid;
  gap: 14px;
}

.avm-hourly,
.avm-daily {
  display: grid;
  gap: 10px;
}

.avm-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(86px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.avm-chip {
  min-width: 86px;
  border: 1px solid rgba(168,136,96,.28);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  padding: 12px 10px;
  text-align: center;
}

.avm-chip__top {
  font-size: 12px;
  color: var(--avm-muted);
  margin-bottom: 8px;
}

.avm-chip__value {
  font-size: 18px;
  font-weight: 800;
}

.avm-chip__sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--avm-muted);
}

.avm-shortcut {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(111, 141, 153, .09);
  border: 1px dashed rgba(111, 141, 153, .35);
}

.avm-shortcut__button {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--avm-text);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.avm-weather .avm-hidden { display: none !important; }

@media (max-width: 720px) {
  .avm-weather { padding: 14px; border-radius: 20px; }
  .avm-weather__hero { grid-template-columns: 1fr; }
  .avm-kpis { grid-template-columns: repeat(3, 1fr); }
  .avm-temp-main__value { font-size: 48px; }
}

@media (max-width: 520px) {
  .avm-weather__header { flex-direction: column; }
  .avm-kpis { grid-template-columns: 1fr; }
  .avm-barometer { min-height: 250px; }
  .avm-barometer__dial { width: 190px; height: 190px; }
}
