/* Stitch project 10523118221126758140 — functional mobile layout overrides. */
:root {
  --bg: #f0f6fc;
  --panel: #ffffff;
  --panel2: #f4f8fd;
  --line: #e2edf8;
  --muted: #64748b;
  --text: #0f1b2d;
  --sun: #f59e0b;
  --mint: #10b981;
  --blue: #1765d3;
  --sky: #1765d3;
  --danger: #ef4444;
  --heat: #f97316;
  --shadow: 0 8px 24px rgba(29, 78, 135, .06);
}

body {
  background: var(--st-bg, linear-gradient(180deg, #f0f6fc 0%, #ebf3fa 100%));
  color: var(--text);
  font-family: "DM Sans", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  /* Keep the browser's native pull-to-refresh gesture available at page top. */
  overscroll-behavior-y: auto;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 21px;
  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;
}

.content-bound { width: min(880px, calc(100% - 40px)); }
#view-map.content-bound, .status-footer.content-bound { width: min(1180px, calc(100% - 44px)); }
.topbar { background: var(--st-header, rgba(255, 255, 255, .96)); box-shadow: 0 2px 16px rgba(29, 78, 135, .04); }
.nav-button:hover, .nav-button.active { background: rgba(37, 137, 245, .09); color: var(--st-accent, #2589f5); }
.location-button, .icon-button { background: var(--st-surface, #fff); border-color: var(--st-line, #e2edf8); }
.location-button { min-height: 44px; }
.material-button { display: grid; place-items: center; }
.glass-card, .stitch-card {
  background: var(--st-surface, rgba(255, 255, 255, .96));
  border: 1px solid var(--st-line, #e2edf8);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.intro { width: min(880px, calc(100% - 40px)); padding: 32px 0 22px; }
.intro h1 { font-size: 30px; font-weight: 600; }
.intro h1 em, .brand-accent { color: #9dcaff; }
.section-overline, .eyebrow { color: var(--st-green-ink); letter-spacing: .08em; }
.screen { padding-bottom: 36px; }
.today-layout { display: flex; flex-direction: column; gap: 16px; }

.hero-weather {
  min-height: 0;
  padding: 22px 20px 18px;
  background:
    radial-gradient(circle at 84% 8%, rgba(246, 184, 75, .16), transparent 31%),
    radial-gradient(circle at 8% 48%, rgba(75, 169, 255, .13), transparent 36%),
    linear-gradient(180deg, rgba(32, 59, 105, .62), rgba(28, 42, 66, .45) 55%, rgba(17, 32, 55, .82));
}
.hero-weather::before { display: none; }
.hero-head h2 { margin: 7px 0 0; font-size: 16px; font-weight: 500; color: #c0c7d3; }
.model-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 8px; background: rgba(1,14,37,.48); font-size: 11px; color: #c0c7d3; }
.model-chip i { width: 7px; height: 7px; border-radius: 50%; background: #21b99a; box-shadow: 0 0 0 3px rgba(33,185,154,.12); }
.ghost-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: rgba(255,255,255,.05); }
.weather-core { justify-content: center; flex-wrap: wrap; margin: 10px 0 12px; gap: 10px; text-align: center; }
.giant-icon { flex-basis: 100%; font-size: 78px; height: 84px; filter: drop-shadow(0 8px 24px rgba(246,184,75,.27)); }
.temperature { margin-left: 34px; }
.temperature strong { font-size: 72px; line-height: 1; font-weight: 200; letter-spacing: -.04em; }
.temperature > span { font-size: 30px; color: #9dcaff; }
.condition-block { margin-left: 0; min-width: 118px; align-items: flex-start; text-align: left; }
.condition-block b { font-size: 18px; font-weight: 600; }
.condition-block span { color: #c0c7d3; }
.temperature-range { justify-content: center; background: rgba(39,53,77,.62); border-radius: 999px; padding: 7px 13px; width: max-content; max-width: 100%; margin: 0 auto 16px; }
.temperature-range .high-temp { color: #ffb47e; }
.temperature-range .low-temp { color: #9dcaff; }
.temperature-range b { color: inherit; font-size: 13px; }
.weather-metrics { gap: 8px; margin: 0; padding: 0; border: 0; }
.weather-metrics > div { border: 0; background: rgba(1,14,37,.44); border-radius: 10px; padding: 11px 5px; }
.weather-metrics img { display: block; width: 24px; height: 24px; margin: 0 auto 3px; }
.weather-metrics p { margin: 0; color: #c0c7d3; }
.weather-metrics b { font-size: 13px; font-weight: 600; }
.sun-strip { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 11px; color: #c0c7d3; font-size: 12px; }
.sun-strip .material-symbols-outlined { color: #f6b84b; font-size: 18px; }
.notice-strip { margin-top: 11px; background: rgba(75,169,255,.08); color: #c0c7d3; }

.air-summary { width: 100%; border: 0; color: inherit; padding: 14px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto 20px; align-items: center; gap: 10px; text-align: left; }
.air-summary-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(33,185,154,.15); color: #54dcbb; }
.air-summary-copy { min-width: 0; }
.air-summary-copy small, .air-summary-copy strong { display: block; }
.air-summary-copy small { font-size: 11px; color: #c0c7d3; }
.air-summary-copy strong { margin-top: 2px; font-size: 15px; font-weight: 500; }
.air-summary-copy > span { display: block; margin-top: 3px; color: #c0c7d3; font-size: 11px; line-height: 1.35; }
.air-summary-grade.good { color: #54dcbb; }
.air-summary-grade.bad, .air-summary-grade.very-bad { color: #ff9852; }
.air-summary-values { display: flex; gap: 6px; }
.air-summary-values > span { padding: 4px 7px; border-radius: 7px; background: rgba(33,185,154,.12); color: #9ce7d6; font-size: 10px; white-space: nowrap; }
.air-summary-values b { margin-left: 2px; font-size: 13px; }
.air-summary-values small { display: block; margin-top: 1px; font-size: 8px; opacity: .72; text-align: right; }
.air-summary-values > span + span { background: rgba(246,184,75,.12); color: #ffd28a; }
.air-summary-arrow { color: #8a919d; }

.briefing-board { grid-template-columns: 1fr; gap: 12px; margin: 0; }
.briefing-main { padding: 20px; border-radius: 12px; background: linear-gradient(145deg, #1c2a42, #112037 70%, #010e25); }
.briefing-main::before { display: none; }
.briefing-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #4ba9ff, #54dcbb, #21b99a); }
.briefing-main h2 { font-size: 20px; font-weight: 600; }
.briefing-headline { color: #9dcaff; }
.briefing-main p#briefingText { font-size: 15px; line-height: 1.65; }
.briefing-aside { padding: 18px; border-radius: 12px; background: rgba(13,27,51,.86); }
.briefing-freshness { max-width: 152px; overflow: hidden; text-overflow: ellipsis; }

.decision-card { border-radius: 12px; border-color: rgba(255,255,255,.06); padding: 20px; background: linear-gradient(145deg, rgba(28,42,66,.96), rgba(13,27,51,.98)); }
.decision-head h2 { font-size: 20px; font-weight: 600; }
.decision-mark { color: #8a919d; }
.quick-item { background: rgba(255,255,255,.04); border: 0; min-height: 62px; }
.quick-badge { background: rgba(33,185,154,.17); color: #54dcbb; }
.quick-badge.warn { background: rgba(246,184,75,.16); color: #f6b84b; }
.quick-badge.bad { background: rgba(233,97,97,.16); color: #ffaaa4; }
.quick-badge.unknown { background: rgba(123,142,163,.16); color: var(--st-muted); }
.decision-foot { border-color: rgba(255,255,255,.08); }
.text-link { color: #9dcaff; }

.today-hourly, .weekly-preview-card, .week-list-card, .weekly-checklist { padding: 17px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.card-heading h2 { margin: 2px 0 0; font-size: 16px; font-weight: 600; }
.today-hourly-list { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 3px; }
.today-hour-card { min-width: 68px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 7px; border-radius: 10px; color: #c0c7d3; background: rgba(255,255,255,.03); }
.today-hour-card.now { background: rgba(75,169,255,.14); color: #d7e3ff; box-shadow: inset 0 0 0 1px rgba(157,202,255,.25); }
.today-hour-card > span, .today-hour-card small { font-size: 10px; }
.today-hour-card > b { font-size: 25px; }
.today-hour-card > strong { font-size: 14px; }
.today-hour-card small { color: #9dcaff; }
.weekly-preview-card .weekly-strip { margin: 0; }
.alert-cta { width: 100%; border: 0; color: inherit; padding: 15px; display: grid; grid-template-columns: 40px 1fr 22px; gap: 12px; align-items: center; text-align: left; }
.alert-cta-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(75,169,255,.14); color: #9dcaff; }
.alert-cta strong, .alert-cta small { display: block; }
.alert-cta strong { font-size: 14px; }
.alert-cta small { color: #c0c7d3; font-size: 11px; margin-top: 3px; }

.page-header { padding: 8px 0 18px; }
.page-header h2 { font-size: 26px; font-weight: 600; }
.hourly-insight { margin-top: 0; }
.insight-window { border-radius: 12px; background: rgba(17,32,55,.88); }
.rain-tabs { background: rgba(1,14,37,.7); border-radius: 12px; padding: 4px; display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
.rain-tabs button { border: 0; border-radius: 8px; background: transparent; padding: 9px 3px; white-space: nowrap; }
.rain-tabs button.active { background: #27354d; color: #9dcaff; }
.rain-headline { background: rgba(67,111,173,.17); border-color: rgba(157,202,255,.18); }
.hourly-panel { margin: 16px 0; border-radius: 12px; background: rgba(17,32,55,.88); }
.hourly-alert { margin: 0 0 28px; }
.official-warning { background: rgba(246,184,75,.08); border-color: rgba(246,184,75,.22); }

.weekly-insight-banner { position: relative; overflow: hidden; padding: 17px; margin-bottom: 14px; background: linear-gradient(145deg, #1c2a42, #112037); }
.weekly-insight-banner::after { content: ""; position: absolute; width: 120px; height: 120px; right: -35px; bottom: -55px; border-radius: 50%; background: rgba(75,169,255,.10); filter: blur(20px); }
.banner-label { display: flex; align-items: center; gap: 6px; color: #f6b84b; font-size: 12px; font-weight: 600; }
.banner-label .material-symbols-outlined { font-variation-settings: "FILL" 1; }
.weekly-insight { margin-top: 8px; display: block; color: #d7e3ff; }
.weekly-insight p { margin: 0 0 5px; font-size: 17px; line-height: 1.45; }
.weekly-insight small { color: #c0c7d3; line-height: 1.5; }
.week-grid { display: flex; flex-direction: column; gap: 5px; }
.week-row { background: rgba(255,255,255,.035); border-radius: 9px; overflow: hidden; }
.week-row-button { width: 100%; min-height: 58px; border: 0; background: transparent; color: inherit; padding: 8px; display: grid; grid-template-columns: 68px 40px minmax(0,1fr) 22px; align-items: center; gap: 7px; text-align: left; }
.week-row-day b, .week-row-day small { display: block; }
.week-row-day b { font-size: 13px; }
.week-row:first-child .week-row-day b { color: #9dcaff; }
.week-row-day small { margin-top: 2px; color: #7eb6ef; font-size: 10px; }
.week-row-icon { font-size: 24px; text-align: center; }
.week-range-bar { display: grid; grid-template-columns: 30px minmax(50px,1fr) 30px; align-items: center; gap: 6px; }
.week-range-bar small, .week-range-bar strong { font-size: 11px; font-weight: 500; }
.week-range-bar small { color: #c0c7d3; text-align: right; }
.week-range-bar i { height: 7px; border-radius: 99px; background: #27354d; position: relative; overflow: hidden; }
.week-range-bar em { position: absolute; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, #4ba9ff, #ff9852); }
.week-chevron { color: #8a919d; transition: transform .2s; }
.week-row-button[aria-expanded="true"] .week-chevron { transform: rotate(180deg); }
.week-row-detail { padding: 9px 13px 12px; background: rgba(1,14,37,.42); display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; color: #c0c7d3; font-size: 10px; }
.week-row-detail[hidden] { display: none; }
.week-row-detail b { display: block; margin-top: 2px; color: #d7e3ff; font-size: 11px; }
.week-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.mini-stat { padding: 15px; display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: center; }
.mini-stat > .material-symbols-outlined { grid-row: 1 / 3; color: #9dcaff; }
.mini-stat small { color: #c0c7d3; }
.mini-stat strong { margin-top: 2px; font-size: 18px; }
.weekly-checklist { margin-bottom: 24px; }
.weekly-checklist h3 { margin: 0 0 12px; font-size: 15px; }
.weekly-checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: #c0c7d3; font-size: 12px; }
.weekly-checklist li { display: flex; align-items: center; gap: 8px; }
.weekly-checklist .material-symbols-outlined { color: #21b99a; font-size: 18px; }

.activity-filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.activity-filters button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 9px 14px; background: #1c2a42; color: #c0c7d3; font-size: 12px; font-weight: 600; }
.activity-filters button.active { background: #4ba9ff; color: #003257; }
.activity-disclaimer { display: flex; align-items: flex-start; gap: 9px; border-radius: 12px; background: #0d1b33; padding: 11px; color: #c0c7d3; }
.activity-disclaimer .material-symbols-outlined { color: #8a919d; font-size: 19px; }
.activity-disclaimer p { margin: 0; font-size: 11px; line-height: 1.55; }
.activity-summary { margin: 12px 0; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: linear-gradient(145deg, #1c2a42, #0d1b33); }
.activity-summary > div:first-child > span { display: flex; align-items: center; gap: 6px; color: #c0c7d3; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.activity-summary i { width: 7px; height: 7px; border-radius: 50%; background: #21b99a; }
.activity-summary strong, .activity-summary small { display: block; }
.activity-summary strong { margin-top: 4px; font-size: 16px; }
.activity-summary small { margin-top: 2px; color: #9dcaff; font-size: 11px; }
.activity-summary > div:last-child { white-space: nowrap; }
.activity-summary > div:last-child b { color: #54dcbb; font-size: 36px; }
.activity-feed { display: grid; gap: 10px; }
.activity-feed-card { width: 100%; color: inherit; padding: 15px; display: grid; grid-template-columns: 46px minmax(0,1fr) 54px 18px; align-items: start; gap: 10px; text-align: left; }
.activity-feed-card.selected { box-shadow: inset 0 0 0 1px rgba(157,202,255,.32), var(--shadow); }
.feed-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; background: rgba(75,169,255,.13); font-size: 25px; }
.feed-copy { min-width: 0; }
.feed-copy > span { display: flex; align-items: center; gap: 7px; }
.feed-copy strong { font-size: 14px; }
.feed-grade { border-radius: 999px; padding: 2px 7px; background: rgba(33,185,154,.16); color: #54dcbb; font-size: 9px; font-style: normal; }
.feed-grade.warn { background: rgba(246,184,75,.16); color: #f6b84b; }
.feed-grade.bad { background: rgba(233,97,97,.16); color: #ffaaa4; }
.feed-grade.unknown { background: rgba(123,142,163,.16); color: var(--st-muted); }
.feed-copy small { display: block; margin-top: 3px; color: #c0c7d3; font-size: 10px; }
.feed-copy p { margin: 10px 0 0; color: #c0c7d3; font-size: 11px; line-height: 1.5; }
.score-ring { --score: 0; position: relative; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(#21b99a calc(var(--score) * 1%), rgba(255,255,255,.08) 0); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #17253d; }
.score-ring b, .score-ring small { position: relative; z-index: 1; }
.score-ring b { font-size: 14px; }
.score-ring small { font-size: 8px; color: #c0c7d3; }
.feed-arrow { align-self: center; color: #8a919d; }
.activity-detail-title { margin-top: 26px; }
.activity-grid .glass-card { border-radius: 12px; background: rgba(17,32,55,.88); }
.activity-selector button.active { background: #4ba9ff; border-color: #4ba9ff; color: #003257; }
.score-number { color: #54dcbb; }
.farm-overview, .watch-settings { border-radius: 12px; background: rgba(17,32,55,.88); }
#activityDetailPanel, #watchSettings { scroll-margin-top: 88px; }

.mobile-nav { background: rgba(1,14,37,.93); border-color: rgba(255,255,255,.09); box-shadow: 0 -4px 18px rgba(0,0,0,.22); }
.mobile-nav button { min-height: 52px; color: #8a919d; }
.mobile-nav button .material-symbols-outlined { font-size: 22px; font-variation-settings: "FILL" 0; }
.mobile-nav button.active { color: #9dcaff; }
.mobile-nav button.active .material-symbols-outlined { font-variation-settings: "FILL" 1; }
html[data-stitch-live="true"] .location-button { color: var(--st-fg) !important; }
html[data-stitch-live="true"] .location-button .small-chevron { color: var(--st-muted); }

@media (max-width: 710px) {
  .content-bound, #view-map.content-bound, .status-footer.content-bound { width: calc(100% - 32px); }
  .topbar { height: 70px; }
  .top-inner { padding: max(6px, env(safe-area-inset-top)) 16px 6px; }
  .brand, .desktop-nav { display: none; }
  .top-actions { width: 100%; margin: 0; }
  .location-button { flex: 1; max-width: none; text-align: left; background: rgba(255,255,255,.04); }
  .icon-button { width: 42px; height: 42px; border-radius: 50%; background: transparent; }
  .intro { display: none; }
  #content { padding-top: 14px; padding-bottom: 86px; }
  .screen { padding-bottom: 18px; }
  .hero-weather { padding: 18px 16px 15px; }
  .weather-core { margin-top: 3px; }
  .giant-icon { font-size: 66px; height: 70px; }
  .temperature { margin-left: 18px; }
  .temperature strong { font-size: 60px; }
  .condition-block { min-width: 105px; }
  .weather-metrics { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .weather-metrics > div { padding: 9px 2px; }
  .weather-metrics b { font-size: 11px; }
  .air-summary { grid-template-columns: 34px minmax(0,1fr) auto 16px; padding: 12px; }
  .air-summary-values { flex-direction: column; gap: 3px; }
  .briefing-top { align-items: flex-start; flex-wrap: nowrap; }
  .briefing-freshness { font-size: 9px; }
  .briefing-evidence { grid-template-columns: 1fr 1fr; }
  .weekly-strip { display: flex; overflow-x: auto; }
  .weekly-strip .week-item { min-width: 84px; background: rgba(255,255,255,.035); border: 0; }
  .insight-window { padding: 15px; }
  .rain-tabs button { font-size: 11px; }
  .forecast-day-grid { display: flex; overflow-x: auto; }
  .forecast-day { min-width: 136px; }
  .week-row-detail { grid-template-columns: 1fr 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-feed-card { grid-template-columns: 42px minmax(0,1fr) 50px 15px; padding: 13px; }
  .feed-icon { width: 42px; height: 42px; }
  .feed-copy p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .score-ring { width: 48px; height: 48px; }
  .site-footer > .content-bound { padding-bottom: 96px; }
  .toast { bottom: 82px; }
}

@media (max-width: 390px) {
  .content-bound, #view-map.content-bound, .status-footer.content-bound { width: calc(100% - 24px); }
  .weather-metrics p { font-size: 9px; }
  .air-summary-values { display: none; }
  .air-summary { grid-template-columns: 34px minmax(0,1fr) 16px; }
  .week-row-button { grid-template-columns: 62px 34px minmax(0,1fr) 18px; gap: 4px; }
  .activity-feed-card { grid-template-columns: 40px minmax(0,1fr) 46px; }
  .feed-arrow { display: none; }
  .feed-icon { width: 40px; height: 40px; }
  .score-ring { width: 46px; height: 46px; }
}

html[data-weather-theme="light"] .stitch-card,
html[data-weather-theme="light"] .glass-card,
html[data-weather-theme="light"] .briefing-main,
html[data-weather-theme="light"] .briefing-aside,
html[data-weather-theme="light"] .decision-card,
html[data-weather-theme="light"] .insight-window,
html[data-weather-theme="light"] .hourly-panel,
html[data-weather-theme="light"] .farm-overview,
html[data-weather-theme="light"] .watch-settings {
  background: rgba(255, 255, 255, .96) !important;
  color: #0f1b2d;
  border-color: #e1eaf5 !important;
  box-shadow: 0 12px 34px rgba(20, 57, 112, .08) !important;
}
html[data-weather-theme="light"] .hero-weather {
  background: radial-gradient(circle at 84% 8%, rgba(246,184,75,.18), transparent 31%), linear-gradient(145deg, #dff1ff, #f6fbff 68%, #fff) !important;
}
html[data-weather-theme="light"] .model-chip,
html[data-weather-theme="light"] .weather-metrics > div,
html[data-weather-theme="light"] .quick-item,
html[data-weather-theme="light"] .today-hour-card,
html[data-weather-theme="light"] .week-row,
html[data-weather-theme="light"] .activity-disclaimer,
html[data-weather-theme="light"] .feed-icon {
  background: #f0f6fc;
  color: #0f1b2d;
}
html[data-weather-theme="light"] .temperature-range,
html[data-weather-theme="light"] .sun-strip,
html[data-weather-theme="light"] .notice-strip,
html[data-weather-theme="light"] .air-summary-copy small,
html[data-weather-theme="light"] .air-summary-arrow,
html[data-weather-theme="light"] .decision-mark,
html[data-weather-theme="light"] .quick-main small,
html[data-weather-theme="light"] .today-hour-card,
html[data-weather-theme="light"] .alert-cta small,
html[data-weather-theme="light"] .page-header p,
html[data-weather-theme="light"] .farm-small,
html[data-weather-theme="light"] .insight-footnote,
html[data-weather-theme="light"] .week-row-day small,
html[data-weather-theme="light"] .week-range-bar small,
html[data-weather-theme="light"] .feed-copy small,
html[data-weather-theme="light"] .feed-copy p,
html[data-weather-theme="light"] .activity-disclaimer,
html[data-weather-theme="light"] .activity-summary > div:first-child > span {
  color: #64748b;
}
html[data-weather-theme="light"] .rain-tabs { background: #edf3fa; }
html[data-weather-theme="light"] .rain-tabs button { color: #52657b; }
html[data-weather-theme="light"] .rain-tabs button.active { background: #1d75f0; color: #fff; }
html[data-weather-theme="light"] .rain-dates input,
html[data-weather-theme="light"] .rain-dates button {
  color-scheme: light;
  background: #fff;
  color: #0f1b2d;
  border-color: #c9d8e9;
}
html[data-weather-theme="light"] .rain-dates button { background: #e7f1fc; color: #17467d; }
html[data-weather-theme="light"] .rain-headline { background: #eaf4ff; color: #0f1b2d; border-color: #c2defc; }
html[data-weather-theme="light"] .rain-headline small,
html[data-weather-theme="light"] .rain-headline .insight-small,
html[data-weather-theme="light"] .rain-dates label { color: #52657b; }
html[data-weather-theme="light"] .forecast-span,
html[data-weather-theme="light"] .forecast-day,
html[data-weather-theme="light"] .hourly-items > *,
html[data-weather-theme="light"] .hourly-item { background: #f4f8fd; color: #0f1b2d; border-color: #e1eaf5; }
html[data-weather-theme="light"] .weekly-insight-banner,
html[data-weather-theme="light"] .activity-summary { background: linear-gradient(145deg, #fff, #edf5fd); }
html[data-weather-theme="light"] .week-range-bar i,
html[data-weather-theme="light"] .score-track { background: #dfe8f2; }
html[data-weather-theme="light"] .week-row-detail { background: #edf3fa; color: #64748b; }
html[data-weather-theme="light"] .week-row-detail b,
html[data-weather-theme="light"] .weekly-insight,
html[data-weather-theme="light"] .activity-summary strong,
html[data-weather-theme="light"] .feed-copy strong,
html[data-weather-theme="light"] .score-ring b { color: #0f1b2d; }
html[data-weather-theme="light"] .score-ring::before { background: #fff; }
html[data-weather-theme="light"] .activity-filters button { background: #e9f0f8; color: #52657b; }
html[data-weather-theme="light"] .activity-filters button.active { background: #1d75f0; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .week-chevron { transition: none; }
}

/* Stitch LIGHT fidelity pass: shared rhythm, hierarchy, and newly structured views. */
html[data-weather-theme="light"] {
  --bg: #f0f6fc;
  --panel: #ffffff;
  --panel2: #f4f8fd;
  --line: #e2edf8;
  --muted: #64748b;
  --text: #0f1b2d;
  --blue: #1765d3;
  --sky: #1765d3;
  --mint: #10b981;
  --shadow: 0 8px 24px rgba(29, 78, 135, .06);
}

html[data-weather-theme="light"] body {
  color: var(--text);
  font-family: "DM Sans", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

html[data-weather-theme="light"] h1,
html[data-weather-theme="light"] h2,
html[data-weather-theme="light"] h3,
html[data-weather-theme="light"] .brand,
html[data-weather-theme="light"] .score-number,
html[data-weather-theme="light"] .mini-stat strong,
html[data-weather-theme="light"] .activity-summary b {
  font-family: "Space Grotesk", "DM Sans", Pretendard, sans-serif;
}

html[data-weather-theme="light"] .glass-card,
html[data-weather-theme="light"] .stitch-card,
html[data-weather-theme="light"] .decision-card,
html[data-weather-theme="light"] .briefing-main,
html[data-weather-theme="light"] .briefing-aside,
html[data-weather-theme="light"] .insight-window,
html[data-weather-theme="light"] .hourly-panel,
html[data-weather-theme="light"] .farm-overview,
html[data-weather-theme="light"] .watch-settings,
html[data-weather-theme="light"] .map-shell {
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: var(--shadow) !important;
}

.section-overline,
.eyebrow {
  color: var(--st-green-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
}

.page-header {
  margin-bottom: 16px;
}

.page-header h2 {
  margin: 5px 0 4px;
  font-family: "Space Grotesk", "DM Sans", Pretendard, sans-serif;
  font-size: clamp(27px, 3vw, 32px);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 600;
}

.page-header p {
  max-width: 640px;
  margin: 0;
  line-height: 1.55;
}

#view-weekly .page-header,
#view-activity .page-header,
#view-air .page-header,
#view-map .page-header {
  border-radius: 12px;
  padding: 22px 24px;
}

.card-heading h2 {
  font-family: "Space Grotesk", "DM Sans", Pretendard, sans-serif;
  font-size: 18px;
  line-height: 1.25;
}

/* Hourly: period -> countdown -> insight -> chart -> detail. */
.hourly-period-dock {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: 18px 24px;
  margin: 0 0 14px;
  padding: 18px 20px;
}

.hourly-period-dock .insight-intro h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.hourly-period-dock .insight-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.hourly-period-dock .rain-tabs {
  align-self: center;
  min-height: 44px;
  padding: 4px;
  border-radius: 8px;
}

.hourly-period-dock .rain-tabs button {
  min-height: 34px;
  border-radius: 5px;
  font-weight: 700;
}

.hourly-date-picker {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.hourly-date-picker[hidden] { display: none !important; }

.hourly-date-picker .rain-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

.hourly-date-picker .rain-dates input {
  width: 100%;
  min-width: 0;
}

.hourly-date-picker .rain-dates button {
  min-width: 54px;
  white-space: nowrap;
}

.hourly-countdown-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 20px 22px;
  overflow: hidden;
  color: #fff;
  border-color: transparent !important;
  background: linear-gradient(135deg, #1765d3 0%, #1559b3 70%, #0f478f 100%) !important;
  box-shadow: 0 12px 30px rgba(37, 137, 245, .2) !important;
}

html[data-weather-theme="light"] .hourly-countdown-card {
  color: #fff;
  border-color: transparent !important;
  background: linear-gradient(135deg, #1765d3 0%, #1559b3 70%, #0f478f 100%) !important;
  box-shadow: 0 12px 30px rgba(37, 137, 245, .2) !important;
}

.hourly-countdown-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .15);
  font-size: 34px;
}

.hourly-countdown-copy .section-overline,
.hourly-countdown-copy .section-note {
  color: #fff;
}

.hourly-countdown-copy .rain-headline {
  margin: 3px 0 2px;
  min-height: 0;
  padding: 0;
  display: block;
  color: #fff;
  border: 0;
  background: transparent;
  font-family: "Space Grotesk", "DM Sans", Pretendard, sans-serif;
  font-size: 21px;
  font-weight: 600;
}

.hourly-countdown-copy .rain-headline .insight-icon {
  display: none;
}

.hourly-countdown-copy .rain-headline strong,
.hourly-countdown-copy .rain-headline small,
.hourly-countdown-copy .rain-headline .insight-small {
  color: inherit;
}

html[data-weather-theme="light"] .hourly-countdown-copy .rain-headline strong,
html[data-weather-theme="light"] .hourly-countdown-copy .rain-headline small,
html[data-weather-theme="light"] .hourly-countdown-copy .rain-headline .insight-small {
  color: #fff !important;
}

html[data-weather-theme="light"] .hourly-countdown-copy .rain-headline small,
html[data-weather-theme="light"] .hourly-countdown-copy .rain-headline .insight-small {
  color: #fff !important;
}

html[data-weather-theme="light"] .hourly-countdown-copy .rain-headline {
  color: #fff;
  border: 0;
  background: transparent;
}

.hourly-countdown-copy .section-note {
  margin: 0;
  font-size: 12px;
}

.insight-window .forecast-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* The countdown now lives in its own blue card, so the remaining insight
   content must use the full desktop panel instead of the old split column. */
.hourly-insight .insight-window {
  grid-template-columns: 1fr;
}

.hourly-insight .insight-window > * {
  grid-column: 1;
}

.insight-window .forecast-spans {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f8fd;
}

.insight-window .forecast-spans h3 {
  margin: 4px 0 8px;
  font-size: 15px;
}

.forecast-day-grid {
  margin-top: 14px;
}

.hourly-panel {
  margin: 14px 0;
}

.hourly-detail-card {
  margin: 14px 0;
  padding: 18px;
}

.hourly-detail-rows {
  display: grid;
  gap: 6px;
}

.hourly-detail-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(280px, 1.35fr);
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfe;
}

.hourly-detail-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hourly-detail-main .material-symbols-outlined {
  color: #2589f5;
}

.hourly-detail-main strong,
.hourly-detail-main span {
  display: block;
}

.hourly-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.hourly-detail-metrics span {
  padding: 7px 8px;
  border-radius: 6px;
  background: #eef5fc;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.hour-wind,
.hour-gust {
  font-size: 10px;
  line-height: 1.15;
  color: var(--st-muted);
}

.hour-gust {
  color: #80659a;
}

html[data-weather-theme="dark"] .hour-gust {
  color: #cbb5df;
}

/* Weekly: flatter rows, visible state labels, and a compact circular score. */
.weekly-insight-banner,
.week-list-card,
.weekly-checklist,
.weekly-alert {
  margin-bottom: 14px;
}

html[data-weather-theme="light"] .weekly-insight-banner {
  border-left: 3px solid #f59e0b !important;
  background: linear-gradient(120deg, #fffdf7, #fff 58%, #f2f8fe) !important;
}

.week-list-card {
  padding: 18px;
}

.week-grid {
  gap: 6px;
}

html[data-weather-theme="light"] .week-row {
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  background: #fff !important;
}

.week-row-button {
  min-height: 66px;
  padding: 9px 11px;
}

.week-row-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(37, 137, 245, .09);
  color: #1d75f0;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.week-summary-grid {
  margin: 14px 0;
}

.mini-stat {
  min-height: 88px;
}

.weekend-stat {
  grid-template-columns: 50px minmax(0, 1fr);
}

.mini-score-ring {
  --score: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(#10b981 calc(var(--score) * 1%), #e2edf8 0);
  position: relative;
}

.mini-score-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #fff;
}

/* Activity: consistent feed hierarchy and scan-friendly supporting metrics. */
.activity-filters button {
  min-height: 38px;
}

.activity-summary {
  margin: 12px 0 14px;
}

html[data-weather-theme="light"] .activity-feed-card {
  border-radius: 8px;
  background: #fff !important;
}

.activity-feed-card {
  min-height: 94px;
  align-items: center;
}

.feed-copy p {
  margin-top: 6px;
}

.feed-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.feed-metrics span {
  padding: 3px 6px;
  border-radius: 5px;
  background: #eef5fc;
  color: #52657b;
  font-size: 9px;
  font-weight: 600;
}

.feed-progress {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e2edf8;
}

.feed-progress > i,
.feed-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #2589f5);
}

.activity-detail-title {
  margin-top: 24px;
}

.activity-grid,
.farm-overview,
.watch-settings,
.suitability-panel {
  margin-bottom: 14px;
}

/* Map: keep Leaflet functional while bringing the surrounding UI into the light system. */
html[data-weather-theme="light"] .map-toolbar,
html[data-weather-theme="light"] .map-extra,
html[data-weather-theme="light"] .map-hint {
  color: #0f1b2d;
  border-color: #e2edf8;
  background: #fff !important;
}

html[data-weather-theme="light"] .map-buttons button,
html[data-weather-theme="light"] .map-extra button {
  color: #17467d;
  border-color: #cbdff3;
  background: #eef5fc;
}

html[data-weather-theme="light"] .map-buttons button:hover,
html[data-weather-theme="light"] .map-extra button:hover {
  color: #fff;
  border-color: #2589f5;
  background: #2589f5;
}

.map-shell {
  border-radius: 12px !important;
}

.city-grid {
  gap: 12px;
}

html[data-weather-theme="light"] .city-card {
  color: #0f1b2d;
  border-color: #e2edf8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(29, 78, 135, .05);
}

html[data-weather-theme="light"] .city-card:hover {
  color: #0f1b2d;
  border-color: #b8d5f3;
  background: #f4f8fd;
}

html[data-weather-theme="light"] .city-card .city-desc,
html[data-weather-theme="light"] .map-attribution,
html[data-weather-theme="light"] .map-toolbar-label small,
html[data-weather-theme="light"] .map-hint {
  color: #64748b;
}

/* Common footer/nav rhythm. */
.status-footer {
  margin-top: 42px;
}

.mobile-nav button {
  font-family: "DM Sans", Pretendard, sans-serif;
  font-weight: 600;
}

html[data-weather-theme="light"] .mobile-nav {
  background: rgba(255, 255, 255, .96) !important;
  border-color: #e2edf8 !important;
  box-shadow: 0 -6px 24px rgba(29, 78, 135, .07) !important;
}

html[data-weather-theme="light"] .mobile-nav button {
  color: #7b8ca1 !important;
}

html[data-weather-theme="light"] .mobile-nav button.active {
  color: #2589f5 !important;
}

html[data-weather-theme="dark"] .stitch-card {
  color: #d7e3ff;
  border-color: #27354d;
  background: rgba(17, 32, 55, .94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

html[data-weather-theme="dark"] .insight-window .forecast-spans,
html[data-weather-theme="dark"] .hourly-detail-row,
html[data-weather-theme="dark"] .hourly-detail-metrics span,
html[data-weather-theme="dark"] .feed-metrics span {
  color: #c0c7d3;
  border-color: #27354d;
  background: #172943;
}

html[data-weather-theme="dark"] .mini-score-ring::after {
  background: #112037;
}

html[data-weather-theme="light"] .map-shell .leaflet-container {
  background: #dbeaf6 !important;
}

html[data-weather-theme="dark"] .map-shell .leaflet-container {
  background: #10263e !important;
}

@media (max-width: 920px) {
  .content-bound { width: min(760px, calc(100% - 32px)); }
  .hourly-period-dock { grid-template-columns: 1fr; }
  .hourly-date-picker { grid-column: auto; }

  /* Keep saved places one tap away without letting the switcher dominate
     the compact Stitch header. The source component remains fully usable
     from its management dialog. */
  html[data-stitch-live="true"] #locationQuickBar.location-shortcuts {
    display: flex !important;
    align-items: center;
    gap: 7px;
    width: calc(100% - 24px);
    min-height: 48px !important;
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 6px 8px !important;
    border-radius: 8px;
  }

  html[data-stitch-live="true"] #locationQuickBar .location-switcher-head {
    flex: 0 0 auto;
    gap: 6px;
    padding: 0;
    border: 0;
  }

  html[data-stitch-live="true"] #locationQuickBar .location-switcher-heading {
    font-size: 10px;
  }

  html[data-stitch-live="true"] #locationQuickBar .location-current-label,
  html[data-stitch-live="true"] #locationQuickBar .location-fast-place.active {
    display: none !important;
  }

  html[data-stitch-live="true"] #locationQuickBar .location-fast-items {
    min-width: 0;
    width: auto;
    padding: 0;
    gap: 6px;
  }

  html[data-stitch-live="true"] #locationQuickBar .location-fast-items button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
  }
}

@media (max-width: 710px) {
  .content-bound,
  #view-map.content-bound,
  .status-footer.content-bound {
    width: calc(100% - 32px);
  }

  #content {
    padding-top: 12px;
  }

  .topbar {
    height: calc(64px + env(safe-area-inset-top));
  }

  .top-inner {
    padding: calc(5px + env(safe-area-inset-top)) 16px 5px;
  }

  .location-button {
    background: var(--st-surface);
    color: var(--st-fg);
    border-color: var(--st-line);
  }

  .page-header,
  #view-weekly .page-header,
  #view-activity .page-header,
  #view-air .page-header,
  #view-map .page-header {
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 17px 16px;
  }

  .page-header h2 {
    font-size: 27px;
  }

  .hourly-period-dock {
    gap: 12px;
    margin-bottom: 12px;
    padding: 15px;
  }

  .hourly-countdown-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
  }

  .hourly-countdown-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 27px;
  }

  .hourly-countdown-copy .rain-headline {
    font-size: 18px;
  }

  .insight-window .forecast-rows {
    grid-template-columns: 1fr;
  }

  .hourly-detail-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .week-list-card,
  .weekly-checklist,
  .hourly-detail-card {
    padding: 15px;
  }

  .week-row-button {
    min-height: 62px;
  }

  .activity-feed-card {
    min-height: 88px;
  }

  .status-footer {
    margin-top: 28px;
  }
}

@media (max-width: 390px) {
  .content-bound,
  #view-map.content-bound,
  .status-footer.content-bound {
    width: calc(100% - 24px);
  }

  .rain-tabs button {
    padding-inline: 2px;
    font-size: 10px;
  }

  .hourly-detail-metrics {
    grid-template-columns: 1fr;
  }

  .week-summary-grid {
    grid-template-columns: 1fr;
  }

  .activity-feed-card {
    grid-template-columns: 40px minmax(0, 1fr) 46px;
  }
}

/* Contrast guardrails: light surfaces use ink colors; dark surfaces use luminous
   colors. These rules deliberately cover small labels and data values that must
   remain readable rather than relying on decorative palette colors. */
html[data-weather-theme="light"] .section-overline,
html[data-weather-theme="light"] .eyebrow { color: var(--st-green-ink); }
html[data-weather-theme="light"] .stitch-favourite-button.saved { color: var(--st-amber-ink); }
html[data-weather-theme="light"] .rain-tabs button.active,
html[data-weather-theme="light"] .activity-filters button.active,
html[data-weather-theme="light"] .activity-selector button.active {
  color: #fff;
  border-color: #1765d3;
  background: #1765d3;
}
html[data-weather-theme="light"] .hourly-date-picker summary { color: var(--st-accent-ink); }
html[data-weather-theme="light"] .hour-time,
html[data-weather-theme="light"] .hour-wind,
html[data-weather-theme="light"] .chart-head,
html[data-weather-theme="light"] .legend,
html[data-weather-theme="light"] .forecast-span small,
html[data-weather-theme="light"] .forecast-day > span,
html[data-weather-theme="light"] .forecast-day small { color: #52657b; }
html[data-weather-theme="light"] .hour-rain,
html[data-weather-theme="light"] .forecast-span strong { color: var(--st-accent-ink); }
html[data-weather-theme="light"] .forecast-span.clear strong { color: var(--st-amber-ink); }

html[data-weather-theme="light"] .banner-label { color: var(--st-amber-ink); }
html[data-weather-theme="light"] .weekly-insight,
html[data-weather-theme="light"] .weekly-insight p { color: #0f1b2d; }
html[data-weather-theme="light"] .weekly-insight small,
html[data-weather-theme="light"] .mini-stat small,
html[data-weather-theme="light"] .weekly-checklist ul,
html[data-weather-theme="light"] .weekly-alert small { color: #52657b; }
html[data-weather-theme="light"] .mini-stat > .material-symbols-outlined,
html[data-weather-theme="light"] .week-row-badge { color: var(--st-accent-ink); }
html[data-weather-theme="light"] .week-row:first-child .week-row-day b { color: var(--st-accent-ink); }
html[data-weather-theme="light"] .alert-cta-icon {
  color: var(--st-accent-ink);
  background: #e7f1fc;
}
html[data-weather-theme="light"] .weekly-checklist .material-symbols-outlined { color: var(--st-green-ink); }
html[data-weather-theme="light"] .week-chevron { color: #52657b; }

html[data-weather-theme="light"] .activity-summary > div:first-child > span,
html[data-weather-theme="light"] .activity-summary > div:first-child > small,
html[data-weather-theme="light"] .activity-summary > div:last-child > small { color: #52657b; }
html[data-weather-theme="light"] .activity-summary > div:last-child > b { color: var(--st-green-ink); }
html[data-weather-theme="light"] .feed-grade {
  color: var(--st-green-ink);
  background: #e5f7f1;
}
html[data-weather-theme="light"] .feed-grade.warn {
  color: var(--st-amber-ink);
  background: #fff3d6;
}
html[data-weather-theme="light"] .feed-grade.bad {
  color: var(--st-danger-ink);
  background: #fff0f0;
}
html[data-weather-theme="light"] .score-ring small,
html[data-weather-theme="light"] .score-max,
html[data-weather-theme="light"] .activity-result > p,
html[data-weather-theme="light"] .best-window span,
html[data-weather-theme="light"] .reason-item p,
html[data-weather-theme="light"] .watch-intro,
html[data-weather-theme="light"] .activity-disclaimer,
html[data-weather-theme="light"] .hourly-detail-metrics span { color: #52657b; }
html[data-weather-theme="light"] .activity-disclaimer .material-symbols-outlined,
html[data-weather-theme="light"] .feed-arrow { color: #52657b; }
html[data-weather-theme="light"] .score-max b { color: #0f1b2d; }
html[data-weather-theme="light"] .disclaimer {
  color: #5d4513;
  border: 1px solid #e5c77a;
  background: #fff7e6;
}

html[data-weather-theme="light"] .farm-overview .farm-lead,
html[data-weather-theme="light"] .farm-name,
html[data-weather-theme="light"] .farm-signal p,
html[data-weather-theme="light"] .watch-note { color: #52657b; }
html[data-weather-theme="light"] .farm-signal {
  color: #0f1b2d;
  border-color: #d7e3f0;
  background: #f4f8fd;
}
html[data-weather-theme="light"] .farm-signal.mid {
  border-color: #d6a13b;
  background: #fff8e7;
}
html[data-weather-theme="light"] .farm-signal.high {
  border-color: #e49a9a;
  background: #fff0f0;
}
html[data-weather-theme="light"] .official-warning {
  color: #49380f;
  border-color: #d5ad5d;
  background: #fff8e7;
}
html[data-weather-theme="light"] .official-warning span { color: #49380f; }
html[data-weather-theme="light"] .official-warning a,
html[data-weather-theme="light"] .subtle-link { color: var(--st-accent-ink); }

html[data-weather-theme="light"] .suitability {
  color: #0f1b2d;
  border-color: #cbd9e8;
  background: #f8fbff;
}
html[data-weather-theme="light"] .suitability b { color: #0f1b2d; }
html[data-weather-theme="light"] .suitability span { color: #52657b; }
html[data-weather-theme="light"] .suitability.good {
  border-color: #74cdb8;
  background: #e9f8f4;
}
html[data-weather-theme="light"] .suitability.good b { color: var(--st-green-ink); }
html[data-weather-theme="light"] .suitability.mid {
  border-color: #d6a13b;
  background: #fff8e7;
}
html[data-weather-theme="light"] .suitability.mid b { color: var(--st-amber-ink); }
html[data-weather-theme="light"] .suitability.bad {
  border-color: #e49a9a;
  background: #fff0f0;
}
html[data-weather-theme="light"] .suitability.bad b { color: var(--st-danger-ink); }
html[data-weather-theme="light"] .suitability.unknown { border-color: var(--st-line); background: var(--st-surface-soft); }
html[data-weather-theme="light"] .suitability.unknown b { color: var(--st-muted); }
html[data-weather-theme="light"] .air-grade.good { color: var(--st-green-ink); }
html[data-weather-theme="light"] .air-grade.normal { color: #4d6b1c; }
html[data-weather-theme="light"] .air-grade.bad { color: var(--st-amber-ink); }
html[data-weather-theme="light"] .air-grade.very-bad { color: var(--st-danger-ink); }
html[data-weather-theme="light"] .map-fallback,
html[data-weather-theme="light"] .empty-state { color: #52657b; }

html[data-weather-theme="dark"] .week-row-badge { color: var(--st-accent-ink); }
html[data-weather-theme="dark"] .suitability b { color: #f5f9ff; }
html[data-weather-theme="dark"] .suitability span { color: #c7d7ea; }
html[data-weather-theme="dark"] .suitability.good b { color: var(--st-green-ink); }
html[data-weather-theme="dark"] .suitability.mid b { color: var(--st-amber-ink); }
html[data-weather-theme="dark"] .suitability.bad b { color: var(--st-danger-ink); }
html[data-weather-theme="dark"] .suitability.unknown { border-color: var(--st-line); background: rgba(255,255,255,.03); }
html[data-weather-theme="dark"] .suitability.unknown b { color: var(--st-muted); }
