/*
  App view (html.app-view) and the phone-view switch. The website view keeps styles.css as it is; only the small offer
  bar, the "Open app view" link and the update/offline note below are visible there.

  App view uses a "liquid frost" look (owner, 2026-11-18): frosted glass for the top bar, tab bar and menu over a soft
  ice-tinted backdrop; the light cards are the website's matte hairline cards (trackthesnow brand, 2026-11-20).
  Swap the look by changing the variables below, not the layout. Dark values are at the end of this file.
  Solid colours are used where backdrop blur isn't supported or the system asks for less transparency.
*/
:root {
  --accent: #0ea5e9;                         /* cyan = snow (styles.css --cyan) */
  --glass-bg: rgb(255 255 255 / 0.62);       /* frosted white panels */
  --glass-solid: #fff;                       /* fallback without blur */
  --glass-bar: rgb(250 252 254 / 0.82);     /* frosted light top bar */
  --glass-bar-solid: #fafcfe;
  --glass-tabs: rgb(255 255 255 / 0.8);      /* floating tab bar */
  --glass-blur: 18px;
  --glass-sat: 160%;
  --glass-edge: rgb(255 255 255 / 0.7);      /* soft highlight along the top edge */
  --glass-line: rgb(23 43 64 / 0.10);
  --glass-shadow: 0 8px 28px rgb(17 36 58 / 0.10);
  --frost-1: rgb(214 232 245 / 0.6);         /* backdrop tint: ice */
  --frost-2: transparent;
  --tabbar-h: 62px;
}

