/* :root tokens live in tokens.css (synced from Claude Design) */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font-family: -apple-system, "SF Pro Text", Roboto, "Segoe UI", sans-serif; font-size: var(--fs-base); overflow: hidden; }
#map { position: absolute; inset: 0; background: var(--bg); }
.leaflet-tile { filter: brightness(.72) contrast(1.1) saturate(.7); }
.leaflet-control-attribution { background: var(--scrim) !important; color: var(--muted) !important; font-size: var(--fs-xs); }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-control-zoom { display: none; }

#topbar { position: absolute; top: calc(env(safe-area-inset-top) + 10px); left: 10px; right: 10px; z-index: 900;
  display: flex; flex-direction: column; gap: var(--sp-2); pointer-events: none; }
#topbar > * { pointer-events: auto; }
.seg { display: inline-flex; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; align-self: flex-start; backdrop-filter: blur(8px); }
.seg button { border: 0; background: transparent; color: var(--muted); font-weight: 600; padding: 6px 14px; border-radius: var(--r-pill); font-size: var(--fs-m); }
.seg button.on { background: var(--accent); color: var(--on-accent); }
/* site search with suggestions */
#row1 { display: flex; gap: var(--sp-2); align-items: center; }
#search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 360px; z-index: 5; }
#row1 .seg { flex: 0 0 auto; }
#row1 .seg button { padding: 6px 10px; }
#q { width: 100%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); border-radius: var(--r-pill);
  padding: 8px 14px; font-size: var(--fs-base); font-family: inherit; backdrop-filter: blur(8px); outline: none; -webkit-appearance: none; }
#q::placeholder { color: var(--muted); }
#q:focus { border-color: var(--accent); }
#sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.45); max-height: 50vh; overflow-y: auto; }
#sugg.hidden { display: none; }
.sg { padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.sg:last-child { border-bottom: 0; }
.sg:hover, .sg:active { background: var(--panel2); }
.sg b { display: block; font-size: var(--fs-m); }
.sg small { color: var(--muted); font-size: var(--fs-s); }
.sg.none { color: var(--muted); font-size: var(--fs-s); cursor: default; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--glass); color: var(--muted); border-radius: var(--r-pill); padding: 5px 11px; font-size: var(--fs-s); font-weight: 600; backdrop-filter: blur(8px); }
.chip.on { border-color: var(--accent); color: var(--accent); }

#status { position: absolute; left: 10px; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 900;
  font-size: var(--fs-s); color: var(--muted); background: var(--glass); padding: 4px 8px; border-radius: var(--r-s); max-width: 60vw; }
#status.warn { color: var(--amber); }

#listBtn, #locBtn { position: absolute; right: 10px; z-index: 900; width: 44px; height: 44px; border-radius: var(--r-l);
  border: 1px solid var(--line); background: var(--glass); color: var(--ink); font-size: var(--fs-2xl); backdrop-filter: blur(8px); }
#listBtn { bottom: calc(env(safe-area-inset-bottom) + 64px); }
#locBtn { bottom: calc(env(safe-area-inset-bottom) + 12px); }

/* markers (SVG so drive dots can sit under the pin) */
.pinsvg { width: 28px; height: 40px; display: block; overflow: visible; }
.pin { stroke: var(--bg); stroke-width: 2; }
.pin.green { fill: var(--st-ok); } .pin.amber { fill: var(--st-warn); }
.pin.red { fill: var(--st-bad); } .pin.grey { fill: var(--st-none); }
.pin.fav { stroke: var(--accent); stroke-width: 2.5; }
/* drive-time dots: full = whole hour, hollow = half hour */
.drv { fill: var(--ink); stroke: var(--bg); stroke-width: .8; }
.drvh { fill: var(--bg); stroke: var(--ink); stroke-width: 1.2; }
.drvn { font: 700 var(--fs-xs) -apple-system, Roboto, sans-serif; fill: var(--ink); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--bg); stroke-width: 2px; }
/* mini flyable-direction ring around the site dot on markers */
.mr { stroke: var(--bg); stroke-width: .6; }
.mr.ok { fill: var(--green); } .mr.no { fill: var(--ring-off); }
/* marker tooltip (hover / tap) */
.siteTip { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); padding: 7px 10px;
  font-size: var(--fs-s); line-height: 1.4; box-shadow: 0 6px 20px rgba(0,0,0,.5); white-space: nowrap; }
.siteTip b, .siteTip span { display: block; }
.siteTip b { font-size: var(--fs-m); }
.siteTip span { color: var(--muted); }
.siteTip .st { font-weight: 600; }
.siteTip .st.green { color: var(--st-ok); } .siteTip .st.amber { color: var(--st-warn); }
.siteTip .st.red { color: var(--st-bad); } .siteTip .st.grey { color: var(--muted); }
.leaflet-tooltip-top.siteTip::before { border-top-color: var(--line); }
/* landing-field outline tooltip (2026-09-07) - same look as the marker tooltip */
.landingTip { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); padding: 6px 10px;
  font-size: var(--fs-s); line-height: 1.4; box-shadow: 0 6px 20px rgba(0,0,0,.5); white-space: nowrap; }
.landingTip b { font-size: var(--fs-m); }
.leaflet-tooltip-top.landingTip::before { border-top-color: var(--line); }
/* flyable-height tag on markers (+320); omitted entirely when unknown */
.pinsvg .fh, .cone .fh { font: 700 var(--fs-xs) -apple-system, Roboto, sans-serif; fill: var(--ink); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--bg); stroke-width: 2px; opacity: .95; }
.cluster { background: var(--glass); border: 2px solid var(--line); color: var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-s); }
.cluster.green { border-color: var(--st-ok); } .cluster.amber { border-color: var(--st-warn); } .cluster.red { border-color: var(--st-bad); }

/* bottom sheet */
#sheetClose { position: absolute; top: 10px; right: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel2); border: 1px solid var(--line); color: var(--muted); font-size: var(--fs-l); cursor: pointer; }
#sheetClose:focus-visible { outline: 2px solid var(--accent); }
#sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 950; background: var(--panel); border-radius: var(--r-xl) var(--r-xl) 0 0;
  max-height: 78vh; display: flex; flex-direction: column; box-shadow: 0 -8px 30px rgba(0,0,0,.5);
  transform: translateY(0); transition: transform .25s ease; }
#sheet.hidden { transform: translateY(110%); }
.grip { width: 40px; height: 4px; border-radius: var(--r-xs); background: var(--line); margin: 8px auto 4px; flex: none; }
#sheetBody { overflow-y: auto; overflow-x: hidden; padding: 6px 16px calc(env(safe-area-inset-bottom) + 16px); }
h2 { margin: 0 44px 0 0; font-size: var(--fs-xl); font-weight: 700; line-height: 1.25; }
/* favourite toggle: big star left of the ✕, persisted server-side */
#favBtn { display: inline-block; vertical-align: -3px; margin-left: 4px; width: 34px; height: 34px; border: 0; background: transparent;
  color: var(--grey); font-size: var(--fs-3xl); line-height: 34px; cursor: pointer; padding: 0; transition: color .15s, transform .15s; }
