/* GPX route hub (pen.dev offgrid66-brand pen/offgrid66-gpx-reitit.pen: "Reitit 1440 · kunta ja kartta", "Reitit 390 ·
   kartta", "Reitit 390 · arviot ja kommentit"). Desktop: filters across; the list alone, or the map and the list that
   follows it side by side. Phone: one column, the list under the map. */
.rt { padding-top: clamp(40px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px); }
.rt-head h1 { font-size: clamp(46px, 6.7vw, 96px); line-height: 1; margin-bottom: 18px; max-width: 14em; }
.rt-lead { max-width: 820px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; margin-bottom: 28px; }
.rt-head .btn-row { margin-bottom: clamp(40px, 5vw, 56px); }
.rt-sec { padding-top: clamp(56px, 7vw, 96px); scroll-margin-top: 16px; }
.rt-sec h2 { margin-bottom: 24px; }
.rt-fine { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }
.rt-note { color: var(--ink2); }

.rt-method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 28px;
  border: var(--rule); border-radius: var(--r); background: var(--panel); }
.rt-method dt { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.rt-method dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink2); }

/* Filters */
.rt-filters { display: flex; flex-direction: column; gap: 16px; padding: 20px; margin-bottom: 20px;
  border: var(--rule); border-radius: var(--r); background: var(--panel); }
.rt-filters[hidden] { display: none; }
.rt-row { display: flex; gap: 16px; align-items: flex-end; }
.rt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rt-grow { flex: 1; }
.rt-sel-field { width: 220px; }
.rt-flabel { font: 400 13px/1.4 var(--mono); color: var(--muted); padding: 0; }
.rt-field input[type="search"], .rt-field input[type="text"], .rt-field select, .rt-field textarea { width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--field-bg);
  border: var(--border-width) solid var(--field-line); border-radius: var(--btn-radius); }
.rt-field select { appearance: none; padding-right: 40px; background: var(--field-bg) var(--select-arrow) no-repeat right 14px center; }
.rt-field textarea { resize: vertical; }
.rt-field input::placeholder { color: var(--muted); }
.rt-field input:focus-visible, .rt-field select:focus-visible, .rt-field textarea:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 2px; }

/* Radio groups drawn as chips and a segmented control; the input stays in the tab order. */
.rt-chips, .rt-segs { display: flex; gap: 8px; flex-wrap: wrap; }
.rt-segs { gap: 0; flex-wrap: nowrap; border: var(--border-width) solid var(--field-line); border-radius: var(--btn-radius); }
.rt-chip, .rt-seg { position: relative; display: inline-flex; }
.rt-chip input, .rt-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rt-chip span, .rt-seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; color: var(--ink2); white-space: nowrap; }
.rt-chip span { border: var(--rule); border-radius: var(--btn-radius); }
.rt-seg span { min-height: 46px; padding: 0 16px; font-weight: 600; }
.rt-chip input:checked + span { color: var(--ink); font-weight: 600; border-color: var(--accent); background: var(--accent-wash); }
/* An activity with no routes under the other filters stays choosable but steps back. */
.rt-chip.is-zero input:not(:checked) + span { color: var(--muted); border-style: dashed; }
.rt-seg input:checked + span { color: var(--accent-ink); background: var(--accent); }
.rt-chip input:focus-visible + span, .rt-seg input:focus-visible + span { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 2px; }
@media (hover: hover) { .rt-chip:hover span, .rt-seg:hover input:not(:checked) + span { color: var(--ink); } }

.rt-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.rt-count { margin: 0; font: 400 14px/1.4 var(--mono); color: var(--ink2); }
.rt-clear[hidden] { display: none; }
.rt-status { margin-bottom: 16px; font-size: 15px; color: var(--ink2); }
.rt-status[hidden] { display: none; }
.rt-status.rt-err { padding: 16px 20px; border: var(--border-width) solid var(--danger); border-radius: var(--r); background: var(--danger-bg); }
.rt-status.rt-err strong { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-bottom: 4px; }
.rt-status.rt-err strong::before { content: ''; width: 10px; height: 10px; background: var(--danger); flex: none; }
.rt-status .btn { margin-top: 12px; }

