:root {
  color-scheme: light;
  --navy-950: #071b2a;
  --navy-900: #0b2538;
  --navy-800: #12384f;
  --blue: #1e6e91;
  --blue-bright: #3aa3cb;
  --ice: #dff4fb;
  --ice-strong: #bde7f3;
  --orange: #ed7a3a;
  --orange-soft: #fff0e5;
  --paper: #f4f7f8;
  --card: #ffffff;
  --subtle: #eef3f5;
  --ink: #102533;
  --muted: #586c78;
  --line: #d8e2e6;
  --line-strong: #c5d3d9;
  --green: #1b7a67;
  --green-soft: #e7f5f0;
  --amber: #a46614;
  --amber-soft: #fff5df;
  --red: #a13f3f;
  --red-soft: #fcecec;
  --shadow: 0 18px 44px rgba(9, 35, 51, .09);
  --card-shadow: 0 8px 24px rgba(9, 35, 51, .055);
  --focus: 0 0 0 4px rgba(58, 163, 203, .22);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #08151e;
  --card: #0e202b;
  --subtle: #122a37;
  --ink: #edf7fa;
  --muted: #94aab5;
  --line: #29404c;
  --line-strong: #385462;
  --ice: #153747;
  --ice-strong: #20536a;
  --blue: #87d0ed;
  --orange-soft: #3a261d;
  --green: #76d0b9;
  --green-soft: #163a32;
  --amber: #f0be68;
  --amber-soft: #3b2f19;
  --red: #f09c9c;
  --red-soft: #3b2225;
  --shadow: 0 18px 44px rgba(0, 0, 0, .3);
  --card-shadow: 0 9px 26px rgba(0, 0, 0, .23);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 10; padding: 12px; background: var(--card); color: var(--ink); }