#favBtn.on { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow); }
#favBtn:active { transform: scale(.85); }
#favBtn:disabled { opacity: .5; }
#favBtn:focus-visible { outline: 2px solid var(--accent); border-radius: 50%; }
.sub { color: var(--muted); font-size: var(--fs-s); margin: 2px 0 10px; }
/* 2026-10-09 (design review 4): the verdict for the selected day, first thing under the name; the status word carries
   the meaning, the edge colour repeats it (colour is never the only cue) */
.verdict { display: flex; flex-direction: column; gap: 2px; margin: -2px 0 12px; padding: 8px 12px; border-radius: var(--r-m);
  background: var(--panel2); border-left: 4px solid var(--grey); }
.verdict b { font-size: var(--fs-l); font-weight: 700; line-height: 1.3; }
.verdict span { font-size: var(--fs-base); line-height: 1.35; color: var(--ink); opacity: .82; }
.verdict.green { border-left-color: var(--st-ok); } .verdict.green b { color: var(--st-ok); }
.verdict.amber { border-left-color: var(--st-warn); } .verdict.amber b { color: var(--st-warn); }
.verdict.red { border-left-color: var(--st-bad); } .verdict.red b { color: var(--st-bad); }
.verdict.grey b { color: var(--muted); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.badge { font-size: var(--fs-s); font-weight: 600; padding: 4px 9px; border-radius: var(--r-m); background: var(--panel2); color: var(--ink); }
.badge.green { background: var(--green-soft); color: var(--st-ok); }
.badge.amber { background: var(--amber-soft); color: var(--st-warn); }
.badge.red { background: var(--red-soft); color: var(--st-bad); }
.badge.grey { color: var(--muted); }
.sec { margin: 14px 0 0; }
.lbl { font-size: var(--fs-s); font-weight: 600; line-height: 1.35; color: var(--muted); margin-bottom: 6px; }   /* 2026-10-09: sentence case, was 11 px capitals */
.val { font-size: var(--fs-m); line-height: 1.5; }
.val a { color: var(--accent); text-decoration: none; }
.dirs { display: flex; gap: 5px; flex-wrap: wrap; }
.dir { font-size: var(--fs-s); padding: 2px 8px; border-radius: var(--r-s); background: var(--panel2); font-weight: 600; }

/* flyable-wind ring + per-day 12 h rings (8 sectors), four in a line */
.ringRow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-1); }
.ringCell { display: flex; flex-direction: column-reverse; align-items: center; gap: 7px; min-width: 0; position: relative; }
.ringCell.hasTip { cursor: pointer; border-radius: var(--r-m); padding-bottom: 3px; }
.ringCell:focus-visible { outline: 2px solid var(--accent); border-radius: var(--r-m); }
.ringCell.sel { background: var(--panel2); box-shadow: inset 0 -2px 0 var(--ink); }
/* 2026-10-05: hourly wind chart under the rings (tap a day ring) - bands low / optimal / too high, arrows blow downwind */
#dayChart:not(:empty) { margin-top: 10px; }
.dchart { width: 100%; height: auto; display: block; }   /* at limit: between amber and red */
.dband { opacity: .13; }
.dband.amber { opacity: .16; }
.dband.orange { opacity: .15; } .dband.red { opacity: .2; }
.dband.amber { fill: var(--amber); } .dband.green { fill: var(--green); } .dband.orange { fill: var(--orange); } .dband.red { fill: var(--red); }
.dbl { font-size: var(--fs-xs); font-weight: 600; opacity: .85; }
.dbl.amber { fill: var(--amber); } .dbl.green { fill: var(--green); } .dbl.orange { fill: var(--orange); } .dbl.red { fill: var(--red); }
.dtick { fill: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.darr path { stroke: var(--bg); stroke-width: .8; paint-order: stroke; }
.darr .shaft { stroke-width: 2.6; stroke-linecap: round; fill: none; paint-order: normal; }
.darr.amber path, .darr.amber { fill: var(--amber); } .darr.amber .shaft { stroke: var(--amber); }
.darr.green path, .darr.green { fill: var(--green); } .darr.green .shaft { stroke: var(--green); }
.darr.orange path, .darr.orange { fill: var(--orange); } .darr.orange .shaft { stroke: var(--orange); }
.darr.red path, .darr.red { fill: var(--red); } .darr.red .shaft { stroke: var(--red); }
.ringCap { font-size: var(--fs-s); color: var(--muted); text-align: center; line-height: 1.3; white-space: normal; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ringCap b { display: block; color: var(--ink); font-size: var(--fs-s); }
/* 2026-10-07: rough-air line under each day ring (placeholder in every cell keeps the rings level) */
.ringCell .rough { font-size: var(--fs-s); line-height: 14px; height: 14px; color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ringCell .rough.on { color: var(--red); font-weight: 700; }
.ringCap .st { font-weight: 600; }
.ringCap .st.green { color: var(--st-ok); } .ringCap .st.amber { color: var(--st-warn); }
.ringCap .st.red { color: var(--st-bad); } .ringCap .st.grey { color: var(--muted); }
.ring { width: 80px; height: 80px; display: block; overflow: visible; }
.ring .ok { fill: var(--green); }
.ring .no { fill: var(--grey); opacity: .5; }
.ring .st.green { fill: var(--st-ok); } .ring .st.amber { fill: var(--st-warn); }
.ring .st.red { fill: var(--st-bad); } .ring .st.grey, .ring .st.unknown { fill: var(--muted); }
.ring .arr { stroke-width: 1.8; stroke-linecap: round; }
.ring .arr.green { stroke: var(--st-ok); } .ring .arr.amber { stroke: var(--st-warn); }
.ring .arr.red { stroke: var(--st-bad); } .ring .arr.grey, .ring .arr.unknown { stroke: var(--muted); }
.ring .spd { font: 800 var(--fs-xs) -apple-system, Roboto, sans-serif; fill: var(--bg); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(255,255,255,.55); stroke-width: 2px; }
.ring .card { font: 600 var(--fs-xs) -apple-system, Roboto, sans-serif; fill: var(--muted); text-anchor: middle; }
.ring .mid { font-weight: 700; font-family: -apple-system, Roboto, sans-serif; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.ring .mid.none { fill: var(--muted); font-weight: 500; }

/* hourly forecast strip */
.hours { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.hr { text-align: center; font-size: var(--fs-xs); color: var(--muted); }
.hr .bar { height: 46px; border-radius: var(--r-s); background: var(--panel2); position: relative; margin-bottom: 3px; overflow: hidden; }
.hr .fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: var(--r-s); opacity: .85; }
.hr.green .fill { background: var(--green); } .hr.amber .fill { background: var(--amber); }
.hr.red .fill { background: var(--red); } .hr.unknown .fill { background: var(--grey); }
.hr .ms { font-weight: 700; color: var(--ink); font-size: var(--fs-s); }
.hr .arrow { display: inline-block; font-size: var(--fs-s); color: var(--ink); }
.daysum { display: flex; gap: var(--sp-2); margin: 6px 0 8px; font-size: var(--fs-s); color: var(--muted); }

/* wind rose */
.roseWrap { display: flex; align-items: center; gap: 14px; }
.rose { width: 130px; height: 130px; flex: none; }
.roseTxt { font-size: var(--fs-s); color: var(--muted); line-height: 1.5; }

/* external map links (exact GPS) */
.ext { display: flex; gap: 6px; flex-wrap: wrap; }
.extl { font-size: var(--fs-s); font-weight: 600; padding: 6px 11px; border-radius: var(--r-m); background: var(--panel2); color: var(--accent); text-decoration: none; border: 1px solid var(--line); }
.extl:active { background: var(--line); }
.cams { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.cam { display: block; border-radius: var(--r-m); overflow: hidden; background: var(--panel2); color: var(--muted); font-size: var(--fs-s); text-decoration: none; }
.cam img { width: 100%; height: 80px; object-fit: cover; display: block; }
.cam span { display: block; padding: 5px 7px; }

/* list */
#list { position: absolute; inset: 0; z-index: 960; background: var(--bg); display: flex; flex-direction: column; }
#list.hidden { display: none; }
.listHead { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 14px) 16px 10px; font-weight: 700; border-bottom: 1px solid var(--line); }
.listHead button { border: 0; background: var(--panel2); color: var(--ink); width: 32px; height: 32px; border-radius: var(--r-m); font-size: var(--fs-base); }
/* 2026-10-23 (Fable review #4, Erik): sort order only - no thermal column on the rows */
.listSort { display: flex; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.listSort button { border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: var(--fs-s); padding: 6px 12px; border-radius: var(--r-pill); }
.listSort button.on { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
#listBody { overflow-y: auto; padding: 6px 12px calc(env(safe-area-inset-bottom) + 12px); }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.row .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.row .dot.green { background: var(--green); } .row .dot.amber { background: var(--amber); }
.row .dot.red { background: var(--red); } .row .dot.grey { background: var(--grey); }
.row .nm { flex: 1; font-weight: 600; }
.row .nm small { display: block; color: var(--muted); font-weight: 400; font-size: var(--fs-s); }
.row .rt { color: var(--muted); font-size: var(--fs-s); text-align: right; white-space: nowrap; }
.row .rt b { color: var(--ink); }

/* drive slider chip */
.chip.slider { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 4px 10px; }
.chip.slider input { width: 110px; accent-color: var(--accent); margin: 0; }
.chip.slider.on { border-color: var(--accent); }
#driveLbl { white-space: nowrap; }

/* fly cone markers (all forecast sites): wedge aims into the wind (where it blows from), number = noon m/s */
.cone { width: 80px; height: 80px; display: block; overflow: visible; }
.cone .wedge.green { fill: var(--st-ok); } .cone .wedge.amber { fill: var(--st-warn); }
.cone .wedge.red { fill: var(--st-bad); } .cone .wedge.unknown, .cone .wedge.grey { fill: var(--st-none); }
.cone text { font: 800 var(--fs-m) -apple-system, Roboto, sans-serif; fill: var(--bg); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(255,255,255,.55); stroke-width: 2px; }
.cone .site { fill: var(--bg); stroke: var(--white); stroke-width: 1.5; }
.cone.fav .site { stroke: var(--accent); stroke-width: 2.5; }

/* detail-sheet cone trio: 3 days × 11/13/15 h, same cone symbol as the map */
.wc { display: grid; grid-template-columns: 92px repeat(3, 1fr); gap: 2px 4px; align-items: center; }
.wc .cl { font-size: var(--fs-s); font-weight: 600; color: var(--muted); text-align: center; }
.wc .rl { font-size: var(--fs-s); color: var(--muted); line-height: 1.3; }
.wc .rl b { color: var(--ink); font-size: var(--fs-m); }
.wc .rl .st { font-weight: 600; font-size: var(--fs-s); }
.wc .rl .st.green { color: var(--st-ok); } .wc .rl .st.amber { color: var(--st-warn); }
.wc .rl .st.red { color: var(--st-bad); } .wc .rl .st.grey { color: var(--muted); }
.wcCone { width: 74px; height: 74px; display: block; margin: 0 auto; overflow: visible; }
.wcCone .wedge.green { fill: var(--st-ok); } .wcCone .wedge.amber { fill: var(--st-warn); }
.wcCone .wedge.red { fill: var(--st-bad); } .wcCone .wedge.unknown { fill: var(--grey); }
.wcCone .siteDot { fill: var(--bg); stroke: var(--white); stroke-width: 1.4; }
.wcCone text { font: 800 var(--fs-s) -apple-system, Roboto, sans-serif; fill: var(--ink); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--scrim); stroke-width: 2px; }
.wcNone { text-align: center; color: var(--muted); }

/* per-day wind "thermometer" bars: 0–8 m/s scale, zones per Erik's rule */
.dayrow { margin: 10px 0 14px; }
.dayrow .dh { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-s); margin-bottom: 22px; }
.dayrow .dh b { font-size: var(--fs-m); }
.dayrow .dh .st { font-weight: 700; }
.dayrow .dh .st.green { color: var(--st-ok); } .dayrow .dh .st.amber { color: var(--st-warn); }
.dayrow .dh .st.red { color: var(--st-bad); } .dayrow .dh .st.grey { color: var(--muted); }
.tbar { position: relative; height: 10px; border-radius: var(--r-s); margin: 0 14px 26px;
  background: linear-gradient(90deg, var(--amber) 0 25%, var(--green) 25% 50%, var(--amber) 50% 75%, var(--red) 75% 100%); opacity: .95; }
.tbar .tick { position: absolute; top: 12px; font-size: var(--fs-xs); color: var(--muted); transform: translateX(-50%); }
.tbar .mk { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%;
  background: var(--panel); border: 2.5px solid var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.6); }
.tbar .mk .t { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.tbar .mk .v { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: var(--fs-s); font-weight: 700; color: var(--ink); white-space: nowrap; }
.tbar .mk .v .arr { display: inline-block; font-size: var(--fs-s); }
.tbar .mk.red { border-color: var(--red); } .tbar .mk.green { border-color: var(--green); } .tbar .mk.amber { border-color: var(--amber); }
.scale { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); margin: -18px 14px 6px; }

/* --- thermal & soaring scores (pgm-thermal wide forecast) --- */
.chip { fill: var(--panel2); stroke: var(--line); stroke-width: .6; }
.chip.green { fill: var(--green); } .chip.amber { fill: var(--amber); } .chip.low { fill: var(--st-low); } .chip.grey { fill: var(--grey); }
.chipTx { font: 700 var(--fs-xs)/1 system-ui, sans-serif; fill: var(--white); text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.25); stroke-width: .6; }
.sc { font-weight: 700; }
.sc.green { color: var(--green); } .sc.amber { color: var(--amber); } .sc.low { color: var(--muted); } .sc.grey { color: var(--muted); }
.siteTip .thl { display: block; margin-top: 3px; }
.siteTip .thh { display: block; color: var(--muted); font-size: var(--fs-s); }
.thGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.thDay { background: var(--panel2); border-radius: var(--r-m); padding: 8px 6px; text-align: center; border: 1px solid transparent; }
.thDay.sel { border-color: var(--accent); }
.thD { font-size: var(--fs-s); color: var(--muted); margin-bottom: 2px; }
.thBig { font-size: var(--fs-3xl); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.thBig.green { color: var(--green); } .thBig.amber { color: var(--amber); } .thBig.low { color: var(--muted); }
.thS { font-size: var(--fs-s); font-weight: 700; }
.thS.green { color: var(--green); } .thS.amber { color: var(--amber); } .thS.low, .thS.grey { color: var(--muted); }
.thP { font-size: var(--fs-s); color: var(--muted); margin-top: 2px; }
.thNa { font-size: var(--fs-2xl); color: var(--muted); }
.thHead { font-weight: 700; margin: 4px 0; }
.thWhy { display: flex; flex-wrap: wrap; gap: 6px; }
.thWhy span { font-size: var(--fs-s); background: var(--panel2); border-radius: var(--r-m); padding: 3px 8px; color: var(--ink); }

.thRow { margin-bottom: 10px; }
.thRowHead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: var(--fs-m); }
.thR { font-weight: 700; font-size: var(--fs-s); }
.thR small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.thR.green { color: var(--green); } .thR.amber { color: var(--amber); } .thR.low { color: var(--red); } .thR.none { color: var(--muted); }
.thGrid { grid-template-columns: repeat(3, 1fr); }
.thXc { font-size: var(--fs-base); font-weight: 700; color: var(--accent); margin-top: 2px; }

/* score boxes under the rings: thermal orange, soaring blue (fixed colours), tinted with border */
/* 2026-10-06: columns are display: contents so the thermal row and the soaring row share one height across all four
   columns (the accuracy boxes carry two-line labels, the day boxes only a number, centred) */
.sboxRow { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; grid-auto-flow: column; gap: var(--sp-1) 8px; padding: 0 2px; margin-top: 8px; }
.sboxCol { display: contents; }
.sbox { border-radius: var(--r-m); text-align: center; padding: 4px 2px 3px; font-variant-numeric: tabular-nums; border: 1.5px solid; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; }
.sbox.t { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.sbox.s { background: var(--soar-soft); border-color: var(--soar); color: var(--soar); }
.sbox .n { display: block; font-size: var(--fs-xl); font-weight: 800; line-height: 1.05; }
.sbox .u { display: block; font-size: var(--fs-xs); font-weight: 600; line-height: 1.2; opacity: .85; }
.sbox .u2 { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbox.dim { opacity: .5; }

.flag { color: var(--muted); border: 1px solid var(--muted); border-radius: var(--r-s); padding: 0 4px; font-size: var(--fs-s); }

/* 2026-10-06: model accuracy = plain grey, so it does not read as a score */
.sbox.rel { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.sbox.rel .n { font-weight: 600; font-size: var(--fs-l); }
.sbox.rel .u { line-height: 1.15; }
.sbox.rel.dim { opacity: .55; }
.badge.nav { text-decoration: none; color: inherit; }

.roseRow { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin-top: 6px; }
.roseCell { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.roseCell .rose { width: 110px; height: 110px; }

.ring path.unc { fill-opacity: .38; }   /* 2026-11-02 C3: possible real wind sectors where the model's direction is often off */
.windOff { margin-top: 4px; }
.ring .flown { fill: var(--accent); stroke: var(--bg); stroke-width: .6; }
.ring .flown.odd { fill: var(--red); }
.flownLbl { color: var(--accent); font-weight: 600; }
.dz { color: var(--red); font-weight: 700; }
.thWhy .dz { border-color: var(--red); }

/* pgm-thermal3d (2026-09-06): still top-down preview in the launch detail, tap = full-screen 3-D map with back button */
.t3dPrev { display: block; position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--bg); }
.t3dPrev img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.t3dPrev span { position: absolute; right: 8px; bottom: 8px; background: var(--scrim); color: var(--ink); font-size: var(--fs-s); padding: 4px 8px; border-radius: var(--r-m); }
.t3dSpots { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: var(--fs-s); color: var(--muted); }   /* 2026-10-23 */
.t3dSpots b { color: var(--ink); }
#t3dScreen { position: fixed; inset: 0; z-index: 5000; background: var(--bg); display: none; flex-direction: column; }
#t3dScreen.on { display: flex; }
.t3dBar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
.t3dBar button { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); padding: 6px 12px; font: inherit; }
.t3dBar span { color: var(--muted); font-size: var(--fs-m); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#t3dFrame { flex: 1; border: 0; width: 100%; }

/* why-panel (2026-09-07): tap a thermal/soaring box -> the weights behind the score as read-only sliders */
.sbox.tap { cursor: pointer; }
.sbox.tap.on { box-shadow: 0 0 0 2px var(--ink); opacity: 1; }
#whyPanel:not(:empty) { margin-top: 8px; padding: 8px 10px 6px; background: var(--panel2); border-radius: var(--r-m); }
.wHead { font-weight: 700; font-size: var(--fs-m); margin-bottom: 4px; }
.wHead .sc.t { color: var(--accent); } .wHead .sc.s { color: var(--soar); }
.wCap { font-size: var(--fs-s); color: var(--muted); margin: 8px 0 4px; }
.wRow { display: grid; grid-template-columns: minmax(0, 1fr) 34% 64px; gap: var(--sp-2); align-items: center; padding: 3px 0; }
.wLbl { min-width: 0; line-height: 1.15; }
.wLbl b { display: block; font-size: var(--fs-s); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wLbl small { display: block; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wBar { height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; position: relative; }
.wBar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); }
.wRow.pos .wBar i { background: var(--green); }
.wRow.pen .wBar i { background: var(--red); }
.wRow.chain .wBar i { background: var(--accent); }
.wRow.total { border-top: 1px solid var(--line); margin-top: 2px; padding-top: 5px; }
.wRow.total .wLbl b { color: var(--ink); }
.wVal { font-size: var(--fs-s); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wVal em { font-style: normal; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
/* instrument list (thermal): reading on its scale, thresholds as ticks, zones, points */
.wCat { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 9px 0 1px; }
.iRow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 46px; gap: var(--sp-2); align-items: center; padding: 3px 0; }
.iRow .nm { font-size: var(--fs-s); font-weight: 600; line-height: 1.15; min-width: 0; }
.iRow .nm small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iRow .pt { font-size: var(--fs-s); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.iRow .pt em { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
.iRow .pt.pos { color: var(--green); } .iRow .pt.pen { color: var(--red); } .iRow .pt.zero { color: var(--muted); }
.scale { position: relative; height: 28px; }
.scale .tr { position: absolute; left: 0; right: 0; top: 11px; height: 6px; border-radius: var(--r-pill); background: var(--line); }
.scale .zone { position: absolute; top: 11px; height: 6px; border-radius: var(--r-pill); opacity: .55; }
.scale .zone.good { background: var(--green); } .scale .zone.bad { background: var(--red); } .scale .zone.warn { background: var(--amber); }
.scale .tk { position: absolute; top: 8px; width: 1px; height: 12px; background: var(--muted); }
.scale .tk span { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.scale .mk { position: absolute; top: 5px; width: 3px; height: 18px; margin-left: -1.5px; background: var(--ink); border-radius: var(--r-xs); box-shadow: 0 0 0 1px var(--bg); }
.scale .val { position: absolute; top: -3px; transform: translateX(-50%); font-size: var(--fs-xs); font-weight: 600; line-height: 1; color: var(--ink); white-space: nowrap; background: var(--panel2); padding: 0 2px; font-variant-numeric: tabular-nums; }
.wHours { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; height: 48px; margin: 4px 0 6px; }
.wH { position: relative; background: var(--line); border-radius: var(--r-s); overflow: hidden; }
.wH i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--soar); }
.wH.sector i, .wH.rain i, .wH.none i { background: var(--red); }
.wH.weak i, .wH.strong i, .wH.gust i { background: var(--amber); }
.wH.sector, .wH.rain, .wH.none { box-shadow: inset 0 -3px 0 var(--red); }
.wH.weak, .wH.strong, .wH.gust { box-shadow: inset 0 -3px 0 var(--amber); }
.wH span { position: absolute; left: 0; right: 0; top: 2px; text-align: center; font-size: var(--fs-xs); color: var(--muted); }

/* takeoff -> landing view (2026-09-07): sheet folds away, strip at the bottom, markers + glide line on the real map */
#sheet.folded { transform: translateY(110%); }
.badge.glide { border: 0; cursor: pointer; font: inherit; font-size: var(--fs-s); font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.badge.glide:focus-visible { outline: 2px solid var(--accent); }
#glideStrip { position: absolute; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 950;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); padding: 8px 10px 8px 14px; display: flex; align-items: center; gap: var(--sp-2);
  box-shadow: 0 8px 24px rgba(0,0,0,.5); }
#glideStrip.hidden { display: none; }
#glideStrip .t { flex: 1; min-width: 0; }
#glideStrip .t b { display: block; font-size: var(--fs-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#glideStrip .t span { color: var(--muted); font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
#glideStrip button, #glideStrip .walk { flex: none; height: 32px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel2); color: var(--ink);
  font: inherit; font-size: var(--fs-s); font-weight: 700; padding: 0 10px; cursor: pointer; text-decoration: none; display: grid; place-items: center; }
#glideStrip #glideSat.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
#glideStrip #glideUp { width: 32px; padding: 0; border-radius: 50%; }
#glideStrip .earth { background: var(--green-soft); color: var(--green); border-color: transparent; }
.landMk { width: 20px; height: 20px; border-radius: var(--r-s); background: var(--green); box-shadow: 0 0 0 3px var(--green-halo), 0 2px 6px rgba(0,0,0,.6); position: relative; }
.landMk::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 2px; background: var(--bg); border-radius: var(--r-xs); }
.landMk.est { background: transparent; border: 2px dashed var(--green); box-sizing: border-box; box-shadow: none; }
.landMk.est::after { background: var(--green); }
.glideLbl { transform: translateX(-50%); white-space: nowrap; font-size: var(--fs-s); font-weight: 700; color: var(--ink); background: var(--scrim); padding: 2px 7px; border-radius: var(--r-s); }
.glideChip { transform: translateX(-50%); white-space: nowrap; font-size: var(--fs-s); font-weight: 700; color: var(--ink); background: var(--scrim-strong); border: 1px solid var(--line);
  padding: 5px 9px; border-radius: var(--r-m); font-variant-numeric: tabular-nums; }
.glideChip small { color: var(--muted); font-weight: 600; font-size: var(--fs-s); }

/* thermal why-panel round 3 (2026-09-07): sounding ladder + top contributors beside it, the rest on demand */
.ladder { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 4px; }
.ladder svg { width: 100%; height: auto; display: block; }
.side .iRow { grid-template-columns: 74px minmax(0, 1fr); gap: 6px; padding: 2px 0; }
.side .nm { font-size: var(--fs-s); }
.side .nm small { font-size: var(--fs-xs); }
.side .nm small.pos { color: var(--green); } .side .nm small.pen { color: var(--red); }
.side .tk span { display: none; }
.side .scale { height: 22px; }
.side .scale .val { font-size: var(--fs-xs); }
.wMore { display: block; width: 100%; margin: 8px 0 2px; padding: 7px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel2); color: var(--ink); font: inherit; font-size: var(--fs-s); font-weight: 600; cursor: pointer; }
@media (max-width: 360px) { .ladder { grid-template-columns: 1fr; } }
/* paragliding-mapa.cz block in the sheet (2026-09-07) */
.pm { display: flex; flex-direction: column; gap: 6px; }
.pmRow { display: grid; grid-template-columns: 108px 1fr; gap: var(--sp-2); font-size: var(--fs-m); line-height: 1.45; }
.pmRow b { color: var(--muted); font-weight: 600; font-size: var(--fs-s); overflow-wrap: anywhere; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.pmRow a { color: var(--accent); text-decoration: none; }
.pm .ext { margin-top: 4px; }
.pmPhotos { grid-template-columns: 1fr 1fr 1fr; margin-top: 6px; }
.pmPhotos .cam img { height: 70px; }
.lbl .st { text-transform: none; letter-spacing: 0; font-weight: 600; }
.lbl .st.green { color: var(--st-ok); } .lbl .st.amber { color: var(--st-warn); } .lbl .st.red { color: var(--st-bad); } .lbl .st.grey { color: var(--muted); }

/* launch profile (2026-09-19): wind heatmap, best days, switch-on, months, distances. green = model, orange = pilots, red = best pilots */
.pwrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.polar { width: 100%; max-width: 270px; height: auto; display: block; touch-action: manipulation; }
.pcell { stroke: var(--panel); stroke-width: 1.2; cursor: pointer; }
.pcell.on, .pcell:hover { stroke: var(--ink); }
.pring { fill: none; stroke: var(--line); stroke-width: 1; pointer-events: none; }
.ptick { fill: var(--muted); font-size: var(--fs-s); pointer-events: none; font-variant-numeric: tabular-nums; }
.pcomp { fill: var(--ink); font-size: var(--fs-s); font-weight: 600; text-anchor: middle; pointer-events: none; }
.pcomp.minor { fill: var(--muted); font-weight: 400; font-size: var(--fs-s); }
.pallowed { fill: none; stroke: var(--accent); stroke-width: 4.5; pointer-events: none; }
.pcap { display: flex; gap: 6px; align-items: baseline; justify-content: center; color: var(--muted); font-size: var(--fs-m); }
.pflip { background: none; border: 0; padding: 0 1px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; border-bottom: 1px dashed var(--muted); }
.pflip:active { color: var(--accent); }
.psteps { display: inline-flex; gap: var(--sp-1); margin-left: 2px; }
.psteps i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); display: inline-block; }
.psteps i.on { background: var(--ink); }
.plegend { display: flex; align-items: center; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-s); width: 100%; max-width: 270px; }
.pramp { flex: 1; height: 7px; border-radius: var(--r-s); background: var(--heat-ramp); }
.pmax { margin-left: 4px; }
.pread { width: 100%; max-width: 270px; display: flex; justify-content: space-between; gap: var(--sp-2); border-top: 1px solid var(--line); padding-top: 6px; font-size: var(--fs-s); min-height: 26px; font-variant-numeric: tabular-nums; }
.pread b { font-weight: 600; }
.pread span { color: var(--muted); text-align: right; }
.pchart { width: 100%; height: auto; display: block; }
.prow { fill: var(--ink); font-size: var(--fs-s); }
.pax { stroke: var(--line); stroke-width: 1; }
.pcalc { fill: var(--green); }
.pband { fill: var(--accent); opacity: .55; }
.pmed { fill: var(--accent); }
.ppil { fill: var(--accent); }
.pbest { fill: var(--red); }
.pval { fill: var(--ink); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.pkey { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-s); margin-top: 4px; }
.pkey i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.pbul { margin: 6px 0 0; padding-left: 18px; font-size: var(--fs-s); line-height: 1.5; font-variant-numeric: tabular-nums; }
.pbul li { margin: 1px 0; }
.pbul b { font-weight: 600; }
/* 2026-10-10 later (Erik's iPhone: the sideways scroller "fucks the detail view width"): no scroll container at all - the
 * chart SVG is exactly as wide as its box and pans through its viewBox by drag (profile.js bindSeason) */
#seaSec { min-width: 0; max-width: 100%; overflow: hidden; }
.seawrap { display: grid; grid-template-columns: 26px minmax(0, 1fr); width: 100%; max-width: 100%; margin-top: var(--sp-1); overflow: hidden; }
.seaaxis { grid-column: 1; }
.seaview { grid-column: 2; position: relative; min-width: 0; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.seaview > .seachart { display: block; width: 100%; }
.seachart { display: block; }
.seachart .seahl { fill: var(--panel); }
.seachart > :not(.seahl) { pointer-events: none; }
.seachart .sdd { text-anchor: middle; }
.pfc { fill: var(--green-soft); stroke: var(--green); stroke-width: 1.5; }
.pgrid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.pmon { stroke: var(--line); stroke-width: 1; }
.ptoday { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.pend { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; }
.ppcell { fill: var(--accent); pointer-events: none; }
.ppn { fill: var(--ink); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; text-anchor: middle; pointer-events: none; }
.ppn.dark { fill: var(--on-accent); font-weight: 600; }
.ppn.tight { letter-spacing: -0.6px; }
.pread.wide { max-width: none; }
.pkey i.pkfc { background: var(--green-soft); border: 1.5px solid var(--green); width: 8px; height: 8px; border-radius: var(--r-xs); }

/* 2026-10-05: rollouts in the launch detail (Statistics, Webcams & site info), closed by default */
.roll { margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel2); }
.roll > summary { list-style: none; display: flex; align-items: baseline; gap: var(--sp-2); padding: 11px 12px; cursor: pointer; min-width: 0; }
.roll > summary::-webkit-details-marker { display: none; }
.roll .rT { flex: none; font-weight: 600; font-size: var(--fs-m); }
.roll .rH { flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: var(--fs-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roll .rH .st { font-weight: 700; } .roll .rH .st.red { color: var(--st-bad); } .roll .rH .st.amber { color: var(--st-warn); }
.roll .rC { flex: none; color: var(--muted); font-size: var(--fs-l); line-height: 1; transition: transform .15s; align-self: center; }
.roll[open] .rC { transform: rotate(90deg); }
.roll > .rB { padding: 0 12px 12px; border-top: 1px solid var(--line); }
/* 2026-10-05 (option A): today at a launch with a wind meter - measured hours = filled arrows, forecast after "now" =
   outline arrows, grey ring = the forecast for an hour already measured; red x = wind from outside the flyable sectors */
.darr.hol path.hd { fill: var(--panel); stroke-width: 1.6; stroke-linejoin: round; paint-order: normal; }
.darr.hol.amber path.hd { stroke: var(--amber); } .darr.hol.green path.hd { stroke: var(--green); }
.darr.hol.orange path.hd { stroke: var(--orange); } .darr.hol.red path.hd { stroke: var(--red); }
.fcRing { fill: none; stroke: var(--muted); stroke-width: 1.2; opacity: .8; }
.nowL { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .55; }
.dtick.nowT { fill: var(--ink); }
.dx path { stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.meterNow { font-size: var(--fs-s); color: var(--muted); margin: 2px 0 4px; }
.meterNow b { color: var(--ink); font-weight: 600; }
.wDef { font-size: var(--fs-m); color: var(--ink); margin: 2px 0 8px; line-height: 1.4; }
/* 2026-10-05: the thermal number's one-sentence definition under the score boxes; soaring panel summary line */
.tDef { font-size: var(--fs-s); color: var(--muted); margin: 6px 0 2px; line-height: 1.4; }
#whyPanel .sum { font-size: var(--fs-m); margin: 6px 0 2px; line-height: 1.4; }
/* 2026-10-05: thermal panel = sounding + the day in one sentence + chips, then range bars against the hill's flown days */
#whyPanel .ladder .side .sum { font-size: var(--fs-m); line-height: 1.45; }
.dChips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.dChips span { font-size: var(--fs-s); border-radius: var(--r-pill); padding: 2px 9px; background: var(--panel2); }
.dChips .p { color: var(--green); } .dChips .m { color: var(--red); }
.rbRow { display: grid; grid-template-columns: 92px 1fr; gap: var(--sp-2); align-items: center; margin: 2px 0; }
.rbRow .nm { font-size: var(--fs-s); font-weight: 600; line-height: 1.2; }
.rbRow .nm small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-s); line-height: 1.25; }
.rbar { width: 100%; height: auto; display: block; }
/* 2026-10-05: one day detail - chart 1 carries soaring wings and thermal chevrons; the plan beside the sounding */
.wing path, .wing circle { fill: var(--soar); } .wing .ln { fill: none; stroke: var(--soar); stroke-width: .9; }
.chev { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.twin { fill: var(--accent); opacity: .07; }
.tlbl { font-size: var(--fs-xs); font-weight: 600; fill: var(--accent); }
.tstar { font-size: var(--fs-xs); fill: var(--accent); }
.rough { font-size: var(--fs-xs); fill: var(--orange, var(--orange)); text-anchor: middle; }
.rainD { font-size: var(--fs-xs); text-anchor: middle; } .rainD.faint { opacity: .45; }   /* 2026-10-09: rain hour in the day chart */
.night { fill: var(--panel); opacity: .62; }                                     /* after sunset: dimmed, not flyable */
.dSum { font-size: var(--fs-m); display: grid; gap: 2px; margin: 4px 0 2px; }
.dSum b { font-weight: 600; } .dSum .a { color: var(--amber); } .dSum .g { color: var(--green); } .dSum .r { color: var(--red); } .dSum .s { color: var(--soar); } .dSum .t { color: var(--accent); }
.plan { background: var(--panel2); border-radius: var(--r-m); padding: 7px 9px; font-size: var(--fs-s); display: grid; gap: 3px; margin-top: 6px; }
.plan b { color: var(--green); font-weight: 600; }
#dayChart .foot { font-size: var(--fs-s); color: var(--muted); margin-top: 2px; }
#dayChart .foot b { color: var(--ink); font-weight: 600; }
/* 2026-10-07: landing sheet - launches near the landing instead of forecast rings */
.landL { display: flex; justify-content: space-between; gap: var(--sp-2); padding: 8px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--fs-m); }
.landL span { color: var(--muted); white-space: nowrap; }
/* 2026-10-09 (design review 5): the sounding ladder names its marked heights in a legend under the chart (12 px) -
   at 11 px the labels no longer fit on the lines of the 168 px chart */
.ladLeg { display: grid; gap: 3px; margin-top: 4px; font-size: var(--fs-s); line-height: 1.3; }
.ladLeg span { display: flex; gap: 6px; align-items: baseline; color: var(--c); font-weight: 600; text-wrap: pretty; }
.ladLeg i { flex: none; width: 14px; height: 0; border-top: 2px solid var(--c); transform: translateY(-3px); }
.ladLeg i.dash { border-top-style: dashed; }
.ladLeg b { flex: none; width: 14px; font-weight: 700; }
.ringCap .win { display: inline-block; white-space: nowrap; }   /* 2026-10-09: wrap before the window, never inside it */
.polar .ptick { font-size: var(--fs-s); }   /* 2026-10-09: the polar chart is drawn at ~0.9 scale, so its ticks need more to reach 11 px */

/* 2026-10-09 (design review 3, rules I2/I3): every control answers to at least 44 px. The look grows a little (36 px day
   switch, 34 px chips, 36 px badges, 40 px links and buttons); an invisible ::after stretches each tap area to 44 px
   vertically only, so neighbours side by side never share one. */
#topbar { gap: 10px; }
.chips { gap: var(--sp-2); }
.seg button { min-height: 36px; padding: 8px 14px; font-size: var(--fs-base); position: relative; }
#row1 .seg button { padding: 8px 11px; }
.seg button::after, .chip::after, .badge.nav::after, .badge.glide::after { content: ''; position: absolute; inset: -4px 0; }
#q { min-height: 42px; font-size: var(--fs-l); }   /* 16 px also stops iOS zooming into the field on focus */
.chip { min-height: 36px; padding: 8px 13px; font-size: var(--fs-m); position: relative; }
.chip.slider { padding: 4px 12px; }
.chip.slider::after { content: none; }
.chip.slider input { height: 28px; }
.badge { min-height: 36px; display: inline-flex; align-items: center; padding: 4px 11px; font-size: var(--fs-m); }
.badge.nav, .badge.glide { position: relative; }
.extl { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; font-size: var(--fs-m); }
#sheetClose { width: 44px; height: 44px; top: 6px; right: 8px; font-size: var(--fs-xl); }
#favBtn { width: 44px; height: 44px; line-height: 44px; vertical-align: -10px; margin-left: 0; }
.roll > summary { min-height: 44px; align-items: center; }
.listHead button { width: 44px; height: 44px; font-size: var(--fs-l); }
#glideStrip button, #glideStrip .walk { height: 44px; padding: 0 12px; font-size: var(--fs-m); }

/* 2026-10-09 (design review 8, rule I12): the launch sheet has two heights. Half: name, day verdict, badges and rings
   with the map usable above. Full: the whole screen; the filter bar, data line and map buttons hide and the day switch
   appears inside the sheet. The map credit sits above the half sheet (and above the glide strip). */
:root { --sheetHalf: min(52vh, 470px); }
#sheet { height: var(--sheetHalf); max-height: none; transition: transform .25s ease, height .25s ease; }
#sheet.full { height: calc(100% - env(safe-area-inset-top) - 6px); }
body.sheetFull #topbar, body.sheetFull #status, body.sheetFull #listBtn, body.sheetFull #locBtn { visibility: hidden; }
.leaflet-top, .leaflet-bottom { z-index: 940; }   /* under the sheet (950) and the list (960); was 1000 and covered both */
body.sheetOpen .leaflet-bottom { bottom: var(--sheetHalf); }
body.glideOn .leaflet-bottom { bottom: calc(env(safe-area-inset-bottom) + 76px); }
.grip { position: relative; flex: none; width: 100%; height: 30px; margin: 0; background: none; border-radius: 0; cursor: grab; touch-action: none; }
.grip::before { content: ''; position: absolute; left: 50%; top: 11px; width: 40px; height: 4px; margin-left: -20px; border-radius: var(--r-xs); background: var(--line); }
.grip::after { content: ''; position: absolute; left: 0; right: 0; top: -14px; bottom: 0; }   /* 44 px tap/drag band, partly above the sheet edge */
.sheetDays { display: none; margin: 0 0 10px; }
#sheet.full .sheetDays { display: inline-flex; }
.sheetAttr { font-size: var(--fs-xs); color: var(--muted); margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { #sheet { transition: none; } }
#sheetBody { padding-top: 0; }

/* 2026-10-09 (design review 6, rules V16/V2/M4): drawn icons with spoken names, page zoom allowed again (pinch on the
   map stays the map's; manipulation only drops the double-tap delay), +/- buttons for one-finger zoom */
html { touch-action: manipulation; }
#listBtn svg, #locBtn svg, #zoomBtns svg, #sheetClose svg, #listClose svg { width: 22px; height: 22px; display: block; margin: auto;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#sheetClose svg, #listClose svg { width: 20px; height: 20px; }
#zoomBtns { position: absolute; right: 10px; bottom: calc(env(safe-area-inset-bottom) + 116px); z-index: 900; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--glass); backdrop-filter: blur(8px); }
#zoomBtns button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); }
#zoomBtns button + button { border-top: 1px solid var(--line); }
body.sheetFull #zoomBtns { visibility: hidden; }
.badge .ic { width: 16px; height: 16px; flex: none; margin-right: 5px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 2026-10-09 (design review 7, rule I8): tap tips - the explanations that lived in hover tooltips open with a tap */
#tip { position: absolute; z-index: 5; padding: 8px 10px; border-radius: var(--r-m); background: var(--ink); color: var(--bg); font-size: var(--fs-m);
  line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,0,.45); pointer-events: none; }
#sheetBody [title], #sheetBody svg title { cursor: help; }
/* 2026-10-09 (design review 16, rules I14/I15/A7): placeholder while a launch loads, plain errors and empty results with a next step */
.skel i { display: block; height: 14px; border-radius: var(--r-s); background: var(--panel2); margin: 12px 0; animation: skel 1.1s ease-in-out infinite alternate; }
.skel i.tall { height: 58px; border-radius: var(--r-m); }
.skel i.ring { height: 96px; border-radius: var(--r-l); }
@keyframes skel { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .skel i { animation: none; } }
.errBox, .empty { display: grid; gap: 6px; justify-items: start; padding: 14px 4px; font-size: var(--fs-base); color: var(--muted); }
.errBox b, .empty b { color: var(--ink); font-size: var(--fs-l); }
.errBox button, .linkBtn { min-height: 36px; padding: 6px 12px; border-radius: var(--r-m); border: 1px solid var(--accent); background: transparent;
  color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
#status .linkBtn { min-height: 32px; margin-left: 4px; padding: 4px 10px; }
/* 2026-10-09 (design review 17): source, age and the safety line under the verdict */
.verdict .src { font-size: var(--fs-s); line-height: 1.35; color: var(--muted); margin-top: 2px; }
.verdict .src span { font-size: inherit; color: inherit; opacity: 1; }
.verdict .src .liveOff { font-weight: 700; color: var(--ink); }   /* 2026-10-23: measured wind 2 m/s or more off the forecast */

/* 2026-10-09 (design review 13): the Filters panel under the top bar */
#filters { display: grid; gap: var(--sp-3); padding: 12px; border-radius: var(--r-l); background: var(--glass-strong); border: 1px solid var(--line);
  backdrop-filter: blur(8px); max-width: 430px; }
#filters.hidden { display: none; }
#filters .fRow { display: grid; gap: 6px; justify-items: start; }
#filters .fLbl { font-size: var(--fs-s); font-weight: 600; color: var(--muted); }
#filters .seg { flex-wrap: wrap; border-radius: var(--r-l); }
#filtersDone { justify-self: end; min-height: 44px; }
/* 2026-10-09 (design review 12): status by shape - flyable solid wedge, marginal outlined wedge, not flyable a small dot */
.cone .wedge.hollow { fill-opacity: .16; stroke-width: 3; }
.cone .wedge.hollow.amber { stroke: var(--st-warn); }
.dotsvg { width: 16px; height: 16px; display: block; overflow: visible; }
.dot2 { stroke: var(--bg); stroke-width: 1.5; }
.dot2.red { fill: var(--st-bad); } .dot2.grey, .dot2.unknown { fill: var(--st-none); } .dot2.fav { stroke: var(--accent); stroke-width: 2.5; }
#filters .seg button { padding: 8px 10px; }
/* 2026-10-09 (design review 11, Erik's pick): OpenTopoMap toned down so the status colours stand out; not the satellite view */
body:not(.satOn) .leaflet-tile-pane { filter: saturate(.35) contrast(.9) brightness(1.02); }

/* 2026-10-09 (design review 10): a launch opened from the phone's saved copy says so */
.savedNote { margin: 0 0 8px; padding: 6px 10px; border-radius: var(--r-m); background: var(--amber-soft); color: var(--amber); font-size: var(--fs-m); }
/* 2026-10-09 (design review 18): share button beside the star */
#shareBtn { display: inline-flex; align-items: center; justify-content: center; vertical-align: -10px; width: 44px; height: 44px; border: 0;
  background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
#shareBtn .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#shareBtn:focus-visible { outline: 2px solid var(--accent); border-radius: 50%; }
/* 2026-10-09 (design review 19): the one-time "how to read the map" card */
#filters .fFoot { display: flex; justify-content: space-between; align-items: center; width: 100%; }
#howto { position: absolute; inset: 0; z-index: 1100; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center;
  padding: 12px 12px calc(env(safe-area-inset-bottom) + 12px); }
#howto.hidden { display: none; }
.howCard { width: 100%; max-width: 440px; max-height: 88%; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 16px; display: grid; gap: 10px; }
.howCard h3 { margin: 0; font-size: var(--fs-xl); }
.howBig { display: grid; place-items: center; background: var(--map-swatch); border-radius: var(--r-l); padding: 6px 0; }
.howBig .cone { width: 160px; height: 160px; }
.howList { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-base); line-height: 1.35; }
.howList li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.howIc { display: grid; place-items: center; width: 44px; height: 40px; background: var(--map-swatch); border-radius: var(--r-m); overflow: hidden; }
.howIc .cone { width: 56px; height: 56px; }
.howNum { font: 800 var(--fs-m) -apple-system, Roboto, sans-serif; color: var(--bg); }
.howBub { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--white); border: 3px solid var(--green); font-size: var(--fs-s); }
.howFoot { margin: 0; font-size: var(--fs-m); color: var(--muted); }
#howtoClose { justify-self: end; min-height: 44px; }
/* 2026-10-16 (Erik, option B of "Day Detail Declutter"): one summary sentence + a foldable legend under the day chart */
#dayChart .dSum { display: block; line-height: 1.45; margin: 6px 0 0; }
#dayChart .dSum b { font-weight: 700; }
.dLeg { margin: 6px 0 0; }
.dLeg summary { font-size: var(--fs-s); color: var(--muted); cursor: pointer; padding: 2px 0; list-style: none; }
.dLeg summary::-webkit-details-marker { display: none; }
.dLeg summary::before { content: '▸ '; } .dLeg[open] summary::before { content: '▾ '; }
.legG { display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--sp-3); padding: 6px var(--sp-2); margin-top: 2px; background: var(--bg); border-radius: var(--r-m); font-size: var(--fs-xs); color: var(--muted); }
.legG > div { display: flex; align-items: center; gap: 6px; min-width: 0; line-height: 1.25; }
.legG .full { grid-column: 1 / -1; }
.legG svg { width: 20px; height: 20px; flex: none; overflow: visible; }
.legG .tstar, .legG .rough, .legG .rainD { font-size: var(--fs-base); }
.legG .twin { opacity: .3; }
.sboxHead { font-size: var(--fs-xs); color: var(--muted); margin: 8px 2px -4px; width: 25%; text-align: center; }
.hitLine { font-size: var(--fs-xs); color: var(--muted); margin: 6px 2px 0; }
.sbox.rel.ic { display: flex; align-items: center; justify-content: center; gap: 3px; }
.sbox.rel.ic svg { width: 16px; height: 16px; flex: none; overflow: visible; }
.sbox.rel.ic .u2 { margin-top: 0; }