/* List and map */
.rt-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.rt-list { display: flex; flex-direction: column; gap: 12px; }
.rt-card { padding: 20px; border: var(--rule); border-radius: var(--r); background: var(--panel); scroll-margin-top: 16px; }
.rt-card[hidden] { display: none; }
.rt-card.is-sel { border-color: var(--ink2); background: var(--panel2); }
.rt-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.rt-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rt-kind { font: 400 12px/1.3 var(--mono); color: var(--ink2); padding: 3px 8px; border: var(--rule); border-radius: var(--radius-small); }
.rt-user { font-size: 12px; font-weight: 600; line-height: 1.3; padding: 3px 8px; border-radius: var(--radius-small); background: var(--accent); color: var(--accent-ink); }
.rt-km { font: 400 15px/1.3 var(--mono); color: var(--ink); white-space: nowrap; }
.rt-name { font-size: 19px; line-height: 1.3; margin-bottom: 4px; overflow-wrap: anywhere; }
.rt-meta { font-size: 14px; line-height: 1.45; color: var(--muted); margin-bottom: 12px; }
.rt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 12px; padding: 12px 0; border-top: var(--rule); border-bottom: var(--rule); }
.rt-stats dt { font: 400 12px/1.3 var(--mono); color: var(--muted); }
.rt-stats dd { margin: 4px 0 0; font: 400 15px/1.3 var(--mono); color: var(--ink); }
.rt-desc { font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.rt-lic { font: 400 13px/1.5 var(--mono); color: var(--ink2); }
.rt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.rt-actions .rt-report-btn { margin-left: auto; }
.rt-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--ink2);
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.rt-link:hover { color: var(--ink); }
.rt-report-btn { min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; font: 600 15px/1.2 var(--sans); color: var(--danger-ink);
  text-decoration: underline; text-underline-offset: 5px; }
.rt-report-btn:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 3px; }
.rt-actions .rt-block-btn { margin-left: 0; }
.rt-block-msg { flex-basis: 100%; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.rt-block-msg:empty { display: none; }
.rt-blocked .rt-name, .rt-blocked .rt-meta, .rt-blocked .rt-desc { opacity: .45; }
.rv-block { margin-left: 16px; }
.rt-more { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.rt-more summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--ink2); font-weight: 600; }
.rt-more p { margin: 0 0 8px; }
.rt-more .rt-link { min-height: 0; font-size: 14px; }
.rt-state { padding: 24px; margin-bottom: 12px; border: var(--rule); border-radius: var(--r); background: var(--panel); }
.rt-state[hidden] { display: none; }
.rt-state h3 { margin-bottom: 8px; }
.rt-state p { margin-bottom: 12px; color: var(--ink2); }
.rt-morewrap { display: flex; justify-content: center; padding-top: 16px; }

/* List or map. In the map view the list beside the map shows the routes in view. */
.rt-bar-l { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-width: 0; }
.rt-view { display: inline-flex; flex: none; padding: 2px; gap: 2px; border: var(--border-width) solid var(--field-line); border-radius: var(--btn-radius); }
.rt-view[hidden] { display: none; }
.rt-view-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; font: 400 15px/1 var(--sans);
  color: var(--ink2); background: none; border: 0; border-radius: var(--radius-small); cursor: pointer; }
