@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #eef6ff;
  --bg-deep: #e2efff;
  --ink: #15243b;
  --muted: #6c7d95;
  --line: rgba(79, 112, 158, 0.13);
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #fafdff;
  --primary: #4d85ee;
  --primary-dark: #2d61ca;
  --accent: #ffb547;
  --shadow: 0 22px 70px rgba(62, 98, 147, 0.13);
  --soft-shadow: 0 10px 32px rgba(67, 105, 153, 0.09);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 15px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(145deg, var(--bg), var(--bg-deep));
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 700ms ease, color 400ms ease;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

body.theme-cloudy { --bg: #edf2f7; --bg-deep: #dce6f2; --primary: #6885ad; --primary-dark: #425e84; --accent: #ffbd66; }
body.theme-rain { --bg: #e8f0f7; --bg-deep: #cfdeeb; --primary: #4a78a8; --primary-dark: #2f547b; --accent: #75c7ff; }
body.theme-storm { --bg: #e3e8f1; --bg-deep: #c4cfdf; --primary: #586b93; --primary-dark: #364463; --accent: #f5ca58; }
body.theme-snow { --bg: #f3f8fb; --bg-deep: #e1eef4; --primary: #63a5ca; --primary-dark: #397799; --accent: #a4dff5; }
body.theme-clear-night { --bg: #101c3b; --bg-deep: #1c3261; --ink: #f5f8ff; --muted: #b2bfd6; --line: rgba(223,235,255,.12); --card: rgba(25,42,78,.78); --card-solid: #1b2f56; --primary: #82a8ff; --primary-dark: #adc4ff; --accent: #ffd982; --shadow: 0 22px 70px rgba(2,8,24,.24); --soft-shadow: 0 10px 30px rgba(2,8,24,.18); }
body.theme-clear-night .topbar, body.theme-clear-night .mobile-nav { background: rgba(17,29,59,.72); }
body.theme-clear-night .search, body.theme-clear-night .location-button, body.theme-clear-night .unit-switch { background: rgba(255,255,255,.08); }
body.theme-clear-night .daily-row:hover { background: rgba(255,255,255,.05); }

.ambient { position: fixed; z-index: -2; border-radius: 50%; filter: blur(2px); opacity: .58; pointer-events: none; transition: background 700ms ease; }
.ambient-one { width: 520px; height: 520px; top: -220px; right: -130px; background: radial-gradient(circle, rgba(255,212,122,.7), rgba(255,212,122,0) 70%); }
.ambient-two { width: 700px; height: 700px; left: -330px; top: 35%; background: radial-gradient(circle, rgba(96,174,255,.4), rgba(96,174,255,0) 70%); }
.weather-particles { position: fixed; inset: 0; z-index: -1; opacity: 0; pointer-events: none; transition: opacity .4s; }
.theme-rain .weather-particles, .theme-storm .weather-particles { opacity: .26; background-image: linear-gradient(115deg, transparent 45%, rgba(75,118,156,.7) 47%, transparent 49%); background-size: 48px 48px; animation: rainDrift 3s linear infinite; }
.theme-snow .weather-particles { opacity: .5; background-image: radial-gradient(circle, white 0 2px, transparent 2.5px), radial-gradient(circle, white 0 1.3px, transparent 1.8px); background-size: 90px 90px, 56px 56px; background-position: 0 0, 25px 12px; animation: snowDrift 12s linear infinite; }
@keyframes rainDrift { to { background-position: 100px 180px; } }
@keyframes snowDrift { to { background-position: 80px 180px, -30px 120px; } }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 78px;
  padding: 0 max(4vw, 28px);
  display: grid;
  grid-template-columns: 1fr minmax(340px, 620px) 1fr;
  align-items: center;
  gap: 28px;
  background: rgba(246, 251, 255, 0.72);
  border-bottom: 1px solid rgba(255,255,255,.68);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; letter-spacing: .08em; }
.brand-mark { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; }
.brand-mark::before { content: ""; position: absolute; width: 33px; height: 33px; background: conic-gradient(from 0deg, transparent 0 7%, #ffbd51 7% 12%, transparent 12% 20%, #ffbd51 20% 25%, transparent 25% 32%, #ffbd51 32% 37%, transparent 37% 45%, #ffbd51 45% 50%, transparent 50% 57%, #ffbd51 57% 62%, transparent 62% 70%, #ffbd51 70% 75%, transparent 75% 82%, #ffbd51 82% 87%, transparent 87%); border-radius: 50%; }
.brand-mark span { position: relative; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #ffe27c, #ffae38); box-shadow: 0 3px 10px rgba(255,174,56,.35); }
.brand-mark.mini { transform: scale(.72); margin: -5px; }

.search { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 15px; border: 1px solid rgba(97,126,164,.11); border-radius: 15px; background: rgba(255,255,255,.7); box-shadow: 0 6px 28px rgba(71,102,145,.06); transition: box-shadow .2s, border-color .2s, background .2s; }
.search:focus-within { background: rgba(255,255,255,.94); border-color: rgba(71,127,226,.3); box-shadow: 0 8px 32px rgba(61,105,176,.14); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search input::placeholder { color: var(--muted); opacity: .72; }
.search kbd { padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.4); font-size: 11px; font-family: inherit; }
.search-results { position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 8px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--card-solid) 92%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(22px); overflow: hidden; }
.search-result { width: 100%; border: 0; border-radius: 11px; background: transparent; padding: 11px 12px; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.search-result:hover, .search-result:focus { background: rgba(77,133,238,.1); outline: none; }
.search-result .icon { flex: 0 0 auto; color: var(--primary); }
.search-result b { display: block; font-size: 14px; }
.search-result small { display: block; margin-top: 2px; color: var(--muted); }
.search-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

.top-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.location-button { height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.6); cursor: pointer; }
.location-button:hover { border-color: rgba(77,133,238,.35); color: var(--primary-dark); }
.unit-switch { padding: 4px; display: flex; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.6); }
.unit-switch button { width: 39px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.unit-switch button.active { color: white; background: var(--primary); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 34%, transparent); }

.app-shell { width: min(1420px, calc(100% - 7vw)); margin: 34px auto 0; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, .9fr); gap: 24px; padding-bottom: 34px; }
.overview, .details-panel, .forecast-section, .lifestyle-section { border: 1px solid rgba(255,255,255,.62); background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.overview { position: relative; min-height: 555px; padding: 38px 40px 118px; border-radius: var(--radius-lg); display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; }
.overview::before { content: ""; position: absolute; width: 420px; height: 420px; right: -100px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,207,102,.3), transparent 68%); }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.place-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.eyebrow { margin: 0 0 5px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow .icon { width: 15px; height: 15px; color: var(--primary); }
.place-row h1 { margin: 0; font-size: clamp(30px, 3.2vw, 48px); letter-spacing: -.05em; line-height: 1.15; }
.refresh-button { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: rgba(255,255,255,.5); cursor: pointer; }
.refresh-button:hover .icon { transform: rotate(28deg); }
.refresh-button .icon { transition: transform .25s; }
.refresh-button.is-loading .icon { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.update-line { display: flex; align-items: center; gap: 7px; margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4bc983; box-shadow: 0 0 0 5px rgba(75,201,131,.12); }

.current-weather { margin-top: 35px; display: flex; align-items: flex-end; gap: 26px; }
.temperature-wrap { display: flex; align-items: flex-start; line-height: .8; }
.temperature { font-size: clamp(88px, 9vw, 142px); font-weight: 700; letter-spacing: -.09em; }
.degree { margin: 7px 0 0 9px; color: var(--primary); font-size: clamp(35px, 4vw, 56px); font-weight: 500; }
.condition-copy { padding-bottom: 8px; white-space: nowrap; }
.condition-copy h2 { margin: 0 0 4px; font-size: clamp(20px, 2vw, 29px); }
.condition-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.weather-brief { margin-top: 27px; max-width: 560px; color: var(--muted); font-size: 14px; }
.quick-stats { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 9px; }
.quick-stats > div { min-width: 115px; padding: 10px 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.38); }
.quick-stats .icon { width: 18px; height: 18px; color: var(--primary); }
.quick-stats span { display: flex; flex-direction: column; color: var(--muted); font-size: 9px; }
.quick-stats b { color: var(--ink); font-size: 12px; line-height: 1.25; }

.hero-visual { position: relative; display: grid; place-items: center; z-index: 1; min-width: 260px; pointer-events: none; }
.weather-orb { position: relative; z-index: 2; width: min(100%, 340px); filter: drop-shadow(0 25px 26px rgba(78,104,141,.22)); animation: float 5s ease-in-out infinite; }
.weather-orb svg { display: block; width: 100%; height: auto; overflow: visible; }
.orb-shadow { position: absolute; z-index: 1; width: 48%; height: 22px; bottom: 72px; border-radius: 50%; background: rgba(64,92,127,.18); filter: blur(12px); animation: shadowPulse 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes shadowPulse { 50% { transform: scale(.86); opacity: .55; } }

.sun-strip { position: absolute; left: 40px; right: 40px; bottom: 25px; z-index: 3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding-top: 20px; border-top: 1px solid var(--line); }
.sun-item { display: flex; align-items: center; gap: 9px; }
.sun-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; font-size: 17px; font-weight: 700; }
.sunrise { color: #ed9b25; background: #fff2d8; }
.sunset { color: #6d7ec4; background: #e9ecff; }
.sun-item small { display: block; color: var(--muted); font-size: 10px; }
.sun-item b { display: block; margin-top: 2px; font-size: 13px; }
.sun-track { position: relative; height: 28px; overflow: hidden; border-bottom: 1px dashed rgba(105,131,164,.3); }
.sun-track::before { content: ""; position: absolute; left: 0; right: 0; bottom: -23px; height: 46px; border: 1px dashed rgba(237,169,68,.5); border-radius: 50% 50% 0 0; }
.sun-track span { position: absolute; left: 50%; bottom: 18px; width: 9px; height: 9px; border-radius: 50%; background: #ffbd51; box-shadow: 0 0 0 4px rgba(255,189,81,.18), 0 0 18px #ffbd51; transform: translateX(-50%); transition: left .5s; }

.details-panel { min-height: 555px; padding: 31px; border-radius: var(--radius-lg); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading.compact { align-items: center; margin-bottom: 21px; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.section-heading .eyebrow { margin-bottom: 3px; }
.section-note { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.section-note .icon { width: 15px; height: 15px; }
.aqi-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 99px; color: #26825a; background: #e7f8ef; font-size: 11px; font-weight: 700; }
.aqi-badge i { width: 6px; height: 6px; border-radius: 50%; background: #38ba7a; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-card { min-height: 154px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.38); }
.detail-card small { margin-top: 12px; color: var(--muted); font-size: 11px; }
.detail-card strong { margin-top: 2px; font-size: 23px; letter-spacing: -.04em; }
.detail-card em { margin-left: 3px; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 600; letter-spacing: 0; }
.detail-card > span { margin-top: auto; color: var(--muted); font-size: 10px; }
.detail-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; }
.detail-icon .icon { width: 17px; height: 17px; }
.detail-icon.blue { color: #3f83e5; background: #e6f0ff; }
.detail-icon.cyan { color: #36a3b8; background: #e3f7fa; }
.detail-icon.violet { color: #8269d6; background: #eee9ff; }
.detail-icon.amber { color: #d58a20; background: #fff1d8; }
.advice-card { margin-top: 13px; padding: 15px 17px; display: flex; align-items: center; gap: 14px; border-radius: 18px; color: white; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 64%, #729cff)); box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 18%, transparent); }
.advice-icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; background: rgba(255,255,255,.14); font-size: 19px; }
.advice-card small { opacity: .76; font-size: 10px; }
.advice-card p { margin: 2px 0 0; font-size: 12px; font-weight: 600; }

.forecast-section, .lifestyle-section { grid-column: 1 / -1; padding: 30px 34px; border-radius: var(--radius-lg); }
.hourly-chart-wrap { position: relative; min-width: 0; padding-top: 4px; overflow: hidden; }
.temperature-chart { position: absolute; z-index: 0; left: 0; top: 10px; width: 100%; height: 112px; overflow: visible; opacity: .86; pointer-events: none; }
.hourly-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(82px, 1fr)); min-width: 960px; padding-top: 13px; overflow: hidden; }
.hourly-item { min-height: 190px; padding: 0 6px 11px; display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--line); }
.hourly-item:last-child { border-right: 0; }
.hourly-item.current { margin-top: -5px; padding-top: 5px; border-radius: 16px; border-right-color: transparent; background: linear-gradient(180deg, rgba(77,133,238,.1), rgba(77,133,238,.025)); }
.hourly-item .hour { color: var(--muted); font-size: 11px; }
.hourly-item.current .hour { color: var(--primary-dark); font-weight: 700; }
.hourly-spacer { height: 72px; }
.hourly-item .mini-weather { width: 38px; height: 38px; margin-top: 2px; }
.hourly-item .mini-weather svg { width: 100%; height: 100%; }
.hourly-item .temp { margin-top: 4px; font-size: 16px; font-weight: 700; }
.hourly-item .rain { margin-top: 7px; display: flex; align-items: center; gap: 3px; color: #4c93d6; font-size: 9px; }
.hourly-item .rain .icon { width: 11px; height: 11px; fill: rgba(76,147,214,.12); }

.daily-list { display: grid; }
.daily-row { min-height: 75px; padding: 0 10px; display: grid; grid-template-columns: minmax(110px, 1.15fr) minmax(150px, 1.4fr) minmax(110px, .8fr) minmax(180px, 1.5fr) 22px; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); border-radius: 12px; transition: background .2s; }
.daily-row:last-child { border-bottom: 0; }
.daily-row:hover { background: rgba(255,255,255,.42); }
.day-name b { display: block; font-size: 13px; }
.day-name small { color: var(--muted); font-size: 10px; }
.day-condition { display: flex; align-items: center; gap: 10px; }
.day-condition .mini-weather { width: 36px; height: 36px; }
.day-condition .mini-weather svg { width: 100%; height: 100%; }
.day-condition span { color: var(--muted); font-size: 12px; }
.daily-rain { display: flex; align-items: center; gap: 6px; color: #4388c9; font-size: 11px; }
.daily-rain .icon { width: 14px; height: 14px; }
.temp-range { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; }
.temp-range > span:last-child { text-align: right; }
.range-bar { position: relative; height: 5px; overflow: hidden; border-radius: 99px; background: rgba(112,138,173,.14); }
.range-bar i { position: absolute; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #74b7f4, #ffbd5e); }
.daily-row > .icon { width: 17px; height: 17px; color: var(--muted); }

.lifestyle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lifestyle-card { min-height: 122px; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.35); }
.lifestyle-card .top { display: flex; align-items: center; justify-content: space-between; }
.lifestyle-card .emoji { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(77,133,238,.1); font-size: 18px; }
.lifestyle-card b { font-size: 13px; }
.lifestyle-card strong { margin-top: 11px; display: block; color: var(--primary-dark); font-size: 16px; }
.lifestyle-card p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }

footer { grid-column: 1 / -1; padding: 13px 6px 5px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
footer > div { display: flex; align-items: center; gap: 8px; color: var(--ink); }
footer p { margin: 0; }
.mobile-nav { display: none; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 30px; padding: 11px 17px; border-radius: 13px; color: white; background: rgba(20,34,54,.92); box-shadow: 0 12px 30px rgba(15,28,47,.2); font-size: 12px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading-overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(232,243,255,.32); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.loading-overlay.visible { opacity: 1; pointer-events: auto; }
.loading-overlay span { width: 34px; height: 34px; border: 3px solid rgba(77,133,238,.2); border-top-color: var(--primary); border-radius: 50%; animation: spin .75s linear infinite; }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: auto minmax(280px, 1fr) auto; }
  .app-shell { width: min(940px, calc(100% - 40px)); grid-template-columns: minmax(0, 1fr); }
  .overview, .details-panel, .forecast-section, .lifestyle-section { min-width: 0; }
  .overview, .details-panel { grid-column: 1; }
  .details-panel { min-height: auto; }
  .detail-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-card { min-height: 145px; }
  .forecast-section, .lifestyle-section, footer { grid-column: 1; }
  .lifestyle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { padding-bottom: 78px; }
  .topbar { height: auto; min-height: 72px; padding: 12px 16px; grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .search { height: 44px; }
  .search kbd, .location-button span { display: none; }
  .location-button { width: 43px; height: 43px; padding: 0; justify-content: center; }
  .unit-switch { display: none; }
  .app-shell { width: calc(100% - 24px); margin-top: 14px; gap: 14px; }
  .overview, .details-panel, .forecast-section, .lifestyle-section { border-radius: 24px; }
  .overview { min-height: 625px; padding: 25px 22px 107px; grid-template-columns: 1fr; grid-template-rows: auto 200px; }
  .place-row h1 { font-size: 34px; }
  .current-weather { margin-top: 23px; gap: 16px; }
  .temperature { font-size: 94px; }
  .degree { font-size: 39px; }
  .condition-copy h2 { font-size: 19px; }
  .weather-brief { margin-top: 20px; font-size: 12px; }
  .quick-stats { margin-top: 17px; flex-wrap: nowrap; }
  .quick-stats > div { min-width: 0; flex: 1; padding: 9px 8px; gap: 6px; }
  .quick-stats .icon { width: 15px; }
  .quick-stats b { font-size: 10px; }
  .hero-visual { min-width: 0; position: absolute; right: 6px; top: 110px; width: 158px; opacity: .9; }
  .weather-orb { width: 158px; }
  .orb-shadow { bottom: 0; }
  .sun-strip { left: 22px; right: 22px; bottom: 19px; gap: 10px; }
  .sun-item { gap: 6px; }
  .sun-symbol { width: 30px; height: 30px; }
  .details-panel { padding: 24px 20px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-card { min-height: 145px; }
  .forecast-section, .lifestyle-section { padding: 24px 20px; }
  .section-heading h2 { font-size: 21px; }
  .hourly-chart-wrap { overflow-x: auto; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
  .hourly-chart-wrap::-webkit-scrollbar { display: none; }
  .temperature-chart { width: 960px; }
  .daily-row { grid-template-columns: 72px minmax(115px, 1fr) minmax(120px, 1.2fr); gap: 8px; min-height: 70px; padding: 0 2px; }
  .daily-rain, .daily-row > .icon { display: none; }
  .day-condition { gap: 6px; }
  .day-condition span { font-size: 10px; }
  .temp-range { grid-template-columns: 26px 1fr 26px; gap: 4px; font-size: 10px; }
  .lifestyle-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .lifestyle-card { min-height: 120px; padding: 14px; }
  footer { padding: 10px 2px; justify-content: center; }
  footer > div { display: none; }
  footer p { text-align: center; }
  .mobile-nav { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); height: 64px; padding: 7px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.68); border-radius: 21px; background: rgba(250,253,255,.84); box-shadow: 0 15px 45px rgba(45,76,116,.2); backdrop-filter: blur(24px); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 14px; color: var(--muted); font-size: 9px; }
  .mobile-nav a.active { color: var(--primary-dark); background: rgba(77,133,238,.1); }
  .mobile-nav .icon { width: 19px; height: 19px; }
  .toast { bottom: 88px; width: max-content; max-width: calc(100% - 32px); text-align: center; }
}

@media (max-width: 400px) {
  .topbar { padding-inline: 11px; }
  .app-shell { width: calc(100% - 18px); }
  .overview { padding-inline: 18px; }
  .hero-visual { right: 4px; top: 122px; width: 136px; }
  .weather-orb { width: 136px; }
  .quick-stats { gap: 5px; }
  .quick-stats > div { padding-inline: 6px; }
  .quick-stats .icon { display: none; }
  .sun-strip { left: 18px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
