/* AlpScout v3 — mountain planning shell: page views (Today · Friends · Profile), labelled navigation, Today cards.
   Loaded last so it can adjust the older sheets without editing them. */

:root { --page-bg: #0b1016; --card: rgba(255, 255, 255, 0.045); --card-line: rgba(255, 255, 255, 0.09); --card-hover: rgba(255, 255, 255, 0.07); --page-max: 1120px; }

/* ---------- navigation ---------- */
.mode-btn[data-view] { position: relative; }
.mode-btn[data-view].is-on, .mode-btn[data-view][aria-pressed="true"] { color: var(--accent); }
.rec-pill, #recPill { display: none !important; }
@media (min-width: 861px) {
  .strip .dock { gap: 2px; }
  .strip .dock .mode-btn[data-view] { width: auto; height: 30px; padding: 0 11px; gap: 7px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font: 500 13px/1 var(--font-body); color: var(--text-2); }
  .strip .dock .mode-btn[data-view] .ic { width: 16px; height: 16px; }
  .strip .dock .mode-btn[data-view]:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
  .strip .dock .mode-btn[data-view][aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }
  .dock-lbl { display: inline; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .strip .dock .mode-btn[data-view] { padding: 0 9px; }
}
@media (min-width: 861px) and (max-width: 1040px) {
  .strip .dock .dock-lbl { display: none; }
  .strip .dock .mode-btn[data-view] { width: 34px; padding: 0; justify-content: center; }
}
@media (max-width: 860px) {
  .dock { padding: 4px 6px; }
  .dock .mode-btn[data-view] { width: 62px; height: 48px; flex-direction: column; gap: 3px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; color: var(--text-2); }
  .dock .mode-btn[data-view] .ic { width: 20px; height: 20px; }
  .dock .dock-lbl { font: 500 10.5px/1 var(--font-body); letter-spacing: .01em; }
  .dock .mode-btn[data-view][aria-pressed="true"] { color: var(--accent); background: rgba(255, 255, 255, 0.07); }
}

/* ---------- page views: no map behind them ---------- */
.page { position: fixed; inset: 0; z-index: 17; pointer-events: auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: radial-gradient(1100px 520px at 12% -8%, rgba(107, 245, 193, 0.07), transparent 60%), radial-gradient(900px 500px at 100% 0%, rgba(90, 209, 255, 0.06), transparent 60%), var(--page-bg);
  padding: calc(var(--strip-h) + var(--inset) * 2) 0 48px; color: var(--text); }
.page[hidden] { display: none !important; }
.page__bar { display: none; }
.page__body { max-width: var(--page-max); margin: 0 auto; padding: 8px 28px 0; }
body.has-page .map, body.has-page #crosshair, body.has-page .only-banner { visibility: hidden; }
body.has-page :is(.tiles, .cards, .tools, .pop, .scrubber-row, .mode-panel, .cmty-hud, .globehint, .legends, .detail, .flyhud, .attribution, #sidebar) { display: none !important; }
body.has-page .maplibregl-control-container { display: none; }
body.has-page .strip :is(.strip-item--wx, .strip-item--time, .strip-item--sun, .strip-item--place) { display: none !important; }
body.has-page .strip .strip-search { visibility: hidden; }
body.has-page .strip-sep { opacity: 0; }

@media (max-width: 860px) {
  .page { padding: calc(env(safe-area-inset-top, 0px) + 6px) 0 calc(var(--dock-h) + var(--inset) * 2 + env(safe-area-inset-bottom, 0px) + 18px); }
  .page__bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 2; padding: 8px 14px; background: linear-gradient(var(--page-bg) 70%, transparent); }
  .page__title { font: 600 19px/1.2 var(--font-display); margin: 0; letter-spacing: -.01em; }
  .page__sp { flex: 1; }
  .page__av, .page__back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.05); color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
  .page__av svg, .page__back svg { width: 20px; height: 20px; }
  .page__back { display: none; }
  .page[data-sub="reports"] .page__back, .page[data-view="profile"] .page__back, .page[data-view="friends"] .page__back { display: inline-flex; }
  .page[data-view="profile"] .page__av { display: none; }
  .page__body { padding: 0 14px; }
  body.has-page .strip-search, body.has-page .cmty-bar, body.has-page .wxchip { display: none !important; }
  body.has-page .dock { opacity: 1 !important; pointer-events: auto !important; transform: translateX(-50%) !important; }
}
@media (min-width: 861px) {
  .page[data-sub="reports"] .page__bar, .page[data-view="friends"] .page__bar, .page[data-view="profile"] .page__bar { display: flex; align-items: center; gap: 12px; margin: 0 auto 6px; max-width: var(--page-max); padding: 10px 28px 0; }
  .page__title { font: 600 24px/1.2 var(--font-display); margin: 0; letter-spacing: -.015em; }
  .page__sp { flex: 1; }
  .page__av { display: none; }
  .page__back { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.05); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .page__back svg { width: 18px; height: 18px; }
  .page[data-view="friends"] .page__back, .page[data-view="profile"] .page__back { display: none; }
}

/* the Community drawer, when it is part of a page */
.page__cmty { max-width: 760px; margin: 0 auto; }
.page[data-sub="reports"] .page__cmty { max-width: 860px; }
.cmty.is-page { position: static !important; inset: auto !important; width: auto !important; height: auto !important; max-height: none !important; transform: none !important; display: flex; flex-direction: column;
  background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-radius: 0 !important; padding: 0 !important; overflow: visible !important; }
.cmty.is-page > .cmty__head, .cmty.is-page .cmty__handle, .cmty.is-page #cmtyClose { display: none !important; }
.cmty.is-page .cmty__body { overflow: visible !important; max-height: none !important; padding: 0 !important; }
.cmty.is-page .cmty__tabs { position: static; margin: 0 0 14px; }
.cmty.is-page .cmty__panel { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: 18px 18px 20px; margin-bottom: 14px; }
.cmty.is-page .panel__title { font: 600 18px/1.25 var(--font-display); }

/* ---------- Today ---------- */
.today { display: flex; flex-direction: column; gap: 18px; }
.today[hidden] { display: none; }
.td-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 24px; align-items: end; padding: 18px 0 6px; }
.td-kicker { margin: 0 0 6px; font: 500 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.td-place { margin: 0; font: 600 clamp(28px, 4.2vw, 44px)/1.05 var(--font-display); letter-spacing: -.025em; }
.td-sub { margin: 8px 0 0; color: var(--text-2); font-size: 15px; max-width: 56ch; }
.td-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--text-2); font-size: 13px; }
.td-meta__i { display: inline-flex; align-items: center; gap: 6px; }
.td-meta__i .ic { width: 15px; height: 15px; color: var(--text-2); }
.td-meta__i--muted { color: var(--muted); }
.td-hero__act { display: flex; flex-direction: column; gap: 10px; }
.td-hero__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.td-hero__btns .btn { display: inline-flex; align-items: center; gap: 7px; }
.td-hero__btns .btn .ic { width: 15px; height: 15px; }
.td-search { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--card-line); }
.td-search:focus-within { border-color: var(--glass-line-strong); background: rgba(255, 255, 255, 0.08); }
.td-search .ic { width: 17px; height: 17px; color: var(--muted); flex: none; }
.td-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 400 14.5px var(--font-body); }
.td-search__res { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; list-style: none; margin: 0; padding: 6px; border-radius: var(--r-md); background: #111922; border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.td-search__res button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 8px; background: none; border: 0; color: var(--text); cursor: pointer; font: inherit; }
.td-search__res button:hover, .td-search__res button:focus-visible { background: rgba(255, 255, 255, 0.07); }
.td-search__res small { color: var(--muted); font-size: 12px; }
.td-search__none { padding: 10px; color: var(--muted); font-size: 13px; }

.td-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.td-card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.td-card--wide { gap: 12px; }
.td-card__h { margin: 0; font: 500 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.td-card__note { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.td-link { color: var(--accent); font-size: 13px; text-decoration: none; font-weight: 500; }
.td-link:hover { text-decoration: underline; }
.td-avy__lvl { display: flex; align-items: center; gap: 14px; }
.td-avy__n { width: 58px; height: 58px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--c); color: #111; font: 700 30px/1 var(--font-display); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25) inset; }
.td-avy__lvl[style*="#1b1b1b"] .td-avy__n { color: #fff; background: repeating-linear-gradient(45deg, #111 0 8px, #ff0000 8px 16px); }
.td-avy__t { font: 600 22px/1.1 var(--font-display); }
.td-avy__lvl--none .td-avy__t { color: var(--text-2); font-size: 18px; }
.td-wx__now { display: flex; align-items: center; gap: 12px; }
.td-wx__now svg { width: 46px; height: 46px; }
.td-wx__t { font: 600 34px/1 var(--font-display); letter-spacing: -.02em; }
.td-wx__s { color: var(--text-2); font-size: 14px; }
.td-dl { margin: 0; display: grid; gap: 6px; }
.td-dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.td-dl dt { color: var(--text-2); }
.td-dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.td-dl--sm > div { font-size: 12.5px; }
.td-snow__big { display: flex; align-items: baseline; gap: 10px; }
.td-snow__big span { font: 600 34px/1 var(--font-display); letter-spacing: -.02em; }
.td-snow__big small { color: var(--text-2); font-size: 13px; }

.td-brief__lead { margin: 0; font: 500 19px/1.4 var(--font-display); letter-spacing: -.01em; max-width: 70ch; }
.td-brief__story { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; max-width: 78ch; }
.td-watch { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.td-watch li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: var(--r-pill); background: rgba(255, 180, 84, 0.12); color: #ffd29a; font-size: 13px; border: 1px solid rgba(255, 180, 84, 0.25); }
.td-watch .ic { width: 14px; height: 14px; }
.td-story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.td-story li { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.06); font-size: 13.5px; line-height: 1.4; }
.td-story b { font: 500 11.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.td-story li.is-good { border-color: rgba(107, 245, 193, 0.25); }
.td-story li.is-bad { border-color: rgba(255, 107, 107, 0.3); }
.td-hours { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.td-hour { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.035); font-size: 12px; }
.td-hour svg { width: 26px; height: 26px; }
.td-hour__h { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.td-hour__t { font-weight: 600; font-size: 14px; }
.td-hour__w { color: var(--text-2); font-size: 11px; white-space: nowrap; }
.td-fine { margin: 0; color: var(--muted); font-size: 12px; }
.td-err { margin: 0; color: #ffb1b1; }

.td-sec { display: flex; flex-direction: column; gap: 12px; }
.td-sec__bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.td-sec__sp { flex: 1; }
.td-sec__h { margin: 0; font: 600 19px/1.2 var(--font-display); letter-spacing: -.01em; }
.td-reps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.td-rep { display: flex; gap: 12px; text-align: left; padding: 12px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--card-line); color: var(--text); cursor: pointer; font: inherit; min-width: 0; }
.td-rep:hover { background: var(--card-hover); border-color: rgba(255, 255, 255, 0.14); }
.td-rep__img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; flex: none; }
.td-rep__b { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.td-rep__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.td-rep__top b { font-weight: 600; font-size: 14.5px; }
.td-rep__txt { color: var(--text-2); font-size: 13.5px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.td-rep__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.td-rep__when { color: var(--muted); font-size: 12px; }
.td-rep__loc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; font-size: 12px; color: var(--text-2); }
.td-rep__loc svg { width: 13px; height: 13px; flex: none; color: var(--accent); }
.td-rep__kind { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.td-rep__pn { font-weight: 500; color: var(--text); }
.td-rep__xy { font: 500 11px/1.2 var(--font-mono); color: var(--muted); }
.td-tag { padding: 3px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.07); font-size: 11.5px; color: var(--text-2); text-transform: capitalize; }
.td-badge { padding: 3px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.td-empty { padding: 20px; border-radius: var(--r-lg); border: 1px dashed rgba(255, 255, 255, 0.14); color: var(--text-2); }
.td-empty p { margin: 0 0 4px; }
.td-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.td-day__h { margin: 0; font: 600 16px/1.2 var(--font-display); }
.td-day__row { display: flex; align-items: center; gap: 10px; }
.td-day__row svg { width: 34px; height: 34px; }
.td-day__t { font: 600 24px/1 var(--font-display); }
.td-day__s { color: var(--text-2); font-size: 13px; }
.td-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.td-chip { padding: 9px 14px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--card-line); color: var(--text); font: 500 14px var(--font-body); cursor: pointer; }
.td-chip:hover { background: var(--card-hover); border-color: rgba(255, 255, 255, 0.16); }
.td-skel { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.td-skel span { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)); background-size: 200% 100%; animation: tdsk 1.4s linear infinite; }
@keyframes tdsk { to { background-position: -200% 0; } }
.td-foot { padding: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.td-foot p { margin: 8px 0 0; }
.td-x:empty { display: none; }

@media (max-width: 1000px) { .td-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .td-grid > .td-snow { grid-column: span 2; } }
@media (max-width: 860px) {
  .td-hero { grid-template-columns: 1fr; gap: 14px; padding-top: 4px; }
  .td-hero__btns { justify-content: flex-start; }
  .td-place { font-size: 30px; }
  .td-reps, .td-days { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .td-grid { grid-template-columns: 1fr; } .td-grid > .td-snow { grid-column: auto; } .td-brief__lead { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .td-skel span { animation: none; } }

/* My routes: routes from friends */
.mine-friends { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.mine-friends__h { margin: 0 0 8px; font: 600 14px/1.2 var(--font-display); display: flex; align-items: baseline; gap: 8px; }
.mine-friends__h .hint { font: 400 12px var(--font-body); color: var(--muted); }

/* ======================================================================================= v3 planning layers */
.pfx { position: absolute; z-index: 15; left: var(--inset); top: calc(var(--strip-h) + var(--inset)); width: 352px; max-height: calc(100% - var(--strip-h) - var(--inset) * 2 - 8px);
  display: flex; flex-direction: column; background: var(--glass-bg-strong); border: 1px solid var(--glass-line); border-radius: var(--r-lg); box-shadow: var(--glass-highlight), var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%); pointer-events: auto; animation: rise .28s var(--ease); color: var(--text); }
.pfx[hidden] { display: none !important; }
.pfx--wide { width: 380px; }
.pfx__h { display: flex; align-items: center; gap: 10px; padding: 12px 10px 8px 14px; }
.pfx__ic { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(255,255,255,.06); color: var(--accent); flex: none; }
.pfx__ic svg { width: 18px; height: 18px; }
.pfx__t { margin: 0; flex: 1; font: 600 16px/1.2 var(--font-display); letter-spacing: -.01em; }
.pfx__x { width: 32px; height: 32px; }
.pfx__x svg { width: 16px; height: 16px; }
.pfx__b { padding: 2px 14px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.pfx-sub { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.pfx-note { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px dashed var(--card-line); }
.pfx-note--err { color: #ffb4a8; border-color: rgba(255,120,100,.35); }
.pfx-hint { margin: 0; color: var(--muted); font-size: 12.5px; }
.pfx-src { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
/* v3.5: never squash a block when a panel gets long (the day row has overflow, so it used to shrink to nothing and the
   next block slid over it — seen with Wind loading on) */
.pfx__b > * { flex-shrink: 0; }
.pfx-dayswrap { position: relative; }
.pfx-dayswrap.is-l .pfx-days { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34px); mask-image: linear-gradient(90deg, transparent 0, #000 34px); }
.pfx-dayswrap.is-r .pfx-days { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent 100%); }
.pfx-dayswrap.is-l.is-r .pfx-days { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%); }
.pfx-dayarr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--glass-bg-strong, rgba(20,24,30,.92)); border: 1px solid var(--glass-line-strong, rgba(255,255,255,.2)); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pfx-dayarr svg { width: 16px; height: 16px; }
.pfx-dayarr[hidden] { display: none; }
.pfx-dayarr--l { left: -6px; } .pfx-dayarr--r { right: -6px; }
.pfx-dayarr:hover { background: rgba(255,255,255,.16); }
.pfx-heights__n { display: block; margin-top: 5px; color: var(--muted); font-size: 11.5px; }
.pfx-info { border: 1px solid var(--card-line); border-radius: 12px; background: rgba(255,255,255,.03); }
.pfx-info > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13px; font-weight: 600; color: var(--text); }
.pfx-info > summary::-webkit-details-marker { display: none; }
.pfx-info > summary svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.pfx-info > summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.pfx-info[open] > summary::after { transform: rotate(-135deg); }
.pfx-info__b { padding: 0 12px 10px; display: flex; flex-direction: column; gap: 7px; }
.pfx-info__b p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.pfx-ramp { display: flex; flex-direction: column; gap: 5px; }
.pfx-ramp__bar { display: block; height: 10px; border-radius: 5px; border: 1px solid rgba(255,255,255,.12); }
.pfx-ramp__lbl { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.pfx-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin: 0 -2px; }
.pfx-days::-webkit-scrollbar { display: none; }
.pfx-day { flex: none; min-width: 64px; padding: 7px 8px; border-radius: 12px; border: 1px solid var(--card-line); background: rgba(255,255,255,.035); color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font: inherit; position: relative; }
.pfx-day b { font: 600 12.5px/1.1 var(--font-body); }
.pfx-day small { color: var(--muted); font-size: 11px; }
.pfx-day:hover { background: rgba(255,255,255,.07); }
.pfx-day.is-on { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.pfx-day.is-on small { color: inherit; opacity: .75; }
.pfx-day.is-past:not(.is-on) { border-style: dashed; }
.pfx-day--pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pfx-day--pick::after { content: ''; width: 14px; height: 2px; border-radius: 2px; background: var(--muted); margin-top: 6px; }
.pfx-seg { display: flex; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--card-line); }
.pfx-seg .seg__btn { flex: 1; border: 0; background: none; color: var(--text-2); font: 500 12.5px/1 var(--font-body); padding: 8px 6px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pfx-seg .seg__btn.is-on { background: rgba(255,255,255,.12); color: var(--text); }
.pfx-time { display: flex; align-items: center; gap: 12px; }
.pfx-time__big { font: 600 34px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 96px; }
.pfx-time__sub { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.pfx-time__sub small { color: var(--muted); font-size: 11.5px; }
.pfx-wbig { font: 600 24px/1 var(--font-display); }
.pfx-wbig small { font-size: 13px; color: var(--text-2); }
.pfx-play { width: 40px; height: 40px; border-radius: 50%; background: var(--accent) !important; color: var(--accent-ink) !important; flex: none; }
.pfx-play svg { width: 18px; height: 18px; }
.pfx-play:disabled { opacity: .4; }
.pfx-arrow { width: 52px; height: 52px; color: var(--accent); flex: none; transform: rotate(var(--r)); transition: transform .5s var(--ease); }
.pfx-arrow svg { width: 100%; height: 100%; }
.pfx-range { width: 100%; accent-color: var(--accent); margin: 0; height: 26px; }
.pfx-range__ends { display: flex; justify-content: space-between; color: var(--muted); font: 500 11px/1 var(--font-mono); margin-top: -6px; }
.pfx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.pfx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pfx-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(255,255,255,.15); }
.pfx-legend--ramp { align-items: center; flex-wrap: nowrap; }
.pfx-legend--ramp i { flex: 1; height: 10px; border-radius: 5px; }
.pfx-prog { height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.pfx-prog i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.pfx-prog--busy i { width: 40%; animation: pfx-busy 1.1s ease-in-out infinite; }
@keyframes pfx-busy { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.pfx-pick { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 209, 102, .08); border: 1px solid rgba(255, 209, 102, .25); font-size: 13px; }
.pfx-pick span { color: var(--text-2); }
.pfx-anim { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--glass-line, rgba(255,255,255,.1)); }
.pfx-anim > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pfx-anim b { font-size: 13.5px; font-weight: 600; }
.pfx-anim small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.pfx-anim .switch { flex: none; cursor: pointer; }
.pfx-toggles { display: flex; flex-direction: column; gap: 8px; }
.pfx-chk { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; }
.pfx-chk input { accent-color: var(--accent); width: 16px; height: 16px; }
.pfx-chk.is-fixed { color: var(--muted); cursor: default; }
.pfx-wind-cv { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
body.has-pfx .tiles, body.has-pfx .detail { display: none !important; }
body:is(.pfx-sun-on, .pfx-wind-on) #scrubberRow { display: none !important; }
body.has-page .pfx, body.has-page .off-frame, body.has-page .net-pill { display: none !important; }

/* layers popover: Plan buttons */
.pop__plan { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.plan-btn { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--card-line); background: rgba(255,255,255,.04); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.plan-btn:hover { background: rgba(255,255,255,.08); }
.plan-btn .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }
.plan-btn span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-btn b { font: 600 12.5px/1.15 var(--font-body); }
.plan-btn small { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.plan-btn.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* huts */
.hut-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--card-line); }
.hut-card__h { display: flex; gap: 10px; align-items: flex-start; }
.hut-card__h > div { flex: 1; min-width: 0; }
.hut-card__h h3 { margin: 0; font: 600 16px/1.25 var(--font-display); }
.hut-card__h p { margin: 2px 0 0; color: var(--text-2); font-size: 12.5px; }
.hut-card__dot { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; }
.hut-card__dot svg { width: 19px; height: 19px; }
.hut-card__dot--staffed { background: #ffb547; color: #2a1a00; }
.hut-card__dot--shelter { background: #8fd0ff; color: #05233a; }
i.hut-card__dot--staffed, i.hut-card__dot--shelter { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.hut-card__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hut-card__facts li { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text-2); }
.hut-card__res { margin: 0; font-size: 12.5px; color: var(--text-2); }
.hut-card__act { display: flex; flex-wrap: wrap; gap: 6px; }
.hut-card__act .btn { text-decoration: none; }
.hut-card__more { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; }
.hut-card__more a.linkbtn { color: var(--accent); text-decoration: none; }
.hut-card__src { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.4; }
.hut-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hut-list__n { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.hut-li { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.03); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.hut-li:hover, .hut-li.is-on { background: rgba(255,255,255,.08); border-color: var(--card-line); }
.hut-li span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hut-li b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hut-li small { color: var(--muted); font-size: 11.5px; }
.hut-li em { font-style: normal; font-size: 11px; color: #ffb547; border: 1px solid rgba(255,181,71,.4); border-radius: 999px; padding: 2px 7px; }
.pfx.has-sel .hut-list__n { margin-top: 2px; }

/* offline */
.off-storage { padding: 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(107,245,193,.10), rgba(90,209,255,.06)); border: 1px solid var(--card-line); display: flex; flex-direction: column; gap: 6px; }
.off-storage__n { display: flex; align-items: baseline; gap: 8px; }
.off-storage__n b { font: 600 26px/1 var(--font-display); letter-spacing: -.02em; }
.off-storage__n span, .off-storage__f { color: var(--text-2); font-size: 12.5px; }
.off-storage__f { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.off-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.08); gap: 1px; }
.off-bar i { display: block; height: 100%; }
.off-new { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; font-size: 14px; }
.off-new svg { width: 18px; height: 18px; }
.off-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.off-area { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--card-line); }
.off-area.is-focus { border-color: var(--accent); }
.off-area__sw { width: 12px; height: 34px; border-radius: 4px; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.off-area__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.off-area__txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.off-area__meta { color: var(--muted); font-size: 12px; }
.off-area__act { display: flex; gap: 2px; align-items: center; }
.off-area__act .iconbtn { width: 32px; height: 32px; }
.off-area__act .iconbtn svg { width: 16px; height: 16px; }
.off-prog { height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.off-prog i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.off-empty { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.off-sel { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--accent); background: rgba(255,255,255,.03); }
.off-sel .field { display: flex; flex-direction: column; gap: 5px; }
.off-sel .field__label { font-size: 12px; color: var(--text-2); }
.off-est { display: flex; flex-direction: column; gap: 2px; }
.off-est b { font: 600 18px/1.2 var(--font-display); }
.off-est span { font-size: 12px; color: var(--muted); }
.off-warn p { margin: 0; font-size: 12.5px; color: #ffcf8a; line-height: 1.4; }
.off-frame { position: absolute; z-index: 13; pointer-events: none; border-radius: 18px; border: 2px solid var(--accent);
  box-shadow: 0 0 0 200vmax rgba(5, 9, 14, .5), 0 0 26px rgba(107, 245, 193, .55), inset 0 0 26px rgba(107, 245, 193, .22);
  left: calc(var(--inset) + 380px + 36px); right: 84px; top: calc(var(--strip-h) + 60px); bottom: 90px; }
.off-frame[hidden] { display: none; }
.off-frame__c { position: absolute; width: 22px; height: 22px; border: 3px solid #fff; }
.off-frame__c--tl { left: -3px; top: -3px; border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; }
.off-frame__c--tr { right: -3px; top: -3px; border-left: 0; border-bottom: 0; border-radius: 0 16px 0 0; }
.off-frame__c--bl { left: -3px; bottom: -3px; border-right: 0; border-top: 0; border-radius: 0 0 0 16px; }
.off-frame__c--br { right: -3px; bottom: -3px; border-left: 0; border-top: 0; border-radius: 0 0 16px 0; }
.off-frame__lbl { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 12px/1 var(--font-mono); white-space: nowrap; }
.net-pill { position: absolute; z-index: 19; left: 50%; transform: translateX(-50%); top: calc(var(--strip-h) + var(--inset)); padding: 8px 14px; border-radius: 999px; background: #3a2a0c; color: #ffd98a; border: 1px solid rgba(255,200,100,.4); font-size: 13px; font-weight: 500; box-shadow: var(--shadow); }
.net-pill[hidden] { display: none; }

/* guidebooks */
.gd-where { margin: 0; color: var(--muted); font-size: 12px; }
.gd-groups { display: flex; flex-direction: column; gap: 12px; }
.gd-g h4 { margin: 0 0 6px; font: 500 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.gd-g ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gd-g li { display: flex; align-items: center; gap: 8px; border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid transparent; }
.gd-g li:hover { background: rgba(255,255,255,.07); border-color: var(--card-line); }
.gd-g a { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; color: var(--text); text-decoration: none; }
.gd-g a b { font-size: 13.5px; font-weight: 600; }
.gd-g a b::after { content: ' \2197'; color: var(--muted); font-weight: 400; }
.gd-g a span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.gd-g em { font-style: normal; font: 500 10px/1 var(--font-mono); color: var(--muted); border: 1px solid var(--card-line); border-radius: 6px; padding: 3px 5px; margin-right: 8px; }
.gd-groups--compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

/* Today: plan your day */
.td-plan__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.td-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--card-line); background: var(--card); color: var(--text); cursor: pointer; font: inherit; transition: background .15s, border-color .15s, transform .15s; }
.td-tile:hover { background: var(--card-hover); border-color: var(--glass-line-strong); transform: translateY(-1px); }
.td-tile b { font: 600 15.5px/1.2 var(--font-display); margin-top: 6px; }
.td-tile span:not(.td-tile__ic) { font-size: 13px; color: var(--text); line-height: 1.4; }
.td-tile small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.td-tile__ic { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; }
.td-tile__ic .ic, .td-tile__ic svg { width: 20px; height: 20px; }
.td-tile__ic--sun { background: rgba(255, 209, 102, .16); color: #ffd166; }
.td-tile__ic--wind { background: rgba(90, 209, 255, .14); color: #5ad1ff; }
.td-tile__ic--hut { background: rgba(255, 181, 71, .16); color: #ffb547; }
.td-tile__ic--off { background: rgba(107, 245, 193, .14); color: #6bf5c1; }
.td-huts { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.td-huts button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--card-line); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; font: inherit; }
.td-huts button:hover { background: rgba(255,255,255,.07); }
.td-huts b { font-size: 13.5px; }
.td-huts small { color: var(--muted); font-size: 12px; }
.td-guides .td-sec__bar .btn { display: inline-flex; align-items: center; gap: 6px; }
.td-guides .td-sec__bar .btn .ic { width: 15px; height: 15px; }
.td-guides { margin-top: 20px; }
.td-guides__b { margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1000px) { .td-plan__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 860px) {
  /* phone: bottom sheet with a grey bar; the floating island hides while it is open */
  .pfx, .pfx--wide { left: 0; right: 0; width: auto; top: auto; bottom: 0; max-height: 54vh; border-radius: 20px 20px 0 0; border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); animation: pfx-up .26s var(--ease); transition: max-height .22s var(--ease); }
  .pfx.is-dragging { transition: none; }
  .pfx[data-snap="max"] { max-height: 88vh; }
  .pfx[data-snap="min"] .pfx__b { display: none; }
  .pfx[data-snap="min"] .pfx__h { cursor: pointer; padding-bottom: 12px; }
  /* slim stage: only the time and its slider, so most of the map stays visible */
  .pfx[data-snap="strip"] .pfx__h { display: none; }
  .pfx[data-snap="strip"] .pfx__b { overflow: hidden; padding-top: 6px; gap: 6px; }
  .pfx[data-snap="strip"] .pfx__b > :not(.pfx-time, .pfx-range, .pfx-range__ends, .pfx-cloudstrip, .pfx-note, .pfx-prog) { display: none; }
  .pfx[data-snap="strip"] .pfx-time { gap: 10px; }
  .pfx[data-snap="strip"] .pfx-time__big { font-size: 22px; min-width: 64px; }
  .pfx[data-snap="strip"] .pfx-time__sub { font-size: 12.5px; }
  .pfx[data-snap="strip"] .pfx-time__sub small { display: none; }
  .pfx[data-snap="strip"] .pfx-play { width: 34px; height: 34px; }
  .pfx__grab { display: flex; justify-content: center; align-items: center; height: 22px; margin-bottom: -8px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; flex: none; position: relative; }
  .pfx__grab::before { content: ""; position: absolute; inset: -6px 0 -4px; }
  .pfx__grab span { width: 40px; height: 4px; border-radius: 2px; background: var(--glass-line-strong); display: block; }
  .pfx__grab:focus-visible { outline: none; } .pfx__grab:focus-visible span { background: var(--accent); }
  .pfx__b { padding-bottom: 12px; }
  body.has-pfx #dock, body.has-pfx .dock { display: none !important; }
  body.has-pfx .toast { bottom: calc(var(--pfx-h, 54vh) + 10px); }
  body.has-pfx .maplibregl-ctrl-bottom-left, body.has-pfx .maplibregl-ctrl-bottom-right, body.has-pfx .attribution { display: none; }
  .pfx-time__big { font-size: 28px; min-width: 80px; }
  .off-frame { left: 18px; right: 18px; top: calc(var(--strip-h) + 40px + env(safe-area-inset-top, 0px)); bottom: calc(var(--pfx-h, 54vh) + 18px); }
  body.has-pfx .legends { display: none; }
  .td-tile { padding: 13px; }
}
@media (max-width: 480px) { .td-plan__grid { grid-template-columns: 1fr 1fr; gap: 8px; } .td-tile small { display: none; } }

/* v3 guide or patrol verification form */
.vf-ev { border: 1px solid var(--card-line); border-radius: 14px; padding: 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.vf-ev legend { padding: 0 6px; }
.vf-ev .hint { margin: 0; }
.vf-ev input[type=file] { font-size: 12.5px; color: var(--text-2); }
.vf-never { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text-2); padding: 8px 10px; border-radius: 10px; background: rgba(107, 245, 193, .07); border: 1px solid rgba(107, 245, 193, .2); }
.vf-role .chip { cursor: pointer; }
.vf-role .chip input { accent-color: var(--accent); margin-right: 6px; }

@keyframes pfx-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 861px) { .pfx__grab { display: none !important; } }

/* v3.1 Mountain layers as tiles (on/off) */
.ovl--tog { position: relative; cursor: pointer; }
.ovl--tog input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ovl--tog:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.ovl--tog:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ovl--tog:has(input:checked)::after { content: ""; position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062a1e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ovl__sw--pistes { background: linear-gradient(90deg, #2ecc40 0 25%, #1e90ff 25% 50%, #e53935 50% 75%, #111 75% 100%); }
.ovl__sw--avy { background: linear-gradient(90deg, #ccff66 0 20%, #ffff00 20% 40%, #ff9900 40% 60%, #ff0000 60% 80%, #000 80% 100%); }
.ovl__sw--reports { background: radial-gradient(circle at 30% 40%, #a78bfa 0 18%, transparent 20%), radial-gradient(circle at 70% 62%, #facc15 0 16%, transparent 18%), linear-gradient(135deg, rgba(79,156,255,.25), rgba(79,156,255,.1)); box-shadow: inset 0 0 0 1.5px rgba(79,156,255,.8); }
.legend__dot { width: 11px; height: 11px; border-radius: 50%; flex: none; display: inline-block; }
.legend__area { width: 14px; height: 10px; border-radius: 2px; flex: none; display: inline-block; }
.ovl__sw--hist { background: linear-gradient(90deg, rgba(48,12,110,.25) 0%, #300c6e 12%, #6a1b9a 30%, #d0217a 50%, #ff6a2a 70%, #ffc93c 88%, #fff7c8 100%); }

/* v3.1 Today: the avalanche card stands on its own */
.td-grid.td-grid--one { grid-template-columns: 1fr; }
@media (min-width: 561px) {
  .td-grid--one .td-avy { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 22px; }
  .td-grid--one .td-avy .td-card__h { grid-column: 1 / -1; }
  .td-grid--one .td-avy .td-card__note { margin: 0; }
}

/* v3.1 sun and shade with the weather */
.pfx-cloud { color: #c9d3e0; font-size: 12.5px; }
.pfx-cloudstrip { display: flex; flex: 0 0 10px; gap: 2px; height: 10px; min-height: 10px; margin-top: -4px; }
.pfx-cloudstrip i { flex: 1; border-radius: 3px; background: rgba(255, 205, 110, calc(.55 - .45 * var(--c))); box-shadow: inset 0 0 0 20px rgba(168, 176, 190, calc(var(--c) * .75)); }
.pfx-attr { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
/* v3.2 wind by height + wind loading */
.pfx-heights { border: 1px solid var(--card-line); border-radius: 12px; padding: 9px 12px; background: rgba(255,255,255,.03); }
.pfx-heights > b { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.pfx-heights ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 3px; }
.pfx-heights li { display: grid; grid-template-columns: 1fr auto 7.5em; gap: 8px; align-items: baseline; font-size: 13px; }
.pfx-heights li span { color: var(--text-2); }
.pfx-heights li small { color: var(--muted); font-size: 12px; }
.pfx-loadsum { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(150,60,255,.08); border: 1px solid rgba(150,60,255,.25); }
.pfx-loadsum p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.pfx-loadprog { height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.pfx-loadprog i { display: block; height: 100%; background: var(--accent); transition: width .2s; }

/* v3.7 Today location note and the brief dot where you tapped */
.td-locnote { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 8px; padding: 4px 10px 4px 8px; border-radius: 999px; font: 500 12.5px/1.2 var(--font-body); color: var(--text-2); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.td-locnote .ic, .td-locnote svg { width: 14px; height: 14px; flex: none; }
.td-locnote--gps { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.td-locnote--pick { color: var(--text-1, #e8eef4); }
.td-hero__btns .btn svg.ic { width: 15px; height: 15px; }
.td-pickdot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent, #4fe0b0); border: 3px solid #fff; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #4fe0b0) 60%, transparent), 0 2px 8px rgba(0,0,0,.45); animation: tdPick 0.9s ease-out infinite; transition: opacity .3s, transform .3s; pointer-events: none; }
.td-pickdot.is-out { opacity: 0; transform: scale(.6); }
@keyframes tdPick { to { box-shadow: 0 0 0 18px transparent, 0 2px 8px rgba(0,0,0,.45); } }
@media (prefers-reduced-motion: reduce) { .td-pickdot { animation: none; } }
/* choosing an offline area: the map stays flat and north-up, so the tilt slider is put away */
body.off-selecting .tilt { display: none !important; }
/* offline frame corners: drag to change the shape (a larger invisible touch target round each corner) */
.off-frame__c { pointer-events: auto; touch-action: none; cursor: nwse-resize; }
.off-frame__c--tr, .off-frame__c--bl { cursor: nesw-resize; }
.off-frame__c::before { content: ""; position: absolute; inset: -16px; }
.off-frame__c::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--accent); }
.off-frame__c--tl::after { left: -6px; top: -6px; } .off-frame__c--tr::after { right: -6px; top: -6px; }
.off-frame__c--bl::after { left: -6px; bottom: -6px; } .off-frame__c--br::after { right: -6px; bottom: -6px; }
.off-frame.is-resizing { border-style: dashed; }