.rt-view-btn[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.rt-view-btn:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 2px; }
.rt-ico { width: 14px; height: 12px; flex: none; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.rt-ico-list::after { content: ''; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.rt-ico-map { border: 2px solid currentColor; border-radius: 2px; }
.rt-ico-map::after { content: ''; position: absolute; left: 3px; top: -2px; bottom: -2px; border-left: 2px solid currentColor; }

.rt-cols { display: block; }
.rt-cols.is-map { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.rt-mapcol[hidden] { display: none; }
.rt-mapgl { position: relative; height: min(76vh, 760px); min-height: 420px; border: var(--rule); border-radius: var(--r); background: var(--panel2); overflow: hidden; }
.rt-map-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 24px; text-align: center; color: var(--ink2); }
.rt-cols.is-map .rt-listcol { max-height: min(76vh, 760px); min-height: 420px; overflow-y: auto; border: var(--rule); border-radius: var(--r); background: var(--panel);
  overscroll-behavior: contain; }
.rt-listhead { position: sticky; top: 0; z-index: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: var(--panel); border-bottom: var(--rule); }
.rt-listhead[hidden] { display: none; }
.rt-inview { color: var(--ink); font-size: 16px; }
.rt-cols.is-map .rt-list { gap: 0; }
.rt-cols.is-map .rt-card { border: 0; border-bottom: var(--rule); border-radius: 0; padding: 16px 18px; }
.rt-cols.is-map .rt-card.is-sel { box-shadow: inset 3px 0 0 var(--ink); }
.rt-cols.is-map .rt-state { margin: 12px; }
.rt-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 8px; font-size: 14px; }
.rt-legend li { display: flex; align-items: center; gap: 10px; }
.rt-lg { flex: none; }
.rt-lg-user { width: 22px; height: 4px; background: var(--ink); border-radius: 2px; }
.rt-lg-ext { width: 22px; height: 3px; background: var(--accent); border-radius: 2px; }
.rt-lg-start { width: 14px; height: 14px; border: 2.5px solid var(--accent); border-radius: 50%; background: var(--bg); }
.rt-lg-cluster { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1.5px solid var(--accent);
  border-radius: 50%; font: 400 10px/1 var(--mono); color: var(--ink); }
.rt-mapgl .maplibregl-ctrl-group { background: var(--panel); border: var(--rule); box-shadow: none; }
.rt-mapgl .maplibregl-ctrl-group button { width: 40px; height: 40px; }
.rt-mapgl .maplibregl-ctrl-group button + button { border-top: var(--rule); }
.rt-mapgl .maplibregl-ctrl-icon { filter: invert(1) brightness(1.4); }
.rt-mapgl .maplibregl-ctrl.maplibregl-ctrl-attrib, .rt-mapgl .maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact { background: var(--panel); color: var(--muted); font: 400 11px/1.4 var(--mono); }
.rt-mapgl .maplibregl-ctrl-attrib a { color: var(--ink2); }
.rt-mapgl .maplibregl-ctrl-attrib-button { filter: invert(1); }

/* Municipality picker */
.rt-kunta-field { width: 300px; }
.rt-combo { position: relative; }
.rt-combo input { width: 100%; min-height: 48px; padding: 10px 40px 10px 14px; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--field-bg); border: var(--border-width) solid var(--field-line); border-radius: var(--btn-radius); }
.rt-combo input::placeholder { color: var(--muted); }
.rt-combo input:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 2px; }
.rt-combo-x { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; font: 400 22px/1 var(--sans); color: var(--ink2);
  background: none; border: 0; cursor: pointer; }
.rt-combo-x[hidden] { display: none; }
.rt-combo-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; overflow-y: auto; padding: 6px;
  background: var(--panel); border: var(--border-width) solid var(--field-line); border-radius: var(--r); }
.rt-combo-list[hidden] { display: none; }
.rt-opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: var(--radius-small);
  color: var(--ink); cursor: pointer; }
.rt-opt.is-empty { color: var(--muted); }
.rt-opt-n { font: 400 12px/1.3 var(--mono); color: var(--ink2); white-space: nowrap; }
.rt-opt.is-empty .rt-opt-n { color: var(--muted); }
.rt-opt.is-active, .rt-opt[aria-selected="true"] { background: var(--panel2); }
.rt-opt.is-active { outline: 1px solid var(--ink2); }
.rt-opt-near { margin-top: 6px; border-top: var(--rule); border-radius: 0; color: var(--ink2); }
@media (hover: hover) { .rt-opt:hover { background: var(--panel2); } }

/* Ratings on the cards */
.rt-kunta { font: 400 12px/1.3 var(--mono); color: var(--ink2); padding: 3px 8px; border: var(--rule); border-radius: var(--radius-small); }
.rt-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 20px; margin: -4px 0 12px; font: 400 12px/1.3 var(--mono); color: var(--ink2); }
.rt-rate:empty { display: none; }
.rt-rate-none { color: var(--muted); }
.rt-stars { font: 400 14px/1 var(--sans); letter-spacing: 1px; white-space: nowrap; }
.rt-st-on { color: var(--ink); }
.rt-st-off { color: var(--muted); }
.rt-rv-btn, .rt-onmap { min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; font: 600 15px/1.2 var(--sans); color: var(--ink2);
  text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.rt-rv-btn:hover, .rt-onmap:hover { color: var(--ink); }
.rt-rv-btn:focus-visible, .rt-onmap:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 3px; }

/* Publish block */
.rt-band { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; padding: 28px; margin-bottom: 16px;
  border: var(--rule); border-radius: var(--r); background: var(--panel); }
