:root {
  --font-display: 'Sora', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --color-warm: #FF6B6B;
  --color-sunny: #FF8E53;
  --color-windy: #845EF7;
  --color-rainy: #228BE6;
  --color-cold: #B197FC;
  --color-emerald: #12B886;
  --color-text-main: #2b2d42;
  --color-text-sub: #6c757d;
  --card-bg: rgba(255, 255, 255, 0.68);
  --card-border: 1px solid rgba(255, 255, 255, 0.45);
  --card-shadow: 0 18px 50px rgba(43, 45, 66, 0.11), inset 0 1px 0 rgba(255,255,255,.5);
  --card-blur: blur(14px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--color-text-main);
  font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, select, input { font: inherit; }
button { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#weatherBg { position: fixed; inset: 0; z-index: -2; overflow: hidden; transition: background 1.2s ease; }
#weatherBg.clear { background: linear-gradient(145deg, #fff0a8 0%, #ffc68b 45%, #ff9b73 100%); }
#weatherBg.cloudy { background: linear-gradient(145deg, #ded7ff 0%, #b8d5f3 48%, #9dd9ed 100%); }
#weatherBg.rainy { background: linear-gradient(145deg, #a9b8cd 0%, #7187a8 48%, #495e7e 100%); }
#weatherBg.snowy { background: linear-gradient(145deg, #f9fdff 0%, #f5e9f1 50%, #dcd5f5 100%); }
#weatherBg.windy { background: linear-gradient(145deg, #9ce4d5 0%, #85bede 49%, #b6a9ee 100%); }
#weatherBg.night { background: linear-gradient(145deg, #111827 0%, #25305c 52%, #433566 100%); }
.weather-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -250px; top: -220px; background: rgba(255,255,255,.42); filter: blur(18px); }
.sunny-layer, .cloudy-layer, .rainy-layer, .snowy-layer, .windy-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.clear .sunny-layer, .cloudy .cloudy-layer, .rainy .rainy-layer, .snowy .snowy-layer, .windy .windy-layer { opacity: 1; }
.sun-orb { position: absolute; width: 170px; height: 170px; right: -36px; top: 100px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff9c4, #ffd166 60%, rgba(255,177,69,.3)); box-shadow: 0 0 80px #ffe87c; opacity: .6; }
.cloudy-layer span { position: absolute; width: 230px; height: 65px; border-radius: 100px; background: rgba(255,255,255,.24); filter: blur(2px); }
.cloudy-layer span:nth-child(1) { left: -70px; top: 16%; }
.cloudy-layer span:nth-child(2) { right: -80px; top: 38%; transform: scale(.7); }
.cloudy-layer span:nth-child(3) { left: 20%; bottom: 8%; transform: scale(.5); }
.rain-drop { position: absolute; top: -40px; width: 2px; height: 24px; border-radius: 2px; background: rgba(255,255,255,.55); transform: rotate(15deg); animation: fall linear infinite; }
.snowflake { position: absolute; top: -30px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.82); box-shadow: 0 0 8px rgba(255,255,255,.5); animation: drift linear infinite; }
.wind-line { position: absolute; left: -35%; width: 35%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7)); animation: blow 4s ease-in-out infinite; }
.wind-line:nth-child(1) { top: 25%; animation-delay: -.5s; }
.wind-line:nth-child(2) { top: 48%; width: 48%; animation-delay: -2.1s; }
.wind-line:nth-child(3) { top: 72%; width: 28%; animation-delay: -3.2s; }
@keyframes fall { to { transform: translate(130px, 115vh) rotate(15deg); } }
@keyframes drift { 0% { transform: translate(0,-20px) rotate(0); } 50% { transform: translate(25px,55vh) rotate(180deg); } 100% { transform: translate(-15px,110vh) rotate(360deg); } }
@keyframes blow { 0% { transform: translateX(0); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateX(480%); opacity: 0; } }

