/* Atmos / liquid blue. Layout, surfaces, and motion share one theme system. */
:root {
  color-scheme: dark;
  --bg: #050d20;
  --ink: #edf6ff;
  --muted: #a3b9d6;
  --accent: #72ccff;
  --accent-strong: #a4e2ff;
  --line: rgba(165, 208, 255, .14);
  --glass: rgba(21, 46, 82, .43);
  --glass-bright: rgba(61, 115, 174, .13);
  --glass-edge: rgba(206, 232, 255, .24);
  --inset: rgba(7, 23, 48, .36);
  --hover: rgba(72, 153, 231, .13);
  --selected: rgba(63, 147, 225, .18);
  --popover: rgba(11, 28, 55, .97);
  --sidebar: rgba(7, 20, 43, .50);
  --toolbar: rgba(7, 21, 45, .30);
  --shadow: 0 16px 44px rgba(0, 7, 24, .18);
  --shine: rgba(207, 237, 255, .30);
  --glow: rgba(38, 152, 255, .22);
  --hero: linear-gradient(118deg, rgba(25, 77, 133, .76), rgba(16, 56, 105, .57) 54%, rgba(22, 77, 132, .44));
  --fallback: #102746;
  --radius: 23px;
  font-family: 'DM Sans', sans-serif;
  font-synthesis: none;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #e6f1ff;
  --ink: #102e54;
  --muted: #456384;
  --accent: #1663b7;
  --accent-strong: #134f95;
  --line: rgba(59, 115, 172, .17);
  --glass: rgba(245, 251, 255, .55);
  --glass-bright: rgba(255, 255, 255, .40);
  --glass-edge: rgba(255, 255, 255, .95);
  --inset: rgba(214, 232, 253, .46);
  --hover: rgba(57, 132, 214, .09);
  --selected: rgba(116, 183, 245, .23);
  --popover: rgba(244, 250, 255, .98);
  --sidebar: rgba(236, 247, 255, .45);
  --toolbar: rgba(238, 248, 255, .35);
  --shadow: 0 15px 38px rgba(29, 75, 130, .07);
  --shine: rgba(255, 255, 255, .95);
  --glow: rgba(57, 151, 240, .15);
  --hero: linear-gradient(112deg, rgba(29, 83, 139, .96), rgba(28, 94, 158, .88) 60%, rgba(42, 125, 183, .79));
  --fallback: #e9f4ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; border: 0; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a { text-decoration: none; color: inherit; }
svg { display: block; }
button svg, [data-icon] svg { width: 20px; height: 20px; }
[data-icon] { display: inline-flex; flex: none; align-items: center; justify-content: center; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; }
[hidden] { display: none !important; }
::selection { background: rgba(69, 172, 247, .30); }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 400; background: var(--popover); padding: 12px; border: 1px solid var(--accent); border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* Decorative layers never receive pointer events. */
.atmosphere { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 67% -12%, #174f8b70, transparent 57%), linear-gradient(145deg, #040b19, #07162d 47%, #061024); }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(75px); will-change: transform; }
.orb-one { width: 530px; height: 530px; right: -120px; top: -230px; background: radial-gradient(circle, #168ddd6b, #0879d01c 62%, transparent 72%); animation: ambientFloat 25s ease-in-out infinite alternate; }
.orb-two { width: 560px; height: 560px; left: 13%; top: 45%; background: radial-gradient(circle, #1762c442, #044ea920 55%, transparent 73%); animation: ambientFloat 31s ease-in-out -12s infinite alternate-reverse; }
.orb-three { width: 330px; height: 330px; right: 22%; top: 28%; background: radial-gradient(circle, #32b8d92e, transparent 70%); animation: ambientFloat 24s ease-in-out -8s infinite alternate; }
.ambient-waves { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .34; animation: ribbonDrift 32s ease-in-out infinite alternate; }
.ambient-grain { position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(#afd4ff4a .6px, transparent .6px); background-size: 7px 7px; mask-image: linear-gradient(transparent, #000 45%, transparent); }
[data-theme='light'] .atmosphere { background: radial-gradient(ellipse at 70% 0, #b5dfff, transparent 57%), linear-gradient(140deg, #d9e9fc, #ecf6ff 50%, #cde5f8); }
[data-theme='light'] .orb-one { opacity: .6; }
[data-theme='light'] .orb-two { opacity: .5; }
[data-theme='light'] .ambient-waves { opacity: .31; }
#cursorGlow { position: fixed; width: 420px; height: 420px; left: 0; top: 0; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 68%); opacity: 0; transition: opacity .7s; will-change: transform; pointer-events: none; z-index: 1; }
#cursorTrail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .5s; }
.cursor-effects-enabled.cursor-active #cursorGlow, .cursor-effects-enabled.cursor-active #cursorTrail { opacity: 1; }
.app-shell { margin-left: 224px; position: relative; z-index: 2; }

.sidebar { width: 224px; padding: 35px 22px 23px; background: var(--sidebar); position: fixed; inset: 0 auto 0 0; border-right: 1px solid var(--line); box-shadow: inset -1px 0 0 rgba(213, 234, 255, .025); backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%); display: flex; flex-direction: column; z-index: 110; overflow-y: auto; }
.brand { display: flex; align-items: center; font: 800 30px Manrope, sans-serif; letter-spacing: -1.5px; padding: 0 8px; }
.brand-mark { width: 39px; height: 39px; color: #f2fbff; border-radius: 13px; margin-right: 10px; border: 1px solid #b0e5ff4a; background: linear-gradient(145deg, #86d4ff5c, #1988df99 45%, #06457c9c); box-shadow: inset 0 1px 1px #e0f9ff70, inset 0 -3px 9px #002e696b, 0 5px 19px #0f8bdb24; }
.brand-mark svg { width: 25px; height: 25px; filter: drop-shadow(0 1px 4px #a6e8ff55); }
.brand-dot { color: var(--accent); }
.sidebar-heading { font-size: 8px; letter-spacing: 1.45px; color: var(--muted); margin: 17px 8px 35px; font-weight: 600; }
.nav-links { display: grid; gap: 9px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid transparent; border-radius: 12px; color: var(--muted); font-size: 12px; font-weight: 500; transition: .2s; }
.nav-link:hover { background: var(--hover); color: var(--ink); }
.nav-link.active { color: var(--accent-strong); border-color: var(--line); font-weight: 600; background: linear-gradient(105deg, var(--selected), transparent 150%); box-shadow: inset 0 1px 0 var(--glass-edge), 0 4px 12px #00132d07; }
.nav-link svg { width: 18px; height: 18px; }
.nav-indicator { height: 5px; width: 5px; border-radius: 50%; background: currentColor; margin-left: auto; box-shadow: 0 0 10px #57bdff88; }
.saved-heading { display: flex; align-items: center; justify-content: space-between; margin: 36px 13px 14px; color: var(--muted); }
.saved-heading h2 { font: 500 11px 'DM Sans', sans-serif; }
.saved-heading svg { width: 14px; height: 14px; }
.empty-saved { font-size: 11px; line-height: 1.8; color: var(--muted); padding: 0 13px; max-width: 180px; }
.saved-cities { display: grid; gap: 7px; }
.saved-city { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: transparent; text-align: left; border-radius: 12px; border: 1px solid transparent; }
.saved-city:hover, .saved-city.is-active { background: var(--hover); border-color: var(--line); }
.saved-city-icon { color: var(--accent); }
.saved-city-icon svg { width: 17px; height: 17px; }
.saved-city-copy { display: grid; gap: 2px; min-width: 0; }
.saved-city-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-city-region { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-note { position: relative; isolation: isolate; background: linear-gradient(155deg, var(--glass-bright), transparent 80%); border: 1px solid var(--line); border-radius: 19px; min-height: 205px; padding: 22px 18px; overflow: hidden; margin-top: auto; margin-bottom: 22px; flex: none; box-shadow: inset 0 1px 0 var(--glass-edge); }
.sidebar-note p { font: 600 18px/1.5 Manrope, sans-serif; letter-spacing: -.5px; position: relative; z-index: 1; }
.sidebar-note>span { font-size: 9px; position: relative; z-index: 1; color: var(--muted); display: block; margin-top: 9px; }
.mini-sun { position: absolute; top: 70px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #bdefffcc, #419ad969 50%, #18558a6b); border: 1px solid #b6e7ff59; box-shadow: inset 1px 2px 5px #b7eeff70, 0 0 24px #4bb9ff29; }
.note-hills { position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; z-index: 0; }
.sidebar-bottom { font-size: 8px; display: flex; align-items: center; gap: 6px; color: var(--muted); justify-content: center; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: #75d5d8; box-shadow: 0 0 9px #54d6e230; }

/* The header stays above every glass surface, including the forecast hero. */
.topbar { position: relative; z-index: 100; min-height: 95px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 26px; border-bottom: 1px solid var(--line); background: var(--toolbar); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
.mobile-brand, .mobile-nav { display: none; }
.search { position: relative; display: flex; align-items: center; gap: 12px; width: 380px; max-width: 48%; height: 45px; border-radius: 13px; background: var(--inset); padding: 0 14px; border: 1px solid var(--line); box-shadow: inset 0 1px 1px #0108190a; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--hover), inset 0 1px 0 var(--glass-edge); }
.search-icon { color: var(--muted); }
.search-icon svg { width: 18px; height: 18px; }
.search input { width: 100%; min-width: 0; background: none; border: 0; height: 100%; outline: none; color: var(--ink); font-size: 12px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search kbd { white-space: nowrap; font: 9px 'DM Sans', sans-serif; border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; color: var(--muted); background: var(--glass-bright); }
.search-popover { position: absolute; top: calc(100% + 10px); left: 0; width: max(100%,340px); z-index: 101; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 48px #00091945; background: var(--popover); }
.results { padding: 7px; border: 1px solid var(--glass-edge); border-radius: 16px; max-height: 365px; overflow-y: auto; }
.search-message:empty { display: none; }
.search-message:not(:empty) { padding: 13px 16px; font-size: 12px; color: var(--muted); }
.search-result { display: flex; align-items: center; gap: 11px; border-radius: 10px; width: 100%; padding: 11px 10px; background: transparent; text-align: left; min-height: 55px; }
.search-result:hover, .search-result.is-active, .search-result:focus-visible { background: var(--selected); }
.result-icon { background: var(--inset); color: var(--accent); border-radius: 10px; padding: 8px; }
.result-icon svg { width: 16px; height: 16px; }
.result-copy { display: grid; gap: 2px; min-width: 0; }
.result-name { font-size: 13px; font-weight: 600; }
.result-region { font-size: 10px; color: var(--muted); }
.result-arrow { margin-left: auto; color: var(--accent); }
.toolbar-actions { display: flex; align-items: center; gap: 18px; }
.location-button { display: flex; gap: 7px; align-items: center; background: transparent; font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; padding: 8px 0; min-height: 40px; }
.location-button:hover { color: var(--accent); }
.location-button svg { width: 17px; height: 17px; }
.unit-controls { display: flex; background: var(--inset); padding: 4px; border-radius: 12px; gap: 3px; border: 1px solid var(--line); }
.unit-controls button { background: transparent; color: var(--muted); width: 32px; height: 31px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.unit-controls button[aria-pressed='true'] { color: #effaff; background: linear-gradient(140deg, #4eaff5, #1763ad); box-shadow: inset 0 1px 0 #ffffff66, 0 3px 9px #001b4a30; }
.icon-button { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(150deg, var(--glass-bright), transparent); box-shadow: inset 0 1px 0 var(--glass-edge); color: var(--accent); }
.icon-button:hover { background: var(--hover); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 20px var(--glow); }
.main-content { max-width: 1510px; margin: 0 auto; padding: 32px 38px 16px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow { font-size: 9px; color: var(--accent); letter-spacing: 2px; font-weight: 500; margin-bottom: 7px; }
.page-heading h1 { font-weight: 650; font-size: 33px; line-height: 1.3; letter-spacing: -1px; }
.place-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 8px; }
.place-meta svg { width: 12px; height: 12px; }
.meta-divider { padding: 0 4px; opacity: .5; }
.save-button { display: flex; align-items: center; gap: 8px; background: linear-gradient(145deg, var(--glass-bright), transparent); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 11px; white-space: nowrap; font-weight: 500; box-shadow: inset 0 1px 0 var(--glass-edge); }
.save-button svg { width: 15px; height: 15px; }
.save-button:hover, .save-button[aria-pressed='true'] { background: var(--selected); color: var(--accent-strong); border-color: var(--glass-edge); }
.status-banner { margin-bottom: 18px; border: 1px solid #b88d454d; background: var(--popover); color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 15px; border-radius: 13px; padding: 12px 16px; font-size: 12px; }
.status-banner button { border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; background: var(--glass-bright); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.status-banner svg { width: 13px; height: 13px; }
.forecast-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(290px,1fr); gap: 22px; align-items: stretch; }
.forecast-primary { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.forecast-primary>* { min-width: 0; }
.card, .current-card { position: relative; isolation: isolate; border: 1px solid var(--line); border-top-color: var(--glass-edge); border-radius: var(--radius); background: linear-gradient(125deg, var(--glass-bright), transparent 53%), var(--glass); box-shadow: inset 0 1px 0 #e1f4ff08, inset 0 -1px 0 #06102421, var(--shadow); backdrop-filter: blur(22px) saturate(155%); -webkit-backdrop-filter: blur(22px) saturate(155%); }
.card::before, .current-card::before, .sidebar-note::before { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(400px circle at var(--spot-x,50%) var(--spot-y,0%), var(--glow), transparent 62%); opacity: 0; transition: opacity .6s; z-index: -1; }
.card.is-pointer-near::before, .current-card.is-pointer-near::before, .sidebar-note.is-pointer-near::before { opacity: 1; }
.card::after, .current-card::after { content: ''; position: absolute; pointer-events: none; left: 12%; right: 12%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--shine), transparent); border-radius: 50%; }
.card { transition: border-color .25s, box-shadow .25s; }
.card:hover { border-color: var(--glass-edge); }
.current-card { overflow: hidden; background: var(--hero); min-height: 316px; padding: 24px 27px 0; color: #f1f8ff; border-color: #87caff35; border-top-color: #c5ecff75; box-shadow: inset 0 1px 0 #e2faff19, inset 0 -1px 0 #03215a40, 0 18px 55px #000d301f; }
.landscape { position: absolute; inset: auto 0 43px; width: 100%; height: 90%; pointer-events: none; z-index: -1; opacity: .95; }
.hero-lens { position: absolute; width: 240px; height: 240px; border-radius: 50%; right: 10px; top: 40px; transform: rotate(-25deg); background: radial-gradient(circle at 27% 18%, #dbf6ff13, transparent 45%), radial-gradient(circle at 70% 90%, #81dfff12, transparent 55%); box-shadow: inset 2px 3px 6px #e1f9ff25, inset -1px -2px 6px #1262af25, 0 0 0 1px #83d2ff13; pointer-events: none; z-index: -1; }
.current-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.current-heading h2 { display: flex; gap: 8px; align-items: center; font: 500 12px 'DM Sans', sans-serif; color: #cee6ff; }
.current-heading .status-dot { background: #98e1f8; width: 5px; height: 5px; box-shadow: 0 0 10px #a5f4ff70; }
.current-pill { font-size: 10px; color: #c6e3ff; background: #b6e6ff0c; border: 1px solid #b9e2ff21; box-shadow: inset 0 1px 0 #dbf6ff0d; padding: 5px 10px; border-radius: 30px; }
.current-body { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 178px; }
.current-reading { position: relative; z-index: 2; min-width: 0; }
.temperature { font: 500 clamp(65px,6vw,88px)/1.18 Manrope, sans-serif; letter-spacing: -5px; min-height: 90px; text-shadow: 0 4px 25px #0e2f671a; }
.current-reading #condition { font-size: 18px; font-weight: 500; margin: 3px 0 8px; letter-spacing: -.25px; }
.feels { color: #c1dbf3; font-size: 11px; }
.feels-separator { padding: 0 7px; opacity: .6; }
.hero-art { width: 202px; min-width: 100px; max-width: 44%; filter: drop-shadow(0 15px 20px #041e4c63); align-self: center; animation: heroFloat 8s ease-in-out infinite; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-insight { font-size: 12px; color: #c1dbf3; max-width: 92%; margin: 5px 0 21px; min-height: 18px; position: relative; z-index: 2; }
.current-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -27px; padding: 14px 27px; background: #02254c22; border-top: 1px solid #c5eaff1c; font-size: 11px; color: #b7d3ed; position: relative; }
.current-bottom>div { display: flex; align-items: center; gap: 6px; }
.current-bottom svg { width: 14px; height: 14px; color: #93d6ff; }
.current-bottom strong { color: #ecf8ff; font-size: 11px; font-weight: 500; margin-left: 4px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2 { font-size: 16px; font-weight: 650; letter-spacing: -.3px; }
.section-heading p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.section-icon { color: var(--accent); }
.section-icon svg { width: 19px; height: 19px; }
.hourly-card { padding: 23px 23px 12px; min-height: 292px; flex: 1; }
.chart-tabs { display: flex; align-items: center; background: var(--inset); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.chart-tabs button { background: transparent; font-size: 10px; border-radius: 7px; padding: 6px 9px; color: var(--muted); }
.chart-tabs button[aria-pressed='true'] { background: linear-gradient(140deg, var(--selected), var(--glass-bright)); color: var(--accent-strong); box-shadow: inset 0 1px 0 var(--glass-edge), 0 2px 5px #00132f12; font-weight: 500; }
.chart-wrap { height: 112px; width: 100%; margin-top: 14px; overflow: hidden; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 4px #25adff3b); }
.chart-area { fill: url(#forecastFill); }
.chart-point { fill: var(--fallback); stroke: var(--accent); stroke-width: 2; }
.chart-label { font: 11px 'DM Sans', sans-serif; fill: var(--muted); }
.chart-bar { fill: #49a8ec99; }
.hourly-scroll { display: flex; overflow-x: auto; gap: 9px; max-width: 100%; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #6199c645 transparent; padding: 5px 0 10px; min-height: 111px; }
.hour-item { flex: 0 0 calc((100% - 63px)/8); min-width: 49px; display: flex; flex-direction: column; align-items: center; gap: 5px; scroll-snap-align: start; border-radius: 13px; padding: 9px 5px; border: 1px solid transparent; transition: background .2s; }
.hour-item:hover { background: var(--hover); }
.hour-item.is-current { background: linear-gradient(150deg, var(--selected), var(--glass-bright)); border-color: var(--line); box-shadow: inset 0 1px 0 var(--glass-edge); }
.hour-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.hour-icon svg { width: 31px; height: 31px; }
.hour-temp { font-weight: 550; font-size: 13px; }
.hour-rain { font-size: 10px; color: var(--muted); }
.scroll-hint { display: flex; justify-content: flex-end; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; margin-top: 5px; }
.scroll-hint svg { width: 11px; height: 11px; }
.week-card { padding: 24px 20px 18px; display: flex; flex-direction: column; min-width: 0; }
.week-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; letter-spacing: .6px; margin: 27px 0 12px; padding: 0 6px; opacity: .8; }
.week-list { display: grid; gap: 5px; }
.day-row { display: grid; grid-template-columns: 42px 33px 32px 25px minmax(25px,1fr) 25px; align-items: center; gap: 4px; width: 100%; min-height: 48px; padding: 6px; background: transparent; text-align: left; border-radius: 11px; border: 1px solid transparent; }
.day-row:hover { background: var(--hover); }
.day-row.is-selected { background: linear-gradient(110deg, var(--selected), var(--glass-bright)); border-color: var(--line); box-shadow: inset 0 1px 0 var(--glass-edge); }
.day-name { font-size: 12px; font-weight: 500; }
.day-icon svg { width: 30px; height: 30px; }
.day-rain { color: var(--muted); font-size: 10px; }
.day-low { color: var(--muted); font-size: 12px; text-align: center; }
.day-high { color: var(--ink); font-size: 12px; font-weight: 600; text-align: right; }
.day-range { height: 4px; background: var(--inset); border-radius: 8px; position: relative; display: block; overflow: hidden; }
.day-range-fill { position: absolute; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #287bd5, #7fcde8); display: block; box-shadow: 0 0 8px #69cdff36; }
.day-details { margin-top: 23px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--inset); min-height: 125px; box-shadow: inset 0 1px 3px #000d1e08; }
.day-details>svg, .day-details>[data-icon] { color: var(--accent); }
.day-details>p { font-size: 11px; color: var(--muted); }
.day-detail-title { font-size: 12px; font-weight: 500; margin-bottom: 13px; display: flex; align-items: center; gap: 7px; }
.day-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; }
.day-detail-stat { display: grid; gap: 2px; }
.day-detail-stat>span { font-size: 11px; color: var(--muted); }
.day-detail-stat>strong { font-weight: 500; font-size: 11px; }
.week-note { margin-top: auto; padding-top: 18px; text-align: center; font-size: 10px; color: var(--muted); }
.highlights-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 29px 0 17px; }
.highlights-heading h2 { font-size: 17px; letter-spacing: -.4px; font-weight: 600; }
.highlights-heading>span { color: var(--muted); font-size: 11px; }
.highlights-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.highlight { padding: 21px 22px; min-height: 179px; }
.highlight h3 { display: flex; align-items: center; gap: 8px; font: 500 12px 'DM Sans', sans-serif; color: var(--muted); }
.highlight h3 svg { width: 16px; height: 16px; color: var(--accent); }
.metric { font: 500 29px/1.25 Manrope,sans-serif; letter-spacing: -1px; margin-top: 17px; }
.metric-note { font-size: 11px; color: var(--muted); margin-top: 11px; min-height: 14px; }
.meter { width: 100%; height: 4px; margin-top: 17px; background: var(--inset); position: relative; border-radius: 10px; overflow: hidden; }
.meter>span { display: block; height: 100%; min-width: 0; width: 0; border-radius: 10px; background: linear-gradient(90deg, #2877d1, #75d1ec); transition: width .5s ease; }
.uv-meter { background: linear-gradient(90deg, #5eb9c3, #b4c984 40%, #dab48e 68%, #c4828c 90%, #9d85bb); overflow: visible; }
.uv-meter>span { position: relative; background: transparent; max-width: 100%; }
.uv-meter>span:after { content: ''; position: absolute; right: 0; top: -3px; height: 10px; width: 4px; background: var(--ink); border: 1px solid var(--fallback); border-radius: 3px; }
.air-meter>span { background: #73bfc3; }
.wind-reading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wind-reading .metric { font-size: 26px; }
.wind-reading .metric-note { max-width: 135px; }
.compass { width: 79px; height: 79px; border: 1px solid var(--line); border-radius: 50%; position: relative; color: var(--muted); font-size: 7px; margin-top: 16px; flex: none; background: repeating-conic-gradient(from -1deg, var(--line) 0deg 1deg, transparent 1deg 30deg); box-shadow: inset 0 1px 2px var(--glass-edge), 0 3px 10px #001c3b0a; }
.compass:before { content: ''; inset: 9px; position: absolute; border-radius: 50%; background: var(--fallback); opacity: .75; }
.compass>span { position: absolute; z-index: 1; }
.north { top: 3px; left: 50%; transform: translateX(-50%); }
.east { right: 4px; top: 50%; transform: translateY(-50%); }
.south { bottom: 3px; left: 50%; transform: translateX(-50%); }
.west { left: 4px; top: 50%; transform: translateY(-50%); }
.compass-needle { position: absolute; left: calc(50% - 5px); top: 15px; width: 10px; height: 47px; transform-origin: 50% 50%; transition: transform .7s; }
.compass-needle:before { content: ''; position: absolute; inset: 0; background: linear-gradient(#69caff 50%, #6484ab 50%); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.compass i { position: absolute; left: calc(50% - 3px); top: calc(50% - 3px); border-radius: 50%; width: 6px; height: 6px; background: #d1f0ff; border: 1px solid #729ac3; }
.sun-card { padding-bottom: 12px; }
.sun-arc { height: 54px; margin-top: 2px; overflow: hidden; color: #75acd4; }
.sun-arc svg { width: 100%; height: 100%; overflow: visible; }
.sun-times { display: flex; justify-content: space-between; }
.sun-times>div { display: grid; gap: 3px; }
.sun-times>div:last-child { text-align: right; }
.sun-times span { font-size: 10px; color: var(--muted); }
.sun-times strong { font-size: 12px; font-weight: 500; }
.sun-card .metric-note { text-align: center; font-size: 10px; margin-top: 7px; }
.visibility-lines { display: flex; gap: 5px; align-items: flex-end; height: 11px; margin-top: 15px; overflow: hidden; }
.visibility-lines i { width: 2px; height: 7px; background: #68bfff66; flex: 1; border-radius: 2px; }
.visibility-lines i:nth-child(3n) { height: 11px; background: #69bcf1; box-shadow: 0 0 6px #65bdf42b; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 25px 0 8px; color: var(--muted); font-size: 9px; }
.footer>p { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.footer a { color: var(--accent); }
.footer a:hover { text-decoration: underline; }
.footer-dot { padding: 0 3px; opacity: .5; }
.footer .status-dot { width: 4px; height: 4px; margin-right: 3px; }
.footer button { display: grid; place-items: center; background: transparent; color: var(--accent); padding: 4px; }
.footer button svg { width: 12px; height: 12px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%,20px); opacity: 0; visibility: hidden; max-width: calc(100% - 32px); padding: 13px 20px; border: 1px solid var(--glass-edge); border-radius: 14px; background: var(--popover); color: var(--ink); box-shadow: 0 12px 35px #00112a30, inset 0 1px 0 var(--shine); font-size: 12px; z-index: 300; transition: .25s; backdrop-filter: blur(20px); }
.toast.show, .toast.is-visible { transform: translate(-50%,0); opacity: 1; visibility: visible; }
.empty-state, .empty-forecast { font-size: 11px; color: var(--muted); padding: 24px 0; }
.is-loading .temperature, .is-loading .metric { animation: loadingPulse 1.4s ease-in-out infinite; }
.is-loading .current-heading .status-dot { animation: loadingPulse 1s infinite; }
.icon-sun { transform-origin: center; transform-box: view-box; }
.hero-art .icon-sun { animation: sunRotate 90s linear infinite; }
.hero-art .icon-cloud { animation: cloudDrift 9s ease-in-out infinite; }
.hero-art .icon-rain { animation: rainFall 1.5s ease-in-out infinite; }
.hero-art .icon-snow { animation: cloudDrift 4s ease-in-out infinite; }
.hero-art .icon-bolt { animation: lightning 6s infinite; }
@keyframes heroFloat { 50% { transform: translateY(-6px); } }
@keyframes ambientFloat { to { transform: translate3d(-70px,65px,0) scale(1.15); } }
@keyframes ribbonDrift { to { transform: translate3d(30px,-25px,0) scale(1.04); } }
@keyframes sunRotate { to { transform: rotate(360deg); } }
@keyframes cloudDrift { 50% { transform: translateX(3px); } }
@keyframes rainFall { 0%,100% { opacity: .6; transform: translateY(-1px); } 50% { opacity: 1; transform: translateY(2px); } }
@keyframes lightning { 0%,91%,95%,100% { opacity: 1; } 92%,96% { opacity: .2; } }
@keyframes loadingPulse { 50% { opacity: .35; } }
@media (max-height: 820px) { .sidebar-note { margin-top: 40px; } }
@media (min-width: 1600px) {
  .main-content { padding-top: 38px; }
  .current-card { min-height: 330px; }
  .current-body { min-height: 195px; }
  .hero-art { width: 225px; }
  .hero-lens { width: 260px; height: 260px; }
  .highlight { min-height: 190px; padding: 23px; }
  .metric { font-size: 32px; }
  .week-card { padding: 27px; }
  .day-row { min-height: 51px; }
  .day-low, .day-high { font-size: 13px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 194px; padding-left: 16px; padding-right: 16px; }
  .app-shell { margin-left: 194px; }
  .brand { font-size: 27px; }
  .brand-mark { width: 34px; height: 34px; }
  .sidebar-heading { font-size: 7px; letter-spacing: 1.2px; }
  .main-content { padding: 26px; }
  .topbar { padding: 0 26px; gap: 18px; }
  .toolbar-actions { gap: 12px; }
  .search { max-width: 46%; }
  .forecast-grid { gap: 17px; grid-template-columns: minmax(0,1.55fr) minmax(285px,1fr); }
  .forecast-primary { gap: 17px; }
  .current-card { padding-left: 20px; padding-right: 20px; }
  .current-bottom { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .current-bottom>div { gap: 4px; }
  .current-bottom>div, .current-bottom strong { font-size: 10px; }
  .hero-art { width: 170px; max-width: 42%; }
  .hero-lens { width: 180px; height: 180px; top: 70px; right: 0; }
  .hourly-card { padding-left: 17px; padding-right: 17px; }
  .section-heading h2 { font-size: 14px; }
  .section-heading p { font-size: 10px; }
  .chart-tabs button { font-size: 9px; padding: 5px 6px; }
  .highlight { padding: 18px; }
  .metric-note { font-size: 10px; }
  .wind-reading .metric { font-size: 22px; }
  .compass { width: 67px; height: 67px; }
  .compass-needle { top: 10px; }
  .highlights-grid { gap: 14px; }
  .week-card { padding: 23px 16px; }
  .feels { font-size: 10px; }
  .hero-insight { font-size: 11px; }
  .day-name, .day-low, .day-high { font-size: 11px; }
  .day-rain { font-size: 9px; }
  .sidebar-note p { font-size: 17px; }
}
@media (max-width: 1050px) {
  .sidebar { width: 174px; padding-left: 12px; padding-right: 12px; }
  .app-shell { margin-left: 174px; }
  .main-content { padding: 24px; }
  .topbar { padding: 0 24px; }
  .nav-link { font-size: 11px; gap: 10px; padding: 12px; }
  .sidebar-heading { font-size: 6.5px; }
  .sidebar-note { padding: 18px 13px; }
  .sidebar-bottom { font-size: 7px; }
  .location-button>span:last-child { max-width: 100px; white-space: normal; font-size: 10px; }
  .toolbar-actions { gap: 10px; }
  .forecast-grid { grid-template-columns: minmax(0,1fr); }
  .forecast-primary { display: grid; grid-template-columns: minmax(0,1fr); }
  .current-body { min-height: 175px; }
  .hero-art { width: 190px; max-width: 45%; }
  .hero-lens { width: 215px; height: 215px; top: 45px; right: 10px; }
  .week-card { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); column-gap: 25px; padding: 23px; }
  .week-card>.section-heading { grid-column: 1/-1; }
  .week-labels { grid-column: 1; grid-row: 2; margin-top: 20px; }
  .week-list { grid-column: 1; grid-row: 3; }
  .day-details { grid-column: 2; grid-row: 3; margin: 0; align-self: start; min-height: 180px; padding: 18px; }
  .day-detail-grid { gap: 22px 14px; }
  .day-detail-title { margin-bottom: 20px; }
  .week-note { grid-column: 2; grid-row: 3; align-self: end; padding-bottom: 10px; }
  .day-row { min-height: 42px; }
  .highlights-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .highlight { padding: 20px; }
  .footer { align-items: flex-start; gap: 15px; }
  .footer>p:last-child { justify-content: flex-end; text-align: right; max-width: 225px; }
}
@media (max-width: 760px) {
  body { display: flex; flex-direction: column; }
  .app-shell { margin-left: 0; order: 1; }
  .sidebar { display: block; position: relative; order: 2; width: auto; inset: auto; margin: 0 22px 24px; padding: 20px; border: 1px solid var(--line); border-top-color: var(--glass-edge); border-radius: 20px; overflow: hidden; background: var(--glass); z-index: 2; }
  .sidebar>.brand, .sidebar-heading, .nav-links, .sidebar-note, .sidebar-bottom { display: none; }
  .saved-heading { margin: 0 0 13px; }
  .saved-heading h2 { font-size: 12px; color: var(--ink); }
  .empty-saved { padding: 0; max-width: none; font-size: 12px; }
  .saved-cities { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .saved-city { flex: 0 0 155px; background: var(--inset); border-color: var(--line); }
  .topbar { min-height: 116px; padding: 17px 22px; display: grid; grid-template-columns: 1fr auto; gap: 14px 12px; }
  .mobile-brand { display: flex; align-items: center; font: 750 22px Manrope,sans-serif; letter-spacing: -1px; gap: 7px; }
  .mobile-brand>span { background: linear-gradient(145deg,#72caff7a,#1371bb); padding: 6px; border: 1px solid #abe6ff59; border-radius: 10px; color: #fff; box-shadow: inset 0 1px 1px #c5efff70; }
  .mobile-brand svg { height: 18px; width: 18px; }
  .search { grid-row: 2; grid-column: 1/-1; max-width: none; width: 100%; height: 44px; }
  .toolbar-actions { grid-row: 1; grid-column: 2; gap: 10px; }
  .location-button>span:last-child { max-width: none; white-space: nowrap; font-size: 10px; }
  .unit-controls { padding: 3px; }
  .unit-controls button { width: 28px; height: 31px; }
  .icon-button { width: 36px; height: 36px; }
  .mobile-nav { display: flex; align-items: center; justify-content: space-between; grid-row: 3; grid-column: 1/-1; padding: 3px 2px 0; font-size: 11px; color: var(--muted); }
  .mobile-nav a { padding: 6px 4px; min-height: 36px; display: flex; align-items: center; }
  .mobile-nav a:hover { color: var(--accent); }
  .mobile-nav a:first-child { color: var(--accent); font-weight: 600; }
  .main-content { padding: 24px 22px 15px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading { margin-bottom: 22px; }
  .eyebrow { font-size: 8px; }
  .place-meta { font-size: 10px; max-width: 360px; }
  .meta-divider { padding: 0 1px; }
  .current-card { padding: 23px 25px 0; }
  .current-body { min-height: 180px; }
  .temperature { font-size: 80px; }
  .current-reading #condition { font-size: 18px; }
  .feels { font-size: 11px; }
  .hero-art { width: 210px; }
  .hero-lens { width: 230px; height: 230px; top: 42px; right: 3px; }
  .current-bottom { margin-left: -25px; margin-right: -25px; padding-left: 25px; padding-right: 25px; }
  .hero-insight { font-size: 12px; margin-bottom: 20px; }
  .current-pill { font-size: 9px; }
  .hourly-card { padding: 23px 22px 12px; }
  .section-heading h2 { font-size: 15px; }
  .chart-tabs button { font-size: 9px; }
  .chart-wrap { height: 125px; }
  .hourly-scroll { gap: 10px; }
  .hour-item { min-width: 53px; }
  .hour-icon svg { width: 33px; height: 33px; }
  .week-card { padding: 23px 20px; }
  .highlights-heading>span { font-size: 10px; }
  .footer { font-size: 8px; }
  .card, .current-card { backdrop-filter: blur(15px) saturate(140%); -webkit-backdrop-filter: blur(15px) saturate(140%); }
  .ambient-orb { filter: blur(55px); }
  .orb-one { width: 320px; height: 320px; right: -100px; top: -60px; }
  .orb-two { width: 350px; height: 350px; left: -170px; }
  .orb-three { display: none; }
}
@media (max-width: 480px) {
  .topbar { padding: 15px 16px; gap: 10px; }
  .toolbar-actions { gap: 6px; }
  .location-button { gap: 4px; }
  .location-button>span:last-child { font-size: 9px; }
  .location-button svg { width: 14px; height: 14px; }
  .theme-button { width: 34px; height: 34px; border-radius: 10px; }
  .theme-button svg { width: 16px; height: 16px; }
  .unit-controls { padding: 2px; }
  .unit-controls button { width: 28px; height: 32px; font-size: 11px; }
  .mobile-brand { font-size: 21px; }
  .mobile-nav { font-size: 10px; }
  .main-content { padding: 23px 16px 12px; }
  .page-heading { align-items: flex-start; gap: 10px; }
  .page-heading h1 { font-size: 28px; max-width: 235px; overflow-wrap: anywhere; }
  .eyebrow { font-size: 7px; letter-spacing: 1.3px; }
  .place-meta { gap: 4px; max-width: 240px; }
  .save-button { font-size: 10px; padding: 9px 10px; margin-top: 15px; gap: 5px; }
  .save-button svg { width: 13px; height: 13px; }
  .current-card { padding: 20px 20px 0; min-height: 285px; }
  .current-heading h2 { font-size: 11px; }
  .current-pill { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 8px; }
  .temperature { font-size: 72px; letter-spacing: -4px; }
  .current-body { min-height: 164px; }
  .hero-art { width: 155px; min-width: 90px; max-width: 44%; }
  .hero-lens { width: 165px; height: 165px; top: 64px; right: -3px; }
  .current-reading #condition { font-size: 16px; }
  .feels { font-size: 10px; }
  .feels-separator { padding: 0 3px; }
  .hero-insight { font-size: 11px; max-width: 100%; }
  .current-bottom { padding: 13px 18px; margin-left: -20px; margin-right: -20px; gap: 7px; flex-wrap: wrap; }
  .current-bottom>div, .current-bottom strong { font-size: 9px; }
  .current-bottom svg { width: 12px; height: 12px; }
  .hourly-card { padding: 21px 16px 11px; }
  .section-heading { gap: 8px; }
  .section-heading h2 { font-size: 13px; }
  .section-heading p { font-size: 9px; }
  .chart-tabs button { font-size: 9px; padding: 5px 6px; }
  .hour-item { min-width: 48px; padding: 8px 4px; }
  .chart-wrap { height: 105px; }
  .week-card { display: flex; padding: 21px 17px 18px; }
  .week-labels { margin-top: 23px; font-size: 7px; }
  .day-row { grid-template-columns: 44px 34px 32px 27px minmax(20px,1fr) 27px; min-height: 48px; gap: 5px; padding: 7px; }
  .day-name, .day-low, .day-high { font-size: 12px; }
  .day-icon svg { width: 32px; height: 32px; }
  .day-rain { font-size: 10px; }
  .day-details { margin-top: 18px; min-height: 126px; padding: 16px; align-self: stretch; }
  .day-detail-grid { gap: 14px; }
  .day-detail-title { margin-bottom: 12px; }
  .week-note { align-self: center; padding-top: 14px; padding-bottom: 0; }
  .highlights-heading { margin-top: 26px; }
  .highlights-heading h2 { font-size: 16px; }
  .highlights-heading>span { display: none; }
  .highlights-grid { gap: 12px; }
  .highlight { padding: 17px 14px; min-height: 174px; border-radius: 19px; }
  .highlight h3 { font-size: 11px; gap: 6px; }
  .highlight h3 svg { width: 14px; height: 14px; }
  .metric { font-size: 28px; }
  .metric-note { font-size: 9px; line-height: 1.6; }
  .wind-reading { gap: 3px; }
  .wind-reading .metric { font-size: 20px; max-width: 90px; letter-spacing: -.5px; }
  .compass { width: 47px; height: 47px; font-size: 5px; }
  .compass-needle { height: 31px; top: 7px; width: 6px; left: calc(50% - 3px); }
  .compass i { height: 4px; width: 4px; left: calc(50% - 2px); top: calc(50% - 2px); }
  .compass:before { inset: 6px; }
  .sun-times strong { font-size: 10px; }
  .sun-times span, .sun-card .metric-note { font-size: 8px; }
  .sun-arc { height: 52px; }
  .footer { display: block; padding-top: 21px; }
  .footer>p:last-child { justify-content: flex-start; text-align: left; max-width: none; margin-top: 9px; font-size: 8px; }
  .search-popover { width: 100%; min-width: 0; }
  .search-result { padding: 11px 8px; }
  .result-name { font-size: 12px; }
  .result-region { font-size: 9px; }
  .status-banner { font-size: 10px; padding: 11px; }
  .sidebar { margin: 0 16px 22px; padding: 18px; }
}
@media (max-width: 360px) {
  .location-button { width: 34px; justify-content: center; }
  .location-button>span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .current-card { padding-left: 17px; padding-right: 17px; }
  .current-bottom { margin-left: -17px; margin-right: -17px; }
  .current-pill { max-width: 108px; font-size: 8px; }
  .temperature { font-size: 64px; }
  .hero-art { min-width: 80px; }
  .highlight { padding-left: 12px; padding-right: 12px; }
  .wind-reading .metric { font-size: 18px; }
  .compass { width: 39px; height: 39px; }
  .compass-needle { height: 27px; top: 5px; }
  .day-row { grid-template-columns: 38px 27px 27px 23px minmax(12px,1fr) 23px; gap: 3px; }
  .day-name, .day-low, .day-high { font-size: 11px; }
  .day-rain { font-size: 9px; }
  .chart-tabs button { font-size: 8px; padding: 5px; }
}
@supports not (backdrop-filter: blur(1px)) {
  .card, .sidebar, .topbar { background: var(--fallback); }
}
@media (hover: none), (pointer: coarse) {
  #cursorGlow, #cursorTrail { display: none; }
  .card::before, .current-card::before, .sidebar-note::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #cursorGlow, #cursorTrail { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .card, .sidebar, .topbar { background: var(--fallback); backdrop-filter: none; }
}

/* Airport METAR card */
.metar-card { margin-top: 17px; padding: 23px 24px 22px; }
.flight-category { flex: none; font: 700 12px/1 Manrope, sans-serif; letter-spacing: .8px; padding: 7px 11px; border-radius: 30px; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 14%, transparent); cursor: help; }
.flight-category[data-category='VFR'] { color: #3fbf7f; }
.flight-category[data-category='MVFR'] { color: #4ea6ff; }
.flight-category[data-category='IFR'] { color: #ef6a5e; }
.flight-category[data-category='LIFR'] { color: #d36be0; }
[data-theme='light'] .flight-category[data-category='VFR'] { color: #16804e; }
[data-theme='light'] .flight-category[data-category='MVFR'] { color: #1662b8; }
[data-theme='light'] .flight-category[data-category='IFR'] { color: #c23a2e; }
[data-theme='light'] .flight-category[data-category='LIFR'] { color: #a43bb3; }
.metar-body { margin-top: 18px; display: grid; gap: 16px; }
.metar-body .empty-state { padding: 8px 0; font-size: 12px; }
.metar-station { display: flex; align-items: center; gap: 13px; }
.metar-icao { flex: none; font: 700 13px/1 Manrope, sans-serif; letter-spacing: 1px; color: var(--accent-strong); padding: 10px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--inset); }
.metar-station-copy { display: grid; gap: 2px; min-width: 0; }
.metar-station-copy strong { font-size: 15px; font-weight: 600; }
.metar-when { font-size: 12px; color: var(--muted); }
.metar-when.is-stale { color: #e0a64a; }
.metar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.metar-stat { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--inset); min-width: 0; }
.metar-stat dt { font-size: 11px; color: var(--muted); }
.metar-stat dd { margin: 4px 0 0; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.metar-note { font-size: 12px; color: var(--muted); }
.metar-raw { display: grid; gap: 6px; }
.metar-raw span { font-size: 11px; color: var(--muted); letter-spacing: .4px; }
.metar-raw code { display: block; padding: 11px 13px; border-radius: 12px; border: 1px dashed var(--line); background: var(--inset); font: 12px/1.6 ui-monospace, 'Cascadia Mono', Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 480px) {
  .metar-card { padding: 19px 16px 17px; }
  .metar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metar-stat { padding: 10px 11px; }
  .metar-stat dd { font-size: 13px; }
}
.current-source { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11px; color: #a9c8e6; min-height: 16px; }
.current-source.is-live { color: #d5ecff; }
.current-source.is-live::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: #5fe0a0; box-shadow: 0 0 8px #5fe0a0aa; }