/* ---------- website view: offer on phones, link under the page, notes ---------- */
.av-offer { background: #dceaf5; border-bottom: 1px solid #b9d3e8; font-size: 15px; }
.av-offer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 8px; padding-bottom: 8px; }
.av-offer-in > p:first-child { flex: 1 1 100%; font-weight: 600; }
.av-offer-b { display: flex; gap: 8px; width: 100%; }
.av-offer-b button { min-height: var(--tap); padding: 0 12px; border: 1px solid var(--ink); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; }
.av-offer-b button[data-act="app"] { background: var(--ink); color: #fff; }
.av-offer-b .av-x { margin-left: auto; min-width: var(--tap); padding: 0; border-color: transparent; background: none; }
.av-hint { flex: 1 1 100%; font-size: 14px; color: #33475b; }
.av-weblink { padding-bottom: 24px; font-size: 14px; color: var(--muted); }
.av-weblink button { min-height: var(--tap); padding: 0 4px; border: 0; background: none; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.av-weblink .av-hint:not([hidden]) { display: block; }
.av-note { position: fixed; z-index: 60; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.25); }
.av-note[hidden] { display: none; }
.av-note span { flex: 1; }
.av-note button { min-height: var(--tap); padding: 0 14px; border: 0; border-radius: 6px; background: #fff; color: var(--ink); font-weight: 600; }
.av-tabs, .av-empty, .av-bar { display: none; }

/* ---------- app view ---------- */
html.app-view body { min-height: 100vh; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
  background: radial-gradient(60vmax 50vmax at 0% 0%, var(--frost-1), transparent 70%),
              radial-gradient(55vmax 45vmax at 100% 35%, var(--frost-2), transparent 70%),
              radial-gradient(60vmax 50vmax at 20% 100%, var(--frost-1), transparent 70%), var(--paper);
  background-attachment: fixed; }
html.app-view #app > [data-tab]:not(.av-on) { display: none; }
html.app-view .av-empty:not([hidden]) { display: block; padding: 40px 16px; text-align: center; }

/* top bar: brand mark, resort switcher, menu */
html.app-view .mast { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top); background: var(--glass-bar-solid); }
html.app-view .mast-in { height: auto; min-height: 56px; flex-wrap: wrap; gap: 8px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
html.app-view .brand > span { display: none; }
html.app-view .tts-brand { display: contents; }
html.app-view .tts-by { order: 9; width: 100%; margin: -6px 0 6px; font-size: 10px; }
html.app-view .brand svg { width: 30px; height: 27px; }
html.app-view .av-bar { display: flex; flex: 1; align-items: center; gap: 4px; min-width: 0; }
.av-resort { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; min-height: var(--tap); padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left; }
.av-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 22px/1 var(--num); letter-spacing: -0.02em; }
.av-chev { font-size: 18px; margin-top: -6px; color: var(--ice); }
.av-menu-b { display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: 8px; background: none; color: var(--ink); }
.av-menu-b svg, .av-tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.av-resort:active, .av-menu-b:active { background: rgb(15 23 42 / 0.06); }

/* the page in app view: no repeated name or "Change resort" (both in the top bar), comfortable spacing */
html.app-view .intro h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.app-view .intro .change { display: none; }
html.app-view #app { padding-top: 12px; }
html.app-view .intro { padding-top: 4px; }
html.app-view .intro-l, html.app-view .actions { width: 100%; }
html.app-view .actions .action { flex: 1; justify-content: center; }
html.app-view .verify, html.app-view .sdates, html.app-view .hist, html.app-view .community, html.app-view .sponsor, html.app-view .now {
  background: var(--glass-solid); border: 1px solid var(--glass-line); border-radius: 14px; box-shadow: var(--glass-shadow); }
html.app-view .verify, html.app-view .sdates { margin-top: 16px; }
html.app-view .panel { border-radius: 14px; box-shadow: var(--glass-shadow); }
html.app-view .method { border-top: 0; padding-top: 24px; }
html.app-view .duo { margin: 16px 0; }

/* bottom tab bar */
html.app-view .av-tabs { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; justify-content: center;
  padding: 0 max(6px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-left));
  background: var(--glass-bar-solid); border-top: 1px solid rgb(255 255 255 / 0.14); }
.av-tabs button { flex: 1; max-width: 140px; height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; color: #b8c8d8; font-size: 12px; font-weight: 600; position: relative; }
.av-tabs button[aria-current="page"] { color: #fff; }
.av-tabs button[aria-current="page"]::before { content: ""; position: absolute; top: 6px; width: 56px; height: 32px; border-radius: 16px; background: rgb(192 224 246 / 0.22); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), inset 0 -2px 0 var(--accent); }
.av-tabs svg { position: relative; }
.av-tabs span { position: relative; }

/* menu: a bottom sheet */
#av-menu { width: min(520px, 100vw); max-width: 100vw; max-height: 86vh; margin: auto auto 0; padding: 0 0 calc(12px + env(safe-area-inset-bottom)); border: 0; border-radius: 16px 16px 0 0; background: #fff; color: var(--ink); }
#av-menu::backdrop { background: rgb(0 0 0 / 0.45); }
#av-menu .rd-head { background: transparent; }
.av-mbody { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px 0; }
.av-mbody .src { padding: 8px 6px 0; }
.av-mbody .av-hint { padding: 0 6px 4px; }
.av-row { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 6px; font-weight: 600; }
.av-row .tts-theme button { padding: 0 12px; font-size: 13px; }
.av-units .units { border-color: var(--line); }
.av-units .units button { color: var(--muted); }
.av-units .units button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.av-item { display: flex; align-items: center; min-height: 52px; padding: 0 6px; border: 0; border-top: 1px solid var(--glass-line); background: none; color: var(--ink); font-size: 17px; font-weight: 500; text-align: left; }
.av-item[hidden] { display: none; }
html.app-view .av-note { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px); }

/* liquid frost where the browser can blur what's behind; solid colours otherwise */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.app-view .mast, html.app-view .av-tabs {
    background: var(--glass-bar); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); }
  html.app-view .verify, html.app-view .sdates, html.app-view .hist, html.app-view .community, html.app-view .sponsor, html.app-view .now, html.app-view #av-menu {
    background: var(--glass-bg); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow); }
  html.app-view #av-menu { background: rgb(255 255 255 / 0.82); }
}
/* trackthesnow (2026-11-20): matte hairline cards, as on the website */
html.app-view .verify, html.app-view .sdates, html.app-view .hist, html.app-view .sponsor, html.app-view .now {
  background: var(--glass); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--glass-hi), var(--glass-sh); }