.app-container { width: min(100%, 480px); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 16px 126px; }
.app-header { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 3px 4px 24px; }
.brand-row { min-width: 0; display: flex; align-items: center; gap: 9px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: white; background: rgba(43,45,66,.85); box-shadow: 0 8px 18px rgba(43,45,66,.2); font-size: 14px; }
h1 { margin: 0; font: 800 clamp(1.42rem, 6vw, 1.8rem)/1 var(--font-display); letter-spacing: -.06em; }
.location-badge { border: 1px solid rgba(255,255,255,.6); padding: 7px 9px 7px 10px; min-height: 40px; max-width: 100%; display: flex; align-items: center; gap: 7px; border-radius: 999px; background: rgba(255,255,255,.52); box-shadow: 0 7px 18px rgba(43,45,66,.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.location-badge:hover { background: rgba(255,255,255,.72); box-shadow: 0 9px 22px rgba(43,45,66,.14); }
.location-badge:active { transform: scale(.98); }
.location-badge:focus-visible { outline: 3px solid rgba(132,94,247,.38); outline-offset: 3px; }
.location-badge svg { width: 16px; height: 16px; stroke-width: 2.2; }
#locationText { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; font-weight: 600; }
.loading-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--color-warm); box-shadow: 0 0 0 0 rgba(255,107,107,.6); animation: pulse 1.5s infinite; }
.loading-dot.loaded { display: none; }
.location-action { width: 31px; height: 28px; flex: 0 0 31px; display: inline-flex; align-items: center; justify-content: flex-end; color: var(--color-windy); border-left: 1px solid rgba(43,45,66,.13); }
.location-action svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.location-badge:hover .location-action svg { transform: rotate(90deg); }
.location-badge.is-loading .location-action { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,107,107,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,107,0); } }