.skip-link:focus { top: 12px; }
button:disabled { cursor: default; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 410px;
  overflow: hidden;
  padding: 52px 28px 170px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 14%, rgba(100, 189, 213, .26), transparent 28%),
    radial-gradient(circle at 12% 115%, rgba(53, 125, 153, .28), transparent 40%),
    linear-gradient(120deg, #071c2c 0%, #0b3047 56%, #123f55 100%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 85%);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  top: -180px;
  right: 6%;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(184, 228, 240, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(189,231,243,.025), 0 0 0 160px rgba(189,231,243,.018);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 54px;
  max-width: 1220px;
  margin: 0 auto;
}
.hero-copy { max-width: 780px; }
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand-mark { position: relative; display: inline-block; width: 36px; height: 28px; }
.brand-mark::before, .brand-mark i, .brand-mark b { content: ""; position: absolute; bottom: 0; width: 0; height: 0; border-style: solid; }
.brand-mark::before { left: 0; border-width: 0 14px 24px; border-color: transparent transparent #9dd8e8; }
.brand-mark i { left: 11px; border-width: 0 12px 19px; border-color: transparent transparent #fff; }
.brand-mark b { left: 21px; border-width: 0 8px 13px; border-color: transparent transparent #4eb2d2; }
.eyebrow, .section-kicker {
  margin: 0;
  color: #9fd5e4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(49px, 7.2vw, 82px);
  line-height: .91;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.hero h1 span { color: #a9deec; }
.lede { max-width: 720px; margin: 23px 0 0; color: #d2e5eb; font-size: clamp(16px, 2vw, 19px); line-height: 1.56; }
.hero-side { display: flex; min-width: 250px; flex-direction: column; align-items: flex-end; gap: 18px; }
.hero-actions { display: flex; align-items: center; gap: 9px; }
.refresh-button, .theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  background: rgba(255,255,255,.09);
  color: #f6fbfd;
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
  transition: .18s ease;
}
.refresh-button { padding: 9px 13px; }
.theme-toggle { padding: 9px 11px; }
.refresh-button:hover, .theme-toggle:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.refresh-button:focus-visible, .theme-toggle:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(117,208,232,.25); }
.refresh-button:disabled { opacity: .65; cursor: wait; }
.refresh-button.refreshing .refresh-icon { animation: spin .8s linear infinite; }
.theme-icon { position: relative; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; }
.theme-icon::after { content: ""; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: #123c51; }
:root[data-theme="dark"] .theme-icon { background: currentColor; }
:root[data-theme="dark"] .theme-icon::after { display: none; }
.origin-card {
  display: flex;
  min-width: 248px;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 13px;
  background: rgba(3, 18, 28, .22);
  backdrop-filter: blur(8px);
}
.origin-pin { position: relative; width: 26px; height: 26px; border: 2px solid #82d6eb; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.origin-pin::after { content: ""; position: absolute; top: 7px; left: 7px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.origin-card div { display: flex; flex-direction: column; }
.origin-card span:not(.origin-pin) { color: #9fc0cc; font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.origin-card strong { font-size: 14px; }
.mountain-line { position: absolute; z-index: 1; bottom: -1px; left: 0; width: 100%; height: 195px; }
.ridge-back { fill: rgba(83, 153, 179, .25); }
.ridge-front { fill: var(--paper); }

main { max-width: 1220px; margin: 0 auto; padding: 0 24px 72px; }
.snapshot {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.45fr;
  overflow: hidden;
  margin-top: -78px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.metric, .sync-state { min-height: 104px; padding: 22px 24px; }
.metric { display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--line); }
.metric-icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--ice); color: var(--blue); font-size: 18px; }
.metric > div, .sync-state > div { display: flex; min-width: 0; flex-direction: column; }
.metric strong { color: var(--navy-800); font-size: 22px; line-height: 1.15; }
:root[data-theme="dark"] .metric strong { color: var(--ink); }
.metric span:not(.metric-icon), .sync-state span { color: var(--muted); font-size: 11px; }
.sync-state { display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-align: right; }
.sync-state strong { font-size: 12px; }
.live-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #31a985; box-shadow: 0 0 0 5px rgba(49,169,133,.12); }
.live-dot.error { background: var(--red); box-shadow: 0 0 0 5px rgba(161,63,63,.12); }

.decision-section, .planner { margin-top: 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.section-kicker { margin-bottom: 5px; color: var(--blue); }
.section-heading h2 { margin: 0; font-size: clamp(27px, 3.5vw, 39px); line-height: 1.08; letter-spacing: -.035em; }
.section-note { max-width: 410px; margin: 0 0 3px; color: var(--muted); font-size: 12px; text-align: right; }
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.decision-card {
  position: relative;
  min-height: 185px;
  overflow: hidden;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}
button.decision-card { width: 100%; color: inherit; cursor: pointer; font: inherit; text-align: left; }
button.decision-card:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--blue-bright); box-shadow: var(--shadow); }
button.decision-card:focus-visible { outline: none; box-shadow: var(--focus); }
.decision-card::after { content: ""; position: absolute; right: -28px; bottom: -42px; width: 125px; height: 125px; border: 24px solid var(--ice); border-radius: 50%; opacity: .54; }
.decision-card.accent { border-color: #9bd5e4; background: linear-gradient(145deg, var(--card), var(--ice)); }
.decision-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.decision-label::before { content: ""; width: 17px; height: 2px; background: currentColor; }
.decision-card h3 { position: relative; z-index: 1; margin: 0; font-size: 22px; letter-spacing: -.025em; }
.decision-card .decision-detail { position: relative; z-index: 1; margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.decision-stat { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 7px; margin-top: 16px; }
.decision-stat strong { font-size: 26px; letter-spacing: -.04em; }
.decision-stat span { color: var(--muted); font-size: 11px; }
.loading-card { background: linear-gradient(90deg, var(--card), var(--subtle), var(--card)); background-size: 220% 100%; animation: shimmer 1.6s infinite linear; }

.alert-section { margin-top: 28px; padding: 18px 20px; border: 1px solid #e7c78d; border-radius: 14px; background: var(--amber-soft); }
.alert-title { display: flex; align-items: center; gap: 10px; }
.alert-title > span { display: inline-flex; width: 23px; height: 23px; align-items: center; justify-content: center; border-radius: 50%; background: var(--amber); color: var(--card); font-size: 12px; font-weight: 900; }
.alert-title h2 { margin: 0; color: var(--amber); font-size: 14px; }
.alerts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; margin-top: 11px; }
.alert-item { color: var(--ink); font-size: 12px; text-decoration-color: rgba(164,102,20,.4); text-underline-offset: 3px; }
.alert-item span { color: var(--amber); font-weight: 800; }

.planner { padding-top: 12px; }
.planner-heading { align-items: center; }
.model-note { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 750; }
.model-note span { color: var(--blue-bright); font-size: 18px; }
.day-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--card);
}
.day-button { min-width: 0; padding: 13px 8px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; text-align: center; }
.day-button:last-child { border-right: 0; }
.day-button span, .day-button strong { display: block; }
.day-button span { font-size: 10px; font-weight: 720; text-transform: uppercase; }
.day-button strong { margin-top: 2px; color: var(--ink); font-size: 15px; }
.day-button:hover { background: var(--subtle); }
.day-button.selected { background: var(--navy-900); color: #a9d8e5; }
.day-button.selected strong { color: #fff; }
.day-button:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--blue-bright); outline-offset: -4px; }

.board-actions { display: flex; align-items: center; gap: 10px; }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--subtle); }
.view-switch button, .calendar-toggle, .calendar-top button, .map-controls button, .map-details-button, #nextSnowButton { min-height: 40px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--card); font-size: 12px; font-weight: 750; cursor: pointer; }
.view-switch button { border: 0; background: transparent; }
.view-switch button[aria-pressed="true"] { color: var(--blue); background: var(--card); box-shadow: var(--card-shadow); }
.board-actions button:focus-visible, .map-panel button:focus-visible, #nextSnowButton:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
.snow-overview { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
.snow-overview p { margin: 0; color: var(--muted); font-size: 13px; }
#nextSnowButton { flex-shrink: 0; color: var(--blue); }
.day-picker { margin-bottom: 9px; }
.snow-indicator, .day-button .snow-indicator { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 22px; margin-top: 7px; padding: 2px 6px; border-radius: 5px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.snow-indicator span { font-size: inherit; text-transform: none; }
.snow-some.snow-indicator { color: var(--blue); background: var(--ice); }
.snow-heavy.snow-indicator { color: #fff; background: #146786; font-weight: 850; }
.snow-none.snow-indicator, .snow-unknown.snow-indicator { color: var(--muted); }
.selected .snow-none.snow-indicator, .selected .snow-unknown.snow-indicator { color: #c1d6df; }
.snow-indicator.is-saved { color: var(--muted); background: var(--subtle); border: 1px dashed var(--line-strong); }
.snow-icon { font-size: 13px; line-height: 1; }
.partial-snow { font-style: normal; }
.snow-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 18px; color: var(--muted); font-size: 10px; }
.legend-heavy { color: #fff; background: #146786; padding: 2px 5px; border-radius: 4px; }
.legend-snow { color: var(--blue); }
.snow-legend .snow-indicator { margin: 0 3px 0 0; }
.calendar-wrap { position: relative; }
.forecast-calendar { position: absolute; z-index: 8; right: 0; top: calc(100% + 9px); width: 350px; max-width: calc(100vw - 26px); max-height: min(680px, 75vh); overflow-y: auto; padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.calendar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calendar-top button { padding: 4px 12px; font-size: 22px; }
.calendar-note { margin: 6px 0 16px; color: var(--muted); font-size: 11px; }
.calendar-month + .calendar-month { margin-top: 20px; }
.calendar-month h3 { margin: 0 0 10px; font-size: 15px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-weekday { padding: 4px; color: var(--muted); text-align: center; font-size: 10px; }
.calendar-day { min-width: 0; min-height: 56px; padding: 4px 1px; border: 1px solid var(--line); border-radius: 7px; background: var(--subtle); color: var(--ink); cursor: pointer; }
.calendar-day strong { display: block; font-size: 12px; }
.calendar-day .snow-indicator { gap: 2px; margin-top: 3px; padding: 3px 1px; font-size: 10px; }
.calendar-day .snow-icon { font-size: 10px; }
.calendar-day:disabled { min-height: 32px; border-color: transparent; color: var(--muted); background: transparent; opacity: .6; cursor: default; }
.calendar-day.selected { background: var(--navy-900); color: #fff; border-color: var(--blue-bright); }
.calendar-day.early-outlook, .map-week-day.early-outlook { border-style: dashed; border-color: var(--muted); }
.calendar-confidence { display: block; color: var(--muted); font-size: 9px; line-height: 1.2; }
.calendar-day.selected .calendar-confidence { color: #c1d6df; }
.forecast-confidence { margin: 8px 0 10px; padding: 8px 11px; border-left: 2px solid var(--blue-bright); border-radius: 3px; background: var(--subtle); color: var(--ink); font-size: 12px; }
.map-panel { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr); margin-top: 20px; border: 1px solid var(--line-strong); border-radius: 15px; overflow: hidden; background: var(--card); }
.map-visual { position: relative; min-width: 0; background: var(--ice); }
.map-toolbar { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px; }
.map-toolbar > div:first-child { display: flex; flex-direction: column; }
.map-toolbar strong { font-size: 13px; }
.map-toolbar span { color: var(--muted); font-size: 10px; }
.map-controls { display: flex; gap: 5px; }
.map-controls button { min-width: 36px; padding: 5px 9px; }
.map-controls button:disabled { opacity: .45; cursor: default; }
.mountain-map { display: block; width: 100%; height: auto; max-height: 560px; aspect-ratio: 720 / 700; }
.map-land path { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-state-labels { fill: var(--muted); opacity: .7; font-size: 17px; font-weight: 750; letter-spacing: 3px; pointer-events: none; }
#mapOrigin { fill: var(--muted); pointer-events: none; }
.map-marker { cursor: pointer; outline: none; }
.map-hit-area { fill: transparent; }
.map-pin { fill: var(--card); stroke: var(--muted); stroke-width: 1.5; }
.map-pin-text { fill: var(--ink); font-weight: 800; pointer-events: none; }
.map-marker.snow-some .map-pin { fill: var(--ice-strong); stroke: var(--blue); }
.map-marker.snow-heavy .map-pin { fill: #146786; stroke: #146786; }
.map-marker.snow-heavy .map-pin-text { fill: #fff; }
.map-marker.is-saved .map-pin { fill: var(--subtle); stroke-dasharray: 3 2; }
.map-marker.is-saved .map-pin-text { fill: var(--muted); }
.map-marker.selected .map-pin { stroke: var(--orange); stroke-width: 3; }
.map-marker:focus-visible .map-pin { stroke: var(--orange); stroke-width: 5; }
.map-credit { margin: 0; padding: 9px 16px; color: var(--muted); font-size: 10px; }
.map-detail { padding: 24px; border-left: 1px solid var(--line); min-width: 0; }
.map-detail > label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; }
#mapMountain { width: 100%; min-height: 42px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--card); font-size: 13px; }
#mapMountain:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
#mapMountainDetail { margin-top: 28px; }
#mapMountainDetail h3 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.03em; }
.map-town { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.map-snow-stat { display: flex; flex-direction: column; gap: 3px; margin-top: 25px; }
.map-snow-stat strong { color: var(--blue); font-size: 44px; line-height: 1.1; }
.map-snow-stat span, .map-window-total, .map-location-note { color: var(--muted); font-size: 11px; }
.map-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin: 22px 0; }
.map-week-day { min-width: 0; padding: 7px 1px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.map-week-day > span:first-child { display: block; }
.map-week-day .snow-indicator { gap: 1px; padding: 2px 1px; font-size: 10px; }
.map-week-day .snow-icon { font-size: 10px; }
.map-week-day.selected { background: var(--navy-900); color: #c1d6df; }
.map-details-button { width: 100%; color: var(--blue); }

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.65fr) repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.filters label { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.filters label > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .035em; }
.filters input[type="search"], .filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.filters select { padding: 8px 28px 8px 10px; }
.filters input[type="search"] { border: 0; background: transparent; padding: 8px 9px 8px 3px; }
.search-field > div { display: flex; min-height: 42px; align-items: center; padding-left: 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper); color: var(--muted); }
.filters select:focus, .search-field > div:focus-within { border-color: var(--blue-bright); box-shadow: var(--focus); }
.favorite-filter { align-self: end; min-height: 42px; flex-direction: row !important; align-items: center; justify-content: center; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper); white-space: nowrap; cursor: pointer; }
.favorite-filter input { accent-color: var(--blue); }
.favorite-filter span { color: var(--ink) !important; }

.status-message { margin-top: 15px; padding: 12px 14px; border: 1px solid var(--amber); border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-size: 12px; }
.results { display: grid; gap: 17px; margin-top: 20px; }
.mountain-card {
  scroll-margin-top: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.mountain-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.mountain-card:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.mountain-identity { min-width: 0; overflow-wrap: anywhere; }
.card-header-actions { flex-shrink: 0; }
.mountain-card.flash { animation: flash-card 1.2s ease; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.mountain-location { margin: 0 0 4px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.mountain-name { margin: 0; font-size: clamp(25px, 3.2vw, 34px); line-height: 1.08; letter-spacing: -.04em; }
.mountain-route { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.card-header-actions { display: flex; align-items: center; gap: 10px; }
.favorite-button { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 21px; }
.favorite-button:hover, .favorite-button[aria-pressed="true"] { border-color: #e6a445; background: var(--amber-soft); color: #c77b13; }
.favorite-button:focus-visible { outline: none; box-shadow: var(--focus); }
.score-badge { display: flex; width: 60px; height: 60px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #98cfde; border-radius: 50%; background: var(--ice); color: var(--blue); }
.score-badge strong { font-size: 21px; line-height: 1; }
.score-badge span { margin-top: 2px; font-size: 8px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--subtle); color: var(--muted); font-size: 9px; font-weight: 820; letter-spacing: .035em; text-transform: uppercase; }
.badge.signal-strong { background: var(--green-soft); color: var(--green); }
.badge.signal-watch { background: var(--amber-soft); color: var(--amber); }
.badge.signal-marginal { background: var(--red-soft); color: var(--red); }
.badge.signal-offseason { background: var(--ice); color: var(--blue); }
.badge.night { background: #262544; color: #bdb9ff; }
.decision-line { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--blue-bright); border-radius: 0 9px 9px 0; background: var(--ice); }
.decision-signal { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--blue-bright); }
.decision-line p { margin: 0; color: var(--ink); font-size: 12px; }

.condition-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); overflow: hidden; margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; }
.condition { display: flex; min-height: 92px; flex-direction: column; justify-content: center; padding: 14px 17px; border-right: 1px solid var(--line); }
.condition:last-child { border-right: 0; }
.condition > span, .condition small { color: var(--muted); font-size: 10px; }
.condition > strong { margin: 2px 0; font-size: 22px; letter-spacing: -.03em; }
.primary-condition { flex-direction: row; align-items: center; justify-content: flex-start; gap: 13px; background: var(--subtle); }
.primary-condition > div { display: flex; flex-direction: column; }
.primary-condition strong { color: var(--blue); font-size: 28px; }
.condition-symbol { display: inline-flex; width: 37px; height: 37px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ice-strong); color: var(--blue); font-size: 19px; }

.road-line { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: center; margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: var(--subtle); }
.road-indicator { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.road-line.caution .road-indicator { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.road-line.high .road-indicator { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.road-line.unknown .road-indicator { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.road-line strong { display: block; font-size: 11px; }
.road-line p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.mountain-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 17px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mountain-facts > div { display: flex; flex-direction: column; padding: 0 13px; border-right: 1px solid var(--line); }
.mountain-facts > div:first-child { padding-left: 0; }
.mountain-facts > div:last-child { border-right: 0; }
.mountain-facts strong { font-size: 14px; }
.mountain-facts span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 17px; }
.official-actions, .drive-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.card-footer a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); font-size: 10px; font-weight: 780; text-decoration: none; }
.card-footer a:hover { border-color: var(--blue); color: var(--blue); }
.card-footer a:focus-visible { outline: none; box-shadow: var(--focus); }
.card-footer .primary-link { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.card-footer .primary-link:hover { background: var(--navy-800); color: #fff; }
.drive-actions a { background: var(--subtle); }

.empty { margin-top: 20px; padding: 55px 20px; border: 1px dashed var(--line-strong); border-radius: 15px; color: var(--muted); text-align: center; }
.empty > span { font-size: 40px; color: var(--blue-bright); }
.empty h2 { margin: 8px 0 4px; color: var(--ink); font-size: 20px; }
.empty p { margin: 0; font-size: 12px; }
.truth-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.truth-strip > div { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 0 23px; border-right: 1px solid var(--line); }
.truth-strip > div:first-child { padding-left: 0; }
.truth-strip > div:last-child { border-right: 0; }
.truth-strip span { color: var(--blue-bright); font-size: 10px; font-weight: 850; }
.truth-strip p { margin: 0; color: var(--muted); font-size: 11px; }
.truth-strip strong { color: var(--ink); }
footer:not(.card-footer) { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 29px max(24px, calc((100% - 1172px) / 2)); border-top: 1px solid var(--line); background: var(--card); color: var(--muted); }
footer:not(.card-footer) strong { color: var(--ink); font-size: 13px; }
footer:not(.card-footer) p { margin: 3px 0 0; font-size: 10px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes flash-card { 0%, 100% { box-shadow: var(--card-shadow); } 35% { box-shadow: 0 0 0 5px rgba(58,163,203,.2), var(--shadow); } }

@media (max-width: 1050px) {
  .snapshot { grid-template-columns: repeat(3, 1fr); }
  .sync-state { grid-column: 1 / -1; min-height: 74px; justify-content: flex-start; border-top: 1px solid var(--line); text-align: left; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .search-field { grid-column: span 2; }
  .favorite-filter { max-width: 150px; }
}

@media (max-width: 790px) {
  .hero { min-height: 460px; padding: 36px 20px 170px; }
  .hero-inner { flex-direction: column; gap: 28px; }
  .hero-side { width: 100%; flex-direction: row-reverse; align-items: center; justify-content: space-between; }
  .origin-card { min-width: 0; }
  .decision-grid { grid-template-columns: 1fr; }
  .decision-card { min-height: 0; }
  .alerts { grid-template-columns: 1fr; }
  .day-picker { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .map-panel { grid-template-columns: 1fr; }
  .map-detail { border-left: 0; border-top: 1px solid var(--line); }
  .map-week { max-width: 440px; }
  .condition-grid { grid-template-columns: repeat(2, 1fr); }
  .condition:nth-child(2) { border-right: 0; }
  .condition:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-footer { align-items: flex-start; flex-direction: column; }
  .truth-strip { grid-template-columns: 1fr; }
  .truth-strip > div { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .truth-strip > div:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .hero { min-height: 500px; padding-inline: 16px; }
  .hero h1 { font-size: clamp(38px, 10vw, 52px); }
  .lede { font-size: 15px; }
  .hero-side { align-items: stretch; flex-direction: column-reverse; }
  .hero-actions { width: 100%; }
  .refresh-button { flex: 1; }
  .origin-card { width: 100%; }
  main { padding: 0 13px 48px; }
  .snapshot { grid-template-columns: 1fr; margin-top: -72px; }
  .metric { min-height: 77px; padding: 16px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sync-state { grid-column: auto; min-height: 67px; border-top: 0; }
  .decision-section, .planner { margin-top: 42px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-note { text-align: left; }
  .planner-heading { position: relative; gap: 16px; }
  .board-actions { width: 100%; justify-content: space-between; }
  .calendar-wrap { position: static; }
  .forecast-calendar { top: 100%; right: 0; }
  .snow-overview { align-items: flex-start; flex-direction: column; }
  .snow-overview p { font-size: 12px; }
  .day-button { padding: 11px 1px; }
  .day-button strong { font-size: 11px; }
  .day-button > span:first-child { font-size: 9px; }
  .day-button .snow-indicator { gap: 2px; padding: 3px 2px; font-size: 10px; }
  .day-button .snow-icon { font-size: 11px; }
  .map-toolbar { padding: 12px; }
  .map-detail { padding: 20px 16px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .favorite-filter { max-width: none; }
  .mountain-card { padding: 18px 15px; }
  .card-header-actions { gap: 5px; }
  .score-badge { width: 54px; height: 54px; }
  .condition { padding: 12px; }
  .primary-condition { gap: 8px; }
  .condition > strong { font-size: 19px; }
  .primary-condition strong { font-size: 23px; }
  .mountain-facts { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .mountain-facts > div:nth-child(2) { border-right: 0; }
  .mountain-facts > div:nth-child(3) { padding-left: 0; }
  .official-actions, .drive-actions { width: 100%; }
  .card-footer a { flex: 1; }
  footer:not(.card-footer) { align-items: flex-start; flex-direction: column; padding-inline: 18px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 42px; }
  .filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Trip planning stays local; provider links are deliberate handoffs. */
#editOrigin { padding: 5px 0; border: 0; color: #bde7f3; background: transparent; text-align: left; cursor: pointer; font-size: 12px; }
#originLabel { max-width: 260px; overflow-wrap: anywhere; }
.trip-planner { margin: 0 0 38px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--card-shadow); scroll-margin-top: 20px; }
.trip-planner > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; list-style: none; }
.trip-planner > summary::-webkit-details-marker { display: none; }
.trip-planner summary .section-kicker { display: block; margin-bottom: 5px; }
#tripSummary { display: block; font-size: 18px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.trip-edit-label { flex-shrink: 0; color: var(--blue); font-size: 12px; font-weight: 750; }
.trip-edit-label::after { content: ' +'; }
.trip-planner[open] .trip-edit-label::after { content: ' −'; }
#tripForm { margin-top: 22px; }
.trip-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.trip-fields label { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.trip-fields .trip-origin-field { grid-column: span 2; }
.trip-fields input, .trip-fields select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 14px; }
.trip-fields input[type="date"] { max-width: 100%; }
#childAgesField { margin: 18px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
#childAgesField legend { color: var(--muted); font-size: 12px; }
.trip-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
.trip-form-actions button, .compare-button, .comparison button, .stay-setup { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 14px; background: var(--card); color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 750; }
.trip-form-actions .trip-apply { border-color: var(--navy-800); color: #fff; background: var(--navy-800); }
#tripFeedback, .trip-note, .trip-privacy { color: var(--muted); font-size: 12px; line-height: 1.6; }
.trip-note { margin: 8px 0; }
.trip-privacy { margin: 12px 0 0; font-size: 11px; }
.trip-error { padding: 12px; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 13px; }
.trip-planner :focus-visible, .comparison :focus-visible, .trip-card-actions :focus-visible, .stay-details :focus-visible, #editOrigin:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.trip-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.compare-button[aria-pressed="true"] { color: var(--green); background: var(--green-soft); border-color: var(--green); }
.compare-jump { font-size: 12px; color: var(--blue); }
.compare-feedback { font-size: 13px; color: var(--blue); }
.compare-feedback:empty { display: none; }
.stay-details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.stay-details > summary { min-height: 38px; padding: 8px 0; color: var(--blue); cursor: pointer; font-size: 13px; font-weight: 750; }
.stay-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 12px; }
.stay-links a, .compare-route { min-height: 32px; padding: 5px 0; color: var(--blue); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.stay-links .hotel-search { padding: 10px 12px; border-radius: 8px; background: var(--ice); text-decoration: none; }
.stay-links .trip-note { margin: 0 0 6px; font-size: 11px; }
.stay-dates { margin: 0; font-size: 12px; font-weight: 750; }
.comparison { margin: 0 0 38px; scroll-margin-top: 20px; }
.compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.compare-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--blue-bright); border-radius: 12px; background: var(--card); overflow-wrap: anywhere; }
.compare-card h3 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.compare-card dl { margin: 18px 0; }
.compare-card dt { margin-top: 12px; font-size: 10px; font-weight: 750; text-transform: uppercase; color: var(--muted); }
.compare-card dd { margin: 4px 0 0; font-size: 14px; font-weight: 700; }
.compare-trip-snow { padding: 12px; border-radius: 8px; color: var(--blue); background: var(--ice); font-size: 12px; }
.compare-card .compare-remove { width: 100%; margin-top: 15px; }
.map-detail > div > .compare-button { margin-top: 10px; width: 100%; }
.drive-origin { overflow-wrap: anywhere; }
.filters select:disabled { opacity: .6; }
@media (max-width: 900px) {
  .trip-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .trip-planner { padding: 18px; }
  .trip-planner > summary { align-items: flex-start; }
  #tripSummary { font-size: 16px; }
  .trip-edit-label { white-space: nowrap; }
  .trip-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trip-fields input, .trip-fields select { font-size: 16px; padding: 8px 6px; }
  .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .comparison .section-heading { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 360px) { .trip-fields .trip-wide-small { grid-column: span 2; } }

/* Compact dashboard: one document scroll, detail only when requested. */
html { scroll-behavior: auto; scrollbar-gutter: stable; }
html.modal-open { overflow: hidden; }
body { font-size: 14px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero { min-height: 0; padding: 18px 24px; background: var(--navy-950); overflow: visible; }
.hero::after { display: none; }
.hero-inner { max-width: 1220px; flex-direction: row; align-items: center; gap: 16px; }
.hero-copy { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hero h1 { font-size: 23px; line-height: 1.15; letter-spacing: -.04em; }
.hero h1 span { color: #bde7f3; }
.hero .eyebrow { margin-top: 5px; font-size: 9px; letter-spacing: .1em; }
.hero-actions { width: auto; flex: 0 0 auto; }
.refresh-button, .theme-toggle { min-height: 38px; padding: 8px 11px; font-size: 11px; }
main { max-width: 1220px; padding: 16px 24px 85px; }
.trip-bar { display: grid; grid-template-columns: 1fr 1.1fr .75fr; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.trip-bar button { position: relative; display: flex; min-width: 0; min-height: 52px; flex-direction: column; justify-content: center; gap: 3px; padding: 7px 32px 7px 15px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.trip-bar button:last-child { border: 0; }
.trip-bar button > span { color: var(--muted); font-size: 10px; font-weight: 500; }
.trip-bar button strong, #tripSummary, #originLabel { display: block; max-width: 100%; font-size: 13px; font-weight: 650; line-height: 1.3; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-bar button b { position: absolute; right: 12px; top: 20px; color: var(--muted); }
.trip-bar #editOrigin { padding: 7px 32px 7px 15px; color: var(--ink); }
.snapshot { grid-template-columns: auto auto auto 1fr; margin: 0; padding: 12px 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
.metric, .sync-state { min-height: 0; padding: 0 18px; border: 0; }
.metric:first-child { padding-left: 0; }
.metric { gap: 7px; }
.metric-icon { width: 24px; height: 24px; border-radius: 6px; font-size: 13px; }
.metric strong { font-size: 15px; }
.metric span:not(.metric-icon), .sync-state span { font-size: 9px; }
.sync-state { grid-column: auto; justify-content: flex-end; text-align: right; gap: 9px; padding-right: 0; }
.sync-state strong { font-size: 10px; }
.live-dot { width: 6px; height: 6px; box-shadow: none; }
.price-overview { margin: 6px 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.price-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.price-heading h2 { margin: 0; font-size: 13px; font-weight: 700; }
.price-heading button { padding: 5px 0; border: 0; background: transparent; color: var(--blue); font-size: 11px; cursor: pointer; }
.price-offers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.price-offer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 12px; min-width: 0; color: inherit; text-decoration: none; }
.price-offer + .price-offer { padding-left: 20px; border-left: 1px solid var(--line); }
.price-offer strong { font-size: 12px; font-weight: 650; }
.price-offer .offer-price { grid-column: 2; grid-row: 1 / 3; font-size: 20px; font-weight: 750; color: var(--blue); letter-spacing: -.03em; white-space: nowrap; }
.offer-price small { font-size: 10px; font-weight: 500; }
.price-offer .offer-detail { color: var(--muted); font-size: 10px; }
.price-note { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.price-offer:hover strong { text-decoration: underline; }
.planner { margin-top: 0; padding-top: 0; }
.section-heading { margin-bottom: 12px; }
.planner-heading { flex-direction: row; align-items: center; gap: 10px; }
.section-heading h2 { font-size: 25px; line-height: 1.2; }
.board-actions { width: auto; gap: 7px; justify-content: flex-end; }
.board-actions > .open-comparison { min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--blue); background: var(--card); font-size: 11px; cursor: pointer; }
.open-comparison:disabled { color: var(--muted); opacity: .65; }
.view-switch { padding: 2px; border-radius: 8px; }
.view-switch button, .calendar-toggle { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.snow-overview { flex-direction: row; align-items: center; margin-bottom: 10px; }
.snow-overview p { font-size: 12px; }
#nextSnowButton { min-height: 30px; padding: 5px 9px; font-size: 11px; }
.day-picker { margin-bottom: 6px; border-radius: 10px; }
.day-button { padding: 9px 5px; }
.day-button strong { font-size: 13px; }
.day-button .snow-indicator { margin-top: 4px; min-height: 18px; }
.snow-legend { margin-bottom: 12px; gap: 4px 10px; font-size: 9px; }
.snow-legend > span:first-child { margin-right: auto; }
.filters { position: relative; grid-template-columns: minmax(0,1fr) minmax(145px,.35fr) auto; gap: 8px; padding: 0; border: 0; background: transparent; align-items: end; }
.search-field { grid-column: auto; }
.filters > label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.filters select, .search-field > div, .filters input[type="search"] { min-height: 38px; border-radius: 8px; font-size: 12px; background: var(--card); }
.filters select { padding: 7px 25px 7px 8px; }
#filterDetails > summary { display: flex; min-height: 38px; align-items: center; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 12px; cursor: pointer; list-style: none; }
#filterDetails > summary::after { content: ' ⌄'; margin-left: 8px; }
.extra-filters { position: absolute; z-index: 6; top: calc(100% + 7px); right: 0; width: 380px; max-width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); }
.favorite-filter { max-width: none; min-height: 38px; }
.decision-section { margin: 10px 0 0; }
.decision-section > summary { width: fit-content; padding: 3px 0; color: var(--muted); font-size: 11px; cursor: pointer; }
.decision-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding-top: 8px; }
.decision-card { min-height: 0; padding: 14px; border-radius: 10px; box-shadow: none; }
.decision-card::after { display: none; }
.decision-label { margin-bottom: 8px; font-size: 9px; letter-spacing: .04em; }
.decision-label::before { display: none; }
.decision-card h3 { font-size: 16px; }
.decision-stat { margin-top: 8px; }
.decision-stat strong { font-size: 18px; }
.results { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px; margin-top: 12px; }
.mountain-card { min-width: 0; padding: 17px; border-radius: 12px; box-shadow: none; transition: border-color .15s; scroll-margin-top: 12px; }
.mountain-card:hover { box-shadow: none; }
.card-header { gap: 10px; align-items: center; }
.mountain-location { font-size: 9px; letter-spacing: .06em; margin-bottom: 3px; }
.mountain-name { font-size: 23px; letter-spacing: -.04em; }
.mountain-route { display: none; }
.card-header-actions { gap: 5px; }
.favorite-button { width: 34px; height: 34px; font-size: 20px; border: 0; }
.score-badge { width: 38px; height: 38px; border: 0; border-radius: 8px; }
.score-badge strong { font-size: 15px; }
.score-badge span { font-size: 6px; }
.condition-grid { grid-template-columns: 1fr 1fr 1fr 1.1fr; margin-top: 16px; overflow: visible; border: 0; border-radius: 0; }
.condition { min-height: 48px; padding: 0 9px; border: 0 !important; border-left: 1px solid var(--line) !important; }
.condition:first-child { padding-left: 0; border-left: 0 !important; }
.condition:last-child { padding-right: 0; }
.condition > strong, .primary-condition strong { font-size: 18px; font-weight: 700; letter-spacing: -.04em; }
.condition > span, .condition small, .primary-condition div > span { font-size: 9px; }
.primary-condition { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; background: transparent; }
.primary-condition div { flex-direction: column-reverse; }
.primary-condition div > span { color: var(--muted); }
.condition-symbol, .condition small, .drive-origin { display: none; }
.drive-condition::before { content: 'Drive'; color: var(--muted); font-size: 9px; }
.condition .drive-value { font-size: 16px; }
.card-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 16px; }
.lodging-price { color: var(--blue); font-size: 11px; text-decoration: none; line-height: 1.4; }
.lodging-price strong { display: block; font-size: 14px; }
.lodging-price span { display: block; color: var(--muted); font-size: 9px; }
.trip-card-actions { margin: 0; gap: 7px; flex-wrap: nowrap; }
.trip-card-actions > a { padding: 6px 0; font-size: 11px; color: var(--muted); text-decoration: none; }
.compare-button { min-height: 34px; padding: 6px 9px; font-size: 10px; border-radius: 7px; }
.compare-jump { display: none; }
.mountain-details { margin-top: 12px; border-top: 1px solid var(--line); }
.mountain-details > summary { display: flex; justify-content: space-between; padding: 10px 0 0; color: var(--muted); font-size: 10px; cursor: pointer; list-style: none; }
.mountain-details[open] > summary span { transform: rotate(45deg); }
.mountain-details-content { padding-top: 5px; }
.mountain-details .badges { margin-top: 10px; }
.mountain-details .card-footer { flex-direction: row; flex-wrap: wrap; gap: 7px; padding-top: 12px; }
.card-footer a { min-height: 34px; }
.mountain-facts { grid-template-columns: repeat(4,minmax(0,1fr)); }
.mountain-facts > div { padding: 0 6px; }
.mountain-facts strong { font-size: 12px; }
.mountain-facts span { font-size: 8px; }
.status-message { margin-top: 10px; font-size: 11px; }
.alert-section { margin: 0 0 15px; padding: 12px 14px; }
.alert-title h2 { font-size: 12px; }
.app-dialog { position: fixed; max-width: calc(100vw - 28px); width: 690px; max-height: calc(100dvh - 48px); margin: auto; padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); overscroll-behavior: contain; }
.app-dialog::backdrop { background: rgba(4,18,28,.55); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.dialog-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.dialog-close { flex: 0 0 auto; width: 36px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--card); font-size: 24px; cursor: pointer; }
.trip-dialog .trip-planner { margin: 0; padding: 0; border: 0; box-shadow: none; }
#tripForm { margin-top: 0; }
.trip-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
.trip-form-actions { margin-top: 18px; }
.compare-dialog { width: 1040px; }
.compare-dialog > .dialog-close { position: absolute; right: 18px; top: 18px; }
.comparison { margin: 0; }
.comparison .section-heading { padding-right: 44px; gap: 12px; }
.comparison h2 { font-size: 24px; }
.comparison .section-kicker { font-size: 9px; }
.comparison #clearComparison { min-height: 32px; font-size: 11px; padding: 6px 10px; }
.compare-grid { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 10px; }
.compare-card { padding: 15px; border-radius: 10px; }
.compare-card h3 { font-size: 20px; }
.compare-card dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 8px; margin: 15px 0; }
.compare-card dt { margin: 0; font-size: 9px; text-transform: none; }
.compare-card dd { margin: 0; text-align: right; font-size: 11px; }
.compare-trip-snow { padding: 9px; font-size: 10px; }
.compare-card .stay-links { gap: 3px; }
.compare-card .trip-note { font-size: 10px; }
.compare-card .compare-remove { min-height: 32px; padding: 5px; font-size: 10px; }
.compare-tray { position: fixed; bottom: 16px; left: 50%; z-index: 7; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; max-width: calc(100vw - 28px); width: max-content; padding: 9px 10px 9px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--navy-950); color: #fff; box-shadow: 0 4px 24px #0002; }
.compare-tray span { font-size: 12px; }
.compare-tray button { min-height: 34px; padding: 7px 11px; border: 0; border-radius: 7px; background: #dff4fb; color: #12384f; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.trip-bar button:hover, #filterDetails[open] > summary { background: var(--subtle); }
.app-dialog :focus-visible, .trip-bar :focus-visible, .price-overview :focus-visible, .mountain-details :focus-visible, .filters summary:focus-visible, .compare-tray :focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
.map-panel { margin-top: 12px; }
.map-detail { padding: 17px; }
#mapMountainDetail { margin-top: 15px; }
.map-snow-stat { margin-top: 14px; }
.map-snow-stat strong { font-size: 32px; }
.map-week { margin: 15px 0; }
.map-detail .stay-links { gap: 2px; }
.truth-strip { margin-top: 24px; padding: 12px 0; }
footer:not(.card-footer) { padding-block: 18px; }
@media (max-width: 790px) {
  .hero { padding: 14px 16px; }
  .hero h1 { font-size: 21px; }
  main { padding: 12px 16px 85px; }
  .results { grid-template-columns: minmax(0,1fr); }
  .snapshot { grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
  .metric { padding: 0; }
  .sync-state { grid-column: 1/-1; justify-content: flex-start; text-align: left; }
  .sync-state > div { flex-direction: row; gap: 8px; }
  .trip-bar { grid-template-columns: 1.1fr 1.1fr .9fr; }
  #editTripBudget strong { font-size: 11px; }
  .compare-grid { grid-template-columns: minmax(0,1fr); }
  .compare-card dl { grid-template-columns: 1fr 1fr; }
  .compare-card { padding: 12px; }
  .compare-card .stay-links > .trip-note { display: none; }
}
@media (max-width: 620px) {
  .hero-inner { gap: 7px; }
  .hero-copy { gap: 8px; }
  .hero .brand-mark { display: none; }
  .hero h1 { font-size: 18px; max-width: 180px; }
  .hero h1 span { display: block; }
  .hero .eyebrow { display: none; }
  .refresh-button #refreshLabel, #themeToggleLabel { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .refresh-button, .theme-toggle { min-width: 36px; min-height: 36px; padding: 8px; }
  .refresh-icon { font-size: 18px; }
  .hero-actions { gap: 7px; }
  main { padding-inline: 13px; }
  .trip-bar button, .trip-bar #editOrigin { padding: 6px 8px; }
  .trip-bar button b { display: none; }
  .trip-bar button strong, #tripSummary, #originLabel { font-size: 11px; }
  .trip-bar button b { right: 8px; }
  .trip-bar button > span { font-size: 9px; }
  .metric { gap: 5px; }
  .metric-icon { display: none; }
  .metric strong { font-size: 15px; }
  .metric span:not(.metric-icon) { font-size: 8px; }
  .price-overview { padding: 10px 12px; margin-bottom: 12px; }
  .price-offers { grid-template-columns: 1fr; gap: 7px; }
  .price-offer + .price-offer { padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .price-offer .offer-price { font-size: 18px; }
  .price-note { font-size: 9px; }
  .price-heading h2 { font-size: 12px; }
  .price-heading button { font-size: 10px; }
  .planner-heading { flex-wrap: wrap; gap: 8px; }
  .planner-heading h2 { font-size: 24px; }
  .board-actions { width: 100%; justify-content: space-between; }
  .board-actions .open-comparison { margin-right: auto; }
  .forecast-calendar { width: 350px; max-width: 100%; }
  .snow-overview { gap: 8px; }
  .snow-overview p { font-size: 10px; }
  #nextSnowButton { font-size: 10px; padding: 4px 7px; }
  .day-button { padding: 7px 1px; }
  .day-button strong { font-size: 10px; }
  .day-button > span:first-child { font-size: 9px; }
  .day-button .snow-indicator { font-size: 9px; gap: 1px; padding: 2px 1px; }
  .snow-legend > span:first-child { display: none; }
  .snow-legend { gap: 6px; font-size: 8px; }
  .filters { grid-template-columns: minmax(0,1fr) 125px auto; gap: 5px; }
  .filters input[type="search"], .filters select { font-size: 11px; }
  #filterDetails > summary { padding: 7px 8px; font-size: 11px; }
  #filterDetails > summary::after { display: none; }
  .search-field > div { padding-left: 6px; }
  .search-field > div > span { display: none; }
  .filters input[type="search"] { padding-left: 7px; }
  .decision-grid { grid-template-columns: 1fr; }
  .decision-card { padding: 10px; }
  .decision-card .decision-label, .decision-card h3, .decision-stat { display: inline; margin-right: 8px; }
  .decision-card .decision-detail { display: none; }
  .decision-stat span { display: none; }
  .mountain-card { padding: 14px; }
  .mountain-name { font-size: 22px; }
  .condition-grid { grid-template-columns: 1fr 1fr 1fr 1.1fr; }
  .condition { padding-inline: 7px; }
  .condition strong, .primary-condition strong { font-size: 17px; }
  .condition .drive-value { font-size: 14px; }
  .lodging-price strong { font-size: 12px; }
  .trip-card-actions { gap: 6px; }
  .compare-button { padding: 6px 8px; }
  .trip-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-dialog { max-width: calc(100vw - 20px); max-height: calc(100dvh - 24px); padding: 18px; }
  .dialog-heading h2 { font-size: 20px; }
  .comparison .section-heading { flex-direction: column; align-items: flex-start; }
  .compare-tray { gap: 12px; padding-left: 12px; bottom: 10px; }
  .compare-tray span, .compare-tray button { font-size: 11px; }
  .truth-strip > div { padding: 7px 0; }
}
@media (max-width: 360px) {
  .filters { grid-template-columns: minmax(0,1fr) 112px auto; }
  .condition > strong, .primary-condition strong { font-size: 15px; }
  .condition .drive-value { font-size: 13px; }
  .mountain-card { padding: 12px; }
  .score-badge { display: none; }
}

/* Linked lodging offers and lightweight map previews. */
.price-offer-item { display: grid; min-width: 0; border-radius: 5px; }
.price-offer-item + .price-offer-item { padding-left: 20px; border-left: 1px solid var(--line); }
.price-offer-item .price-offer, .offer-map-button { grid-area: 1 / 1; }
.price-offer-item .price-offer { min-height: 52px; }
.price-offer-item .offer-price { align-self: start; }
.offer-map-button { z-index: 1; align-self: end; justify-self: end; min-height: 24px; min-width: 50px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--blue); font-size: 10px; cursor: pointer; }
.price-offer-item.is-map-linked, .price-offer-item.is-map-preview { background: var(--ice); box-shadow: 0 0 0 5px var(--ice); }
.map-marker.is-preview .map-pin, .map-marker.lodging-match .map-pin { stroke: var(--orange); stroke-width: 3; }
.map-lodging-halo { fill: var(--orange); opacity: .17; pointer-events: none; }
.map-lodging-label { pointer-events: none; }
.map-lodging-label rect { fill: var(--navy-900); }
.map-lodging-label text { fill: #fff; font-weight: 750; }
.map-tooltip { position: absolute; z-index: 3; width: 250px; max-width: calc(100% - 16px); padding: 12px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-size: 12px; }
.map-tooltip-heading { display: block; font-size: 15px; }
.map-tooltip-date, .map-tooltip-hint { margin: 5px 0 0; font-size: 10px; color: var(--muted); }
.map-tooltip-resort { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.map-tooltip-resort strong { grid-column: 1 / -1; }
.map-tooltip-resort span { font-size: 11px; color: var(--muted); }
.map-tooltip-resort b { color: var(--blue); white-space: nowrap; font-size: 11px; }
@media (max-width: 620px) {
  .price-offer-item + .price-offer-item { padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .offer-map-button { min-height: 26px; }
}