@media (prefers-reduced-transparency: reduce) {
  html.app-view .mast, html.app-view .av-tabs { background: var(--glass-bar-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.app-view .verify, html.app-view .sdates, html.app-view .hist, html.app-view .community, html.app-view .sponsor, html.app-view .now, html.app-view #av-menu {
    background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.app-view body { background: var(--paper); }
}

/* installed app in website view: keep the masthead clear of the status bar */
@media (display-mode: standalone) { .mast { padding-top: env(safe-area-inset-top); } }

/* ---------- forecast as day cards (app view only; the website keeps the 14-day grid) ---------- */
.dlist { display: none; }
html.app-view #forecast.fv-cards .scroll, html.app-view #forecast.fv-cards .swipe, html.app-view #forecast.fv-cards > .story { display: none; }
html.app-view #forecast.fv-graph .dlist { display: none !important; }
.fview { display: none; }
html.app-view .fview { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 12px; padding: 3px; border-radius: 12px;
  background: rgb(255 255 255 / 0.08); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1); }
.fview button { min-height: 38px; border: 0; border-radius: 9px; background: none; color: #c6d4e0; font: 600 15px/1 var(--font); }
.fview button[aria-pressed="true"] { background: #e6edf5; color: #0f172a; }
html.app-view .dlist { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 6px 0 4px; padding: 0; }
.dc { border-radius: 14px; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); }
.dc.open { background: rgb(192 224 246 / 0.10); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), inset 3px 0 0 var(--accent); }
.dc-h { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 64px; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border: 0; background: none; color: #e8f1f8; font: inherit; text-align: left; }
.dc-ic { position: relative; display: grid; place-items: center; width: 54px; height: 50px; border-radius: 12px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04)); }
.dc-ic .ic { width: 28px; height: 28px; margin-top: -8px; }
.dc-ic.snow .ic { color: var(--ice); } .dc-ic.rain .ic, .dc-ic.mix .ic { color: #ffb27f; } .dc-ic.sun .ic, .dc-ic.partly .ic { color: #ffd479; } .dc-ic.cloud .ic, .dc-ic.fog .ic { color: #b8c8d8; }
.dc-ic em { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 0 2px; border-radius: 0 0 12px 12px; background: rgb(192 224 246 / 0.88);
  color: #11243a; font: 700 11px/1.2 var(--font); font-style: normal; text-align: center; }
.dc-name { display: flex; flex-direction: column; min-width: 0; } .dc-name b { font-size: 17px; font-weight: 600; color: #fff; } .dc-name small { font-size: 13px; color: #a9bccd; }
.dc-snow { display: flex; flex-direction: column; align-items: flex-end; min-width: 54px; }
.dc-snow > span { display: flex; align-items: baseline; gap: 2px; }
.dc-snow b { font: 500 24px/1 var(--mono); letter-spacing: -0.03em; color: var(--ice); } .dc-snow.big b { font-size: 28px; color: #fff; }
.dc-snow i { font: 500 13px/1 var(--font); font-style: normal; color: #a9bccd; }
.dc-snow small { margin-top: 3px; font: 600 10px/1 var(--font); letter-spacing: 0.6px; text-transform: uppercase; color: #8fa6ba; }
.dc-snow.zero b { color: #7f93a6; } .dc-snow.none { font: 600 22px/1 var(--num); color: #7f93a6; }
.dc-t { display: flex; flex-direction: column; align-items: flex-end; font: 500 16px/1.15 var(--mono); letter-spacing: -0.03em; color: #8fc2ec; } .dc-t b { font-size: 20px; color: #ffcf9a; font-weight: 600; }
.dc-txt { margin: 0; padding: 0 14px 10px; font-size: 14px; line-height: 1.45; color: #d6e2ec; }
.dc-txt b { color: #fff; font-weight: 600; }
.dc.far .dc-h { padding-top: 6px; padding-bottom: 6px; } .dc.far .dc-ic { height: 40px; } .dc.far .dc-ic .ic { margin-top: 0; opacity: 0.75; }
.dc.far .dc-name b, .dc.far .dc-snow { color: #a9bccd; } .dc.far .dc-t b { color: #d9b48c; } .dc.far .dc-t { color: #7fa6c6; }
.dc-hr { width: calc(100% - 28px); margin: 2px 14px 10px; border-collapse: collapse; font-size: 14px; }
.dc-hr th { padding: 4px 2px; font-size: 11px; font-weight: 600; color: #a9bccd; text-align: right; text-transform: uppercase; letter-spacing: 0.4px; }
.dc-hr th:first-child, .dc-hr td:first-child { text-align: left; }
.dc-hr td { padding: 6px 2px; border-top: 1px solid rgb(255 255 255 / 0.08); text-align: right; color: #d6e2ec; font-variant-numeric: tabular-nums; }
.dc-hr td.t { color: #ffcf9a; font-weight: 600; } .dc-hr td.f { color: #8fc2ec; } .dc-hr small { margin-left: 3px; color: #a9bccd; }
.dc .story { margin: 0 14px; padding: 8px 0 12px; border-top: 1px solid rgb(255 255 255 / 0.08); }
.dl-sep { padding: 10px 4px 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; color: #a9bccd; text-transform: uppercase; }
.dc .story > .s-day, .dc .story > span:not(.conf):not(.meta) { display: none; }
.dc .story { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html.app-view .fview { margin: 14px 16px 2px; }
.dc-sum { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0 14px 10px 80px; font-size: 13.5px; line-height: 1.35; color: #c6d4e0; }
.dc-sum b { display: inline-block; min-width: 54px; font-weight: 600; color: #a9bccd; }
.dc.open .dc-txt { font-size: 13.5px; line-height: 1.4; }
.dc.far .dc-snow b { color: #a9bccd; font-size: 20px; }

/* ---------- floating glass bars (owner, 2026-11-19: "like the new Instagram menu") ---------- */
html.app-view body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 36px); }
html.app-view .mast { background: var(--glass-bar); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 var(--line); }
html.app-view .av-tabs { left: max(14px, env(safe-area-inset-left)); right: max(14px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto; padding: 4px; border: 1px solid var(--line); border-radius: 30px;
  background: var(--glass-tabs); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.12); }
.av-tabs button { height: 54px; gap: 2px; border-radius: 26px; font-size: 11px; color: var(--muted); }
.av-tabs button[aria-current="page"] { color: #fff; }
.av-tabs button[aria-current="page"]::before { top: 0; bottom: 0; left: 0; right: 0; width: auto; height: auto; border-radius: 26px;
  background: var(--ink); box-shadow: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.app-view .av-tabs, html.app-view .mast { background: var(--glass-bar-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  html.app-view .av-tabs, html.app-view .mast { background: var(--glass-bar-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Resorts tab: every resort at a glance, favourites first ---------- */
.allres { display: none; }
/* The static "All resorts" list (index.html, outside #app) sits under the Resorts tab only. */
html.app-view .site-foot { display: none; }
html.app-view[data-avtab="resorts"] .site-foot { display: block; }
html.app-view .allres { display: block; margin-top: 4px; }
.allres .sh { margin: 18px 2px 10px; } .allres .sh:first-child { margin-top: 6px; }
.ar-empty { margin: 0 0 6px; padding: 14px; border-radius: 14px; background: rgb(255 255 255 / 0.55); color: var(--muted); font-size: 14px; }
.ar { margin-bottom: 10px; padding: 12px 12px 10px; border-radius: 16px; color: #e8f1f8;
  background: linear-gradient(160deg, #1f3550, #172b40); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 6px 18px rgb(17 36 58 / 0.16); }
.ar.fav { box-shadow: inset 3px 0 0 var(--amber), 0 6px 18px rgb(17 36 58 / 0.16); }
.ar-h { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.ar-star { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.06); color: #8fa6ba; }
.ar-star svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ar-star[aria-pressed="true"] { color: var(--amber); } .ar-star[aria-pressed="true"] svg { fill: currentColor; }
.ar-name { display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; }
.ar-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 19px/1.15 var(--num); color: #fff; }
.ar-name small { font-size: 12px; color: #a9bccd; }
.ar-st { padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ar-st.open { background: rgb(120 220 160 / 0.18); color: #a8e0b4; } .ar-st.soon { background: rgb(245 158 11 / 0.16); color: #fbbf24; }
.ar-st.closed { background: rgb(255 255 255 / 0.08); color: #a9bccd; }
.ar-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.ar-b { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 10px; background: rgb(255 255 255 / 0.06); text-align: center; }
.ar-b:first-child { background: rgb(192 224 246 / 0.12); }
.ar-b span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.3px; color: #a9bccd; text-transform: uppercase; white-space: nowrap; }
.ar-b b { font: 500 22px/1.1 var(--mono); letter-spacing: -0.03em; color: var(--ice); } .ar-b i { margin-left: 1px; font: 500 11px var(--font); font-style: normal; color: #a9bccd; }
.ar-b.far b { color: #c6d4e0; } .ar-b small { font-size: 10px; color: #8fa6ba; }
.ar-strip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; margin: 10px 0 0; padding: 0; list-style: none; }
.ar-strip li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 58px; position: relative; }
.ar-strip i { width: 70%; min-height: 0; border-radius: 3px 3px 1px 1px; background: var(--ice); }
.ar-strip li.far i { background: rgb(192 224 246 / 0.4); }
.ar-strip b { position: absolute; top: 0; font: 500 11px/1 var(--mono); letter-spacing: -0.03em; color: #fff; }
.ar-strip span { font-size: 10px; color: #8fa6ba; } .ar-strip li.we span { color: #e8f1f8; font-weight: 700; }
.ar-v { display: flex; align-items: baseline; gap: 1px; }
.ar-b .ar-v { text-transform: none; letter-spacing: 0; white-space: nowrap; }

/* sponsor: small, at the end of every tab (app view); the website keeps its box */
.av-foot { display: none; }
html.app-view .av-foot { display: flex; justify-content: center; padding-top: 18px; padding-bottom: 4px; }
html.app-view .av-foot a { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; opacity: 0.8;
  background: rgb(255 255 255 / 0.5); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7); }
html.app-view .av-foot img { height: 26px; width: auto; }
html.app-view #app .sponsor { display: none; }
/* Map tab: the map fills the screen between the bars */
html.app-view .smap { margin-top: 0; padding: 12px; }
html.app-view .smap-frame { height: calc(100dvh - 64px - var(--tabbar-h) - env(safe-area-inset-bottom) - 214px); min-height: 360px; }  /* floating tab bar: 24px more */
html.app-view .smap-full { display: none; }

/* Mountain tab (History merged in, owner 2026-11-19): opening/closing, snowpack, forecast vs. what fell, community, sources */
html.app-view #app { display: flex; flex-direction: column; }
html.app-view #app > .sdates { order: 1; } html.app-view #app > .hist { order: 2; } html.app-view #app > .verify { order: 3; }
html.app-view #app > .duo { order: 4; } html.app-view #app > .method { order: 5; }

/* Pulling past the top (iOS/Android bounce) must not slide the top bar down over a white gap (owner, 2026-11-19):
   no bounce on the page, and if a browser bounces anyway the space above matches the bar (below it, the page colour). */
html.app-view { overscroll-behavior-y: none; background: linear-gradient(var(--glass-bar-solid) 50%, var(--paper) 50%); }
html.app-view body { overscroll-behavior-y: none; }

/* Resorts tab: every resort in state/province lists (2026-11 expansion), search on top */
.ar-search { display: block; margin: 0 0 10px; }
.ar-search input, .rd-search input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: rgb(255 255 255 / 0.85); color: var(--ink); font: 500 16px var(--font); }
.ar-search input:focus-visible, .rd-search input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.ar-none { margin: 0 2px 10px; color: var(--muted); font-size: 14px; }
.ar-g { margin-bottom: 8px; border-radius: 16px; color: #e8f1f8; background: linear-gradient(160deg, #1f3550, #172b40);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 6px 18px rgb(17 36 58 / 0.12); overflow: hidden; }
.ar-g summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 48px; padding: 13px 16px; cursor: pointer; list-style: none; }
.ar-g summary::-webkit-details-marker { display: none; }
.ar-g summary b { font: 600 19px/1.1 var(--num); color: #fff; }
.ar-g summary span { font-size: 12px; color: #a9bccd; }
.ar-g summary::after { content: "⌄"; margin-left: 4px; color: #a9bccd; transition: transform 0.15s; }
.ar-g[open] summary::after { transform: rotate(180deg); }
.ar-g summary span { margin-left: auto; }
.ar-rows { margin: 0; padding: 0 6px 6px; list-style: none; }
.ar-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 64px 64px; align-items: center; gap: 4px; padding: 6px 4px; border-top: 1px solid rgb(255 255 255 / 0.07); }
.ar-row.cur { border-radius: 10px; background: rgb(192 224 246 / 0.1); }
.ar-row .ar-name b { font-size: 17px; white-space: normal; overflow: visible; }
.ar-row .ar-name small { margin-top: 2px; }
.ar-row .ar-st { padding: 2px 7px; font-size: 11px; }
.ar-n { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.ar-n small { font-size: 9.5px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: #8fa6ba; white-space: nowrap; }
.ar-n b { font: 500 19px/1.1 var(--mono); letter-spacing: -0.03em; color: var(--ice); }
.ar-n.far b { color: #c6d4e0; }
.ar-n i { margin-left: 1px; font: 500 11px var(--font); font-style: normal; color: #a9bccd; }

/* ---------- Dark mode, app view (trackthesnow, 2026-11-20; html.dark, see styles.css) ---------- */
html.dark { --glass-bar: rgb(10 17 32 / 0.85); --glass-bar-solid: #0a1120; --glass-tabs: rgb(17 27 45 / 0.88); }
html.dark .av-item { border-top-color: rgb(255 255 255 / 0.08); }
html.dark.app-view body { background: var(--paper); }
html.dark .av-tabs button[aria-current="page"] { color: #0a1120; }
html.dark #av-menu { background: #111b2d; color: var(--ink); }
html.dark .av-offer { background: #111b2d; border-color: var(--line); }
html.dark .av-offer-b button, html.dark .av-note button { background: #162238; color: var(--ink); border-color: var(--line); }
html.dark .av-offer-b button[data-act="app"] { background: var(--ink); color: #0a1120; }
html.dark .av-note { background: #1e2a3e; color: var(--ink); }
html.dark .ar-empty, html.dark.app-view .av-foot a { background: #111b2d; box-shadow: none; }
html.dark.app-view .av-foot img { filter: invert(1) hue-rotate(180deg); }
html.dark .ar-search input { background: #162238; }