.view { animation: viewIn .5s var(--ease); }
.view[hidden] { display: none; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } }
.glass-card { background: var(--card-bg); border: var(--card-border); box-shadow: var(--card-shadow); backdrop-filter: var(--card-blur); -webkit-backdrop-filter: var(--card-blur); border-radius: 28px; transition: background .6s, color .6s, transform .3s var(--ease); }
.hero-card { position: relative; overflow: hidden; padding: 22px; min-height: 344px; display: flex; flex-direction: column; }
.hero-card::after { content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%; top: -110px; right: -80px; background: rgba(255,255,255,.28); }
.hero-topline { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.eyebrow { color: var(--color-text-sub); text-transform: uppercase; font-size: .68rem; letter-spacing: .14em; font-weight: 700; }
.now-badge { display: flex; align-items: center; gap: 6px; color: var(--color-text-sub); font-size: .73rem; font-weight: 600; }
.now-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-emerald); }
.garment-visual-container { min-height: 124px; padding: 24px 0 15px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.garment-item { width: 68px; height: 68px; display: grid; place-items: center; color: var(--garment-color, var(--color-warm)); background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.72); border-radius: 20px; box-shadow: 0 9px 20px rgba(43,45,66,.09); animation: garmentIn .6s var(--ease) both; }
.garment-item:nth-child(2) { animation-delay: .07s; transform: translateY(-7px); }
.garment-item:nth-child(3) { animation-delay: .14s; }
.garment-item svg { width: 43px; height: 43px; stroke-width: 1.6; }
@keyframes garmentIn { from { opacity: 0; transform: translateY(10px) scale(.86) rotate(-4deg); } }
.hero-copy { margin-top: auto; }
.hero-copy h2, .placeholder-card h2, .section-heading h2 { margin: 0; font: 700 clamp(1.65rem, 8vw, 2.2rem)/1.12 var(--font-display); letter-spacing: -.055em; overflow-wrap: anywhere; }
.hero-copy p { margin: 10px 0 0; color: var(--color-text-sub); font-size: .96rem; line-height: 1.45; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.outfit-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.55); font-size: .74rem; font-weight: 600; }
.outfit-chip svg { width: 14px; height: 14px; }
.later-actions { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.later-button { min-height: 42px; padding: 10px 14px; border: 0; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: white; background: var(--color-text-main); box-shadow: 0 8px 18px rgba(43,45,66,.17); font-size: .73rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
.later-button svg { width: 17px; height: 17px; stroke-width: 2; }
.later-button:hover:not(:disabled) { transform: translateY(-2px); }
.later-button:disabled { opacity: .42; cursor: wait; }
.now-button { padding: 9px 2px; border: 0; color: var(--color-text-sub); background: transparent; font-size: .72rem; font-weight: 700; cursor: pointer; }

.weather-card { margin-top: 14px; padding: 20px 22px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 19px; }
.feels-block { padding-right: 18px; border-right: 1px solid rgba(43,45,66,.1); }
.metric-label { display: block; color: var(--color-text-sub); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.feels-block strong { display: block; margin: 3px 0 -3px; font: 700 clamp(3.5rem, 18vw, 4.8rem)/1 var(--font-display); letter-spacing: -.09em; }
.metric-caption { color: var(--color-text-sub); font-size: .7rem; }
.weather-details { display: grid; gap: 13px; }
.weather-details div { display: flex; flex-direction: column; gap: 1px; }
.weather-details span { color: var(--color-text-sub); font-size: .68rem; }
.weather-details strong { font-size: .93rem; font-weight: 700; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.metric-card { width: 100%; padding: 15px 12px; min-width: 0; color: inherit; border: var(--card-border); text-align: left; cursor: pointer; appearance: none; }
.metric-card:hover { transform: translateY(-3px); }
.metric-card:active { transform: translateY(-1px) scale(.985); }
.metric-card:focus-visible { outline: 3px solid rgba(132,94,247,.38); outline-offset: 3px; }
.metric-card:disabled { cursor: wait; }
.metric-card:disabled:hover { transform: none; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 10px; }
.metric-icon svg { width: 17px; height: 17px; stroke-width: 2; }
.uv-icon { color: #d97706; background: rgba(255,186,73,.2); }
.wind-icon { color: var(--color-windy); background: rgba(132,94,247,.12); }
.rain-icon { color: var(--color-rainy); background: rgba(34,139,230,.12); }
.metric-card > span { display: block; overflow: hidden; color: var(--color-text-sub); font-size: .64rem; white-space: nowrap; text-overflow: ellipsis; }
.metric-card > strong { display: block; margin: 2px 0; font: 700 1.22rem/1.15 var(--font-display); letter-spacing: -.04em; }
.metric-card > small { display: block; overflow: hidden; color: var(--color-text-sub); font-size: .64rem; white-space: nowrap; text-overflow: ellipsis; }
.update-time { min-height: 16px; margin: 11px 8px 0; text-align: center; color: rgba(43,45,66,.58); font-size: .67rem; }

.skeleton-box, .skeleton-line { position: relative; overflow: hidden; background: rgba(255,255,255,.38); }
.skeleton-line { display: block; width: 74%; height: 20px; border-radius: 8px; margin-top: 5px; }
.skeleton-line.wide { width: 90%; height: 31px; }
.skeleton-line.short { width: 48%; }
.skeleton-box::after, .skeleton-line::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent); animation: skeletonWave 1.3s infinite; }
@keyframes skeletonWave { to { transform: translateX(100%); } }

.placeholder-card { padding: 30px 24px; text-align: center; }
.closet-illustration { width: 180px; height: 150px; margin: 0 auto 20px; color: var(--color-windy); }
.closet-illustration svg { width: 100%; height: 100%; stroke-width: 2.2; }
.placeholder-card h2 { margin-top: 8px; }
.placeholder-card > p { color: var(--color-text-sub); line-height: 1.55; }
.feature-list { margin: 25px 0 0; padding: 0; list-style: none; text-align: left; }
.feature-list li { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-top: 1px solid rgba(43,45,66,.09); font-size: .88rem; font-weight: 600; }
.feature-list span { color: var(--color-windy); font: 700 .7rem var(--font-display); }

.section-heading { padding: 4px 4px 19px; }
.section-heading h2 { margin-top: 5px; }
.settings-form { display: grid; gap: 12px; }
.setting-card { padding: 19px; }
.setting-copy h3, .setting-card legend, .select-card b { margin: 0; padding: 0; font: 700 .93rem var(--font-display); letter-spacing: -.03em; }
.setting-copy p, .sensitivity-fieldset > p, .select-card label span { display: block; margin: 4px 0 0; color: var(--color-text-sub); font-size: .76rem; }
.setting-card:first-child { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.unit-toggle { position: relative; width: 112px; height: 42px; flex: 0 0 auto; padding: 4px; border: 0; border-radius: 999px; display: flex; align-items: center; justify-content: space-around; background: rgba(43,45,66,.09); cursor: pointer; }
.unit-toggle i { position: absolute; left: 4px; width: 52px; height: 34px; border-radius: 999px; background: white; box-shadow: 0 4px 12px rgba(43,45,66,.12); transition: transform .35s var(--ease); }
.unit-toggle:not(.celsius) i { transform: translateX(52px); }
.unit-toggle span { z-index: 1; width: 50%; font-size: .76rem; font-weight: 700; }
.sensitivity-fieldset { border: var(--card-border); margin: 0; }
.sensitivity-fieldset legend { float: left; width: 100%; margin: 0; }
.sensitivity-fieldset > p { clear: both; padding-top: 4px; }
.radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 16px; }
.radio-grid label { cursor: pointer; }
.radio-grid input { position: absolute; opacity: 0; pointer-events: none; }
.radio-grid label > span { min-height: 60px; padding: 10px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(43,45,66,.1); border-radius: 15px; text-align: center; transition: .2s ease; }
.radio-grid input:checked + span { color: var(--color-windy); border-color: rgba(132,94,247,.5); background: rgba(132,94,247,.1); box-shadow: inset 0 0 0 1px rgba(132,94,247,.15); }
.radio-grid b { font-size: .7rem; }
.radio-grid small { margin-top: 3px; color: var(--color-text-sub); font-size: .58rem; }
.select-card label { display: block; margin-bottom: 13px; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; padding: 12px 38px 12px 13px; color: var(--color-text-main); border: 1px solid rgba(43,45,66,.12); border-radius: 14px; outline: none; appearance: none; background: rgba(255,255,255,.42); }
.select-wrap svg { position: absolute; right: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; }
.save-feedback { min-height: 18px; margin: 0; color: var(--color-emerald); text-align: center; font-size: .75rem; font-weight: 600; }

.later-dialog { position: fixed; inset: auto 12px max(14px, env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 456px); max-height: min(72vh, 600px); margin: auto; padding: 13px 20px 24px; color: var(--color-text-main); border: 1px solid rgba(255,255,255,.72); border-radius: 28px; background: rgba(248,250,252,.94); box-shadow: 0 30px 80px rgba(30,41,59,.32); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); overflow: auto; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .25s ease, transform .35s var(--ease), display .35s allow-discrete, overlay .35s allow-discrete; }
.later-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
.later-dialog::backdrop { background: rgba(20,25,45,.42); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease, display .3s allow-discrete, overlay .3s allow-discrete; }
.later-dialog[open]::backdrop { opacity: 1; }
@starting-style { .later-dialog[open] { opacity: 0; transform: translateY(24px) scale(.98); } .later-dialog[open]::backdrop { opacity: 0; } }
.dialog-handle { width: 42px; height: 4px; margin: 0 auto 16px; border-radius: 99px; background: rgba(43,45,66,.16); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { margin: 5px 0 0; font: 700 1.45rem/1.15 var(--font-display); letter-spacing: -.05em; }
.dialog-close { width: 36px; height: 36px; flex: 0 0 auto; border: 0; border-radius: 50%; color: var(--color-text-sub); background: rgba(43,45,66,.07); font-size: 1.45rem; line-height: 1; cursor: pointer; }
.later-dialog > p { margin: 12px 0 18px; color: var(--color-text-sub); font-size: .84rem; }
.hour-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hour-option { min-width: 0; padding: 11px 5px; border: 1px solid rgba(43,45,66,.1); border-radius: 15px; color: var(--color-text-main); background: rgba(255,255,255,.72); text-align: center; cursor: pointer; transition: .2s ease; }
.hour-option:hover, .hour-option.selected { color: white; border-color: var(--color-text-main); background: var(--color-text-main); transform: translateY(-2px); }
.hour-option span, .hour-option small { display: block; }
.hour-option span { font-weight: 700; }
.hour-option small { margin-top: 3px; overflow: hidden; color: inherit; opacity: .68; font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.metric-dialog { overflow: visible; }
.metric-dialog-heading { display: flex; align-items: center; gap: 12px; }
.metric-modal-icon { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: var(--metric-accent, var(--color-windy)); background: color-mix(in srgb, var(--metric-accent, var(--color-windy)) 13%, transparent); }
.metric-modal-icon svg { width: 25px; height: 25px; stroke-width: 2; }
.metric-modal-value { margin: 22px 0 13px; display: flex; align-items: baseline; gap: 10px; }
.metric-modal-value strong { font: 700 clamp(2.7rem, 14vw, 4rem)/1 var(--font-display); letter-spacing: -.08em; }
.metric-modal-value span { color: var(--color-text-sub); font-size: .86rem; font-weight: 700; }
.later-dialog .metric-summary { margin: 0; color: var(--color-text-sub); font-size: .9rem; line-height: 1.5; }
.metric-advice { margin-top: 18px; padding: 15px; display: flex; align-items: flex-start; gap: 11px; border-radius: 18px; color: var(--color-text-main); background: color-mix(in srgb, var(--metric-accent, var(--color-windy)) 11%, white); }
.metric-advice > span { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--metric-accent, var(--color-windy)); font-size: .68rem; }
.metric-advice b { font: 700 .78rem var(--font-display); }
.metric-advice p { margin: 4px 0 0; color: var(--color-text-sub); font-size: .78rem; line-height: 1.4; }

.nav-pill { position: fixed; z-index: 20; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 32px), 420px); height: 72px; padding: 7px; display: grid; grid-template-columns: repeat(2, 1fr); background: rgba(255,255,255,.77); border: 1px solid rgba(255,255,255,.7); border-radius: 9999px; box-shadow: 0 18px 50px rgba(43,45,66,.22); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.dormant-feature { display: none !important; }
.nav-item { position: relative; border: 0; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--color-text-sub); background: transparent; cursor: pointer; transition: .3s var(--ease); }
.nav-item svg { width: 20px; height: 20px; stroke-width: 1.9; }
.nav-item span { font-size: .65rem; font-weight: 600; }
.nav-item.active { color: white; background: var(--color-text-main); box-shadow: 0 7px 16px rgba(43,45,66,.22); transform: translateY(-1px); }

#weatherBg.night ~ .app-container, #weatherBg.night ~ .app-container .eyebrow, #weatherBg.night ~ .app-container .metric-label, #weatherBg.night ~ .app-container .hero-copy p, #weatherBg.night ~ .app-container .weather-details span, #weatherBg.night ~ .app-container .metric-card > span, #weatherBg.night ~ .app-container .metric-card > small, #weatherBg.night ~ .app-container .metric-caption, #weatherBg.night ~ .app-container .now-badge, #weatherBg.night ~ .app-container .setting-copy p, #weatherBg.night ~ .app-container .sensitivity-fieldset > p, #weatherBg.night ~ .app-container .select-card label span, #weatherBg.night ~ .app-container .placeholder-card > p { color: #f3f4f6; }
#weatherBg.night ~ .app-container .glass-card { background: rgba(30,41,59,.7); border-color: rgba(255,255,255,.12); box-shadow: 0 18px 50px rgba(0,0,0,.24); }
#weatherBg.night ~ .app-container .garment-item, #weatherBg.night ~ .app-container .outfit-chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); }
#weatherBg.night ~ .app-container .now-button { color: rgba(255,255,255,.72); }
#weatherBg.night ~ .app-container .feels-block, #weatherBg.night ~ .app-container .feature-list li { border-color: rgba(255,255,255,.1); }
#weatherBg.night ~ .app-container .update-time { color: rgba(255,255,255,.58); }

@media (min-width: 700px) {
  .app-container { padding-top: 38px; }
  .app-header { flex-direction: row; justify-content: space-between; align-items: center; gap: 9px; }
  .brand-row { flex: 1 1 auto; }
  .brand-row h1 { font-size: 1.45rem; white-space: nowrap; }
  .location-badge { max-width: 190px; flex: 0 1 auto; }
}
@media (max-width: 360px) {
  .app-container { padding-inline: 10px; }
  .hero-card { padding: 19px; }
  .garment-visual-container { gap: 10px; }
  .garment-item { width: 61px; height: 61px; }
  .weather-card { padding-inline: 17px; gap: 13px; }
  .feels-block { padding-right: 12px; }
  .metric-card { padding-inline: 9px; }
  .radio-grid { grid-template-columns: 1fr; }
  .radio-grid label > span { min-height: 48px; }
  .hour-options { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
  .hero-copy h2 { font-size: clamp(1.58rem, 8.4vw, 1.92rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
