:root {
  color-scheme: light;
  --surface: #f8f9ff;
  --surface-container: #eef0f8;
  --surface-high: #e7e9f2;
  --surface-low: #f2f4fb;
  --primary: #485d92;
  --primary-dark: #2d4378;
  --primary-container: #d9e2ff;
  --on-surface: #191b23;
  --on-surface-variant: #44464f;
  --outline: #747780;
  --peach: #f9e4d6;
  --peach-deep: #b95f3c;
  --sky: #d9ecfb;
  --shadow: 0 10px 30px rgba(53, 64, 90, .08);
  font-family: 'Google Sans Text', 'Google Sans', Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--on-surface); }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
.material-symbols-rounded { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; font-feature-settings: 'liga'; }
.app-shell { max-width: 1440px; margin: 0 auto; padding: 0 52px 60px; }
.topbar { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--on-surface); font: 700 24px 'Google Sans', sans-serif; letter-spacing: -1px; }
.brand-mark { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-container); color: var(--primary-dark); }
.brand-mark .material-symbols-rounded { font-size: 23px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.icon-button { width: 44px; height: 44px; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--on-surface-variant); transition: background .2s, transform .2s; }
.icon-button:hover { background: var(--surface-high); transform: translateY(-1px); }
.icon-button.small { width: 38px; height: 38px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #d4e8db; color: #285536; font-size: 13px; font-weight: 700; }
.location-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 36px 0 32px; }
.eyebrow { margin: 0 0 8px; color: var(--primary); text-transform: uppercase; letter-spacing: 1.35px; font-size: 11px; font-weight: 700; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; border-radius: 50%; background: #3f8f57; box-shadow: 0 0 0 4px #d8eddb; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 7px; font: 600 clamp(32px, 4vw, 46px)/1.08 'Google Sans', sans-serif; letter-spacing: -1.5px; } h2 { margin: 0; font: 600 22px/1.2 'Google Sans', sans-serif; letter-spacing: -.4px; }
.date-line { color: var(--on-surface-variant); font-size: 14px; margin: 0; }
.location-actions { display: flex; align-items: center; gap: 10px; }
.search-box { height: 48px; width: 260px; display: flex; align-items: center; gap: 9px; padding: 0 8px 0 16px; background: var(--surface-container); border: 1px solid transparent; border-radius: 28px; color: var(--on-surface-variant); transition: border .2s, background .2s; }
.search-box:focus-within { border-color: var(--primary); background: white; }
.search-box input { min-width: 0; flex: 1; background: none; border: 0; outline: 0; color: var(--on-surface); font-size: 14px; }
.search-box input::placeholder { color: #696b73; }
.search-submit { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--primary); }
.search-submit .material-symbols-rounded { font-size: 18px; }
.tonal-button { height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 25px; background: var(--primary-container); color: var(--primary-dark); font-weight: 600; font-size: 13px; transition: filter .2s, transform .2s; }
.tonal-button:hover { filter: brightness(.97); transform: translateY(-1px); }
.tonal-button .material-symbols-rounded { font-size: 19px; }
.unit-toggle { height: 40px; display: flex; align-items: center; padding: 3px; border-radius: 22px; background: var(--surface-container); }
.unit-option { height: 34px; min-width: 38px; padding: 0 9px; border-radius: 18px; background: transparent; color: var(--on-surface-variant); font-size: 12px; font-weight: 700; }
.unit-option.active { background: white; color: var(--primary-dark); box-shadow: 0 2px 5px rgba(46, 54, 77, .1); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .9fr); gap: 28px; align-items: start; }
.primary-column, .secondary-column { min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.hero-card { overflow: hidden; border-radius: 30px; background: linear-gradient(130deg, #dce9ff 0%, #e9eafa 52%, #f7e9e0 100%); box-shadow: var(--shadow); }
.hero-main { min-height: 245px; padding: 32px 38px 20px; display: flex; align-items: center; justify-content: space-between; }
.hero-main .card-label { margin-bottom: 12px; color: var(--primary-dark); font-size: 13px; font-weight: 600; }
.temperature-line { display: flex; align-items: start; height: 88px; font: 500 94px/.88 'Google Sans', sans-serif; letter-spacing: -6px; color: #263b70; }
.temperature-line .degree { font-size: 42px; letter-spacing: -2px; margin: 2px 0 0 3px; }
.condition { margin: 12px 0 8px; font: 500 19px 'Google Sans', sans-serif; color: #2d3a59; }
.high-low { display: flex; align-items: center; gap: 10px; margin: 0; color: #4c5364; font-size: 13px; font-weight: 600; }
.divider { width: 1px; height: 14px; background: #969dad; }
.weather-illustration { width: 190px; height: 170px; display: grid; place-items: center; color: #4b659d; }
.weather-illustration .material-symbols-rounded { font-size: 148px; font-variation-settings: 'FILL' 1, 'wght' 300; filter: drop-shadow(12px 14px 7px rgba(74, 91, 139, .13)); }
.hero-footer { display: flex; align-items: center; gap: 30px; min-height: 64px; padding: 0 38px; color: #43516d; background: rgba(255,255,255,.32); border-top: 1px solid rgba(255,255,255,.54); font-size: 13px; }
.hero-footer div { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero-footer .material-symbols-rounded { font-size: 19px; color: #536aa1; } .hero-footer strong { color: #202b45; font-weight: 700; }
.section-block { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 17px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-note { color: var(--on-surface-variant); font-size: 14px; padding-bottom: 2px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; background: none; color: var(--primary); font-size: 13px; font-weight: 700; }
.text-button .material-symbols-rounded { font-size: 18px; }
.hourly-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(87px, 1fr); overflow-x: auto; scrollbar-width: none; gap: 10px; padding: 3px 2px 8px; }
.hourly-scroll::-webkit-scrollbar { display: none; }
.hour-card { min-width: 87px; min-height: 152px; padding: 16px 8px 12px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; border-radius: 22px; background: var(--surface-container); color: var(--on-surface-variant); transition: transform .2s, background .2s; }
.hour-card:hover { transform: translateY(-3px); background: var(--primary-container); }
.hour-card.active { background: var(--primary); color: white; box-shadow: 0 7px 16px rgba(72,93,146,.2); }
.hour-time { font-size: 12px; font-weight: 600; opacity: .85; } .hour-card .weather-small { font-size: 29px; color: var(--primary); font-variation-settings: 'FILL' 1; } .hour-card.active .weather-small { color: #fff; }
.hour-temp { font-size: 18px; font-weight: 600; } .hour-rain { font-size: 11px; color: var(--primary); } .hour-card.active .hour-rain { color: #dce8ff; }
.daily-list { overflow: hidden; border-radius: 24px; background: var(--surface-container); }
.daily-row { min-height: 67px; display: grid; grid-template-columns: 1.1fr .8fr 1fr 1.1fr; align-items: center; gap: 10px; padding: 0 24px; border-bottom: 1px solid rgba(116,119,128,.13); font-size: 13px; }
.daily-row:last-child { border: 0; } .daily-day { font-weight: 700; } .daily-condition { display: flex; align-items: center; gap: 9px; color: var(--on-surface-variant); } .daily-condition .material-symbols-rounded { font-size: 23px; color: var(--primary); font-variation-settings: 'FILL' 1; }
.rain-prob { color: var(--primary); font-size: 12px; } .temp-range { display: flex; justify-content: end; align-items: center; gap: 9px; } .temp-low { color: #6c7180; } .range-bar { width: 62px; height: 6px; border-radius: 5px; background: linear-gradient(90deg, #91bde5, #eaa771); }
.secondary-column { gap: 22px; }
.map-card, .info-card { border-radius: 27px; background: var(--surface-container); box-shadow: var(--shadow); }
.map-card { padding: 24px 24px 18px; } .map-header, .card-title-row { display: flex; align-items: start; justify-content: space-between; } .map-header .eyebrow, .card-title-row .eyebrow { margin-bottom: 6px; }
.map-visual { position: relative; height: 255px; overflow: hidden; margin-top: 20px; border-radius: 19px; background: #b8d3db; }
.map-frame, #mapFrame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #b8d3db; }
.map-visual::before { content: ''; position: absolute; inset: -25%; background: linear-gradient(130deg, transparent 30%, rgba(245,237,205,.65) 30% 51%, transparent 51% 58%, rgba(160,201,203,.85) 58% 74%, transparent 74%), linear-gradient(35deg, #b5d6d2, #d4e4d1 48%, #e6deb8); transform: rotate(-9deg); }
.map-grid { position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(55,98,106,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(55,98,106,.35) 1px, transparent 1px); background-size: 37px 37px; mix-blend-mode: multiply; }
.map-contour { position: absolute; border: 2px solid rgba(246,247,219,.8); border-radius: 52% 48% 55% 45%; transform: rotate(-20deg); } .contour-one { width: 215px; height: 120px; top: 55px; left: -32px; } .contour-two { width: 275px; height: 160px; top: 23px; right: -50px; border-color: rgba(117,177,166,.65); } .contour-three { width: 195px; height: 110px; bottom: -35px; left: 80px; border-color: rgba(255,255,255,.75); }
.map-pin { position: absolute; top: 48%; left: 52%; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50% 50% 50% 5px; transform: rotate(-45deg); background: var(--primary); color: #fff; box-shadow: 0 4px 9px rgba(31,64,93,.25); } .map-pin .material-symbols-rounded { transform: rotate(45deg); font-size: 20px; }
.map-label { position: absolute; top: 22px; left: 18px; display: flex; align-items: center; gap: 5px; padding: 8px 11px; border-radius: 9px; background: rgba(255,255,255,.88); color: #29464c; backdrop-filter: blur(5px); font-size: 11px; font-weight: 600; } .map-label .material-symbols-rounded { font-size: 16px; color: var(--primary); } .map-caption a { color: var(--primary); font-weight: 700; text-decoration: none; } .map-caption a:hover { text-decoration: underline; }
.map-controls { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 7px; } .map-control { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.84); color: #53646b; } .map-control.active { background: var(--primary); color: white; } .map-control .material-symbols-rounded { font-size: 18px; }
.map-caption { display: flex; align-items: center; gap: 7px; margin: 15px 0 0; color: #3c6d4a; font-size: 12px; font-weight: 600; } .map-caption .material-symbols-rounded { font-size: 17px; }
.info-card { padding: 23px 24px; } .sun-icon { color: #db895f; font-size: 26px; } .sun-arc { height: 91px; margin: 14px 18px 5px; position: relative; overflow: hidden; } .arc-line { position: absolute; left: 0; right: 0; bottom: -55px; height: 145px; border: 2px dashed #d6a27e; border-radius: 50%; } .horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #c6c9d0; } .sun-position { position: absolute; left: 56%; top: 30px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #ffd79d; color: #a96735; box-shadow: 0 0 0 8px rgba(255,215,157,.23); } .sun-position .material-symbols-rounded { font-size: 18px; }
.sun-times { display: flex; justify-content: space-between; } .sun-times div { display: flex; flex-direction: column; gap: 5px; } .sun-times div:last-child { text-align: right; } .sun-times span { color: var(--on-surface-variant); font-size: 12px; } .sun-times strong { font-size: 15px; }
.tip-card { display: flex; align-items: start; gap: 16px; background: var(--peach); } .tip-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: #f6cdb4; color: var(--peach-deep); } .tip-icon .material-symbols-rounded { font-size: 22px; } .tip-card h2 { font-size: 18px; margin-bottom: 8px; } .tip-copy { margin: 0; color: #6d5146; font-size: 13px; line-height: 1.45; }
.bottom-nav { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 5; padding: 12px 18px; border-radius: 24px; background: #2e3038; color: white; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .25s, transform .25s; } .toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 980px) { .app-shell { padding: 0 28px 48px; } .dashboard-grid { grid-template-columns: 1fr; } .secondary-column { display: grid; grid-template-columns: 1fr 1fr; align-items: start; } .map-card { grid-row: span 2; } }
@media (max-width: 680px) { .app-shell { padding: 0 16px 84px; } .topbar { height: 70px; } .location-row { display: block; padding: 28px 0 24px; } h1 { font-size: 34px; } .location-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr auto auto; } .search-box { width: auto; } .button-label { display: none; } .unit-toggle { height: 48px; } .tonal-button { width: 48px; justify-content: center; padding: 0; } .hero-main { min-height: 220px; padding: 26px 25px 16px; } .temperature-line { font-size: 76px; height: 72px; } .temperature-line .degree { font-size: 34px; } .weather-illustration { width: 122px; height: 130px; } .weather-illustration .material-symbols-rounded { font-size: 103px; } .hero-footer { padding: 0 20px; gap: 12px; justify-content: space-between; } .hero-footer div { gap: 4px; font-size: 0; } .hero-footer strong { font-size: 12px; } .hero-footer .material-symbols-rounded { font-size: 21px; } .section-block { margin-top: 2px; } .secondary-column { display: flex; } .daily-row { grid-template-columns: .9fr 1.1fr .8fr; padding: 0 16px; } .daily-condition { gap: 5px; } .daily-condition span { display: none; } .range-bar { width: 40px; } .daily-row .rain-prob { display: none; } .map-visual { height: 220px; } .bottom-nav { position: fixed; z-index: 4; right: 12px; bottom: 12px; left: 12px; height: 64px; display: flex; justify-content: space-around; align-items: center; padding: 0 8px; border: 1px solid rgba(255,255,255,.75); border-radius: 25px; background: rgba(238,240,248,.9); box-shadow: 0 8px 25px rgba(27,34,53,.12); backdrop-filter: blur(16px); } .nav-item { min-width: 68px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #626570; text-decoration: none; font-size: 10px; font-weight: 600; } .nav-item .material-symbols-rounded { padding: 4px 14px; border-radius: 15px; font-size: 20px; } .nav-item.active { color: var(--primary-dark); } .nav-item.active .material-symbols-rounded { background: var(--primary-container); } }
@media (max-width: 390px) { .hero-main { padding-inline: 18px; } .weather-illustration { width: 100px; } .hero-footer { padding-inline: 14px; } .hourly-scroll { grid-auto-columns: 80px; } }

/* Phone refinements: keep controls reachable and let content breathe edge to edge. */
@media (max-width: 680px) {
  body { overflow-x: hidden; }
  .app-shell { padding-right: 14px; padding-left: 14px; }
  .topbar { height: 66px; }
  .brand { font-size: 22px; }
  .location-row { padding-top: 22px; }
  .location-actions { grid-template-columns: minmax(0, 1fr) 48px 88px; gap: 8px; }
  .search-box { min-width: 0; padding-left: 13px; }
  .search-box input { font-size: 13px; }
  .unit-toggle { width: 88px; justify-content: center; }
  .unit-option { min-width: 36px; padding: 0 7px; }
  .hero-card { border-radius: 26px; }
  .hero-main { min-height: 204px; padding: 24px 21px 15px; }
  .temperature-line { font-size: 72px; letter-spacing: -5px; }
  .weather-illustration { width: 112px; height: 116px; }
  .weather-illustration .material-symbols-rounded { font-size: 94px; }
  .hero-footer { min-height: 60px; }
  .primary-column { gap: 30px; }
  .section-heading { margin-bottom: 13px; }
  .section-heading h2 { font-size: 20px; }
  .hourly-scroll { margin-right: -14px; padding-right: 14px; padding-bottom: 7px; }
  .hour-card { min-height: 145px; border-radius: 19px; }
  .daily-list { border-radius: 21px; }
  .daily-row { min-height: 62px; padding-right: 13px; padding-left: 15px; }
  .daily-condition .material-symbols-rounded { font-size: 21px; }
  .map-card, .info-card { border-radius: 23px; }
  .map-card { padding: 20px 18px 16px; }
  .info-card { padding: 20px 18px; }
  .map-visual { margin-top: 16px; }
  .bottom-nav { right: 10px; bottom: 10px; left: 10px; }
}
@media (max-width: 360px) {
  .app-shell { padding-right: 12px; padding-left: 12px; }
  .location-actions { grid-template-columns: minmax(0, 1fr) 44px 82px; gap: 6px; }
  .unit-toggle { width: 82px; }
  .hero-main { padding-right: 15px; padding-left: 15px; }
  .temperature-line { font-size: 66px; }
  .weather-illustration { width: 96px; }
  .weather-illustration .material-symbols-rounded { font-size: 82px; }
  .hero-footer { padding-right: 11px; padding-left: 11px; }
  .hero-footer .material-symbols-rounded { font-size: 19px; }
  .daily-row { padding-right: 10px; padding-left: 12px; }
  .range-bar { width: 30px; }
  .nav-item { min-width: 60px; }
}

.map-card:fullscreen { width: 100vw; height: 100vh; display: flex; flex-direction: column; padding: 28px; border-radius: 0; background: var(--surface-container); }
.map-card:fullscreen .map-visual { flex: 1; height: auto; min-height: 0; }
.map-card:fullscreen .map-caption { margin-bottom: 0; }
.map-card:-webkit-full-screen { width: 100vw; height: 100vh; display: flex; flex-direction: column; padding: 28px; border-radius: 0; background: var(--surface-container); }
.map-card:-webkit-full-screen .map-visual { flex: 1; height: auto; min-height: 0; }
@media (max-width: 680px) { .map-card:fullscreen, .map-card:-webkit-full-screen { padding: 18px 14px; } }

.nav-item { background: transparent; border: 0; font-family: inherit; cursor: pointer; }
.settings-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; padding: 20px; background: rgba(24, 28, 39, .36); backdrop-filter: blur(3px); }
.settings-backdrop[hidden] { display: none; }
.settings-sheet { width: min(100%, 570px); padding: 28px 28px 22px; border-radius: 30px; background: var(--surface); box-shadow: 0 18px 55px rgba(24, 30, 48, .24); animation: settings-in .22s ease-out; }
.settings-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.settings-header .eyebrow { margin-bottom: 6px; }
.settings-list { overflow: hidden; border-radius: 21px; background: var(--surface-container); }
.settings-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; border-bottom: 1px solid rgba(116,119,128,.14); }
.settings-row:last-child { border-bottom: 0; }
.settings-row-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.settings-row-copy strong { font-size: 14px; }
.settings-row-copy span { color: var(--on-surface-variant); font-size: 12px; line-height: 1.35; }
.settings-segmented { display: flex; flex: 0 0 auto; padding: 3px; border-radius: 20px; background: var(--surface-high); }
.settings-segmented button { min-width: 39px; height: 32px; padding: 0 8px; border: 0; border-radius: 17px; background: transparent; color: var(--on-surface-variant); font-size: 12px; font-weight: 700; cursor: pointer; }
.settings-segmented button.active { background: var(--primary); color: #fff; box-shadow: 0 2px 5px rgba(46,54,77,.18); }
.settings-action { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 20px; background: var(--primary-container); color: var(--primary-dark); font-size: 12px; font-weight: 700; cursor: pointer; }
.settings-action .material-symbols-rounded { font-size: 17px; }
.settings-footnote { display: flex; align-items: center; gap: 7px; margin: 17px 2px 0; color: var(--on-surface-variant); font-size: 11px; }
.settings-footnote .material-symbols-rounded { color: var(--primary); font-size: 17px; }
@keyframes settings-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 680px) {
  .settings-backdrop { padding: 0; }
  .settings-sheet { width: 100%; padding: 24px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; }
  .settings-row { gap: 10px; padding: 14px 13px; }
  .settings-row-copy span { max-width: 205px; }
  .settings-action { padding-right: 10px; padding-left: 10px; }
}
