/* battues.bambi.lu — public map of announced battues.
   Layout: map first. Desktop: map + 400px side panel. ≤ 900px: map on top (58vh), panel below. */

:root {
    --bt-glass: 72%;      /* opacity of the see-through boxes over the map: legend, FlyOver / FPV player */
    --bt-free: #2fa84f;   /* trails without a battue in the window */
    --bt-forest: #1f2a1c;
    --bt-forest-2: #2e3d29;
    --bt-moss: #5b6b3a;
    --bt-paper: #faf8f3;
    --bt-card: #ffffff;
    --bt-ink: #1d1d1b;
    --bt-ink-2: #55524a;
    --bt-line: #e4dfd3;
    --bt-orange: #e8590c;
    --bt-u0: #d7301f;
    --bt-u1: #fc8d59;
    --bt-u2: #fdcc8a;
    --bt-u3: #fef0d9;
    --bt-ok: #2f7d32;
    --bt-warn: #b45309;
    --bt-bad: #b91c1c;
    --bt-accent: #2e3d29;
    --bt-kpi: #1f2a1c;
    --bt-hover: #efeadf;
    --bt-map-bg: #e9e6dc;
    --bt-float: #fffffff0;
    --bt-float-ink: #1d1d1b;
    --bt-muted: #777;
    --bt-ok-bg: #f2f8f1; --bt-ok-line: #cfe3cf;
    --bt-warn-bg: #fff8ef; --bt-warn-line: #f2d7b4;
    --bt-bad-bg: #fdf3f3; --bt-bad-line: #f1c4c4;
    --bt-trail: #ffd400;
    --bt-trail-casing: #3d2f00;
    --bt-cal-1: #e3e9d3; --bt-cal-2: #b5c78f; --bt-cal-3: #5d7f45; --bt-cal-3-ink: #ffffff;
    --bt-radius: 10px;
    --bt-top: 64px;
    --bt-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

/* ── Dark theme (default; html.bt-dark set server-side from the bt-theme cookie) ── */
html.bt-dark {
    --bt-forest: #0b0f09;
    --bt-moss: #a3b77c;
    --bt-paper: #12170f;
    --bt-card: #1a2117;
    --bt-ink: #e8e4d8;
    --bt-ink-2: #a8a391;
    --bt-line: #2d3828;
    --bt-accent: #5d7f45;
    --bt-kpi: #dfeacd;
    --bt-hover: #232c1f;
    --bt-map-bg: #1b2018;
    --bt-float: #1a2117f2;
    --bt-float-ink: #e8e4d8;
    --bt-muted: #9a9686;
    --bt-ok: #8fd18f; --bt-ok-bg: #132519; --bt-ok-line: #24452c;
    --bt-warn: #f0b46a; --bt-warn-bg: #291c0c; --bt-warn-line: #4b3415;
    --bt-bad: #f39191; --bt-bad-bg: #2a1414; --bt-bad-line: #542424;
    --bt-cal-1: #20301a; --bt-cal-2: #3e5a2d; --bt-cal-3: #7da456; --bt-cal-3-ink: #0f1a0b;
    color-scheme: dark;
}

html, body.bt-body { margin: 0; height: 100%; background: var(--bt-paper); color: var(--bt-ink); font-family: var(--bt-font); }
body.bt-body { font-size: 15px; line-height: 1.4; }
.bt-skip { position: absolute; left: -9999px; }
.bt-skip:focus { left: 8px; top: 8px; z-index: 2000; background: var(--bt-card); color: var(--bt-ink); padding: 6px 10px; border-radius: 6px; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.bt-topbar {
    height: var(--bt-top); box-sizing: border-box; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 0 16px; background: var(--bt-forest); color: #f3efe4;
    border-bottom: 3px solid var(--bt-orange);
}
.bt-brand-row { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.bt-brand-row .bt-lang { margin-left: 10px; }
@media (max-width: 600px) { .bt-brand-row { gap: 8px; } .bt-brand-row .bt-lang { margin-left: 0; } }
.bt-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bt-brand-mark {
    width: 30px; height: 30px; flex: 0 0 30px; background: var(--bt-orange);
    clip-path: polygon(50% 4%, 98% 94%, 2% 94%);
}
.bt-brand > div { min-width: 0; }
.bt-title { font-size: 18px; margin: 0; font-weight: 700; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-tools { flex: 0 0 auto; }
.bt-subtitle { margin: 0; font-size: 12.5px; color: #c9c2ae; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-tools { display: flex; align-items: center; gap: 10px; }
.bt-theme-btn {
    width: 32px; height: 28px; display: grid; place-items: center; cursor: pointer; border-radius: 6px;
    background: transparent; color: #e7e1d1; border: 1px solid #56604e;
}
.bt-theme-btn:hover, .bt-theme-btn:focus-visible { border-color: var(--bt-orange); outline: none; }
.bt-theme-btn .bt-ico-sun { display: none; }
html.bt-dark .bt-theme-btn .bt-ico-sun { display: block; }
html.bt-dark .bt-theme-btn .bt-ico-moon { display: none; }
.bt-lang .ui-selectonebutton { display: flex; flex-wrap: nowrap; }
.bt-lang .ui-selectonebutton .ui-button { padding: 3px 9px; font-size: 12px; background: transparent !important; color: #e7e1d1 !important; border-color: #56604e !important; white-space: nowrap; }
.bt-lang .ui-selectonebutton .ui-button .ui-button-text { padding: 0; }
.bt-lang .ui-selectonebutton .ui-button.ui-state-active { background: var(--bt-orange) !important; border-color: var(--bt-orange) !important; color: #fff !important; }
/* phones: one compact drop-down instead of four buttons */
.bt-lang .bt-lang-select {
    display: none; appearance: none; -webkit-appearance: none; cursor: pointer;
    font: 600 12px var(--bt-font); color: #fff; background-color: var(--bt-orange); border: 1px solid var(--bt-orange);
    border-radius: 6px; height: 28px; padding: 0 22px 0 9px; line-height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 7px center;
}
.bt-lang .bt-lang-select:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.bt-lang .bt-lang-select option { color: #1d1d1b; background: #fff; }
@media (max-width: 600px) {
    .bt-lang .ui-selectonebutton { display: none; }
    .bt-lang .bt-lang-select { display: inline-block; }
}

/* ── Main grid ───────────────────────────────────────────────────────── */
.bt-main { display: grid; grid-template-columns: 1fr 400px; height: calc(100dvh - var(--bt-top)); }
.bt-map-wrap { position: relative; min-height: 0; }
.bt-map { position: absolute; inset: 0; background: var(--bt-map-bg); }
.bt-panel { overflow-y: auto; border-left: 1px solid var(--bt-line); background: var(--bt-paper); }
.bt-panel-form { padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 900px) {
    .bt-main { display: block; height: auto; }
    .bt-map-wrap { height: 58vh; height: 58dvh; }
    .bt-panel { border-left: 0; border-top: 1px solid var(--bt-line); overflow: visible; }
    .bt-subtitle { display: none; }
}
@media (max-width: 600px) {
    .bt-topbar { padding: 0 10px; gap: 8px; }
    .bt-tools { gap: 6px; }
    .bt-theme-btn { width: 28px; }
    .bt-lang .ui-selectonebutton .ui-button { padding: 3px 6px; font-size: 11px; }
    .bt-legend { font-size: 11px; line-height: 1.35; padding: 6px 8px; }
    .bt-legend-title { display: none; }
    .bt-legend-x { top: 0; right: 0; }
}
@media (max-width: 520px) {
    /* mark only: title, language switch, about, theme and modes do not fit in one line */
    .bt-brand > div { display: none; }
    .bt-brand-row { gap: 8px; }
}
@media (max-width: 420px) {
    .bt-title { font-size: 15px; }
    .bt-brand-mark { width: 22px; height: 22px; flex-basis: 22px; }
    .bt-presets .ui-button { font-size: 12px; }
    .bt-picker label { white-space: normal; }
}

/* ── Status ──────────────────────────────────────────────────────────── */
.bt-status { font-size: 13px; padding: 8px 10px; border-radius: 8px; border: 1px solid; }
.bt-status-ok { color: var(--bt-ok); border-color: var(--bt-ok-line); background: var(--bt-ok-bg); }
.bt-status-warn { color: var(--bt-warn); border-color: var(--bt-warn-line); background: var(--bt-warn-bg); }
.bt-status-stale { color: var(--bt-bad); border-color: var(--bt-bad-line); background: var(--bt-bad-bg); font-weight: 600; }

/* ── Date window ─────────────────────────────────────────────────────── */
.bt-window { display: flex; flex-direction: column; gap: 10px; }
.bt-presets.ui-selectonebutton { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bt-presets .ui-button { padding: 8px 0 !important; font-size: 13.5px; white-space: nowrap; min-width: 0;
    background: var(--bt-card) !important; color: var(--bt-ink) !important; border-color: var(--bt-line) !important; }
.bt-presets .ui-button .ui-button-text { padding: 0 2px !important; overflow: hidden; text-overflow: ellipsis; }
.bt-presets .ui-button.ui-state-active { background: var(--bt-accent) !important; border-color: var(--bt-accent) !important; color: #fff !important; }
.bt-picker { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--bt-ink-2); }
.bt-picker label { white-space: nowrap; }
.bt-picker .ui-calendar { display: inline-flex; align-items: stretch; flex: 0 0 auto; }
.bt-picker .ui-calendar input.ui-inputfield { width: 118px; min-width: 0; padding: 6px 8px; font-size: 14px; }
.bt-picker .ui-calendar input.ui-inputfield { background: var(--bt-card); color: var(--bt-ink); border-color: var(--bt-line); }
.bt-picker .ui-datepicker-trigger.ui-button {
    background: var(--bt-accent) !important; border-color: var(--bt-accent) !important; color: #fff !important; }
.bt-picked input { border-color: var(--bt-accent) !important; box-shadow: 0 0 0 2px #5d7f4540; }

/* ── Summary ─────────────────────────────────────────────────────────── */
.bt-summary { background: var(--bt-card); border: 1px solid var(--bt-line); border-radius: var(--bt-radius); padding: 12px; }
.bt-summary-range { font-weight: 600; margin-bottom: 8px; }
.bt-summary-range::first-letter { text-transform: uppercase; }
.bt-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bt-kpi { display: flex; flex-direction: column; }
.bt-kpi strong { font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--bt-kpi); }
.bt-kpi span { font-size: 12px; color: var(--bt-ink-2); }

/* ── Lists ───────────────────────────────────────────────────────────── */
.bt-tabs.ui-tabs { padding: 0; border: 0; background: transparent; }
.bt-tabs .ui-tabs-nav { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--bt-line) !important; padding: 0; }
.bt-tabs .ui-tabs-nav li, .bt-tabs .ui-tabs-nav li.ui-state-hover { border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; }
.bt-tabs .ui-tabs-nav li { background: transparent !important; }
.bt-tabs .ui-tabs-nav li a { color: var(--bt-ink-2) !important; }
.bt-tabs .ui-tabs-nav li.ui-state-active a { color: var(--bt-ink) !important; }
.bt-tabs .ui-tabs-panels, .bt-tabs .ui-tabs-panel { background: transparent !important; color: var(--bt-ink) !important; }
.bt-tabs .ui-tabs-nav li.ui-state-active { border-color: var(--bt-orange) !important; }
.bt-tabs .ui-tabs-panels { padding: 0; }
.bt-tabs .ui-tabs-panel { padding: 10px 0 0 !important; }
.bt-empty { color: var(--bt-ink-2); padding: 14px 4px; font-size: 14px; }
.bt-group { border-bottom: 1px solid var(--bt-line); }
.bt-group summary {
    display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none;
    padding: 10px 4px; font-weight: 600;
}
.bt-group summary::-webkit-details-marker { display: none; }
.bt-group summary::before { content: "▸"; color: var(--bt-moss); margin-right: 8px; transition: transform .15s; }
.bt-group[open] summary::before { transform: rotate(90deg); }
.bt-group-name { flex: 1; }
.bt-badge { background: var(--bt-accent); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.bt-items { list-style: none; margin: 0; padding: 0 0 8px; }
.bt-item {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 6px; border: 0; background: transparent;
    font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 6px;
}
.bt-item:hover, .bt-item:focus-visible { background: var(--bt-hover); outline: none; }
.bt-item-main { flex: 1; }
.bt-item-date { color: var(--bt-ink-2); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt-dot { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 12px; border: 1px solid #00000033; }
.urg-0 .bt-dot { background: var(--bt-u0); }
.urg-1 .bt-dot { background: var(--bt-u1); }
.urg-2 .bt-dot { background: var(--bt-u2); }
.urg-3 .bt-dot { background: var(--bt-u3); }
.bt-trail { border-bottom: 1px solid var(--bt-line); }
.bt-trail-btn {
    width: 100%; display: block; text-align: left; padding: 9px 6px; border: 0; border-radius: 6px; cursor: pointer;
    background: transparent; color: inherit; font: inherit;
}
.bt-trail-btn:hover, .bt-trail-btn:focus-visible { background: var(--bt-hover); outline: none; }
.bt-trail-btn.bt-selected { background: var(--bt-hover); box-shadow: inset 3px 0 0 var(--bt-trail); }
.bt-trail-name { display: block; font-weight: 600; }
.bt-trail-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--bt-ink-2); margin-top: 2px; }

.bt-trail-cat { font-size: 12px; color: var(--bt-moss); margin-top: 2px; }
.bt-trail-group .bt-items { padding-left: 4px; }
.bt-trailmode.ui-selectonebutton { display: grid; grid-template-columns: 1fr 1fr; margin: 2px 0 8px; }
.bt-trailmode .ui-button { padding: 6px 0 !important; font-size: 13px; background: var(--bt-card) !important;
    color: var(--bt-ink) !important; border-color: var(--bt-line) !important; }
.bt-trailmode .ui-button.ui-state-active { background: var(--bt-free) !important; border-color: var(--bt-free) !important; color: #fff !important; }
.bt-trail-btn.bt-free .bt-trail-name::before { background: var(--bt-free); box-shadow: 0 0 0 1.5px #ffffffaa; }
.bt-trail-free { color: var(--bt-muted); }
.bt-free-card .bt-pop-h::before { background: var(--bt-free) !important; box-shadow: 0 0 0 1.5px #ffffffaa !important; }
.bt-trail { list-style: none; }
.bt-trail-name::before {
    content: ""; display: inline-block; width: 14px; height: 4px; margin-right: 8px; vertical-align: middle;
    background: var(--bt-trail); border-radius: 2px; box-shadow: 0 0 0 1.5px var(--bt-trail-casing);
}
.bt-trail:last-child { border-bottom: 0; }

/* ── Disclaimer ──────────────────────────────────────────────────────── */
.bt-disclaimer { font-size: 12.5px; color: var(--bt-ink-2); border-top: 1px solid var(--bt-line); padding-top: 10px; }
.bt-disclaimer p { margin: 0 0 6px; }
.bt-disclaimer a { color: var(--bt-moss); }

/* ── Map controls & popups ───────────────────────────────────────────── */
.bt-legend {
    background: var(--bt-float); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.5;
    box-shadow: 0 1px 4px #0003; color: var(--bt-float-ink);
    /* see-through like the FlyOver / FPV player (--bt-glass), its colour a little darker; the blur keeps it readable */
    background: color-mix(in srgb, color-mix(in srgb, var(--bt-float) 86%, #000) var(--bt-glass), transparent);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    /* the same slight frame as the layer switcher (Leaflet's control border) */
    border: 2px solid rgba(0, 0, 0, .2); background-clip: padding-box;
}
html.bt-dark .bt-legend { border-color: #0008; }
.bt-legend-title { font-weight: 700; margin-bottom: 2px; padding-right: 18px; }
/* dynamic legend (JEA-8): groups that follow the map, each heading folds */
.bt-legend { max-height: min(60vh, 520px); overflow-y: auto; min-width: 170px; max-width: 260px; }
.bt-legend-body { padding-right: 14px; }
.bt-lg-g + .bt-lg-g { margin-top: 4px; padding-top: 4px; border-top: 1px solid #ffffff1f; }
.bt-lg-h { display: flex; align-items: center; gap: 4px; width: 100%; padding: 1px 0; border: 0; background: none; color: inherit;
    font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.bt-lg-h:hover, .bt-lg-h:focus-visible { text-decoration: underline; outline: none; }
.bt-lg-caret { width: 10px; font-size: 9px; opacity: .7; }
.bt-lg-rows { padding-left: 14px; }
.bt-lg-rows .bt-legend-row > span:last-child { line-height: 1.3; }
.bt-lg-dot { width: 10px; height: 10px; margin: 0 3px; border: 3px solid; border-radius: 50%; box-sizing: content-box; flex: none; }
.bt-lg-num { display: grid; place-items: center; width: 15px; height: 15px; margin: 0 1px; border-radius: 50%; color: #fff; font-size: 9.5px;
    font-weight: 700; box-shadow: 0 0 0 1.5px #22a447; flex: none; }
.bt-lg-ring { width: 14px; height: 14px; margin: 0 1px; border: 1.5px dashed; border-radius: 50%; box-sizing: border-box; flex: none; }
.bt-lg-chev { width: 16px; text-align: center; font-weight: 700; font-size: 15px; line-height: 1; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; flex: none; }
.bt-lg-scale { width: 16px; height: 6px; border-radius: 2px; flex: none; }
.bt-lg-ic { display: grid; place-items: center; width: 16px; height: 16px; flex: none; }
.bt-lg-ic .bt-poi { width: 16px; height: 16px; }
.bt-lg-ic .bt-poi svg { width: 11px; height: 11px; }
.bt-lg-walker { font-size: 14px; line-height: 1; }
.bt-lg-gps { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: transparent; border: 2px solid #7c3aed;
    box-sizing: border-box; font-size: 9px; line-height: 1; flex: none; }
.bt-legend-line.bt-lg-flat { box-shadow: none; }
/* legend rows: label; "none in view" */
.bt-lg-l { flex: 1; min-width: 0; }
.bt-lg-none { opacity: .65; font-style: italic; }
/* slope: the 6 steps of the map and the chart for climb and descent, their limits under them */
.bt-lg-slope { display: grid; grid-template-columns: auto auto; column-gap: 8px; row-gap: 2px; align-items: center; margin: 1px 0 2px; }
.bt-lg-sl { white-space: nowrap; }
.bt-lg-steps { display: grid; grid-template-columns: repeat(6, 18px); height: 8px; border-radius: 2px; overflow: hidden; }
.bt-lg-steps i { display: block; }
.bt-lg-ticks { position: relative; display: grid; grid-template-columns: repeat(6, 18px); font-size: 9.5px; line-height: 1; opacity: .85; }
.bt-lg-ticks b { font-weight: 400; transform: translateX(50%); text-align: center; }
.bt-lg-ticks em { font-style: normal; padding-left: 9px; }
/* surface: what a class holds, as a tooltip; written out on touch screens (no hover there) */
.bt-lg-hint { display: none; font-size: 10px; opacity: .75; line-height: 1.2; }
@media (hover: none) { .bt-lg-hint { display: block; } }
.bt-legend-line.bt-lg-sel { background: repeating-linear-gradient(90deg, #fff 0 4px, transparent 4px 7px), #111; box-shadow: none; }
.bt-legend-line.bt-lg-alt { box-shadow: 0 0 0 2px #22a447; }
/* closable legend: × in its corner, a small "Legend" chip in its place when closed */
.bt-legend { position: relative; }
/* draggable boxes (legend, player): moved by --dx / --dy, a grab cursor on their background */
.bt-legend-box.bt-draggable { transform: translate(var(--dx, 0px), var(--dy, 0px)); }
.bt-draggable { cursor: grab; touch-action: none; }
.bt-draggable.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.bt-draggable button, .bt-draggable input, .bt-draggable .bt-fly-profwrap { cursor: pointer; }
.bt-draggable input[type=range] { cursor: grab; }
.bt-legend[hidden], .bt-legend-chip[hidden] { display: none; }
.bt-legend-x { position: absolute; top: 2px; right: 3px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: var(--bt-float-ink); font: 16px/1 var(--bt-font); cursor: pointer; opacity: .75; }
.bt-legend-x:hover, .bt-legend-x:focus-visible { opacity: 1; background: #ffffff1f; outline: none; }
.bt-legend-chip { padding: 5px 10px; border: 0; border-radius: 999px; background: var(--bt-float); color: var(--bt-float-ink);
    font: 600 12px/1.2 var(--bt-font); box-shadow: 0 1px 4px #0003; cursor: pointer; }
.bt-legend-chip:hover, .bt-legend-chip:focus-visible { outline: 2px solid var(--bt-trail); outline-offset: 1px; }
/* phone: the same square button as the layers toggle */
.bt-legend-chip.bt-legend-tog { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, .2); background: #fff padding-box; color: #333; box-shadow: none; }
html.bt-dark .bt-legend-chip.bt-legend-tog { background-color: var(--bt-card); color: var(--bt-ink); border-color: #0008; }
.bt-legend-chip.bt-legend-tog[hidden] { display: none; }
.bt-legend-row { display: flex; align-items: center; gap: 8px; }
.bt-legend-sw { width: 14px; height: 10px; border: 1.5px solid; border-radius: 2px; }
.bt-legend-row[hidden], .bt-legend-hint[hidden] { display: none; }
.bt-legend-hint { display: block; font-size: 10.5px; opacity: .75; line-height: 1.2; }
.bt-legend-line-all { width: 18px; height: 4px; border-radius: 2px;   /* each trail its own colour */
    background: linear-gradient(90deg, #0891b2 0 25%, #db2777 25% 50%, #4f46e5 50% 75%, #0d9488 75%); }
.bt-legend-line { width: 16px; height: 4px; background: var(--bt-trail); border-radius: 2px; box-shadow: 0 0 0 1.5px var(--bt-trail-casing); }
.bt-locate {
    width: 34px; height: 34px; display: grid; place-items: center; background: #fff; color: #333; cursor: pointer;
    border: 2px solid #0003; border-radius: 4px; background-clip: padding-box;
}
.bt-locate:hover { background: #f4f4f4; }
.bt-pop { font-family: var(--bt-font); font-size: 13px; min-width: 190px; }
.bt-pop + .bt-pop { border-top: 1px solid var(--bt-line); margin-top: 8px; padding-top: 8px; }
.bt-pop-trail .bt-pop-h::before {
    content: ""; display: inline-block; width: 14px; height: 4px; margin-right: 6px; vertical-align: middle;
    background: var(--bt-trail); border-radius: 2px; box-shadow: 0 0 0 1.5px var(--bt-trail-casing);
}
.bt-pop-h { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.bt-pop-lot .bt-pop-h::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.bt-pop-lot.urg-0 .bt-pop-h::before { background: var(--bt-u0); }
.bt-pop-lot.urg-1 .bt-pop-h::before { background: var(--bt-u1); }
.bt-pop-lot.urg-2 .bt-pop-h::before { background: var(--bt-u2); }
.bt-pop-lot.urg-3 .bt-pop-h::before { background: var(--bt-u3); border: 1px solid var(--bt-u1); }
.bt-pop-row { display: flex; justify-content: space-between; gap: 12px; }
.bt-pop-row span:first-child { color: var(--bt-muted); }
.bt-pop-row span:last-child { text-align: right; }
.bt-pop-cat { color: var(--bt-moss); font-size: 12px; margin-top: 2px; }
.bt-pop-link {
    margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 12.5px;
    font-weight: 600; color: var(--bt-moss); text-decoration: underline; text-underline-offset: 2px;
}
.bt-pop-link:hover { color: var(--bt-orange); }
.bt-trail-card { min-width: 230px; }
.bt-trail-card .bt-pop-h { font-size: 15px; }
.bt-trail-card .bt-pop-h { display: flex; align-items: center; gap: 6px; }
.bt-trail-card .bt-pop-h::before { flex: none; margin-right: 0; }
.bt-pop-hn { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
/* ⇄ at the right of the trail name: walk the trail the other way (profile, GPX / KML, flyover, arrows on the map) */
.bt-rev {
    flex: none; margin-left: auto; width: 30px; height: 30px; padding: 0; border-radius: 6px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font: 600 16px/1 var(--bt-font);
    color: var(--bt-ink); background: var(--bt-hover); border: 1px solid var(--bt-line);
}
.bt-rev[hidden] { display: none; }
.bt-rev:hover, .bt-rev:focus-visible { border-color: var(--bt-trail); outline: none; }
.bt-rev.is-on { background: var(--bt-accent); border-color: var(--bt-accent); color: #fff; }
.bt-trail-card .bt-pop-row { padding: 1px 0; }
.bt-pop-sub { margin-top: 8px; font-size: 12px; color: var(--bt-muted); }
.bt-pop-dates { font-size: 12px; line-height: 1.45; font-variant-numeric: tabular-nums; }
/* ── Trail card: elevation profile, downloads, QR ───────────────────── */
.bt-elev-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.bt-elev { min-height: 152px; }
.bt-elev svg { display: block; max-width: 100%; height: auto; touch-action: pan-y; }
.bt-elev svg text { font: 10px var(--bt-font); fill: var(--bt-muted); }
.bt-elev svg .g { stroke: var(--bt-line); stroke-width: 1; }
.bt-elev svg .a { fill: var(--bt-trail); fill-opacity: .22; }
.bt-elev svg .l { fill: none; stroke: #e0a800; stroke-width: 1.8; stroke-linejoin: round; }
html.bt-dark .bt-elev svg .l { stroke: var(--bt-trail); }
.bt-elev svg .cur { stroke: var(--bt-ink); stroke-width: 1; stroke-dasharray: 3 2; }
.bt-elev svg .cur-t { fill: var(--bt-ink); font-weight: 600; }
.bt-elev svg .hit { fill: transparent; cursor: crosshair; }
.bt-elev-src { font-size: 10.5px; color: var(--bt-muted); margin-top: 1px; }
/* surface breakdown of the trail card (OpenStreetMap): stacked bar + legend */
:root { --bt-s-asphalt: #5b6470; --bt-s-paving: #b5523b; --bt-s-gravel: #c9a66b; --bt-s-natural: #5f9e4a; --bt-s-unknown: #c8ccd2; }
html.bt-dark { --bt-s-asphalt: #8b95a3; --bt-s-paving: #cf6a52; --bt-s-gravel: #d6b57c; --bt-s-natural: #74b35d; --bt-s-unknown: #59606a; }
.bt-surf { margin-top: 8px; }
.bt-surf[hidden] { display: none; }
.bt-surf .s-asphalt { background: var(--bt-s-asphalt); } .bt-surf .s-paving { background: var(--bt-s-paving); }
.bt-surf .s-gravel { background: var(--bt-s-gravel); } .bt-surf .s-natural { background: var(--bt-s-natural); }
.bt-surf .s-unknown { background: var(--bt-s-unknown); }
/* the strip under the elevation chart: where each surface lies */
.bt-elev svg .sr.s-asphalt { fill: var(--bt-s-asphalt); } .bt-elev svg .sr.s-paving { fill: var(--bt-s-paving); }
.bt-elev svg .sr.s-gravel { fill: var(--bt-s-gravel); } .bt-elev svg .sr.s-natural { fill: var(--bt-s-natural); }
.bt-elev svg .sr.s-unknown { fill: var(--bt-s-unknown); }
.bt-surf-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr auto auto; gap: 2px 8px;
    align-items: center; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bt-surf-legend li { display: contents; }
.bt-surf-legend i { width: 10px; height: 10px; border-radius: 2px; }
.bt-surf-legend b { font-weight: 600; text-align: right; }
.bt-surf-legend span:last-child { color: var(--bt-muted); text-align: right; }
.bt-elev-none { font-size: 12.5px; color: var(--bt-muted); padding: 8px 0; min-height: 0; }
.bt-trail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bt-act {
    display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 6px; cursor: pointer;
    font: 600 12.5px var(--bt-font); text-decoration: none; color: var(--bt-ink) !important;
    background: var(--bt-hover); border: 1px solid var(--bt-line);
}
.bt-act:hover, .bt-act:focus-visible { border-color: var(--bt-trail); outline: none; }
.bt-act.is-on { border-color: var(--bt-trail); background: var(--bt-paper); }
.bt-alldates { margin-top: 8px; font-size: 12px; }
.bt-alldates summary { cursor: pointer; color: var(--bt-muted); }
.bt-alldates summary:hover { color: var(--bt-ink); }
.bt-alldates .bt-pop-dates { margin-top: 4px; }
.bt-qr { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; }
.bt-qr[hidden] { display: none; }
.bt-qr img { width: 148px; height: 148px; flex: 0 0 148px; background: #fff; border-radius: 6px; padding: 4px; box-sizing: border-box; }
.bt-qr-side { min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.bt-qr-hint { color: var(--bt-ink-2); }
.bt-qr-link { color: var(--bt-moss) !important; word-break: break-all; }
.bt-qr-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-trail-popup .leaflet-popup-content { width: auto !important; min-width: 300px; }
@media (max-width: 420px) {
    .bt-qr img { width: 120px; height: 120px; flex-basis: 120px; }
}
.bt-sheet {
    position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1000; max-height: 58%; overflow-y: auto;
    background: var(--bt-card); color: var(--bt-ink); border: 1px solid var(--bt-line); border-radius: 12px;
    box-shadow: 0 6px 24px #0006; padding: 12px 14px 10px;
}
.bt-sheet[hidden] { display: none; }
.bt-sheet .bt-trail-card { min-width: 0; padding-right: 22px; }
.bt-sheet-close {
    position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 6px; cursor: pointer;
    background: transparent; color: var(--bt-ink-2); font-size: 20px; line-height: 1;
}
.bt-sheet-close:hover { background: var(--bt-hover); }
.bt-sheet-open .bt-legend-box, .bt-sheet-open .leaflet-control-scale { display: none; }
.bt-pop-loading { padding: 4px 8px; color: #888; }
.leaflet-container { font-family: var(--bt-font); }

/* ── Dark: Leaflet chrome, darkened basemap, PrimeFaces date panel ───── */
/* 2026-10-18: base maps keep their own colours in dark mode (the inverted/darkened tiles were dropped) */
/* topo 20k returns white where it has no data (outside Luxembourg): multiply lets the basemap show through there */
.bt-topo-tiles { mix-blend-mode: multiply; }
html.bt-dark .leaflet-container { background: var(--bt-map-bg); }
html.bt-dark .leaflet-bar a, html.bt-dark .bt-locate {
    background: var(--bt-card); color: var(--bt-ink); border-bottom-color: var(--bt-line); }
html.bt-dark .leaflet-bar a:hover, html.bt-dark .bt-locate:hover { background: var(--bt-hover); }
html.bt-dark .leaflet-bar, html.bt-dark .bt-locate { border-color: #0008; }
html.bt-dark .leaflet-control-layers { background: var(--bt-card); color: var(--bt-ink); border-color: #0008; }
html.bt-dark .leaflet-control-layers-toggle { filter: invert(1); }
html.bt-dark .leaflet-control-layers-separator { border-top-color: var(--bt-line); }
html.bt-dark .leaflet-popup-content-wrapper, html.bt-dark .leaflet-popup-tip { background: var(--bt-card); color: var(--bt-ink); }
/* popups are slightly see-through until the pointer rests on them (Leaflet sets the popup's own opacity inline) */
.leaflet-popup-content-wrapper, .leaflet-popup-tip { opacity: .86; transition: opacity .15s; }
.leaflet-popup:hover .leaflet-popup-content-wrapper, .leaflet-popup:hover .leaflet-popup-tip { opacity: 1; }
html.bt-dark .leaflet-container a.leaflet-popup-close-button { color: var(--bt-ink-2); }
html.bt-dark .leaflet-control-attribution { background: #12170fcc; color: var(--bt-ink-2); }
html.bt-dark .leaflet-control-attribution a { color: var(--bt-moss); }
html.bt-dark .leaflet-control-scale-line { background: #12170fcc; color: var(--bt-ink); border-color: var(--bt-ink-2); }
html.bt-dark .ui-datepicker.ui-widget, html.bt-dark .ui-datepicker .ui-datepicker-header {
    background: var(--bt-card); color: var(--bt-ink); border-color: var(--bt-line); }
html.bt-dark .ui-datepicker td a, html.bt-dark .ui-datepicker td span,
html.bt-dark .ui-datepicker .ui-datepicker-title, html.bt-dark .ui-datepicker th,
html.bt-dark .ui-datepicker .ui-datepicker-prev, html.bt-dark .ui-datepicker .ui-datepicker-next { color: var(--bt-ink) !important; }
html.bt-dark .ui-datepicker td .ui-state-disabled, html.bt-dark .ui-datepicker td.ui-state-disabled span { color: #5c5a50 !important; }
html.bt-dark .ui-datepicker td a:hover { background: var(--bt-hover) !important; }
html.bt-dark .ui-datepicker td .ui-state-active { background: var(--bt-accent) !important; color: #fff !important; }
html.bt-dark .ui-datepicker .ui-datepicker-buttonbar { background: var(--bt-card); border-color: var(--bt-line); }

/* ── Header links (brand → map, about) ───────────────────────────────── */
a.bt-brand { color: inherit; text-decoration: none; }
a.bt-brand:focus-visible { outline: 2px solid var(--bt-orange); outline-offset: 3px; border-radius: 4px; }
.bt-about-btn {
    height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 6px;
    color: #e7e1d1; border: 1px solid #56604e; text-decoration: none; font-size: 12px; white-space: nowrap;
}
.bt-about-btn:hover, .bt-about-btn:focus-visible { border-color: var(--bt-orange); outline: none; }
.bt-about-btn.bt-current { border-color: var(--bt-orange); color: #fff; }
@media (max-width: 600px) { .bt-about-lbl { display: none; } .bt-about-btn { padding: 0 6px; } }
button.bt-about-btn { background: none; font: inherit; font-size: 12px; cursor: pointer; }
.bt-about-btn[hidden] { display: none !important; }
/* "more" (ⓘ ▾) on phones: About, Guide, Daily mail, Install app slide down from it; computers: the links side by side */
.bt-more, .bt-more-out { display: contents; }
.bt-more-main { display: none !important; }
@media (max-width: 600px) {
    .bt-more { display: block; position: relative; }
    .bt-more-main { display: inline-flex !important; gap: 3px; }
    .bt-more.is-open .bt-more-main { border-color: var(--bt-orange); }
    .bt-more-chev { transition: transform .2s; }
    .bt-more.is-open .bt-more-chev { transform: rotate(180deg); }
    .bt-more-out { display: flex; flex-direction: column; align-items: stretch; gap: 6px; position: absolute; right: 0; top: calc(100% + 8px);
        z-index: 3000; padding: 8px; border-radius: 10px; background: #1b2219; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); min-width: 170px;
        opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .18s; }
    .bt-more.is-open .bt-more-out { opacity: 1; transform: none; pointer-events: auto; }
    .bt-more-out .bt-about-btn { height: 38px; padding: 0 12px; font-size: 14px; justify-content: flex-start; }
    .bt-more-out .bt-about-lbl { display: inline; }
}
/* the install sheet */
.bt-install { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.bt-install-card { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 18px 14px;
    border-radius: 14px; background: var(--bt-card, #1b2219); color: var(--bt-ink, #e7e1d1); box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    font-size: 14px; line-height: 1.45; }
.bt-install-card h3 { margin: 8px 0 6px; font-size: 18px; }
.bt-install-card p { margin: 0 0 8px; }
.bt-install-card ol { margin: 6px 0 10px; padding-left: 22px; }
.bt-install-card li { margin: 4px 0; }
.bt-install-ico { display: block; border-radius: 12px; }
.bt-install-ar { padding: 8px 10px; border-radius: 8px; background: rgba(232, 89, 12, .16); border: 1px solid var(--bt-orange, #e8590c); font-weight: 600; }
.bt-install-note { font-size: 12.5px; opacity: .8; }
.bt-install-x { position: absolute; right: 8px; top: 6px; width: 34px; height: 34px; border: 0; border-radius: 17px; background: none;
    color: inherit; font-size: 22px; cursor: pointer; }
.bt-install-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.bt-install-acts button, .bt-install-go { font: 600 14px/1 inherit; padding: 10px 14px; border-radius: 9px; cursor: pointer; border: 1px solid var(--bt-line, #3a4038);
    background: none; color: inherit; }
.bt-install-go { background: var(--bt-orange, #e8590c); border-color: transparent; color: #fff; margin: 4px 0 6px; }
.bt-install-open { font: 600 14px/1 inherit; padding: 10px 16px; border-radius: 9px; border: 0; cursor: pointer; background: var(--bt-orange, #e8590c); color: #fff; }
.bt-install-close { background: var(--bt-accent, #2563eb) !important; border-color: transparent !important; color: #fff !important; }

/* ── About page ──────────────────────────────────────────────────────── */
.bt-about { min-height: calc(100dvh - var(--bt-top)); background: var(--bt-paper); color: var(--bt-ink); }
.bt-about-inner { max-width: 720px; margin: 0 auto; padding: 28px 16px 48px; line-height: 1.6; font-size: 15.5px; }
.bt-about-title { font-size: 26px; line-height: 1.25; margin: 14px 0 6px; }
.bt-about-lead { font-size: 17px; color: var(--bt-ink-2); margin: 0 0 8px; }
.bt-about section { border-top: 1px solid var(--bt-line); padding-top: 6px; margin-top: 22px; }
.bt-about h3 { font-size: 17px; margin: 10px 0 6px; }
.bt-about p { margin: 0 0 10px; }
.bt-about ul { margin: 0 0 10px; padding-left: 20px; }
.bt-about li { margin-bottom: 4px; }
.bt-about a { color: var(--bt-orange); }
.bt-about-back { display: inline-block; font-size: 14px; text-decoration: none; margin-top: 18px; }
.bt-about-back:hover { text-decoration: underline; }
.bt-about-links { font-size: 14px; }
.bt-about-version { font-size: 13.5px; color: var(--bt-ink-2); margin: 4px 0 6px; }
.bt-about-version code { font-size: 12.5px; }
.bt-about-rel { font-size: 15px; margin: 12px 0 4px; }
.bt-about-rel span { font-weight: 400; color: var(--bt-ink-2); }
.bt-about-stack { font-size: 14px; color: var(--bt-ink-2); }
.bt-about-open { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.bt-about-open a { text-decoration: none; color: var(--bt-ink); border-left: 3px solid var(--bt-orange); padding-left: 8px; }
.bt-about-open a:hover { color: var(--bt-orange); }
table.bt-about-oss { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 10px; }
.bt-about-oss th, .bt-about-oss td { text-align: left; padding: 5px 8px 5px 0; border-bottom: 1px solid var(--bt-line); vertical-align: top; }
.bt-about-oss th { font-size: 12.5px; color: var(--bt-ink-2); font-weight: 600; }
@media (max-width: 600px) { .bt-about-oss th:nth-child(2), .bt-about-oss td:nth-child(2) { display: none; } }
.bt-how-fig { margin: 8px 0 14px; }
.bt-how-svg { width: 100%; height: auto; display: block; }
.bt-how-b { fill: none; stroke: var(--bt-line); stroke-width: 1.4; }
.bt-how-k { fill: none; stroke: var(--bt-orange); stroke-width: 1.8; }
.bt-how-t { font: 600 13px system-ui, sans-serif; fill: var(--bt-ink); }
.bt-how-s { font: 400 11.5px system-ui, sans-serif; fill: var(--bt-ink-2); }
.bt-how-h { font: 700 10.5px system-ui, sans-serif; fill: var(--bt-orange); letter-spacing: .06em; }
.bt-how-l, .bt-how-a { stroke: var(--bt-ink-2); stroke-width: 1.4; fill: none; }
.bt-how-a { marker-end: url(#bt-how-ar); }
.bt-how-ah { fill: var(--bt-ink-2); }
ul.bt-about-keys { list-style: none; padding-left: 0; }
.bt-about-keys li { display: flex; gap: 10px; align-items: flex-start; }
.bt-about-sw { flex: 0 0 22px; margin-top: 7px; border-radius: 2px; }
.bt-about-sw-lot { height: 12px; background: linear-gradient(90deg, var(--bt-u0) 0 25%, var(--bt-u1) 25% 50%, var(--bt-u2) 50% 75%, var(--bt-u3) 75%); border: 1px solid #00000033; }
.bt-about-sw-yellow { height: 5px; margin-top: 10px; background: var(--bt-trail); box-shadow: 0 0 0 1.5px var(--bt-trail-casing); }
.bt-about-sw-green { height: 4px; margin-top: 10px; background: var(--bt-free); }
.bt-about-note { background: var(--bt-warn-bg); border: 1px solid var(--bt-warn-line) !important; border-radius: var(--bt-radius); padding: 6px 16px 4px; }
.bt-disclaimer a { color: inherit; }

/* ── Network: one of hiking / cycling / driving (styled like the period buttons) ── */
.bt-presets.bt-modes.ui-selectonebutton { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bt-mode-ico { font-size: .95em; }
.bt-legend-dash { background: repeating-linear-gradient(90deg, var(--bt-trail) 0 5px, transparent 5px 8px) !important; }
.bt-legend-line-all.bt-legend-dash { background: repeating-linear-gradient(90deg, #0891b2 0 5px, transparent 5px 8px, #db2777 8px 13px, transparent 13px 16px) !important; }
.bt-legend-line.bt-legend-dash { box-shadow: none; }
.bt-inline { display: inline-block; vertical-align: middle; }

/* ── Season calendar ─────────────────────────────────────────────── */
.bt-cal { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.bt-cal-h { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; margin: 0 0 6px; }
.bt-cal-hn { font-size: 12px; font-weight: 400; color: var(--bt-ink-2); font-variant-numeric: tabular-nums; }
.bt-cal-grid { display: flex; flex-direction: column; gap: 3px; }
.bt-cal-wd, .bt-cal-wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.bt-cal-wd span { font-size: 11px; color: var(--bt-ink-2); text-align: center; padding-bottom: 2px; }
.bt-cal-d, a.ui-commandlink.bt-cal-d, a.ui-commandlink.bt-cal-d:hover {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 46px;
    border-radius: 7px; background: var(--bt-card); border: 1px solid var(--bt-line); color: var(--bt-ink);
    text-decoration: none; font-variant-numeric: tabular-nums; line-height: 1;
}
a.bt-cal-d:hover, a.bt-cal-d:focus-visible { border-color: var(--bt-orange); outline: none; }
.bt-cal-n { font-size: 13px; font-weight: 600; }
.bt-cal-c { font-size: 10.5px; color: var(--bt-ink-2); min-height: 11px; }
.bt-cal-d.bt-l1 { background: var(--bt-cal-1); border-color: transparent; }
.bt-cal-d.bt-l2 { background: var(--bt-cal-2); border-color: transparent; }
.bt-cal-d.bt-l3, a.ui-commandlink.bt-cal-d.bt-l3 { background: var(--bt-cal-3); border-color: transparent; color: var(--bt-cal-3-ink); }
.bt-cal-d.bt-l3 .bt-cal-c { color: inherit; opacity: .85; }
.bt-cal-d.bt-today .bt-cal-n { color: var(--bt-orange); }
.bt-cal-d.bt-l3.bt-today .bt-cal-n { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: inherit; }
.bt-cal-d.bt-sel { box-shadow: 0 0 0 2px var(--bt-orange); }
.bt-cal-d.bt-past { opacity: .35; }
.bt-cal-pad { height: 46px; }
.bt-cal-legend { display: flex; gap: 14px; font-size: 12px; color: var(--bt-ink-2); align-items: center; }
.bt-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bt-cal-sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.bt-cal-sw.bt-l1 { background: var(--bt-cal-1); } .bt-cal-sw.bt-l2 { background: var(--bt-cal-2); } .bt-cal-sw.bt-l3 { background: var(--bt-cal-3); }
@media (max-width: 420px) { .bt-cal-d, .bt-cal-pad { height: 42px; } }

/* ── Driving: flat road list ─────────────────────────────────────── */
.bt-roads { margin-top: 2px; }
.bt-roads .bt-trail-name { font-weight: 500; }

/* ── My route (GPX / KML check) ──────────────────────────────────── */
.bt-route { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.bt-route-intro { margin: 0; font-size: 14px; color: var(--bt-ink-2); }
/* file field of the route dialog: a dashed drop zone, the native field invisible over it (tap, click or drop) */
.bt-route-drop { position: relative; display: flex; align-items: center; justify-content: center; padding: 14px;
    border: 1.5px dashed var(--bt-moss); border-radius: var(--bt-radius); background: var(--bt-card); color: var(--bt-ink);
    font-size: 14px; cursor: pointer; }
.bt-route-drop:hover, .bt-route-drop:focus-within { border-color: var(--bt-orange); }
.bt-route-drop .bt-route-pick { display: inline-flex; align-items: center; gap: 8px; pointer-events: none; }
.bt-route-drop .bt-route-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bt-route-hint { margin: 0; font-size: 12px; color: var(--bt-ink-2); }
.bt-route-res { display: flex; flex-direction: column; gap: 10px; }
.bt-route-file { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bt-route-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.bt-route-km { color: var(--bt-ink-2); white-space: nowrap; }
.bt-route-clear.ui-button { padding: 3px 8px !important; font-size: 12px; background: transparent !important; color: var(--bt-ink-2) !important; border: 1px solid var(--bt-line) !important; }
.bt-route-ok { padding: 10px 12px; border-radius: 8px; background: var(--bt-ok-bg); border: 1px solid var(--bt-ok-line); color: var(--bt-ok); font-size: 14px; }
.bt-route-ok strong { display: block; margin-bottom: 2px; }
.bt-route-warn { padding: 10px 12px; border-radius: 8px; background: var(--bt-bad-bg); border: 1px solid var(--bt-bad-line); color: var(--bt-bad); font-size: 14px; font-weight: 600; }
.bt-route-days { margin-top: 4px; }
.bt-route-day { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
.bt-route-date { font-weight: 600; }
.bt-route-meta { font-size: 13px; color: var(--bt-ink-2); }
.bt-route-note { margin: 4px 0 0; font-size: 12px; color: var(--bt-ink-2); }

/* ══ v2 page ══════════════════════════════════════════════════════════ */
.v2, .v2 .ui-widget, .v2 .ui-button, .v2 .ui-inputfield { font-family: "IBM Plex Sans", var(--bt-font); font-variant-numeric: tabular-nums; }
.v2-panel { display: flex; flex-direction: column; position: relative; }
.v2-form { display: flex; flex-direction: column; padding: 0; gap: 0; min-height: 0; flex: 1; overflow: hidden; }   /* rows stay, only the list scrolls */
.v2-handle { display: none; }
.v2-row1 { display: flex; align-items: center; gap: 6px; padding: 10px 10px 4px 12px; flex: 0 0 auto; }
.v2-days, .v2-context, .v2-row3, .v2-banner, .v2-detail { flex: 0 0 auto; }
.v2-status { color: var(--bt-ink-2); }
.v2-footer { flex: 0 0 auto; padding: 7px 12px; font-size: 13px; border-top: 1px solid var(--bt-line); background: color-mix(in srgb, var(--bt-paper) 92%, transparent); backdrop-filter: blur(6px); }
@media (max-width: 900px) { .v2-panel.v2-s0 .v2-footer { display: none; } }
.v2-status strong { color: var(--bt-ink); font-weight: 600; }
.v2-status-warn { color: var(--bt-warn); }
.v2-status-stale { color: var(--bt-bad); font-weight: 600; }
.v2-lists { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.v2-presets.ui-selectonebutton { display: flex; gap: 4px; min-width: 0; }
.v2-presets .ui-button { padding: 6px 10px !important; border-radius: 999px !important; font-size: 12.5px; background: var(--bt-card) !important; color: var(--bt-ink-2) !important; border-color: var(--bt-line) !important; white-space: nowrap; }
.v2-presets .ui-button.ui-state-active { background: var(--bt-accent) !important; border-color: var(--bt-accent) !important; color: #fff !important; }
.v2-presets .ui-button .ui-button-text { padding: 0 !important; }
.v2-cal-btn.ui-button { margin-left: auto; }
/* PDF of the shown period, last in the row after the calendar (greyed out when none is made for it) */
.v2-pdf-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; font: 700 12px/1 var(--bt-font);
    color: #fff; background: #c62828; border: 1px solid #c62828; text-decoration: none; white-space: nowrap; }
.v2-pdf-btn:hover { background: #a61f1f; border-color: #a61f1f; }
.v2-pdf-btn.is-off { background: var(--bt-card); color: var(--bt-ink-2); border-color: var(--bt-line); opacity: .55; cursor: not-allowed; }
@media (min-width: 901px) { .bt-pdf-tool { display: none !important; } }   /* computer: the row button only */
.v2-ico.ui-button { width: 32px !important; height: 32px !important; padding: 0 !important; display: inline-grid !important; place-items: center; background: var(--bt-card) !important; color: var(--bt-ink-2) !important; border: 1px solid var(--bt-line) !important; border-radius: 8px !important; }
.v2-ico.ui-button .ui-icon { position: static !important; margin: 0 !important; left: auto; top: auto; transform: none; }
.v2-ico.ui-button .ui-button-text { display: none; }
.v2-modes-form { display: flex; align-items: center; gap: 6px; }
.v2-cal-mobile { display: none; }
.v2-modes.ui-selectonebutton { display: flex; border-radius: 8px; overflow: hidden; }
.v2-modes .ui-button { height: 30px !important; padding: 0 10px 0 8px !important; background: transparent !important; color: #e7e1d1 !important; border-color: #56604e !important; }
.v2-modes .ui-button .ui-button-text { padding: 0 !important; display: grid; place-items: center; height: 100%; }
.v2-modes .ui-button.ui-state-active { background: #5b6b3a !important; border-color: #5b6b3a !important; color: #fff !important; }
.v2-mi { display: flex; align-items: center; gap: 6px; }
.v2-mi b { font-weight: 600; font-size: 12.5px; }
@media (max-width: 700px) { .v2-mi b { display: none; } .v2-modes .ui-button { padding: 0 8px !important; } }
.v2-days { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; padding: 4px 12px 8px; border-bottom: 1px solid var(--bt-line); mask-image: linear-gradient(90deg, #000 94%, transparent); }
.v2-days::-webkit-scrollbar { display: none; }
a.v2-day, a.ui-commandlink.v2-day { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 38px; flex: 0 0 38px; padding: 4px 0 3px; border-radius: 8px; border: 1px solid transparent; color: var(--bt-ink-2); line-height: 1.1; text-decoration: none; }
.v2-dow { font-size: 10px; } .v2-dom { font-size: 14px; font-weight: 600; color: var(--bt-ink); }
a.v2-day.we .v2-dom { color: var(--bt-orange); }
a.v2-day.in { background: var(--bt-hover); }
a.v2-day.on, a.ui-commandlink.v2-day.on { background: var(--bt-accent); border-color: var(--bt-accent); }
a.v2-day.on .v2-dom, a.v2-day.on .v2-dow, a.v2-day.on.we .v2-dom { color: #fff; }
a.v2-day:hover, a.v2-day:focus-visible { border-color: var(--bt-accent); outline: none; }
.v2-dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; margin-top: 2px; }
/* a picked date beyond the strip (DATE preset): first cell, highlighted, month and × instead of the dot; a tap goes back to today */
a.v2-day.v2-day-far, .v2-days a.v2-day.v2-day-far { width: 44px; flex-basis: 44px; }
.v2-mon { font-size: 9px; line-height: 1.2; white-space: nowrap; color: #fff; }
.v2-dot.l1 { background: var(--bt-cal-2); } .v2-dot.l2 { background: var(--bt-cal-3); } .v2-dot.l3 { background: var(--bt-orange); }
.v2-cal-pop.ui-overlaypanel { width: 360px; max-height: 70vh; overflow-y: auto; background: var(--bt-paper); color: var(--bt-ink); border: 1px solid var(--bt-line); padding: 0; }
.v2-cal-pop .ui-overlaypanel-content { padding: 10px 12px; }
.v2-cal-pop .bt-cal { gap: 14px; }
.v2-context { margin: 0; padding: 8px 12px; font-size: 13px; color: var(--bt-ink-2); border-bottom: 1px solid var(--bt-line); }
.v2-context strong { color: var(--bt-ink); font-weight: 600; }
.v2-stale { color: var(--bt-bad); }
.v2-banner { margin: 8px 12px 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; border: 1px solid var(--bt-line); background: var(--bt-card); position: relative; }
.v2-banner.ok { background: var(--bt-ok-bg); border-color: var(--bt-ok-line); color: var(--bt-ok); }
.v2-banner.bad { background: var(--bt-bad-bg); border-color: var(--bt-bad-line); color: var(--bt-bad); }
.v2-banner strong { display: block; }
.v2-banner-x { position: absolute; right: 10px; top: 8px; font-size: 12px; color: var(--bt-ink-2) !important; text-decoration: underline; }
.v2-route-days { list-style: none; margin: 4px 0 0; padding: 0; }
.v2-route-days button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 6px 0; border: 0; border-top: 1px solid var(--bt-bad-line); background: transparent; color: var(--bt-ink); font: inherit; cursor: pointer; text-align: left; }
.v2-route-days button > span:first-child { font-weight: 600; }
.v2-route-meta { font-size: 12.5px; color: var(--bt-ink-2); }
.v2-row3 { display: flex; align-items: center; gap: 8px; padding: 8px 12px; position: sticky; top: 0; z-index: 3; background: var(--bt-paper); }
.v2-search { flex: 1; display: flex; align-items: center; gap: 6px; border: 1px solid var(--bt-line); border-radius: 8px; padding: 0 10px; height: 34px; background: var(--bt-card); color: var(--bt-ink-2); min-width: 0; }
.v2-search .ui-inputfield { flex: 1; border: 0 !important; background: transparent !important; color: var(--bt-ink) !important; box-shadow: none !important; padding: 0 !important; font-size: 14px; min-width: 0; }
.v2-tabs.ui-selectonebutton { display: flex; gap: 2px; }
/* length slider and loop / one-way buttons of the "Unaffected trails nearby" box */
.bt-lenf { padding: 4px 0 6px; }
.bt-lenf-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-height: 30px; }
.bt-lenf-toggle { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 0; border: 0; background: none;
    color: inherit; font: inherit; text-align: left; cursor: default; }
.bt-lenf.closed .bt-lenf-toggle { cursor: pointer; }
.bt-lenf.closed .bt-lenf-toggle:hover .bt-lenf-val { color: var(--bt-ink); text-decoration: underline; }
.bt-lenf-caret { display: none; color: var(--bt-ink-2); font-size: 11px; }
.bt-lenf.closed .bt-lenf-caret { display: inline; }
.bt-lenf.closed .bt-lenf-range, .bt-lenf.closed .bt-lenf-ends { display: none; }
.bt-lenf-lbl { color: var(--bt-ink-2); font-weight: 600; }
.bt-lenf-val { color: var(--bt-ink); font-variant-numeric: tabular-nums; }
.bt-lenf.closed .bt-lenf-val { color: var(--bt-ink-2); }
.bt-lenf.on .bt-lenf-val { color: var(--bt-accent); font-weight: 600; }
.bt-lenf-shape { display: flex; gap: 4px; margin-left: auto; }
.bt-shape { display: grid; place-items: center; width: 30px; height: 28px; padding: 0; border-radius: 8px; border: 1px solid var(--bt-line);
    background: var(--bt-card); color: var(--bt-ink-2); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.bt-shape:hover { background: var(--bt-hover); color: var(--bt-ink); }
.bt-shape.on { background: var(--bt-accent); border-color: var(--bt-accent); color: #fff; }
.bt-shape:focus-visible { outline: 2px solid var(--bt-accent); outline-offset: 2px; }
.bt-shape-x { font-size: 15px; font-weight: 700; border-color: transparent; background: transparent; }
.bt-lenf-range { position: relative; height: 22px; }
.bt-lenf-track { position: absolute; left: 8px; right: 8px; top: 9px; height: 4px; border-radius: 2px; background: var(--bt-line); }
.bt-lenf-fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--bt-ink-2);
    left: calc(var(--lo) / var(--top) * 100%); right: calc((var(--top) - var(--hi)) / var(--top) * 100%); }
.bt-lenf.on .bt-lenf-fill { background: var(--bt-accent); }
.bt-lenf-range input[type=range] { position: absolute; inset: 0; width: 100%; height: 22px; margin: 0; padding: 0; background: none;
    pointer-events: none; -webkit-appearance: none; appearance: none; border: 0 !important; outline: none; box-shadow: none !important; border-radius: 0; }
.bt-lenf-range input[type=range]::-webkit-slider-runnable-track { height: 22px; background: transparent; }
.bt-lenf-range input[type=range]::-moz-range-track { height: 22px; background: transparent; }
.bt-lenf-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; margin-top: 3px;
    border-radius: 50%; background: #fff; border: 2px solid var(--bt-accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); cursor: grab; }
.bt-lenf-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: #fff;
    border: 2px solid var(--bt-accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); cursor: grab; }
.bt-lenf-range input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--bt-accent); outline-offset: 2px; }
.bt-lenf-range input[type=range]:focus-visible::-moz-range-thumb { outline: 2px solid var(--bt-accent); outline-offset: 2px; }
.bt-lenf-ends { display: flex; justify-content: space-between; padding: 0 2px; font-size: 10.5px; color: var(--bt-muted); }
.v2-tabs .ui-button { padding: 6px 8px !important; font-size: 13px; font-weight: 600; background: transparent !important; color: var(--bt-ink-2) !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; box-shadow: none !important; }
.v2-tabs .ui-button.ui-state-active { color: var(--bt-ink) !important; border-bottom-color: var(--bt-orange) !important; }
.v2-tabs .ui-button .ui-button-text { padding: 0 !important; }
.v2-list { padding: 0 6px 12px; }
.v2-group h3 { position: sticky; top: 50px; background: var(--bt-paper); margin: 0; padding: 10px 6px 4px; font-size: 12px; font-weight: 600; color: var(--bt-moss); display: flex; justify-content: space-between; z-index: 1; }
.v2-group h3 span:last-child { color: var(--bt-ink-2); font-weight: 400; }
/* hiking sections (geoportail grouping) above the sub-category groups */
.v2-section { margin-top: 10px; }
.v2-section:first-child { margin-top: 0; }
.v2-section > h2 { position: sticky; top: 50px; z-index: 2; margin: 0; padding: 8px 6px 6px; display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-ink); background: var(--bt-paper); border-bottom: 1px solid var(--bt-line); }
.v2-section > h2 span:last-child { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--bt-ink-2); font-size: 12px; }
.v2-section .v2-group h3 { top: 81px; padding-left: 10px; }
.v2-item, .bt-trail-btn.v2-item { display: grid; grid-template-columns: 4px 1fr; grid-template-rows: auto auto; column-gap: 10px; width: 100%; text-align: left; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--bt-line); border-radius: 6px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.v2-item:hover, .v2-item:focus-visible { background: var(--bt-hover); outline: none; }
.bt-trail-btn.v2-item.bt-selected { background: var(--bt-hover); box-shadow: inset 3px 0 0 var(--bt-trail); }
.v2-bar { grid-row: 1 / 3; width: 4px; border-radius: 2px; background: var(--bt-trail); box-shadow: 0 0 0 1px var(--bt-trail-casing); align-self: stretch; }
.v2-item.bt-free .v2-bar { background: var(--bt-free); box-shadow: none; }
.v2-bar.lot { background: var(--bt-u2); box-shadow: none; }
.urg-0 .v2-bar.lot { background: var(--bt-u0); } .urg-1 .v2-bar.lot { background: var(--bt-u1); } .urg-3 .v2-bar.lot { background: var(--bt-u3); }
.v2-name { font-weight: 600; font-size: 14px; } .v2-meta { font-size: 12.5px; color: var(--bt-ink-2); }
.v2-detail { position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 10; padding: 8px 12px 20px; overflow-y: auto; background: var(--bt-paper); border-top: 1px solid var(--bt-line); }   /* overlays the list only (top set by the script); chips, days and tabs stay usable */
/* planner title line: "Plan a route" · ‹ day › (centred in the free space) · Avoid battues */
.bt-plan-card .bt-pop-h { flex-wrap: wrap; row-gap: 6px; }
.bt-plan-card .bt-pop-h .bt-pop-hn { flex: 0 0 auto; }
.bt-plan-day { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 400; }
.bt-plan-card .bt-pop-h .bt-plan-avoid { flex: 0 0 auto; margin: 0 0 0 auto; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
/* the day of the outing: a calendar button opening the page's month calendar (16 Nov 2026, was ‹ day ›) */
.bt-plan-cal { flex: 0 1 auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; min-width: 0;
    border: 1px solid var(--bt-line); background: var(--bt-card); color: var(--bt-ink); font: 400 13px/1 var(--bt-font); cursor: pointer; }
.bt-plan-cal:hover { border-color: var(--bt-accent); }
.bt-plan-cal .bt-plan-day-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 22 Nov 2026: hiking / cycling on the title's row (right), the day and "Avoid battues" (right) on the row below */
.bt-plan-card .bt-plan-sub .bt-plan-sport { flex: 0 0 auto; }
.bt-plan-sub { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; min-width: 0; }
.bt-plan-day-v { font-weight: 600; min-width: 0; }
.bt-plan-line.is-on { color: #fff; background: var(--bt-accent); border-radius: 6px; }   /* ⟋ straight line to the next point */
.bt-plan-day-b { width: 26px; height: 26px; padding: 0; border-radius: 6px; border: 1px solid var(--bt-line); background: var(--bt-card);
    color: var(--bt-ink); font: 600 16px/1 var(--bt-font); cursor: pointer; }
.bt-plan-day-b:hover:not(:disabled) { border-color: var(--bt-accent); }
.bt-plan-day-b:disabled { opacity: .35; cursor: default; }
.v2-detail.is-full { border-top: 0; z-index: 20; }   /* the route planner: over the whole panel */
.v2-close { position: absolute; top: 4px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--bt-ink-2); font-size: 22px; line-height: 1; cursor: pointer; }
.v2-close:hover, .v2-close:focus-visible { background: var(--bt-card); color: var(--bt-ink); outline: none; }
.v2-detail .bt-pop { max-width: none; width: auto; font-size: 14px; }
.v2-back { background: none; border: 0; color: var(--bt-ink-2); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0 8px; }
.v2-back:hover { color: var(--bt-ink); }
/* Forward, on the other side of the pane, left of × (greyed out with nothing to go forward to) */
.v2-fwd { position: absolute; top: 4px; right: 44px; background: none; border: 0; color: var(--bt-ink-2); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0 8px; }
.v2-fwd:hover:not(:disabled) { color: var(--bt-ink); }
.v2-fwd:disabled { opacity: .35; cursor: default; }
.v2-foot { margin: auto 12px 12px; padding-top: 10px; flex: 0 0 auto; }
.v2-legend-all { margin-top: 6px; padding-top: 6px; border-top: 1px solid #0002; cursor: pointer; }
html.bt-dark .v2-legend-all { border-color: #fff2; }
.v2-legend-all input { accent-color: var(--bt-free); margin: 0; }
.bt-route-tool { margin-top: 10px !important; border: 0 !important; }   /* 34 px like the other buttons, no extra frame */
.bt-route-btn { display: grid !important; place-items: center; width: 34px !important; height: 34px !important; background: var(--bt-orange) !important; color: #fff !important; border-radius: 4px !important; }
.bt-route-btn:hover { background: #c94a08 !important; }
.v2-route-dlg.ui-dialog { background: var(--bt-paper); color: var(--bt-ink); border: 1px solid var(--bt-line); }
.v2-route-dlg .ui-dialog-titlebar { background: var(--bt-paper); color: var(--bt-ink); border-bottom: 1px solid var(--bt-line); }
.v2-route-dlg .ui-dialog-content { background: var(--bt-paper); color: var(--bt-ink); }
.v2 .bt-legend .bt-legend-allrow { display: none; }

/* phone: bottom sheet */
@media (max-width: 900px) {
    .v2.bt-main { display: block; height: calc(100dvh - var(--bt-top)); position: relative; overflow: hidden; }
    .v2 .bt-map-wrap { position: absolute; inset: 0; bottom: 40%; height: auto; transition: bottom .25s ease; }
    .v2.v2-s0 .bt-map-wrap { bottom: 150px; } .v2.v2-s1 .bt-map-wrap { bottom: 40%; } .v2.v2-s2 .bt-map-wrap { bottom: 100%; }
    .v2-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; border-left: 0; border-top: 1px solid var(--bt-line); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px #0004; transition: height .25s ease; overflow: hidden; z-index: 500; }
    .v2-panel.v2-s0 { height: 150px; } .v2-panel.v2-s1 { height: 40%; } .v2-panel.v2-s2 { height: calc(100% - 8px); }
    .v2-handle { display: grid; place-items: center; width: 100%; height: 18px; background: none; border: 0; cursor: pointer; }
    .v2-handle span { width: 44px; height: 6px; border-radius: 3px; background: var(--bt-line); box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
    /* yellow ring while the mouse is on it, while it is held or dragged */
    .v2-handle:active span, .v2-dragging .v2-handle span { box-shadow: 0 0 0 2px var(--bt-trail); }
    /* a phone keeps :hover after the finger lifts (sticky hover): the mouse ring only where there is a mouse */
    @media (hover: hover) and (pointer: fine) { .v2-handle:hover span, .v2-handle:focus-visible span { box-shadow: 0 0 0 2px var(--bt-trail); } }
    /* phone: chips row and summary sentence are hidden; the calendar opens from the top bar and the
       day strip floats as a bar over the map, above the sheet */
    .v2-row1, .v2-context, .v2-row3 { display: none; }     /* phone: only the affected trails of the day */
    .v2-section > h2 { top: 0; }
    .v2-group h3 { top: 0; }
    .v2-section .v2-group h3 { top: 31px; }
    .v2-cal-mobile { display: grid; place-items: center; width: 32px; height: 28px; border-radius: 6px; background: transparent; color: #e7e1d1; border: 1px solid #56604e; cursor: pointer; font-size: 15px; }
    .v2-modes .ui-button { height: 28px !important; }
    .v2-panel, .v2-form { overflow: visible; }
    .v2-detail { border-radius: 16px 16px 0 0; }
    /* the day bar floats at the top of the map, between the zoom control and the layers button */
    .v2-days { position: fixed; left: 58px; right: 62px; top: calc(var(--bt-top) + 10px); z-index: 600; gap: 2px; padding: 2px 6px 3px; border: 1px solid var(--bt-line); border-radius: 10px;
      background: color-mix(in srgb, var(--bt-paper) 72%, transparent); backdrop-filter: blur(6px); box-shadow: 0 3px 12px #0003; mask-image: none; }
    .v2-days a.v2-day, .v2-days a.ui-commandlink.v2-day { width: 32px; flex-basis: 32px; padding: 2px 0 2px; }
    .v2-days .v2-dow { font-size: 9px; } .v2-days .v2-dom { font-size: 12.5px; } .v2-days .v2-dot { width: 5px; height: 5px; margin-top: 1px; }
    /* phone: the legend button sits at the bottom right of the map and opens upwards (closed at first, like the layers) */
    .bt-legend-phone { display: flex; flex-direction: column; align-items: flex-end; }
    .bt-legend-phone .bt-legend { max-height: 40vh; max-height: 40dvh; min-width: 0; max-width: min(260px, calc(100vw - 70px)); }
    .v2-handle { touch-action: none; height: 22px; }
    .v2-panel.v2-dragging, .v2.v2-dragging .bt-map-wrap { transition: none; }
    .v2-panel.v2-s2 .v2-days { position: static; border: 0; border-radius: 0; box-shadow: none; background: none; backdrop-filter: none; border-bottom: 1px solid var(--bt-line); }
    /* ✕ at the right end of the floating day bar hides it; then the button (a calendar) brings it back.
       22 Nov 2026: the ✕ sits inside the bar (the bar reaches over it, a thin line parts it from the days); hidden,
       the bar leaves the round calendar button alone at the same place */
    .v2-days { right: 62px; padding-right: 40px; }
    .v2 .bt-days-tg { display: grid; place-items: center; position: fixed; right: 63px; top: calc(var(--bt-top) + 11px); z-index: 601; width: 38px; height: 40px;
      padding: 0; border: 0; border-left: 1px solid var(--bt-line); border-radius: 0 9px 9px 0; color: var(--bt-ink-2); cursor: pointer;
      /* the days scroll beneath the ✕: it covers them and fades their edge */
      background: color-mix(in srgb, var(--bt-paper) 84%, transparent); backdrop-filter: blur(10px); box-shadow: -10px 0 10px -6px color-mix(in srgb, var(--bt-paper) 80%, transparent); }
    .v2 .bt-days-tg:hover { color: var(--bt-ink); }
    .bt-days-off .v2 .bt-days-tg, html.bt-days-off .bt-days-tg { right: 62px; top: calc(var(--bt-top) + 14px); width: 34px; height: 34px; border-radius: 17px;
      border: 1px solid var(--bt-line); background: color-mix(in srgb, var(--bt-paper) 80%, transparent); backdrop-filter: blur(6px);
      box-shadow: 0 3px 12px #0003; color: var(--bt-ink); }
    .bt-days-off .v2-panel:not(.v2-s2) .v2-days { display: none; }
    .v2-panel.v2-s2 .bt-days-tg { display: none; }
    /* as wide as the screen: always 8 px from the left (PrimeFaces aligns it to the button and lets it overflow) */
    .v2-cal-pop.ui-overlaypanel { width: calc(100vw - 16px); left: 8px !important; }
    @media (prefers-reduced-motion: reduce) { .v2-panel { transition: none; } }
}

/* routes crossing a lot, listed in the lot card (popup on desktop, detail pane on phones) */
.bt-pop-lot-trails { margin-top: 6px; border-top: 1px solid var(--bt-line); padding-top: 6px; }
.bt-pop-sub { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bt-ink-2); margin: 2px 0 4px; }
.bt-pop-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.bt-pop-item { display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 2px; border: 0; background: none; color: inherit;
    font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; border-radius: 6px; }
.bt-pop-item:hover { background: var(--bt-hover); }
.bt-pop-item-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-pop-item-m { flex: 0 0 auto; color: var(--bt-ink-2); font-variant-numeric: tabular-nums; }
.v2-detail .bt-pop-list { max-height: none; overflow: visible; }   /* the detail pane scrolls, so the headings below can stick */
/* trail lists of a card (unaffected trails nearby, routes crossing a lot, a commune's trails; 23 Nov 2026): while the
   pane scrolls, the section heading stays at the top and the category under it, until the next one takes over.
   Opaque backgrounds in the panel's tint, so the rows pass under them; -8px: the pane's top padding is covered too. */
.v2-detail .bt-lot-sec { position: sticky; top: -8px; z-index: 3; margin-top: 0; padding: 8px 2px 4px; line-height: 16px;
    background: color-mix(in srgb, var(--bt-ink) 4%, var(--bt-paper)); }
.v2-detail .bt-lot-grp { position: sticky; top: 20px; z-index: 2; margin-top: 0; padding: 5px 2px 3px 6px; line-height: 16px;
    background: color-mix(in srgb, var(--bt-ink) 4%, var(--bt-paper)); box-shadow: 0 1px 0 color-mix(in srgb, var(--bt-ink) 6%, transparent); }
/* the lot card's line under the title (JEA-44): communes with their cantons, then the nearest localities */
.bt-commune-links-sub .bt-where-canton, .bt-commune-links-sub .bt-where-near { color: var(--bt-ink-2); font-weight: 400; }
.bt-lot-mark { flex: 0 0 12px; width: 12px; margin: 0 3px 0 2px; }
/* lot card, hiking: section and category headings as in the Trails list */
.bt-lot-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 2px; padding: 0 2px 4px;
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-ink); border-bottom: 1px solid var(--bt-line); }
.bt-lot-grp { display: flex; justify-content: space-between; margin: 6px 0 0; padding: 0 2px 0 6px; font-size: 12px; font-weight: 600; color: var(--bt-moss); }
.bt-lot-sec span:last-child, .bt-lot-grp span:last-child { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--bt-ink-2); font-size: 12px; }

.bt-fit { margin-top: 10px; }
/* legend: a lot next to a hunted one, hunted on other days (hatched, dashed outline, as on the map) */
.bt-legend-sw.bt-sw-hatch { background: repeating-linear-gradient(-45deg, #b3261e80 0 1.5px, transparent 1.5px 4px) !important;
    border: 1px dashed #b3261e !important; }
.bt-fit[hidden] { display: none; }
/* all trails of the mode: on = the trail green */
.bt-all-btn[hidden] { display: none; }
.bt-all-btn.is-on { background: #16803a; color: #fff; }
.bt-all-btn.is-on:hover { background: #126b31; }
html.bt-dark .bt-all-btn.is-on { background: #16803a; color: #fff; }

/* link to the interactive PDF of the day (summary line) */
.v2-pdf { margin-left: 6px; padding: 1px 7px; border: 1px solid var(--bt-line); border-radius: 999px; color: var(--bt-ink);
    text-decoration: none; font-size: 11.5px; white-space: nowrap; }
.v2-pdf:hover { background: var(--bt-hover); }
.v2-pdf .pi { font-size: 11px; color: #c0392b; }

/* alternatives: unaffected hiking trails near the battue (lot card) */
.bt-alt { margin-top: 10px; border-top: 1px solid var(--bt-line); padding-top: 8px; }
.bt-alt-note { font-size: 11px; color: var(--bt-ink-2); margin: -2px 0 6px; }
.bt-alt-ctl { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.bt-alt-ctl button, .bt-alt-show { font: inherit; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--bt-line); background: transparent; color: var(--bt-ink); }
.bt-alt-ctl button.is-on { background: #16803a; border-color: #16803a; color: #fff; }
.bt-alt-ctl button:hover:not(.is-on), .bt-alt-show:hover { background: var(--bt-hover); }
.bt-alt-circ { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; margin-right: 8px; cursor: pointer; }
.bt-alt-show { border: 0; padding: 3px 4px; color: #16803a; font-weight: 600; }
.bt-alt-list { margin-top: 6px; }
.bt-alt-item { align-items: flex-start; }
.bt-alt-n { flex: 0 0 20px; height: 20px; border-radius: 50%; background: #16803a; box-shadow: 0 0 0 2px #22a447; color: #fff; font-size: 11px; font-weight: 700;
    display: grid; place-items: center; margin-top: 1px; }
.bt-alt-item .bt-pop-item-n { white-space: normal; }
/* start of an unaffected trail nearby on the map: number and colour of the list */
.bt-alt-dot { background: none; border: 0; }
.bt-alt-dot span { display: grid; place-items: center; width: 20px; height: 20px; margin: 1px; border-radius: 50%; color: #fff;
    font: 700 11px/1 var(--bt-font, system-ui, sans-serif); box-shadow: 0 0 0 2px #22a447, 0 1px 4px rgba(0, 0, 0, .55); cursor: pointer; }
.bt-alt-item small { display: block; font-size: 11px; color: var(--bt-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-alt-item .bt-pop-item-m { text-align: right; }

/* Chrome draws a focus rectangle around a clicked map line: not wanted on the map */
.leaflet-container .leaflet-interactive:focus, .leaflet-container path:focus { outline: none; }

/* PDF of the day: map toolbar button (white on red), greyed when no PDF exists for the shown days */
.bt-pdf-tool { margin-top: 10px !important; border: 0 !important; }
.bt-pdf-btn { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    width: 34px !important; height: 34px !important; background: #c62828 !important; color: #fff !important;
    border-radius: 4px !important; font: 700 9px/1 var(--bt-font, sans-serif); letter-spacing: .03em; text-decoration: none; }
.bt-pdf-btn:hover { background: #a61f1f !important; }
.bt-pdf-btn.is-off { background: #9e9e9e !important; cursor: not-allowed; opacity: .7; }

/* announced dates of a trail: each one opens that day */
.bt-date-link { font: inherit; font-size: 12.5px; padding: 2px 7px; margin: 0 2px 4px 0; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--bt-line); background: transparent; color: var(--bt-ink); }
.bt-date-link:hover { border-color: var(--bt-orange); }
.bt-date-link.is-on { background: var(--bt-orange); border-color: var(--bt-orange); color: #fff; }

/* name of a hovered alternative, written along the trail like the map's trail names (no popup box) */
.bt-alt-label { pointer-events: none; }
.bt-alt-label span { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; white-space: nowrap;
    font: 700 13px/1 var(--bt-font, sans-serif); letter-spacing: .01em;
    text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; }

/* ---- live GPS mode ---- */
.bt-live-btn.is-on { background: #2563eb; color: #fff; }
/* "show my position" while live GPS runs: blue, red while recording; the live first-person view pressed: blue */
.bt-slide-host .bt-myloc.is-live { background: #2563eb; color: #fff; }
.bt-slide-host .bt-myloc.is-live.is-rec { background: #dc2626; }
.bt-slide-host .bt-slide-in > .bt-live-btn.is-on { background: #2563eb; color: #fff; }
.bt-slide-host .bt-slide-in > .bt-live-btn.is-on.is-rec { background: #dc2626; }
.bt-slide-host .bt-slide-in > .bt-live-fpvb.is-on { background: #2563eb; color: #fff; }
/* the AR camera view button of the live slide-out: the two letters, red while it runs (as in the live banner) */
.bt-slide-in > .bt-live-armb { font: 800 13px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .02em; }
.bt-slide-host .bt-slide-in > .bt-live-armb.is-on { background: #dc2626; color: #fff; }
.bt-slide-in > .bt-slide-b[hidden] { display: none !important; }
.bt-all-host[hidden] { display: none; }
/* a slide-out or the circular list open: the top-left buttons above the legend (bottom left) */
.leaflet-top.leaflet-left:has(.bt-slide-host.is-slide, .bt-sub.is-open) { z-index: 1001; }
/* the sources of "circular": a list dropping down under its switch, each one on / off */
.bt-sub { position: absolute; top: 100%; z-index: 2; display: flex; flex-direction: column; min-width: 190px; visibility: hidden; opacity: 0;
    transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s linear .18s; }
.bt-sub.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.bt-sub-b { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 10px; text-align: left; white-space: nowrap; cursor: pointer;
    font: 600 12.5px var(--bt-font); background: #fff; color: #333; border: 2px solid #0003; border-top-width: 0; background-clip: padding-box; }
.bt-sub-b:first-child { border-top-width: 2px; }
.bt-sub-b:last-child { border-radius: 0 0 6px 6px; }
html.bt-dark .bt-sub-b { background: var(--bt-card); color: var(--bt-ink); border-color: #0008; }
.bt-sub-b:hover, .bt-sub-b:focus-visible { outline: none; box-shadow: inset 3px 0 0 var(--bt-trail); }
.bt-sub-chk { width: 14px; height: 14px; flex: none; border-radius: 3px; border: 2px solid currentColor; opacity: .55; }
.bt-sub-b.is-on .bt-sub-chk { background: #2563eb; border-color: #2563eb; opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 100%; }
@media (prefers-reduced-motion: reduce) { .bt-sub { transition: none; } }
.bt-slide-host .bt-slide-in > .bt-slide-b.is-on { background: #2563eb; color: #fff; }   /* the playback running */
.bt-slide-in > .bt-slide-b.is-dim svg { opacity: .4; }   /* nothing to play yet */
.bt-slide-in > .bt-slide-b:has(+ .bt-slide-b[hidden]:last-child) { border-radius: 0 4px 4px 0; }   /* the last one shown */
/* live GPS: compass (north / direction up) and re-centre under the live button */
.bt-live-group { display: grid; gap: 8px; }
.bt-live-group > [hidden] { display: none; }
.bt-orient-btn[hidden] { display: none; }
.bt-3d-on .bt-orient-btn { display: none !important; }   /* 3D: its own compass (same place, right) is the one */
.bt-orient-btn.is-on { background: #2563eb; color: #fff; }
.bt-recenter-btn { color: #2563eb; }
/* end of a walk: save the track (GPX), keep it or delete it */
.bt-track-end { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1200; width: min(360px, calc(100% - 24px));
    background: #ffffff; color: #1d1d1b; border-left: 6px solid #2563eb; border-radius: 10px; box-shadow: 0 6px 24px #0005; padding: 12px 14px 10px;
    font: 13px/1.35 var(--bt-font, system-ui, sans-serif); }
html.bt-dark .bt-track-end { background: #1f2220; color: #eee; }
.bt-track-h { font-weight: 700; font-size: 15px; margin: 0 22px 4px 0; }
.bt-track-f { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; color: var(--bt-muted); }
.bt-track-f b { color: inherit; font-size: 15px; }
.bt-track-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-track-acts .is-main { background: #2563eb; color: #fff; border-color: #2563eb; }
.bt-track-del { color: #b91c1c; }
.bt-track-note { margin: 8px 0 0; font-size: 11.5px; color: var(--bt-muted); }
.bt-track-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; }
/* planner: "My last track" */
/* the route planner: × goes back to the card it was opened from; no separate Back there */
#bt-detail.is-full .v2-back { visibility: hidden; }
.bt-plan-del svg { display: block; }
.bt-plan-track { margin: 10px 0 4px; padding: 8px 10px; border: 1px solid var(--bt-line); border-radius: 8px; }
.bt-plan-track-h { font-weight: 700; margin-bottom: 2px; }
.bt-plan-track-f { font-size: 12.5px; color: var(--bt-muted); margin-bottom: 6px; }
.bt-live-banner { position: absolute; z-index: 1000; top: 10px; left: 56px; right: 56px; margin: 0 auto; max-width: 560px;
    display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 10px;
    background: #ffffffee; color: #1d1d1b; box-shadow: 0 2px 10px #0003; font: 600 14px/1.3 var(--bt-font, system-ui, sans-serif);
    cursor: pointer; border-left: 6px solid #2563eb; }
.bt-live-msg { flex: 0 1 auto; min-width: 0; }
.bt-live-banner > .bt-live-stop, .bt-live-banner > .bt-live-follow:first-of-type { margin-left: auto; }
.bt-live-banner.bt-gap-aside { display: none !important; }
/* GPS signal lost, several ways along the trails: which one was walked */
.bt-gap-ask { position: absolute; z-index: 1001; bottom: 34px; left: 56px; right: 56px; margin: 0 auto; max-width: 420px;
    display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: #ffffff; color: #1d1d1b;
    box-shadow: 0 2px 12px #0004; border-left: 6px solid #2563eb; font: 14px/1.3 var(--bt-font, system-ui, sans-serif); }
.bt-gap-msg { font-weight: 700; }
.bt-gap-way { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid #0002; border-radius: 8px;
    background: #f6f6f4; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bt-gap-way:hover, .bt-gap-way:focus-visible { border-color: #2563eb; outline: none; }
.bt-gap-way i { flex: none; width: 18px; height: 4px; border-radius: 2px; }
.bt-gap-way span { flex: 1 1 auto; min-width: 0; }
.bt-gap-way b { flex: none; font-weight: 600; color: #555; }
.bt-gap-none { justify-content: center; background: none; color: #555; }
html.bt-dark .bt-gap-ask { background: #1f2220; color: #eee; }
html.bt-dark .bt-gap-way { background: #2a2d2b; border-color: #fff2; }
html.bt-dark .bt-gap-way b, html.bt-dark .bt-gap-none { color: #bbb; }
@media (max-width: 600px) {
    .bt-gap-ask { left: 52px; right: 8px; bottom: 26px; gap: 4px; padding: 8px; font-size: 13px; }
    .bt-gap-way { padding: 6px 8px; }
}
.bt-loc-banner { animation: bt-loc-fade 5s forwards; }
@keyframes bt-loc-fade { 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bt-loc-banner { animation: none; } }
.bt-live-acc { font-weight: 400; color: #55524a; white-space: nowrap; }
.bt-live-dot { flex: 0 0 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .85; animation: bt-live-pulse 1.6s infinite; }
@keyframes bt-live-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .bt-live-dot { animation: none; } }
.bt-live-banner.is-info { border-left-color: #2563eb; }
.bt-live-banner.is-l1000 { border-left-color: #f59e0b; background: #fff7e6ee; }
.bt-live-banner.is-l500 { border-left-color: #ea580c; background: #ffedd5ee; }
.bt-live-banner.is-l300 { border-left-color: #dc2626; background: #fee2e2ee; }
.bt-live-banner.is-inside { border-left-color: #991b1b; background: #dc2626; color: #fff; }
.bt-live-banner.is-inside .bt-live-acc { color: #ffe4e4; }
.bt-live-banner.is-error { border-left-color: #6b7280; }
.bt-live-follow { flex: 0 0 auto; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 6px;
    padding: 3px 8px; font: 600 12.5px/1.2 inherit; cursor: pointer; }
.bt-live-stop { flex: 0 0 auto; border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; padding: 0 4px; cursor: pointer; }
.bt-live-left { margin: 0 0 8px; padding: 6px 10px; border-radius: 6px; background: var(--bt-warn-bg, #fff4e5); font-size: 13px; font-weight: 600; }
.bt-live-aff { color: #c2410c; font-weight: 600; }
.bt-live-near { margin: 0 0 8px; padding: 6px 10px; border-radius: 6px; background: #e7f1fb; color: #1d3b5a; font-size: 13px; font-weight: 600; }
html.bt-dark .bt-live-near { background: #1d2a3a; color: #cfe2f7; }
.bt-live-free { color: #15803d; font-weight: 600; }
@media (max-width: 600px) { .bt-live-banner { left: 52px; right: 52px; font-size: 13px; } }
html.bt-dark .bt-live-btn.is-on, html.bt-dark .bt-orient-btn.is-on { background: #2563eb; color: #fff; }
/* live GPS recording the track: the live button is red (after the blue is-on rules, also in dark mode and 3D) */
.bt-live-btn.is-on.is-rec, html.bt-dark .bt-live-btn.is-on.is-rec { background: #dc2626; color: #fff; }
html.bt-dark .bt-recenter-btn { color: #60a5fa; }
.bt-live-list .bt-pop-item { text-align: left; }
.bt-live-list .bt-pop-item-n small { display: block; margin-top: 2px; }

/* ---- user guide ---- */
.bt-about-guide { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.bt-guide-pdf { float: right; margin: 18px 0 0; font-size: 14px; }
.bt-guide-toc { border: 1px solid var(--bt-line); border-radius: var(--bt-radius, 8px); padding: 8px 16px; margin: 14px 0 6px; }
.bt-guide-toc ol { columns: 2; column-gap: 24px; margin: 0; padding-left: 20px; }
@media (max-width: 600px) { .bt-guide-toc ol { columns: 1; } .bt-guide-pdf { float: none; } }
.bt-guide section { scroll-margin-top: 70px; }
.bt-guide-fig { margin: 10px 0 16px; }
.bt-guide-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--bt-line); border-radius: 8px; }
.bt-guide-phone img { max-width: 300px; margin: 0 auto; }
.bt-guide-fig figcaption { font-size: 13px; color: var(--bt-ink-2); margin-top: 6px; text-align: center; }
/* guide 2.6.2: a computer and a phone side by side (or two phones), the computer / phone box, the comparison table */
.bt-guide-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26%); gap: 10px; align-items: start; }
.bt-guide-pair.is-pp { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; }
.bt-guide-pair figcaption { grid-column: 1 / -1; }
@media (max-width: 600px) { .bt-guide-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 34%); gap: 6px; } }
.bt-guide-dp { margin: 12px 0 18px; padding: 8px 14px; border-left: 3px solid var(--bt-accent, #f97316); background: rgba(127, 127, 127, .08); border-radius: 0 8px 8px 0; font-size: 14px; }
.bt-guide-dp p { margin: 4px 0; }
.bt-guide-tab { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14px; }
.bt-guide-tab th, .bt-guide-tab td { border-bottom: 1px solid var(--bt-line); padding: 7px 8px; text-align: left; vertical-align: top; }
.bt-guide-tab thead th { font-size: 13px; color: var(--bt-ink-2); }
.bt-guide-tab tbody th { font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) { .bt-guide-tab { font-size: 13px; } .bt-guide-tab tbody th { white-space: normal; } }
.bt-about-note-inline { background: var(--bt-warn-bg, #fff4e5); border-radius: 8px; padding: 8px 12px; }
.bt-guide-faq dt { font-weight: 600; margin-top: 10px; }
.bt-guide-faq dd { margin: 2px 0 0; }
@media print {
  .bt-topbar, .bt-about-back, .bt-guide-pdf, .bt-guide-toc, .bt-skip { display: none !important; }
  .bt-about { min-height: 0; background: #fff; color: #000; }
  .bt-guide section { break-inside: auto; }
  .bt-guide-fig { break-inside: avoid; }
  .bt-guide-fig img { max-height: 120mm; width: auto; max-width: 100%; margin: 0 auto; }
  .bt-about a { color: #000; }
}
.bt-live-compass { flex: 0 0 30px; display: inline-flex; color: #1d1d1b; margin-left: -2px; }
.bt-live-compass svg { display: block; }
.bt-live-follow ~ .bt-live-stop { margin-left: 0; }
/* screen kept on during live GPS: phone icon, filled when on */
.bt-live-wake { flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 6px;
    border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; opacity: .55; margin-left: auto; }
.bt-live-wake.is-on { opacity: 1; background: #2563eb; border-color: #2563eb; color: #fff; }
.bt-live-follow ~ .bt-live-wake, .bt-live-wake ~ .bt-live-wake, .bt-live-wake ~ .bt-live-stop { margin-left: 0; }
.bt-live-gpx { opacity: 1; }

/* ---- impact level of an affected trail on its worst day: red (75 % or more inside hunted lots), yellow, green (at most 5 % and 300 m) ---- */
:root { --bt-imp-high: #ff3b30; --bt-imp-high-casing: #4a0000; --bt-imp-low: #34c759; --bt-imp-low-casing: #0b3d1a; }
.v2-item.imp-high .v2-bar, .bt-legend-line.imp-high, .bt-imp-high .bt-pop-h::before, .bt-about-sw-red { background: var(--bt-imp-high); box-shadow: 0 0 0 1px var(--bt-imp-high-casing); }
.v2-item.imp-low .v2-bar, .bt-legend-line.imp-low, .bt-imp-low .bt-pop-h::before, .bt-about-sw-green-imp { background: var(--bt-imp-low); box-shadow: 0 0 0 1px var(--bt-imp-low-casing); }
.bt-about-sw-red, .bt-about-sw-green-imp { height: 5px; margin-top: 10px; }

/* ---- points of interest (map button, markers, panel, cards, live GPS SOS) ---- */
.bt-poi-btn.is-on { background: #0f766e; color: #fff; }
html.bt-dark .bt-poi-btn.is-on { background: #0f766e; color: #fff; }
.bt-poi-ic { background: none; border: 0; }
.bt-poi { --c: #475569; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--c); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 3px #0006; box-sizing: border-box; vertical-align: middle; }
.bt-poi svg { width: 12px; height: 12px; fill: currentColor; }
.bt-poi.is-focus { width: 18px; height: 18px; border-width: 1.5px; }
.bt-poi.is-focus svg { width: 10px; height: 10px; }
.bt-poi.is-mini { width: 18px; height: 18px; border-width: 1px; box-shadow: none; }
/* points on the same spot (JEA-74, 27 Nov 2026): one icon with a count, a tap fans them out round it (the stack fades);
   a point I reach jumps once, as my own dot when live GPS starts */
.bt-poi-stk { position: relative; }
.bt-poi-n { position: absolute; right: -7px; top: -7px; min-width: 15px; height: 15px; padding: 0 3px; box-sizing: border-box; border-radius: 8px;
    background: #111; color: #fff; border: 1.5px solid #fff; font: 700 9.5px/12px system-ui, sans-serif; text-align: center; pointer-events: none; }
.bt-poi-stk.is-open .bt-poi { opacity: .4; }
/* a point shown from the commune card (📍, 2 Dec 2026): an amber ring right on the marker's edge (the 22 px marker
   inside its 3 px line, no gap) with a glow, that pulses and fades out after 5 s (poiSpot removes it then) */
.bt-poi-spot { pointer-events: none; }
.bt-poi-spot span { position: absolute; inset: 0; box-sizing: border-box; border-radius: 50%; border: 3px solid #f59e0b; box-shadow: 0 0 10px 3px #f59e0bcc;
    animation: bt-spot-pulse 1.2s ease-in-out 3, bt-spot-out .8s ease-in 4.2s forwards; }
@keyframes bt-spot-pulse { 50% { box-shadow: 0 0 18px 7px #f59e0b88; } }
@keyframes bt-spot-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bt-poi-spot span { animation: bt-spot-out .8s ease-in 4.2s forwards; } }
.bt-poi.is-jump-once { animation: bt-poi-jump 1.1s ease-in-out .45s 1; position: relative; z-index: 5; }
@media (prefers-reduced-motion: reduce) { .bt-poi.is-jump-once { animation: none; } }
.bt-poi.is-jump { animation: bt-poi-jump 1.1s ease-in-out 1; position: relative; z-index: 5; }
@keyframes bt-poi-jump { 0% { transform: none; } 40% { transform: translateY(-30px) scale(1.8); } 100% { transform: none; } }   /* JEA-98: rises above the walker, does not cover it */
@media (prefers-reduced-motion: reduce) { .bt-poi.is-jump { animation: none; } }
.bt-elev svg .pli .pln-b { fill: #111; stroke: #fff; stroke-width: .8; }
.bt-elev svg .pli .pln { fill: #fff; font-size: 5.6px; font-weight: 800; text-anchor: middle; }
.bt-et-i.bt-et-pl { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.bt-poi.is-mini svg { width: 10px; height: 10px; }
.bt-poi.g-safety { border-radius: 5px; }                   /* rescue points & co: a square, they must stand out */
.bt-poi.is-battue { filter: grayscale(.85); opacity: .75; outline: 2px solid #dc2626; outline-offset: 1px; }
.bt-pop-h .bt-poi { margin-right: 4px; }
.bt-poi-panel { position: absolute; z-index: 1001; top: 10px; left: 56px; width: 280px; max-height: calc(100% - 20px); overflow: auto;
    background: var(--bt-card); color: var(--bt-ink); border-radius: var(--bt-radius); box-shadow: 0 4px 18px #0004;
    padding: 10px 12px; font: 13px/1.35 var(--bt-font); }
.bt-poi-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bt-poi-switch { flex: 1; cursor: pointer; }
.bt-poi-x { border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.bt-poi-hint { font-size: 12px; color: var(--bt-muted); margin: 0 0 6px; }
.bt-poi-grp { border-top: 1px solid var(--bt-line); padding: 4px 0; }
.bt-poi-grp > summary { cursor: pointer; list-style-position: outside; margin-left: 14px; }
.bt-poi-grp > summary { font-weight: 600; }
.bt-poi-grp > summary small { font-weight: 400; color: var(--bt-muted); }
.bt-poi-dot { --c: #475569; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin: 0 4px 0 2px; vertical-align: -1px; }
.bt-poi-types { display: grid; gap: 3px; padding: 4px 0 4px 18px; }
.bt-poi-type { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.bt-poi-src { margin-top: 8px; font-size: 11px; color: var(--bt-muted); }
@media (max-width: 600px) { .bt-poi-panel { left: 52px; right: 10px; width: auto; max-height: 60%; } }
.bt-poi-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.bt-poi-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--bt-line); background: var(--bt-card); color: var(--bt-ink);
    border-radius: 999px; padding: 2px 8px 2px 3px; font: 600 12.5px/1.2 var(--bt-font); cursor: pointer; }
.bt-poi-chip.is-on { border-color: var(--bt-ink); box-shadow: inset 0 0 0 1px var(--bt-ink); }
.bt-poi-chip.is-rescue { padding: 3px 9px; border-color: #dc2626; color: #b91c1c; font-variant-numeric: tabular-nums; }
.bt-poi-chip.is-rescue.is-near { border-style: dashed; }
html.bt-dark .bt-poi-chip.is-rescue { color: #fca5a5; }
.bt-poi-note { font-size: 12px; color: var(--bt-muted); margin: 2px 0 6px; }
.bt-poi-rescue-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0; padding: 8px 10px; border-radius: 8px;
    background: var(--bt-bad-bg); border: 1px solid var(--bt-bad-line); }
.bt-poi-rescue-id b { font-size: 22px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.bt-poi-112, .bt-sos-call { flex-basis: 100%; font-weight: 700; color: #b91c1c; }
html.bt-dark .bt-poi-112 { color: #fca5a5; }
.bt-poi-warn { margin: 6px 0; padding: 6px 10px; border-radius: 6px; background: var(--bt-bad-bg); border: 1px solid var(--bt-bad-line); font-weight: 600; }
.bt-poi-warn.is-soft { background: var(--bt-warn-bg); border-color: var(--bt-warn-line); }
.bt-pop-linkbtn { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; text-align: left; }
.bt-live-banner { flex-wrap: wrap; }
.bt-live-banner[hidden] { display: none !important; }
.bt-live-banner > .bt-live-msg { flex: 1 1 0; }       /* the first row stays one line: message, compass, buttons */
.bt-live-row2 { order: 9; flex: 1 0 100%; display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; }
/* live banner in rows: the dot, the message (full width) and ×; the accuracy; the compass and buttons (right); rescue
   point and SOS — the buttons no longer squeeze the message into a narrow column */
.bt-live-banner { align-items: flex-start; row-gap: 6px; }
.bt-live-banner > .bt-live-dot { order: 0; margin-top: 4px; }
.bt-live-banner > .bt-live-msg { order: 1; flex: 1 1 0; }
.bt-live-banner > .bt-live-stop { order: 2; margin-left: 0; align-self: flex-start; }
.bt-live-banner > .bt-live-acc { order: 3; flex: 1 0 100%; padding-left: 18px; }
.bt-live-tools { order: 4; flex: 1 0 100%; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bt-live-tools > * { margin-left: 0 !important; }
.bt-live-tools .bt-live-compass { margin-right: auto; margin-left: 10px !important; }
.bt-live-rescue { flex: 1 1 auto; min-width: 0; }
.bt-live-sos { flex: 0 0 auto; border: 0; border-radius: 6px; background: #dc2626; color: #fff; font: 700 12.5px/1 var(--bt-font); padding: 5px 10px; cursor: pointer; }
.bt-sos { position: absolute; z-index: 1002; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100% - 24px));
    background: var(--bt-card); color: var(--bt-ink); border-radius: 12px; box-shadow: 0 8px 30px #0006; padding: 12px 14px; font: 14px/1.4 var(--bt-font);
    border-top: 6px solid #dc2626; }
.bt-sos-h { display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.bt-sos-call { display: block; margin: 10px 0; padding: 12px; border-radius: 10px; background: #dc2626; color: #fff !important; text-align: center;
    font-size: 18px; text-decoration: none; }
.bt-sos-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 6px 0; }
.bt-sos-row > span { flex-basis: 100%; font-size: 12px; color: var(--bt-muted); }
.bt-sos-row b { font-size: 17px; font-variant-numeric: tabular-nums; }
.bt-sos-id { font-size: 24px !important; letter-spacing: .04em; }
.bt-sos-copy { margin-top: 6px; }

/* ---- 3D view (battues-map3d.js) ---- */
.bt-map3d { position: absolute; inset: 0; z-index: 700; background: #dfe7ec; }
.bt-map3d > .bt-map3d-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.bt-3d-btn { font: 700 13px/1 var(--bt-font, system-ui, sans-serif); }
.bt-3d-btn[aria-pressed="true"] { background: #2563eb; color: #fff; }
.bt-3d-btn.is-busy, .bt-myloc.is-busy { opacity: .6; cursor: progress; }
/* in 3D the 2D-only controls step aside; zoom (it zooms the 3D view), legend, PDF, points of interest, the layer
   switcher and the 2D button stay in their 2D places */
.bt-3d-on .leaflet-control-scale,
.bt-3d-on .bt-locate:not(.bt-3d-btn):not(.bt-cam-btn):not(.bt-poi-btn):not(.bt-fit):not(.bt-all-btn):not(.bt-live-btn):not(.bt-orient-btn):not(.bt-recenter-btn):not(.bt-fs-btn):not(.bt-myloc), .bt-3d-on .bt-route-btn, .bt-3d-on .leaflet-control-attribution { display: none; }

.bt-toast { position: absolute; z-index: 1000; left: 50%; bottom: 40px; transform: translateX(-50%); max-width: 80%;
    padding: 8px 12px; border-radius: 8px; background: #1d1d1bee; color: #fff; font: 600 13px/1.3 var(--bt-font, system-ui, sans-serif); }
html.bt-dark .bt-3d-btn[aria-pressed="true"] { background: #2563eb; color: #fff; }
.bt-3d-marker { pointer-events: auto; }
/* my position (locate, live GPS, JEA-9): the mode's traveller in a white disc with a purple ring, on top of
   everything in 2D and 3D; grows 5× once when switched on or re-centred, pulses while live GPS runs; in 3D a cone
   shows the heading (compass, else direction of travel) */
.bt-gps-dot { background: none; border: 0; pointer-events: none; z-index: 1000; }
.bt-gps-me { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
    display: grid; place-items: center; font-size: 15px; line-height: 1; background: transparent; border: 3px solid #7c3aed; box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .7); transform-origin: 50% 50%; }
.bt-gps-dot.is-live .bt-gps-me { animation: bt-gps-pulse 2.4s ease-out infinite; }
.bt-gps-dot.is-grow .bt-gps-me { animation: bt-gps-grow 1s ease-in-out 1; }
@keyframes bt-gps-grow { 0% { transform: scale(1); } 45% { transform: scale(5); } 100% { transform: scale(1); } }
@keyframes bt-gps-pulse { 0% { box-shadow: 0 1px 4px rgba(0, 0, 0, .5), 0 0 0 0 rgba(124, 58, 237, .55); }
    70% { box-shadow: 0 1px 4px rgba(0, 0, 0, .5), 0 0 0 14px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 1px 4px rgba(0, 0, 0, .5), 0 0 0 0 rgba(124, 58, 237, 0); } }
.bt-gps-cone { display: none; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
    background: conic-gradient(from -28deg, rgba(124, 58, 237, .5) 0deg, rgba(124, 58, 237, .5) 56deg, transparent 56deg);
    -webkit-mask: radial-gradient(circle, #000 0 55%, transparent 72%); mask: radial-gradient(circle, #000 0 55%, transparent 72%); }
.bt-gps-dot .bt-gps-cone[data-on] { display: block; }
.bt-gps-dot.is-live .bt-gps-cone { animation: bt-gps-cone 2.4s ease-in-out infinite; }
@keyframes bt-gps-cone { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.bt-3d-marker.bt-gps-dot { pointer-events: none; z-index: 1000; }
@media (prefers-reduced-motion: reduce) { .bt-gps-dot .bt-gps-me, .bt-gps-dot .bt-gps-cone { animation: none !important; } }
.bt-3d-marker.bt-alt-label { pointer-events: none; }
.bt-3d-lotlabel { padding: 2px 7px; border-radius: 4px; background: #fffffff0; color: #8b0000; border: 1px solid #b30000;
    font: 700 13px/1.25 var(--bt-font, system-ui, sans-serif); white-space: pre; text-align: center; pointer-events: none; box-shadow: 0 1px 4px #0003; }
/* 3D buttons (battues-map3d.js cameraControl): one column at the top right, drawn like the Leaflet buttons (30 px
   inside a 2 px translucent border = 34 px, card colours that follow the light / dark theme) */
.bt-3d-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin: 10px 10px 0 0; }
/* below the layer switcher, which keeps its 2D place at the top right (--bt-3d-top: its bottom edge) */
:is(.bt-map3d, .bt-ml-3d) .maplibregl-ctrl-top-right { top: var(--bt-3d-top, 54px); }
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl { margin: 0; float: none; }
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group { background: #fff; border: 2px solid #0003; border-radius: 4px;
    box-shadow: none; background-clip: padding-box; overflow: hidden; }
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-b { width: 30px; height: 30px; display: grid; place-items: center;
    background: #fff; color: #333; touch-action: none; user-select: none; -webkit-user-select: none; }
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-b + button.bt-3d-b { border-top: 1px solid #ccc; }
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-b:hover { background: #f4f4f4; }
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl button.bt-3d-b svg { width: 18px; height: 18px; }
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl button.bt-3d-north svg { width: 22px; height: 22px; }
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-ex { width: 30px; padding: 0; font: 700 10px/1 var(--bt-font, system-ui, sans-serif);
    white-space: nowrap; letter-spacing: -.02em; }
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-orbit.is-on,
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-north.is-on { background: #2563eb; color: #fff; }   /* north: live GPS turning with my direction */
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .bt-3d-gfly[hidden] { display: none; }
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-fly.is-on,
:is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-fpv.is-on { background: #2563eb; color: #fff; }
.bt-3d-readout { position: absolute; z-index: 2; left: 50%; bottom: 10px; transform: translateX(-50%); pointer-events: none;
    padding: 3px 9px; border-radius: 12px; background: #ffffffe6; color: #333; border: 1px solid #0002;
    font: 600 12px/1.3 var(--bt-font, system-ui, sans-serif); white-space: nowrap; box-shadow: 0 1px 4px #0003; }
/* dark theme: the same colours as the Leaflet buttons and the map cards */
html.bt-dark :is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group { background: var(--bt-card); border-color: #0008; }
html.bt-dark :is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-b { background: var(--bt-card); color: var(--bt-ink); }
html.bt-dark :is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-b + button.bt-3d-b { border-color: var(--bt-line); }
html.bt-dark :is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-b:hover { background: var(--bt-hover); }
html.bt-dark :is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-orbit.is-on,
html.bt-dark :is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-north.is-on { background: #2563eb; color: #fff; }
html.bt-dark :is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-fly.is-on,
html.bt-dark :is(.bt-map3d, .bt-ml-3d) .bt-3d-ctrl .maplibregl-ctrl-group button.bt-3d-fpv.is-on { background: #2563eb; color: #fff; }
html.bt-dark .bt-3d-readout { background: color-mix(in srgb, var(--bt-card) 92%, transparent); color: var(--bt-ink); border-color: #0008; }
html.bt-dark :is(.bt-map3d, .bt-ml-3d) .maplibregl-ctrl-attrib, html.bt-dark :is(.bt-map3d, .bt-ml-3d) .maplibregl-ctrl-attrib-button { background-color: var(--bt-card); }
html.bt-dark :is(.bt-map3d, .bt-ml-3d) .maplibregl-ctrl-attrib, html.bt-dark :is(.bt-map3d, .bt-ml-3d) .maplibregl-ctrl-attrib a { color: var(--bt-ink); }
html.bt-dark :is(.bt-map3d, .bt-ml-3d) .maplibregl-ctrl-attrib-button { filter: invert(1); }
/* phones: one column like on a computer (no wrapping), closer together to fit in the short map above the sheet */
@media (pointer: coarse) {
    .bt-3d-ctrl { gap: 6px; }
}
/* the layer switcher button is as big as the other map buttons (34 px with its border) */
.leaflet-control-layers:not(.leaflet-control-layers-expanded) { border-radius: 4px; }
/* the open layer switcher: see-through like the legend and the player (--bt-glass), a little darker, blurred */
.leaflet-control-layers.leaflet-control-layers-expanded, html.bt-dark .leaflet-control-layers.leaflet-control-layers-expanded {
    background: color-mix(in srgb, color-mix(in srgb, var(--bt-float) 86%, #000) var(--bt-glass), transparent);
    color: var(--bt-float-ink); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* × of the open switcher, top right, like the legend's */
.leaflet-control-layers-list { position: relative; padding-right: 22px; }
.bt-layers-x { position: absolute; top: -2px; right: -4px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: inherit; font: 18px/1 var(--bt-font); cursor: pointer; opacity: .75; }
.bt-layers-x:hover, .bt-layers-x:focus-visible { opacity: 1; background: #ffffff1f; outline: none; }
.leaflet-control-layers .leaflet-control-layers-toggle,
.leaflet-touch .leaflet-control-layers .leaflet-control-layers-toggle { width: 30px; height: 30px; background-size: 20px 20px; }
:is(.bt-map3d, .bt-ml-3d) .maplibregl-ctrl-attrib.bt-hidden { visibility: hidden; }

/* ── daily mail: sign-up, confirmation and unsubscribe pages (newsletter.xhtml, confirm.xhtml, unsubscribe.xhtml) ── */
.bt-nl-form { display: grid; gap: 12px; max-width: 460px; margin: 8px 0 24px; }
.bt-nl-row { display: grid; gap: 4px; }
.bt-nl-row label, .bt-nl-modes legend { font-weight: 600; font-size: .92rem; }
body .bt-nl .bt-nl-row input { font: inherit; padding: 9px 10px; border: 1px solid var(--bt-line); border-radius: 6px;
    background: var(--bt-card); color: var(--bt-ink); }
body .bt-nl .bt-nl-row input:focus-visible, body .bt-nl .bt-nl-check input:focus-visible { outline: 2px solid var(--bt-accent); outline-offset: 1px; }
.bt-nl-modes { border: 1px solid var(--bt-line); border-radius: 6px; padding: 8px 12px 10px; margin: 0; }
.bt-nl-checks td { padding: 3px 0; }
.bt-nl-checks label, .bt-nl-check label { margin-left: 6px; }
.bt-nl-check { display: flex; align-items: flex-start; gap: 2px; line-height: 1.4; }
.bt-nl-check input { margin-top: 3px; flex: 0 0 auto; }
/* body .bt-nl …: beats the PrimeFaces theme rule "body input:not(...)" (white field, grey text) */
body .bt-nl .bt-nl-btn { font: inherit; font-weight: 600; justify-self: start; padding: 10px 18px; border: 0; border-radius: 6px;
    background: var(--bt-accent); color: #fff; cursor: pointer; }
body .bt-nl .bt-nl-btn:hover { filter: brightness(1.1); }
.bt-nl-msg { padding: 10px 12px; border-radius: 6px; margin: 8px 0; }
.bt-nl-msg.bad { color: var(--bt-bad); background: var(--bt-bad-bg); border: 1px solid var(--bt-bad-line); }
.bt-nl-done { padding: 12px 14px; border-radius: 6px; margin: 8px 0 20px; color: var(--bt-ok);
    background: var(--bt-ok-bg); border: 1px solid var(--bt-ok-line); }
.bt-nl-done h3 { margin: 0 0 4px; }
.bt-nl-done p { margin: 0; }
/* honeypot: off screen, out of the tab order and the accessibility tree */
.bt-nl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bt-nl-privacy { margin-top: 28px; font-size: .92rem; }
.bt-nl-link { margin-top: 6px; }
.bt-nl-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* daily mail hint under the day's summary (map page) */
.bt-nl-hint { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 0; padding: 6px 8px 6px 12px; font-size: 13px; border-bottom: 1px solid var(--bt-line);
    background: color-mix(in srgb, var(--bt-orange) 9%, transparent); }
.bt-nl-hint[hidden] { display: none; }
.bt-nl-hint a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.bt-nl-hint-x { flex: 0 0 auto; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent;
    color: var(--bt-ink-2); font-size: 18px; line-height: 1; cursor: pointer; }
.bt-nl-hint-x:hover, .bt-nl-hint-x:focus-visible { color: var(--bt-ink); background: var(--bt-line); outline: none; }
@media (max-width: 600px) { .bt-nl-hint { display: none; } }   /* phone: the envelope in the top bar */

/* ── flyover and first-person view of a trail (battues-fly.js) ───────────────────────── */
/* during a flyover the 3D buttons stay: they turn, tilt and zoom the flying camera */
:is(.bt-map3d, .bt-ml-3d) .bt-fly { position: absolute; inset: 0; pointer-events: none; z-index: 5; font: 13px/1.3 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.bt-fly-banner { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px);
    background: #b91c1c; color: #fff; font-weight: 700; padding: 7px 14px; border-radius: 8px; box-shadow: 0 2px 8px #0005;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-fly-panel { position: absolute; left: 50%; bottom: 14px; transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, 0px)); width: min(640px, calc(100% - 24px));
    background: color-mix(in srgb, rgb(12, 14, 11) var(--bt-glass), transparent); color: #fff; border-radius: 10px; padding: 8px 10px 8px;
    pointer-events: auto; box-shadow: 0 2px 12px #0006; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.bt-fly-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.bt-fly-prof { display: block; width: 100%; height: 46px; margin-bottom: 6px; }
.bt-fly-prof .bt-fly-area { fill: rgba(255, 255, 255, .14); }
.bt-fly-prof .bt-fly-line { fill: none; stroke: #e8eef2; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bt-fly-prof .bt-fly-hit { fill: rgba(220, 38, 38, .55); }
.bt-fly-bar { display: flex; align-items: center; gap: 8px; }
.bt-fly-b { flex: 0 0 auto; min-width: 34px; height: 32px; border: 1px solid #ffffff40; border-radius: 6px; background: #ffffff1a;
    color: #fff; font: inherit; font-weight: 700; cursor: pointer; padding: 0 8px; }
.bt-fly-b:hover, .bt-fly-b:focus-visible { background: #ffffff33; outline: none; border-color: #fff; }
.bt-fly-b.is-on { background: #b91c1c; border-color: #fff; }
.bt-fly-rec { color: #f87171; }
.bt-fly-rec.is-on { color: #fff; }
.bt-fly-seek { flex: 1 1 auto; min-width: 60px; accent-color: #e8590c; }
.bt-fly-read { flex: 0 0 auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the traveller of the mode (🚶 🚴 🚗) on the map and on the profiles */
.bt-fly-marker, .bt-trav-marker { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fffffff0;
    border: 2px solid #e8590c; box-shadow: 0 1px 4px #0007; font-size: 18px; line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
/* hover marker on the trail (chart <-> map, 2D and 3D): the walker on a disc, border inside the box so the
   icon anchor (half the size) is the exact centre */
.bt-trav-marker, .leaflet-marker-icon.bt-trav-marker { box-sizing: border-box; width: 38px; height: 38px; font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center; background: transparent; }
/* Leaflet's stylesheet comes after this one and sets display: block on every .leaflet-marker-icon */
.leaflet-marker-icon.bt-fly-marker { display: grid; }
/* flyover / first-person walker and the 3D hover walker: orange ring only, the map shows through */
.bt-fly-marker, .maplibregl-marker.bt-trav-marker { background: transparent; }
.bt-fly-profwrap { position: relative; margin-bottom: 6px; }
.bt-fly-profwrap .bt-fly-prof { margin-bottom: 0; }
/* pointer on the mini profile: cursor and "km · m" readout; click or drag moves the playback */
.bt-fly-profwrap { cursor: crosshair; touch-action: none; }
.bt-fly-prof .bt-fly-cur { stroke: #fff; stroke-width: 1; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.bt-fly-hov { position: absolute; bottom: 100%; transform: translateX(4px); margin-bottom: 2px; padding: 1px 5px; border-radius: 4px;
    background: rgba(0, 0, 0, .7); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none;
    font-variant-numeric: tabular-nums; }
.bt-fly-hov.bt-fly-hov-l { transform: translateX(calc(-100% - 4px)); }
.bt-fly-hov[hidden] { display: none; }
/* surface strip under the player's mini profile, in the travelled direction (colours of the trail card) */
.bt-fly-surf { position: relative; height: 5px; margin: -4px 0 6px; border-radius: 2px; overflow: hidden; background: var(--bt-s-unknown); }
.bt-fly-surf[hidden] { display: none; }
.bt-fly-surf i { position: absolute; top: 0; bottom: 0; }
.bt-fly-surf .s-asphalt { background: var(--bt-s-asphalt); } .bt-fly-surf .s-paving { background: var(--bt-s-paving); }
.bt-fly-surf .s-gravel { background: var(--bt-s-gravel); } .bt-fly-surf .s-natural { background: var(--bt-s-natural); }
.bt-fly-surf .s-unknown { background: var(--bt-s-unknown); }
.bt-fly-dot { position: absolute; left: 0; top: 100%; font-size: 18px; line-height: 1; pointer-events: none;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; filter: drop-shadow(0 0 2px #fff); }
.bt-elev svg .cur-d { font-size: 16px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
/* trail card: GPX, KML, Share, flyover and FPV on one line (measured: fits all four languages from 360 px up) */
.bt-acts-one { flex-wrap: nowrap; gap: 4px; }
.bt-acts-one .bt-act { padding: 5px 6px; gap: 3px; font-size: 12px; white-space: nowrap; }
@media (max-width: 480px) {
    .bt-acts-one .bt-act-i { display: none; }       /* phones: no download glyph */
}
@media (max-width: 359px) {
    .bt-acts-one { flex-wrap: wrap; }               /* very narrow screens: wrap rather than overflow */
}
@media (max-width: 600px) {
    .bt-fly-panel { bottom: 8px; padding: 6px 8px; }
    .bt-fly-read { display: none; }
    .bt-fly-prof { height: 34px; }
    .bt-fly-b { min-width: 30px; padding: 0 6px; }
}
.bt-flying .leaflet-bottom.leaflet-right { display: none; }
.bt-map3d.bt-fly-fpv .bt-3d-marker { display: none; }
/* MapLibre beta, 3D on the page's own map: the points of interest hide in first-person view as well */
.bt-ml-3d.bt-fly-fpv:not(.bt-fly-live) .leaflet-marker-pane .bt-poi { display: none; }
/* live first-person view (live GPS FPV): the selected points of interest stay, my own position marker (under the eye)
   goes; trail names stand upright on the trail ahead; the live banner stays above the overlay */
.bt-fly-live .bt-gps-dot, .bt-ml-3d.bt-fly-live .bt-gps-dot { display: none; }
.bt-fly-live .bt-3d-readout { display: none; }   /* live first-person: no direction / tilt label (the profile button sits there) */
.bt-fly-live-name { padding: 3px 8px; border-radius: 6px; background: rgba(15, 23, 42, .78); color: #fff; font: 600 13px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif;
    white-space: nowrap; pointer-events: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.bt-fly-live-hint { flex: 1 1 auto; font-size: 11px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-fly-live .bt-fly-read { flex: 0 0 auto; }
@media (max-width: 600px) { .bt-fly-live .bt-fly-read { display: inline; } .bt-fly-live .bt-fly-live-hint { display: none; } }
/* live FPV: a small panel (trail name, profile, km · m, ×) at the bottom; folded away it leaves a chip */
.bt-fly-live .bt-fly-panel { width: min(420px, calc(100% - 24px)); padding: 6px 8px; background: rgba(15, 23, 42, .55); }
.bt-fly-live .bt-fly-title { margin-bottom: 2px; }
.bt-fly-live .bt-fly-prof { height: 30px; margin-bottom: 2px; }
.bt-fly-live .bt-fly-b { min-width: 28px; height: 26px; }
.bt-fly-live .bt-fly-panel[hidden], .bt-fly-live-chip[hidden] { display: none; }
.bt-fly-live-chip { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); pointer-events: auto; border: 1px solid #ffffff40;
    border-radius: 16px; background: rgba(15, 23, 42, .6); color: #fff; font: 600 12px/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
    padding: 7px 12px; cursor: pointer; }
.bt-live-fpv { font: 700 11px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .02em; opacity: 1; width: auto; padding: 0 7px; }
.bt-live-fpv.is-on { opacity: 1; background: #2563eb; border-color: #2563eb; color: #fff; }
/* AR view (live GPS camera view, ?ar=1): the camera picture under the see-through map; the page's own markers,
   labels and 3D buttons go (the AR view draws today's lots, the trail and the rescue point itself) */
.bt-live-ar { font: 700 11px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .02em; opacity: 1; width: auto; padding: 0 7px; }
.bt-live-ar.is-on { opacity: 1; background: #dc2626; border-color: #dc2626; color: #fff; }
.bt-ar-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; pointer-events: none; }
.bt-ar-on { background: #000 !important; }
.bt-ar-on .leaflet-marker-pane, .bt-ar-on .leaflet-shadow-pane, .bt-ar-on .leaflet-tooltip-pane, .bt-ar-on .leaflet-popup-pane,
.bt-ar-on .maplibregl-marker:not(.bt-ar-mk), .bt-ar-on .bt-3d-ctrl, .bt-ar-on .bt-fly, .bt-ar-on .leaflet-control-zoom,
.bt-ar-on .bt-legend, .bt-ar-on .bt-legend-chip { display: none !important; }
.bt-ar-on .maplibregl-canvas-container { transition: opacity .6s; }
.bt-ar-dim .maplibregl-canvas-container, .bt-ar-dim .bt-ar-mk { opacity: .3; }
/* the see-through slider on the labels and markers too (21 Nov 2026; filter, so it multiplies with the covered / dim opacity) */
.bt-ar-on .bt-ar-mk { filter: opacity(var(--bt-ar-items, 1)); }
/* the time at the end of a sun / moon line on the map (looking down) */
.bt-ar-skylab { padding: 2px 7px; border-radius: 10px; background: rgba(15, 23, 42, .8); color: #fff; border: 1.5px solid var(--c, #fff);
    font: 700 12px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif; white-space: nowrap; pointer-events: none; }
.bt-ar-hud { position: absolute; inset: 0; pointer-events: none; z-index: 650; font: 600 13px/1.25 system-ui, -apple-system, 'Segoe UI', sans-serif; color: #fff; }
.bt-ar-top { position: absolute; right: 10px; bottom: 74px; display: flex; gap: 8px; align-items: center; }
/* alignment: round status button, its panel above it; leaving AR: ✕ alone at the top right, under the layers
   button (at the top when the overlay is turned and the map's buttons give way) */
.bt-ar-top { flex-direction: row; align-items: center; }   /* lock | ✋, ✋ on the right edge under the slider */
/* the alignment panel stands above the buttons (they sit side by side since 21 Nov 2026: the lock stacked on the
   alignment button reached into the see-through slider) */
.bt-ar-top > .bt-ar-alignpop { position: absolute; right: 0; bottom: calc(100% + 8px); }
.bt-ar-alignb { width: 44px !important; height: 44px !important; border-radius: 22px !important; font-size: 19px !important; }
.bt-ar-alignb.is-ok { background: rgba(21, 128, 61, .85) !important; border-color: #86efac !important; }
.bt-ar-alignb.is-hand { background: rgba(37, 99, 235, .85) !important; border-color: #93c5fd !important; }
.bt-ar-alignb[aria-expanded="true"] { outline: 2px solid #ffd400; outline-offset: 1px; }
.bt-ar-alignpop { pointer-events: auto; width: min(260px, calc(100vw - 40px)); padding: 10px 12px; border-radius: 12px;
    background: rgba(15, 23, 42, .88); box-shadow: 0 4px 16px rgba(0, 0, 0, .45); }
.bt-ar-alignpop[hidden] { display: none; }
.bt-ar-alignpop p { margin: 0 0 6px; }
.bt-ar-align { font-weight: 700; }
.bt-ar-alignhelp { font-weight: 500; font-size: 12.5px; opacity: .9; }
.bt-ar-alignpop .bt-ar-reset { font: 600 13px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif; padding: 8px 10px; border-radius: 9px;
    border: 1px solid #ffffff55; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.bt-ar-alignpop .bt-ar-reset[hidden] { display: none; }
.bt-ar-x { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 6px; width: 44px !important; height: 44px !important;
    border-radius: 22px !important; background: rgba(185, 28, 28, .8) !important; border-color: #fecaca !important; font-size: 22px !important; }
.bt-ar-rot .bt-ar-x { top: max(10px, env(safe-area-inset-top)); right: 12px; }

.bt-ar-btn { pointer-events: auto; width: 36px; height: 36px; border-radius: 18px; border: 1px solid #ffffff55; background: rgba(15, 23, 42, .62);
    color: #fff; font: 700 18px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; cursor: pointer; }
.bt-ar-btn[hidden], .bt-ar-realign[hidden], .bt-ar-rescue[hidden] { display: none; }
.bt-ar-realign { position: absolute; left: 50%; bottom: 172px; transform: translateX(-50%); pointer-events: auto; max-width: calc(100% - 32px);
    padding: 8px 14px; border-radius: 18px; border: 1px solid #fde68a; background: rgba(120, 53, 15, .85); color: #fff; font: inherit; cursor: pointer; }
.bt-ar-rescue { position: absolute; left: 10px; bottom: 74px; display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 16px;
    background: rgba(185, 28, 28, .85); }
.bt-ar-rescue svg { transition: transform .3s; }
.bt-ar-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); text-align: center;
    padding: 7px 12px; border-radius: 14px; background: rgba(15, 23, 42, .62); font-weight: 500; transition: opacity 1s; }
.bt-ar-hint.is-gone { opacity: 0; }
/* lot label plate of the AR view: as the map's plates, a slate-blue header "Lot N", the date and the distance below */
.bt-ar-plate { min-width: 84px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .92); color: #1d2320; text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45); pointer-events: none; font: 600 12px/1.25 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.bt-ar-plate-h { background: #24405e; color: #fff; padding: 3px 8px; font-weight: 700; }
.bt-ar-plate-d { padding: 2px 8px 0; }
.bt-ar-plate-m { padding: 0 8px 3px; color: #b91c1c; font-weight: 700; }
.bt-ar-plate-c { padding: 2px 8px 0; font-weight: 700; max-width: 180px; }
.bt-ar-plate-c[hidden] { display: none; }
/* AR: distance marks on the selected trail, points of interest, place and summit names, the base-map slider */
.bt-ar-km { padding: 2px 7px; border-radius: 10px; background: rgba(15, 23, 42, .78); color: #fff; border: 1.5px solid #fff;
    font: 700 12px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif; pointer-events: none; white-space: nowrap; }
/* a point of interest: its name on a stem above the place (bigger than the map's, to read over the camera picture) */
.bt-ar-poiw { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.bt-ar-poiw::after { content: ''; width: 2px; height: 34px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 3px rgba(0, 0, 0, .7); }
.bt-ar-poi { display: flex; gap: 6px; align-items: center; padding: 4px 10px 4px 4px; border-radius: 17px; background: rgba(255, 255, 255, .95);
    color: #1d2320; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); pointer-events: none; white-space: nowrap;
    font: 700 13px/1.15 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.bt-ar-poi-i { width: 27px; height: 27px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.bt-ar-poi-i svg { width: 16px; height: 16px; fill: currentColor; }
.bt-ar-poi-t { display: flex; flex-direction: column; }
.bt-ar-poi-t b:empty { display: none; }
.bt-ar-poi-t i { font-style: normal; font-weight: 600; font-size: 12px; color: #334155; }
.bt-ar-place { display: flex; flex-direction: column; align-items: center; pointer-events: none; white-space: nowrap; color: #fff;
    text-shadow: 0 0 3px #000, 0 1px 2px #000; font: 700 13px/1.15 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.bt-ar-place::after { content: ''; width: 1.5px; height: 14px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 2px #000; }
.bt-ar-place i { font-style: normal; font-weight: 500; font-size: 11px; }
.bt-ar-place.is-peak b { color: #fde68a; }
/* the slider's column (21 Nov 2026): the slider, under it the lock and ✋ (.bt-ar-top moved in), from the bottom up */
.bt-ar-base { position: absolute; right: 10px; top: calc(max(10px, env(safe-area-inset-top)) + 108px); bottom: 74px;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 10px; pointer-events: none; }
.bt-ar-hud .bt-ar-base > .bt-ar-top, .bt-ar-hud.has-prof .bt-ar-base > .bt-ar-top { position: relative; right: auto; bottom: auto; flex: none; }
.bt-ar-rot .bt-ar-base { top: calc(max(10px, env(safe-area-inset-top)) + 100px); }
/* AR: the map's layer switcher under ✕ (moved into the overlay); open, it lists over the view and scrolls */
.bt-ar-lyr { position: absolute; right: 8px; top: calc(max(10px, env(safe-area-inset-top)) + 56px); bottom: max(10px, env(safe-area-inset-bottom));
    display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; z-index: 2; }
.bt-ar-rot .bt-ar-lyr { right: 14px; }
.bt-ar-lyr .leaflet-control-layers { position: relative; margin: 0; pointer-events: auto; max-height: 100%; display: flex; flex-direction: column; }
.bt-ar-lyr .leaflet-control-layers-list { height: auto !important; max-height: 100%; overflow-y: auto; }
.bt-ar-hud.has-prof .bt-ar-base { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 124px); }   /* where ✋ stood: above the profile */
.bt-ar-base-in { pointer-events: auto; box-sizing: border-box; height: 210px; flex: 0 1 auto; min-height: 96px; width: 44px; display: flex;
    flex-direction: column; gap: 6px; align-items: center; padding: 10px 0 8px; border-radius: 22px; background: rgba(15, 23, 42, .62); color: #fff; }
.bt-ar-base-in svg { flex: none; }
.bt-ar-base input { writing-mode: vertical-lr; direction: rtl; flex: 1; min-height: 0; width: 24px; margin: 0; accent-color: #cbd5e1; touch-action: none; }
/* AR: two arrows at the top middle, turned relative to the view: purple = my walking direction, trail colour = the
   way along the selected trail (dashed ring: away from it, the arrow leads back to it) */
.bt-ar-dirs { position: absolute; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%); display: flex; gap: 14px; }
.bt-ar-dir { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 23, 42, .55);
    transition: transform .15s linear; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.bt-ar-dir[hidden] { display: none; }
.bt-ar-dir-trail { pointer-events: auto; cursor: pointer; }
/* AR held sideways with the rotation lock on: the overlay is turned (battues-ar.js); the map's own buttons, which
   would lie sideways, give way (✕ of the overlay closes) */
.bt-ar-hud { transform-origin: 50% 50%; }
.bt-ar-rot .leaflet-control-container, .bt-ar-rot ~ .leaflet-control-container, body.bt-ar-rot .bt-live-banner { display: none !important; }
/* AR: mini profile of the selected trail above the bottom buttons, a little see-through; the chips move up */
.bt-ar-prof { position: absolute; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 6px 8px 4px;
    border-radius: 10px; background: rgba(15, 23, 42, .5); pointer-events: none; }
.bt-ar-prof-x { pointer-events: auto; flex: none; width: 26px; height: 22px; margin: -3px -4px 0 2px; padding: 0; border: 0; border-radius: 11px;
    background: rgba(255, 255, 255, .15); color: #fff; font: 700 13px/22px system-ui, -apple-system, 'Segoe UI', sans-serif; cursor: pointer; }
.bt-ar-profb { position: absolute; left: 10px; bottom: max(14px, env(safe-area-inset-bottom)); width: 44px !important; height: 44px !important;
    border-radius: 22px !important; display: grid; place-items: center; }
/* the two direction arrows at the top are off for now (to be reworked) */
.bt-ar-dirs { display: none !important; }
.bt-ar-prof[hidden] { display: none; }
.bt-ar-prof-h { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 3px; }
.bt-ar-prof-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.bt-ar-prof-r { white-space: nowrap; font-weight: 500; opacity: .9; margin-left: auto; }
.bt-ar-prof-box { position: relative; height: 46px; }
.bt-ar-prof-box svg { width: 100%; height: 100%; display: block; }
.bt-ar-prof-area { fill: rgba(255, 255, 255, .18); fill-opacity: .35; }
.bt-ar-prof-line { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.bt-ar-prof-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #7c3aed;
    border: 2px solid #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .6); }
.bt-ar-prof-dot.is-off { background: #94a3b8; }
.bt-ar-prof .bt-fly-surf { margin: 3px 0 0; }
.bt-ar-hud.has-prof .bt-ar-top, .bt-ar-hud.has-prof .bt-ar-rescue { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 100px); }
.bt-ar-hud.has-prof .bt-ar-realign { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 150px); }
.bt-ar-hud.has-prof .bt-ar-hint { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 104px); }
.bt-ar-on .bt-3d-readout { display: none; }   /* AR: no direction / tilt label (the photo button sits there) */
/* AR photo: camera button and the "with drawing" switch (bottom left), the preview with share / discard, the flash */
.bt-ar-shot { position: absolute; left: 10px; top: max(10px, env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.bt-ar-shot .bt-ar-snap { width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; }
.bt-ar-shot .bt-ar-ov { width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; }
.bt-ar-ov .bt-ar-ov-x { display: none; }
.bt-ar-ov.is-off { color: #cbd5e1; background: rgba(15, 23, 42, .45); }
.bt-ar-ov.is-off .bt-ar-ov-x { display: inline; }
/* AR: the map's own buttons on the left give way (the camera button sits there; ✕ leaves AR) */
.bt-ar-on .leaflet-top.leaflet-left, .bt-ar-on ~ .leaflet-control-container .leaflet-top.leaflet-left { display: none !important; }
.bt-ar-photo { position: absolute; inset: 0; z-index: 3; pointer-events: auto; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px; padding: 16px; background: rgba(0, 0, 0, .78); }
.bt-ar-photo[hidden] { display: none; }
.bt-ar-photo img { max-width: 100%; max-height: calc(100% - 70px); border-radius: 8px; box-shadow: 0 4px 18px rgba(0, 0, 0, .6); }
.bt-ar-photo-b { display: flex; gap: 10px; }
.bt-ar-photo-b button { font: 700 15px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; padding: 12px 18px; border-radius: 12px; border: 0; cursor: pointer; }
.bt-ar-photo-share { background: #2563eb; color: #fff; }
.bt-ar-photo-x { background: rgba(255, 255, 255, .15); color: #fff; }
.bt-ar-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.bt-ar-flash.is-on { animation: bt-ar-flash .35s ease-out 1; }
@keyframes bt-ar-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
/* AR: which trail to follow (no trail selected yet, or a tap on the trail arrow) */
.bt-ar-pick { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: auto; z-index: 2;
    width: min(340px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow: auto; padding: 12px; border-radius: 14px;
    background: rgba(15, 23, 42, .88); box-shadow: 0 6px 24px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 8px; }
.bt-ar-pick[hidden] { display: none; }
.bt-ar-pick-h { margin: 0 0 2px; font-weight: 700; font-size: 15px; }
.bt-ar-pick-list { display: flex; flex-direction: column; gap: 6px; }
.bt-ar-pick-b, .bt-ar-pick-later { font: 600 14px/1.25 system-ui, -apple-system, 'Segoe UI', sans-serif; text-align: left; padding: 10px 12px;
    border-radius: 10px; border: 1px solid #ffffff40; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.bt-ar-pick-b.is-affected { border-color: #ffd400; }
.bt-ar-pick-b.is-on { background: #2563eb; border-color: #2563eb; }
.bt-ar-pick-later { text-align: center; background: none; border-color: transparent; color: #cbd5e1; font-weight: 500; }
.bt-ar-dir-walk { color: #7c3aed; }
.bt-ar-dir-trail.is-off { outline: 2px dashed currentColor; outline-offset: -3px; }
/* AR: my position without the traveller (the heading cone and the accuracy circle stay) */
.bt-ar-on .bt-gps-dot .bt-gps-me { display: none; }
/* AR looking down (view from above): my position of the AR view (traveller and cone up the screen, the way the phone
   looks) instead of the page's marker */
.bt-ar-on.bt-ar-down .bt-gps-dot:not(.bt-ar-me) { display: none; }
.bt-ar-on .bt-ar-me .bt-gps-me { display: grid; background: rgba(255, 255, 255, .92); }
.bt-ar-me { width: 76px; height: 76px; transition: opacity .3s; }
/* while a flyover or FPV plays, the left buttons and the legend stay as in 3D (a button that moves the map ends the
   playback where it is, see sync3d) */
/* slope colours of the elevation profiles (climbs green → red, descents green → blue) */
.bt-elev svg .l { stroke-width: 2.4; stroke-linecap: round; }
.bt-elev-slope { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 4px; font-size: 11px; color: var(--bt-muted); }
.bt-elev-slope b { display: inline-flex; height: 7px; border-radius: 2px; overflow: hidden; }
.bt-elev-slope b i { display: block; width: 9px; height: 7px; }
.bt-fly-prof .bt-fly-line { stroke-width: 2.2; }

/* full screen (button in 2D and 3D, under the 3D / 2D button): the map alone; a full-window layout where the browser
   has no element full screen (iPhone) */
.bt-fs-btn { display: grid; place-items: center; }
.bt-map-wrap:fullscreen { width: 100vw; height: 100vh; }
.bt-map-wrap.bt-pseudo-fs { position: fixed !important; inset: 0 !important; z-index: 10000; width: auto !important; height: auto !important; }
/* the live GPS banner and toasts above the 3D view */
.bt-3d-on .bt-live-banner, .bt-3d-on .bt-toast { z-index: 1100; }
/* elevation profiles: the area under the line in the slope colours */
.bt-elev svg .a { fill-opacity: .3; }
.bt-elev svg .played { fill: #e8590c; fill-opacity: .14; }
.bt-elev svg .cur-d { fill: #e8590c; stroke: #fff; stroke-width: 2; }
.bt-fly-prof .bt-fly-area { fill-opacity: .35; }

/* trail card: "Slope colours on the map" switch next to the elevation title (paintSlope in battues-map.js) */
.bt-elev-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bt-slope-sw, .bt-surf-sw { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-transform: none; letter-spacing: 0;
    font-weight: 500; font-size: 11.5px; color: var(--bt-ink-2); user-select: none; }
.bt-slope-sw[hidden], .bt-surf-sw[hidden] { display: none; }
.bt-slope-sw input, .bt-surf-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bt-slope-sw i, .bt-surf-sw i { position: relative; width: 28px; height: 16px; border-radius: 8px; background: var(--bt-muted); opacity: .55; transition: background .15s, opacity .15s; }
.bt-slope-sw i::after, .bt-surf-sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.bt-slope-sw input:checked + i { background: linear-gradient(90deg, #2e9d3a, #f2c230, #e0442b); opacity: 1; }
.bt-surf-sw input:checked + i { background: linear-gradient(90deg, var(--bt-s-asphalt), var(--bt-s-gravel), var(--bt-s-natural)); opacity: 1; }
.bt-slope-sw input:checked + i::after, .bt-surf-sw input:checked + i::after { transform: translateX(12px); }
.bt-slope-sw input:focus-visible + i, .bt-surf-sw input:focus-visible + i { outline: 2px solid var(--bt-orange); outline-offset: 2px; }
.bt-trav-i { display: block; line-height: 1; }

/* ── route planner (battues-route.js, JEA-11) ─────────────────────────────────────────────────────────────────── */
.bt-plan-tool { margin-top: 10px !important; border: 0 !important; }
.bt-plan-btn { display: grid !important; place-items: center; width: 34px !important; height: 34px !important; border-radius: 4px !important; }   /* black like the other map buttons */
/* slide-out of a map button (track editor): glides out of the button's right edge, its buttons touching the button
   and each other, lighter than it; the button itself ringed in yellow while it is out */
.bt-slide-host { position: relative; }
.bt-slide-host.leaflet-control { width: max-content !important; min-width: 0 !important; }
.bt-slide-main { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation;
    transition: border-radius .2s; }
.bt-slide-out { position: absolute; left: 100%; top: 0; z-index: 1; overflow: hidden; visibility: hidden; pointer-events: none;
    transition: visibility 0s linear .26s; }
.bt-slide-host.is-slide > .bt-slide-out { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.bt-slide-in { display: flex; transform: translateX(-101%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.bt-slide-host.is-slide .bt-slide-in { transform: none; }
.bt-slide-in > .bt-slide-b { display: grid !important; place-items: center; box-sizing: border-box; width: 34px !important; height: 34px !important;
    margin: 0; padding: 0; border: 2px solid #0003; border-left-width: 0; border-radius: 0; background: #fff; color: #333; cursor: pointer;
    background-clip: padding-box; opacity: .72; transition: opacity .15s; }
.bt-slide-in > .bt-slide-b:hover, .bt-slide-in > .bt-slide-b:focus-visible { opacity: 1; }
.bt-slide-in > .bt-slide-b:last-child { border-radius: 0 4px 4px 0; }
html.bt-dark .bt-slide-in > .bt-slide-b { background: var(--bt-card); color: var(--bt-ink); border-color: #0008; }
.bt-slide-host.is-slide > .bt-slide-main { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important;
    box-shadow: inset 0 0 0 2px var(--bt-trail); }
.bt-slide-in > .bt-plan-fly-upload { color: #ea580c; }
.bt-plan-card .bt-plan-tool[data-act="upload"] { color: #ea580c; }   /* upload a track (GPX / KML) */
html.bt-dark .bt-plan-card .bt-plan-tool[data-act="upload"] { color: #fb923c; }
html.bt-dark .bt-slide-in > .bt-plan-fly-upload { color: #fb923c; }
@media (prefers-reduced-motion: reduce) { .bt-slide-in, .bt-slide-main { transition: none; } }
.bt-planning, .bt-planning .maplibregl-canvas-container.maplibregl-interactive, .bt-planning .leaflet-interactive.leaflet-grab { cursor: crosshair; }
.bt-wp-icon { background: none; border: 0; }
.bt-wp { display: inline-grid; place-items: center; box-sizing: border-box; width: 26px; height: 26px; border-radius: 50%;
         font: 700 12px/1 var(--bt-font); color: #1d1d1b; background: #fff; border: 3px solid #1d4ed8;
         box-shadow: 0 1px 4px #0006; font-variant-numeric: tabular-nums; }
.bt-wp-start { background: #2f7d32; border-color: #fff; color: #fff; }
.bt-wp-end { background: #b91c1c; border-color: #fff; color: #fff; }
.bt-wp-icon { cursor: grab; }
.bt-wp-icon.leaflet-dragging, .leaflet-dragging .bt-wp { cursor: grabbing; }
.bt-wp-icon.is-sel .bt-wp, .bt-wp-icon.is-hover .bt-wp { transform: scale(1.25); box-shadow: 0 0 0 3px #ffd400, 0 1px 4px #0006; }
.bt-plan-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 4px 0 6px; }
.bt-plan-sport { display: inline-flex; border: 1px solid var(--bt-line); border-radius: 999px; overflow: hidden; }
.bt-plan-sport button { border: 0; background: var(--bt-card); color: var(--bt-ink); padding: 5px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.bt-plan-sport button.is-on { background: #1d4ed8; color: #fff; }
.bt-plan-tools { display: inline-flex; gap: 2px; }
.bt-plan-tool { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--bt-line); border-radius: 6px;
                background: var(--bt-card); color: var(--bt-ink); cursor: pointer; padding: 0; }
.bt-plan-tool:hover:not(:disabled), .bt-plan-tool:focus-visible { border-color: #1d4ed8; outline: none; }
.bt-plan-tool:disabled { opacity: .35; cursor: default; }
.bt-plan-hint { margin: 2px 0 6px; font-size: 12.5px; color: var(--bt-ink-2); }
/* planner messages on the map (trail followed, hint, battues crossed): fade away after 5 s, held while pointed at */
.bt-plan-msgs { position: absolute; z-index: 1001; top: 12px; left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 130px));
    display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.bt-plan-toast { pointer-events: auto; background: var(--bt-paper); color: var(--bt-ink); border-radius: 10px; padding: 7px 10px;
    box-shadow: 0 2px 10px #0004; font: 13px/1.35 var(--bt-font); animation: bt-plan-fade 5s ease forwards; }
.bt-plan-toast:hover { animation-play-state: paused; }
.bt-plan-toast .bt-plan-msg { margin: 0; }
.bt-plan-toast-bat { padding: 0; }                  /* the coloured message sits on the plain paper */
.bt-plan-toast-bat .bt-plan-msg { border-radius: 10px; padding: 8px 10px; }
.bt-plan-toast-follow .bt-plan-ftr { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@keyframes bt-plan-fade { 0% { opacity: 0; transform: translateY(-4px); } 6% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bt-plan-toast { animation-name: bt-plan-fade-rm; } }
@keyframes bt-plan-fade-rm { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 900px) { .bt-plan-msgs { top: 76px; width: calc(100% - 120px); } }   /* phone: under the day strip */
.bt-plan-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 4px 0 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.bt-plan-stats b { font-size: 18px; }
.bt-plan-spin { width: 14px; height: 14px; border: 2px solid var(--bt-line); border-top-color: #1d4ed8; border-radius: 50%; animation: bt-plan-spin .8s linear infinite; }
@keyframes bt-plan-spin { to { transform: rotate(360deg); } }
.bt-plan-card.is-loading .bt-elev { opacity: .55; }
.bt-plan-msg { border: 1px solid; border-radius: 8px; padding: 6px 8px; margin: 4px 0 8px; font-size: 12.5px; }
.bt-plan-msg.is-ok { background: var(--bt-ok-bg); border-color: var(--bt-ok-line); color: var(--bt-ok); }
.bt-plan-msg.is-warn { background: var(--bt-warn-bg); border-color: var(--bt-warn-line); }
/* the route takes ways closed to the public (access=no): purple, as their dashes on the map */
.bt-plan-msg.is-closed { background: rgba(126, 34, 206, .1); border-color: #7e22ce; }

.bt-plan-msg.is-bad { background: var(--bt-bad-bg); border-color: var(--bt-bad-line); }
.bt-plan-msg.is-bad > b { color: var(--bt-bad); }
.bt-plan-hits { list-style: none; margin: 4px 0; padding: 0; }
.bt-plan-hits button { border: 0; background: none; padding: 2px 0 2px 14px; font: inherit; color: var(--bt-ink); cursor: pointer; text-align: left; position: relative; }
.bt-plan-hits button::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 4px; border-radius: 2px; background: #e8590c; }
.bt-plan-hits button.is-day::before { background: #d7301f; }
.bt-plan-hits button:hover { text-decoration: underline; }
.bt-plan-note { display: block; color: var(--bt-ink-2); font-size: 11.5px; }
.bt-plan-wps, .bt-plan-saved { margin: 6px 0; font-size: 12.5px; }
.bt-plan-wps summary, .bt-plan-saved summary { cursor: pointer; color: var(--bt-ink-2); }
.bt-plan-wps ol, .bt-plan-saved ul { list-style: none; margin: 4px 0; padding: 0; }
.bt-plan-wps li, .bt-plan-saved li { display: flex; align-items: center; gap: 4px; border-radius: 6px; }
.bt-plan-wps li.is-sel { background: var(--bt-hover); }
.bt-plan-pt, .bt-plan-load { flex: 1; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 3px 4px; font: inherit; color: var(--bt-ink); cursor: pointer; text-align: left; }
.bt-plan-pt .bt-wp { width: 20px; height: 20px; font-size: 10.5px; border-width: 2px; box-shadow: none; }
.bt-plan-load span { color: var(--bt-muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.bt-plan-del { border: 0; background: none; color: var(--bt-muted); font-size: 17px; line-height: 1; padding: 2px 8px; cursor: pointer; border-radius: 6px; }
.bt-plan-del:hover, .bt-plan-del:focus-visible { color: var(--bt-bad); background: var(--bt-bad-bg); outline: none; }
.bt-plan-acts button.bt-act { cursor: pointer; }
/* "Download": GPX, KML and PDF slide down from it, touching it and each other, over what follows */
.bt-dl { position: relative; display: inline-flex; }
.bt-dl-ico { display: block; flex: none; }
.bt-dl.is-open > .bt-dl-main { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-color: var(--bt-trail); }
.bt-dl-out { position: absolute; left: 0; top: 100%; z-index: 20; min-width: 100%; overflow: hidden; visibility: hidden; pointer-events: none;
    transition: visibility 0s linear .24s; }
.bt-dl.is-open > .bt-dl-out { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.bt-dl-in { display: flex; flex-direction: column; transform: translateY(-101%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
.bt-dl.is-open .bt-dl-in { transform: none; }
.bt-dl-in > .bt-dl-b { margin: 0; border-radius: 0; border-top-width: 0; justify-content: flex-start; background: var(--bt-card); }
.bt-dl-in > .bt-dl-b:last-child, .bt-dl-in > .bt-dl-b:has(+ [hidden]:last-child) { border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }
.bt-dl-in > .bt-dl-b[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .bt-dl-in { transition: none; } }
.bt-plan-acts button.bt-act:disabled { opacity: .4; cursor: default; }
.bt-plan-box { margin: 6px 0; padding: 8px; border: 1px solid var(--bt-line); border-radius: 8px; background: var(--bt-paper); font-size: 12.5px; }
.bt-plan-box input[type=text] { width: 100%; box-sizing: border-box; padding: 5px 6px; border: 1px solid var(--bt-line); border-radius: 6px; background: var(--bt-card); color: var(--bt-ink); font: inherit; }
.bt-plan-box label input { margin-top: 3px; }
.bt-plan-row { display: flex; gap: 6px; margin-top: 6px; }
.bt-plan-card .bt-pop-h::before { background: #1d4ed8 !important; box-shadow: 0 0 0 1.5px #ffffffaa !important; }
.bt-plan-avoid { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 13px; cursor: pointer; position: relative; }
.bt-plan-avoid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bt-plan-avoid i { position: relative; flex: none; width: 28px; height: 16px; border-radius: 8px; background: var(--bt-muted); opacity: .55; transition: background .15s, opacity .15s; }
.bt-plan-avoid i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.bt-plan-avoid input:checked + i { background: var(--bt-u0); opacity: 1; }
.bt-plan-avoid input:checked + i::after { transform: translateX(12px); }
.bt-plan-avoid input:focus-visible + i { outline: 2px solid var(--bt-orange); outline-offset: 2px; }
/* ↪ / ✎ in the trail title, left of ⚑ and ⇄: the trail in the route planner */
.bt-detour {
    flex: none; width: 30px; height: 30px; padding: 0; border-radius: 6px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font: 600 16px/1 var(--bt-font);
    color: var(--bt-ink); background: var(--bt-hover); border: 1px solid var(--bt-line);
}
.bt-detour[hidden] { display: none; }
.bt-detour:hover, .bt-detour:focus-visible { border-color: var(--bt-trail); outline: none; }
.bt-plan-follow { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 2px 0 6px; padding: 3px 4px 3px 8px;
                  border-left: 3px solid #1d4ed8; background: var(--bt-paper); border-radius: 4px; font-size: 12.5px; }
.bt-detour.is-busy { opacity: .6; cursor: progress; }
.bt-planning.bt-plan-online, .bt-planning.bt-plan-online .maplibregl-canvas-container.maplibregl-interactive { cursor: copy; }
.bt-plan-loop { margin: 6px 0; font-size: 12.5px; }
.bt-plan-loop summary { cursor: pointer; color: var(--bt-ink-2); }
.bt-plan-loop .bt-plan-row { flex-wrap: wrap; align-items: center; }
.bt-plan-loop label { display: inline-flex; align-items: center; gap: 4px; }
.bt-plan-loop input, .bt-plan-loop select { padding: 4px 6px; border: 1px solid var(--bt-line); border-radius: 6px; background: var(--bt-card); color: var(--bt-ink); font: inherit; }
.bt-plan-loop input { width: 5em; }
.bt-plan-card .bt-poi-along { margin-top: 6px; }
.bt-plan-follow[hidden] { display: none; }
.bt-plan-go { margin: 0 0 6px; }
.bt-plan-go.is-on { border-color: #1d4ed8; }
.bt-plan-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 6px; padding: 6px 8px; border-radius: 8px;
               border: 1px solid #1d4ed855; background: #1d4ed814; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bt-plan-nav b { font-size: 16px; }
.bt-plan-nav.is-off { border-color: var(--bt-bad-line); background: var(--bt-bad-bg); }
.bt-plan-nav .bt-plan-off { color: var(--bt-bad); font-weight: 600; }
.bt-plan-nav.is-done { border-color: var(--bt-ok-line); background: var(--bt-ok-bg); }
.bt-plan-card [hidden] { display: none !important; }
.bt-plan-follow { flex-direction: column; align-items: stretch; }
.bt-plan-ftr { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.bt-plan-splitbox { display: flex !important; flex-wrap: wrap; gap: 4px; padding: 4px 0 6px 28px; }
.bt-plan-splitbox .bt-act { font-size: 12px; padding: 4px 8px; }
/* "Add to my route" with a route kept from earlier or ending far away: add to it, or a new route */
.bt-merge-ask { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 2px; padding: 8px 10px;
    border: 1px solid var(--bt-line, #3a4038); border-radius: 8px; }
.bt-merge-ask p { flex-basis: 100%; margin: 0 0 2px; font-size: 13px; }
.bt-merge-ask .bt-act { font-size: 13px; }
.bt-plan-cut { font-size: 14px; }
.bt-plan-join { font-size: 18px; font-weight: 600; }
.bt-plan-join:hover, .bt-plan-join:focus-visible { color: #1d4ed8 !important; background: #1d4ed814 !important; }
.bt-merge { margin-top: 6px; }
/* ⚑ left of ⇄: a loop can start elsewhere (click on the trail), profile, downloads, arrows and playback follow */
.bt-start {
    flex: none; margin-left: auto; width: 30px; height: 30px; padding: 0; border-radius: 6px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font: 600 15px/1 var(--bt-font);
    color: var(--bt-ink); background: var(--bt-hover); border: 1px solid var(--bt-line);
}
.bt-start[hidden] { display: none; }
.bt-start:not([hidden]) + .bt-rev { margin-left: 0; }
.bt-start:hover, .bt-start:focus-visible { border-color: var(--bt-trail); outline: none; }
.bt-start.is-on { background: var(--bt-accent); border-color: var(--bt-accent); color: #fff; }
.bt-start.is-picking, .bt-plan-tool.is-picking { background: #1d4ed8; border-color: #1d4ed8; color: #fff; animation: bt-start-pulse 1.2s ease-in-out infinite; }
@keyframes bt-start-pulse { 50% { box-shadow: 0 0 0 4px #1d4ed855; } }
.bt-start-picking, .bt-start-picking .maplibregl-canvas-container.maplibregl-interactive { cursor: crosshair; }
.bt-start-note { flex-basis: 100%; color: var(--bt-ink-2); }
.bt-start-reset { border: 0; background: none; padding: 0; font: inherit; color: #1d4ed8; text-decoration: underline; cursor: pointer; }
.bt-plan-flag { font-size: 13px; }


/* a GPX / KML file dragged over the page: the map says where to drop it (it opens in the route planner) */
.bt-drop { position: absolute; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
    background: rgba(29, 78, 216, .18); border: 3px dashed #1d4ed8; border-radius: 6px; pointer-events: none; }
.bt-drop-in { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 80%; padding: 18px 22px;
    background: rgba(255, 255, 255, .95); color: #1e3a8a; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
    font-weight: 600; text-align: center; }

/* layer switcher: three parts with a heading each (background map, layers, my layers) */
.bt-lyr-h { margin: 2px 0 4px; font: 700 11px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.leaflet-control-layers-separator + .bt-lyr-h { margin-top: 0; }
.bt-lyr-h[hidden], .bt-lyr-mine[hidden] { display: none; }
.bt-lyr-mine { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bt-lyr-more { font: 600 12px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif; padding: 3px 8px; border-radius: 8px; border: 1px solid #94a3b8;
    background: transparent; color: inherit; cursor: pointer; white-space: nowrap; }

/* the day bar's toggle exists on phones only (the bar floats over the map there) */
.bt-days-tg { display: none; }

/* AR: the sun and the moon (SVG over the camera picture, under the buttons); the daylight chip at the top middle */
.bt-ar-sky { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 640; overflow: visible; }
.bt-ar-day { position: absolute; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%); max-width: calc(100% - 140px);
    padding: 6px 12px; border-radius: 16px; background: rgba(15, 23, 42, .62); color: #fef3c7; font-weight: 600; font-size: 13px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.bt-ar-day[hidden] { display: none; }
.bt-ar-day.is-warn { background: rgba(194, 65, 12, .88); color: #fff; }
/* trail card: sunset, dark and back before dark */
.bt-sky-card { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 6px; font-size: 12.5px; color: var(--bt-ink-2); }
.bt-sky-card .is-late { color: #c2410c; font-weight: 700; }
html.bt-dark .bt-sky-card .is-late { color: #fb923c; }
/* map: the sun and moon direction labels */
.bt-sky-lbl { background: none; border: 0; }
.bt-sky-lbl span { display: inline-block; transform: translate(-50%, -50%); padding: 2px 7px; border-radius: 10px; border: 2px solid; background: rgba(255, 255, 255, .92);
    color: #1d2320; font: 700 11.5px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif; white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }

/* ── Terrain slope layer (JEA-36): controls under the overlays of the layer switcher, legend squares ─────────── */
.bt-slope-ctl { margin: 6px 0 2px 20px; max-width: 220px; font-size: 12px; }
.bt-slope-ctl[hidden] { display: none; }
.bt-slope-seg { display: flex; border: 1px solid var(--bt-line); border-radius: 6px; overflow: hidden; }
.bt-slope-seg button { flex: 1; padding: 4px 6px; border: 0; background: transparent; color: var(--bt-ink-2); font: inherit; cursor: pointer; }
.bt-slope-seg button + button { border-left: 1px solid var(--bt-line); }
.bt-slope-seg button.is-on { background: var(--bt-accent); color: #fff; font-weight: 600; }
.bt-slope-seg button:focus-visible { outline: 2px solid var(--bt-accent); outline-offset: -2px; }
/* the slider's track carries the slope colours (slopeTrack); a plain white thumb with a dark ring on top */
.bt-slope-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 6px 0 0; padding: 0; background: transparent; cursor: pointer; }
.bt-slope-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--bt-slope-track, var(--bt-line)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bt-slope-range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--bt-slope-track, var(--bt-line)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bt-slope-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -5px; border-radius: 50%; background: #fff; border: 2px solid #1d2320; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.bt-slope-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #1d2320; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.bt-slope-range:focus-visible { outline: 2px solid var(--bt-accent); outline-offset: 2px; border-radius: 4px; }
.bt-slope-val { font-weight: 600; color: var(--bt-ink); font-variant-numeric: tabular-nums; }
.bt-slope-hint { margin-top: 2px; font-size: 10.5px; line-height: 1.3; color: var(--bt-muted); }
html.bt-dark .bt-slope-seg button.is-on { background: var(--bt-accent); }
/* no slope layer for cars (updateSlopeTool) */
.bt-car .leaflet-control-layers label:has(.bt-slope-lbl), .bt-car .bt-slope-ctl { display: none; }
.bt-legend-sw.bt-lg-slope-sw { border-color: transparent; opacity: .75; }

/* ── Steepest stretch of a trail (JEA-36): band on the elevation chart, line under it ─────────────────────────── */
.bt-elev svg .steep { fill: var(--bt-ink); fill-opacity: .08; }
html.bt-dark .bt-elev svg .steep { fill-opacity: .14; }
.bt-steep { display: block; width: 100%; margin: 3px 0 0; padding: 3px 0; border: 0; background: none; color: var(--bt-ink-2);
    font: 600 12px var(--bt-font); text-align: left; cursor: pointer; }
.bt-steep:hover, .bt-steep:focus-visible { color: var(--bt-ink); text-decoration: underline; outline: none; }

/* touch lock of live GPS (14 Nov 2026): a see-through cover swallows touches; a touch shows the unlock panel in the
   middle (fades without touches); hold its lock 1.5 s to unlock */
.bt-lock { position: fixed; inset: 0; z-index: 10050; background: transparent; touch-action: none; -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none; }
.bt-lock * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.bt-lock-pop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 18px 20px 14px; border-radius: 22px; background: rgba(0, 0, 0, .72); box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.bt-lock-pop.is-shown { opacity: 1; visibility: visible; transition: opacity .2s; }
.bt-lock-b { width: 92px; height: 92px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: #000; color: #facc15;
    box-shadow: inset 0 0 0 2px #facc1555; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.bt-lock-b > svg { grid-area: 1 / 1; }
.bt-lock-ring { width: 88px; height: 88px; transform: rotate(-90deg); }
.bt-lock-ring circle { fill: none; stroke: #facc15; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }
.bt-lock-b.is-holding .bt-lock-ring circle { animation: bt-lock-fill 1.5s linear forwards; }
@keyframes bt-lock-fill { to { stroke-dashoffset: 0; } }
.bt-lock-hint { white-space: nowrap; color: #fff; font-size: 14px; font-weight: 600; }
/* touch-lock button of live GPS: bottom right above the legend button; in AR above the alignment button */
.bt-live-lockb { position: absolute; right: 10px; bottom: 71px; z-index: 1000; width: 34px; height: 34px; padding: 0; display: grid; place-items: center;
    border: 0; border-radius: 999px; background: var(--bt-float); color: var(--bt-float-ink); box-shadow: 0 1px 5px rgba(0, 0, 0, .4); cursor: pointer;
    -webkit-tap-highlight-color: transparent; }
.bt-live-lockb.is-on, .bt-ar-top .bt-live-lockb.is-on { background: #000; color: #facc15; border-color: #000; }
.bt-ar-top .bt-live-lockb { position: static; pointer-events: auto; width: 36px; height: 36px; border: 1px solid #ffffff55; background: rgba(15, 23, 42, .62);
    color: #fff; box-shadow: none; }
/* the live banner fades away after 10 s; a swipe down from the top of the map (strip) brings it back */
.bt-live-banner { transition: opacity .6s; }
.bt-live-banner.is-fading { opacity: 0; pointer-events: none; }
.bt-live-pull { position: absolute; left: 25%; right: 25%; top: 0; height: 10px; z-index: 990; touch-action: none; }
.bt-ar-on .bt-live-pull { z-index: 700; }
/* locked screen (live GPS touch lock, 14 Nov 2026): the map is full screen and every map button fades away, the lock
   button too; a touch shows the unlock panel and the lock button again (body.bt-lock-touch) */
body.bt-locked .leaflet-control-container > *, body.bt-locked .maplibregl-ctrl-top-right, body.bt-locked .maplibregl-ctrl-bottom-right,
body.bt-locked .bt-days-tg, body.bt-locked .bt-live-pull, body.bt-locked .bt-live-lockb, body.bt-locked .bt-plan-pill,
body.bt-locked .bt-ar-hud button, body.bt-locked .bt-ar-hud .bt-ar-base-in, body.bt-locked .bt-ar-lyr {
    opacity: 0 !important; visibility: hidden !important; transition: opacity .4s, visibility 0s .4s; }
body.bt-locked.bt-lock-touch .bt-live-lockb { opacity: 1 !important; visibility: visible !important; transition: opacity .2s; }
/* route shown only (an uploaded track, a kept route, 14 Nov 2026): no editing tools until ✎ */
.bt-plan-editb { display: none; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--bt-line); background: var(--bt-float);
    color: var(--bt-float-ink); font-size: 16px; cursor: pointer; }
.bt-plan-card.is-view .bt-plan-editb { display: none; }   /* 22 Nov 2026: ✎ is a tool beside ▶ now */
.bt-plan-card:not(.is-view) .bt-plan-tool[data-act="edit"] { display: none; }
.bt-plan-card.is-view .bt-plan-avoid, .bt-plan-card.is-view .bt-plan-sport, .bt-plan-card.is-view .bt-plan-tools [data-act]:not([data-act="fit"]):not([data-act="saveq"]):not([data-act="nav"]):not([data-act="edit"]),
.bt-plan-card.is-view .bt-plan-wps, .bt-plan-card.is-view .bt-plan-loop { display: none !important; }
/* route being followed (18 Nov 2026): locked like a shown route, and no ✎ until following stops */
.bt-plan-card.is-lock .bt-plan-editb { display: none !important; }
.bt-plan-card.is-lock .bt-plan-avoid, .bt-plan-card.is-lock .bt-plan-sport, .bt-plan-card.is-lock .bt-plan-tools [data-act]:not([data-act="fit"]):not([data-act="saveq"]),
.bt-plan-card.is-lock .bt-plan-wps, .bt-plan-card.is-lock .bt-plan-loop { display: none !important; }
.bt-planning.bt-plan-locked, .bt-planning.bt-plan-locked .maplibregl-canvas-container.maplibregl-interactive,
.bt-planning.bt-plan-locked .leaflet-interactive.leaflet-grab { cursor: grab; }
.bt-plan-back { margin-left: 6px; padding: 3px 10px; }
/* following a route with its card closed: the pill that brings the card back (bottom centre of the map) */
.bt-plan-pill { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 1000; padding: 8px 14px; border: 0; border-radius: 999px;
    background: #1d4ed8; color: #fff; font: 600 14px/1.2 system-ui, -apple-system, sans-serif; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); cursor: pointer;
    white-space: nowrap; -webkit-tap-highlight-color: transparent; }
/* following a route with the map in full screen: its profile (slope colours, surface strip, my place) at the bottom */
.bt-nav-prof { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 1000; width: min(560px, calc(100% - 16px));
    padding: 6px 8px 4px; border-radius: 12px; background: color-mix(in srgb, var(--bt-paper, #12170f) 82%, transparent);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.bt-nav-prof .bt-elev svg { display: block; width: 100%; height: auto; max-height: 34vh; }
.bt-nav-prof .bt-elev-src { display: none; }
.bt-ar-on .bt-nav-prof, .bt-flying .bt-nav-prof { display: none; }
/* the buttons at the bottom move up over the profile */
.bt-has-navprof .bt-live-lockb { display: none; }   /* the profile open: no lock button (24 Nov 2026); minimised, it is back */
.bt-has-navprof .leaflet-bottom { bottom: 205px; }
.bt-has-navprof .bt-plan-pill { bottom: 215px; }
.bt-ar-on .bt-plan-pill, .bt-flying .bt-plan-pill { display: none; }   /* AR / FPV: the route is the selected trail there */
/* the full-screen profile can be minimised (×) to a small button that opens it again */
.bt-nav-prof-x { position: absolute; top: 4px; right: 6px; z-index: 1; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: inherit; font: 600 18px/1 system-ui, sans-serif; cursor: pointer; }
.bt-nav-prof-b { display: none; }
.bt-nav-prof.is-min { width: auto; left: auto; right: 58px; bottom: 20px; transform: none; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.bt-nav-prof.is-min .bt-elev, .bt-nav-prof.is-min .bt-nav-prof-x { display: none; }
.bt-nav-prof.is-min .bt-nav-prof-b { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #1d4ed8; color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35); cursor: pointer; }
/* points of interest: how far away (My layers, one distance each for 2D, 3D and AR) */
.bt-poi-dist { --p: 100%; margin: 12px 0 4px; padding: 10px 12px 8px; border-radius: 10px; background: rgba(127, 127, 127, .12); font-size: 12.5px; }
.bt-pd-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bt-pd-tabs { display: inline-flex; border-radius: 8px; overflow: hidden; border: 1px solid rgba(127, 127, 127, .45); }
.bt-pd-tab { position: relative; border: 0; background: transparent; color: inherit; font: 600 12px/1 system-ui, sans-serif; padding: 6px 10px; cursor: pointer; }
.bt-pd-tab + .bt-pd-tab { border-left: 1px solid rgba(127, 127, 127, .45); }
.bt-pd-tab.is-on { background: var(--bt-accent, #2563eb); color: #fff; }
.bt-pd-tab i { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: #22c55e; }
.bt-pd-val { margin: 8px 0 2px; font-size: 22px; font-weight: 700; line-height: 1.1; }
.bt-poi-dist input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; cursor: pointer; outline: none; }
.bt-poi-dist input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(127, 127, 127, .45); }
.bt-poi-dist input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, var(--bt-accent, #2563eb) var(--p), rgba(127, 127, 127, .35) var(--p)); }
.bt-poi-dist input[type=range]::-moz-range-track { height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, var(--bt-accent, #2563eb) var(--p), rgba(127, 127, 127, .35) var(--p)); }
.bt-poi-dist input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
    background: #fff; border: 3px solid var(--bt-accent, #2563eb); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.bt-poi-dist input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--bt-accent, #2563eb); }
.bt-pd-ticks { position: relative; height: 14px; margin: 0 12px; font-size: 10.5px; opacity: .7; }
.bt-pd-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.bt-pd-from { margin-top: 4px; font-size: 11.5px; opacity: .7; }
/* turn banner while following a route (16 Nov 2026): top of the map in every view */
.bt-turn { position: absolute; left: 50%; top: calc(8px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 1100;
    width: min(560px, calc(100% - 120px)); display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 4px 10px;
    padding: 10px 10px 10px 14px; border-radius: 18px; background: #c3c46a; color: #111; box-shadow: 0 3px 12px rgba(0, 0, 0, .35); cursor: pointer;
    font: 600 14px/1.2 system-ui, -apple-system, sans-serif; transition: background .3s, box-shadow .3s; }
.bt-turn-a { display: grid; place-items: center; }
.bt-turn-m { min-width: 0; display: flex; flex-direction: column; }
.bt-turn-m b { font-size: 30px; line-height: 1.05; font-weight: 700; }
.bt-turn-m span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 500; }
.bt-turn-m i { font-style: normal; opacity: .7; }
.bt-turn-then { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12.5px; font-weight: 600; opacity: .85; }
.bt-turn-tg, .bt-turn-x { width: 38px; height: 38px; border: 0; border-radius: 12px; background: #2b2b2b; color: #fff; font: 600 20px/1 system-ui, sans-serif; cursor: pointer; }
.bt-turn-x { width: 28px; background: rgba(0, 0, 0, .15); color: #111; }
.bt-turn.is-near { background: #e3e36b; box-shadow: 0 0 0 3px #fff8, 0 3px 12px rgba(0, 0, 0, .35); }
.bt-turn.is-now { background: #fde047; animation: bt-turn-pulse 1s ease-in-out infinite; }
@keyframes bt-turn-pulse { 50% { box-shadow: 0 0 0 7px #fde04766, 0 3px 12px rgba(0, 0, 0, .35); } }
.bt-turn.is-off { background: #f59e0b; grid-template-columns: auto 1fr auto; }
.bt-turn-back { border: 0; border-radius: 10px; padding: 8px 12px; background: #111; color: #fff; font-weight: 600; cursor: pointer; }
.bt-turn-fin { font-size: 30px; }
.bt-turn-list { grid-column: 1 / -1; list-style: none; margin: 6px 0 0; padding: 6px 0 0; border-top: 1px solid rgba(0, 0, 0, .2); max-height: 45vh; overflow-y: auto; }
.bt-turn-list li { display: grid; grid-template-columns: 24px 64px 1fr; align-items: center; gap: 6px; padding: 4px 0; font-size: 13px; }
.bt-turn-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.bt-turn-list .bt-turn-fin { font-size: 18px; }
.bt-turn.is-min { width: auto; grid-template-columns: auto auto; padding: 6px 12px 6px 8px; border-radius: 999px; }
.bt-turn.is-min b { font-size: 18px; }
/* the live banner, the AR daylight chip and the top buttons make room for it */
.bt-has-turn .bt-live-banner { top: var(--bt-turn-h, calc(100px + env(safe-area-inset-top, 0px))); }
.bt-has-turn .bt-ar-day { top: calc(104px + env(safe-area-inset-top, 0px)) !important; }
/* the flyover's own banner (a lot hunted) goes under the turn banner */
/* JEA-78: right under the turn banner however tall it is (--bt-turn-h: its bottom edge, set while it is open) */
.bt-has-turn .bt-fly-banner { top: var(--bt-turn-h, calc(100px + env(safe-area-inset-top, 0px))); }
.bt-fly-turn { font-size: 17px; }
.bt-fly-b.bt-fly-turn.is-on { background: #c3c46a; color: #111; }
/* a row of the turn list goes there on a tap */
.bt-turn-list li[data-i] { cursor: pointer; border-radius: 6px; }
.bt-turn-list li[data-i]:hover, .bt-turn-list li[data-i]:active { background: rgba(0, 0, 0, .1); }
/* climbs and descents (17 Nov 2026, like a watch's ClimbPro): badge, card while on one, rows of the list */
.bt-hill-b { display: inline-grid; place-items: center; line-height: 1; min-width: 34px; height: 26px; padding: 0 4px; border-radius: 6px; color: #fff;
    font: 700 13px/1 system-ui, sans-serif; text-shadow: 0 1px 1px rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.bt-turn.is-hill { background: #1f2a1f; color: #fff; }
.bt-turn.is-hill .bt-turn-x { background: rgba(255, 255, 255, .15); color: #fff; }
.bt-turn.is-hill .bt-turn-tg { background: #3a3a3a; }
.bt-turn.is-hill .bt-hill-b { min-width: 46px; height: 34px; font-size: 16px; }
.bt-hill-m { gap: 2px; }
.bt-hill-t { font-weight: 700; font-size: 16px; }
.bt-hill-p { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bt-hill-p .bt-hill-svg { flex: 1 1 0; width: 0; min-width: 0; height: 36px; }
.bt-hill-g { font-size: 15px !important; min-width: 40px; }
.bt-hill-svg { display: block; max-width: 100%; height: auto; }
.bt-hill-dot { fill: #fff; stroke: #111; stroke-width: 2; }
.bt-hill-s { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 12.5px; opacity: .9; }
.bt-turn-m .bt-hill-s span, .bt-turn-m span.bt-hill-t { display: block; overflow: visible; -webkit-line-clamp: unset; white-space: nowrap; }
.bt-hill-s b { font-size: 15px !important; font-weight: 700; margin-left: 3px; }
.bt-turn.is-hill .bt-turn-list { border-top-color: rgba(255, 255, 255, .25); }
.bt-turn-list li.is-hill { grid-template-columns: 38px 64px 1fr; row-gap: 2px; }
.bt-turn-list li.is-hill span { display: flex; flex-direction: column; white-space: normal; }
.bt-turn-list li.is-hill em { font-style: normal; font-weight: 600; }
.bt-turn-list li.is-hill small { font-size: 11.5px; opacity: .75; }
.bt-turn-list li.is-hill span.bt-hill-b { display: inline-grid; place-items: center; min-width: 32px; height: 20px; font-size: 11px; overflow: visible; }
.bt-turn-list li.is-hill .bt-hill-svg { grid-column: 3; width: 100%; height: 18px; }
/* ── turn banner as black glass, like the player (18 Nov 2026) ───────────────────────────────────────────────────
   --ap: share of the approach done (0–1), --ac: its colour (green far → amber → red at the turn; on a hill the hill's
   slope colour, off the route amber). The arrow sits in a ring that fills with it, the distance takes its colour,
   a light seam along the bottom edge runs with it; at the turn the ring breathes. */
.bt-turn { --ap: 0; --ac: hsl(135 85% 58%);
    background: color-mix(in srgb, rgb(12, 14, 11) var(--bt-glass, 72%), transparent); color: #fff;
    -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 6px 22px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
    overflow: hidden; transition: box-shadow .4s, border-color .4s; }
.bt-turn::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--ap) * 100%);
    background: linear-gradient(90deg, hsl(135 85% 50%), hsl(48 95% 55%) 60%, hsl(0 85% 55%));
    background-size: calc(100% / max(var(--ap), .02)) 100%; box-shadow: 0 0 10px var(--ac); transition: width .25s linear; pointer-events: none; }
.bt-turn-a { position: relative; width: 58px; height: 58px; border-radius: 50%;
    background: conic-gradient(var(--ac) calc(var(--ap) * 360deg), rgba(255, 255, 255, .13) 0); transition: background .25s; }
.bt-turn-a::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #0d100c; }
.bt-turn-a > svg, .bt-turn-a > span { position: relative; width: 36px; height: 36px; color: #fff; }
.bt-turn-m b { color: var(--ac); transition: color .25s; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt-turn.is-far .bt-turn-m b { color: #fff; }
.bt-turn-m i { opacity: .6; }
.bt-turn-then { opacity: .75; }
.bt-turn-tg { background: rgba(255, 255, 255, .12); border-radius: 50%; width: 36px; height: 36px; font-size: 18px; }
.bt-turn-x { background: transparent; color: rgba(255, 255, 255, .7); width: 28px; font-size: 22px; }
.bt-turn.is-near { background: color-mix(in srgb, rgb(12, 14, 11) var(--bt-glass, 72%), transparent); border-color: color-mix(in srgb, var(--ac) 55%, transparent);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .45), 0 0 0 1px color-mix(in srgb, var(--ac) 40%, transparent); }
.bt-turn.is-now { background: color-mix(in srgb, rgb(12, 14, 11) var(--bt-glass, 72%), transparent); border-color: var(--ac); animation: none; }
.bt-turn.is-now .bt-turn-a { animation: bt-turn-breathe 1s ease-in-out infinite; }
@keyframes bt-turn-breathe { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ac) 35%, transparent), 0 0 22px var(--ac); transform: scale(1.06); } }
.bt-turn.is-off { background: color-mix(in srgb, rgb(12, 14, 11) var(--bt-glass, 72%), transparent); border-color: #f59e0b; }
.bt-turn-back { background: #f59e0b; color: #111; }
/* the ways back to the route to choose from (JEA-76, 27 Nov 2026): a card in the banner's place, the ways dashed on the map */
.bt-turn.is-ways { display: block; padding: 10px 12px 8px; }
.bt-ways { display: flex; flex-direction: column; gap: 6px; }
.bt-ways-h { font-size: 15px; font-weight: 700; color: #fbbf24; }
.bt-way { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .07);
    color: #fff; text-align: left; font: inherit; cursor: pointer; }
.bt-way.is-sug { background: rgba(245, 158, 11, .18); box-shadow: inset 0 0 0 1.5px rgba(245, 158, 11, .75); }
.bt-way i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--wc); color: #111; font: 800 15px/30px system-ui, sans-serif; text-align: center; font-style: normal; }
.bt-way span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bt-way b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-way small { font-size: 12px; opacity: .8; line-height: 1.25; }
.bt-way em { flex: none; font: 700 11px/1 system-ui, sans-serif; font-style: normal; background: #f59e0b; color: #111; border-radius: 8px; padding: 5px 7px; }
.bt-way-back { border: 0; background: none; color: rgba(255, 255, 255, .6); font: 500 12.5px/1.3 system-ui, sans-serif; text-align: left; padding: 4px 8px; cursor: pointer; }
.bt-ways-hint { font-size: 11.5px; color: rgba(255, 255, 255, .55); padding: 0 8px; }
.bt-way-lbl span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; background: var(--wc); color: #111; font: 800 12px/1 system-ui, sans-serif;
    padding: 4px 7px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.bt-turn-list { border-top-color: rgba(255, 255, 255, .15); }
.bt-turn-list li > svg { color: #fff; }
.bt-turn-list li[data-i]:hover, .bt-turn-list li[data-i]:active { background: rgba(255, 255, 255, .08); }
.bt-turn.is-min { padding: 5px 14px 5px 5px; gap: 8px; }
.bt-turn.is-min .bt-turn-a { width: 38px; height: 38px; }
.bt-turn.is-min .bt-turn-a::before { inset: 3px; }
.bt-turn.is-min .bt-turn-a > svg { width: 24px; height: 24px; }
.bt-turn.is-min > b { color: var(--ac); font-size: 18px; }
.bt-turn.is-min.is-far > b { color: #fff; }
/* the climb card on the same glass: the badge in the ring, which fills with the climb done, in its slope colour */
.bt-turn.is-hill { background: color-mix(in srgb, rgb(12, 14, 11) var(--bt-glass, 72%), transparent); }
.bt-turn.is-hill .bt-turn-a::before { background: #0d100c; }
.bt-turn.is-hill .bt-turn-a > .bt-hill-b { width: auto; min-width: 40px; height: 28px; font-size: 14px; }
.bt-turn.is-hill .bt-turn-x { background: transparent; }
.bt-turn.is-hill .bt-turn-tg { background: rgba(255, 255, 255, .12); }
.bt-fly-b.bt-fly-turn.is-on { background: rgba(255, 255, 255, .9); color: #111; }
/* the hill as a strip under the next turn (23 Nov 2026) */
.bt-turn-hs { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-width: 0; margin: 2px -10px -10px -14px;
    padding: 6px 12px 9px 14px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; }
.bt-turn-hs .bt-hill-b { min-width: 38px; height: 22px; font-size: 12px; }
.bt-turn-hs span { white-space: nowrap; opacity: .9; }
.bt-turn-hs b { font-weight: 700; margin-left: 2px; }
.bt-turn-hs .bt-hill-svg { flex: 1 1 0; width: 0; min-width: 40px; height: 18px; }
/* the other branch at a fork (23 Nov 2026): amber, the turn to take */
.bt-turn.is-wrong { background: #f59e0b; color: #111; }
.bt-turn.is-wrong .bt-turn-a::before { background: #3a2a05; }
.bt-turn.is-wrong .bt-turn-a { color: #fff; }
/* full screen and locked: no buttons beside the banner, so it is exactly as wide as the profile (23 Nov 2026). Both
   are border-box inside the map (the map's box-sizing applies to its children), so the profile's outer width is
   min(560px, 100% - 16px), 8 px from each edge on a phone; measured 24 Nov: the banner had min(576px, 100%) and ran
   edge to edge, 8 px wider on each side */
body.bt-fs .bt-turn:not(.is-min), body.bt-locked .bt-turn:not(.is-min) { box-sizing: border-box; width: min(560px, calc(100% - 16px)); }
@media (prefers-reduced-motion: reduce) { .bt-turn.is-now .bt-turn-a { animation: none; } .bt-turn::after, .bt-turn-a { transition: none; } }

/* ── turns on the elevation charts (18 Nov 2026): glass pins along the top, a guide down to the line ─────────── */
.bt-elev { position: relative; }
.bt-elev svg .tp { cursor: pointer; transition: opacity .35s; }
.bt-elev svg .tg { stroke: var(--bt-ink); stroke-opacity: .28; stroke-width: 1; stroke-dasharray: 1.5 2.5;
    animation: bt-tg-in .6s ease-out backwards; animation-delay: calc(var(--i) * 40ms + .15s); }
.bt-elev svg .td { fill: #fff; stroke: #0d100c; stroke-width: 1.4; animation: bt-tg-in .4s ease-out backwards; animation-delay: calc(var(--i) * 40ms + .3s); }
.bt-elev svg .tz { transform-box: fill-box; transform-origin: center; transition: transform .2s cubic-bezier(.2, 1.4, .4, 1);
    animation: bt-tp-in .55s cubic-bezier(.2, 1.5, .4, 1) backwards; animation-delay: calc(var(--i) * 40ms); }
.bt-elev svg .tr { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.bt-elev svg .tb { fill: rgba(13, 16, 12, .86); stroke: rgba(255, 255, 255, .18); stroke-width: .6; }
.bt-elev svg .ti { color: #fff; overflow: visible; }
.bt-elev svg .tcb { fill: #eef1ec; stroke: rgba(13, 16, 12, .9); stroke-width: 1; }
.bt-elev svg text.tc { font-size: 6.6px; font-weight: 800; fill: #0d100c; }
.bt-elev svg .tp.is-hot .tz { transform: scale(1.3); }
.bt-elev svg .tp.is-hot .tg { stroke-opacity: .7; stroke-dasharray: none; }
.bt-elev svg .tp.is-past { opacity: .32; }
.bt-elev svg .tp.is-past .tz { transform: scale(.82); }
.bt-elev svg .tp.is-next .tz { transform: scale(1.12); }
.bt-elev svg .tp.is-next .tr { stroke: var(--ac, #3fd16b); stroke-width: 2.2; }
.bt-elev svg .tp.is-next.is-near .tr { animation: bt-tp-breathe 1.3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bt-elev svg .tp.is-next .tg { stroke: var(--ac, #3fd16b); stroke-opacity: .9; stroke-dasharray: none; stroke-width: 1.3; }
.bt-elev svg .tp.is-next .td { fill: var(--ac, #3fd16b); }
@keyframes bt-tp-in { from { transform: translateY(-10px) scale(.2); opacity: 0; } }
@keyframes bt-tg-in { from { opacity: 0; } }
@keyframes bt-tp-breathe { 50% { transform: scale(1.35); stroke-opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .bt-elev svg .tz, .bt-elev svg .tg, .bt-elev svg .td, .bt-elev svg .tp.is-next.is-near .tr { animation: none; } }
.bt-elev-turn { position: absolute; z-index: 3; pointer-events: none; min-width: 150px; max-width: min(260px, 92%); padding: 6px 9px;
    border-radius: 12px; background: rgba(13, 16, 12, .82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); color: #fff; font: 12px/1.3 var(--bt-font);
    animation: bt-et-in .18s ease-out; }
.bt-elev-turn[hidden] { display: none; }
.bt-et-r { display: flex; align-items: center; gap: 8px; }
.bt-et-r + .bt-et-r { margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, .12); }
.bt-et-i { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.bt-et-t { flex: 1 1 auto; min-width: 0; }
.bt-et-t small { color: rgba(255, 255, 255, .6); font-size: 11px; }
.bt-et-r b { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
@keyframes bt-et-in { from { opacity: 0; margin-top: -4px; } }
.bt-et-more { margin-top: 4px; text-align: center; color: rgba(255, 255, 255, .6); font-size: 11px; letter-spacing: .04em; }

/* ── turns and hills on the player's mini profile (18 Nov 2026) ────────────────────────────────────────────── */
.bt-fly-profwrap.has-pins { margin-top: 22px; }
.bt-fly-pins, .bt-fly-hills { position: absolute; left: 0; right: 0; pointer-events: none; }
.bt-fly-hills { top: 0; height: 46px; }
.bt-fly-pins { top: 0; height: 0; z-index: 2; }
/* a hill: its stretch glows from the top in its slope colour, a bright edge on top */
.bt-fh { position: absolute; top: 0; height: 100%; border-radius: 3px 3px 0 0; opacity: .9;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--hc) 38%, transparent), transparent 85%);
    box-shadow: inset 0 2px 0 var(--hc); transition: opacity .4s; animation: bt-fh-in .7s ease-out backwards; animation-delay: calc(var(--i) * 60ms + .2s); }
.bt-fh.is-on { opacity: 1; background: linear-gradient(to bottom, color-mix(in srgb, var(--hc) 60%, transparent), transparent 95%);
    box-shadow: inset 0 3px 0 var(--hc), 0 0 14px color-mix(in srgb, var(--hc) 45%, transparent); }
.bt-fh.is-past { opacity: .28; }
@keyframes bt-fh-in { from { opacity: 0; transform: scaleY(.2); transform-origin: top; } }
/* a turn: a glass disc over the chart, a dotted guide down to the line */
.bt-fp { position: absolute; top: -21px; width: 18px; height: 18px; margin-left: -9px; transition: opacity .35s; }
.bt-fp u { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; color: #fff; text-decoration: none;
    background: rgba(13, 16, 12, .88); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 2px 6px rgba(0, 0, 0, .4); transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), box-shadow .25s;
    animation: bt-fp-in .55s cubic-bezier(.2, 1.5, .4, 1) backwards; animation-delay: calc(var(--i) * 45ms); }
.bt-fp u svg { overflow: visible; }
.bt-fp s { position: absolute; left: calc(50% + var(--gx)); top: 20px; width: 0; height: var(--gh); border-left: 1px dotted rgba(255, 255, 255, .5);
    text-decoration: none; }
.bt-fp s::after { content: ""; position: absolute; left: -3px; bottom: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 1px rgba(13, 16, 12, .9); }
.bt-fp em { position: absolute; right: -5px; bottom: -4px; min-width: 9px; height: 9px; padding: 0 2px; border-radius: 5px; background: #eef1ec; color: #0d100c;
    font: 800 7px/9px var(--bt-font); font-style: normal; text-align: center; box-shadow: 0 0 0 1px rgba(13, 16, 12, .9); }
.bt-fp b { position: absolute; top: 50%; right: calc(100% + 5px); transform: translateY(-50%); display: none; padding: 1px 5px; border-radius: 6px;
    background: var(--ac, #3fd16b); color: #0d100c; font: 800 10px/14px var(--bt-font); white-space: nowrap; font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.bt-fp.is-past { opacity: .3; }
.bt-fp.is-past u { transform: scale(.8); }
.bt-fp.is-next { z-index: 5; }
.bt-fp b { z-index: 6; min-width: 26px; text-align: center; }
.bt-fp.is-next u { transform: scale(1.18); box-shadow: 0 0 0 2px var(--ac, #3fd16b), 0 0 12px var(--ac, #3fd16b); }
.bt-fp.is-next s { border-left: 1.5px solid var(--ac, #3fd16b); }
.bt-fp.is-next s::after { background: var(--ac, #3fd16b); }
.bt-fp.is-next b { display: block; }
.bt-fp.is-next.is-near u { animation: bt-fp-breathe 1.2s ease-in-out infinite; }
@keyframes bt-fp-in { from { transform: translateY(-8px) scale(.2); opacity: 0; } }
@keyframes bt-fp-breathe { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac, #3fd16b) 35%, transparent), 0 0 18px var(--ac, #3fd16b); } }
@media (prefers-reduced-motion: reduce) { .bt-fp u, .bt-fh, .bt-fp.is-next.is-near u { animation: none; } }
.bt-fly-hov { z-index: 4; }
.bt-fly-hov.is-pin { background: rgba(13, 16, 12, .9); color: #fff; font-weight: 600; max-width: 260px; white-space: normal; }
.bt-fp.is-r b { right: auto; left: calc(100% + 5px); }

/* ▶ follow at the end of a trail card's title row (19 Nov 2026), like ⇄ but green */
.bt-follow-i { flex: none; width: 30px; height: 30px; padding: 0; margin-left: 6px; border-radius: 6px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #2f9e44; border: 1px solid #2b8a3e; }
.bt-follow-i:hover, .bt-follow-i:focus-visible { background: #37b24d; outline: none; }

/* ── AR profile like the player (19 Nov 2026): sunset in the header, turn pins and hill glows, the traveller ───── */
.bt-ar-prof-sun { white-space: nowrap; font-weight: 600; color: #fef3c7; padding: 0 8px; border-radius: 9px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bt-ar-prof-sun[hidden] { display: none; }
.bt-ar-prof-sun.is-warn { background: rgba(194, 65, 12, .88); color: #fff; }
.bt-ar-prof-n { flex: 0 1 auto; min-width: 0; }
.bt-ar-prof-h { align-items: center; }
.bt-ar-prof.has-pins .bt-ar-prof-box { margin-top: 22px; }
.bt-ar-prof-box .bt-fly-hills { height: 100%; }
.bt-ar-prof-dot { width: auto; height: auto; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; z-index: 3;
    transform: translate(-50%, -85%) scaleX(-1); font-size: 18px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }
.bt-ar-prof-dot.is-off { background: none; filter: grayscale(1) opacity(.6) drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }
.bt-ar-hud.has-prof .bt-ar-top, .bt-ar-hud.has-prof .bt-ar-rescue { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 146px); }

/* ── one button style (19 Nov 2026): the trail card's title row (✎ ↪ ⚑ ⇄ ▶) and the route planner's tools ───────────
   black face, light line icon; hover / focus and "on" (⇄ reversed, ⚑ picking): yellow outline and yellow icon */
.bt-detour, .bt-start, .bt-rev, .bt-follow-i, .bt-plan-tool, .bt-plan-editb, .bt-plan-card .bt-plan-tool[data-act="upload"] {
    width: 32px; height: 32px; padding: 0; border-radius: 8px; cursor: pointer;
    background: #111410; color: #e8ebe6; border: 1px solid #2c322b; box-shadow: none;
    transition: border-color .15s, color .15s, box-shadow .15s;
}
.bt-detour svg, .bt-start svg, .bt-rev svg, .bt-follow-i svg, .bt-plan-tool svg, .bt-plan-editb svg { display: block; }
.bt-detour:hover, .bt-detour:focus-visible, .bt-start:hover, .bt-start:focus-visible, .bt-rev:hover, .bt-rev:focus-visible,
.bt-follow-i:hover, .bt-follow-i:focus-visible, .bt-plan-tool:hover:not(:disabled), .bt-plan-tool:focus-visible,
.bt-plan-editb:hover, .bt-plan-editb:focus-visible,
.bt-rev.is-on, .bt-start.is-on, .bt-start.is-picking, .bt-plan-tool.is-picking, .bt-plan-tool.is-on {
    background: #111410; color: #facc15; border-color: #facc15; box-shadow: 0 0 0 1px #facc15; outline: none;
}
.bt-start.is-picking, .bt-plan-tool.is-picking { animation: bt-yellow-pulse 1.2s ease-in-out infinite; }
@keyframes bt-yellow-pulse { 50% { box-shadow: 0 0 0 4px #facc1540; } }
@media (prefers-reduced-motion: reduce) { .bt-start.is-picking, .bt-plan-tool.is-picking { animation: none; } }
.bt-plan-tool:disabled { opacity: .35; }
.bt-plan-tools { gap: 4px; }
.bt-follow-i { margin-left: 0; }
.bt-detour[hidden], .bt-start[hidden], .bt-rev[hidden] { display: none; }
/* the planner's tools: their frame back (an older rule took it off) and the upload icon in the same colour */
.bt-plan-card .bt-plan-tools .bt-plan-tool { border: 1px solid #2c322b !important; }
.bt-plan-card .bt-plan-tools .bt-plan-tool:hover:not(:disabled), .bt-plan-card .bt-plan-tools .bt-plan-tool:focus-visible,
.bt-plan-card .bt-plan-tools .bt-plan-tool.is-picking { border-color: #facc15 !important; }
html.bt-dark .bt-plan-card .bt-plan-tool[data-act="upload"], .bt-plan-card .bt-plan-tool[data-act="upload"] { color: #e8ebe6; }
html.bt-dark .bt-plan-card .bt-plan-tool[data-act="upload"]:hover, .bt-plan-card .bt-plan-tool[data-act="upload"]:hover { color: #facc15; }

/* ── round trip and the planner's other folding sections in the card's design (20 Nov 2026) ─────────────────── */
.bt-sec > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer;
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bt-ink-2); padding: 4px 0; }
.bt-sec > summary::-webkit-details-marker { display: none; }
.bt-sec > summary:hover, .bt-sec > summary:focus-visible { color: var(--bt-ink); outline: none; }
.bt-sec .bt-sec-c { flex: none; transition: transform .2s; }
.bt-sec[open] .bt-sec-c { transform: rotate(180deg); }
.bt-plan-saved.bt-sec > summary::after, .bt-plan-wps.bt-sec > summary::after { content: ""; flex: none; width: 14px; height: 14px; transition: transform .2s;
    background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.bt-plan-saved.bt-sec[open] > summary::after, .bt-plan-wps.bt-sec[open] > summary::after { transform: rotate(180deg); }
.bt-plan-loop.bt-sec { margin: 8px 0; }
.bt-loop-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0; }
.bt-loop-l { font-size: 13px; color: var(--bt-ink); }
.bt-step { display: inline-flex; align-items: center; height: 32px; border-radius: 8px; background: #111410; border: 1px solid #2c322b; overflow: hidden; }
.bt-step:focus-within { border-color: #facc15; box-shadow: 0 0 0 1px #facc15; }
.bt-step button { width: 32px; height: 100%; padding: 0; border: 0; background: none; color: #e8ebe6; font: 600 17px/1 var(--bt-font); cursor: pointer; }
.bt-step button:hover, .bt-step button:focus-visible { color: #facc15; outline: none; background: #facc1514; }
.bt-plan-loop .bt-step input { width: 2.6em; padding: 0; border: 0; background: none; color: #e8ebe6; text-align: right; font: 600 14px var(--bt-font);
    font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; outline: none; }
.bt-step input::-webkit-outer-spin-button, .bt-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bt-step-u { padding: 0 4px 0 3px; color: #9aa39a; font-size: 12.5px; }
.bt-plan-loop select.bt-plan-dir { height: 32px; min-width: 9.5em; padding: 0 30px 0 10px; border-radius: 8px; border: 1px solid #2c322b; cursor: pointer;
    background: #111410 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8ebe6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 9px center / 13px no-repeat;
    color: #e8ebe6; font: 600 13px var(--bt-font); -webkit-appearance: none; appearance: none; }
.bt-plan-loop select.bt-plan-dir:hover, .bt-plan-loop select.bt-plan-dir:focus-visible { border-color: #facc15; box-shadow: 0 0 0 1px #facc15; outline: none; }
.bt-plan-loop .bt-plan-note { margin: 6px 0 8px; }
.bt-plan-loop .bt-plan-row { gap: 6px; }
.bt-step-u, .bt-plan-loop .bt-step input { line-height: 32px; height: 32px; }

/* "show my position": a double tap starts live GPS (21 Nov 2026), so no double-tap zoom of the page on it */
.bt-myloc { touch-action: manipulation; }

/* ── the battue banner (21 Nov 2026): only with a battue within 3 km, on the turn banner's black glass ──────────
   --ap: share of the approach done (0 at 3 km, 1 at the edge), --ac: its colour (amber far → red near). The arrow
   in the ring points to the battue (turning with the phone's compass), the distance takes the colour; inside a lot
   the glass turns red and breathes, the arrow shows the way out. */
.bt-live-banner.bt-batt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px;
    padding: 10px 10px 10px 12px; border: 1px solid rgba(255, 255, 255, .12); border-left: 1px solid rgba(255, 255, 255, .12); border-radius: 18px;
    background: color-mix(in srgb, rgb(12, 14, 11) var(--bt-glass, 72%), transparent); color: #fff;
    -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); font: 600 14px/1.25 system-ui, -apple-system, sans-serif;
    animation: bt-batt-in .35s cubic-bezier(.2, 1.2, .4, 1); transition: opacity .6s, transform .6s; }
.bt-live-banner.bt-batt.is-fading { opacity: 0; transform: translateY(-8px); }
@keyframes bt-batt-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.bt-batt-a { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--ac) calc(var(--ap) * 360deg), rgba(255, 255, 255, .13) 0); transition: background .4s; }
.bt-batt-a::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #0d100c; }
.bt-batt-arrow { position: relative; color: var(--ac); transition: transform .25s ease-out; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ac) 60%, transparent)); }
.bt-batt-m { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bt-batt-m > b { font-size: 28px; line-height: 1.05; font-weight: 700; color: var(--ac); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt-batt-m > span { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-batt-route { margin-top: 3px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600 !important; color: #fca5a5; white-space: normal !important; overflow: visible !important; line-height: 1.3; }
.bt-batt-route::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.bt-batt-route.is-clear { color: #86efac; }
.bt-batt-out { margin-top: 2px; font-size: 13.5px; font-weight: 700 !important; color: #fff; white-space: normal !important; }
.bt-live-banner.bt-batt .bt-live-row2 { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 12.5px; white-space: normal; overflow: visible; }
.bt-live-banner.bt-batt .bt-live-rescue { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.bt-live-banner.bt-batt .bt-live-sos { border: 0; border-radius: 10px; padding: 6px 12px; background: #ef4444; color: #fff; font-weight: 700; cursor: pointer; }
.bt-live-banner.bt-batt .bt-live-acc { color: rgba(255, 255, 255, .6); font-size: 11.5px; margin-top: 2px; }
.bt-live-banner.bt-batt > .bt-live-stop { align-self: start; color: rgba(255, 255, 255, .7); font-size: 22px; margin: 0; }
.bt-live-banner.bt-batt.is-l300 { border-color: color-mix(in srgb, var(--bt-batt-c, #ef4444) 55%, transparent); }
/* inside a lot: red glass that breathes */
.bt-live-banner.bt-batt.is-inside { background: color-mix(in srgb, #7f1010 82%, transparent); border-color: #ef4444;
    animation: bt-batt-in .35s cubic-bezier(.2, 1.2, .4, 1), bt-batt-alarm 1.6s ease-in-out .4s infinite; }
.bt-live-banner.bt-batt.is-inside .bt-batt-a::before { background: #3b0606; }
.bt-live-banner.bt-batt.is-inside .bt-batt-m > b { color: #fff; font-size: 22px; white-space: normal; }
.bt-live-banner.bt-batt.is-inside .bt-batt-arrow { color: #fff; }
@keyframes bt-batt-alarm { 50% { box-shadow: 0 6px 22px rgba(0, 0, 0, .45), 0 0 0 4px rgba(239, 68, 68, .35), 0 0 26px rgba(239, 68, 68, .55); } }
@media (prefers-reduced-motion: reduce) { .bt-live-banner.bt-batt, .bt-live-banner.bt-batt.is-inside { animation: none; } }
/* the screen-on button of the GPS group: lit while the screen is kept on */
.bt-wake-btn.is-on { color: #facc15; }


/* ── route card redesign (22 Nov 2026) ─────────────────────────────────────────────────────────────────────────────
   Figures as tiles, the follow panel with a progress bar, a header row that holds the title, the day and the few
   tools left in view / follow mode, no figure twice, quiet section headings, a slim back / forward / close row. */
.bt-plan-stats { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 6px; margin: 8px 0 10px; font-size: 13px; align-items: stretch; }
.bt-plan-stats .bt-plan-spin { grid-column: 1 / -1; justify-self: center; }
.bt-st { position: relative; display: flex; align-items: baseline; gap: 3px; min-width: 0; padding: 22px 10px 8px; border-radius: 12px;
    background: color-mix(in srgb, var(--bt-ink) 6%, transparent); border: 1px solid color-mix(in srgb, var(--bt-ink) 8%, transparent);
    font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt-st b { font-size: 19px; font-weight: 750; line-height: 1; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.bt-st small { font-size: 12px; font-weight: 600; color: var(--bt-ink-2); }
.bt-st .bt-st-i { position: absolute; top: 7px; left: 10px; color: var(--bt-ink-2); }
.bt-st-dist b { font-size: 26px; }
.bt-st-dist .bt-st-i { color: var(--bt-accent, #2563eb); }
.bt-st-up .bt-st-i { color: #e0442b; }
.bt-st-down .bt-st-i { color: #2a6fc0; }
.bt-st.bt-st-l b { font-size: 16px; } .bt-st.bt-st-xl b { font-size: 13.5px; } .bt-st-dist.bt-st-l b { font-size: 21px; } .bt-st-dist.bt-st-xl b { font-size: 17px; }
.bt-st.bt-st-l, .bt-st.bt-st-xl { padding-left: 8px; padding-right: 6px; gap: 2px; } .bt-st.bt-st-xl small, .bt-st.bt-st-l small { font-size: 11px; }
@media (max-width: 360px) { .bt-st { padding: 20px 7px 7px; } .bt-st b { font-size: 16px; } .bt-st-dist b { font-size: 21px; } .bt-plan-stats .bt-st.bt-st-l b { font-size: 14px; } .bt-plan-stats .bt-st.bt-st-xl b { font-size: 12px; } }

/* the follow panel */
.bt-plan-nav { display: block; margin: 0 0 10px; padding: 12px 12px 10px; border-radius: 14px; border: 1px solid color-mix(in srgb, #2563eb 45%, transparent);
    background: color-mix(in srgb, #2563eb 10%, transparent); font-variant-numeric: tabular-nums; }
.bt-nav-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-right: 0; }
.bt-nav-left, .bt-nav-eta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bt-nav-eta { align-items: flex-end; text-align: right; }
.bt-nav-left b { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.bt-nav-eta b { font-size: 18px; font-weight: 750; line-height: 1.1; }
.bt-nav-top small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--bt-ink-2); }
.bt-nav-bar { position: relative; height: 8px; margin: 12px 0 6px; border-radius: 4px; background: color-mix(in srgb, var(--bt-ink) 14%, transparent); }
.bt-nav-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #60a5fa, #2563eb); transition: width .6s ease-out; }
.bt-nav-bar > span { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff;
    border: 3px solid #7c3aed; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: left .6s ease-out; }
.bt-nav-sub { display: flex; justify-content: space-between; font-size: 12px; color: var(--bt-ink-2); }
.bt-plan-nav .bt-plan-off { display: block; margin-top: 8px; }
.bt-plan-nav .bt-plan-back { margin-top: 6px; }
.bt-plan-nav.is-done .bt-nav-bar > i { background: linear-gradient(90deg, #4ade80, #16a34a); }

/* view and follow mode: one header row (title and day | the tools left), everything else full width below */
.bt-plan-card.is-view, .bt-plan-card.is-lock { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: start; }
.bt-plan-card.is-view > *, .bt-plan-card.is-lock > * { grid-column: 1 / -1; min-width: 0; }
.bt-plan-card.is-view > .bt-pop-h, .bt-plan-card.is-lock > .bt-pop-h { grid-column: 1; grid-row: 1; flex-wrap: wrap; gap: 6px 8px; margin: 0; }
.bt-plan-card.is-view > .bt-plan-sub, .bt-plan-card.is-lock > .bt-plan-sub { grid-row: 2; margin: 6px 0 0; }
.bt-plan-card.is-view > .bt-plan-bar, .bt-plan-card.is-lock > .bt-plan-bar { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; gap: 6px; }
.bt-plan-card.is-view .bt-pop-hn, .bt-plan-card.is-lock .bt-pop-hn { flex: 1 1 calc(100% - 34px) !important;   /* beside the route's colour dash; the day wraps below */ font-size: 20px; font-weight: 800; line-height: 1.2;
    letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 22 Nov 2026: the calendar is the toolbar's first button; another day than today puts its day of the month on it */
.bt-plan-tool[data-act="cal"] { position: relative; }
.bt-plan-tool[data-act="cal"].is-other { border-color: var(--bt-orange) !important; color: var(--bt-orange); }
.bt-plan-tool[data-act="cal"].is-other::after { content: attr(data-dom); position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 8px; background: var(--bt-orange); color: #fff; font: 700 10px/16px system-ui, sans-serif; text-align: center; box-sizing: border-box; }
.bt-plan-card.is-view .bt-plan-sub, .bt-plan-card.is-lock .bt-plan-sub { display: none; }
.bt-plan-card.is-view .bt-plan-tools, .bt-plan-card.is-lock .bt-plan-tools { gap: 6px; margin: 0; }
.bt-plan-card.is-view .bt-plan-tool, .bt-plan-card.is-lock .bt-plan-tool { margin-top: 0 !important; width: 36px; height: 36px; border-radius: 10px; }
/* following: the panel right under the title, then "Stop following" as large as "Follow this route" (22 Nov 2026) */
.bt-plan-card.is-lock > .bt-plan-nav { grid-row: 2; margin: 8px 0 8px; }
.bt-plan-card.is-lock > .bt-plan-go { grid-row: 3; grid-column: 1 / -1; display: flex; justify-content: center; width: 100%; margin: 0 0 10px; padding: 11px 14px;
    font-size: 15px; font-weight: 700; border-radius: 12px; border: 0 !important; background: #dc2626 !important; color: #fff !important; }
/* not following yet: "Follow this route" is the card's main action */
.bt-plan-card:not(.is-lock) > .bt-plan-go { display: flex; justify-content: center; width: 100%; padding: 11px 14px; margin: 0 0 10px; border-radius: 12px;
    font-size: 15px; font-weight: 700; background: #2563eb !important; color: #fff !important; border: 0 !important; }
.bt-plan-card:not(.is-lock) > .bt-plan-go[hidden] { display: none; }

/* the elevation section: no climb and descent twice (the tiles have them), quiet sentence-case headings */
.bt-plan-card .bt-elev-stats span:nth-child(-n+2) { display: none; }
.bt-plan-card .bt-pop-sub { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 750; color: var(--bt-ink);
    margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid var(--bt-line); }
.bt-plan-card .bt-elev-stats { font-size: 12.5px; color: var(--bt-ink-2); }

/* the detail pane's back / forward / close: round icon buttons, no empty row, a disabled Forward hidden */
.v2-close { width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--bt-ink) 8%, transparent); font-size: 20px; display: grid; place-items: center; }
.v2-fwd:disabled { display: none; }
#bt-detail.is-full .v2-back { display: none; }
#bt-detail.is-full .bt-plan-card .bt-pop-h { padding-right: 40px; }
#bt-detail.is-full:has(.v2-fwd:not(:disabled)) .bt-plan-card .bt-pop-h { padding-right: 112px; }
/* view / follow mode: the tools stand right of the title, so they keep clear of the close button instead */
#bt-detail.is-full .bt-plan-card.is-view > .bt-pop-h, #bt-detail.is-full .bt-plan-card.is-lock > .bt-pop-h { padding-right: 0; }
#bt-detail.is-full .bt-plan-card.is-view > .bt-plan-bar, #bt-detail.is-full .bt-plan-card.is-lock > .bt-plan-bar { margin-right: 40px; }
#bt-detail.is-full:has(.v2-fwd:not(:disabled)) .bt-plan-card.is-view > .bt-plan-bar,
#bt-detail.is-full:has(.v2-fwd:not(:disabled)) .bt-plan-card.is-lock > .bt-plan-bar { margin-right: 112px; }


/* ── trail and lot cards in the route card's design (22 Nov 2026) ────────────────────────────────────────────────
   A big title with the colour dash, the network / communes under it, the tools as one row, the battue status as a
   coloured block (icon, small heading, the day(s), label / value pairs), the figures as tiles. */
.bt-card2 .bt-pop-h { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
.bt-card2 .bt-pop-h::before { flex: none; width: 22px; height: 7px; margin: 0; border-radius: 4px; vertical-align: middle; }
.bt-pop-lot.bt-card2 .bt-pop-h::before { border: 0; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bt-ink) 25%, transparent); }
.bt-card2 .bt-pop-hn { font-size: inherit; font-weight: inherit; }
.bt-card-sub { margin: 3px 0 0 32px; font-size: 13.5px; color: var(--bt-ink-2); line-height: 1.35; }
.bt-card-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.bt-card-tools > * { margin: 0 !important; }
.bt-card-tools:not(:has(> :not([hidden]))) { display: none; }
/* the status block */
.bt-hero { --hc: #ca8a04; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 11px; align-items: center; margin: 12px 0 0;
    padding: 12px 12px 12px 11px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--hc) 45%, transparent);
    background: color-mix(in srgb, var(--hc) 11%, transparent); }
.bt-hero-imp-high, .bt-hero-u0 { --hc: #dc2626; }
.bt-hero-imp-medium, .bt-hero-u1 { --hc: #ea7a0c; }
.bt-hero-u2 { --hc: #ca8a04; }
.bt-hero-u3 { --hc: #64748b; }
.bt-hero-imp-low, .bt-hero-free { --hc: #16a34a; }
.bt-hero-i { grid-row: 1 / span 3; align-self: start; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--hc); color: #fff; }
.bt-hero-k { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--hc) 80%, var(--bt-ink)); }
.bt-hero-t { margin-top: 2px; font-size: 17px; font-weight: 750; line-height: 1.25; color: var(--bt-ink); overflow-wrap: anywhere; }
.bt-hero-d { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 5px; font-size: 13px; color: var(--bt-ink); font-variant-numeric: tabular-nums; }
.bt-hero-d:empty { display: none; }
.bt-hero-d i { font-style: normal; color: var(--bt-ink-2); }
/* the tiles */
.bt-stats { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 6px; margin: 10px 0 12px; font-size: 13px; align-items: stretch; }
.bt-stats.is-one { grid-template-columns: minmax(0, 1fr); }
.bt-lot-stats { grid-template-columns: 1fr 1fr; }
.bt-st-cap em { position: absolute; top: 7px; left: 29px; right: 8px; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--bt-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-st-cap b { font-size: 24px; }
.bt-st-area .bt-st-i { color: #ea7a0c; }
.bt-st-routes .bt-st-i { color: var(--bt-accent, #2563eb); }
/* a little more air under the old rows that remain (roads) and the section headings */
.bt-card2 .bt-elev-h { margin-top: 4px; }
.bt-pop-lot.bt-card2 .bt-pop-lot-trails { margin-top: 0; }

/* ── groups of data as panels (22 Nov 2026): elevation, surface, along the trail, unaffected trails nearby, battue
   dates, routes crossing a lot; the same for the planner's points, profile, points of interest and round trip.
   Each panel: a quiet surface, a rounded border, and a heading with a coloured bar of its own. */
.bt-card2 .bt-grp, .bt-card2 .bt-poi-along:has(> *), .bt-card2 .bt-alt, .bt-card2 .bt-alldates, .bt-card2 .bt-pop-lot-trails,
.bt-plan-card > .bt-plan-wps, .bt-plan-card > .bt-plan-prof:not([hidden]), .bt-plan-card > .bt-poi-along:has(> *), .bt-plan-card > .bt-plan-loop {
    --ga: #64748b; display: block; margin: 12px 0 0; padding: 12px 12px 10px; border-radius: 16px;
    background: color-mix(in srgb, var(--bt-ink) 4%, transparent); border: 1px solid color-mix(in srgb, var(--bt-ink) 10%, transparent); }
.bt-card2 .bt-grp[hidden] { display: none; }
.bt-card2 .bt-grp-elev, .bt-plan-card > .bt-plan-prof { --ga: #16a34a; }
.bt-card2 .bt-grp-surf { --ga: #b45309; }
.bt-card2 .bt-poi-along, .bt-plan-card > .bt-poi-along { --ga: #2563eb; }
.bt-card2 .bt-alt { --ga: #0d9488; }
.bt-card2 .bt-alldates { --ga: #ea7a0c; }
.bt-card2 .bt-pop-lot-trails { --ga: #dc2626; }
.bt-plan-card > .bt-plan-wps { --ga: #2563eb; }
.bt-plan-card > .bt-plan-loop { --ga: #7c3aed; }
/* the headings: one look everywhere, the coloured bar before them */
.bt-card2 .bt-grp > .bt-pop-sub:first-child, .bt-card2 .bt-poi-along > .bt-pop-sub:first-child, .bt-card2 .bt-alt > .bt-pop-sub:first-child,
.bt-card2 .bt-pop-lot-trails > .bt-pop-sub:first-child, .bt-card2 .bt-alldates > summary,
.bt-plan-card > .bt-plan-prof > .bt-pop-sub:first-child, .bt-plan-card > .bt-poi-along > .bt-pop-sub:first-child,
.bt-plan-card > .bt-plan-wps > summary, .bt-plan-card > .bt-plan-loop > summary {
    display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 0 0 8px; padding: 0; border: 0; font-size: 12px; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; color: var(--bt-ink); line-height: 1.3; }
.bt-card2 .bt-grp > .bt-pop-sub:first-child::before, .bt-card2 .bt-poi-along > .bt-pop-sub:first-child::before, .bt-card2 .bt-alt > .bt-pop-sub:first-child::before,
.bt-card2 .bt-pop-lot-trails > .bt-pop-sub:first-child::before, .bt-card2 .bt-alldates > summary::before,
.bt-plan-card > .bt-plan-prof > .bt-pop-sub:first-child::before, .bt-plan-card > .bt-poi-along > .bt-pop-sub:first-child::before,
.bt-plan-card > .bt-plan-wps > summary::before, .bt-plan-card > .bt-plan-loop > summary::before {
    content: ""; flex: none; width: 4px; height: 15px; border-radius: 2px; background: var(--ga); }
/* a switch beside a heading stays on the right, in sentence case */
.bt-card2 .bt-grp > .bt-elev-h > label, .bt-plan-card > .bt-plan-prof > .bt-elev-h > label { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--bt-ink-2); }
.bt-card2 .bt-grp > .bt-elev-h > span, .bt-plan-card > .bt-plan-prof > .bt-elev-h > span { flex: 0 1 auto; }
/* a collapsed panel (dates, points, round trip): the heading alone */
.bt-card2 .bt-alldates:not([open]) > summary, .bt-plan-card > .bt-plan-wps:not([open]) > summary, .bt-plan-card > .bt-plan-loop:not([open]) > summary { margin-bottom: 0; }
.bt-card2 .bt-alldates > summary { cursor: pointer; list-style: none; }
.bt-card2 .bt-alldates > summary::-webkit-details-marker { display: none; }
.bt-card2 .bt-alldates > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--bt-ink-2); border-bottom: 2px solid var(--bt-ink-2);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.bt-card2 .bt-alldates[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
/* inside a panel: no extra rules and margins of the old flat layout */
.bt-card2 .bt-alt { border-top: 1px solid color-mix(in srgb, var(--bt-ink) 10%, transparent); }
.bt-card2 .bt-surf { margin-top: 12px; }
.bt-card2 .bt-surf > .bt-elev-src, .bt-card2 .bt-grp .bt-elev-src { margin-bottom: 0; }
.bt-card2 .bt-trail-actions { margin-top: 12px; }
.bt-card2 > .bt-trail-actions > .bt-acts-one { margin-top: 0; }
.bt-card2 .bt-pop-lot-trails .bt-lot-sec:first-of-type { margin-top: 2px; }
/* the planner's sections: the old dividing rule goes, the panel does the job */
.bt-plan-card > .bt-plan-prof > .bt-pop-sub:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* the sun and the moon in the 3D view's sky (22 Nov 2026): over the map, under its buttons, never in the way of a touch */
.bt-sky3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }

/* ── commune cards (JEA-46, 22 Nov 2026) ─────────────────────────────────────────────────────────────────────── */
.bt-commune-head { display: flex; align-items: center; gap: 12px; }
.bt-commune-arms { flex: none; width: 44px; height: 48px; object-fit: contain; filter: drop-shadow(0 1px 2px #0005); }
.bt-commune-shield { flex: none; color: var(--bt-ink-2); }
.bt-commune-hn { min-width: 0; }
.bt-commune-k { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #7c3aed; }
.bt-commune-n { font-size: 22px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.bt-commune-card .bt-card-sub { margin: 2px 0 0; }
.bt-commune-links { margin-top: 12px; }
.bt-commune-links .bt-act-i { font-weight: 800; }
.bt-commune-stats { grid-template-columns: 1fr 1fr; }
.bt-st-people .bt-st-i { color: #7c3aed; }
.bt-st-hike .bt-st-i { color: #16a34a; }
.bt-st-bike .bt-st-i { color: #2563eb; }
.bt-card2 .bt-grp-facts { --ga: #7c3aed; }
.bt-card2 .bt-grp-cpoi { --ga: #2563eb; }
.bt-card2 .bt-commune-trails { --ga: #16a34a; }
.bt-grp-facts .bt-pop-row { padding: 4px 0; font-size: 13.5px; border-bottom: 1px solid color-mix(in srgb, var(--bt-ink) 7%, transparent); }
.bt-commune-pt { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.bt-commune-pt:hover { color: var(--bt-accent, #2563eb); }
.bt-commune-lu-h { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0 5px; font-size: 13px; color: var(--bt-ink-2); }
.bt-commune-lu-h b { color: #2f855a; }
.bt-commune-lu { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--bt-ink) 8%, transparent); }
.bt-commune-lu i { display: block; height: 100%; }
.bt-commune-lu-k { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 6px; font-size: 12px; color: var(--bt-ink-2); }
.bt-commune-lu-k i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
.bt-commune-loc { margin-top: 10px; font-size: 13px; line-height: 1.45; }
.bt-commune-loc span { display: block; font-size: 12px; color: var(--bt-ink-2); margin-bottom: 2px; }
/* the commune card's points of interest (JEA-109; 2 Dec 2026: two levels): group → kind chips + the points at once */
.bt-ct { margin: 2px -4px 0; font-size: 14px; }
.bt-ct-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 4px 6px; border: 0; border-radius: 8px;
    background: none; color: var(--bt-ink); font: inherit; text-align: left; cursor: pointer; }
.bt-ct-row:hover { background: var(--bt-hover); }
.bt-ct-row:focus-visible, .bt-ct-eye:focus-visible, .bt-ct-chip:focus-visible, .bt-ct-ic:focus-visible { outline: 2px solid var(--bt-accent); outline-offset: 1px; }
.bt-ct-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-ct-c { color: var(--bt-ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.bt-ct-chev { flex: none; width: 14px; height: 14px; color: var(--bt-ink-2); transition: transform .15s; }
.is-open > .bt-ct-row > .bt-ct-chev { transform: rotate(90deg); }
.bt-ct-g > .bt-ct-row { font-weight: 700; }
.bt-ct-dot { flex: none; width: 10px; height: 10px; margin: 0 4px; border-radius: 3px; background: var(--gc); }
.bt-ct-sub { margin-left: 13px; padding-left: 9px; border-left: 2px solid color-mix(in srgb, var(--gc) 45%, transparent); }
.bt-ct-sub[hidden], .bt-ct-det[hidden] { display: none; }
.bt-ct-krow { display: flex; align-items: center; gap: 2px; }
.bt-ct-krow > .bt-ct-row { flex: 1; min-width: 0; font-weight: 600; }
.bt-ct-k > .bt-ct-krow .bt-ct-eye { width: 36px; height: 30px; border-radius: 7px; margin-right: 2px; }
.bt-ct-k > .bt-ct-krow .bt-ct-eye svg { width: 17px; height: 17px; }
.is-open > .bt-ct-krow > .bt-ct-row > .bt-ct-chev { transform: rotate(90deg); }
.bt-ct-l > .bt-ct-row { min-height: 32px; font-size: 13.5px; }
.bt-ct-pin { flex: none; width: 14px; height: 14px; color: var(--bt-ink-2); }
.bt-ct-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.bt-ct-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 2px 4px 2px 6px; border-radius: 999px; border: 1px solid var(--bt-line);
    background: var(--bt-card); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.bt-ct-chip:not(:has(.bt-poi)) { padding: 2px 10px; }
.bt-ct-chip.is-sel { border-color: var(--gc); background: color-mix(in srgb, var(--gc) 22%, var(--bt-card)); }
.bt-ct-eye { flex: none; display: grid; place-items: center; width: 26px; height: 22px; margin-left: 1px; border: 1px dashed var(--bt-line); border-radius: 999px;
    background: none; color: var(--bt-ink-2); cursor: pointer; padding: 0; }
.bt-ct-eye.is-on { border-style: solid; color: var(--bt-ink); }
.bt-ct-eye svg { width: 14px; height: 14px; }
.bt-ct-lh { display: flex; justify-content: space-between; margin: 8px 6px 2px; font-size: 12px; font-weight: 700; color: var(--bt-ink-2); }
.bt-ct-p { border-radius: 8px; }
.bt-ct-prow { display: flex; align-items: center; gap: 4px; padding-right: 2px; }
.bt-ct-prow > .bt-ct-row { flex: 1; min-width: 0; padding-top: 5px; padding-bottom: 5px; }
.bt-ct-p .bt-ct-n { white-space: normal; line-height: 1.25; }
.bt-ct-p .bt-ct-n small { display: block; font-size: 12px; color: var(--bt-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-ct-ic { flex: none; display: grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 1px solid var(--bt-line); border-radius: 8px;
    background: var(--bt-card); font-size: 15px; cursor: pointer; }
.bt-ct-ic:hover { background: var(--bt-hover); }
.bt-ct-ic.is-look { border-color: color-mix(in srgb, var(--gc) 70%, transparent); }
.bt-ct-p.is-open { margin: 4px 0; background: color-mix(in srgb, var(--gc) 9%, var(--bt-card)); outline: 1px solid color-mix(in srgb, var(--gc) 35%, transparent); }
.bt-ct-p.is-open .bt-ct-prow > .bt-ct-row:hover { background: none; }
.bt-ct-det { padding: 0 8px 10px 36px; font-size: 13px; }
.bt-ct-det .bt-pop-row { padding: 3px 0; }
.bt-ct-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.bt-ct-acts button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; border: 1px solid var(--bt-line); border-radius: 9px;
    background: var(--bt-card); color: var(--bt-ink); font: 600 12px/1.2 var(--bt-font); cursor: pointer; }
.bt-ct-acts button:hover { background: var(--bt-hover); }
.bt-ct-acts button b { font-size: 15px; font-weight: 400; line-height: 1; }
.bt-ct-more { display: block; margin: 4px 0 6px 6px; }
.bt-ct .bt-pop-cat { padding: 4px 6px; }
.bt-commune-free { display: inline-block; width: 14px; flex: none; }
.bt-commune-credit { margin: 14px 0 6px; font-size: 11.5px; line-height: 1.5; color: var(--bt-ink-2); }
.bt-commune-credit a { color: inherit; }
/* entry points: the communes of a lot card, the commune headings of the "By commune" list */
.bt-commune-link { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.bt-commune-link:hover { color: #7c3aed; text-decoration-color: currentColor; }
.v2-list .v2-group:has(.bt-lot-item) > h3 > span:first-child { cursor: pointer; text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.v2-list .v2-group:has(.bt-lot-item) > h3:hover > span:first-child { color: #a78bfa; text-decoration-color: currentColor; }
/* the search box's commune suggestions (JEA-46) */
.bt-commune-sugg { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 2px; }
.bt-commune-sugg[hidden] { display: none; }
.bt-commune-sugg-b { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 10px; cursor: pointer; text-align: left;
    border: 1px solid color-mix(in srgb, #7c3aed 45%, transparent); background: color-mix(in srgb, #7c3aed 10%, transparent); color: var(--bt-ink); font: inherit; font-size: 13.5px; }
.bt-commune-sugg-b img { flex: none; object-fit: contain; }
.bt-commune-sugg-b b { flex: 1 1 auto; min-width: 0; }
.bt-commune-sugg-b span { flex: none; font-size: 12px; color: #7c3aed; font-weight: 700; }
.bt-commune-sugg-b:hover { background: color-mix(in srgb, #7c3aed 18%, transparent); }

/* ── search and "By commune" on phones (23 Nov 2026) ─────────────────────────────────────────────────────────────
   One sticky row under the sheet's handle: a segmented control (trails | communes) and a magnifier; the magnifier
   turns the row into a full-width search field with ×, the sheet rises to full height, the results show under it.
   Under the row a quiet line with the day's figures. Desktop keeps its row (no magnifier, no ×, no figures line). */
.v2-search-tg, .v2-search-x, .v2-mini { display: none; }
.bt-sugg-h { margin: 6px 2px 0; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--bt-ink-2); }
.bt-sugg-b { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 10px; cursor: pointer; text-align: left;
    border: 1px solid var(--bt-line); background: var(--bt-card); color: var(--bt-ink); font: inherit; font-size: 13.5px; }
.bt-sugg-b:hover { border-color: var(--bt-ink-2); }
.bt-sugg-b b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bt-sugg-b > span:last-child:not(.bt-poi) { flex: none; font-size: 12px; color: var(--bt-ink-2); }
.bt-sugg-i { flex: none; width: 18px; text-align: center; font-style: normal; font-weight: 800; color: #7c3aed; }
.bt-sugg-lot .bt-sugg-i { color: var(--bt-orange); }
@media (max-width: 900px) {
    .v2-panel .v2-row3 { display: flex; flex: none; align-items: center; gap: 8px; padding: 4px 12px 6px; top: 0; }
    .v2-panel .v2-tabs.ui-selectonebutton { flex: 1 1 auto; display: flex; gap: 0; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--bt-ink) 8%, transparent); }
    .v2-panel .v2-tabs .ui-button { flex: 1 1 0; height: 32px; border: 0 !important; border-radius: 9px !important; font-size: 13.5px; justify-content: center; }
    .v2-panel .v2-tabs .ui-button.ui-state-active { background: var(--bt-card) !important; color: var(--bt-ink) !important; box-shadow: 0 1px 4px #0003 !important; }
    .v2-panel .v2-search { display: none; }
    .v2-search-tg { display: grid; place-items: center; flex: none; width: 40px; height: 38px; border-radius: 12px; border: 1px solid var(--bt-line); background: var(--bt-card);
        color: var(--bt-ink); cursor: pointer; }
    #bt-panel.bt-search-on .v2-tabs, #bt-panel.bt-search-on .v2-search-tg, #bt-panel.bt-search-on .v2-mini { display: none; }
    #bt-panel.bt-search-on .v2-search { display: flex; flex: 1 1 auto; height: 40px; border-radius: 12px; padding: 0 4px 0 12px; border-color: color-mix(in srgb, #7c3aed 55%, var(--bt-line)); }
    #bt-panel.bt-search-on .v2-search .ui-inputfield { font-size: 16px; }   /* 16 px: iOS does not zoom into the field */
    .v2-search-x { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: 16px; background: color-mix(in srgb, var(--bt-ink) 10%, transparent);
        color: var(--bt-ink); font-size: 20px; line-height: 1; cursor: pointer; }
    .v2-mini { display: flex; flex: none; align-items: center; gap: 6px; padding: 0 8px 4px 16px; font-size: 12px; color: var(--bt-ink-2); }
    .v2-mini-t { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* the fold chevron: up = fold the row away, down (folded) = bring it back; a 32 px target */
    .v2-fold { display: grid; place-items: center; flex: none; width: 32px; height: 26px; border: 0; border-radius: 8px; background: none; color: var(--bt-ink-2); cursor: pointer; }
    .v2-fold svg { transition: transform .2s; }
    #bt-panel.bt-row-folded .v2-row3 { display: none; }
    #bt-panel.bt-row-folded .v2-fold svg { transform: rotate(180deg); }
    #bt-panel.bt-row-folded .v2-mini { padding-top: 4px; }
    #bt-panel.bt-row-folded .v2-section > h2, #bt-panel.bt-row-folded .v2-group h3 { top: 0; }
    #bt-panel.bt-row-folded .v2-section .v2-group h3 { top: 31px; }
    .bt-commune-sugg { flex: none; padding: 0 12px 8px; }
    /* the sticky headings sit under the sticky row (about 48 px) */
    .v2-panel .v2-section > h2 { top: 48px; }
    .v2-panel .v2-group h3 { top: 48px; }
    .v2-panel .v2-section .v2-group h3 { top: 79px; }
}

/* ── the profile while following (24 Nov 2026, .bt-elev.is-follow): walked part purple under the line, the surface
   strip purple up to me with the traveller as a knob, a small dot on the line, the height only by the cursor and
   the walked / to go figures in place of the km labels (follow panel, full screen, locked; AR has its own) ── */
.bt-elev:not(.is-follow) svg .pf, .bt-elev:not(.is-follow) svg .sp, .bt-elev:not(.is-follow) svg .st,
.bt-elev:not(.is-follow) svg .cur-o, .bt-elev:not(.is-follow) svg .cur-k, .bt-elev:not(.is-follow) svg .fg { display: none; }
.bt-elev.is-follow svg .played, .bt-elev.is-follow svg .cur-d, .bt-elev.is-follow svg .kx, .bt-elev.is-follow svg .u { display: none; }
.bt-elev svg .pf { fill: #7c3aed; fill-opacity: .62; }
.bt-elev svg .sp { fill: #8b5cf6; }
.bt-elev svg .st { fill: var(--bt-s-unknown); }
.bt-elev svg .cur-o { fill: #fff; stroke: #7c3aed; stroke-width: 2.5; }
.bt-elev svg .cur-k circle { fill: #fff; stroke: #7c3aed; stroke-width: 2.4; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.bt-elev svg .cur-k text { font-size: 11.5px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; fill: #000; }
.bt-elev svg text.fg { font-size: 9.4px; font-weight: 600; fill: var(--bt-ink); }
.bt-elev svg text.fg-d { fill: #7c3aed; }
.bt-elev svg .fg .fn { font-size: 12.3px; font-weight: 800; }
.bt-elev svg .fg .fe { fill: var(--bt-muted); font-weight: 500; }
html.bt-dark .bt-elev svg text.fg-d, .bt-nav-prof .bt-elev svg text.fg-d { fill: #c4b5fd; }
.bt-nav-prof .bt-elev svg text.fg { fill: #fff; }
.bt-nav-prof .bt-elev svg text.fg-d { fill: #c4b5fd; }
.bt-nav-prof .bt-elev svg .fg .fe { fill: #cbd5e1; }
/* AR profile (24 Nov 2026): a small dot on the line, the strip purple up to me with the traveller as its knob, the
   figures under it */
.bt-ar-prof-dot, .bt-ar-prof-dot.is-off { width: 8px; height: 8px; border: 2.5px solid #7c3aed; border-radius: 50%; background: #fff;
    transform: translate(-50%, -50%); font-size: 0; filter: none; box-shadow: 0 0 2px rgba(0, 0, 0, .6); }
.bt-ar-prof-dot.is-off { border-color: #94a3b8; }
.bt-ar-prof-strip { position: relative; margin-top: 3px; }
.bt-ar-prof-strip .bt-fly-surf { margin: 0; }
.bt-ar-prof-walked { position: absolute; left: 0; top: 0; height: 5px; width: 0; border-radius: 2px 0 0 2px; background: #8b5cf6; }
.bt-ar-prof-knob { position: absolute; top: 2.5px; left: 0; width: 20px; height: 20px; transform: translate(-50%, -50%); box-sizing: border-box;
    border-radius: 50%; background: #fff; border: 1.5px solid #fff; outline: 2.5px solid #7c3aed; display: grid; place-items: center;
    font: 11px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; box-shadow: 0 1px 4px rgba(0, 0, 0, .55); z-index: 3; }
.bt-ar-prof-knob span { display: inline-block; transform: scaleX(-1); }
.bt-ar-prof-knob.is-off { outline-color: #94a3b8; filter: grayscale(1); }
.bt-ar-prof-fig { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.bt-ar-prof-fig b { font-size: 14px; font-weight: 800; }
.bt-ar-prof-fig .d { color: #c4b5fd; }
.bt-ar-prof-fig small { color: #cbd5e1; font-weight: 500; font-size: 11px; }
/* the following overlay (25 Nov 2026): overview of the whole route (JEA-68), figures on two lines on the right and the
   heading strip between them (JEA-66), "back to me" and "you" chips while swiping, no steepest line */
.bt-elev svg .ov-s { fill: #fff; fill-opacity: .22; }
.bt-elev svg .ov-w { fill: #a78bfa; }
.bt-elev svg .ov-b { fill: #fff; fill-opacity: .1; stroke: #fff; stroke-width: 1.2; }
.bt-elev svg .ov-me { fill: #fff; stroke: #7c3aed; stroke-width: 1.5; }
.bt-elev svg text.fg-l2 { font-size: 8.4px; font-weight: 600; fill: #fff; }
.bt-elev svg .hd { overflow: hidden; cursor: pointer; }
.bt-elev svg .hd .tp-bg { fill: #0b0f14; stroke: #ffffff40; stroke-width: 1; }
.bt-elev svg .hd text.tp-n { font-weight: 800; font-family: var(--bt-font); }
.bt-elev svg .hd text.tp-nu { font-size: 5.5px; font-weight: 800; fill: #ef4444; }
.bt-nav-prof .bt-steep { display: none; }
.bt-np-chip { position: absolute; z-index: 2; border: 0; border-radius: 12px; padding: 4px 10px; font: 700 12px var(--bt-font); white-space: nowrap; }
.bt-np-chip[hidden] { display: none; }
.bt-np-back { top: 6px; right: 44px; background: #7c3aed; color: #fff; }
.bt-np-you { top: auto; bottom: 74px; background: rgba(0, 0, 0, .7); color: #c4b5fd; pointer-events: none; }
.bt-np-you.is-l { left: 44px; } .bt-np-you.is-r { right: 14px; }
/* locked (25 Nov 2026): the profile overlay takes swipes and double taps through a hole in the cover; its × is hidden
   (it would minimise it), the unlock panel stays over everything */
body.bt-locked .bt-nav-prof-x { display: none; }
.bt-nav-prof-lock { position: absolute; top: 4px; right: 40px; z-index: 1; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #facc15; cursor: pointer; }
.bt-nav-prof.is-min .bt-nav-prof-lock, body.bt-locked .bt-nav-prof-lock { display: none; }
.bt-nav-prof .bt-np-back { right: 108px; }
/* JEA-73 (27 Nov 2026): the base maps next to the lock, + / − with the stretch on the chart's right edge; the overlay
   takes pinches itself (no browser zoom or pan) */
.bt-nav-prof { touch-action: none; }
.bt-nav-prof-lyr { position: absolute; top: 4px; right: 72px; z-index: 1; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.bt-nav-prof.is-min .bt-nav-prof-lyr, body.bt-locked .bt-nav-prof-lyr { display: none; }
.bt-np-zoom { position: absolute; right: 12px; top: 46%; transform: translateY(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center;
    width: 30px; padding: 2px 0; border-radius: 15px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); }
.bt-np-zoom button { width: 28px; height: 26px; padding: 0; border: 0; background: none; color: #fff; font: 600 18px/1 system-ui, sans-serif; cursor: pointer; }
.bt-np-zoom button:disabled { opacity: .3; cursor: default; }
.bt-np-zoom span { font: 700 9.5px/1.1 system-ui, sans-serif; color: rgba(255, 255, 255, .85); text-align: center; white-space: nowrap; }
.bt-nav-prof.is-min .bt-np-zoom { display: none; }
.bt-nav-prof .bt-elev svg text.fg-a { fill: #c4b5fd; }
/* trail card (25 Nov 2026): ▶ plays the trail on the map, the big red "Follow this route" in place of "Add to my route" */
.bt-trail-actions .bt-follow-big { display: flex; justify-content: center; width: 100%; box-sizing: border-box; margin: 8px 0 4px; padding: 11px 14px;
    font-size: 15px; font-weight: 700; border-radius: 12px; border: 0 !important; background: #dc2626 !important; color: #fff !important; }
.bt-play2-stop { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1001; border: 0; border-radius: 16px;
    padding: 7px 14px; background: rgba(15, 23, 42, .85); color: #fff; font: 700 13px var(--bt-font); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
/* the profile overlay open (full screen): the playback's Close pill out of its way, on the right */
.bt-has-navprof .bt-play2-stop { left: auto; right: 58px; bottom: auto; top: 46%; transform: none; }
/* the simulated following, 2D and 3D (25 Nov 2026, option B): the player's control row (as in the flyover) at the
   bottom, the profile overlay just above it; in 3D the flyover's own profile and title give way to the overlay */
.bt-play2 { position: absolute; inset: 0; pointer-events: none; z-index: 1001; font: 13px/1.3 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.bt-play2 .bt-fly-panel, body.bt-simfly .bt-fly-panel { left: 50%; bottom: 8px !important; transform: translateX(-50%) !important;
    width: min(560px, calc(100% - 16px)); padding: 6px 8px; box-sizing: border-box; }
body.bt-simfly .bt-fly-panel > :not(.bt-fly-bar):not(.bt-nav-prof):not(.bt-rz):not(.bt-rz-size), body.bt-simfly .bt-fly-banner { display: none !important; }
body.bt-simfly .bt-flying .bt-nav-prof { display: block; }
:is(body.bt-sim2d, body.bt-simfly) .bt-nav-prof, :is(body.bt-sim2d, body.bt-simfly) .bt-nav-prof.is-min { bottom: 58px; }
:is(body.bt-sim2d, body.bt-simfly) .bt-fly-bar { gap: 6px; }
:is(body.bt-sim2d, body.bt-simfly) .bt-fly-read { font-size: 12px; }
@media (max-width: 420px) { :is(body.bt-sim2d, body.bt-simfly) .bt-fly-read { display: none; } }
/* full screen (25 Nov 2026): the turn panel beside the map's left button column, not over it; its list a third of the
   screen at most. Locked, the buttons fade away and the panel takes the width again (the rule above). */
body.bt-fs:not(.bt-locked) .bt-turn:not(.is-min) { left: 62px; transform: none; width: min(560px, calc(100% - 70px)); }
body.bt-fs .bt-turn-list { max-height: 34vh; }
/* places along the route in the turn banner (JEA-70, 25 Nov 2026): folded a chip "Along your way: … · Next: …",
   open a row with the next place, in the list rows in route order; icons on the profile overlay and badges on the map */
.bt-pl { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 4px; }
.bt-pl-chip { display: inline-flex; align-items: center; gap: 3px; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; padding: 3px 8px; border: 0; border-radius: 12px;
    background: rgba(127, 127, 127, .22); color: inherit; font: 600 11px/1.2 var(--bt-font); cursor: pointer; }
.bt-pl-l, .bt-pl-dot { opacity: .8; }
.bt-pl-chip b { font-weight: 800; flex: none; }
.bt-pl-chip > span, .bt-pl-chip > b { flex: none; }
.bt-pl-chip > .bt-pl-n { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the badges on the map from zoom 15 (a closer look at the way ahead) */
.bt-pl-chip b.is-here, .bt-pl b.is-here { color: #16a34a; }
.bt-pl-tg { opacity: .8; }
.bt-pl-i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c); display: inline-grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .7); box-sizing: border-box; }
.bt-pl-i svg { width: 14px; height: 14px; fill: #fff; }
.bt-pl-i.is-s { width: 15px; height: 15px; border-width: 1px; }
.bt-pl-i.is-s svg { width: 9px; height: 9px; }
.bt-pl.is-open { justify-content: flex-start; align-items: center; gap: 8px; margin-top: 4px; padding: 7px 2px 0; border-top: 1px solid rgba(127, 127, 127, .35); cursor: pointer; font-size: 14px; }
.bt-pl.is-open .bt-pl-i + .bt-pl-i { margin-left: -4px; }
.bt-pl-t { flex: 1; min-width: 0; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }
.bt-pl-t small, .bt-pl-d small { display: block; font-size: 11.5px; font-weight: 500; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-pl-d { text-align: right; line-height: 1.1; white-space: nowrap; }
.bt-pl-d b { font-size: 17px; }
.bt-pl-up { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(127, 127, 127, .25); font-size: 12px; }
.bt-turn-list li.is-place .bt-pl-i { width: 22px; height: 22px; }
/* JEA-78 (28 Nov 2026): the next place as a tile beside the turn (option B), the places after it as small icons on the line
   under it with the list toggle at its end */
.bt-turn.has-tile { grid-template-columns: auto 1fr auto auto auto; }
.bt-pl-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 60px; padding: 5px 6px 4px; border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--c) 70%, #fff); background: color-mix(in srgb, var(--c) 28%, transparent); color: #fff; font: inherit; cursor: pointer; }
.bt-pl-tile .bt-pl-i { width: 24px; height: 24px; }
.bt-pl-tile b { font-size: 14px; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--c) 45%, #fff); }
.bt-pl-tile b.is-here { color: #4ade80; }
.bt-pl-tile small { font-size: 9.5px; font-weight: 600; line-height: 1; opacity: .9; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-pl-tile i { position: absolute; right: -4px; top: -4px; min-width: 15px; height: 15px; border-radius: 8px; background: #111; border: 1.5px solid #fff; font: 800 9px/12px system-ui, sans-serif; font-style: normal; text-align: center; }
.bt-pl.bt-pl-rest { justify-content: flex-start; align-items: center; gap: 4px; font: 600 11px/1.2 var(--bt-font); padding-top: 2px; }
.bt-pl-rest .bt-pl-l { opacity: .75; margin-right: 2px; }
.bt-pl-ls { margin-left: auto; width: 30px; height: 24px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font: 600 15px/1 system-ui, sans-serif; cursor: pointer; }
/* full screen in portrait (JEA-78): the banner as wide as the dock at the bottom, the map's buttons start under it */
@media (orientation: portrait), (min-height: 501px) {
    body.bt-fs:not(.bt-locked) .bt-turn:not(.is-min), body.bt-fs:not(.bt-locked) .bt-3d-on .bt-turn:not(.is-min) {
        left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 16px)); }
    /* only when the banner covers a column (JEA-102: on a wide screen it sits clear of both, in the middle) */
    body.bt-fs .bt-has-turn.bt-turn-clash .leaflet-control-container .leaflet-top, body.bt-fs .bt-has-turn.bt-turn-clash .maplibregl-ctrl-top-left,
    body.bt-fs .bt-has-turn.bt-turn-clash .maplibregl-ctrl-top-right { transform: translateY(var(--bt-turn-h, 0px)); }
}
.bt-elev svg .pli circle { stroke: #fff; stroke-width: 1.2; }
.bt-elev svg .pli.is-past { opacity: .4; }
.bt-elev:not(.is-follow) svg .pl { display: none; }
/* 3D full screen sideways: the panel also keeps clear of the 3D view's button column on the right (in portrait it
   is as wide as the dock, the buttons start under it: JEA-78) */
@media (orientation: landscape) and (max-height: 500px) {
    body.bt-fs:not(.bt-locked) .bt-3d-on .bt-turn:not(.is-min) { width: min(560px, calc(100% - 70px - 50px)); }
}

/* ── phone held sideways (26 Nov 2026) ───────────────────────────────────────────────────────────────────────────
   the Dynamic Island / notch sits on a side: the map's button columns, the player, the profile overlay and the turn
   panel keep clear of it (the page draws under it: viewport-fit=cover) */
@media (orientation: landscape) and (max-height: 500px) {
    .leaflet-control-container .leaflet-left, .maplibregl-ctrl-top-left, .maplibregl-ctrl-bottom-left { left: env(safe-area-inset-left, 0px); }
    .leaflet-control-container .leaflet-right, .maplibregl-ctrl-top-right, .maplibregl-ctrl-bottom-right { right: env(safe-area-inset-right, 0px); }
    .bt-fly-panel, .bt-nav-prof:not(.is-min) {
        max-width: calc(100% - 16px - 2 * max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))); }
    body.bt-fs:not(.bt-locked) .bt-turn:not(.is-min) { left: calc(62px + env(safe-area-inset-left, 0px));
        width: min(560px, calc(100% - 70px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); }
    /* a flyover or first-person view: a slimmer player (no title, a lower profile) and a smaller turn panel, so the
       view keeps most of the short screen */
    .bt-flying .bt-fly-title { display: none; }
    .bt-flying .bt-fly-prof { height: 30px; margin-bottom: 4px; }
    .bt-flying .bt-fly-panel { padding: 5px 8px; }
    .bt-flying .bt-turn:not(.is-min) { zoom: .8; }
}

/* ── the dock (JEA-78, 28 Nov 2026): the profile overlay with a header row (mode, name, base maps, lock, fold); folded it
   keeps its header row with the figures; during a playback it sits inside the player's panel above the control row ── */
.bt-dk-h { display: flex; align-items: center; gap: 7px; height: 30px; margin-bottom: 2px; min-width: 0; }
.bt-dk-mode { flex: none; padding: 4px 7px; border-radius: 7px; background: rgba(255, 255, 255, .1); color: #e5e7eb; font: 600 10.5px/1 var(--bt-font, system-ui, sans-serif); white-space: nowrap; }
.bt-dk-mode.is-follow { background: rgba(139, 92, 246, .28); color: #ddd6fe; }
.bt-dk-ti { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font: 600 13px/1.1 var(--bt-font, system-ui, sans-serif); }
.bt-dk-fig { display: none; flex: none; color: #c4b5fd; font: 600 11px/1 var(--bt-font, system-ui, sans-serif); white-space: nowrap; }
.bt-dk-sp { flex: 1; }
.bt-dk-h .bt-nav-prof-lock, .bt-dk-h .bt-nav-prof-x, .bt-dk-h .bt-nav-prof-lyr { position: static; flex: none; }
.bt-dk-h .bt-nav-prof-lyr { order: 1; } .bt-dk-h .bt-nav-prof-lock { order: 2; } .bt-dk-h .bt-nav-prof-x { order: 3; display: grid; place-items: center; }
.bt-nav-prof .bt-elev-slope { display: none; }
.bt-nav-prof .bt-np-back { top: 40px; }
.bt-nav-prof-b, .bt-nav-prof.is-min .bt-nav-prof-b { display: none; }
.bt-nav-prof.is-min { width: min(560px, calc(100% - 16px)); left: 50%; right: auto; bottom: 8px; transform: translateX(-50%); padding: 6px 8px 4px;
    background: color-mix(in srgb, var(--bt-paper, #12170f) 82%, transparent); box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bt-nav-prof.is-min .bt-nav-prof-x { display: grid; }
.bt-nav-prof.is-min .bt-nav-prof-x svg { transform: rotate(180deg); }
.bt-nav-prof.is-min .bt-dk-fig { display: block; }
.bt-nav-prof.is-min .bt-dk-h { margin-bottom: 0; }
.bt-nav-prof.is-min .bt-np-chip { display: none; }
body .bt-play2 .bt-nav-prof.in-dock, body .bt-fly-panel .bt-nav-prof.in-dock { position: relative; left: auto; right: auto; bottom: auto; transform: none; width: auto;
    padding: 0 0 6px; margin: 0 0 4px; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
/* the lock stays during a playback too (JEA-78, 28 Nov 2026) */
/* not full screen (the 2D player on a phone): a lower profile, the map keeps most of the room */
body:not(.bt-fs) .bt-nav-prof.in-dock .bt-elev svg { max-height: 22vh; }
/* a narrow banner with a place tile (between the button columns): a smaller arrow ring and distance */
@media (orientation: portrait), (min-height: 501px) {
    body:not(.bt-fs) .bt-turn.has-tile .bt-turn-a { width: 46px; height: 46px; }
    body:not(.bt-fs) .bt-turn.has-tile .bt-turn-a > svg { width: 28px; height: 28px; }
    body:not(.bt-fs) .bt-turn.has-tile .bt-turn-m b { font-size: 24px; }
    body:not(.bt-fs) .bt-turn.has-tile { gap: 4px 8px; padding-left: 10px; }
}
/* the 3D view's direction and tilt label is gone (JEA-78): the dock's one-line compass shows the direction */
.bt-3d-readout { display: none !important; }
/* the flyover's and first-person view's own panel with the dock's header row (JEA-78): mode chip, name, fold */
.bt-fly-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.bt-fly-title .bt-dk-ti { font-size: 13px; }
.bt-fly-fold { flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.bt-fly-panel.is-fold .bt-fly-profwrap, .bt-fly-panel.is-fold .bt-fly-surf { display: none; }
.bt-fly-panel.is-fold .bt-fly-fold svg { transform: rotate(180deg); }

/* ── the flyover's panel (JEA-78, 28 Nov 2026): lock, figures row, places on the profile; clear of the 3D buttons ── */
.bt-fly-lock { flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .12); color: #facc15; cursor: pointer; }
body.bt-locked .bt-fly-lock { display: none; }
.bt-fly-figs { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 10px/1.2 var(--bt-font, system-ui, sans-serif); white-space: nowrap; }
.bt-fly-figs b { font-size: 13px; font-weight: 800; }
.bt-fly-figs .bt-ff-d { color: #c4b5fd; }
.bt-fly-figs .bt-ff-hd { flex: none; margin: 0 auto; overflow: visible; }
.bt-fly-figs .bt-ff-l { margin-left: auto; }
.bt-ff-hd .tp-bg { fill: #0b0f14; stroke: #ffffff40; stroke-width: 1; }
.bt-ff-hd text.tp-n { font-weight: 800; font-family: var(--bt-font, system-ui, sans-serif); }
/* the figures row says it all: the bar's own read-out goes */
.bt-fly-panel:has(.bt-fly-figs) .bt-fly-bar .bt-fly-read { display: none; }
.bt-fly-pls { position: absolute; left: 0; right: 0; bottom: 1px; height: 0; z-index: 1; pointer-events: none; }
.bt-fpl { position: absolute; bottom: 0; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--c);
    box-shadow: 0 0 0 1px #fff; display: grid; place-items: center; transition: opacity .35s; }
.bt-fpl svg { display: block; }
.bt-fpl em { position: absolute; right: -6px; top: -6px; min-width: 10px; height: 10px; border-radius: 5px; background: #111; border: 1px solid #fff;
    font: 800 7px/9px system-ui, sans-serif; font-style: normal; color: #fff; text-align: center; }
.bt-fpl.is-past { opacity: .4; }
/* ── a playback in portrait (3D and the 2D player) (JEA-78, 28 Nov 2026, BattuesStack): turn banner and player equally wide, one at the top
   and one at the bottom (swapped by dragging one to the other end), the map's buttons between them ── */
.bt-stack .bt-turn:not(.is-min), .bt-stack :is(.bt-fly, .bt-play2) .bt-fly-panel {
    left: 50% !important; right: auto !important; width: min(560px, calc(100% - 16px)) !important; box-sizing: border-box;
    transform: translate(-50%, var(--sy, 0px)) !important; }
.bt-stack :is(.bt-fly, .bt-play2) .bt-fly-panel { top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; }
.bt-stack.bt-stack-swap :is(.bt-fly, .bt-play2) .bt-fly-panel { top: calc(8px + env(safe-area-inset-top, 0px)); bottom: auto !important; }
.bt-stack.bt-stack-swap .bt-turn { top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
.bt-stack.bt-stack-swap .bt-turn.is-min { transform: translateX(-50%); }
.bt-stack .is-stack-drag { transition: none !important; opacity: .92; box-shadow: 0 10px 28px rgba(0, 0, 0, .55) !important; z-index: 1200; }
.bt-stack .bt-turn:not(.is-min), .bt-stack :is(.bt-fly .bt-fly-title, .bt-play2 .bt-dk-h) { cursor: grab; }
/* the buttons start under the top one and end above the bottom one */
.bt-stack .leaflet-control-container .leaflet-top, .bt-stack .maplibregl-ctrl-top-left, .bt-stack .maplibregl-ctrl-top-right {
    transform: translateY(var(--bt-stack-t, 0px)) scale(var(--bt-col-z, 1)) !important; transform-origin: top left; }
.bt-stack .leaflet-control-container .leaflet-top.leaflet-right, .bt-stack .maplibregl-ctrl-top-right { transform-origin: top right; }
/* where the room runs out the buttons lie over the panel (under the turn banner) */
.bt-stack .leaflet-control-container .leaflet-top, .bt-stack .maplibregl-ctrl-top-left, .bt-stack .maplibregl-ctrl-top-right { z-index: 1090; }
/* the heights inside the plot (the dock's chart as wide as its panel) */
.bt-elev svg text.gi { font-size: 8.5px; font-weight: 600; fill: #fff; opacity: .7; paint-order: stroke; stroke: rgba(0, 0, 0, .45); stroke-width: 2px; }
/* the scale and the credits stay at the bottom, under the bottom panel (28 Nov 2026) */
/* the battue banners under the top one */
.bt-stack .bt-fly-banner, .bt-stack .bt-live-banner { top: var(--bt-stack-t, 12px) !important; }
/* the places after the next one, in the order they come (28 Nov 2026): a group with its count */
.bt-pl-g { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.bt-pl-g small { font: 700 9px/1 var(--bt-font, system-ui, sans-serif); opacity: .9; white-space: nowrap; }
.bt-pl.bt-pl-rest:has(.bt-pl-g small) { align-items: flex-start; }
.bt-pl.bt-pl-rest:has(.bt-pl-g small) .bt-pl-l { margin-top: 6px; }
.bt-pl-g i { position: absolute; right: -5px; top: -5px; min-width: 12px; height: 12px; border-radius: 6px; background: #111; border: 1px solid #fff;
    font: 800 7.5px/10px system-ui, sans-serif; font-style: normal; color: #fff; text-align: center; }
/* the pocket mode's badge (28 Nov 2026): the 3D view stopped following the phone, or 2D */
.bt-pocket { position: absolute; left: 50%; bottom: calc(var(--bt-stack-b, 0px) + 10px); transform: translateX(-50%); z-index: 1095; pointer-events: none;
    padding: 4px 11px; border-radius: 999px; background: rgba(13, 16, 12, .85); color: #fde68a; border: 1px solid rgba(253, 230, 138, .5);
    font: 700 12px/1.2 var(--bt-font, system-ui, sans-serif); white-space: nowrap; }
.bt-pocket[hidden] { display: none; }
/* the screen lock (28 Nov 2026): without live GPS in full screen too; in 3D it is in the 3D column, not the round button
   (which lay over the column on a phone) */
.bt-page-lock { display: none; }
body.bt-fs .bt-page-lock { display: grid; }
.bt-live-on .bt-page-lock, .bt-3d-on > .bt-page-lock, .bt-3d-on > .bt-live-lockb { display: none !important; }
body.bt-locked .bt-3d-glock { display: none; }


/* ── the layer stack (JEA-87, 28 Nov 2026): base maps and layers as two sortable lists, an eye to switch, a
   transparency where it makes sense; the classic lists hidden ─────────────────────────────────────────────────── */
.bt-lp-on .leaflet-control-layers-base, .bt-lp-on .leaflet-control-layers-overlays, .bt-lp-on .leaflet-control-layers-separator,
.bt-lp-on .bt-lyr-h:not(.bt-lp-hd), .bt-lp-on .bt-lyr-mine { display: none !important; }
.bt-lp { min-width: 250px; max-width: 300px; }
.bt-lp-hd { display: flex; align-items: baseline; gap: 8px; margin: 2px 2px 5px; }
.bt-lp-hd span { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .8; color: #16a34a; }
html.bt-dark .bt-lp-hd span { color: #86efac; }
.bt-lp-list + .bt-lp-hd { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(127, 127, 127, .25); }
.bt-lp-r { display: flex; align-items: center; gap: 7px; padding: 4px 4px; margin-bottom: 2px; border-radius: 9px; transition: transform .15s; position: relative; background: transparent; }
.bt-lp-r.is-on { background: rgba(127, 127, 127, .1); }
.bt-lp-r.is-open { background: rgba(34, 197, 94, .14); }
.bt-lp-r.is-drag { transition: none; z-index: 3; background: rgba(34, 197, 94, .22); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.bt-lp-h { width: 18px; height: 28px; display: grid; place-items: center; cursor: grab; touch-action: none; opacity: .55; font-size: 14px; flex: none; user-select: none; -webkit-user-select: none; }
.bt-lp-t { width: 26px; height: 26px; border-radius: 6px; background-size: cover; background-position: center; flex: none; border: 1px solid rgba(127, 127, 127, .35); }
.bt-lp-t.is-sym { display: grid; place-items: center; font-size: 13px; color: #fff; border: 0; }
.bt-lp-n { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.2; }
.bt-lp-r:not(.is-on) .bt-lp-n, .bt-lp-r:not(.is-on) .bt-lp-t { opacity: .5; }
.bt-lp-pc { border: 0; background: none; padding: 4px 2px; min-width: 42px; text-align: right; font: 700 12px/1 system-ui, sans-serif; color: #16a34a; cursor: pointer; white-space: nowrap; }
html.bt-dark .bt-lp-pc { color: #86efac; }
.bt-lp-r.is-open .bt-lp-pc { color: inherit; }
.bt-lp-pc0 { min-width: 42px; }
.bt-lp-e { width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; padding: 0; background: rgba(127, 127, 127, .16); color: inherit; cursor: pointer; flex: none; }
.bt-lp-s { padding: 2px 6px 6px 54px; }
.bt-lp-s input { width: 100%; accent-color: #22c55e; }
.bt-lp-more { margin-left: 4px; border: 1px solid rgba(127, 127, 127, .45); background: none; color: inherit; border-radius: 999px; padding: 2px 8px; font: 600 11px/1.3 system-ui, sans-serif; cursor: pointer; }
.bt-lp-slot .bt-slope-ctl { margin: 2px 0 6px 30px; }
.bt-lp > .bt-lp-hd:first-child { margin-right: 20px; }   /* clear of the switcher's × */
/* turn pins drawn again (the window moves, a playback): no entry animation, so they do not flicker (29 Nov 2026) */
.bt-elev svg.tn-still .tz, .bt-elev svg.tn-still .tg, .bt-elev svg.tn-still .td, .fp-still .bt-fp u, .fp-still .bt-fh { animation: none; }


/* the planner's points in another order (29 Nov 2026): ⠿ drags a row, ▲▼ on the selected row (or under the mouse) */
.bt-plan-wps li { transition: transform .15s ease; }
.bt-plan-h { flex: none; width: 18px; text-align: center; color: var(--bt-muted); font-size: 15px; letter-spacing: -2px; cursor: grab;
    touch-action: none; user-select: none; -webkit-user-select: none; padding: 6px 0; }
.bt-plan-ud { display: none; flex: none; flex-direction: column; gap: 1px; }
.bt-plan-wps li.is-sel .bt-plan-ud { display: flex; }
@media (hover: hover) { .bt-plan-wps ol:not(.is-dragging) li:hover .bt-plan-ud { display: flex; } }
.bt-plan-ud button { width: 24px; height: 15px; padding: 0; border: 0; border-radius: 4px; background: var(--bt-hover); color: var(--bt-ink-2);
    font-size: 8.5px; line-height: 15px; cursor: pointer; }
.bt-plan-ud button:hover:not(:disabled), .bt-plan-ud button:focus-visible { background: #2563eb; color: #fff; outline: none; }
.bt-plan-ud button:disabled { opacity: .25; cursor: default; }
.bt-plan-wps ol.is-dragging { user-select: none; -webkit-user-select: none; }
.bt-plan-wps ol.is-dragging li.is-drag { transition: none; z-index: 3; position: relative;
    background: color-mix(in srgb, #2563eb 20%, var(--bt-card));
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35), 0 0 0 1.5px #3b82f6; }
.bt-plan-wps ol.is-dragging li.is-drag .bt-plan-h { cursor: grabbing; color: #3b82f6; }
.bt-plan-wps li.is-drag.is-gone { opacity: .45; box-shadow: none; }
.bt-plan-wps ol.is-dragging .bt-plan-ud { display: none !important; }
.bt-plan-wps li.is-moved { background: rgba(34, 197, 94, .18); }
.bt-toast.bt-toast-undo { display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.bt-toast-undo button { border: 0; background: none; color: #93c5fd; font: inherit; font-weight: 800; padding: 2px 4px; cursor: pointer; }

/* the players' speed (29 Nov 2026): − speed +, the speed and the ring in its colour (green slow → yellow 1× → red fast) */
.bt-fly-step { --sc: #22c55e; flex: 0 0 auto; display: inline-flex; align-items: center; height: 32px; border-radius: 16px; box-sizing: border-box;
    border: 1.5px solid var(--sc); background: #ffffff10; box-shadow: 0 0 10px -3px var(--sc); transition: border-color .2s, box-shadow .2s; }
.bt-fly-sd { width: 28px; height: 29px; padding: 0; border: 0; border-radius: 15px; background: none; color: #fff; font: 600 17px/1 system-ui, sans-serif;
    cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: background .12s, color .12s; }
.bt-fly-sd:hover:not(:disabled), .bt-fly-sd:focus-visible { background: #ffffff1f; outline: none; }
.bt-fly-sd.is-press:not(:disabled) { background: var(--sc); color: #0b0f14; }
.bt-fly-sd:disabled { opacity: .25; cursor: default; }
.bt-fly-sv { min-width: 38px; text-align: center; font-weight: 800; font-size: 14px; color: var(--sc); font-variant-numeric: tabular-nums; letter-spacing: -.01em;
    transition: color .2s; }
@media (max-width: 420px) { .bt-fly-sd { width: 24px; } .bt-fly-sv { min-width: 32px; font-size: 13px; } }

/* a player's panel resized on a computer (29 Nov 2026, BattuesResize): handles on the top edge, the sides and the top
   corners, shown with the mouse over the panel; the size while dragging above it */
.bt-rz { position: absolute; z-index: 3; opacity: 0; transition: opacity .15s; }
.bt-fly-panel:hover > .bt-rz, .bt-fly-panel.is-resizing > .bt-rz { opacity: 1; }
.bt-rz::after { content: ""; position: absolute; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.bt-rz-t { left: 50%; top: -6px; width: 56px; height: 12px; margin-left: -28px; cursor: ns-resize; }
.bt-rz-t::after { left: 10px; right: 10px; top: 4px; height: 4px; }
.bt-rz-l, .bt-rz-r { top: 50%; width: 12px; height: 56px; margin-top: -28px; cursor: ew-resize; }
.bt-rz-l { left: -6px; } .bt-rz-r { right: -6px; }
.bt-rz-l::after, .bt-rz-r::after { top: 10px; bottom: 10px; left: 4px; width: 4px; }
.bt-rz-tl, .bt-rz-tr { top: -6px; width: 16px; height: 16px; }
.bt-rz-tl { left: -6px; cursor: nwse-resize; } .bt-rz-tr { right: -6px; cursor: nesw-resize; }
.bt-rz-tl::after, .bt-rz-tr::after { width: 8px; height: 8px; top: 5px; background: none; border: 2px solid rgba(255, 255, 255, .45); border-radius: 0; }
.bt-rz-tl::after { left: 5px; border-right: 0; border-bottom: 0; } .bt-rz-tr::after { right: 5px; border-left: 0; border-bottom: 0; }
.bt-rz:hover::after, .bt-fly-panel.is-resizing > .bt-rz::after { background: #3b82f6; border-color: #3b82f6; }
.bt-rz-tl:hover::after, .bt-rz-tr:hover::after, .bt-fly-panel.is-resizing > .bt-rz-tl::after, .bt-fly-panel.is-resizing > .bt-rz-tr::after { background: none; }
.bt-fly-panel.is-resizing { outline: 1.5px dashed #3b82f6; outline-offset: 3px; user-select: none; -webkit-user-select: none; }
.bt-rz-size { position: absolute; left: 50%; top: -32px; transform: translateX(-50%); padding: 3px 8px; border-radius: 7px; background: #3b82f6; color: #fff;
    font: 700 11px/1.3 system-ui, sans-serif; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.bt-fly-panel.is-sized { width: min(var(--bt-pw), calc(100% - 16px)) !important; }
.bt-fly-panel.is-sized .bt-nav-prof.in-dock .bt-elev svg { max-height: none !important; }
.bt-fly-panel.is-sized .bt-fly-prof { height: var(--bt-ch) !important; }
@media (hover: none), (pointer: coarse) { .bt-rz { display: none; } }

/* "Back to 3D" after the pocket left 3D for 2D (29 Nov 2026): 3D comes back only when asked */
.bt-back3d { position: absolute; left: 50%; bottom: calc(var(--bt-stack-b, 0px) + 12px); transform: translateX(-50%); z-index: 1096;
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
    background: rgba(13, 16, 12, .9); color: #fff; font: 700 13px/1.2 var(--bt-font, system-ui, sans-serif); cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.bt-back3d-i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2563eb; font-size: 11px; font-weight: 800; }

/* pocket mode by hand and its signs (29 Nov 2026): the lock held fills a ring (letting go: pocket mode; held on: the
   menu), the badge says the mode (auto when it went in by itself, "Wake"), the map is dimmed a little, the lock
   buttons wear the pocket's colours, a notice when it went in by itself */
.bt-live-lockb, .bt-3d-glock button, .bt-fly-lock { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
:is(.bt-3d-glock button, .bt-fly-lock).is-pk-hold { position: relative; }
.bt-dk-h .bt-nav-prof-lock.is-pk-hold { position: relative; }
:is(.bt-live-lockb, .bt-3d-glock button, .bt-fly-lock, .bt-nav-prof-lock).is-pk-hold { overflow: visible; }
:is(.bt-live-lockb, .bt-3d-glock button, .bt-fly-lock, .bt-nav-prof-lock).is-pk-hold::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; pointer-events: none;
    border: 3px solid rgba(253, 230, 138, .25); border-top-color: #fde68a; animation: bt-pk-fill .6s linear forwards; }
:is(.bt-live-lockb, .bt-3d-glock button, .bt-fly-lock, .bt-nav-prof-lock).is-pk-ready::after { animation: none; border-color: #fde68a; box-shadow: 0 0 12px rgba(253, 230, 138, .6); }
@keyframes bt-pk-fill { 0% { transform: rotate(0); border-right-color: rgba(253, 230, 138, .25); }
    50% { border-right-color: #fde68a; } 100% { transform: rotate(360deg); border-right-color: #fde68a; border-bottom-color: #fde68a; border-left-color: #fde68a; } }
body.bt-pocket-on :is(.bt-live-lockb, .bt-3d-glock button, .bt-fly-lock, .bt-nav-prof-lock) { background: #a16207 !important; color: #fff !important; border-color: #fde68a !important; }
.bt-pocketed::after { content: ""; position: absolute; inset: 0; z-index: 1090; background: rgba(5, 8, 6, .32); pointer-events: none; }
.bt-pocket { display: inline-flex; align-items: center; gap: 7px; pointer-events: none; }
.bt-pocket em { font-style: normal; font-size: 10px; font-weight: 700; padding: 0 5px; border: 1px solid rgba(253, 230, 138, .5); border-radius: 6px; }
.bt-pocket b { background: #fde68a; color: #111; border-radius: 999px; padding: 2px 9px; font-weight: 800; }
.bt-pocket-note { position: absolute; left: 50%; top: calc(var(--bt-stack-t, 0px) + 12px); transform: translateX(-50%); z-index: 1097; width: min(300px, calc(100% - 24px));
    box-sizing: border-box; padding: 10px 12px; border-radius: 14px; background: rgba(17, 22, 28, .96); border: 1px solid rgba(253, 230, 138, .45); color: #e6edf3;
    font: 12.5px/1.35 var(--bt-font, system-ui, sans-serif); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 3px; }
.bt-pocket-note b { color: #fde68a; }
.bt-pocket-acts { display: flex; gap: 14px; margin-top: 4px; }
.bt-pocket-acts button { border: 0; background: none; padding: 4px 0; color: #93c5fd; font: inherit; font-weight: 800; cursor: pointer; }
/* a skipped stretch of the route (JEA-100): stays until answered, the two choices as buttons one can hit while walking */
.bt-skip-note { border-color: rgba(139, 92, 246, .7); z-index: 1099; }
.bt-skip-note b { color: #ddd6fe; font-size: 13.5px; }
.bt-skip-note .bt-pocket-acts { flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.bt-skip-note .bt-pocket-acts button { padding: 8px 12px; border-radius: 10px; background: #7c3aed; color: #fff; }
.bt-skip-note .bt-pocket-acts button[data-a="back"] { background: rgba(255, 255, 255, .1); color: #e6edf3; }
.bt-pk-menu { position: absolute; z-index: 1098; width: 220px; padding: 6px; border-radius: 14px; background: rgba(17, 22, 28, .97); border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .55); font: 13px/1.3 var(--bt-font, system-ui, sans-serif); }
.bt-pk-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: #fff;
    font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.bt-pk-menu button:active, .bt-pk-menu button:hover { background: rgba(255, 255, 255, .08); }
.bt-pk-menu i { font-style: normal; width: 20px; text-align: center; }
.bt-pk-menu small { display: block; font-size: 10.5px; font-weight: 500; color: #8b949e; }
.bt-pk-menu hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 4px 6px; }
.bt-pk-sw { margin-left: auto; flex: none; width: 32px; height: 19px; border-radius: 10px; background: #475569; position: relative; transition: background .15s; }
.bt-pk-sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: left .15s; }
.bt-pk-sw.is-on { background: #22c55e; } .bt-pk-sw.is-on::after { left: 15px; }

/* the dock's chart in a player's panel: no minimum height of its own (29 Nov 2026: a resized panel kept an empty band
   under its chart, so it could hardly be made smaller) */
.bt-fly-panel .bt-nav-prof.in-dock .bt-elev { min-height: 0; }

/* resizing a player: nothing on the page gets selected (JEA-94) */
html.bt-noselect, html.bt-noselect * { -webkit-user-select: none !important; user-select: none !important; }
.bt-rz { -webkit-user-select: none; user-select: none; touch-action: none; }

/* the player's chart (JEA-93): the stretch's − 4 km + in the header row, a darker ground under the chart so a tall
   chart stays readable over the map */
.bt-dk-h .bt-np-zoom { position: static; transform: none; order: 0; flex-direction: row-reverse; width: auto; height: 26px; padding: 0 2px; border-radius: 13px; flex: none; }
.bt-dk-h .bt-np-zoom button { width: 24px; height: 24px; font-size: 16px; }
.bt-dk-h .bt-np-zoom span { padding: 0 2px; }
.bt-fly-panel .bt-nav-prof.in-dock .bt-elev svg { background: rgba(8, 10, 7, .5); border-radius: 6px; }

/* the map's bottom row (JEA-92, 29 Nov 2026; not the stacked phone layout): the legend button and the scale side by
   side at the bottom left, the credits at the bottom right, always there and never under a panel; the following
   overlay and the players' panels sit just above that row */
.leaflet-container:not(.bt-stack) .leaflet-bottom.leaflet-left { display: flex; align-items: flex-end; gap: 0; }
.leaflet-container:not(.bt-stack) .leaflet-bottom.leaflet-left > .leaflet-control { margin-bottom: 6px; }
.leaflet-container:not(.bt-stack).bt-has-navprof .leaflet-bottom { bottom: 0; }
.leaflet-container:not(.bt-stack).bt-has-navprof .bt-plan-pill { bottom: 250px; }
.leaflet-container:not(.bt-stack) .bt-nav-prof:not(.in-dock) { bottom: 40px; }
body .leaflet-container:not(.bt-stack) .bt-fly-panel { bottom: 40px !important; }
.leaflet-container:not(.bt-stack).bt-3d-on .leaflet-control-attribution, .bt-flying .leaflet-container:not(.bt-stack) .leaflet-bottom.leaflet-right, .leaflet-container.bt-flying:not(.bt-stack) .leaflet-bottom.leaflet-right { display: block; }
.leaflet-container:not(.bt-stack) .leaflet-bottom.leaflet-right { z-index: 1002; }

/* the turn banner's fold ⌃ / list ⌄ / unfold ⌄ (30 Nov 2026): one size, one column at the right; folded, a pill at the
   right whose ⌄ sits where the ⌃ was */
.bt-turn-btns { display: flex; flex-direction: column; align-items: center; gap: 6px; align-self: start; justify-self: end; }
.bt-turn .bt-turn-x, .bt-turn .bt-turn-tg, .bt-turn .bt-pl-ls { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; flex: none; }
.bt-turn .bt-turn-x:hover, .bt-turn .bt-turn-tg:hover, .bt-turn .bt-pl-ls:hover { background: rgba(255, 255, 255, .22); }
.bt-turn .bt-pl-ls { height: 28px; }
.bt-turn.is-min { width: min(560px, calc(100% - 120px)); display: flex; justify-content: flex-end; padding: 10px; background: none; border-color: transparent;
    box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; overflow: visible; }
.bt-turn.is-min::after { display: none; }
.bt-turn-pill { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: 999px; margin: -5px;
    background: color-mix(in srgb, rgb(12, 14, 11) var(--bt-glass, 72%), transparent); border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); box-shadow: 0 6px 22px rgba(0, 0, 0, .45); }
.bt-turn-pill > b { color: var(--ac); font-size: 18px; font-variant-numeric: tabular-nums; }
.bt-turn.is-far .bt-turn-pill > b { color: #fff; }
.bt-turn-pill .bt-turn-a { width: 38px; height: 38px; }
.bt-turn-pill .bt-turn-a::before { inset: 3px; }
.bt-turn-pill .bt-turn-a > svg { width: 24px; height: 24px; }
.bt-turn.is-hill .bt-turn-x, .bt-turn.is-hill .bt-turn-tg { background: rgba(255, 255, 255, .12); color: #fff; }
/* the place tile, then the button column: four columns (the list toggle no longer has one of its own) */
.bt-turn.has-tile:not(.is-min) { grid-template-columns: auto 1fr auto auto; }
/* folded: the unfold ⌄ exactly where the fold ⌃ was (the pill's border and its taller turn ring accounted for) */
.bt-turn.is-min { padding-top: 6px; }
.bt-turn.is-min .bt-turn-pill { margin: -5px -6px -5px -5px; }
/* folded: the pill in the middle (30 Nov 2026) */
.bt-turn.is-min { justify-content: center; }
.bt-turn.is-min .bt-turn-pill { margin: -5px 0; }

/* ── View from here (JEA-103): the camera on the map, its menu; the view's panel, compass strip, labels, mini map ── */
.bt-cam-btn.is-on { background: #f59e0b; color: #111; }
html.bt-dark .bt-cam-btn.is-on { background: #f59e0b; color: #111; }
.bt-cam-placing, .bt-cam-placing canvas, .bt-cam-placing .leaflet-interactive { cursor: crosshair !important; }
.bt-cam-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 1100; pointer-events: none; max-width: calc(100% - 120px);
    background: color-mix(in srgb, rgb(12, 14, 11) var(--bt-glass, 90%), transparent); color: #fff; border-radius: 10px; padding: 7px 12px;
    font: 600 13px/1.3 var(--bt-font, system-ui, sans-serif); box-shadow: 0 2px 12px #0006; }
.leaflet-marker-icon.bt-cam { width: 0 !important; height: 0 !important; background: none; border: 0; overflow: visible; }
.bt-cam-rot { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.bt-cam-cone { position: absolute; left: -110px; top: -110px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from -32deg, rgba(245, 158, 11, .42) 0deg 64deg, transparent 64deg 360deg);
    -webkit-mask: radial-gradient(circle, #000 0 96%, transparent 100%); mask: radial-gradient(circle, #000 0 96%, transparent 100%); }
.bt-cam-h { position: absolute; left: -11px; top: -101px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #f59e0b;
    box-sizing: border-box; box-shadow: 0 1px 6px #0008; pointer-events: auto; cursor: grab; touch-action: none; }
.bt-cam-h::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; }   /* a bigger target for a finger */
.bt-cam-pin { position: absolute; left: -19px; top: -19px; width: 38px; height: 38px; border-radius: 50%; background: #f59e0b; border: 3px solid #fff;
    display: grid; place-items: center; font-size: 17px; line-height: 1; padding: 0; cursor: grab; box-shadow: 0 2px 10px #0009;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.leaflet-dragging .bt-cam-pin { cursor: grabbing; }
.bt-cam-menu { position: absolute; left: 30px; top: -70px; width: 270px; padding: 8px; border-radius: 14px; z-index: 2; cursor: default;
    background: color-mix(in srgb, rgb(17, 22, 28) 94%, transparent); color: #e6edf3; border: 1px solid #ffffff1f; box-shadow: 0 10px 28px #0008;
    font: 13px/1.35 var(--bt-font, system-ui, sans-serif); }
.bt-cam-menu[hidden] { display: none; }
.bt-cam-mh { position: relative; padding: 2px 30px 6px 6px; }
.bt-cam-mh b { display: block; font-size: 14px; }
.bt-cam-mh small { display: block; color: #9aa4ad; font-size: 11.5px; }
.bt-cam-x { position: absolute; right: 0; top: 0; width: 28px; height: 28px; border: 0; border-radius: 8px; background: #ffffff14; color: #fff; font: 700 16px/1 inherit; cursor: pointer; }
.bt-cam-mi { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; color: inherit;
    font: 650 13.5px/1.25 inherit; text-align: left; cursor: pointer; }
.bt-cam-mi:hover, .bt-cam-mi:focus-visible { background: #ffffff14; outline: none; }
.bt-cam-mi i { font-style: normal; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; display: grid; place-items: center; background: #7c3aed; }
.bt-cam-mi small { display: block; color: #9aa4ad; font-size: 11.5px; font-weight: 500; }
.bt-cam-hs, .bt-view-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bt-cam-hs { margin: 6px 4px 2px; padding-top: 8px; border-top: 1px solid #ffffff1a; }
.bt-cam-chip, .bt-view-chip { padding: 5px 9px; border-radius: 999px; border: 1px solid transparent; background: #ffffff1a; color: #fff;
    font: 650 12px/1.2 var(--bt-font, system-ui, sans-serif); cursor: pointer; white-space: nowrap; }
.bt-cam-chip.is-on, .bt-view-chip.is-on { background: #f59e0b; color: #111; }
.bt-cam-chip:focus-visible, .bt-view-chip:focus-visible, .bt-view-b:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (max-width: 600px) { .bt-cam-menu { left: -135px; top: 30px; } }
body.bt-viewing .leaflet-marker-icon.bt-cam, body.bt-viewing .bt-cam-hint, body.bt-viewing .bt-legend, body.bt-viewing .bt-legend-chip { display: none !important; }
.bt-view-on .bt-3d-lotlabel { display: none; }
.bt-view { position: absolute; inset: 0; pointer-events: none; z-index: 5; font: 13px/1.35 var(--bt-font, system-ui, sans-serif); color: #e6edf3; }
.bt-view-tag[hidden] { display: none; }
.bt-view-tiles { position: absolute; inset: 0; filter: saturate(.85); }
html.bt-dark .bt-view-tiles { filter: brightness(.7) saturate(.8); }
.bt-view-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.bt-view-mini svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bt-view-wedge { fill: rgba(245, 158, 11, .45); stroke: #f59e0b; stroke-width: 1.5; }
.bt-view-wedge.is-orbit { fill: none; stroke-dasharray: 5 4; stroke-width: 2; }
.bt-view-me { fill: #f59e0b; stroke: #fff; stroke-width: 2.5; }
.bt-view-n { position: absolute; left: 6px; top: 4px; font-weight: 800; font-size: 11px; color: #111; text-shadow: 0 0 3px #fff; }
.bt-view-lbl { display: flex; flex-direction: column; align-items: center; pointer-events: none; white-space: nowrap; color: #fff; text-align: center;
    text-shadow: 0 0 3px #000, 0 1px 2px #000; font: 700 13px/1.15 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.bt-view-lbl b { padding: 2px 7px; border-radius: 7px; background: rgba(17, 22, 28, .72); border: 1px solid #ffffff40; text-shadow: none; }
.bt-view-lbl i { font-style: normal; font-weight: 600; font-size: 11px; margin-top: 2px; }
.bt-view-lbl::after { content: ''; width: 1.5px; height: 16px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 2px #000; }
.bt-view-lbl.is-peak b { color: #fde68a; }
.bt-view-lbl.is-lot b { border-color: #ef4444; color: #fecaca; background: rgba(127, 29, 29, .8); }
/* flying around: the camera's point in the 3D view */
.bt-view-pin { width: 34px; height: 34px; border-radius: 50%; background: #f59e0b; border: 3px solid #fff; box-sizing: border-box; display: grid; place-items: center;
    font-size: 15px; line-height: 1; box-shadow: 0 2px 10px #0009; pointer-events: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
/* phone: the day strip over the map is hidden while a view from here is on */
@media (max-width: 900px) { body.bt-viewing .v2-panel:not(.v2-s2) .v2-days, body.bt-viewing .bt-days-tg { display: none !important; } }
/* moving inside the view (JEA-104): the hint, the long press's ring, the tap's bubble with its ghost camera */
.bt-view-on canvas { cursor: grab; }
.bt-view-on canvas:active { cursor: grabbing; }
.bt-view-hint { position: absolute; left: 50%; top: 76px; transform: translateX(-50%); padding: 7px 12px; border-radius: 10px; white-space: nowrap;
    background: color-mix(in srgb, rgb(17, 22, 28) 92%, transparent); border: 1px solid #ffffff1f; font-weight: 650; font-size: 12.5px;
    box-shadow: 0 6px 18px #0007; transition: opacity .6s; }
.bt-view-hint.is-gone { opacity: 0; }
.bt-view-ring { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none;
    background: conic-gradient(#f59e0b var(--a, 0deg), #ffffff40 var(--a, 0deg)); animation: bt-view-ring .6s linear forwards;
    -webkit-mask: radial-gradient(circle, transparent 0 24px, #000 25px); mask: radial-gradient(circle, transparent 0 24px, #000 25px); }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes bt-view-ring { to { --a: 360deg; } }
.bt-view-bub { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bt-view-bub-box { position: relative; padding: 8px 10px; border-radius: 12px; background: rgba(17, 22, 28, .95); border: 1px solid #ffffff1f; color: #e6edf3;
    box-shadow: 0 10px 28px #0008; font: 13px/1.35 var(--bt-font, system-ui, sans-serif); white-space: nowrap; }
.bt-view-bub-box b { display: block; font-size: 13.5px; }
.bt-view-bub-box small { display: block; color: #9aa4ad; font-size: 11.5px; }
.bt-view-bub-box .bt-view-row { margin-top: 6px; }
.bt-view-bub-box::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-top-color: rgba(17, 22, 28, .95); border-bottom: 0; }
.bt-view-chip.is-pri { background: #7c3aed; color: #fff; }
.bt-view-pin.is-ghost { opacity: .7; border-style: dashed; }
/* ── JEA-106: the tilt slider, the flight horizon, the draggable compass strip, View from here on POI cards ── */
.bt-3d-gtilt { padding: 6px 0; display: flex; justify-content: center; }
.bt-3d-tilt { position: relative; width: 26px; height: 132px; margin: 0 4px; cursor: ns-resize; touch-action: none; outline: none; }
.bt-3d-tilt-tr { position: absolute; left: 7px; right: 7px; top: 0; bottom: 0; border-radius: 6px; border: 1px solid #ffffff55;
    background: linear-gradient(#c9e6ff 0%, #8fb7d6 4%, #9a7a48 7%, #6e4a22 45%, #2b1a0b 100%); box-shadow: inset 0 1px 3px #0006; }
.bt-3d-tilt-tr::before { content: ''; position: absolute; left: -4px; right: -4px; top: 5%; height: 1.5px; background: #fde68a; }
.bt-3d-tilt-th { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); min-width: 40px; height: 22px; padding: 0 5px; border-radius: 11px;
    background: #fff; color: #111; font: 800 11px/22px var(--bt-font, system-ui, sans-serif); text-align: center; white-space: nowrap;
    box-shadow: 0 2px 8px #000a, 0 0 0 2px #f59e0b; pointer-events: none; }
.bt-3d-tilt:focus-visible .bt-3d-tilt-th { box-shadow: 0 2px 8px #000a, 0 0 0 3px #7c3aed; }
.bt-3d-ghz { padding: 4px; display: flex; justify-content: center; }
.bt-fly-on .bt-3d-ghz { display: none; }
@media (max-width: 600px) { .bt-3d-tilt { height: 104px; } .bt-3d-ghz { display: none; } }
.bt-hz { flex: 0 0 auto; display: inline-block; }
.bt-hz svg { display: block; width: 100%; height: 100%; }
.bt-hz-bez { fill: #0d1116; stroke: #ffffff40; stroke-width: 1; }
.bt-hz-ring { fill: none; stroke: #000a; stroke-width: 1.4; }
.bt-hz-line { stroke: #fde68a; stroke-width: 1.4; }
.bt-hz-lad line { stroke: #fff; stroke-width: 1; opacity: .85; }
.bt-hz-lad text { fill: #fff; font: 800 5.2px system-ui, sans-serif; }
.bt-hz-rim line { stroke: #cbd5e1; stroke-width: 1; }
.bt-hz-rim text { fill: #e6edf3; font: 900 6.4px system-ui, sans-serif; text-anchor: middle; }
.bt-hz-rim text.is-n { fill: #fde68a; }
.bt-hz-ac { fill: none; stroke: #f59e0b; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bt-hz-dot, .bt-hz-idx { fill: #f59e0b; }
.bt-fly-figs .bt-fly-hz { width: 34px !important; height: 34px !important; margin-right: 4px; }
.bt-fly-livehz { position: absolute; left: 12px; bottom: 16px; pointer-events: none; filter: drop-shadow(0 4px 10px #0009); }
.bt-poi-view { display: flex; gap: 6px; margin: 10px 0 4px; }
.bt-poi-view .bt-view-go { padding: 6px 11px; border-radius: 999px; border: 0; background: #7c3aed; color: #fff; font: 700 12.5px/1.2 var(--bt-font, system-ui, sans-serif); cursor: pointer; }
.bt-poi-view .bt-view-go.is-2 { background: var(--bt-hover, #ffffff1a); color: var(--bt-ink, #fff); }
/* the camera's markers carry the viewpoint icon (1 Dec 2026) */
.bt-cam-pin svg, .bt-view-pin svg { width: 19px; height: 19px; fill: #111; }
.bt-vp-ic svg { width: 15px; height: 15px; fill: currentColor; vertical-align: -2px; }
/* ── JEA-108: the View from here player — a glass cockpit on a computer, a one-thumb orb on a phone ──────────── */
/* the map's own buttons go while the view runs (the layer switcher comes back while "Layers…" is open) */
body.bt-viewing .bt-3d-ctrl, body.bt-viewing .bt-3d-readout, body.bt-viewing .leaflet-top.leaflet-left, body.bt-viewing .maplibregl-ctrl-top-left,
body.bt-viewing:not(.bt-view-lyr) .leaflet-top.leaflet-right, body.bt-viewing:not(.bt-view-lyr) .maplibregl-ctrl-top-right { display: none !important; }
.bt-view-tag { display: none !important; }
.bt-view-ticks { position: absolute; inset: 0; }
.bt-view-mini { position: absolute; overflow: hidden; background: #ccc; pointer-events: none; }
.bt-view-name { font-weight: 800; }
/* computer: the instruments (amber, as a head-up display) */
.bt-vh { position: absolute; inset: 0; pointer-events: none; color: #ffd36b; font: 800 12px/1.2 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    text-shadow: 0 0 2px #000, 0 0 4px #000, 0 1px 2px #000; transition: opacity .5s; }
.bt-vh-lad { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bt-vh-lad path { fill: none; stroke: #ffd36b; stroke-width: 2; filter: drop-shadow(0 0 1.5px #000); }
.bt-vh-lad path.is-dn { stroke-dasharray: 9 6; }
.bt-vh-lad path.is-0 { stroke-width: 2.4; }
.bt-vh-lad path.is-bore { stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.bt-vh-lad text { fill: #ffd36b; font: 800 11px ui-monospace, 'SF Mono', Menlo, Consolas, monospace; paint-order: stroke; stroke: #000; stroke-width: 3px; }
.bt-vh-head { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: min(660px, calc(100% - 280px)); display: flex; align-items: center; gap: 8px;
    pointer-events: auto; }
.bt-view.is-cock .bt-view-compass { position: relative; flex: 1 1 auto; height: 46px; overflow: hidden; border-radius: 12px; cursor: grab; touch-action: none;
    background: linear-gradient(#000a, #0004); border: 1px solid #ffd36b33; }
.bt-view.is-cock .bt-view-compass.is-drag { cursor: grabbing; border-color: #ffd36b; }
.bt-view-ticks i { position: absolute; bottom: 12px; width: 1.6px; height: 7px; margin-left: -.8px; background: #ffd36b; opacity: .75; }
.bt-view-ticks i.is-l { height: 12px; opacity: 1; }
.bt-view-ticks b { position: absolute; top: 3px; transform: translateX(-50%); font-weight: 900; font-size: 14px; color: #ffd36b; }
.bt-view-ticks b.is-n { color: #fff; }
.bt-view-now { position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); padding: 1px 8px; border: 1.8px solid #ffd36b; border-bottom: 0;
    border-radius: 5px 5px 0 0; background: #000c; font-weight: 900; font-size: 12px; color: #ffd36b; white-space: nowrap; }
.bt-vh-nb { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 8px; background: #000b; border: 1.5px solid #ffd36b88;
    color: #ffd36b; font: 900 14px/1 system-ui, sans-serif; cursor: pointer; text-shadow: none; }
.bt-vh-nb:hover, .bt-vh-nb:focus-visible { background: #000e; border-color: #ffd36b; outline: none; }
.bt-vh-north { color: #fff; font: 900 12px/1 ui-monospace, Menlo, monospace; }
.bt-vh-tape { position: absolute; top: 150px; bottom: 196px; width: 92px; pointer-events: auto; cursor: ns-resize; touch-action: none; outline: none; }
.bt-vh-tape.is-l { left: 18px; }
.bt-vh-tape.is-r { right: 18px; }
.bt-vh-scale { position: absolute; top: 0; bottom: 0; width: 34px; }
.bt-vh-tape.is-l .bt-vh-scale { left: 0; border-right: 1.8px solid #ffd36b; background: linear-gradient(270deg, #0007, #0000); }
.bt-vh-tape.is-r .bt-vh-scale { right: 0; border-left: 1.8px solid #ffd36b; background: linear-gradient(90deg, #0007, #0000); }
.bt-vh-scale i { position: absolute; width: 14px; height: 1.6px; margin-top: -.8px; background: #ffd36b; }
.bt-vh-tape.is-l .bt-vh-scale i { right: 0; }
.bt-vh-tape.is-r .bt-vh-scale i { left: 0; }
.bt-vh-scale span { position: absolute; transform: translateY(-50%); font-size: 11.5px; white-space: nowrap; }
.bt-vh-tape.is-l .bt-vh-scale span { left: 40px; }
.bt-vh-tape.is-r .bt-vh-scale span { right: 40px; }
.bt-vh-cur { position: absolute; transform: translateY(-50%); padding: 4px 8px; border: 1.8px solid #ffd36b; background: #000d; color: #fff; font-size: 15px;
    font-weight: 900; white-space: nowrap; }
.bt-vh-tape.is-l .bt-vh-cur { left: -2px; border-radius: 0 6px 6px 0; }
.bt-vh-tape.is-r .bt-vh-cur { right: -2px; border-radius: 6px 0 0 6px; }
.bt-vh-tape.is-drag .bt-vh-cur, .bt-vh-tape:hover .bt-vh-cur { background: #f59e0b; color: #111; text-shadow: none; }
.bt-vh-tape:focus-visible .bt-vh-cur { outline: 2px solid #fff; }
.bt-vh-ttl { position: absolute; top: -24px; font-size: 11px; white-space: nowrap; }
.bt-vh-tape.is-l .bt-vh-ttl { left: 0; }
.bt-vh-tape.is-r .bt-vh-ttl { right: 0; }
.bt-vh-gnd { position: absolute; left: 0; bottom: -28px; padding: 2px 6px; border-radius: 5px; background: #3d2512cc; font-size: 11px; white-space: nowrap; }
.bt-vh-gnd:empty { display: none; }
.bt-vh-pfd { position: absolute; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 10px; }
.bt-vh-pfd .bt-view-hz { flex: 0 0 auto; filter: drop-shadow(0 4px 10px #0009); }
/* computer (2 Dec 2026): the horizon as large as the mini map, both drag to steer (tilt / turn) */
.bt-view.is-desk .bt-vh-pfd .bt-view-hz { pointer-events: auto; cursor: ns-resize; touch-action: none; border-radius: 50%; }
.bt-view.is-desk .bt-vh-pfd .bt-view-hz.is-drag, .bt-view.is-desk .bt-view-mini.is-drag { cursor: grabbing; }
/* the place, just above the player between the two dials (2 Dec 2026) */
.bt-vh-data { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.bt-view.is-desk .bt-vh-data { position: absolute; left: 50%; bottom: 80px; transform: translateX(-50%); max-width: min(560px, calc(100% - 330px)); align-items: center; transition: opacity .3s;
    padding: 4px 14px; border-radius: 10px; background: linear-gradient(#000a, #0006); border: 1px solid #ffd36b33; text-align: center; }
.bt-vh-data .bt-view-name { font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bt-vh-data .bt-view-read { color: #fff; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; max-width: 100%; }
.bt-view.is-desk .bt-vh-data:has(.bt-view-name:empty) .bt-view-name { display: none; }
.bt-view.is-desk.has-pop .bt-vh-data { opacity: 0; }
.bt-view.is-desk .bt-view-mini { right: 18px; bottom: 16px; width: 130px; height: 130px; border-radius: 50%; border: 2px solid #ffd36b88; box-shadow: 0 8px 24px #000b;
    pointer-events: auto; cursor: crosshair; touch-action: none; }
.bt-view.is-desk .bt-view-n { left: 50%; top: 5px; transform: translateX(-50%); }
/* computer: the pill */
.bt-view-pill { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 7px; align-items: center; padding: 6px;
    border-radius: 999px; background: rgba(10, 13, 17, .9); border: 1px solid #ffffff30; box-shadow: 0 12px 30px #000a; pointer-events: auto; transition: opacity .5s; }
.bt-view-seg { display: flex; padding: 3px; border-radius: 999px; background: #ffffff14; }
.bt-view-mode { border: 0; background: none; color: #cbd5e1; padding: 6px 12px; border-radius: 999px; font: 800 12.5px/1.2 var(--bt-font, system-ui, sans-serif);
    cursor: pointer; white-space: nowrap; }
.bt-view-mode span { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.bt-view-mode.is-on { background: #f59e0b; color: #111; }
.bt-view-ib { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 0; background: #ffffff14;
    color: #fff; font: 800 15px/1 system-ui, sans-serif; cursor: pointer; }
.bt-view-ib:hover { background: #ffffff2a; }
.bt-view-ib.is-on { background: #ffffff33; box-shadow: 0 0 0 2px #f59e0b; }
.bt-view-ib[hidden] { display: none; }
.bt-view-ib svg { width: 18px; height: 18px; }
.bt-view-mode:focus-visible, .bt-view-ib:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.bt-view-rec { color: #f87171; }
.bt-view-rec.is-on { background: #b91c1c; color: #fff; }
/* the instruments fade while the mouse rests (a choice of ⋯) */
.bt-view.is-still .bt-vh, .bt-view.is-still .bt-view-pill, .bt-view.is-still .bt-view-mini { opacity: .15; }
.bt-view-mini { transition: opacity .5s; }
/* the points of interest and ⋯: a popover over the pill */
/* the map's points of interest panel inside the view's popover (2 Dec 2026), on the dark glass */
.bt-vm-poi { --bt-line: #ffffff24; --bt-muted: #aab3bd; color: #fff; padding: 2px 4px 4px; font-size: 13.5px; }
.bt-vm-poi .bt-poi-head { margin-bottom: 2px; }
.bt-vm-poi .bt-poi-grp > summary { padding: 3px 0; }
.bt-vm-poi .bt-poi-type { padding: 2px 0; }
.bt-vm-poi .bt-poi-dist { background: #ffffff12; }
.bt-view-pop { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); width: 320px; max-height: calc(100% - 170px); overflow: auto; padding: 10px;
    border-radius: 14px; background: rgba(13, 17, 22, .97); border: 1px solid #ffffff2a; box-shadow: 0 14px 34px #000c; pointer-events: auto;
    font: 600 13px/1.35 var(--bt-font, system-ui, sans-serif); color: #e6edf3; text-shadow: none; }
.bt-view-pop[hidden] { display: none; }
.bt-view-pop.is-menu { width: 270px; }
.bt-view-pop h4 { margin: 2px 4px 8px; font-size: 12px; font-weight: 700; color: #9aa4ad; }
.bt-view-pop hr { border: 0; border-top: 1px solid #ffffff18; margin: 5px 4px; }
.bt-vm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 2px 10px; }
.bt-vm-chip { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: #ffffff10; border: 1px solid #ffffff1c;
    color: #94a3b8; font: 700 12px/1.3 var(--bt-font, system-ui, sans-serif); cursor: pointer; }
.bt-vm-chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); opacity: .45; }
.bt-vm-chip.is-on { color: #fff; background: #ffffff1f; border-color: var(--c); }
.bt-vm-chip.is-on i { opacity: 1; }
.bt-vm-chip.is-part i { background: linear-gradient(90deg, var(--c) 50%, #ffffff30 50%); }
.bt-vm-near-it, .bt-vm-it { display: flex; width: 100%; align-items: center; gap: 9px; padding: 7px 8px; border: 0; border-radius: 9px; background: none; color: inherit;
    font: inherit; text-align: left; cursor: pointer; }
.bt-vm-it { justify-content: space-between; }
.bt-vm-near-it:hover, .bt-vm-it:hover, .bt-vm-near-it:focus-visible, .bt-vm-it:focus-visible { background: #ffffff12; outline: none; }
.bt-vm-it.is-static { cursor: default; }
.bt-vm-it.is-static:hover { background: none; }
.bt-vm-it.is-2d { color: #fde68a; }
.bt-vm-it kbd { padding: 0 5px; border: 1px solid #ffffff40; border-bottom-width: 2px; border-radius: 4px; font: 700 10.5px ui-monospace, Menlo, monospace; color: #cbd5e1; }
.bt-vm-dot { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-sizing: border-box; }
.bt-vm-dot svg { width: 12px; height: 12px; fill: #fff; }
.bt-vm-nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-vm-nm small { display: block; color: #9aa4ad; font-weight: 600; font-size: 11.5px; }
.bt-vm-go { flex: 0 0 auto; color: #fde68a; font-weight: 800; font-size: 12px; }
.bt-vm-none { margin: 0 6px 8px; color: #9aa4ad; font-size: 12px; }
.bt-vm-seg { display: flex; gap: 3px; padding: 2px; border-radius: 999px; background: #ffffff12; }
.bt-vm-seg button { border: 0; background: none; color: #e6edf3; padding: 3px 9px; border-radius: 999px; font: 800 11.5px/1.2 var(--bt-font, system-ui, sans-serif); cursor: pointer; }
.bt-vm-seg button.is-on { background: #f59e0b; color: #111; }
.bt-vm-sw { flex: 0 0 auto; position: relative; width: 32px; height: 18px; border-radius: 9px; background: #ffffff30; }
.bt-vm-sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #cbd5e1; transition: left .15s; }
.bt-vm-sw.is-on { background: #f59e0b; }
.bt-vm-sw.is-on::after { left: 16px; background: #111; }
/* phone: full screen, the orb low, a row of five under it, bottom sheets */
body.bt-view-full { overflow: hidden; }
body.bt-view-full .bt-map-wrap { position: fixed !important; inset: 0 !important; width: auto !important; height: auto !important; z-index: 1200; }
body.bt-view-full #battues-map { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; }
.bt-vp-chip { position: absolute; left: max(12px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top)); min-width: 0; max-width: calc(100% - 24px); padding: 8px 13px; border-radius: 999px; background: rgba(10, 13, 17, .86); border: 1px solid #ffffff30;
    font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 8px 18px #0009; }
.bt-vp-chip small { color: #9aa4ad; font-weight: 600; font-size: 12px; }
.bt-vo { position: absolute; left: 50%; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 80px); width: 250px; height: 250px; margin-left: -125px; pointer-events: auto; }
.bt-vo-svg { width: 100%; height: 100%; overflow: visible; touch-action: none; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 14px 28px #000c); }
.bt-vo-track { fill: none; stroke: #080a07; stroke-opacity: .5; stroke-width: 16; stroke-linecap: round; }
.bt-vo-lv, .bt-vo-rv { fill: none; stroke-width: 7; stroke-linecap: round; }
.bt-vo-lv { stroke: #f59e0b; }
.bt-vo-rv { stroke: #7cc4ff; }
.bt-vo-body { fill: #080a07; fill-opacity: .5; stroke: #ffffff40; }
/* the orb is see-through, as the profile in the players (1 Dec 2026) */
.bt-vo-hz { opacity: .55; }
.bt-vo-svg { filter: drop-shadow(0 6px 14px #0006); }
.bt-vo-rim line { stroke: #cbd5e1; }
.bt-vo-card { font: 900 13px system-ui, sans-serif; fill: #e6edf3; text-anchor: middle; }
.bt-vo-card.is-n { fill: #fde68a; }
.bt-vo-lub { fill: #f59e0b; }
.bt-vo-hl { stroke: #fde68a; stroke-width: 2.2; }
.bt-vo-lad line { stroke: #fff; stroke-width: 1.3; opacity: .85; }
.bt-vo-lad text { fill: #fff; font: 900 8.5px system-ui, sans-serif; }
.bt-vo-bore { fill: none; stroke: #f59e0b; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.bt-vo-joy { fill: #ffffff14; stroke: #ffffff88; stroke-width: 1.4; stroke-dasharray: 3 4; }
.bt-vo-svg.is-face .bt-vo-joy { fill: #ffffff40; stroke: #fff; stroke-dasharray: none; }
.bt-vo-pp { fill: #fff; }
.bt-vo-ring { fill: none; stroke: #000b; stroke-width: 2.5; }
.bt-vo-hd { font: 900 11.5px system-ui, sans-serif; fill: #fde68a; text-anchor: middle; paint-order: stroke; stroke: #000; stroke-width: 3px; }
.bt-vo-lk { fill: #fff; stroke: #f59e0b; stroke-width: 3.5; }
.bt-vo-rk { fill: #fff; stroke: #7cc4ff; stroke-width: 3.5; }
.bt-vo-lc rect { fill: #f59e0b; }
.bt-vo-rc rect { fill: #7cc4ff; }
.bt-vo-lc text, .bt-vo-rc text { font: 900 11.5px system-ui, sans-serif; text-anchor: middle; fill: #111; }
.bt-vo-ic { font: 900 12px system-ui, sans-serif; text-anchor: middle; fill: #7cc4ff; }
.bt-vo-l0, .bt-vo-l1 { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; fill: #fde68a; }
.bt-view.is-touch .bt-view-ib svg { width: 20px; height: 20px; }
.bt-view.is-touch .bt-view-pop { left: 0; right: 0; bottom: 0; transform: none; width: auto; max-height: 72%; border-radius: 22px 22px 0 0; border-width: 1px 0 0;
    padding: 10px 16px max(20px, env(safe-area-inset-bottom)); font-size: 14px; }
.bt-vm-grab { width: 40px; height: 5px; border-radius: 3px; background: #ffffff40; margin: 0 auto 10px; }
.bt-view.is-touch .bt-vm-it { padding: 12px 6px; border-radius: 0; border-bottom: 1px solid #ffffff12; }
.bt-view.is-touch .bt-vm-chip { padding: 6px 11px 6px 7px; font-size: 13px; }
.bt-view.is-touch .bt-vm-near-it { padding: 8px 6px; }
.bt-view.is-touch .bt-vm-sw { width: 38px; height: 22px; border-radius: 11px; }
.bt-view.is-touch .bt-vm-sw::after { width: 18px; height: 18px; }
.bt-view.is-touch .bt-vm-sw.is-on::after { left: 18px; }
.bt-view.is-touch .bt-view-hint { top: calc(max(12px, env(safe-area-inset-top)) + 56px); white-space: normal; width: max-content; max-width: calc(100% - 40px); text-align: center; }
/* View from here: the map's credits fold into an (i); a tap shows them (1 Dec 2026) */
.bt-attr-fold { cursor: pointer; }
.bt-attr-fold:not(.bt-attr-open) { position: relative; width: 24px; height: 24px; padding: 0 !important; margin: 0 6px 6px 0 !important; overflow: hidden; border-radius: 50%;
    background: rgba(10, 13, 17, .6) !important; font-size: 0 !important; color: transparent !important; }
.bt-attr-fold:not(.bt-attr-open)::before { content: 'i'; position: absolute; inset: 0; display: grid; place-items: center; font: italic 700 13px/1 Georgia, serif; color: #fff; }
.bt-attr-fold:not(.bt-attr-open) * { visibility: hidden; }
/* ── JEA-108, 1 Dec 2026: the phone — orb (upright) or cockpit (sideways, or chosen in ⋯), one bar everywhere ── */
.bt-view.is-touch:not(.is-cock) .bt-vh, .bt-view.is-touch:not(.is-cock) .bt-view-mini, .bt-view.is-touch.is-cock .bt-vo { display: none; }
.bt-view.is-touch .bt-view-pill { bottom: max(12px, env(safe-area-inset-bottom)); gap: 5px; padding: 5px; }
.bt-view.is-touch .bt-view-mode { padding: 7px 11px; font-size: 13px; }
.bt-view.is-touch .bt-view-ib { width: 38px; height: 38px; }
.bt-view.is-touch .bt-view-ib svg { width: 19px; height: 19px; }
.bt-view.is-touch.has-pop .bt-vo, .bt-view.is-touch.has-pop .bt-view-pill { opacity: .35; }
.bt-view-ib.bt-view-share svg { width: 19px; height: 19px; }
/* the phone's cockpit: no ◀ ▶ N (drag the heading tape); narrower tapes; the flight horizon and the mini map the same
   size, mirrored above the bar (upright) or beside it (sideways) */
.bt-view.is-touch .bt-vh-nb { display: none; }
.bt-view.is-touch .bt-vh-head { top: max(10px, env(safe-area-inset-top)); width: calc(100% - 32px); }
.bt-view.is-touch.is-cock .bt-vp-chip { top: calc(max(10px, env(safe-area-inset-top)) + 54px); }
.bt-view.is-touch .bt-vh-tape { width: 72px; top: calc(max(10px, env(safe-area-inset-top)) + 136px); bottom: calc(max(12px, env(safe-area-inset-bottom)) + 190px); }
.bt-view.is-touch .bt-vh-tape.is-l { left: max(12px, env(safe-area-inset-left)); }
.bt-view.is-touch .bt-vh-tape.is-r { right: max(12px, env(safe-area-inset-right)); }
.bt-view.is-touch .bt-vh-scale { width: 26px; }
.bt-view.is-touch .bt-vh-scale i { width: 11px; }
.bt-view.is-touch .bt-vh-tape.is-l .bt-vh-scale span { left: 31px; }
.bt-view.is-touch .bt-vh-tape.is-r .bt-vh-scale span { right: 31px; }
.bt-view.is-touch .bt-vh-scale span { font-size: 10.5px; }
.bt-view.is-touch .bt-vh-cur { font-size: 13.5px; padding: 3px 6px; }
.bt-view.is-touch .bt-vh-pfd { left: max(14px, env(safe-area-inset-left)); bottom: calc(max(12px, env(safe-area-inset-bottom)) + 60px); max-width: none; }
.bt-view.is-touch .bt-view-mini { right: max(14px, env(safe-area-inset-right)); bottom: calc(max(12px, env(safe-area-inset-bottom)) + 60px); width: 80px; height: 80px;
    border-radius: 50%; border: 2px solid #ffd36b88; box-shadow: 0 8px 24px #000b; }
.bt-view.is-touch .bt-view-n { left: 50%; top: 3px; transform: translateX(-50%); font-size: 10px; }
.bt-view.is-touch .bt-vh-pfd .bt-view-hz { opacity: .9; }
@media (orientation: landscape) {
    .bt-view.is-touch .bt-vh-head { width: min(360px, 42%); }
    .bt-view.is-touch.is-cock .bt-vp-chip { top: max(10px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); max-width: calc(29% - 12px); }
    .bt-view.is-touch .bt-vh-tape { top: 72px; bottom: 128px; }
    .bt-view.is-touch .bt-vh-pfd { bottom: 10px; }
    .bt-view.is-touch .bt-view-mini { bottom: 10px; }
    .bt-view.is-touch .bt-view-pill { bottom: 10px; }
}
/* ⋯ → Controls (phone) */
.bt-vm-it.is-ctl > span:first-child small { display: block; color: #9aa4ad; font-weight: 600; font-size: 11.5px; }
@media (orientation: landscape) { body.bt-view-full .bt-attr-fold:not(.bt-attr-open) { margin-right: 104px !important; } }
/* the phone held upright: the modes as icons only (the bar has room for 📱 following the phone) */
@media (orientation: portrait) { .bt-view.is-touch .bt-view-mt { display: none; } .bt-view.is-touch .bt-view-mode { padding: 7px 12px; font-size: 16px; } }
