/* Hallmark · waive 44c · hero ends at 750px of 900 · Страница маршрута: TrailTrack shows the photo gallery, the facts and the section tabs on the first screen, the tabs must stay visible */
        /* Hallmark · waive 3 · div.sgrid · «Похожие маршруты»: TrailTrack route cards carry a photo; the icon over the title is the «Сохранить» bookmark button, never a decorative tile icon */
        /* Hallmark · waive 39b · button.mosaic__tile · Плитки «Все фото» это сами фотографии маршрута: TrailTrack gallery tiles take their height from the photograph, they are images */
        /* Hallmark · waive 49b · similar route title links wrap · Названия «Из Ораниенбаума II в Калище…» настоящие: TrailTrack shows real route names whole, wrapping between words */
        /* Hallmark · dismissed F20 · пять бейджей: Трек сообщества, Хайкинг, регион, Многодневный, Ждём первого отчёта; TrailTrack не добавляет шестой, карта OpenFreeMap ниже */
        /* Hallmark · dismissed 77 · страница маршрута TrailTrack is one route detail page (gallery, map, profile, conditions, people), never a landing strip */
        /* ---------- one route: page-only pieces on the social.css tokens ---------- */
        :root { --s-asphalt: #334155; --s-compact: #a16207; --s-gravel: #78716c; --s-ground: #b45309; --s-sand: #d97706; --s-improved: #7c3aed; --navh: 52px; --top: calc(68px + var(--navh) + 20px);
            --lb-paper: rgba(8, 10, 9, 0.95); --lb-veil: rgba(8, 10, 9, 0.6); --lb-btn: rgba(255, 251, 247, 0.14); --lb-btn-hover: rgba(255, 251, 247, 0.26); }
        :root[data-theme="dark"] { --s-asphalt: #9fb0c4; --s-compact: #d6a33a; --s-gravel: #b3aca7; --s-ground: #e48a4c; --s-sand: #f2b34a; --s-improved: #a78bfa; }
        html { scroll-padding-top: var(--top); }
        .page { padding-bottom: 0; }

        /* gallery */
        .gallery-wrap { position: relative; }
        .mosaic { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; height: clamp(300px, 28vw, 400px); overflow: hidden; border-radius: var(--r-lg); background: var(--bg-soft); }
        .mosaic__tile { position: relative; display: block; min-height: 0; padding: 0; overflow: hidden; border: 0; background: var(--bg-soft); cursor: zoom-in; }
        .mosaic__tile:first-child { grid-row: span 2; }
        .mosaic__tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms; }
        .mosaic__tile:hover img { opacity: 0.88; }
        .mosaic__tile:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 0; }
        .mosaic__more { position: absolute; inset: 0; display: grid; place-items: center; background: var(--scrim-45); color: var(--on-accent); font: var(--fw-title) var(--fs-h3)/var(--lh-h3) var(--font-display); }
        .mosaic__all { position: absolute; right: 16px; bottom: 16px; z-index: 2; }

        /* head */
        .rhero { display: grid; gap: 20px; margin-top: 32px; }
        .badges-row { display: flex; flex-wrap: wrap; gap: 8px; }
        .badge { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: var(--fs-caption); font-weight: var(--fw-button); white-space: nowrap; }
        a.badge:hover { background: var(--line); color: var(--ink); }
        .badge .icon, .badge img { width: 15px; height: 15px; }
        .badge--brand { background: var(--orange-soft); color: var(--link); }
        .badge--ok { background: var(--ok-soft); color: var(--ok); }
        .fdot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
        .rhero h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-display); overflow-wrap: break-word; }
        .rhero h1 span { display: block; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-heading); }
        .rhero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
        .passport { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
        .passport > div { display: grid; grid-template-columns: 22px auto; column-gap: 12px; align-items: center; padding: 12px 24px 12px 16px; border-left: 1px solid var(--line); }
        .passport > div:first-child { border-left: 0; }
        .passport .icon { grid-row: span 2; color: var(--quiet); }
        .rt-segments { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
        .rt-segments h2 { margin: 0 0 10px; color: var(--quiet); font-size: var(--fs-small); font-weight: 600; }
        .rt-segments ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 24px; max-height: 200px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
        .rt-segments li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; color: var(--ink); font-size: var(--fs-small); }
        .rt-segments__name { display: flex; align-items: baseline; min-width: 0; gap: 8px; overflow-wrap: anywhere; }
        .rt-segments__name i { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--segment-color); }
        .rt-segments li b { flex: none; font-weight: 650; font-variant-numeric: tabular-nums; }
        @media (max-width: 600px) { .rt-segments ul { grid-template-columns: minmax(0, 1fr); } }
        .passport dt { color: var(--quiet); font-size: var(--fs-caption); }
        .passport dd { margin: 0; font: var(--fw-heading) var(--fs-h4)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
        .passport .is-hard dd, .passport .is-hard .icon { color: var(--link); }
        .people-link { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-button); }
        .people-link .avatar { width: 32px; height: 32px; border-color: var(--bg); }
        .people-link:hover span:last-child { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
        .acts { display: flex; flex-wrap: wrap; gap: 8px; }
        .act[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
        .act[aria-pressed="true"] .icon { fill: currentColor; }
        .act.is-planned { border-color: var(--ok); color: var(--ok); }

        /* section nav */
        .secnav { position: sticky; top: 68px; z-index: 40; margin-top: 40px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
        .secnav .tabs { height: var(--navh); }
        .secnav a { min-height: var(--navh); }
        .secnav .icon { width: 17px; height: 17px; color: var(--quiet); }
        .secnav a[aria-current="true"] { border-color: var(--orange); color: var(--ink); }
        .secnav a[aria-current="true"] .icon { color: var(--cta); }

        /* body rhythm: 96px between sections, 48px inside */
        .rlayout { gap: 56px; margin-top: 48px; }
        .rmain { display: grid; gap: 96px; min-width: 0; }
        .group { display: grid; gap: 48px; scroll-margin-top: var(--top); }
        .group > .bhead { margin-bottom: -28px; }
        .block { display: grid; gap: 20px; align-content: start; scroll-margin-top: var(--top); }
        .bhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
        .bhead h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
        .bhead .more, .bhead > .btn { margin-left: auto; }
        .prose { color: var(--ink-2); font-size: var(--fs-body); line-height: var(--lh-body); max-width: var(--measure); }
        .prose + .prose { margin-top: 12px; }
        .readmore { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--link); font-size: var(--fs-button); font-weight: var(--fw-button); }
        .readmore .icon { width: 18px; height: 18px; transition: transform 200ms; }
        .readmore[aria-expanded="true"] .icon { transform: rotate(180deg); }

        /* people: who walked it */
        .posts { display: grid; gap: 24px; }
        .wpost { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
        .wpost__head { display: flex; align-items: center; gap: 12px; }
        .wpost__who { display: grid; min-width: 0; line-height: var(--lh-caption); }
        .wpost__who b { font-size: var(--fs-body); font-weight: var(--fw-button); }
        .wpost__who span { color: var(--quiet); font-size: var(--fs-caption); }
        .wpost__head .pill { margin-left: auto; }
        .wpost__head .btn-follow { min-height: 44px; margin-left: 8px; }
        .issues { display: flex; flex-wrap: wrap; gap: 8px; }
        .issue { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: var(--fs-caption); font-weight: var(--fw-button); }
        .wpost__pics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
        .wpost__pics button { aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--bg-soft); cursor: zoom-in; }
        .wpost__pics img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms; }
        .wpost__pics button:hover img { opacity: 0.88; }
        .wpost__pics button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
        .wpost .post__foot { padding-top: 12px; }
        .wpost .post__act { min-height: 44px; }
        .post__act[aria-pressed="true"] { color: var(--cta); }
        .post__act[aria-pressed="true"] .icon { fill: currentColor; }
        .wpost .comments:empty { display: none; }
        .wpost .reply[hidden] { display: none; }
        .wpost--new { animation: arrive-in 500ms var(--ease-out); }
        @keyframes arrive-in { from { opacity: 0; transform: translateY(-8px); } }

        /* trail status */
        .actual { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
        .actual__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 20px 24px; border-top: 1px solid var(--line); }
        .actual__row:first-child { border-top: 0; }
        .actual__row--warn { background: var(--warn-soft); }
        .actual__row b { flex: 1 1 220px; font-size: var(--fs-body); font-weight: var(--fw-button); }
        .actual__row .ico { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); color: var(--warn); }
        .actual__row .when { color: var(--copy); font-size: var(--fs-small); }
        .actual__row .fdot { color: var(--ok); }
        .actual__row .btn { margin-left: auto; }
        .watch[aria-pressed="true"] { border-color: var(--ok); color: var(--ok); }
        .afacts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0; }
        .afacts div { display: grid; }
        .afacts dt { color: var(--quiet); font-size: var(--fs-caption); }
        .afacts dd { margin: 0; font-size: var(--fs-small); font-weight: var(--fw-button); font-variant-numeric: tabular-nums; }

        /* places on the way */
        .places { display: grid; }
        .places li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; align-items: center; padding: 8px 0; font-size: var(--fs-body); font-weight: var(--fw-button); }
        .places li::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
        .places li:first-child::before { top: 50%; }
        .places li:last-child::before { bottom: 50%; }
        .places li[hidden] { display: none; }
        .places .pin { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--bg); border-radius: 50%; background: var(--orange-soft); color: var(--link); }
        .places .pin .icon { width: 17px; height: 17px; }
        .places .pin--water { background: var(--info-soft); color: var(--ink-2); }

        /* accordion rows */
        .acc { border-top: 1px solid var(--line); }
        .acc details { border-bottom: 1px solid var(--line); }
        .acc summary { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); list-style: none; cursor: pointer; }
        .acc summary::-webkit-details-marker { display: none; }
        .acc summary .ico { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-soft); color: var(--ink-2); }
        .acc summary .ico--warn { background: var(--warn-soft); color: var(--warn); }
        .acc summary small { margin-left: auto; color: var(--quiet); font: var(--fw-button) var(--fs-small)/var(--lh-small) var(--font-text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
        .acc summary > .icon:last-child { flex: none; color: var(--quiet); transition: transform 200ms; }
        .acc summary small + .icon { margin-left: 4px; }
        .acc summary span + .icon:last-child { margin-left: auto; }
        .acc details[open] summary > .icon:last-child { transform: rotate(180deg); }
        .acc__body { padding: 0 0 24px 56px; }
        .gear .check-row { align-items: flex-start; min-height: 0; padding: 8px 0; font-size: var(--fs-body); }
        .gear .check-row input { flex: none; margin-top: 2px; }
        .gear .check-row:has(input:checked) span { color: var(--quiet); text-decoration: line-through; }
        .time-rows { display: grid; margin-bottom: 16px; }
        .time-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
        .time-rows b { font-variant-numeric: tabular-nums; }

        /* map, elevation, surface */
        .mapbox { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); }
        .mapbox img { width: 100%; aspect-ratio: 960 / 465; object-fit: cover; }
        .mapbox__label { position: absolute; left: 16px; top: 16px; padding: 8px 12px; border-radius: 999px; background: var(--glass-95); color: var(--ink-fixed); font-size: var(--fs-caption); font-weight: var(--fw-button); box-shadow: 0 1px 6px var(--shade-12); }
        .mapbox__go { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); box-shadow: 0 4px 16px var(--shade-18); }
        .panel { display: grid; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
        .panel h2 { font-size: var(--fs-h4); font-weight: var(--fw-title); line-height: var(--lh-h4); }
        .elev__frame { display: grid; place-items: center; height: 150px; border-radius: var(--r); background: repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 38px), var(--bg-soft); color: var(--copy); font-size: var(--fs-small); }
        .elev__msg { display: inline-flex; align-items: center; gap: 8px; }
        .elev__frame .icon { color: var(--quiet); }
        .stack-bar { display: flex; height: 14px; overflow: hidden; border-radius: 999px; background: var(--bg-soft); }
        .stack-bar i { display: block; min-width: 2px; height: 100%; }
        .unknown, .bar > i.unknown { background: repeating-linear-gradient(135deg, var(--line-2) 0 4px, var(--bg-soft) 4px 8px); }
        .surf { display: grid; gap: 2px; }
        .surf li { display: grid; grid-template-columns: 190px minmax(0, 1fr) 110px; gap: 16px; align-items: center; padding: 8px 0; font-size: var(--fs-small); }
        .surf li > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
        .surf .sw { flex: none; width: 10px; height: 10px; border-radius: 3px; }
        .surf .bar { height: 8px; }
        .surf .bar > i { min-width: 2px; }
        .surf .bar > i.unknown { background: repeating-linear-gradient(135deg, var(--quiet) 0 3px, transparent 3px 6px); opacity: 0.55; }
        .surf b { color: var(--ink); font-weight: var(--fw-button); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
        .surf small { color: var(--quiet); font-size: var(--fs-caption); font-weight: var(--fw-ui); }
        .s-asphalt { background: var(--s-asphalt) !important; }
        .s-compact { background: var(--s-compact) !important; }
        .s-gravel { background: var(--s-gravel) !important; }
        .s-ground { background: var(--s-ground) !important; }
        .s-sand { background: var(--s-sand) !important; }
        .s-improved { background: var(--s-improved) !important; }

        /* getting there */
        .access { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
        .access > div { display: grid; align-content: start; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
        .access__head { display: flex; align-items: center; gap: 12px; }
        .access .ico { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--info-soft); color: var(--ink-2); }
        .access h3 { font-size: var(--fs-h4); font-weight: var(--fw-title); line-height: var(--lh-h4); }
        .access p { color: var(--ink-2); font-size: var(--fs-body); }
        .access__more { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--link); font-size: var(--fs-button); font-weight: var(--fw-button); }
        .access__more .icon { width: 18px; height: 18px; transition: transform 200ms; }
        .access__more[aria-expanded="true"] .icon { transform: rotate(180deg); }
        .access__text p { color: var(--copy); }

        /* photos */
        .photos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
        .photos button { position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--bg-soft); cursor: zoom-in; }
        .photos img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms; }
        .photos button:hover img { opacity: 0.88; }
        .photos button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
        .photos__more { position: absolute; inset: 0; display: grid; place-items: center; background: var(--scrim-50); color: var(--on-accent); font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); }

        /* reviews */
        .cm-empty { color: var(--copy); }
        .cm-form { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
        .cm-form textarea, .textarea { width: 100%; min-height: 88px; padding: 12px 16px; border: 1px solid var(--field-edge); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
        .cm-form textarea:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--orange-a-18); }
        .cm-form .btn { margin-top: 12px; }

        /* aside: route passport */
        .raside { align-self: stretch; min-width: 0; }
        .pp { position: sticky; top: var(--top); display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; box-sizing: border-box; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
        .pp > * { min-width: 0; }
        .pp__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
        .pp__head h2 { font-size: var(--fs-h4); font-weight: var(--fw-title); line-height: var(--lh-h4); }
        .pp__save { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--ink); }
        .pp__save:hover { border-color: var(--ink); }
        .pp__save[aria-pressed="true"] { border-color: var(--cta); background: var(--cta); color: var(--on-accent); }
        .pp__save[aria-pressed="true"] .icon { fill: currentColor; }
        .pp .kv { gap: 12px 16px; }
        .pp__label { margin-bottom: 8px; color: var(--quiet); font-size: var(--fs-caption); font-weight: var(--fw-button); }
        .suits { display: flex; flex-wrap: wrap; gap: 8px; }
        .suit { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-button); }
        .suit .icon { width: 16px; height: 16px; }
        .suit--warn { background: var(--warn-soft); color: var(--warn); }
        .pp__share { display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
        .pp__share > span { margin-right: auto; color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-button); }
        .iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--ink-2); font-size: var(--fs-caption); font-weight: var(--fw-heading); }
        .iconbtn:hover { border-color: var(--ink); color: var(--ink); }
        .iconbtn .icon { width: 17px; height: 17px; }

        /* similar routes, cards as in the catalogue */
        .similar { margin-top: 96px; }
        .similar .bhead { margin-bottom: 28px; }
        .similar .bhead h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
        .sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; }
        .ai-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 96px; padding: 28px 32px; border-radius: var(--r-lg); background: var(--orange-soft); }
        .ai-cta b { font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); }

        .toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: var(--fs-small); font-weight: var(--fw-ui); box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, 12px); transition: opacity 200ms, transform 200ms var(--ease-out); pointer-events: none; }
        .toast.is-on { opacity: 1; transform: translate(-50%, 0); }

        /* dialogs */
        .dlg { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
        .dlg[open] { display: flex; flex-direction: column; }
        .dlg > form { display: flex; flex-direction: column; min-height: 0; }
        .dlg::backdrop { background: var(--scrim-50); }
        .dlg__head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; }
        .dlg__head h2 { font-size: var(--fs-h4); font-weight: var(--fw-title); line-height: var(--lh-h4); }
        .dlg__x { display: grid; flex: none; place-items: center; width: 38px; height: 38px; margin: -4px -8px 0 auto; border: 0; border-radius: 50%; background: none; color: var(--ink-2); }
        .dlg__x:hover { background: var(--bg-soft); }
        .dlg__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 4px 20px 20px; }
        .dlg fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
        .fmts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
        .fmt { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 2px 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color 160ms, background-color 160ms; }
        .fmt:hover { border-color: var(--line-2); }
        .fmt:has(input:checked) { border-color: var(--ink); background: var(--bg-soft); }
        .fmt:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
        .fmt b { font-size: var(--fs-body); font-weight: var(--fw-button); }
        .fmt small { grid-column: 1; color: var(--copy); font-size: var(--fs-caption); line-height: var(--lh-caption); }
        .fmt input { grid-row: 1 / span 2; grid-column: 2; width: 18px; height: 18px; margin: 0; accent-color: var(--cta); }
        .dlg__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
        .opts { display: flex; flex-wrap: wrap; gap: 8px; }
        .opt { position: relative; display: inline-flex; }
        .opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
        .opt span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-button); white-space: nowrap; }
        .opt:hover span { border-color: var(--ink); color: var(--ink); }
        .opt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
        .opt input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
        .steps { display: flex; gap: 8px; padding: 0 20px 8px; }
        .steps li { flex: 1; display: grid; gap: 8px; color: var(--quiet); font-size: var(--fs-caption); font-weight: var(--fw-button); }
        .steps li::before { content: ''; height: 4px; border-radius: 999px; background: var(--line); }
        .steps li.is-done { color: var(--ink-2); }
        .steps li.is-done::before { background: var(--cta); }
        .step { display: grid; gap: 16px; }
        .step h3 { font-size: var(--fs-h4); font-weight: var(--fw-title); line-height: var(--lh-h4); }
        .states { display: grid; gap: 8px; }
        .state { display: grid; grid-template-columns: 12px minmax(0, 1fr) 20px; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; font-size: var(--fs-body); font-weight: var(--fw-button); cursor: pointer; }
        .state:has(input:checked) { border-color: var(--ink); background: var(--bg-soft); }
        .state:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
        .state .fdot { width: 12px; height: 12px; }
        .state input { width: 18px; height: 18px; margin: 0; accent-color: var(--cta); }
        .tone-ok { color: var(--ok); }
        .tone-warn { color: var(--warn); }
        .tone-bad { color: var(--link); }
        .upload { position: relative; display: grid; justify-items: center; gap: 8px; padding: 28px 16px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--copy); font-size: var(--fs-small); text-align: center; cursor: pointer; }
        .upload:hover { border-color: var(--ink); }
        .upload:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
        .upload b { color: var(--ink); font-size: var(--fs-body); font-weight: var(--fw-button); }
        .upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
        .done { display: grid; justify-items: center; gap: 12px; padding: 20px 0 8px; text-align: center; }
        .done .ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
        .done .ico .icon { width: 28px; height: 28px; }
        .done h3 { font-size: var(--fs-h4); font-weight: var(--fw-title); line-height: var(--lh-h4); }
        .done p { color: var(--copy); }

        /* lightbox */
        .lb { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--lb-paper); color: var(--on-accent); }
        .lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
        .lb::backdrop { background: var(--lb-veil); }
        .lb__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
        .lb__fig { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; padding: 0 72px; }
        .lb__fig img { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 6px; }
        .lb__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--lb-btn); color: var(--on-accent); }
        .lb__btn:hover { background: var(--lb-btn-hover); }
        .lb__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
        .lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
        .lb__prev { left: 14px; }
        .lb__next { right: 14px; }
        .lb__bottom { height: 24px; }

        @media (pointer: coarse) {
            .badge, .people-link, .readmore, .opt span, .wpost__who a, .crumbs a, .crumbs span, .ftr a, .bhead .more { min-height: 44px; }
            .badge, .wpost__who a, .crumbs span { display: inline-flex; align-items: center; }
            .ftr a { align-items: center; }
            .iconbtn, .pp__save, .dlg__x { width: 44px; height: 44px; }
            .ftr a { display: flex !important; justify-content: flex-start; }
            .wpost__who { line-height: var(--lh-small); }
        }
        @media (max-width: 1180px) {
            .access { grid-template-columns: minmax(0, 1fr); gap: 16px; }
            .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .sgrid .rc:nth-child(3) { display: none; }
        }
        @media (max-width: 1023px) {
            .raside { align-self: start; }
            .pp { position: static; }
        }
        @media (max-width: 767px) {
            :root { --navh: 48px; --top: calc(60px + var(--navh) + 12px); }
            .mosaic { display: flex; height: 280px; margin-inline: calc(var(--gutter) * -1); border-radius: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 4px; }
            .mosaic::-webkit-scrollbar { display: none; }
            .mosaic__tile { flex: 0 0 86%; scroll-snap-align: start; }
            .mosaic__tile:first-child { flex-basis: 100%; }
            .mosaic__more { display: none; }
            .mosaic__all { right: 0; bottom: 14px; }
            .rhero { margin-top: 24px; }
            .passport { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
            .passport > div { padding: 12px 16px; }
            .passport > div:nth-child(3) { border-left: 0; }
            .passport > div:nth-child(n+3) { border-top: 1px solid var(--line); }
            .acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .acts .act--wide, .acts [data-download] { grid-column: 1 / -1; }
            .acts [data-download] { order: -1; }
            .acts .btn { width: 100%; padding: 0 12px; }
            .secnav { top: 60px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
            .secnav a { padding: 0 12px; font-size: var(--fs-small); }
            .secnav .icon { display: none; }
            .rmain { gap: 56px; }
            .group { gap: 40px; }
            .wpost, .panel, .access > div, .pp { padding: 20px; }
            .wpost__head { flex-wrap: wrap; }
            .wpost__head .pill { margin-left: 52px; order: 3; }
            .actual__row { padding: 16px 20px; }
            .acc__body { padding-left: 0; }
            .surf li { grid-template-columns: minmax(0, 1fr) 100px; gap: 4px 12px; }
            .surf li .bar { grid-column: 1 / -1; grid-row: 2; }
            .photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .photos button:nth-child(n+10) { display: none; }
            .similar, .ai-cta { margin-top: 56px; }
            .sgrid { display: flex; gap: 16px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
            .sgrid::-webkit-scrollbar { display: none; }
            .sgrid .rc { flex: 0 0 82%; scroll-snap-align: start; }
            .sgrid .rc:nth-child(3) { display: grid; }
            .ai-cta { padding: 24px; }
            .ai-cta .btn { width: 100%; }
            .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
            .dlg { width: 100%; max-width: none; max-height: 90dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
            .dlg__foot .btn { flex: 1; }
            .lb__fig { padding: 0 8px; }
            .lb__prev, .lb__next { top: auto; bottom: 8px; transform: none; }
            .lb__bottom { height: 70px; }
        }
    /* Feed cards for the route page: author header, status and issue chips, quote panel, photo carousel, reactions, comments.
   Copied from feed.html (not edited there); tokens only. Shared by pages that show a feed card. */
.fp {position: relative; display: block; padding: 0; overflow: hidden; scroll-margin-top: 140px;}
.fp:focus {outline: none;}
.fp:focus-visible {outline: 2px solid var(--focus); outline-offset: 2px;}
.fp__pad {display: grid; gap: 12px; padding: 24px 24px 0;}
.fp__head {display: flex; align-items: center; gap: 12px; min-width: 0;}
.fp__head > .avatar {width: 44px; height: 44px;}
.fp__who {display: grid; min-width: 0; line-height: var(--lh-small);}
.fp__name {display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: var(--fs-body); font-weight: var(--fw-button);}
a.fp__name:hover {text-decoration: underline;}
.fp__who > span {color: var(--quiet); font-size: var(--fs-caption);}
.fp__side {display: flex; flex: none; align-items: center; gap: 4px; margin-left: auto;}
.fp__title {font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-title); letter-spacing: var(--ls-heading); line-height: var(--lh-h4);}
.fp__title a:hover {text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px;}
.fp__text {color: var(--ink-2); font-size: var(--fs-body);}
.avatar--tt {border: 1px solid var(--line); background: var(--chip-fixed);}
.avatar--tt img {width: 62%; height: 62%; border-radius: 0; object-fit: contain;}
.ph {position: relative; display: block; width: 100%; height: 100%; min-height: 0; padding: 0; overflow: hidden; border: 0; background: var(--bg-soft); cursor: zoom-in;}
.ph img {width: 100%; height: 100%; object-fit: cover;}
.ph::after {content: ""; position: absolute; inset: 0; background: transparent; transition: background-color 160ms; pointer-events: none;}
.ph:hover::after {background: var(--scrim-12);}
.ph:focus-visible {outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 0;}
.car {position: relative; margin-top: 20px;}
.car__track {display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;}
.car__track::-webkit-scrollbar {display: none;}
.car__track > * {flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 9; scroll-snap-align: start;}
.car__btn {position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; transform: translateY(-50%); border: 0; border-radius: 50%; background: var(--glass-95); color: var(--ink-fixed); box-shadow: 0 2px 12px var(--shade-25); transition: opacity 160ms;}
.car__btn:hover {background: var(--chip-fixed);}
.car__btn[disabled] {visibility: hidden;}
.car__btn--prev {left: 14px;}
.car__btn--next {right: 14px;}
.car__btn--prev .icon {transform: rotate(180deg);}
.fp__foot {display: flex; align-items: center; gap: 4px; margin: 16px 16px 0; padding: 8px 0 12px; border-top: 1px solid var(--line);}
.post__act[aria-pressed="true"] {color: var(--cta);}
.post__act[aria-pressed="true"] .icon {fill: currentColor;}
.post__act--icon {width: 40px; padding: 0; justify-content: center;}
.post__act .num {font-variant-numeric: tabular-nums;}
.views {display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 0 12px; color: var(--quiet); font-size: var(--fs-small); font-variant-numeric: tabular-nums; white-space: nowrap;}
.views .icon {width: 17px; height: 17px;}
.fp__foot .btn {margin: 0 8px 0 auto;}
.fp__comments {margin: 0 24px; padding: 16px 0 20px;}
.comment--reply {margin-left: 40px;}
.comment__bubble {color: var(--ink-2);}
.comment__bubble b {color: var(--ink);}
.send-btn {display: grid; flex: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cta); color: var(--on-accent);}
.send-btn:hover {background: var(--cta-hover);}
.send-btn .icon {width: 18px; height: 18px;}
.no-comments {color: var(--quiet); font-size: var(--fs-small);}
.status-line {display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--copy); font-size: var(--fs-small);}
.tag .icon {width: 14px; height: 14px;}
@media (pointer: coarse) {
    .post__act--icon {width: 44px;}
    .send-btn {width: 44px; height: 44px;}
    .reply .input {min-height: 44px;}
    .fp__head > a.avatar {width: 44px; height: 44px;}
    .fp__name {padding-block: 12px; margin-block: -12px;}
    .fp__title a {padding-block: 12px; margin-block: -12px;}
}
@media (max-width: 767px) {
    .fp__pad {padding: 20px 16px 0;}
    .fp__comments {margin: 0 16px;}
    .fp__foot {margin-inline: 8px;}
    .car__btn {display: none;}
}
.fp__excerpt {display: -webkit-box; overflow: hidden; color: var(--ink-2); font-size: var(--fs-body); -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
.fp__read {justify-self: start;}
@media (pointer: coarse) {
    .post__act {min-width: 44px; justify-content: center;}
}
.issues {display: flex; flex-wrap: wrap; gap: 8px;}
.issue {display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--warn-soft); color: var(--ink); font-size: var(--fs-small); font-weight: var(--fw-ui);}
.issue .icon {width: 16px; height: 16px; color: var(--warn);}
.kind {display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: var(--fs-caption); font-weight: var(--fw-ui); white-space: nowrap;}
.cover {position: relative; aspect-ratio: 16 / 9; margin-top: 16px; overflow: hidden;}
.fp__cta {justify-self: start;}
.car__track:focus-visible {outline: 3px solid var(--focus); outline-offset: -3px;}
.fp__text--clamp {display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
.fp__text--clamp.is-open {display: block;}
.expand {justify-self: start; padding: 0; border: 0; background: none;}
@media (max-width: 767px) {
    .fp__pad > .fp__head {display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;}
    .fp__pad > .fp__head .fp__side {display: contents;}
    .fp__pad > .fp__head .kind {grid-column: 2; grid-row: 2; justify-self: start;}
    .fp__pad > .fp__head .follow-ico {grid-column: 3; grid-row: 2;}
    .fp__pad > .fp__head .tag {grid-column: 2; grid-row: 3; justify-self: start;}
}
.cover, .cover .ph, .cover img {border-radius: 0;}
.coverbox {position: relative; margin-top: 16px;}
.coverbox .cover {margin-top: 0;}
.car--chk {margin-top: 16px;}
.car--chk .car__track {gap: 4px;}
.car--chk .car__track > * {flex: 0 0 calc(40% - 3px); aspect-ratio: 4 / 3;}
@media (max-width: 767px) {
    .car--chk .car__track > * {flex-basis: 76%;}
}
.car[data-car] {position: relative; container-type: inline-size;}
.car[data-car] .car__track {--maxh: 560px; --h: min(var(--maxh), calc(80cqw / var(--cr1, 1.5))); position: relative; display: flex; gap: 8px; padding-inline: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; scroll-behavior: smooth; scrollbar-width: none; cursor: grab;}
.car[data-car] .car__track::-webkit-scrollbar {display: none;}
.car[data-car] .car__track.is-drag {scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none;}
.car[data-car] .car__track > * {flex: 0 0 auto; width: calc(var(--h) * var(--cr, 1.5)); height: var(--h); aspect-ratio: auto; scroll-snap-align: start; border-radius: 0;}
.car[data-car] .car__track > :last-child {scroll-snap-align: end;}
.car[data-car] .car__track img {width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none;}
.car[data-car] .car__track .rt {border-radius: var(--r-sm);}
.car[data-car] .car__track .rt img {object-fit: cover;}
.car[data-car] .car__btn {top: 50%; width: 44px; height: 44px; margin: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); transform: translateY(-50%); transition: opacity 160ms;}
.js .car[data-car] .car__btn {opacity: 0;}
.js .car[data-car]:hover .car__btn, .js .car[data-car]:focus-within .car__btn {opacity: 1;}
.car[data-car] .car__btn:hover {background: var(--bg-soft);}
.car[data-car] .car__btn:focus-visible {outline: 3px solid var(--focus); outline-offset: 2px;}
.car[data-car] .car__btn--prev {left: 12px;}
.car[data-car] .car__btn--next {right: 12px;}
@media (max-width: 767px) {
    .car[data-car] .car__track {--maxh: 420px; padding-inline: 0; scroll-padding-inline: 0;}
}
@media (hover: none) {
    .car[data-car] .car__btn {display: none;}
}
@media (prefers-reduced-motion: reduce) {
    .car[data-car] .car__track {scroll-behavior: auto;}
}
.post__act--ok {border: 1px solid transparent;}
.post__act--ok[aria-pressed="true"] {border-color: var(--ok); background: var(--ok-soft); color: var(--ok) !important;}
.post__act--ok[aria-pressed="true"] .icon {fill: none;}
.chk-quote {display: grid; gap: 12px; margin: 0; padding: 16px 16px 28px; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-soft);}
.chk-quote .fp__head {gap: 12px;}
.chk-quote .fp__head > .avatar {width: 40px; height: 40px;}
.chk-quote .fp__side {margin-left: 0;}
.chk-quote .expand {margin-left: auto;}
.chk-text {display: -webkit-box; overflow: hidden; margin: 0; color: var(--ink-2); font-size: var(--fs-body); -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
.chk-text.is-open {display: block;}
@media (max-width: 767px) {
    .chk-quote .fp__head {flex-wrap: wrap;}
    .chk-quote .expand {flex-basis: 100%; margin-left: 0; justify-content: flex-start;}
}
.reply {flex-wrap: wrap;}
.reply .input {flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--field-edge); border-radius: var(--r-sm);}
.reply .input:focus-visible {outline: 3px solid var(--focus); outline-offset: 2px;}
.comment__photos {display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px;}
.comment__photos .ph {width: 72px; height: 72px; border-radius: var(--r-sm);}
.send-btn:disabled {background: var(--bg-soft); color: var(--quiet); cursor: not-allowed;}
.status-line .act-chip {align-self: center;}
.comment__acts {display: flex; align-items: center; min-height: 44px; margin: 0 0 -12px -12px;}
.comment__acts .comment__act {padding: 0 12px;}
.comment__act {min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--copy); font-size: var(--fs-caption); font-weight: var(--fw-button);}
.comment__act:hover {color: var(--ink);}
.comment__act:focus-visible {outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 8px;}
.comment__bubble {position: relative;}
.comment__bubble b {padding-right: 96px;}
.comment__tools {position: absolute; top: 0; right: 2px; display: flex; transition: opacity 160ms;}
.js .comment__tools {opacity: 0;}
.js .comment:hover .comment__tools, .js .comment:focus-within .comment__tools {opacity: 1;}
@media (hover: none) {
    .js .comment__tools {opacity: 1;}
}
.comment__tools .comment__act {display: grid; place-items: center; width: 44px; height: 44px; margin: -8px 0; padding: 0;}
.comment__like {display: inline-flex; align-items: center; gap: 4px;}
.comment__like .icon {width: 16px; height: 16px;}
.comment__like[aria-pressed="true"] {color: var(--cta);}
.comment__like[aria-pressed="true"] .icon {fill: currentColor;}
.comment__photos {display: block; max-width: 420px;}

        /* ======== the route page, second pass: map, profile, conditions, people ======== */
        :root { --s-concrete: #5b6877; --map-h: clamp(380px, 46vw, 600px); }
        :root[data-theme="dark"] { --s-concrete: #9aa7b6; }
        .rt .wrap { max-width: 1520px; }
        .rt-layout { grid-template-columns: minmax(0, 1fr) 360px; }
        .rt-hero { min-height: 220px; }
        .rt-hero h1 { min-height: calc(var(--fs-h1) * var(--lh-h1) * 2); }
        .rt-head { display: grid; gap: 16px; margin-top: 32px; }
        .by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--copy); font-size: var(--fs-small); }
        .by a { color: var(--ink); font-weight: var(--fw-button); }
        .by a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
        .by .avatar { width: 32px; height: 32px; }
        .by .btn-follow { min-height: 44px; }
        .sect-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
        .sect-h h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
        .sect-h .count-badge { margin-right: auto; }
        .sect-h .more, .sect-h .linkbtn { margin-left: auto; }
        .sec-block { display: grid; gap: 24px; align-content: start; scroll-margin-top: var(--top); }
        .rmain > .sec-block, .rmain > section { scroll-margin-top: var(--top); }
        .lead-p { color: var(--ink); font-size: var(--fs-body-lg); line-height: var(--lh-body); max-width: var(--measure); }
        .suit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
        .sg { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: var(--fs-small); }
        .sg b { font-weight: var(--fw-button); }
        .sg small { display: block; color: var(--quiet); font-size: var(--fs-caption); }
        .sg .fdot { color: var(--quiet); }
        .sg--ok .fdot { color: var(--ok); }
        .sg--warn .fdot { color: var(--warn); }
        .places li { font-weight: var(--fw-button); }
        .places li small { margin-left: auto; color: var(--quiet); font-size: var(--fs-caption); font-weight: var(--fw-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
        .places li { grid-template-columns: 32px minmax(0, 1fr) auto; }

        /* map */
        .mapwrap { position: relative; height: var(--map-h); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--map-paper); }
        .mapcanvas { position: absolute; inset: 0; }
        .mapfail { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--copy); font-size: var(--fs-small); text-align: center; }
        .maptop, .mapbot { position: absolute; left: 16px; right: 16px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; pointer-events: none; }
        .maptop { top: 16px; justify-content: space-between; }
        .mapbot { bottom: 16px; }
        .maptop > *, .mapbot > * { pointer-events: auto; }
        .mseg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass-95); box-shadow: 0 1px 6px var(--shade-12); }
        .mseg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--copy-fixed); font-size: var(--fs-small); font-weight: var(--fw-button); }
        .mseg button[aria-pressed="true"] { background: var(--ink-fixed); color: var(--on-accent); }
        .mseg button:focus-visible, .mbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
        .mctl { display: grid; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--glass-95); box-shadow: 0 1px 6px var(--shade-12); }
        .mbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--glass-95); color: var(--ink-fixed); font-size: var(--fs-small); font-weight: var(--fw-button); box-shadow: 0 1px 6px var(--shade-12); transition: background-color 160ms, color 160ms; }
        .mctl .mbtn { padding: 0; border-radius: var(--r-sm); box-shadow: none; background: none; }
        .mbtn .icon { width: 18px; height: 18px; }
        .mbtn[aria-pressed="true"] { background: var(--ink-fixed); color: var(--on-accent); }
        .mbtn:hover { background: var(--glass-90); }
        .mbtn[aria-pressed="true"]:hover { background: var(--ink-fixed); }
        .mcredit { position: absolute; right: 8px; bottom: 4px; z-index: 2; padding: 0 8px; border-radius: 8px; background: var(--glass-85); color: var(--quiet-fixed); font-size: var(--fs-caption-tight); }
        .mcredit a { text-decoration: underline; }
        .mk { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--glass-95); border-radius: 50%; background: var(--cta); color: var(--on-accent); font-size: var(--fs-caption); font-weight: var(--fw-button); box-shadow: 0 1px 6px var(--shade-25); }
        .mk--b { background: var(--ink-fixed); }
        .mk--cur { width: 16px; height: 16px; border-width: 3px; background: var(--orange); pointer-events: none; }
        .mk--wp { width: 12px; height: 12px; border-width: 2px; background: var(--ink-fixed); cursor: pointer; }
        .maplibregl-popup-content { padding: 12px 16px; border-radius: var(--r-sm); color: var(--ink-fixed); font: var(--fw-ui) var(--fs-small)/var(--lh-small) var(--font-text); }
        .maplibregl-popup-content b { display: block; font-weight: var(--fw-button); }
        .maplibregl-popup-content small { color: var(--quiet-fixed); font-size: var(--fs-caption); }
        .maplibregl-canvas { outline: none; }
        .mfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
        .mfoot .more { margin-left: auto; }
        .days { display: inline-flex; flex-wrap: wrap; gap: 8px; }
        .days button { min-height: 44px; padding: 0 16px; border: 1px solid var(--field-edge); border-radius: 999px; background: none; color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-button); font-variant-numeric: tabular-nums; }
        .days button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
        .wplist { display: grid; gap: 4px; }
        .wplist button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font-size: var(--fs-small); text-align: left; }
        .wplist button:hover { background: var(--bg-soft); }
        .wplist .num { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); color: var(--copy); font-size: var(--fs-caption); font-weight: var(--fw-button); }
        .wplist [hidden] { display: none; }

        /* elevation */
        .elev { display: grid; gap: 16px; }
        .elev__read { display: flex; flex-wrap: wrap; gap: 4px 24px; min-height: 28px; color: var(--ink-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
        .elev__read b { color: var(--ink); font-weight: var(--fw-button); }
        .elev__box { position: relative; height: 216px; }
        .elev__box svg { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
        .elev__box:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--r-sm); }
        .ev-grid { stroke: var(--line); stroke-width: 1; }
        .ev-axis { fill: var(--quiet); font: var(--fw-ui) var(--fs-caption-tight) var(--font-text); }
        .ev-area { fill: var(--orange-a-18); }
        .ev-ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
        .ev-ln--easy { stroke: var(--ok); }
        .ev-ln--mid { stroke: var(--warn); }
        .ev-ln--hard { stroke: var(--link); }
        .ev-cur { stroke: var(--ink); stroke-width: 1.5; }
        .ev-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
        .ev-day { stroke: var(--field-edge); stroke-dasharray: 4 4; }
        .sc-2 { fill: var(--s-improved); } .sc-3 { fill: var(--s-asphalt); } .sc-4 { fill: var(--s-concrete); } .sc-8 { fill: var(--s-compact); }
        .sc-9, .sc-10 { fill: var(--s-gravel); } .sc-11, .sc-12 { fill: var(--s-ground); } .sc-13, .sc-14 { fill: var(--s-sand); } .sc-200, .sc-1, .sc-5 { fill: var(--line-2); }
        .legend { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--quiet); font-size: var(--fs-caption); }
        .legend span { display: inline-flex; align-items: center; gap: 8px; }
        .legend i { width: 16px; height: 4px; border-radius: 999px; background: var(--line-2); }
        .legend .l-easy { background: var(--ok); } .legend .l-mid { background: var(--warn); } .legend .l-hard { background: var(--link); }
        .estats { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0; }
        .estats div { display: grid; }
        .estats dt { color: var(--quiet); font-size: var(--fs-caption); }
        .estats dd { margin: 0; font: var(--fw-heading) var(--fs-h4)/var(--lh-h4) var(--font-display); font-variant-numeric: tabular-nums; }
        .meter { display: grid; gap: 16px; }
        .meter__bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; max-width: 360px; }
        .meter__bar i { display: block; height: 8px; border-radius: 999px; background: var(--line-2); }
        .meter--easy .meter__bar i:nth-child(1), .meter--medium .meter__bar i:nth-child(-n+2), .meter--hard .meter__bar i { background: var(--link); }
        .meter__t { display: flex; align-items: baseline; gap: 12px; }
        .meter__t b { font: var(--fw-heading) var(--fs-h3)/var(--lh-h3) var(--font-display); }
        .meter__f { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
        .meter__f div { display: grid; }
        .meter__f dt { color: var(--quiet); font-size: var(--fs-caption); }
        .meter__f dd { margin: 0; font-size: var(--fs-small); font-weight: var(--fw-button); font-variant-numeric: tabular-nums; }

        /* conditions */
        .cstat { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--bg-soft); }
        .cstat--warn { background: var(--warn-soft); }
        .cstat--ok { background: var(--ok-soft); }
        .cstat .ico { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--ink-2); }
        .cstat--warn .ico { color: var(--warn); } .cstat--ok .ico { color: var(--ok); }
        .cstat div { display: grid; flex: 1 1 240px; }
        .cstat b { font-size: var(--fs-body); font-weight: var(--fw-button); }
        .cstat span.sub { color: var(--copy); font-size: var(--fs-small); }
        .cstat .btn { margin-left: auto; }
        .crow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 44px; font-size: var(--fs-small); }
        .crow .fdot { color: var(--ok); }
        .crow b { font-weight: var(--fw-button); }
        .crow .btn { margin-left: auto; }
        .vocab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
        .vocab > span:first-child { color: var(--quiet); font-size: var(--fs-small); }
        .tl { position: relative; display: grid; gap: 0; }
        .tl > li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; padding: 12px 0; }
        .tl > li::before { content: ''; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
        .tl > li:first-child::before { top: 24px; }
        .tl > li:last-child::before { bottom: calc(100% - 24px); }
        .tl > li:only-child::before { display: none; }
        .tl .pt { position: relative; z-index: 1; width: 24px; height: 24px; border: 4px solid var(--bg); border-radius: 50%; background: var(--quiet); }
        .tl .pt--ok { background: var(--ok); } .tl .pt--warn { background: var(--warn); }
        .tl__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
        .tl__top time { color: var(--copy); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
        .tl__top b { font-size: var(--fs-small); font-weight: var(--fw-button); }
        .tl .issues { margin-top: 8px; }
        .weather { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 96px; }
        .wd { display: grid; align-content: center; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
        .wd b { font-weight: var(--fw-button); }
        .wd span { color: var(--copy); }
        .wd--skel { color: var(--quiet); }
        .acc summary small { margin-left: auto; }
        .acc__body ul { display: grid; gap: 8px; }
        .acc__body ul li { position: relative; padding-left: 16px; color: var(--ink-2); }
        .acc__body ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

        /* people */
        .wpost .avatar { flex: none; }
        .wpost__head .btn-follow { margin-left: 8px; }
        .wpost__who a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
        .wpost .post__act { min-height: 44px; }
        .empty-card { display: grid; justify-items: start; gap: 16px; padding: 32px; border: 1px dashed var(--field-edge); border-radius: var(--r-lg); color: var(--copy); }
        .empty-card b { color: var(--ink); font-size: var(--fs-body); font-weight: var(--fw-button); }
        .art { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
        .art:hover { border-color: var(--field-edge); }
        .art img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r); object-fit: cover; }
        .art b { display: block; font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); }
        .art span { color: var(--copy); font-size: var(--fs-small); }
        .art__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }

        /* near */
        .access .acc-step { display: grid; gap: 8px; }
        .nearbar { display: flex; flex-wrap: wrap; gap: 8px; }
        .nearbar button { min-height: 44px; padding: 0 16px; border: 1px solid var(--field-edge); border-radius: 999px; background: none; color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-button); }
        .nearbar button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
        .plist { display: grid; }
        .plist li { border-top: 1px solid var(--line); }
        .plist li:first-child { border-top: 0; }
        .plist button { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 16px; align-items: center; width: 100%; min-height: 56px; padding: 8px 0; border: 0; background: none; color: var(--ink); font-size: var(--fs-small); text-align: left; }
        .plist button:hover b { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
        .plist .pin { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-2); }
        .plist .pin .icon { width: 16px; height: 16px; }
        .plist b { display: block; font-weight: var(--fw-button); }
        .plist small { color: var(--quiet); font-size: var(--fs-caption); }
        .plist em { color: var(--quiet); font-size: var(--fs-caption); font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
        .plist [hidden] { display: none; }
        .stay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 24px; border-radius: var(--r-lg); background: var(--bg-soft); }
        .stay b { margin-right: auto; font-weight: var(--fw-button); }
        .tr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
        .tr b { margin-right: auto; font-weight: var(--fw-button); }

        /* reviews: the feed's comment */
        .cm { display: grid; gap: 20px; }
        .cm-list { display: grid; gap: 20px; }
        .comment--reply { margin-left: 40px; }
        .comment__bubble { position: relative; color: var(--ink-2); }
        .comment__bubble b { padding-right: 96px; color: var(--ink); }
        .comment__tools { position: absolute; top: 0; right: 2px; display: flex; }
        .comment__act { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--copy); font-size: var(--fs-caption); font-weight: var(--fw-button); }
        .comment__act:hover { color: var(--ink); }
        .comment__act:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 8px; }
        .comment__tools .comment__act { justify-content: center; width: 44px; height: 44px; margin: -8px 0; padding: 0; }
        .comment__acts { display: flex; align-items: center; min-height: 44px; margin: 0 0 -12px -12px; }
        .comment__like .icon { width: 16px; height: 16px; }
        .comment__like[aria-pressed="true"] { color: var(--cta); }
        .comment__like[aria-pressed="true"] .icon { fill: currentColor; }
        .comment__photos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
        .comment__photos img { width: 72px; height: 72px; border-radius: var(--r-sm); object-fit: cover; }
        .comment__bubble .pill { margin-left: 8px; }
        .cmf { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
        .cmf__box { display: flex; flex-wrap: wrap; gap: 8px; }
        .cmf textarea { flex: 1 1 100%; min-height: 88px; padding: 12px 16px; border: 1px solid var(--field-edge); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
        .cmf textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
        .attach { position: relative; display: grid; flex: none; place-items: center; width: 44px; height: 44px; overflow: hidden; border: 1px solid var(--field-edge); border-radius: var(--r-sm); color: var(--ink-2); cursor: pointer; }
        .attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
        .attach:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
        .thumbs { display: flex; flex: 0 0 100%; flex-wrap: wrap; gap: 8px; }
        .thumbs img { width: 72px; height: 72px; border-radius: var(--r-sm); object-fit: cover; }
        .cmf .send { margin-left: auto; }
        .reply-to { display: flex; flex: 0 0 100%; align-items: center; gap: 8px; color: var(--copy); font-size: var(--fs-small); }

        /* the right card */
        .pp { gap: 20px; }
        .pp .btn { width: 100%; }
        .pp__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
        .pp__row .btn { padding: 0 8px; }
        .pp__tools { display: grid; grid-template-columns: minmax(0, 1fr) 38px 38px; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
        .pp__tools > span { color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-button); }
        .pp__tools .pp__tool-icon { width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; aspect-ratio: 1; box-sizing: border-box; }
        .pp__tools .pp__embed-button { grid-column: 1 / -1; width: 100%; min-width: 0; }
        .route-embed-dialog__body { display: grid; gap: 12px; }
        .route-embed-dialog__body p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); line-height: var(--lh-small); }
        .route-embed-dialog__preview { display: block; width: 100%; height: 320px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
        .route-embed-dialog__body label { font-size: var(--fs-small); font-weight: var(--fw-button); }
        .route-embed-dialog__body textarea { box-sizing: border-box; width: 100%; min-height: 96px; padding: 12px; resize: vertical; border: 1px solid var(--field-edge); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-small); }
        .route-embed-dialog__body .btn { width: auto; justify-self: start; }
        .route-embed-dialog__status { min-height: 1em; color: var(--ink-2); font-size: var(--fs-small); }
        .pp .kv { gap: 12px 16px; }
        .pp__who { display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); }
        .pp__who b { display: block; font-weight: var(--fw-button); }
        .pp__who small { color: var(--quiet); font-size: var(--fs-caption); }
        .pp__who .btn-follow { margin-left: auto; }
        .menu--pop > .iconbtn { list-style: none; cursor: pointer; }
        .menu--pop > .iconbtn::-webkit-details-marker { display: none; }
        .menu--pop .menu__list { right: 0; bottom: calc(100% + 8px); top: auto; min-width: 232px; }
        .menu--pop .menu__list a, .menu--pop .menu__list button { min-height: 44px; }
        .embed { display: grid; gap: 12px; }
        .embed textarea { width: 100%; min-height: 128px; padding: 12px 16px; border: 1px solid var(--field-edge); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: var(--fw-text) var(--fs-small)/var(--lh-small) var(--font-text); }

        /* similar: a carousel of the new route card */
        .sim-nav { display: flex; gap: 8px; margin-left: auto; }
        .sim-nav .iconbtn { width: 44px; height: 44px; }
        .similar .sgrid { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; scrollbar-width: none; padding-bottom: 8px; }
        .similar .sgrid::-webkit-scrollbar { display: none; }
        .similar .sgrid .rc { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
        .similar .sgrid .rc:nth-child(3) { display: grid; }
        .safety { padding: 16px 24px; border-radius: var(--r); background: var(--bg-soft); }

        /* the phone's action bar sits right above the tab bar */
        .mbar { display: none; }

        /* the report window */
        .issue-pick { display: flex; flex-wrap: wrap; gap: 8px; }

        @media (max-width: 1180px) {
            .rt-layout { grid-template-columns: minmax(0, 1fr); }
            .similar .sgrid .rc { flex-basis: calc((100% - 24px) / 2); }
        }
        @media (max-width: 1023px) {
            .suit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        @media (max-width: 767px) {
            .rt-head { margin-top: 24px; }
            .suit-grid { grid-template-columns: minmax(0, 1fr); }
            .mapwrap { height: 440px; border-radius: var(--r); }
            .maptop { top: 8px; left: 8px; right: 8px; }
            .mapbot { bottom: 24px; left: 8px; right: 8px; }
            .mseg button { padding: 0 12px; }
            .mbtn { padding: 0 12px; }
            .elev__box { height: 192px; }
            .weather { grid-template-columns: minmax(0, 1fr); }
            .art { grid-template-columns: minmax(0, 1fr); padding: 12px; }
            .comment--reply { margin-left: 24px; }
            .cstat { padding: 16px; }
            .similar .sgrid { gap: 16px; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); scroll-padding-inline: var(--edge); }
            .similar .sgrid .rc { flex-basis: 80%; }
            .sim-nav { display: none; }
            .stay, .tr { padding: 16px; }
            .mbar { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 54; display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 8px; padding: 8px 16px; border-top: 1px solid var(--line); background: var(--surface); }
            .mbar .btn { padding: 0 8px; }
            .mbar .iconbtn { width: 44px; height: 44px; }
            .rt { padding-bottom: 64px; }
            .toast { bottom: calc(136px + env(safe-area-inset-bottom)); }
        }
        @media print {
            .hdr, .ftr, .tabbar, .secnav, .raside, .mbar, .toast, .similar, .ai-cta, .mapwrap, .mfoot, .sim-nav, .cmf { display: none !important; }
            .rt-layout { display: block; }
            body { background: none; }
        }

        .linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--link); font-size: var(--fs-button); font-weight: var(--fw-button); }
        .linkbtn:hover { text-decoration: underline; }
        .plain { display: grid; gap: 8px; }
        .plain li { display: grid; font-size: var(--fs-small); }
        .plain b { font-weight: var(--fw-button); }
        .plain span { color: var(--copy); }
        .wplist .readmore { width: auto; color: var(--link); }
        .rt-head { gap: 12px; }
        .crow .linkbtn { margin-left: auto; }

        .rmain { grid-template-columns: minmax(0, 1fr); }
        .sect-h { margin-bottom: -8px; }
        .sec-block > h3.h4 { margin-top: 16px; margin-bottom: -8px; }
        .maplibregl-desktop-message, .maplibregl-mobile-message, .maplibregl-cooperative-gesture-screen { background: var(--scrim-80); color: var(--on-accent); }
        .maplibregl-desktop-message, .maplibregl-mobile-message { padding: 8px 16px; border-radius: var(--r-sm); }

        .rt-head { min-height: 349px; align-content: start; }
        @media (min-width: 768px) { .rt-head { min-height: 263px; } }

        .rt:not(.is-ready) .wrap { visibility: hidden; min-height: 2400px; }

        .mseg button { min-height: 44px; }
        .credits summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; }

        .issues, .vocab { min-width: 0; }
        .issues { list-style: none; margin: 0; padding: 0; }
        .issue { display: inline-flex; align-items: flex-start; gap: 8px; max-width: 100%; min-height: 32px; padding: 8px 12px; border-radius: 16px; line-height: var(--lh-small); overflow-wrap: anywhere; }
        .issue .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
        .issue span { min-width: 0; }

        /* ---- one block at a time: tab panels and the workbench ---- */
        .tp { display: grid; gap: 32px; align-content: start; padding-top: 32px; }
        .tp[hidden], .rt [hidden] { display: none; }
        .tp .similar, .tp .ai-cta { margin-top: 0; }
        .ov-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
        .ov-row > .panel { align-content: start; }
        .ov-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
        .wb { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; --map-h: clamp(440px, calc(100vh - 252px), 680px); }
        .wb__map { position: sticky; top: var(--top); }
        .wb__side { display: grid; gap: 24px; min-width: 0; }
        .cd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
        .rp-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
        .seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); }
        .seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--copy); font-size: var(--fs-small); font-weight: var(--fw-button); cursor: pointer; }
        .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
        .seg .count { color: inherit; opacity: 0.72; font-variant-numeric: tabular-nums; }
        .kf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 0; border-block: 1px solid var(--line); }
        .kf div { display: grid; gap: 4px; }
        .kf dt { color: var(--quiet); font-size: var(--fs-caption); }
        .kf dd { font: var(--fw-title) var(--fs-small)/var(--lh-small) var(--font-display); font-variant-numeric: tabular-nums; }
        .mini { display: grid; gap: 8px; color: var(--ink); }
        .mini__svg { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--bg-soft); }
        .mini > span { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: var(--fs-small); font-weight: var(--fw-button); }
        .mini:hover > span { color: var(--cta); }
        .mini__day { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
        .mini--sel .mini__day { opacity: 0.3; }
        .mini--sel .mini__day.is-on { opacity: 1; }
        .mini__a { fill: var(--ok); stroke: var(--bg); stroke-width: 2; }
        .mini__b { fill: var(--ink); stroke: var(--bg); stroke-width: 2; }
        .mini__cur { fill: var(--bg); stroke: var(--ink); stroke-width: 3; }
        .pp { gap: 16px; padding: 20px; }
        @media (max-width: 1359px) {
            .wb { grid-template-columns: minmax(0, 1fr); --map-h: clamp(380px, 56vw, 560px); }
            .wb__map { position: static; }
            .ov-cols, .rp-grid { grid-template-columns: minmax(0, 1fr); }
        }
        @media (max-width: 1023px) {
            .cd-grid, .ov-row { grid-template-columns: minmax(0, 1fr); }
        }
        @media (max-width: 767px) {
            .tp { gap: 24px; padding-top: 24px; }
            .seg { display: flex; }
            .seg button { flex: 1; justify-content: center; }
            .wb { --map-h: 440px; }
        }
        @media print { .tp[hidden] { display: grid !important; } .wb { grid-template-columns: minmax(0, 1fr); } .wb__map { display: none; } .seg { display: none; } #sub-photos[hidden], #sub-reports[hidden] { display: grid !important; } }

        .mosaic { height: clamp(280px, 24vw, 340px); }
        .rt-head { margin-top: 24px; }
        .rmain { gap: 0; }
        .rlayout { margin-top: 24px; }
        .secnav { margin-top: 24px; }
        .kf dt, .kf dd { margin: 0; text-align: left; }
        #wb-lists:has(#wb-seg:not([hidden])) .sect-h { display: none; }
        @media (max-width: 767px) {
            .rt-head { gap: 8px; }
            .rt-head h1 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
            .rt-head .badges-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
            .rt-head .badges-row > * { flex: none; }
            .mosaic { height: 240px; }
        }
        @media (max-width: 767px) {
            .rt .crumbs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
            .rt .crumbs > * { flex: none; }
        }
        #rt-suit .suit-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; } #rt-suit .sg { padding-inline: 12px; }

        /* ---- calm pass: one card level (the feed cards), hairlines instead of boxes, neutral colour, orange for the primary action and the route line ---- */
        .rt .panel, .rt .access > div, .rt .tr, .rt .stay, .rt .wd, .rt .sg, .rt .safety, .rt .ai-cta, .rt .empty-card, .rt .cstat, .rt .meter { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
        .rt .post { box-shadow: none; }
        .tp { gap: 56px; padding-top: 40px; }
        .tp .sec-block, .wb__side > .panel, .wb__side > .sec-block { gap: 16px; }
        .wb__side { gap: 40px; }
        .wb__side > * + * { padding-top: 32px; border-top: 1px solid var(--line); }
        .passport { border: 0; border-block: 1px solid var(--line); border-radius: 0; background: none; }
        .passport > div { grid-template-columns: auto; padding: 12px 32px 12px 0; border-left: 0; }
        .passport > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
        .passport .is-hard dd { color: var(--ink); }
        .badge { background: none; padding: 0; min-height: 24px; color: var(--copy); }
        .badge + .badge::before { content: ""; width: 4px; height: 4px; margin-right: 8px; border-radius: 50%; background: var(--line-2); }
        .badge--ok { background: none; color: var(--ok); }
        .badges-row { gap: 4px 8px; align-items: center; }
        .secnav a[aria-current="true"] { border-color: var(--ink); }
        .rt .more, .rt .linkbtn { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
        .rt .more:hover, .rt .linkbtn:hover { text-decoration-color: var(--ink); }
        .rt .linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font-size: var(--fs-small); font-weight: var(--fw-button); cursor: pointer; }
        .rt .more.fp__cta { min-height: 44px; display: inline-flex; align-items: center; }
        .suit-grid { gap: 0 32px; }
        .sg { min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); }
        #rt-suit .sg { padding-inline: 0; }
        .cstat .ico { background: none; }
        .meter__t { gap: 8px; }
        .places li::before { display: none; }
        .places .pin { background: var(--bg-soft); color: var(--ink-2); }
        .access .ico, .acc summary .ico { display: none; }
        .acc summary { min-height: 56px; }
        .access { gap: 40px; }
        .weather { gap: 16px 40px; }
        .mapwrap { border: 0; }
        .mini__svg { background: none; border-radius: 0; }
        .pp { gap: 16px; }
        .pp__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
        .pp .kv { gap: 8px 16px; }
        .rfeed { display: grid; max-width: 760px; }
        .rfeed .posts { display: grid; gap: 24px; }
        .route-check-feed .posts { width: min(100%, 760px); }
        .rt .route-check-feed .fp { box-shadow: var(--shadow); }
        .rcard .status-line { margin-top: 0; }
        .rcard + .rcard { margin-top: 0; }
        #rt-tlbox { display: grid; gap: 16px; }
        .chk-quote .tag { justify-self: start; }
        @media (max-width: 767px) { .pp .pp__head, .pp .stack, .pp__links { display: none; } .pp { padding: 0; border: 0; } }
        .issue b { margin-left: 4px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
        .cd-grid > .sec-block { align-content: start; }

        .ov-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; }
        .ov-side { gap: 40px; }
        #rt-suit .suit-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
        .follow-ico { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
        .follow-ico:hover { border-color: var(--ink); }
        .follow-ico[aria-pressed="true"] { border-color: var(--ok); color: var(--ok); }
        @media (max-width: 767px) {
            .by .btn-follow { display: none; }
            .by .follow-ico { display: grid; }
            .pp .mini, .pp .kv { display: none; }
            .pp { padding: 0; border: 0; }
            .ov-cols { grid-template-columns: minmax(0, 1fr); gap: 40px; }
        }
        @media (max-width: 1359px) { .ov-cols { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
        @media (max-width: 767px) { a.badge { min-height: 44px; } }

        .ov-cols--one { grid-template-columns: minmax(0, 1fr); }
        .wb__map .more { margin-top: 12px; display: inline-flex; min-height: 44px; align-items: center; }
        .pp__facts { margin: 0; padding: 12px 0; border-block: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
        .wb { --map-h: clamp(440px, calc(100vh - 200px), 700px); }
        @media (max-width: 1359px) { .wb { --map-h: clamp(380px, 56vw, 560px); } }
        @media (max-width: 767px) { .wb { --map-h: 320px; } .pp__facts { display: none; } }

        .wb { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
        @media (max-width: 1359px) { .wb { grid-template-columns: minmax(0, 1fr); } }
        #rt-suit .suit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
        @media (max-width: 767px) { #rt-suit .suit-grid { grid-template-columns: minmax(0, 1fr); } }
        .ov-cols .safety { padding-top: 16px; border-top: 1px solid var(--line); }

        .wb__side > [hidden] + * { padding-top: 0; border-top: 0; }
        #rt-elevnote { margin: 12px 0 0; color: var(--quiet); font-size: var(--fs-small); }

        .demo-note { margin: 56px 0 0; color: var(--quiet); font-size: var(--fs-caption); }

        /* the shared home-page route card: 4:3 photo, round heart, region line, title on two lines, spec row, status pill */
        .route[hidden] { display: none; }
        .route__where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .route__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: calc(var(--fs-h4) * var(--lh-h4) * 2); }
        .route__spec .diff--easy { color: var(--ok); }
        .route__spec .diff--medium { color: var(--warn); }
        .route__spec .diff--hard { color: var(--link); }
        .route__spec > span + span::before { content: "·"; margin-right: 12px; color: var(--quiet); font-weight: var(--fw-text); }
        .route__spec { gap: 4px 12px; }
        .route__people { min-height: 28px; }
        .route__fav { width: 44px; height: 44px; }
        .route__link > * { min-width: 0; }
        .route__people .pill { max-width: 100%; }

        /* ---- review pass: balanced overview, map chips in one row, 2x2 facts on phones ---- */
        .rt-head h1 { font-size: var(--fs-h2); line-height: 1.2; }
        .rt-head .passport { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
        .similar .sect-h { margin-bottom: 24px; }
        .s-concrete { background: var(--s-concrete) !important; }
        .wb { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
        .wb__side > * + * { padding-top: 32px; border-top: 1px solid var(--line); }
        .wb__map { display: grid; gap: 16px; }
        .wb__map .mapwrap { position: relative; }
        .wb__map > .more { margin-top: 0; }
        .ov-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
        .ov-two #rt-suit .suit-grid { grid-template-columns: minmax(0, 1fr); }
        .ov-cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
        .mapbot { flex-wrap: nowrap; overflow-x: auto; bottom: 36px; left: 8px; right: 8px; scrollbar-width: none; }
        .mapbot::-webkit-scrollbar { display: none; }
        .mapbot > * { flex: none; }
        .mcredit { left: 8px; right: 8px; bottom: 6px; padding: 0; background: none; text-align: right; }
        .cstat .btn { justify-self: start; }
        .pp__stack { display: grid; gap: 8px; }
        .pp__stack .btn { width: 100%; }
        .pp .stack + .pp__stack { margin-top: -8px; }
        .by .follow-ico { display: none; }
        .kv dd { white-space: nowrap; }
        .dlg h2:focus { outline: none; }
        .dlg__x:focus:not(:focus-visible) { outline: none; }
        @media (max-width: 1359px) { .wb, .ov-cols { grid-template-columns: minmax(0, 1fr); } }
        @media (max-width: 1023px) { .ov-two { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
        @media (max-width: 767px) {
            .rt-head h1 { font-size: var(--fs-h2); line-height: 1.2; }
            .rt-head .badges-row { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
            .rt-head .passport { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .rt-head .passport > div { padding: 12px 16px 12px 0; border-left: 0; }
            .rt-head .passport > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
            .rt-head .passport > div:nth-child(n+3) { border-top: 1px solid var(--line); }
            .pp .pp__head, .pp .stack, .pp .pp__stack { display: none; }
        }
        .ov-two > .panel { align-content: start; }
        .fmt { align-items: start; align-content: start; min-height: 96px; }
        .fmt input { align-self: center; }
        .fmt b { align-self: start; }
        .fmts { grid-auto-rows: 1fr; }
        #done .dlg__body { min-height: 430px; }
        #done .dlg__foot { min-height: 88px; align-items: center; }
        #done[open] { min-height: min(631px, calc(100dvh - 48px)); } #done .dlg > form, #done form { flex: 1 1 auto; }
        .route__title { display: block; overflow: hidden; height: calc(var(--fs-h4) * var(--lh-h4) * 2); }
        .badge + .badge::before { display: none; }
        /* Route details: separate metadata into readable, wrapping chips. */
        .rt-head .badges-row { gap: 8px; align-items: flex-start; }
        .rt-head .badges-row > .badge {
            flex: 0 1 auto; max-width: 100%; min-height: 32px; margin: 0;
            padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
            background: var(--bg-soft); color: var(--ink-2); line-height: 1.35;
            white-space: normal; overflow-wrap: anywhere;
        }
        .rt-head .badges-row > .badge:first-child { border-color: transparent; background: var(--orange-soft); color: var(--link); }
        .rt-head .badges-row > a.badge:hover { border-color: var(--line-2); background: var(--line); color: var(--ink); }
        .rt-head .badges-row > a.badge:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
        .rt-head .badges-row .badge .act__i { flex: 0 0 15px; width: 15px; height: 15px; }
        .rt-head .route-completion-freshness--positive .fdot { color: var(--ok); }
        .rt-head .route-completion-freshness--attention .fdot,
        .rt-head .route-completion-freshness--warning .fdot { color: var(--warn); }
        @media (max-width: 767px) { .rt-head .badges-row > a.badge { min-height: 40px; } }
        @media (max-width: 767px) {
            .similar .route__link { grid-template-columns: minmax(0, 1fr); gap: 12px; }
            .similar .route__media { grid-row: auto; aspect-ratio: 4 / 3; }
            .similar .route__fav { display: grid; }
        }
        .route__people .pill:not(.pill--ok):not(.pill--warn) { background: var(--bg-soft); color: var(--ink-2); }
        /* Overview: the map takes the whole block width, the route's marks sit inside it on the right,
           the profile and the surface share the row under it. */
        .wb { grid-template-columns: minmax(0, 1fr); --map-h: clamp(460px, 64vh, 640px); }
        .wb__map { position: static; }
        .wb__side { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 24px; }
        .wb__side > .ov-two { grid-column: 1 / -1; }
        .wb__side > .ov-expect { grid-column: 1 / -1; }
        .pp .safety { padding: 16px; border-radius: var(--r); background: var(--bg-soft); font-size: var(--fs-small); line-height: var(--lh-small); }
        .pp #rt-suit { padding: 0; border: 0; border-radius: 0; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
        .pp #rt-suit h2 { font-size: var(--fs-body); }
        .wb__side > .ov-two { grid-template-columns: minmax(0, 1fr); }
        .ov-two:has(#rt-diff[hidden]):not(:has(#rt-suit)) { display: none; }
        .passport .meter { gap: 0; margin-top: 8px; }
        .passport .meter__bar { max-width: 160px; }
        .pp .people-link { justify-self: start; margin-top: -8px; }
        .ov-cols.ov-cols--one { grid-template-columns: minmax(0, 1fr); }
        #rt-overview .lead-p, #rt-overview p { max-width: none; }
        .ov-h { margin: 0 0 16px; }
        .wb__map { display: grid; gap: 16px; }
        .wb__map > .ov-h { margin: 0; }
        .cd-grid > #rt-prep { grid-column: 1 / -1; }
        .prep-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; padding-top: 16px; border-top: 1px solid var(--line); }
        .prep { display: grid; align-content: start; gap: 16px; }
        .prep:has(.gear) { grid-column: 1 / -1; }
        .prep__h { display: flex; align-items: center; gap: 12px; margin: 0; font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); }
        .prep__h .ico { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-soft); color: var(--ink-2); }
        .prep__h small { margin-left: auto; color: var(--quiet); font: var(--fw-button) var(--fs-small)/var(--lh-small) var(--font-text); font-variant-numeric: tabular-nums; }
        @media (max-width: 767px) { .prep-list { grid-template-columns: minmax(0, 1fr); } }
        .mapmarks { position: absolute; right: 16px; top: 196px; bottom: 56px; z-index: 2; width: min(320px, calc(100% - 32px)); max-height: calc(100% - 252px); overflow-y: auto; overscroll-behavior: contain; padding: 12px; border-radius: var(--r-lg); background: var(--glass-92); box-shadow: 0 8px 24px var(--black-18); }
        .mapmarks:has(#rt-wplist[hidden]) { display: none; }
        .mapmarks .wplist { gap: 4px; }
        .mapmarks .wplist [hidden] { display: flex !important; }
        .mapmarks #wp-more { display: none !important; }
        .mapmarks .sect-h { padding: 0 4px 8px; }
        @media (max-width: 1023px) { .wb__side { grid-template-columns: minmax(0, 1fr); } }
        @media (max-width: 767px) { .mapmarks { left: 8px; right: 8px; top: auto; bottom: 64px; width: auto; max-height: 40%; } }

        .rt { padding-bottom: 0; }
        .rt .route-section-anchor { scroll-margin-top: var(--top); }
        .rt .oz-hero-corner, .rt .route-detail-anchor-nav { display: none; }
        .secnav .tabs .count { margin-left: 6px; color: var(--quiet); font-size: var(--fs-caption); font-weight: var(--fw-button); font-variant-numeric: tabular-nums; }
        .secnav a[aria-current="true"] .count { color: var(--cta); }
        .rt-head .by { margin-top: 0; }
        .rt-head .by .avatar, .rt .people-link .avatar { overflow: hidden; border-radius: 50%; }
        .rt .people-link { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
        .rt .gallery-wrap .mosaic { grid-auto-rows: none; }
        .rt .mosaic__tile img { display: block; }
        .rt-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); background: var(--bg-soft); }
        .rt-cover--empty { display: grid; place-items: center; color: var(--quiet); }
        .rt #route-description { margin-bottom: 0; }
        .rt #route-description .ov-cols { margin-bottom: 0; }
        .rt #route-description .rt-desc { width: 100%; max-width: none; color: var(--ink-2); font-size: var(--fs-body); line-height: var(--lh-body); }
        .rt #route-description .rt-desc p { margin: 0; }
        .rt #route-description .rt-desc p + p { margin-top: 12px; }

        .rt .mapwrap .minimap-container, .rt .mapwrap .route-map-card__map { position: absolute; inset: 0; }
        .rt .route-map-google-credit { position: absolute; right: 8px; bottom: 6px; z-index: 2; padding: 0 8px; border-radius: 8px; background: var(--glass-85); color: var(--quiet-fixed); font-size: var(--fs-caption-tight); }
        .rt .mapmarks[hidden] { display: none; }
        .route-waypoint-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 8px; }
        .route-waypoint-panel__title { display: flex; align-items: center; gap: 8px; font: var(--fw-title) var(--fs-body)/1.3 var(--font-display); }
        .route-waypoint-panel__reset { min-height: 36px; border: 0; background: none; color: var(--ink-fixed); cursor: pointer; }
        .route-waypoint-panel__list { display: grid; gap: 4px; }
        .route-waypoint-button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-fixed); text-align: left; cursor: pointer; }
        .route-waypoint-button:hover, .route-waypoint-button[data-active="true"] { background: var(--bg-soft); }
        .route-waypoint-button__index { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); color: var(--copy-fixed); font-size: var(--fs-caption); }
        .route-waypoint-card__copy { display: grid; min-width: 0; }
        .route-waypoint-card__copy strong { overflow-wrap: anywhere; }
        .route-waypoint-card__copy span, .route-waypoint-card__copy small { color: var(--copy-fixed); font-size: var(--fs-caption); }
        .route-waypoint-card__media { position: relative; display: none; flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-soft); }
        .route-waypoint-card__media[data-waypoint-photo-state="ready"] { display: block; }
        .route-waypoint-card__media > img { width: 100%; height: 100%; object-fit: cover; }
        .route-waypoint-card__credit { position: absolute; right: 2px; bottom: 2px; left: 2px; background: var(--scrim-50); color: var(--on-accent); font-size: 8px; text-align: center; }

        .rt .route-guide-card__heading-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
        .rt .route-guide-card__title { margin: 0; font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); }
        .rt .route-guide-card__title img { width: 20px; height: 20px; margin-right: 8px; vertical-align: middle; }
        .route-elevation-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--quiet); font-size: var(--fs-caption); }
        .route-elevation-legend__swatch { display: inline-block; width: 12px; height: 4px; margin-right: 4px; border-radius: 2px; vertical-align: middle; }
        .route-elevation-legend__swatch--easy { background: var(--ok); }
        .route-elevation-legend__swatch--medium { background: var(--orange); }
        .route-elevation-legend__swatch--hard { background: var(--danger); }
        .route-elevation-component, .route-elevation-card { display: grid; gap: 16px; }
        .route-elevation-extremes { display: flex; justify-content: space-between; gap: 16px; }
        .route-elevation-extreme { display: grid; }
        .route-elevation-extreme:last-child { text-align: right; }
        .route-elevation-extreme strong { font: var(--fw-heading) var(--fs-h4)/var(--lh-h4) var(--font-display); }
        .route-elevation-extreme span, .route-elevation-quality { color: var(--quiet); font-size: var(--fs-caption); }
        .route-elevation-plot { position: relative; height: 216px; }
        .route-elevation-plot svg { display: block; width: 100%; height: 100%; touch-action: pan-y; }
        .route-elevation-tooltip { position: absolute; z-index: 2; display: none; padding: 8px 12px; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); font-size: var(--fs-caption); pointer-events: none; transform: translate(-50%, -100%); }
        .route-elevation-tooltip[data-active="true"] { display: grid; }
        .route-elevation-summary { display: flex; flex-wrap: wrap; gap: 12px 32px; }
        .route-elevation-summary__item { display: flex; align-items: center; gap: 8px; }
        .route-elevation-summary__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-soft); }
        .route-elevation-summary__icon img { width: 16px; height: 16px; }
        .route-elevation-summary__copy { display: grid; color: var(--quiet); font-size: var(--fs-caption); }
        .route-elevation-summary__copy strong { color: var(--ink); font-size: var(--fs-small); }
        .route-elevation-map-marker { width: 16px; height: 16px; border: 3px solid var(--surface); border-radius: 50%; background: var(--orange); box-shadow: var(--shadow); }
        .route-guide-card__muted, .route-guide-card__text { margin: 0; color: var(--copy); font-size: var(--fs-small); }
        .route-guide-surfaces__bar { display: flex; height: 14px; overflow: hidden; border-radius: 999px; background: var(--bg-soft); }
        .route-guide-surfaces__bar > span { display: block; height: 100%; }
        .route-guide-surfaces__unknown { background: repeating-linear-gradient(135deg, var(--line-2) 0 4px, var(--bg-soft) 4px 8px); }
        .route-guide-surfaces__legend { display: grid; gap: 8px; }
        .route-guide-surfaces__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-small); }
        .route-guide-surfaces__name { display: inline-flex; align-items: center; gap: 8px; }
        .route-guide-surfaces__swatch { width: 12px; height: 12px; border-radius: 4px; background: var(--line-2); }
        .route-guide-surfaces__value { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }

        .rt .route-actuality { display: grid; gap: 16px; }
        .rt .route-actuality__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
        .rt .route-actuality__summary-copy { display: grid; flex: 1 1 240px; gap: 4px; }
        .rt .route-actuality__summary-copy b { font-size: var(--fs-body); }
        .rt .route-actuality__summary-icon { overflow: hidden; }
        .rt .route-actuality__summary-icon img { width: 100%; height: 100%; object-fit: cover; }
        .rt .route-actuality__report-button { margin-left: auto; }
        /* Conditions are shared with outings, whose stylesheet is not loaded here. */
        .rt .oz-route-cond { --route-cond-color: #16855a; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
        .rt .oz-route-cond.oz-cond--info { --route-cond-color: #3b6bb8; }
        .rt .oz-route-cond.oz-cond--warning { --route-cond-color: #b36912; }
        .rt .oz-route-cond.oz-cond--danger { --route-cond-color: #c03b2a; }
        .rt .oz-route-cond__text, .rt .oz-route-cond__body { display: grid; gap: 6px; min-width: 0; }
        .rt .oz-route-cond__headline { margin: 0; color: var(--ink); font-size: var(--fs-small); font-weight: var(--fw-button); line-height: 1.45; }
        .rt .oz-route-cond .oz-small { color: var(--quiet); font-size: var(--fs-small); line-height: 1.45; }
        .rt .oz-route-cond .oz-cond__dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--route-cond-color); vertical-align: middle; }
        .rt .oz-route-cond .oz-cond__item { display: grid; gap: 4px; min-width: 0; padding-left: 12px; border-left: 3px solid var(--route-cond-color); color: var(--ink-2); font-size: var(--fs-small); line-height: 1.45; overflow-wrap: anywhere; }
        .rt .oz-route-cond .oz-link { color: var(--link); text-decoration: underline; }
        .rt .oz-route-cond .oz-btn { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-button); line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
        .rt .oz-route-cond .oz-btn:hover { border-color: var(--link); }
        .rt .oz-route-cond .oz-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
        .rt .oz-route-cond .oz-btn[aria-pressed="true"] { border-color: var(--route-cond-color); color: var(--route-cond-color); }
        .rt .oz-route-cond .oz-btn:disabled { opacity: .65; cursor: wait; }
        html[data-theme="dark"] .rt .oz-route-cond { --route-cond-color: #62c99e; }
        html[data-theme="dark"] .rt .oz-route-cond.oz-cond--info { --route-cond-color: #87b3ff; }
        html[data-theme="dark"] .rt .oz-route-cond.oz-cond--warning { --route-cond-color: #f1b664; }
        html[data-theme="dark"] .rt .oz-route-cond.oz-cond--danger { --route-cond-color: #ff8c79; }
        @media (max-width: 640px) { .rt .oz-route-cond { align-items: stretch; flex-direction: column; } .rt .oz-route-cond .oz-btn { align-self: flex-start; max-width: 100%; } }
        .rt .route-actuality__more { border-top: 1px solid var(--line); }
        .rt .route-actuality__disclosure { display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; }
        .rt .route-actuality__disclosure-copy { display: flex; flex: 1; flex-wrap: wrap; gap: 4px 12px; }
        .rt .route-actuality__disclosure-copy small { color: var(--quiet); }
        .rt .route-actuality__grid { display: grid; gap: 16px; padding: 16px 0; }
        .rt .route-actuality__item { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
        .rt .route-actuality__item-icon { width: 32px; height: 32px; }
        .rt .route-actuality__item-copy { display: grid; gap: 4px; }
        .rt .route-actuality__item-copy p { margin: 0; color: var(--copy); font-size: var(--fs-small); }
        .rt .route-actuality__item-chevron, .rt .route-actuality__header-art { display: none; }
        .rt .route-actuality__label { color: var(--quiet); font-size: var(--fs-caption); }
        .rt .route-actuality__issues { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); }
        .rt .route-completions { display: grid; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
        .rt .route-completions__head { display: flex; align-items: center; gap: 12px; }
        .rt .route-completions__head-icon { width: 24px; height: 24px; }
        .rt .route-completions__count { margin-left: auto; }
        .rt .route-completions__list { display: grid; gap: 16px; }
        .rt .route-completion-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
        .rt .route-completion-card__avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
        .rt .route-completion-card__copy { display: grid; gap: 4px; }
        .rt .route-completion-card__copy p, .rt .route-completion-card__copy small { margin: 0; color: var(--copy); }
        .rt .route-completion-card__evidence, .rt .route-completion-card__map-shell, .rt .route-completion-card__meta, .rt .route-completion-card__actions { grid-column: 2; }
        .rt .route-completion-card__photos { display: flex; gap: 8px; }
        .rt .route-completion-card__photos img { width: 96px; height: 96px; border-radius: var(--r-sm); object-fit: cover; }
        .rt .route-completions__footer { display: flex; flex-wrap: wrap; gap: 12px; }

        .rt #route-preparation { display: grid; gap: 24px; }
        .rt .photos__item { position: relative; aspect-ratio: 1; overflow: hidden; border: 0; border-radius: 12px; background: var(--bg-soft); cursor: zoom-in; }
        .rt .photos__item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms; }
        .rt .photos__item:hover img { opacity: .88; }
        .rt .photos__item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
        .rt .route-photo-credits summary { min-height: 44px; cursor: pointer; }
        .rt .route-photo-credits ol { display: grid; gap: 16px; }

        .rt #p-near { gap: 40px; }
        .rt #p-near #rt-near { display: grid; gap: 32px; align-content: start; }
        .rt .route-access-block { margin: 0; }
        .rt #p-near .access h3 { margin: 0; }
        .rt #p-near .access .access__text p { margin: 0; }
        .rt #route-transit { display: grid; gap: 16px; margin: 0; padding: 16px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
        .rt #route-transit .route-info-card-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
        .rt #route-transit .route-guide-card__title { margin: 0; font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); }
        .rt #route-transit .route-guide-card__title img { display: none; }
        .rt #route-transit .route-info-card-heading__hint { color: var(--quiet); font-size: var(--fs-small); }
        /* The transit widget also uses .tr; keep its timeline vertically aligned. */
        .rt #route-transit [data-tr-body] { min-width: 0; width: 100%; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; }
        .rt #route-transit .oz-route-plan-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-left: auto; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: var(--fw-button); cursor: pointer; }
        .rt .oz-route-plan-link img { width: 16px; height: 16px; }
        .rt .stay { border-top: 1px solid var(--line); }
        .rt .tt-ai-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 28px 32px; border-radius: var(--r-lg); background: var(--orange-soft); }
        .rt .tt-ai-cta__icon { display: none; }
        .rt .tt-ai-cta__copy { display: grid; flex: 1 1 280px; }
        .rt .tt-ai-cta__copy strong { font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); }
        .rt .tt-ai-cta__copy small { color: var(--copy); }
        .rt .tt-ai-cta__link { color: var(--ink); font-weight: var(--fw-button); text-decoration: underline; text-underline-offset: 4px; }

        .rt .route-comments-shell { display: grid; gap: 20px; margin: 0; padding: 0; border: 0; background: none; }
        .rt #comments-section { display: grid; gap: 20px; }
        .rt #comments-section .sect-h select { min-height: 40px; margin-left: auto; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
        .rt #comment-filters { display: flex; flex-wrap: wrap; gap: 8px; }
        .rt .comment-filter-btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--copy); cursor: pointer; }
        .rt .comment-filter-btn.is-active { border-color: var(--ink); background: var(--ink); color: var(--bg); }
        .rt #main-comment-form { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
        .rt #main-comment-form > a { width: 40px; height: 40px; border-radius: 50%; }
        .rt #main-comment-form .comment-composer-shell { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: none; }
        .rt #main-comment-form .comment-textarea { flex: 1 1 100%; min-height: 88px; padding: 12px 16px; border: 1px solid var(--field-edge); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
        .rt #main-comment-form .comment-textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--orange-a-18); }
        .rt .comment-composer-extra { display: contents; }
        .rt .comment-suggestion { display: none; }
        .rt #main-comment-form .comment-submit-btn { min-height: 44px; margin-left: auto; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: var(--fw-button); cursor: pointer; }
        .rt #main-comment-form .comment-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
        .rt #comments-list { display: grid; gap: 20px; }
        .rt .comment-thread { padding: 0; border: 0; border-radius: 0; background: none; }
        .rt .comment-thread + .comment-thread { padding-top: 20px; border-top: 1px solid var(--line); }
        .rt .comment-text-content { color: var(--ink-2); }
        .rt .comment-menu-panel { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
        .rt .cm-empty { display: grid; justify-items: start; gap: 12px; color: var(--copy); }
        .rt .cm-empty p { margin: 0; }
        .rt .cm-empty .acts { display: flex; flex-wrap: wrap; gap: 8px; }
        .rt .route-safety-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; }
        .rt .route-safety-actions .linkbtn { color: var(--quiet); font-size: var(--fs-caption); }

        .route-condition-modal__backdrop, .route-condition-prompt__backdrop { background: var(--scrim-66); }
        .route-condition-modal__sheet { border-color: var(--line); border-radius: 22px; background: var(--surface); background-image: none; color: var(--ink); box-shadow: var(--shadow-lg); }
        .route-condition-modal__head h2, .route-condition-form__context h3, .route-condition-form__success h3 { color: var(--ink); font-family: var(--font-display); letter-spacing: var(--ls-heading); }
        .route-condition-modal__head h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
        .route-condition-modal__close { border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); }
        .route-condition-modal__close:hover { background: var(--bg-soft); }
        .route-condition-form__progress li { color: var(--quiet); font-weight: var(--fw-button); }
        .route-condition-form__progress li::before { background: var(--line); }
        .route-condition-form__progress b { background: var(--bg-soft); color: var(--quiet); }
        .route-condition-form__progress li.is-active, .route-condition-form__progress li.is-complete { color: var(--cta); }
        .route-condition-form__progress li.is-active b, .route-condition-form__progress li.is-complete b { background: var(--cta); color: var(--on-accent); }
        .route-condition-form__progress li.is-active::before, .route-condition-form__progress li.is-complete::before { background: var(--cta); }
        .route-condition-form__fieldset legend, .route-condition-form__field > span, .route-condition-form__segments--status span strong, .route-condition-upload__tips strong { color: var(--ink); }
        .route-condition-form small, .route-condition-form__context p, .route-condition-form__location > p, .route-condition-form__location-title small { color: var(--quiet); }
        .route-condition-form__date-options button, .route-condition-form__segments--status span, .route-condition-form__issue-groups span { border-color: var(--line); border-radius: 14px; background: var(--surface); color: var(--ink-2); }
        .route-condition-form__date-options button.is-selected, .route-condition-form__segments input:checked + span, .route-condition-form__issue-groups input:checked + span { border-color: var(--ink); background: var(--bg-soft); color: var(--ink); }
        .route-condition-form__nav { border-color: var(--line); }
        .route-condition-form__submit, .route-condition-form__success-primary { min-height: 44px; border: 0 !important; border-radius: 999px; background: var(--cta) !important; color: var(--on-accent) !important; font-weight: var(--fw-button); }
        .route-condition-form__back { min-height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); }
        .route-condition-form__field textarea, .route-condition-form__custom-date input, .route-condition-form__coordinates input { border-color: var(--field-edge); border-radius: 14px; background: var(--surface); color: var(--ink); }
        .route-condition-upload__button { border-color: var(--line-2); border-radius: 14px; background: var(--surface); color: var(--ink); }
        .route-condition-upload__tips { border-radius: 14px; background: var(--bg-soft); color: var(--copy); }
        .route-condition-form__success > strong { border-color: var(--line); background: var(--bg-soft); color: var(--ink-2); }
        .route-condition-prompt__sheet { border-color: var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
        .route-condition-prompt h2 { color: var(--ink); font-family: var(--font-display); }
        .route-condition-prompt p { color: var(--copy); }
        .route-condition-prompt__actions button { border-color: var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); }
        .route-condition-prompt__actions .route-condition-prompt__yes { border-color: var(--cta); background: var(--cta); color: var(--on-accent); }

        .rt .oz-hero-plan { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font: var(--fw-button) var(--fs-button)/var(--lh-button) var(--font-text); cursor: pointer; }
        .rt .oz-hero-plan:hover { border-color: var(--ink); }
        .rt .oz-hero-plan svg { width: 18px; height: 18px; }
        .rt .pp .stack .oz-hero-plan { width: 100%; }
        .rt .route-mobile-action { display: none; }
        .route-mobile-action-bar { display: none; }
        @media (max-width: 1023px) {
            .rt #p-near .access { grid-template-columns: minmax(0, 1fr); }
        }
        @media (max-width: 767px) {
            .rt .route-actuality { padding: 16px; }
            .rt .route-actuality__report-button { margin-left: 0; }
            .rt .route-actuality__disclosure-copy { display: grid; }
            .rt .route-completion-card__evidence, .rt .route-completion-card__map-shell, .rt .route-completion-card__meta, .rt .route-completion-card__actions { grid-column: 1 / -1; }
            .rt #route-transit .route-info-card-heading { align-items: flex-start; }
            .rt #route-transit .oz-route-plan-link { margin-left: 0; }
            .rt .tt-ai-cta { padding: 24px; }
            .rt .tt-ai-cta__link { width: 100%; }
            .rt .route-mobile-action-bar { position: fixed; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); left: 0; z-index: 54; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px 16px; border-top: 1px solid var(--line); background: var(--surface); }
            .rt .route-mobile-action-bar__item { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: var(--fs-small); font-weight: var(--fw-button); }
            .rt .route-mobile-action-bar__item img, .rt .route-mobile-action-bar__item svg { width: 18px; height: 18px; }
            .rt .route-mobile-action-bar__download { border-color: var(--cta); background: var(--cta); color: var(--on-accent); }
            .rt { padding-bottom: 64px; }
            .rt .toast { bottom: calc(136px + env(safe-area-inset-bottom)); }
        }