.rt-steps { display: flex; flex-direction: column; gap: 18px; }
.rt-steps li { display: flex; gap: 16px; }
.rt-step-n { font: 400 15px/1.5 var(--mono); color: var(--accent); }
.rt-steps h3 { font-size: 17px; margin-bottom: 4px; }
.rt-steps p { margin: 0; font-size: 15px; line-height: 1.5; }
.rt-priv { padding-left: 24px; border-left: var(--rule); }
.rt-priv h3 { font-size: 17px; margin-bottom: 12px; }
.rt-priv ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; font-size: 15px; line-height: 1.5; }
.rt-priv li { display: flex; gap: 10px; }
.rt-priv li::before { content: '–'; color: var(--muted); }

/* Ratings and comments: two columns on a wide screen, a full screen on a phone. */
.rt-dialog.rv { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 48px); padding: 0; overflow: auto; }
.rv-top { position: sticky; top: 0; z-index: 1; padding: 8px 16px; background: var(--panel2); border-bottom: var(--rule); }
.rv-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; font: 400 15px/1 var(--sans); color: var(--ink);
  background: none; border: 0; cursor: pointer; }
.rv-back:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 2px; }
.rv-body { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 40px; padding: 28px; }
.rv-side { display: flex; flex-direction: column; gap: 14px; }
.rv .rv-name { font: 700 32px/1.05 var(--disp); color: var(--ink); margin: 0; }
.rv-meta { margin: 0; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.rv-sum { display: flex; align-items: center; gap: 16px; }
.rv-avg { font: 700 52px/1 var(--disp); color: var(--ink); }
.rv-sum div { display: flex; flex-direction: column; gap: 6px; }
.rv-stars { font: 400 20px/1 var(--sans); letter-spacing: 2px; }
.rv-n { font: 400 13px/1.3 var(--mono); color: var(--ink2); }
.rv-dist { display: flex; flex-direction: column; gap: 6px; }
.rv-bar { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); color: var(--ink2); }
.rv-bar-t { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rv-bar-f { display: block; height: 100%; background: var(--accent); }
.rv-bar-n { text-align: right; }
.rv-gpx:empty { display: none; }
.rv-mine { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: var(--rule); }
.rv-mine h3 { font-size: 16px; margin: 0; }
.rv-signin { display: flex; flex-direction: column; gap: 8px; }
.rv-signin[hidden], .rv-form[hidden], .rv-own[hidden], .rv-del[hidden], .rv-more[hidden] { display: none; }
.rv-signin p { margin: 0; line-height: 1.5; }
.rv-form { display: flex; flex-direction: column; gap: 12px; }
.rv-stars-in { display: flex; gap: 6px; margin: 0; padding: 0; border: 0; }
.rv-stars-in legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rv-star { position: relative; display: inline-flex; }
.rv-star input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rv-star span { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; font: 400 24px/1 var(--sans);
  color: var(--muted); border: var(--rule); border-radius: var(--btn-radius); }
.rv-star.is-on span { color: var(--ink); }
.rv-star input:checked + span { border-color: var(--accent); border-width: 1.5px; }
.rv-star input:focus-visible + span { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 2px; }
.rv-chosen:empty, .rv-msg:empty { display: none; }
.rv-msg { margin: 0; color: var(--ink); }
.rv-form .btn-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rv-del { padding: 0; background: none; border: 0; cursor: pointer; font: 600 15px/1.2 var(--sans); color: var(--danger-ink);
  text-decoration: underline; text-underline-offset: 5px; min-height: 44px; }
.rt-inline { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rv-list-h { font-size: 16px; padding-bottom: 12px; margin: 0; border-bottom: var(--rule); }
.rv-state { margin: 16px 0; color: var(--ink2); }
.rv-state:empty { display: none; }
.rv-items { display: flex; flex-direction: column; }
.rv-item { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: var(--rule); }
.rv-item-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv-who { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.rv-who .rt-stars { font-size: 13px; }
.rv-when { font: 400 12px/1.3 var(--mono); color: var(--muted); }
.rv-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink2); white-space: pre-line; overflow-wrap: anywhere; }
.rv-report { align-self: flex-start; padding: 0; min-height: 36px; background: none; border: 0; cursor: pointer; font: 400 13px/1.2 var(--sans); color: var(--muted);
  text-decoration: underline; text-underline-offset: 4px; }
.rv-more { margin-top: 16px; }

/* Report dialog */
.rt-dialog { width: min(560px, calc(100vw - 32px)); padding: 24px; color: var(--ink2); background: var(--panel2);
  border: var(--border-width) solid var(--ink2); border-radius: var(--r); }
.rt-dialog::backdrop { background: var(--bg); opacity: .8; }
.rt-dialog h2 { font: 600 19px/1.3 var(--sans); margin-bottom: 6px; }
.rt-report-form { display: flex; flex-direction: column; gap: 14px; }
.rt-report-form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; }
.rt-report-route { margin: 0; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.rt-radio { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); cursor: pointer; }
.rt-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.rt-report-msg { margin: 0; color: var(--ink); }
.rt-report-msg:empty { display: none; }