/* Completion participants share the route card's layout and concept tokens. */
.rt .route-completion-people { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font: var(--fw-ui) var(--fs-small)/var(--lh-small) var(--font-text); text-align: left; cursor: pointer; }
.rt .route-completion-people__avatars { display: inline-flex; flex: none; align-items: center; padding-left: 8px; }
.rt .route-completion-people__avatar, .rt .route-completion-people__more { display: inline-grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; margin-left: -8px; overflow: hidden; border: 2px solid var(--surface); border-radius: 50%; background: var(--bg-soft); color: var(--ink); font-size: var(--fs-caption); }
.rt .route-completion-people__avatar img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
.rt .route-completion-people__more { background: var(--ink); color: var(--bg); }
.rt .route-completion-people__label { min-width: 0; color: var(--copy); }
.rt .route-completion-people__label b { color: var(--ink); }
.rt .route-completion-people:hover .route-completion-people__label { color: var(--link); }
.rt .route-completion-people:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: var(--r-sm); }
.rt .pp .route-completion-people--sidebar { width: 100%; padding-block: 16px; border-block: 1px solid var(--line); }
.route-completion-person { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.route-completion-person:last-child { border-bottom: 0; }
.route-completion-person__avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: var(--bg-soft); color: var(--ink); }
.route-completion-person__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.route-completion-person__copy { min-width: 0; font-size: var(--fs-small); }
.route-completion-person__copy strong, .route-completion-person__copy span { display: block; overflow-wrap: anywhere; }
.route-completion-person__copy strong { color: var(--ink); }
.route-completion-person__copy span { color: var(--quiet); font-size: var(--fs-caption); }
/* Keep route actions available while reading without covering the route heading. */
@media (max-width: 767px) {
    body.page-route-detail.mobile-ux-ready .route-mobile-action-bar:not(.mobile-ux-after-hero) { opacity: 0; pointer-events: none; }
    body.page-route-detail .rt .route-mobile-action-bar { bottom: env(safe-area-inset-bottom, 0px); transition: opacity .2s ease; }
    body.page-route-detail:has(.tabbar) .rt .route-mobile-action-bar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    @media (prefers-reduced-motion: reduce) {
        body.page-route-detail .rt .route-mobile-action-bar { transition: none; }
    }
}

/* Route embed format selector. */
.route-embed-options legend, .route-embed-preview-label { margin-bottom: 8px; color: var(--ink); font-size: var(--fs-small); font-weight: 700; }
.route-embed-options__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.route-embed-options__grid label { position: relative; min-width: 0; cursor: pointer; }
.route-embed-options__grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.route-embed-options__grid label > span { display: flex; min-height: 65px; flex-direction: column; justify-content: center; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.route-embed-options__grid label strong { font-size: 12px; line-height: 1.2; }
.route-embed-options__grid label small { color: var(--quiet); font-size: 10px; line-height: 1.25; }
.route-embed-options__grid input:checked + span { border-color: #c94600; box-shadow: inset 0 0 0 1px #c94600; }
.route-embed-options__grid input:focus-visible + span { outline: 2px solid #ff7734; outline-offset: 2px; }
@media (max-width: 400px) { .route-embed-options__grid { grid-template-columns: 1fr; } .route-embed-options__grid label > span { min-height: 45px; } }