@media (max-width: 1100px) {
  .rt-row { flex-wrap: wrap; }
  .rt-row > .rt-grow { flex-basis: 100%; }
  .rt-cols.is-map { grid-template-columns: minmax(0, 1fr) 340px; }
  .rt-kunta-field { width: calc(50% - 8px); }
  .rv-body { grid-template-columns: 340px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  .rt-method { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .rt-filters { padding: 16px; gap: 14px; }
  .rt-row { gap: 12px; }
  .rt-sel-field { width: calc(50% - 6px); }
  .rt-field:has(.rt-segs) { width: 100%; }

  .rt-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .rt-kunta-field { width: 100%; }
  .rt-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .rt-view { display: grid; grid-template-columns: 1fr 1fr; }
  .rt-view[hidden] { display: none; }
  .rt-view-btn { justify-content: center; }
  .rt-cols.is-map { display: flex; flex-direction: column; gap: 0; margin: 0 -16px; }
  .rt-mapgl { height: 56vh; min-height: 340px; border-radius: 0; border-left: 0; border-right: 0; }
  .rt-mapcol .rt-legend, .rt-mapcol .rt-fine { padding: 0 16px; }
  .rt-cols.is-map .rt-listcol { max-height: none; min-height: 0; overflow: visible; margin-top: -18px; position: relative; z-index: 2;
    border-radius: 12px 12px 0 0; border-left: 0; border-right: 0; order: 0; }
  .rt-cols.is-map .rt-mapcol { order: -1; }
  .rt-cols.is-map .rt-listhead { border-radius: 12px 12px 0 0; padding-top: 18px; }
  .rt-cols.is-map .rt-listhead::before { content: ''; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--muted); }
  .rt-dialog.rv { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .rv-body { grid-template-columns: 1fr; gap: 24px; padding: 20px 16px 32px; }
  .rv-star { flex: 1; }
  .rv-star span { width: 100%; }
  .rv-form .btn-primary { width: 100%; }
  .rt-card { padding: 16px; }
  .rt-actions { gap: 0 20px; }
  .rt-actions .btn { width: 100%; justify-content: space-between; margin-bottom: 4px; }
  .rt-actions .rt-report-btn { margin-left: 0; }
  .rt-stats { grid-template-columns: repeat(3, 1fr); }
  .rt-band { grid-template-columns: 1fr; padding: 20px; }
  .rt-priv { padding: 16px 0 0; border-left: 0; border-top: var(--rule); }
  .rt-priv .btn { width: 100%; }
}

/* Legends of the radio groups line up with the labels of the other fields. */
fieldset.rt-field { display: block; }
fieldset.rt-field > legend { float: left; width: 100%; margin-bottom: 6px; }
fieldset.rt-field > legend + * { clear: both; }
.rt-more summary::after { content: '+'; margin-left: 8px; font: 400 16px/1 var(--mono); color: var(--muted); }
.rt-more[open] summary::after { content: '−'; }
@media (max-width: 760px) {
  .rt-segs { display: grid; grid-template-columns: auto 1fr 1fr; overflow: visible; }
  .rt-seg span { justify-content: center; padding: 6px 10px; white-space: normal; text-align: center; line-height: 1.2; height: 100%; }
}
@media (max-width: 420px) { .rt-sel-field { width: 100%; } }
.rt-morebtn[hidden], .rt-status .btn[hidden] { display: none; }
.rt-clear { padding: 0; background: none; border: 0; cursor: pointer; }
