Files
maptool/public/css/style.css
T

4168 lines
85 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* The UI accent (active items, selected options, primary buttons), from the
base map's Park Tiles palette: NPS boundary olive on a light sage. */
/* Palettes after IHO S-52's colour tables (docs/design.adoc): the same
tokens, three sets of values — Day (light ground, strong contrast against
bright sun), Dusk (dark ground, also by day), Night (dark, dim, little
blue: nothing brighter than the map). <html data-palette="dusk|night">
switches; Day is the default. Meanings never change between them. */
:root {
--rail: 72px; /* the labelled side rail */
--statusbar: 24px;
--panel: 400px; /* a side panel's width */
/* planning UI (NPS) */
--ui-bg: #ffffff;
--ui-bg-2: #f0f0f0; /* hover, subtle fills */
--ui-fg: #1a1a1a;
--ui-muted: #6b6b66;
--ui-line: #d9d6cc;
--accent: #546619;
--accent-bg: #e1e5cf;
/* The Unigrid black band (topbar) — also the instruments' bezel. */
--band: #1a1a1a;
--band-fg: #ffffff;
/* Instruments (the driving view), one meaning per color. Day: a light
card with dark values, as S-52's Day table (bright sun); the slider
fades the card, the values stay. */
--inst-bezel: 255 255 255; /* rgb, the card's opacity applied */
--inst-halo: #ffffff; /* the outline that keeps values readable over the map */
--inst-text: #1a1a1a;
--inst-muted: #5f6368;
--inst-ok: #1e8e3e;
--inst-caution: #b36b00;
--inst-warning: #d93025;
--inst-active: #a21caf; /* magenta: the route / waypoint / lane being followed */
--inst-selected: #00799a; /* cyan: a value set by hand */
--route-planned: #1d6fdc;
--route-driven: #c2410c; /* the recorded trip log: really driven */
--route-active: var(--inst-active);
/* road signs: still the sign (white disc, red ring), dimmed by night */
--sign-bg: #ffffff;
--sign-ring: #d32f2f;
--sign-fg: #111111;
}
:root[data-palette="dusk"] {
--ui-bg: #1f201d;
--ui-bg-2: #2a2b27; /* hover, subtle fills */
--ui-fg: #dedbd0;
--ui-muted: #9b988d;
--ui-line: #3a3a35;
--accent: #a5b84f;
--accent-bg: #353b20;
--band: #0f0f0e;
--band-fg: #dedbd0;
--inst-bezel: 15 15 14;
--inst-halo: #000000;
--inst-text: #e2dfd5;
--inst-muted: #8c8a82;
--inst-ok: #34b545;
--inst-caution: #e8a200;
--inst-warning: #ec3a2f;
--inst-active: #cc45e0;
--inst-selected: #12bedf;
--route-planned: #3f86e0;
--route-driven: #ea7a3c; /* the recorded trip log: really driven */
--sign-bg: #e4e1d6;
--sign-ring: #c42b26;
}
/* Night: about a third of Day's luminance, warm greys, blue kept low; the
UI never brighter than the map (S-52: added panels "should never
generate more light than the chart display itself"). */
:root[data-palette="night"] {
--ui-bg: #0c0c0b;
--ui-bg-2: #1c1c19; /* hover, subtle fills */
--ui-fg: #8f8b80;
--ui-muted: #5f5c55;
--ui-line: #34332d;
--accent: #6e7c32;
--accent-bg: #1d2113;
--band: #000000;
--band-fg: #8f8b80;
--inst-bezel: 0 0 0;
--inst-halo: #000000;
--inst-text: #a29d90;
--inst-muted: #5f5c55;
--inst-ok: #2a8a33;
--inst-caution: #a87400;
--inst-warning: #ad2a20;
--inst-active: #94339f;
--inst-selected: #137a8c;
--route-planned: #2a5a99;
--sign-bg: #6b675e;
--sign-ring: #8a231b;
--sign-fg: #0c0c0b;
--route-driven: #9a5a32;
}
/* The palette follows the night mode (map.js sets data-palette); the
MapLibre controls and popups (its own CSS is white) take it too. */
body { background: var(--ui-bg); color: var(--ui-fg); }
.maplibregl-ctrl-group, .maplibregl-popup-content, .maplibregl-ctrl-attrib { background: var(--ui-bg); color: var(--ui-fg); }
.maplibregl-ctrl-group button + button { border-top-color: var(--ui-line); }
.maplibregl-ctrl-group button { color: var(--ui-fg); }
.maplibregl-ctrl-scale { background-color: rgb(from var(--ui-bg) r g b / 0.75); color: var(--ui-fg); border-color: var(--ui-fg); }
.maplibregl-ctrl-attrib.maplibregl-compact, .maplibregl-ctrl-attrib-button { background-color: var(--ui-bg); }
.maplibregl-ctrl-attrib a { color: var(--ui-fg); }
.maplibregl-ctrl-group button:not(:disabled):hover { background-color: var(--ui-bg-2); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--ui-bg); }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--ui-bg); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--ui-bg); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--ui-bg); }
:root[data-palette] .maplibregl-ctrl-icon { filter: invert(0.75); }
:root[data-palette] { color-scheme: dark; } /* checkboxes, scrollbars, inputs */
:root[data-palette] .maplibregl-ctrl-group { background: var(--ui-bg-2); box-shadow: 0 0 0 1px var(--ui-line); }
:root[data-palette] .maplibregl-ctrl-group button:not(:disabled):hover { background-color: var(--ui-line); }
html, body {
height: 100%;
margin: 0;
font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Router-carved-signage display face (docs/nps-resources.adoc), used only
for the topbar wordmark below — a full body-text swap is a separate,
bigger decision this isn't. Bold is the only weight vendored since
.topbar__brand only ever renders at font-weight 700. */
@font-face {
font-family: "National Park";
src: url("/vendor/national-park-typeface/NationalPark-Bold.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}
#app {
height: 100%;
display: flex;
flex-direction: column;
}
.topbar {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 16px; /* the status dot, Drive, the night mode, the login: apart, to hit by touch */
height: 44px;
padding: 0 16px;
background: var(--band);
}
.topbar__brand {
font-family: "National Park", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 20px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #fff;
}
.topbar__center {
margin: 0 auto;
display: flex;
align-items: center;
gap: 14px;
}
.statusbar__coords,
.topbar__sun {
display: flex;
align-items: center;
gap: 5px;
font-size: 12px;
font-variant-numeric: tabular-nums;
color: #bbb;
}
.topbar__sun {
gap: 14px;
}
.topbar__group {
display: flex;
align-items: center;
gap: 5px;
}
.topbar__icon {
display: flex;
width: 13px;
height: 13px;
flex-shrink: 0;
}
.topbar__icon svg {
width: 100%;
height: 100%;
}
.statusbar__coords {
cursor: pointer;
color: inherit;
}
.statusbar__coords:hover {
color: var(--ui-fg);
}
.topbar__sun[hidden] {
display: none;
}
.topbar__sun {
cursor: pointer;
}
.topbar__sun:hover {
color: #fff;
}
/* Files shared to the installed app (share_import.js), waiting to be
imported. */
.share-import {
position: fixed;
bottom: 16px;
left: 50%;
transform: translateX(-50%);
z-index: 40;
width: 320px;
max-width: calc(100vw - 32px);
box-sizing: border-box;
padding: 12px;
background: #1a1a1a;
color: #ddd;
border-radius: 6px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
font-size: 13px;
}
.share-import__files {
margin: 6px 0;
padding-left: 18px;
max-height: 120px;
overflow-y: auto;
overflow-wrap: anywhere;
}
.share-import__folder {
display: flex;
align-items: center;
gap: 8px;
}
.share-import__folder input {
flex: 1;
min-width: 0;
padding: 4px 6px;
font: inherit;
}
.share-import__actions {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 12px;
margin-top: 10px;
}
.share-import__actions a {
color: #8fb8ff;
}
.share-import__status {
margin: 8px 0 0;
color: #f2a29a;
}
/* Horizon-style sun & moon chart, dropped down from the topbar's sun
readout (sun.js sunChartHtml). */
.sun-chart {
position: fixed;
top: 52px;
left: 50%;
transform: translateX(-50%);
z-index: 30;
width: 340px;
max-width: calc(100vw - 32px);
box-sizing: border-box;
padding: 10px;
background: #1a1a1a;
color: #ddd;
border-radius: 6px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
font-size: 12px;
}
.sun-chart[hidden] {
display: none;
}
.sun-chart__graph {
display: block;
width: 100%;
height: auto;
}
.sun-chart__night {
fill: #262a33;
}
.sun-chart__horizon {
stroke: #888;
stroke-width: 1;
}
.sun-chart__mark {
stroke: #555;
stroke-dasharray: 3 3;
}
.sun-chart__tick {
stroke: #888;
}
.sun-chart__label {
fill: #bbb;
font-size: 9px;
text-anchor: middle;
font-variant-numeric: tabular-nums;
}
.sun-chart__sun-path {
fill: none;
stroke: #666;
stroke-width: 2;
}
.sun-chart__sun-path--day {
stroke: #f2b632;
}
.sun-chart__moon-path {
fill: none;
stroke: #8fa3c7;
stroke-width: 1;
stroke-dasharray: 2 3;
}
.sun-chart__sun {
fill: #f2b632;
}
.sun-chart__moon-shadow {
fill: #3a3f4b;
stroke: #8fa3c7;
stroke-width: 0.5;
}
.sun-chart__moon {
fill: #e8ecf4;
}
.sun-chart__fields {
display: grid;
grid-template-columns: auto 1fr;
gap: 2px 12px;
margin: 8px 0 0;
font-variant-numeric: tabular-nums;
}
.sun-chart__fields dt {
color: var(--ui-muted);
}
.sun-chart__fields dd {
margin: 0;
}
.topbar__offline-status {
width: 8px;
height: 8px;
border-radius: 50%;
background: #666;
flex-shrink: 0;
}
.topbar__offline-status--ready {
background: #2a9d8f;
}
/* A newer version for the car's server (public/js/update.js). */
.topbar__update {
height: 32px;
padding: 0 10px;
border: none;
border-radius: 6px;
background: #2a9d8f;
color: #fff;
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.topbar__update:disabled { opacity: 0.7; cursor: progress; }
.topbar__auth {
margin-left: auto;
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #ccc;
}
.topbar__auth a {
color: #fff;
}
/* Phone width: the full bar (~450px) doesn't fit, so drop what's
redundant there — the wordmark (the installed app has its own name), the
username, and the sunset countdown (the sun chart still shows it). */
@media (max-width: 640px) {
.topbar {
padding: 0 8px;
gap: 8px;
}
.topbar__brand,
.topbar__auth > span,
.topbar__sun .topbar__group:nth-child(3) {
display: none;
}
.topbar__center,
.topbar__sun {
gap: 8px;
}
}
.app-body {
flex: 1;
display: flex;
min-height: 0;
}
.sidebar {
flex: 0 0 var(--rail);
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
padding: 8px 0;
background: var(--ui-bg);
border-right: 1px solid var(--ui-line);
/* No overflow-y:auto here: setting only one axis to a clipping value
forces the browser to compute the other axis as "auto" too (CSS
Overflow spec), which would clip the flyouts — they intentionally
poke out past the sidebar's own width. */
}
.sidebar-item {
position: relative;
}
/* Pinned to the bottom of the rail (the sidebar is a flex column). */
.sidebar-item--bottom {
margin-top: auto;
}
.sidebar-group-label {
align-self: stretch;
height: 1px;
margin: 6px 0;
background: #ccc;
}
.sidebar-group-label:first-child {
display: none;
}
.sidebar-icon {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border: none;
border-radius: 6px;
background: none;
color: var(--ui-fg);
cursor: pointer;
}
.sidebar-icon svg {
width: 20px;
height: 20px;
}
.sidebar-icon:hover {
background: var(--ui-bg-2);
}
.sidebar-icon.active {
background: var(--accent-bg);
color: var(--accent);
}
.sidebar-flyout {
position: absolute;
top: 0;
left: calc(var(--rail) - 6px);
z-index: 20;
min-width: max-content;
background: var(--ui-bg);
border: 1px solid var(--ui-line);
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
padding: 6px;
font-size: 13px;
}
.sidebar-flyout[hidden] {
display: none;
}
.sidebar-flyout__option {
display: block;
width: 100%;
padding: 6px 10px;
border: none;
border-radius: 4px;
background: none;
font: inherit;
font-size: 13px;
text-align: left;
white-space: nowrap;
cursor: pointer;
}
.sidebar-flyout__option:hover {
background: var(--ui-bg-2);
}
.sidebar-flyout__option.active {
background: var(--accent-bg);
font-weight: 600;
}
#map {
flex: 1;
min-width: 0;
position: relative;
}
.radar-control__playback {
display: flex;
align-items: center;
gap: 6px;
}
.radar-control__play {
border: none;
background: none;
padding: 2px 4px;
font-size: 13px;
cursor: pointer;
}
.radar-control__scrub {
width: 110px;
}
.radar-control__time {
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.radar-control__forecast {
margin-top: 6px;
padding-top: 6px;
border-top: 1px solid var(--ui-line);
}
.radar-control__forecast-hours {
display: flex;
gap: 10px;
overflow-x: auto;
padding-bottom: 6px;
margin-bottom: 4px;
border-bottom: 1px solid var(--ui-line);
}
.radar-control__forecast-hour {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
flex: 0 0 auto;
font-variant-numeric: tabular-nums;
}
.radar-control__forecast-hour span:first-child {
color: var(--ui-muted);
font-size: 11px;
}
.radar-control__forecast-day {
display: flex;
align-items: center;
gap: 8px;
padding: 2px 0;
white-space: nowrap;
}
.radar-control__forecast-day span:first-child {
width: 2.2em;
color: var(--ui-muted);
}
.radar-control__forecast-day span:nth-child(3) {
margin-left: auto;
font-variant-numeric: tabular-nums;
}
.radar-control__forecast-stale {
margin: 4px 0 0;
color: var(--ui-muted);
font-size: 11px;
}
.shadow-control__time {
display: flex;
align-items: center;
gap: 6px;
}
.shadow-control__slider {
width: 110px;
}
.shadow-control__clock {
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.shadow-control__hint {
margin: 6px 0 0;
color: var(--ui-muted);
font-size: 11px;
}
.basemap-panel {
position: fixed;
top: 44px; /* below the topbar, its title in view */
left: var(--rail);
width: var(--panel);
max-width: 90vw;
bottom: var(--statusbar);
display: flex;
flex-direction: column;
background: var(--ui-bg);
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
font-size: 13px;
z-index: 10;
}
.basemap-panel[hidden] {
display: none;
}
/* Pinned side panel: the map (and the profile panel under it) moves over
instead of being covered. Switching panels swaps the one in that spot. */
body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) #map {
margin-left: min(var(--panel), 90vw);
}
body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .profile-panel {
left: calc(var(--rail) + min(var(--panel), 90vw));
}
/* Phone portrait: a pinned 300px panel left the map a sliver, so there it
always floats over the map instead (closed by its × button). */
@media (max-width: 640px) {
body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) #map {
margin-left: 0;
}
body.side-pinned:has(.basemap-panel:not([hidden]), .gpx-panel:not([hidden])) .profile-panel {
left: var(--rail);
}
/* body: outranks .gpx-panel's own rule further down */
body .basemap-panel,
body .gpx-panel {
width: auto;
right: 0;
max-width: none;
}
.side-panel-pin {
display: none;
}
}
.side-panel-pin {
margin-left: auto;
margin-right: 4px;
padding: 2px;
border: none;
border-radius: 4px;
background: none;
color: var(--ui-muted);
cursor: pointer;
display: inline-flex;
}
.side-panel-pin:hover {
background: var(--ui-bg-2);
}
.side-panel-pin.active {
color: var(--accent);
}
.basemap-panel__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 12px;
border-bottom: 1px solid var(--ui-line);
}
.basemap-panel__close {
border: none;
background: none;
font-size: 18px;
line-height: 1;
padding: 0 4px;
cursor: pointer;
}
.basemap-panel__list {
padding: 6px;
}
.basemap-panel__link {
display: block;
padding: 10px;
font-size: 14px;
color: var(--accent);
}
button.basemap-panel__link { width: 100%; border: none; background: none; text-align: left; font-family: inherit; cursor: pointer; }
button.basemap-panel__link[hidden] { display: none; }
.basemap-panel__sources[hidden] {
display: none;
}
.basemap-panel__option {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 10px;
border: none;
border-radius: 4px;
background: none;
font: inherit;
font-size: 14px;
text-align: left;
cursor: pointer;
}
.basemap-panel__option:hover {
background: var(--ui-bg-2);
}
.basemap-panel__option.active {
background: var(--accent-bg);
font-weight: 600;
}
.basemap-panel__check {
color: var(--accent);
visibility: hidden;
}
.basemap-panel__option.active .basemap-panel__check {
visibility: visible;
}
/* Docked detail panel for a clicked hiking trail — replaces a map-anchored
Popup (which routinely covered up the very trail line it described) with
a fixed side panel, same "click info moves off the map" idea
track_profile.js already established for clicking a GPX track line
(TrackProfilePanel). .trail-panel__body gets the exact padding
.maplibregl-popup-content used (15px 10px) so routeHtml()'s own output —
built for that popup, including its header's canceling negative margin —
renders here unchanged; no separate panel-flavored template needed. */
.trail-panel {
position: fixed;
top: 44px;
right: 0;
bottom: var(--statusbar);
width: 300px;
max-width: 90vw;
background: var(--ui-bg);
border-left: 1px solid var(--ui-line);
box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
z-index: 10;
}
.trail-panel__body {
height: 100%;
box-sizing: border-box;
overflow-y: auto;
padding: 15px 10px;
font-size: 13px;
}
.trail-panel__close {
position: absolute;
top: 6px;
right: 6px;
border: none;
border-radius: 50%;
background: rgb(from var(--ui-bg) r g b / 0.85);
font-size: 18px;
line-height: 1;
padding: 2px 7px;
cursor: pointer;
}
/* First breakpoint in this file. Below it the same panel docks to the
bottom edge instead of the right one — a fixed-width side panel would
otherwise eat most of a phone-width map, the exact "popup dominates the
screen" problem this panel was meant to fix in the first place. */
@media (max-width: 640px) {
.trail-panel {
top: auto;
left: 0;
right: 0;
bottom: 0;
width: auto;
max-width: none;
max-height: 50vh;
border-left: none;
border-top: 1px solid var(--ui-line);
border-radius: 8px 8px 0 0;
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}
}
.debug-panel__body {
padding: 8px 12px;
overflow-y: auto;
}
.debug-panel__body summary {
cursor: pointer;
font-family: monospace;
padding: 3px 0;
}
.debug-panel__body pre {
margin: 2px 0 8px;
padding: 6px;
background: var(--ui-bg-2);
border-radius: 4px;
font-size: 11px;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.offline-data-panel__body {
padding: 8px 12px;
}
.offline-data-panel__regions-label {
margin: 0 0 4px;
font-weight: 600;
}
.offline-data-panel__region-filter {
width: 100%;
box-sizing: border-box;
margin-bottom: 4px;
padding: 6px 8px;
font: inherit;
}
/* Continents (collapsible) > countries > a country's subregions. */
.offline-data-panel__region-list {
max-height: 50vh;
overflow-y: auto;
border: 1px solid var(--ui-line);
border-radius: 4px;
}
/* Finger-sized (44 px, see the panel rule at the end) with the text in
the middle, not at the top of an otherwise empty row; a summary stays
display: list-item for its disclosure triangle. */
.offline-data-panel__continent > summary,
.offline-data-panel__subregions > summary {
box-sizing: border-box;
padding: 12px 8px;
cursor: pointer;
}
.offline-data-panel__continent > summary {
font-weight: 600;
background: var(--ui-bg-2);
border-bottom: 1px solid var(--ui-line);
}
.offline-data-panel__count {
font-weight: normal;
color: var(--accent);
}
.offline-data-panel__subregions {
margin-left: 26px;
border-left: 2px solid var(--ui-line);
}
/* Second-level, so smaller than the 44 px rows (and more specific than
that rule at the end). */
.offline-data-panel__region-list .offline-data-panel__subregions > summary {
min-height: 32px;
padding: 8px 8px;
color: var(--ui-muted);
font-size: 12px;
}
.offline-data-panel__region {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
}
.offline-data-panel__region[hidden],
.offline-data-panel__continent[hidden],
.offline-data-panel__subregions[hidden] {
display: none;
}
.offline-data-panel__region-list label {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 8px;
min-width: 0;
flex: 1;
cursor: pointer;
}
.offline-data-panel__region-list label:hover {
background: var(--ui-bg-2);
}
.offline-data-panel__cache-info {
display: flex;
align-items: center;
gap: 4px;
padding-right: 8px;
color: var(--ui-muted);
font-size: 11px;
white-space: nowrap;
}
.offline-data-panel__cache-delete {
border: none;
background: none;
padding: 0 2px;
color: #a33;
font-size: 11px;
cursor: pointer;
}
.offline-data-panel__cache-delete:hover {
text-decoration: underline;
}
.offline-data-panel__cache-delete:disabled {
opacity: 0.5;
cursor: default;
}
/* Same rounded-square badge ratio as icons.js's own MAP_MARKER_ICON
(rx 5 of a 22-wide square) — a consistent frame rather than however
each flag's own artwork happens to fill an unbordered square. */
.offline-data-panel__flag {
flex-shrink: 0;
width: 18px;
height: 18px;
border-radius: 4px;
border: 1px solid rgba(0, 0, 0, 0.15);
object-fit: cover;
}
.offline-data-panel__region-status {
padding: 6px 8px;
color: var(--ui-muted);
}
.offline-data-panel__apply {
margin-top: 8px;
width: 100%;
border: 1px solid var(--ui-line);
border-radius: 4px;
background: var(--ui-bg);
padding: 6px 8px;
font: inherit;
font-size: 12px;
cursor: pointer;
}
.offline-data-panel__apply:hover {
background: var(--ui-bg-2);
}
.offline-data-panel__apply:disabled {
opacity: 0.5;
cursor: default;
}
.offline-data-panel__row {
margin-top: 14px;
padding-top: 10px;
border-top: 1px solid var(--ui-line);
}
.offline-data-panel__row-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.offline-data-panel__delete {
border: 1px solid var(--ui-line);
border-radius: 4px;
background: var(--ui-bg);
padding: 2px 8px;
font: inherit;
font-size: 11px;
color: #a33;
cursor: pointer;
}
.offline-data-panel__delete:hover {
background: #fdecec;
}
.offline-data-panel__delete:disabled {
opacity: 0.5;
cursor: default;
}
.offline-data-panel__status {
margin: 6px 0 0;
color: var(--ui-muted);
font-size: 12px;
}
.offline-data-panel__status--error {
white-space: pre-wrap;
word-break: break-word;
max-height: 200px;
overflow-y: auto;
color: #b3261e;
}
.offline-data-panel__update-badge {
color: #b8860b;
}
.gpx-panel {
position: fixed;
top: 44px; /* below the topbar, its title in view */
left: var(--rail);
width: var(--panel);
max-width: 90vw;
bottom: var(--statusbar);
display: flex;
flex-direction: column;
background: var(--ui-bg);
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
font-size: 13px;
z-index: 10;
}
.gpx-panel[hidden] {
display: none;
}
.gpx-panel__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 12px;
border-bottom: 1px solid var(--ui-line);
}
.gpx-panel__actions {
display: flex;
align-items: center;
gap: 2px;
}
.gpx-panel__action {
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border: none;
border-radius: 6px;
background: none;
color: var(--ui-fg);
cursor: pointer;
}
/* This class's own "display: flex" above otherwise wins over the browser
default "[hidden] { display: none }" — same specificity, but an author
rule always outranks a user-agent one — so GpxPanelControl#mount hiding
these (logged out: no upload/new-folder) had no visual effect at all. */
.gpx-panel__action[hidden] {
display: none;
}
.gpx-panel__action svg {
width: 18px;
height: 18px;
}
.gpx-panel__action:hover {
background: var(--ui-bg-2);
}
.gpx-panel__close {
border: none;
background: none;
font-size: 18px;
line-height: 1;
padding: 0 4px;
cursor: pointer;
}
.gpx-upload__status {
margin: 0 12px 10px;
color: var(--ui-muted);
}
.gpx-tree {
/* flex:1 (not just overflow-y) so the tree fills the rest of the panel
even when short/empty — otherwise the blank space below it wouldn't
be part of the drop target and dropping a file there would silently
do nothing. */
flex: 1;
overflow-y: auto;
padding: 8px 12px;
}
.gpx-tree ul {
list-style: none;
margin: 0;
padding-left: 16px;
}
.gpx-tree > ul {
padding-left: 0;
}
.gpx-tree summary {
display: flex;
align-items: center;
cursor: pointer;
font-weight: 600;
border-radius: 3px;
list-style: none;
}
.gpx-tree summary::-webkit-details-marker {
display: none;
}
/* The open/close arrow for folders and tracks with points: a real hit area
(the browser's own marker, or a 12px glyph, was a fingertip miss). */
.gpx-tree summary::before {
content: "▸";
flex: none;
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 28px;
color: var(--ui-muted);
font-size: 13px;
transition: transform 0.15s;
}
.gpx-tree details[open] > summary::before {
transform: rotate(90deg);
}
.gpx-tree summary::before {
width: 36px;
height: 40px;
font-size: 16px;
}
.gpx-tree__folder-row {
display: inline-flex;
align-items: center;
justify-content: space-between;
gap: 4px;
flex: 1;
min-width: 0;
}
.gpx-tree__folder-row > :first-child {
flex: 1;
}
.gpx-tree summary.gpx-drop-hover {
background: #eef5fd;
outline: 1px dashed #4a90d9;
}
/* A track/route holding points: its row is the summary, the shared
.gpx-tree summary::before arrow opens the point list. */
.gpx-tree__track > summary {
font-weight: normal;
margin-left: -12px;
}
.gpx-tree__track > summary > .gpx-tree__file {
flex: 1;
min-width: 0;
}
.gpx-tree__point {
display: flex;
align-items: center;
gap: 4px;
}
.gpx-tree__point-name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 1px 0;
border: none;
background: none;
font: inherit;
text-align: left;
cursor: pointer;
}
.gpx-tree__point-name:hover {
text-decoration: underline;
}
.gpx-tree__file {
display: flex;
align-items: center;
gap: 4px;
padding: 2px 0;
cursor: grab;
}
.gpx-tree__file label {
display: flex;
align-items: center;
gap: 4px;
flex: 1;
min-width: 0;
cursor: pointer;
}
.gpx-tree__file-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: inherit;
text-decoration: none;
}
.gpx-tree__file-name:hover {
text-decoration: underline;
}
.gpx-tree__kind-icon {
flex-shrink: 0;
display: flex;
color: var(--ui-muted);
}
.gpx-tree__kind-icon svg {
width: 14px;
height: 14px;
}
.gpx-tree__download-wrapper {
position: relative;
flex-shrink: 0;
display: flex;
}
.gpx-tree__download {
flex-shrink: 0;
display: flex;
border: none;
background: none;
color: var(--ui-muted);
padding: 0 4px;
cursor: pointer;
}
.gpx-tree__download svg {
width: 14px;
height: 14px;
}
.gpx-tree__download:hover {
color: var(--ui-fg);
}
.gpx-tree__download-menu {
position: absolute;
top: 100%;
right: 0;
z-index: 20;
min-width: max-content;
background: var(--ui-bg);
border: 1px solid var(--ui-line);
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
padding: 4px;
font-size: 13px;
font-weight: normal;
}
.gpx-tree__download-menu[hidden] {
display: none;
}
.gpx-tree__download-menu-item {
display: block;
width: 100%;
border: none;
background: none;
font: inherit;
text-align: left;
padding: 6px 10px;
border-radius: 4px;
color: inherit;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
}
.gpx-tree__download-menu-item:hover {
background: var(--ui-bg-2);
}
.gpx-tree__delete {
flex-shrink: 0;
border: none;
background: none;
color: var(--ui-muted);
font-size: 14px;
line-height: 1;
padding: 0 4px;
cursor: pointer;
}
.gpx-tree__delete:hover {
color: #e63946;
}
.gpx-tree__empty {
color: var(--ui-muted);
font-style: italic;
}
.gpx-tree.gpx-drop-hover {
outline: 1px dashed #4a90d9;
outline-offset: -2px;
}
.gpx-legend {
flex-shrink: 0;
max-height: 160px;
overflow-y: auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2px 8px;
padding: 8px 12px;
border-top: 1px solid #1a1a1a;
}
.gpx-legend[hidden] {
display: none;
}
.gpx-legend__item {
display: flex;
align-items: center;
gap: 6px;
padding: 3px 4px;
border: none;
border-radius: 3px;
background: none;
font: inherit;
text-align: left;
cursor: pointer;
color: var(--ui-fg);
overflow: hidden;
}
.gpx-legend__item:hover {
background: var(--ui-bg-2);
}
.gpx-legend__item--hidden {
opacity: 0.35;
}
.gpx-legend__label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.gpx-legend__icon {
display: flex;
width: 14px;
height: 14px;
flex-shrink: 0;
color: var(--ui-fg);
}
.gpx-legend__icon svg {
width: 100%;
height: 100%;
}
.gpx-legend__swatch {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
}
#map.gpx-drop-hover::after {
content: "";
position: absolute;
inset: 0;
outline: 3px dashed #4a90d9;
outline-offset: -3px;
background: rgba(74, 144, 217, 0.08);
pointer-events: none;
}
.maplibregl-popup-content p {
margin: 4px 0 0;
}
.debug-popup .maplibregl-popup-content {
max-height: 320px;
overflow-y: auto;
}
.debug-popup__feature {
font-size: 11px;
font-family: monospace;
}
.debug-popup__feature + .debug-popup__feature {
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid var(--ui-line);
}
.debug-popup__feature table {
border-collapse: collapse;
width: 100%;
}
.debug-popup__feature th {
text-align: left;
color: var(--ui-muted);
font-weight: normal;
padding: 1px 6px 1px 0;
vertical-align: top;
white-space: nowrap;
}
.debug-popup__feature td {
word-break: break-word;
}
.maplibregl-ctrl-overview-map {
border-radius: 4px;
overflow: hidden;
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}
.measure-ctrl {
position: relative;
}
.measure-ctrl__button svg {
display: block;
margin: 0 auto;
width: 18px;
height: 18px;
}
.measure-ctrl__button.active {
background: var(--accent-bg);
}
.measure-panel {
position: absolute;
top: 0;
right: 100%;
margin-right: 8px;
z-index: 20;
min-width: max-content;
background: var(--ui-bg);
border: 1px solid var(--ui-line);
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
padding: 6px 8px;
font-size: 13px;
}
.measure-panel[hidden] {
display: none;
}
.measure-panel__controls {
display: flex;
align-items: center;
gap: 6px;
}
/* Same "author display wins over the UA [hidden] rule" gotcha as
.gpx-panel__action[hidden]/.notes-panel__form[hidden] elsewhere in this
file — this sets its own "display" too. */
.measure-panel__controls[hidden] {
display: none;
}
.measure-panel .measure-panel__save {
width: auto;
height: auto;
display: inline-block;
border: none;
border-radius: 4px;
background: none;
font-size: 14px;
line-height: 1;
cursor: pointer;
padding: 2px 4px;
}
.measure-panel__save:disabled {
opacity: 0.3;
cursor: default;
}
/* Same "author display wins over the UA [hidden] rule" gotcha as
.gpx-panel__action[hidden] elsewhere in this file. */
.measure-panel__save[hidden] {
display: none;
}
.measure-panel .notes-panel__form {
width: 200px;
}
/* ".measure-panel " prefix (not just ".measure-panel__mode") to outrank
".maplibregl-ctrl-group button" (higher specificity, since these buttons
sit inside a maplibregl-ctrl-group container for the ruler icon's own
sake) — its fixed 29x29 square + zero padding otherwise wins, clipping
"Distance"/"Area" into overlapping text instead of sizing to fit it. */
.measure-panel .measure-panel__mode {
width: auto;
height: auto;
display: inline-block;
white-space: nowrap;
padding: 4px 8px;
border: none;
border-radius: 4px;
background: none;
font: inherit;
font-size: 12px;
cursor: pointer;
}
.measure-panel__mode:hover {
background: var(--ui-bg-2);
}
.measure-panel__mode.active {
background: var(--accent-bg);
font-weight: 600;
}
.measure-panel__result {
min-width: 4em;
color: var(--ui-fg);
font-variant-numeric: tabular-nums;
}
.measure-panel .measure-panel__clear {
width: auto;
height: auto;
display: inline-block;
border: none;
background: none;
font-size: 16px;
line-height: 1;
color: var(--ui-muted);
cursor: pointer;
padding: 0 2px;
}
.measure-panel__clear:hover {
color: var(--ui-fg);
}
/* The search field in the topbar, its sources and results dropping down
under it (search.js). */
.topbar__search {
flex: 0 1 460px;
min-width: 0;
}
.search-ctrl {
position: relative;
}
.search-panel__form {
display: flex;
align-items: center;
gap: 8px;
height: 32px;
padding: 0 10px;
border-radius: 8px;
background: rgb(255 255 255 / 0.12);
color: #ddd;
}
.search-ctrl__icon svg {
display: block;
width: 16px;
height: 16px;
}
.search-ctrl__key {
font-family: inherit;
font-size: 12px;
padding: 0 6px;
border: 1px solid rgb(255 255 255 / 0.25);
border-radius: 4px;
color: #bbb;
}
.search-panel {
position: absolute;
top: 100%;
left: 0;
right: 0;
margin-top: 6px;
z-index: 30;
min-width: 300px;
background: var(--ui-bg);
border: 1px solid var(--ui-line);
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
padding: 6px 8px;
font-size: 13px;
/* Grows with its results up to the window's height (it opens ~10px
below the 44px topbar), then only the result list scrolls. */
display: flex;
flex-direction: column;
max-height: calc(100vh - 70px);
box-sizing: border-box;
}
.search-panel[hidden] {
display: none;
}
.search-panel__input {
flex: 1;
min-width: 0;
border: none;
background: none;
color: #fff;
font-family: inherit;
font-size: 14px;
outline: none;
}
.search-panel__input::placeholder {
color: #aaa;
}
.search-panel__results {
list-style: none;
margin: 0;
padding: 0;
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
}
.search-panel__result {
padding: 6px 4px;
border-radius: 4px;
cursor: pointer;
}
.search-panel__result:hover {
background: var(--ui-bg-2);
}
.search-panel__status {
padding: 6px 4px;
color: var(--ui-muted);
}
.search-panel__sources {
display: flex;
flex-wrap: wrap;
gap: 2px 10px;
margin-bottom: 6px;
font-size: 12px;
color: var(--ui-fg);
}
/* Pulsing ring left on the map where a point search result landed. */
.search-highlight {
width: 22px;
height: 22px;
border: 3px solid #e2442f;
border-radius: 50%;
box-shadow: 0 0 0 2px #fff;
cursor: pointer;
animation: search-highlight-pulse 1.4s ease-out infinite;
}
@keyframes search-highlight-pulse {
0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(226, 68, 47, 0.6); }
100% { box-shadow: 0 0 0 2px #fff, 0 0 0 16px rgba(226, 68, 47, 0); }
}
@media (prefers-reduced-motion: reduce) {
.search-highlight {
animation: none;
}
}
.search-panel__where {
display: block;
font-size: 11px;
color: var(--ui-muted);
overflow-wrap: anywhere;
}
.notes-ctrl {
position: relative;
}
.notes-ctrl__button svg {
display: block;
margin: 0 auto;
width: 18px;
height: 18px;
}
.notes-ctrl__button.active {
background: var(--accent-bg);
}
.notes-panel {
position: absolute;
top: 0;
right: 100%;
margin-right: 8px;
z-index: 20;
width: 200px;
background: var(--ui-bg);
border: 1px solid var(--ui-line);
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
padding: 8px;
font-size: 13px;
}
.notes-panel[hidden] {
display: none;
}
.notes-panel__modes {
display: flex;
gap: 4px;
margin-bottom: 6px;
}
.notes-panel__mode {
flex: 1;
width: auto;
height: auto;
padding: 4px 8px;
border: none;
border-radius: 4px;
background: var(--ui-bg-2);
font: inherit;
font-size: 12px;
cursor: pointer;
}
.notes-panel__mode.active {
background: var(--accent-bg);
font-weight: 600;
}
.notes-panel__hint {
margin: 0 0 6px;
color: var(--ui-muted);
}
.notes-panel__finish {
width: 100%;
box-sizing: border-box;
margin-bottom: 6px;
padding: 4px 8px;
border: none;
border-radius: 4px;
background: var(--accent);
color: #fff;
font: inherit;
font-size: 12px;
cursor: pointer;
}
.notes-panel__form {
display: flex;
flex-direction: column;
gap: 6px;
}
/* Same "author display wins over the UA [hidden] rule" gotcha as
.gpx-panel__action[hidden] above — both this and .notes-panel__modes set
their own "display", so hiding them needs an explicit override too. */
.notes-panel__form[hidden],
.notes-panel__modes[hidden] {
display: none;
}
.notes-panel__title,
.notes-panel__body {
width: 100%;
box-sizing: border-box;
font: inherit;
font-size: 12px;
padding: 4px 6px;
border: 1px solid var(--ui-line);
border-radius: 4px;
}
.notes-panel__title {
font-weight: 600;
}
.notes-panel__body {
resize: vertical;
}
.notes-panel__icons {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 2px;
margin: 2px 0;
max-height: 140px; /* ~330 icons: a scrolling grid, narrowed by the filter above */
overflow-y: auto;
}
.notes-panel__icon-filter {
width: 100%;
box-sizing: border-box;
}
/* Same "author display wins over the UA [hidden] rule" gotcha as
.gpx-panel__action[hidden] elsewhere in this file. */
.notes-panel__icon-picker[hidden],
.notes-panel__icon-option[hidden] {
display: none;
}
.notes-panel__icon-option {
width: auto;
height: auto;
display: flex;
align-items: center;
justify-content: center;
padding: 3px;
border: 1px solid transparent;
border-radius: 4px;
background: none;
color: var(--ui-fg);
cursor: pointer;
}
.notes-panel__icon-option svg {
width: 16px;
height: 16px;
}
.notes-panel__icon-option:hover {
background: var(--ui-bg-2);
}
.notes-panel__icon-option.active {
border-color: var(--accent);
color: var(--accent);
background: var(--accent-bg);
}
/* Point color swatches (PointStyleFields, notes.js); the first is "default". */
.notes-panel__colors {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin: 4px 0;
}
.notes-panel__color {
width: 24px;
height: 24px;
padding: 0;
border: 2px solid #fff;
border-radius: 50%;
background: var(--swatch, repeating-linear-gradient(45deg, var(--ui-bg) 0 3px, #ccc 3px 6px));
box-shadow: 0 0 0 1px #bbb;
cursor: pointer;
}
.notes-panel__color.active {
box-shadow: 0 0 0 2px var(--accent);
}
/* B / I above a note's text (formatToolbar, notes.js). */
.notes-panel__format {
display: flex;
gap: 4px;
margin: 4px 0 2px;
}
.notes-panel__format button {
min-width: 32px;
height: 28px;
border: 1px solid var(--ui-line);
border-radius: 4px;
background: var(--ui-bg);
font: inherit;
cursor: pointer;
}
.notes-panel__format button:hover {
background: var(--ui-bg-2);
}
/* Moving a note: the marker takes the accent color, the hint + Save/Cancel
ride in a popup above it. */
.note-move-marker {
background: var(--accent);
}
.gpx-popup__move-bar p {
margin: 0 0 6px;
font-size: 13px;
}
.notes-panel__color {
width: 32px;
height: 32px;
}
.notes-panel__format button {
min-width: 44px;
height: 36px;
}
/* The pending-note marker shown on the map while the save form is open —
updates live to whatever icon is picked (see notes.js's onIconChange). A
plain round badge (not a drop-pin shape) since MapLibre anchors a custom
marker element at its center, and a pin's usual tip-points-at-the-spot
shape needs a bottom anchor to line up correctly. */
.notes-panel__preview-marker {
width: 26px;
height: 26px;
border-radius: 50%;
background: #c0392b;
border: 2px solid #fff;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
}
.notes-panel__preview-marker svg {
width: 15px;
height: 15px;
}
.notes-panel__target,
.notes-panel__new-name {
width: 100%;
box-sizing: border-box;
font: inherit;
font-size: 12px;
padding: 4px 6px;
border: 1px solid var(--ui-line);
border-radius: 4px;
}
.notes-panel__actions {
display: flex;
justify-content: flex-end;
gap: 6px;
}
.notes-panel__actions button {
/* Without this, some browsers (GTK-themed Chrome on Linux in
particular) paint their own native hover/active highlight over a
button's background instead of leaving a custom one alone — the
Save button visibly went white on hover because of exactly this. */
appearance: none;
width: auto;
height: auto;
padding: 4px 10px;
border: none;
border-radius: 4px;
background: var(--ui-bg-2);
font: inherit;
font-size: 12px;
cursor: pointer;
}
/* ".notes-panel__actions " prefix (not just ".notes-panel__save") to
outrank ".notes-panel__actions button" — same class-count-vs-class+
element specificity trap as elsewhere in this file; without it this
lost and the Save button just looked like a second Cancel button. */
.notes-panel__actions .notes-panel__save {
background: var(--accent);
color: #fff;
}
.pitch-toggle-ctrl__button {
width: 29px;
height: 29px;
font-size: 11px;
font-weight: 600;
}
.rotation-lock-ctrl button svg {
width: 18px;
height: 18px;
}
.pitch-toggle-ctrl__button.active {
background: var(--accent-bg);
}
.gpx-popup__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin: -15px -10px 8px;
padding: 10px 12px;
background: #1a1a1a;
color: #fff;
}
.hiking-trail-popup__swatch {
flex-shrink: 0;
width: 14px;
height: 14px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.6);
}
.gpx-popup__header-icon {
flex-shrink: 0;
width: 18px;
height: 18px;
color: #fff;
}
.gpx-popup__header-icon svg {
width: 100%;
height: 100%;
}
.gpx-popup__edited {
margin: 4px 0;
font-size: 12px;
color: #5a6b3a;
}
.gpx-popup__approximate {
margin: 4px 0;
font-size: 12px;
color: #a35d00;
}
.gpx-popup__time {
color: var(--ui-muted);
font-size: 12px;
}
.gpx-popup__wiki {
margin-top: 6px;
font-size: 12px;
}
.gpx-popup__category {
color: var(--ui-muted);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.gpx-popup__description {
line-height: 1.4;
}
.gpx-popup__photos {
display: flex;
gap: 4px;
margin: 4px 0;
overflow-x: auto;
}
.gpx-popup__photo {
width: 64px;
height: 64px;
flex-shrink: 0;
object-fit: cover;
border-radius: 4px;
}
.gpx-popup__meta {
margin-top: 8px;
padding-top: 6px;
border-top: 1px solid var(--ui-line);
font-size: 12px;
line-height: 1.5;
}
.gpx-popup__meta-row + .gpx-popup__meta-row {
margin-top: 2px;
}
.gpx-popup__meta-label {
color: var(--ui-muted);
margin-right: 4px;
}
.gpx-popup__tags {
display: flex;
flex-wrap: wrap;
gap: 4px 10px;
margin-top: 2px;
}
.gpx-popup__tag {
display: inline-flex;
align-items: center;
gap: 3px;
}
.gpx-popup__tag-icon {
display: flex;
width: 13px;
height: 13px;
color: var(--ui-fg);
flex-shrink: 0;
}
.gpx-popup__tag-icon svg {
width: 100%;
height: 100%;
}
.gpx-popup__link {
margin-top: 6px;
font-size: 12px;
}
.gpx-popup__note-actions,
.gpx-popup__edit-actions {
display: flex;
gap: 6px;
margin-top: 8px;
padding-top: 6px;
border-top: 1px solid var(--ui-line);
}
.gpx-popup__note-actions button,
.gpx-popup__edit-actions button {
border: none;
border-radius: 4px;
background: var(--ui-bg-2);
padding: 3px 8px;
font: inherit;
font-size: 12px;
cursor: pointer;
}
.gpx-popup__edit-actions .gpx-popup__edit-save {
background: var(--accent);
color: #fff;
}
.gpx-popup__edit-title,
.gpx-popup__edit-body {
width: 100%;
box-sizing: border-box;
font: inherit;
font-size: 13px;
padding: 4px 6px;
border: 1px solid var(--ui-line);
border-radius: 4px;
margin-bottom: 6px;
}
.gpx-popup__edit-title {
font-weight: 600;
}
.gpx-popup__edit-body {
resize: vertical;
}
.gnss-control__status {
color: var(--ui-muted);
white-space: nowrap;
}
.gnss-marker {
width: 14px;
height: 14px;
border: 2px solid #fff;
border-radius: 50%;
background: #2a9d8f;
box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.4);
}
.overlays-panel__list {
flex: 1;
overflow-y: auto;
list-style: none;
margin: 0;
padding: 8px 12px;
}
.overlays-panel__item label {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 4px;
border-radius: 4px;
cursor: pointer;
}
.overlays-panel__item label:hover {
background: var(--ui-bg-2);
}
.overlays-panel__icon {
display: flex;
width: 16px;
height: 16px;
flex-shrink: 0;
color: var(--ui-fg);
}
.overlays-panel__icon svg {
width: 100%;
height: 100%;
}
/* Category headings between the Overlays items (overlays.js). */
.overlays-panel__group {
margin: 10px 4px 2px;
font-size: 11px;
font-weight: 600;
color: var(--ui-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.overlays-panel__group:first-child {
margin-top: 0;
}
.overlays-panel__row {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 4px;
}
.overlays-panel__name {
border: none;
background: none;
padding: 0;
font: inherit;
color: inherit;
text-align: left;
cursor: pointer;
}
.overlays-panel__name:hover {
text-decoration: underline;
}
.overlays-panel__details {
margin: 0 4px 6px 26px;
padding-top: 6px;
border-top: 1px solid var(--ui-line);
font-size: 12px;
}
.hiking-trail-countries {
display: flex;
flex-wrap: wrap;
gap: 4px 12px;
list-style: none;
margin: 0;
padding: 0;
}
.hiking-trail-kinds {
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px solid var(--ui-line);
}
.hiking-trail-countries__item label {
display: flex;
align-items: center;
gap: 4px;
cursor: pointer;
}
.livetrack-panel__list {
flex: 1;
overflow-y: auto;
list-style: none;
margin: 0;
padding: 8px 12px;
}
.livetrack-panel__item {
border-bottom: 1px solid var(--ui-line);
}
.livetrack-panel__row {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
padding: 6px 4px;
border: none;
border-radius: 4px;
background: none;
font: inherit;
text-align: left;
cursor: pointer;
}
.livetrack-panel__row:hover {
background: var(--ui-bg-2);
}
.livetrack-panel__row.active {
background: #f1e6fb;
}
.livetrack-panel__row.loading {
opacity: 0.6;
cursor: wait;
}
.livetrack-panel__row:disabled {
opacity: 0.5;
cursor: default;
}
.livetrack-panel__label {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.livetrack-panel__label--id {
font-family: monospace;
}
.livetrack-badge {
flex-shrink: 0;
padding: 2px 6px;
border-radius: 3px;
background: var(--ui-bg-2);
color: var(--ui-muted);
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.livetrack-badge--live {
background: #d7f3e3;
color: #1b7a43;
}
.livetrack-panel__time {
flex-shrink: 0;
color: var(--ui-muted);
font-size: 12px;
}
.profile-panel {
position: fixed;
left: var(--rail);
right: 0;
bottom: var(--statusbar);
max-height: 45vh;
display: flex;
flex-direction: column;
background: var(--ui-bg);
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
z-index: 10;
}
.profile-panel[hidden] {
display: none;
}
.profile-panel__header {
display: flex;
align-items: baseline;
gap: 10px;
padding: 10px 14px;
border-bottom: 1px solid #e1e0d9;
}
.profile-panel__title {
font-size: 14px;
}
.profile-panel__stats {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #52514e;
font-size: 13px;
}
.profile-panel__close {
border: none;
background: none;
font-size: 18px;
line-height: 1;
padding: 0 4px;
cursor: pointer;
color: var(--ui-muted);
}
.profile-panel__charts {
position: relative;
overflow-y: auto;
padding: 8px 14px 14px;
}
.profile-chart {
padding-top: 8px;
}
.profile-chart + .profile-chart {
border-top: 1px solid #e1e0d9;
}
.profile-chart__label {
font-size: 11px;
color: var(--ui-muted);
margin-bottom: 2px;
}
.profile-chart__unit {
font-weight: normal;
}
.profile-chart__plot {
position: relative;
}
.profile-chart__svg {
display: block;
width: 100%;
height: 100%;
cursor: crosshair;
}
.profile-chart__crosshair {
stroke: #898781;
stroke-width: 1;
vector-effect: non-scaling-stroke;
}
/* Overlaid as plain HTML, not SVG text: the chart's viewBox scales width
and height independently (preserveAspectRatio="none", so the line fills
a responsive width at a fixed pixel height) — text drawn inside that
coordinate space would get stretched by the same mismatched factor. */
.profile-chart__axis-value {
position: absolute;
left: 4px;
color: var(--ui-muted);
font-size: 10px;
line-height: 1;
background: rgb(from var(--ui-bg) r g b / 0.75);
padding: 1px 3px;
border-radius: 2px;
pointer-events: none;
}
.profile-chart__axis-value--max {
top: 2px;
}
.profile-chart__axis-value--min {
bottom: 2px;
}
.profile-panel__controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px 8px;
margin-bottom: 4px;
font-size: 11px;
color: var(--ui-muted);
}
.profile-panel__controls-spacer {
flex: 1;
}
.profile-panel__toggle {
display: inline-flex;
gap: 4px;
}
.profile-panel__plots {
position: relative;
}
/* Segment numbers over the charts, centred on their segment. */
.profile-panel__segments {
position: relative;
height: 16px;
}
.profile-panel__segments span {
position: absolute;
transform: translateX(-50%);
min-width: 14px;
padding: 0 3px;
border: 1px solid #e1e0d9;
border-radius: 3px;
background: var(--ui-bg);
color: #52514e;
font-size: 10px;
line-height: 13px;
text-align: center;
}
.profile-chart__segment {
fill: #0b0b0b;
fill-opacity: 0.05;
}
.profile-panel__xaxis-toggle-btn {
border: 1px solid #e1e0d9;
background: var(--ui-bg);
color: #52514e;
font-size: 11px;
padding: 2px 8px;
border-radius: 3px;
cursor: pointer;
}
.profile-panel__xaxis-toggle-btn.active {
background: #0b0b0b;
border-color: #0b0b0b;
color: #fff;
}
.profile-stats {
margin-top: 8px;
font-size: 0.85em;
}
.profile-stats table {
border-collapse: collapse;
}
.profile-stats td,
.profile-stats th {
padding: 1px 10px 1px 0;
white-space: nowrap;
}
.profile-stats th {
text-align: left;
font-weight: 600;
color: var(--ui-muted);
}
.profile-chart__trails {
display: block;
width: 100%;
height: 10px;
background: var(--ui-bg-2);
}
.profile-panel__xaxis {
position: relative;
height: 14px;
margin-top: 6px;
}
.profile-panel__xaxis-tick {
position: absolute;
top: 0;
transform: translateX(-50%);
font-size: 10px;
color: var(--ui-muted);
white-space: nowrap;
}
.profile-panel__xaxis-tick:first-child {
transform: translateX(0);
}
.profile-panel__xaxis-tick:last-child {
transform: translateX(-100%);
}
.profile-panel__tooltip {
position: absolute;
top: 0;
z-index: 1;
pointer-events: none;
background: #0b0b0b;
color: #fff;
border-radius: 4px;
padding: 6px 8px;
font-size: 12px;
white-space: nowrap;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.profile-panel__tooltip[hidden] {
display: none;
}
.profile-panel__tooltip-distance {
font-weight: 600;
margin-bottom: 2px;
}
.profile-panel__tooltip-label {
color: #c3c2b7;
}
.plugins-panel__body {
padding: 8px 12px;
overflow-y: auto;
}
.plugins-panel__hint {
margin: 0 0 6px;
color: var(--ui-muted);
font-size: 11px;
}
.plugins-panel__list {
list-style: none;
margin: 0;
padding: 0;
}
/* Name (wraps), the whole Run button, the status on a line of its own. */
.plugins-panel__item {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px 8px;
padding: 8px 0;
}
.plugins-panel__item + .plugins-panel__item {
box-shadow: inset 0 1px var(--ui-line);
}
.plugins-panel__label {
flex: 1;
min-width: 0;
}
.plugins-panel__run {
/* See .notes-panel__actions button's own comment — without this some
browsers paint their own hover/active highlight over a custom
background. */
appearance: none;
padding: 4px 10px;
border: none;
border-radius: 4px;
background: var(--accent);
color: #fff;
font: inherit;
font-size: 12px;
white-space: nowrap;
flex-shrink: 0;
cursor: pointer;
}
.plugins-panel__run:disabled {
opacity: 0.6;
cursor: default;
}
.plugins-panel__status {
flex-basis: 100%;
color: var(--ui-muted);
font-size: 11px;
}
.plugins-panel__status:empty {
display: none;
}
.plugins-panel__status--error {
color: #c62828;
}
.plugins-panel__empty {
color: var(--ui-muted);
white-space: normal;
max-width: 200px;
}
/* Route panel (public/js/route.js) */
.route-panel__body {
padding: 10px 12px;
overflow-y: auto;
}
.route-panel__hint,
.route-panel__summary {
margin: 0 0 8px;
color: var(--ui-muted);
}
.route-panel__summary {
color: var(--ui-fg);
font-weight: 600;
}
/* the totals as a card (empty: no route yet, no card) */
.route-panel__summary:not(:empty) {
padding: 8px 10px;
border-radius: 8px;
background: var(--ui-bg-2);
}
.route-panel__points {
margin: 0 0 8px;
padding: 0;
list-style: none;
}
.route-panel__points li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 3px 0;
}
.route-panel__remove {
border: none;
background: none;
color: var(--ui-muted);
font-size: 14px;
cursor: pointer;
}
.route-panel__remove:hover {
color: #e63946;
}
/* 📍 off: a faded pin; on: saved as a navigation point. */
.route-panel__nav {
filter: grayscale(1);
opacity: 0.35;
font-size: 12px;
}
.route-panel__nav.active {
filter: none;
opacity: 1;
}
.route-panel__saved {
margin-bottom: 8px;
}
.route-panel__saved input {
width: 100%;
box-sizing: border-box;
font: inherit;
}
.route-panel__saved ul {
list-style: none;
margin: 4px 0 0;
padding: 0;
max-height: 200px;
overflow-y: auto;
}
.route-panel__saved li button {
display: block;
width: 100%;
text-align: left;
border: none;
background: none;
padding: 4px 6px;
font: inherit;
cursor: pointer;
}
.route-panel__saved li button:hover,
.route-panel__saved li button:focus-visible {
background: #eef3fb;
}
.route-panel__directions,
.route-panel__fold {
margin-bottom: 8px;
}
.route-panel__fold summary {
cursor: pointer;
}
.route-panel__fold .route-panel__reach {
margin-top: 6px;
}
.route-panel__directions ol {
margin: 6px 0 0;
padding-left: 20px;
}
.route-panel__vehicle {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
border: 1px solid var(--ui-line);
border-radius: 4px;
}
.route-panel__vehicle[hidden] {
display: none;
}
.route-panel__vehicle input {
width: 4.5em;
}
.route-panel__vehicle [hidden],
.route-panel__avoid[hidden] {
display: none;
}
.route-panel__avoid {
display: flex;
gap: 8px;
align-items: center;
}
.route-panel__countries {
margin: 0;
padding-left: 1.2em;
font-size: 0.9em;
}
.route-panel__vehicle-row {
display: flex;
gap: 6px;
align-items: center;
}
.route-panel__vehicle-name,
.route-panel__vehicle-hint {
grid-column: 1 / -1;
}
.route-panel__vehicle-name input {
width: 12em;
}
.route-panel__vehicle-hint {
margin: 0;
font-size: 0.85em;
color: var(--ui-muted);
}
.route-marker {
width: 22px;
height: 22px;
border-radius: 50%;
background: #1d6fdc;
border: 2px solid #fff;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
color: #fff;
font: 600 11px/22px sans-serif;
text-align: center;
cursor: grab;
}
/* An invisible 48px grab area around the 26px dot: a finger missed the dot
itself and panned the map instead (the marker is already absolutely
positioned by MapLibre, so this needs no position of its own). */
.route-marker::after {
content: "";
position: absolute;
inset: -11px;
}
.route-panel__remove:disabled {
visibility: hidden;
}
.route-panel__point {
flex: 1;
}
.route-panel__editing {
margin: 0 0 8px;
color: #1d6fdc;
}
.route-panel__editing[hidden] {
display: none;
}
.search-panel__route,
.gpx-popup__route {
border: 1px solid var(--ui-line);
border-radius: 4px;
background: var(--ui-bg);
font: inherit;
font-size: 12px;
cursor: pointer;
}
.search-panel__route {
float: right;
margin-left: 6px;
padding: 0 6px;
}
.gpx-popup__route {
display: block;
margin-top: 6px;
padding: 3px 8px;
}
/* Places that preview on hover / press-and-hold (public/js/preview.js):
no text selection or callout menu getting in the way of the hold. */
.search-panel__result,
.route-panel__point {
-webkit-touch-callout: none;
user-select: none;
}
.route-panel__point {
cursor: pointer;
}
.preview-highlight {
pointer-events: none;
}
.route-panel__profile,
.route-panel__reach button,
.route-panel__reach select {
border: 1px solid var(--ui-line);
border-radius: 4px;
background: var(--ui-bg);
padding: 3px 6px;
font: inherit;
font-size: 12px;
cursor: pointer;
}
.route-panel__profile {
margin-bottom: 8px;
}
.route-panel__profile[hidden],
.route-panel__reach button[hidden],
.route-panel__reach-status[hidden] {
display: none;
}
.route-panel__reach {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 8px;
}
.route-panel__reach-status {
margin: 0 0 8px;
color: var(--ui-muted);
}
/* Vehicle & ITS-G5 overlay (live.js): its status line and popup table. */
.live-panel__status {
margin: 4px 0 0 26px;
font-size: 12px;
color: var(--ui-muted);
}
.live-panel__show {
padding: 0;
border: none;
background: none;
color: var(--accent);
font: inherit;
text-decoration: underline;
cursor: pointer;
}
.live-popup th {
padding-right: 8px;
color: var(--ui-muted);
font-weight: normal;
text-align: left;
}
/* NPS park maps overlay (nps.js): park search, the shown map's opacity, and
the park popup listing its maps. */
.nps-panel {
margin: 6px 0 0 26px;
}
.nps-panel__search {
width: 100%;
box-sizing: border-box;
padding: 5px 8px;
font: inherit;
}
.nps-panel__results {
list-style: none;
margin: 2px 0 0;
padding: 0;
}
.nps-panel__results button {
width: 100%;
padding: 5px 6px;
border: none;
background: none;
font: inherit;
text-align: left;
cursor: pointer;
}
.nps-panel__results button:hover {
background: var(--accent-bg);
}
.nps-panel__results small,
.nps-panel__none {
color: var(--ui-muted);
}
.nps-panel__shown {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px 8px;
margin-top: 6px;
font-size: 12px;
}
.nps-panel__shown[hidden] {
display: none;
}
.nps-panel__shown-title {
flex-basis: 100%;
font-weight: 600;
}
.nps-panel__hide {
border: none;
background: none;
color: #a33;
cursor: pointer;
}
.nps-popup ul {
list-style: none;
margin: 6px 0 0;
padding: 0;
max-height: 260px;
overflow-y: auto;
}
.nps-popup li {
padding: 4px 0;
border-top: 1px solid var(--ui-line);
}
.nps-popup__title {
font-size: 12px;
}
.nps-popup__links {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px 10px;
margin-top: 2px;
font-size: 12px;
}
.nps-popup__links a {
color: var(--accent);
}
.nps-popup__links button {
padding: 2px 8px;
border: 1px solid var(--accent);
border-radius: 4px;
background: var(--ui-bg);
color: var(--accent);
font: inherit;
cursor: pointer;
}
.nps-popup__links button.active {
background: var(--accent);
color: #fff;
}
/* Tracker overlay settings (live.js). */
.live-tracker__settings {
display: flex;
flex-direction: column;
gap: 6px;
}
/* Same "author display wins over the UA [hidden] rule" gotcha as
.gpx-panel__action[hidden]. */
.live-tracker__settings[hidden] {
display: none;
}
.live-tracker__row {
display: flex;
align-items: center;
gap: 6px;
}
.live-tracker__row input[type="range"] {
flex: 1;
}
.live-tracker__name-input {
padding: 4px 6px;
font: inherit;
}
.live-tracker__save {
align-self: flex-start;
padding: 4px 14px;
border: none;
border-radius: 4px;
background: var(--accent);
color: #fff;
font: inherit;
cursor: pointer;
}
/* The tracker's floating info card over the map (per-device opacity). */
.live-tracker-card {
position: absolute;
left: 12px;
bottom: 36px;
z-index: 3;
min-width: 170px;
padding: 8px 10px;
border-radius: 8px;
background: var(--ui-bg);
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
font-size: 12px;
cursor: pointer;
}
.live-tracker-card__title {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 4px;
font-weight: 600;
font-size: 13px;
}
.live-tracker-card__icon {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
border-radius: 5px;
color: #fff;
}
.live-tracker-card__icon svg {
width: 14px;
height: 14px;
}
.live-tracker-card th {
padding-right: 10px;
color: var(--ui-muted);
font-weight: normal;
text-align: left;
}
/* Big enough to hit while driving. */
.live-tracker-card__nav {
display: block;
width: 100%;
min-height: 44px;
margin-top: 6px;
border: none;
border-radius: 6px;
background: var(--accent);
color: #fff;
font: inherit;
font-size: 15px;
font-weight: 600;
cursor: pointer;
}
.live-tracker-card__nav.active {
background: #c0392b;
}
.topbar__night {
min-width: 40px;
height: 40px;
border: none;
border-radius: 6px;
background: none;
color: #ddd;
font-size: 26px;
line-height: 1;
cursor: pointer;
}
.topbar__night:hover {
background: #333;
color: #fff;
}
/* Finger-sized (~44 px, Apple/Material) rows and controls in the side
panels (Overlays, Tracks & Points, base map, route, …) and the sidebar
menus — on desktop too, as OsmAnd does: one layout for the tablet in the
car and the mouse, actions behind a ⋯ menu rather than a row of small
buttons. */
:is(.basemap-panel, .gpx-panel, .sidebar-flyout) :is(label, summary, button, select, .overlays-panel__row, .gpx-tree__point, .gpx-tree__file) {
min-height: 44px;
}
:is(.basemap-panel, .gpx-panel, .sidebar-flyout) :is(button, select) {
min-width: 44px;
}
:is(.basemap-panel, .gpx-panel) input:is([type="checkbox"], [type="radio"]) {
width: 22px;
height: 22px;
flex-shrink: 0;
}
/* List dividers as in OsmAnd: a hairline between sibling rows (an inset
shadow, so the 44 px rows don't grow) — a folder's line comes after
its contents, not under its own name — and each section heading on a
gray band, so it's
clear what belongs together, not just text spaced apart. */
.overlays-panel__item + .overlays-panel__item,
.gpx-tree li + li,
.sidebar-flyout__option + .sidebar-flyout__option,
.gpx-tree__download-menu-item + .gpx-tree__download-menu-item {
box-shadow: inset 0 1px var(--ui-line);
}
.gpx-tree__download-menu-item + .gpx-tree__download-menu-item,
.sidebar-flyout__option + .sidebar-flyout__option {
border-radius: 0;
}
.overlays-panel__group {
margin: 10px -12px 0;
padding: 8px 16px 6px;
background: var(--ui-bg-2);
border-top: 1px solid var(--ui-line);
border-bottom: 1px solid var(--ui-line);
}
.overlays-panel__group:first-child {
margin-top: -8px;
border-top: none;
}
/* Panel headers: one row of equal, finger-sized icon buttons (actions,
export menu, pin, close) in one color, the title cut short rather than
wrapped. */
:is(.gpx-panel__header, .basemap-panel__header) {
gap: 4px;
padding: 2px 4px 2px 12px;
}
:is(.gpx-panel__header, .basemap-panel__header) > strong {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.gpx-panel__actions {
gap: 0;
}
:is(.gpx-panel__header, .basemap-panel__header) :is(.gpx-panel__action, .gpx-panel__close, .basemap-panel__close, .side-panel-pin, .gpx-tree__download) {
width: 40px;
min-width: 40px;
height: 44px;
margin: 0;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--ui-fg);
}
.gpx-panel__action[hidden] {
display: none;
}
/* The car's dashboard over the map (public/js/dashboard.js), in the
cockpit style (docs/design.adoc): the black band as a see-through bezel,
light values, colors only for meaning. */
.dash-card {
position: absolute;
right: 12px;
bottom: 36px;
z-index: 3;
padding: 8px;
border-radius: 12px;
background: rgb(var(--inst-bezel) / var(--dash-alpha, 0.45));
backdrop-filter: blur(2px);
box-shadow: 0 1px 6px rgb(0 0 0 / calc(var(--dash-alpha, 0.45) * 0.6));
color: var(--inst-text);
text-align: center;
pointer-events: none;
/* readable over a light map whatever the bezel's opacity */
text-shadow: 0 0 3px var(--inst-halo), 0 0 3px var(--inst-halo);
font-family: system-ui, sans-serif;
}
.dash-incl {
display: block;
width: 190px;
height: 190px;
}
.dash-incl text { text-anchor: middle; dominant-baseline: middle; fill: var(--inst-text); paint-order: stroke; stroke: var(--inst-halo); stroke-width: 3px; }
.dash-face { fill: rgb(var(--inst-bezel) / calc(var(--dash-alpha, 0.45) * 0.6)); stroke: var(--inst-muted); stroke-width: 2; }
.dash-ring line { stroke: var(--inst-muted); stroke-width: 2; }
.dash-ring text { font-size: 14px; font-weight: 600; }
.dash-ring .dash-n { fill: var(--inst-warning); }
.dash-lubber { fill: var(--inst-active); }
.dash-heading { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-ground { stroke: var(--inst-muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
.dash-car { fill: var(--inst-text); }
.dash-wheel { fill: var(--inst-muted); }
.dash-value { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-caption { font-size: 10px; fill: var(--inst-muted) !important; text-transform: uppercase; letter-spacing: 0.05em; }
.dash-incl .dash-warn { fill: var(--inst-caution); }
.dash-incl .dash-bad { fill: var(--inst-warning); }
.dash-speed { font-size: 12px; color: var(--inst-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dash-speed span { font-size: 34px; font-weight: 700; color: var(--inst-text); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.dash-alt { font-size: 11px; color: var(--inst-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dash-alt span { font-size: 18px; font-weight: 700; color: var(--inst-text); font-variant-numeric: tabular-nums; letter-spacing: 0; }
/* Navigation on the dashboard: the speed limit sign and what's ahead. */
.dash-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; text-align: left; font-size: 13px; }
/* a road sign stays a road sign: white disc, red ring, black figures */
.dash-limit {
display: inline-flex; align-items: center; justify-content: center; flex: none;
width: 56px; height: 56px; box-sizing: border-box; border: 7px solid var(--sign-ring); border-radius: 50%;
background: var(--sign-bg); color: var(--sign-fg); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: none;
}
.dash-limit[hidden] { display: none; }
.dash-limit--small { width: 26px; height: 26px; border-width: 3px; font-size: 11px; vertical-align: middle; }
/* no limit (Autobahn): the white sign with the black slash */
.dash-limit--none { border: 2px solid var(--sign-fg); background: linear-gradient(135deg, transparent 45%, var(--sign-fg) 45% 55%, transparent 55%), var(--sign-bg); }
.dash-ahead > div { margin: 2px 0; white-space: nowrap; }
.dash-maneuver { max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--inst-active); }
.dash-signal {
display: inline-block; width: 8px; height: 20px; vertical-align: middle; border-radius: 3px; background:
radial-gradient(circle at 50% 17%, #e53935 2.5px, transparent 3px), radial-gradient(circle at 50% 50%, #fbc02d 2.5px, transparent 3px),
radial-gradient(circle at 50% 83%, #43a047 2.5px, transparent 3px), #222;
}
.dash-lanes { display: flex; gap: 3px; }
.dash-card--over { box-shadow: 0 0 0 4px var(--inst-warning), 0 1px 6px rgba(0, 0, 0, 0.25); }
.dash-card--over .dash-speed span { color: var(--inst-warning); }
.dash-lanes svg.dash-lane { width: 26px; height: 34px; border-radius: 4px; background: rgb(var(--inst-bezel) / 0.7); border: 1px solid var(--inst-muted); box-sizing: border-box; }
.dash-lane__arrow { fill: none; stroke: var(--inst-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-lane--go { border-color: var(--inst-active) !important; }
.dash-lane--go .dash-lane__arrow { stroke: var(--inst-text); }
.dash-lane--go .dash-lane__take { stroke: var(--inst-active); stroke-width: 3.5; }
.dash-offroute { color: var(--inst-caution); font-weight: 600; }
/* The GNSS position once it has a course: an arrow, not the dot. */
.gnss-marker--arrow { width: 26px; height: 26px; border: none; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.5)); }
.gnss-marker--arrow svg { display: block; }
/* no fix, the position estimated along the route (a tunnel): greyed */
.gnss-marker--estimated { filter: grayscale(1) opacity(0.7) drop-shadow(0 1px 2px rgb(0 0 0 / 0.5)); }
/* The navigation banner across the top (dashboard.js): the next turn. */
.dash-banner {
position: absolute;
top: 10px;
left: 50%;
transform: translateX(-50%);
z-index: 3;
min-width: 260px;
max-width: calc(100% - 140px);
padding: 8px 14px;
border-radius: 12px;
background: rgb(var(--inst-bezel) / var(--dash-alpha, 0.9));
box-shadow: 0 1px 6px rgb(0 0 0 / 0.3);
color: var(--inst-text);
font-family: system-ui, sans-serif;
pointer-events: none;
text-shadow: 0 0 3px var(--inst-halo);
}
.dash-banner[hidden] { display: none; }
.dash-banner__main { display: flex; align-items: center; gap: 12px; }
.dash-banner__icon { width: 44px; height: 58px; flex: none; }
.dash-banner__arrow { fill: none; stroke: var(--inst-active); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.dash-banner__distance { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dash-banner__street { font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-banner__lanes { margin-top: 6px; justify-content: center; }
.dash-banner__then { margin-top: 4px; font-size: 13px; color: var(--inst-muted); display: flex; align-items: center; gap: 4px; }
.dash-banner__then .dash-banner__icon { width: 14px; height: 18px; }
.dash-banner__on { margin-top: 4px; font-size: 12px; color: var(--inst-muted); text-transform: uppercase; letter-spacing: 0.04em; }
/* gnss.js free look: the follow paused while the map is moved by hand */
.follow-resume {
position: absolute;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
z-index: 3;
padding: 10px 18px;
border: none;
border-radius: 999px;
background: var(--band);
color: var(--band-fg, #fff);
font-weight: 600;
box-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
cursor: pointer;
}
/* Driving mode (driving.js): big buttons down the map's left side, the
planning sidebar and its panels out of the way. */
.topbar__drive {
height: 40px;
padding: 0 12px;
border: 1px solid #555;
border-radius: 6px;
background: none;
color: #ddd;
font-size: 15px;
font-weight: 600;
cursor: pointer;
}
.topbar__drive.active { background: var(--accent); border-color: var(--accent); color: #fff; }
/* a panel pinned open stays hidden while driving: its room goes back to
the map (the panel and its room come back on leaving) */
html.driving body.side-pinned #map { margin-left: 0 !important; } /* outranks the :has() rule above */
html.driving #sidebar,
html.driving .basemap-panel,
html.driving .gpx-panel,
html.driving .trail-panel,
html.driving .profile-panel,
html.driving #map .maplibregl-ctrl-top-right > :not(.maplibregl-ctrl-overview-map),
html.driving .topbar__search,
html.driving .statusbar { display: none; }
.drive-bar {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
z-index: 4;
display: flex;
flex-direction: column;
gap: 10px;
max-height: calc(100% - 24px); /* a low screen: the buttons shrink, to 44 px */
}
.drive-bar[hidden] { display: none; }
.drive-bar button,
.drive-bar__recenter {
width: 76px;
flex: 0 1 76px;
min-height: 44px;
border: none;
border-radius: 12px;
background: var(--band);
color: var(--band-fg);
font-size: 22px;
font-weight: 700;
box-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
cursor: pointer;
}
.drive-bar .drive-bar__overview { font-size: 16px; }
.drive-bar button:active,
.drive-bar__recenter:active { background: var(--accent); }
/* the one follow / back-to-the-position button, bottom left, only while
the map isn't following (driving.js); gnss.js's own one not meanwhile */
.drive-bar__recenter {
position: absolute;
left: 12px;
bottom: 36px;
z-index: 4;
width: auto;
height: 76px;
padding: 0 22px;
border: none;
border-radius: 12px;
background: var(--band);
color: var(--band-fg);
font-size: 18px;
font-weight: 700;
box-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
cursor: pointer;
}
.drive-bar__recenter[hidden],
html.driving .follow-resume { display: none; }
.drive-bar button:disabled { opacity: 0.4; }
html.follow-3d .maplibregl-ctrl-overview-map { display: none; }
/* npmap's home button draws its house in #333: the UI's text color instead */
.feather-home { fill: var(--ui-fg); }
:root[data-palette] .drive-bar button,
:root[data-palette] .drive-bar__recenter { box-shadow: 0 0 0 1px var(--ui-line), 0 2px 8px rgb(0 0 0 / 0.35); }
/* The driving mode's Trip menu (driving.js): big rows, big actions, beside
the map on the right (the map narrower, its buttons kept, like Android
Auto); the crosshair in the middle of the map. */
.drive-trip {
flex: 0 0 min(540px, 45%);
margin: 12px;
display: flex;
flex-direction: column;
border-radius: 14px;
background: var(--ui-bg);
color: var(--ui-fg);
box-shadow: 0 0 0 1px var(--ui-line), 0 4px 16px rgb(0 0 0 / 0.35);
overflow: hidden;
}
.drive-trip[hidden] { display: none; }
.drive-trip__head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 0 0 20px;
background: var(--band);
color: var(--band-fg);
font-size: 22px;
font-weight: 700;
}
.drive-trip__close { width: 76px; height: 64px; border: none; background: none; color: inherit; font-size: 26px; cursor: pointer; }
.drive-trip__stops { flex: 1; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.drive-trip__stops li { display: flex; align-items: stretch; min-height: 76px; border-bottom: 1px solid var(--ui-line); }
.drive-trip__stops button {
border: none;
background: none;
color: inherit;
font: inherit;
cursor: pointer;
}
.drive-trip__stops .drive-bar__stop-name { flex: 1; padding: 0 16px; text-align: left; font-size: 18px; font-weight: 600; }
.drive-trip__stops .drive-bar__stop-up,
.drive-trip__stops .drive-bar__stop-down,
.drive-trip__stops .drive-bar__stop-drop { width: 68px; font-size: 26px; border-left: 1px solid var(--ui-line); }
.drive-trip__stops button:disabled { opacity: 0.25; }
.drive-trip__stops button:active:not(:disabled) { background: var(--accent-bg); }
.drive-trip__empty { padding: 20px 16px; color: var(--ui-muted); font-size: 16px; }
.drive-trip__actions { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-top: 1px solid var(--ui-line); }
.drive-trip__actions button {
min-height: 72px;
border: none;
border-radius: 12px;
background: var(--accent);
color: #fff;
font-size: 19px;
font-weight: 700;
cursor: pointer;
}
.drive-trip__actions [data-action="start"] { background: var(--band); color: var(--band-fg); }
.drive-bar .drive-bar__trip { font-size: 16px; }
.drive-bar button.active { background: var(--accent); }
.drive-crosshair {
position: absolute;
left: 50%;
top: 50%;
z-index: 4;
width: 44px;
height: 44px;
margin: -22px 0 0 -22px;
pointer-events: none;
background:
linear-gradient(var(--inst-active), var(--inst-active)) center / 3px 100% no-repeat,
linear-gradient(var(--inst-active), var(--inst-active)) center / 100% 3px no-repeat;
filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
}
.drive-crosshair[hidden] { display: none; }
.drive-trip__search { padding: 10px 12px; border-bottom: 1px solid var(--ui-line); }
.drive-trip__search input {
width: 100%;
box-sizing: border-box;
height: 60px;
padding: 0 16px;
border: 1px solid var(--ui-line);
border-radius: 10px;
background: var(--ui-bg-2);
color: var(--ui-fg);
font-size: 20px;
}
.drive-trip__stops .drive-bar__stop-name small { display: block; color: var(--ui-muted); font-size: 14px; font-weight: 400; }
.drive-trip__stops .drive-bar__stop-add { width: 76px; font-size: 30px; font-weight: 700; color: var(--accent); border-left: 1px solid var(--ui-line); }
.drive-trip__total { margin-left: 10px; font-size: 16px; font-weight: 500; opacity: 0.8; }
.route-panel__leg { display: block; color: var(--ui-muted); font-size: 11px; }
/* Passed stops (route.js): dimmed, still editable — the buttons keep full strength */
.drive-trip__passed .drive-bar__stop-name,
.route-panel__passed .route-panel__point { opacity: 0.45; }
.drive-trip__stops .drive-bar__stop-done { width: 68px; font-size: 24px; border-left: 1px solid var(--ui-line); color: var(--ui-muted); }
.drive-trip__stops .drive-bar__stop-done.active { color: var(--inst-ok); font-weight: 700; }
.route-marker--passed { opacity: 0.45; }
.drive-trip__log { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--ui-line); }
.drive-trip__log[hidden] { display: none; }
.drive-trip__log button {
min-height: 60px;
padding: 0 18px;
border: 2px solid var(--route-driven);
border-radius: 10px;
background: none;
color: var(--ui-fg);
font-size: 18px;
font-weight: 700;
cursor: pointer;
}
.drive-trip__log button.drive-trip__log--on { background: var(--route-driven); color: #fff; }
.drive-trip__log-state { flex: 1; color: var(--route-driven); font-weight: 600; font-size: 15px; }
/* The side rail, labelled (map.js sets data-label), and the status bar
under the map — the Design canvas' Desktop. */
.sidebar-icon {
width: calc(var(--rail) - 8px);
height: 52px;
flex-direction: column;
gap: 3px;
}
.sidebar-icon::after {
content: attr(data-label);
font-size: 10px;
font-weight: 600;
line-height: 1;
}
.statusbar {
flex: 0 0 var(--statusbar);
display: flex;
align-items: center;
gap: 18px;
padding: 0 12px;
border-top: 1px solid var(--ui-line);
background: var(--ui-bg-2);
color: var(--ui-muted);
font-size: 12px;
font-variant-numeric: tabular-nums;
white-space: nowrap;
overflow: hidden;
}
.statusbar__scale .maplibregl-ctrl-scale {
margin: 0;
font-size: 11px;
}
.statusbar__rev {
margin-left: auto;
}
/* Phone: the rail's icons alone, the status bar's basics. */
@media (max-width: 640px) {
:root {
--rail: 52px;
}
.sidebar-icon {
height: 36px;
}
.sidebar-icon::after,
.statusbar__cursor,
.statusbar__rev,
.search-ctrl__key {
display: none;
}
}
/* ---- The Design canvas' Desktop artboard ------------------------------ */
/* The rail: dark like the topbar, the open panel's item marked by a light
band and an accent edge. */
.sidebar {
background: var(--band);
border-right: none;
gap: 2px;
padding: 6px 0;
}
.sidebar-item {
align-self: stretch;
}
.sidebar .sidebar-icon {
width: 100%;
height: 58px;
border-radius: 0;
border-left: 3px solid transparent;
color: #bdbab0;
}
.sidebar .sidebar-icon:hover {
background: #2c2c28;
color: #fff;
}
.sidebar .sidebar-icon.active {
background: #2c2c28;
color: #fff;
border-left-color: var(--accent);
}
.sidebar-group-label {
margin: 4px 12px;
background: #3a3a35;
}
/* The map's buttons: white cards of 40 px buttons, a group per card. */
.maplibregl-ctrl-top-right {
top: 12px;
right: 12px;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 10px;
}
.maplibregl-ctrl-top-right .maplibregl-ctrl {
margin: 0;
}
.maplibregl-ctrl-top-right .maplibregl-ctrl-group {
border-radius: 8px;
box-shadow: 0 1px 6px rgb(0 0 0 / 0.25);
overflow: hidden;
}
.maplibregl-ctrl-top-right .maplibregl-ctrl-group button {
width: 40px;
height: 40px;
}
.maplibregl-ctrl-top-right .maplibregl-ctrl-group button svg {
width: 20px;
height: 20px;
}
/* Panel heads as on the artboard: a bigger title. */
:is(.gpx-panel__header, .basemap-panel__header) > strong {
font-size: 17px;
}
/* Route (route.js) */
.route-panel {
font-size: 14px;
}
.route-panel__body {
flex: 1;
min-height: 0;
padding: 8px 16px;
}
.route-panel__head-actions {
display: flex;
gap: 6px;
margin-left: auto;
}
.route-panel .route-panel__head-actions button {
min-height: 30px;
height: 30px;
display: flex;
align-items: center;
gap: 4px;
padding: 0 10px;
border: 1px solid var(--ui-line);
border-radius: 6px;
background: none;
color: var(--ui-fg);
font-family: inherit;
font-size: 13px;
cursor: pointer;
}
.route-panel__head-actions svg {
width: 14px;
height: 14px;
}
.route-panel__points {
margin: 0;
}
.route-panel .route-panel__stop {
display: flex;
align-items: center;
gap: 10px;
min-height: 44px;
padding: 0;
}
.route-panel__dragging {
opacity: 0.4;
}
.route-panel__grip {
color: var(--ui-muted);
cursor: grab;
letter-spacing: -2px;
}
.route-panel__badge {
width: 24px;
height: 24px;
flex: none;
border-radius: 50%;
background: var(--accent);
color: #fff;
font-size: 12px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
}
.route-panel__badge--end {
background: #a21caf;
}
.route-panel__point {
min-width: 0;
display: flex;
flex-direction: column;
}
.route-panel__name {
font-size: 15px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.route-panel__role {
font-size: 12px;
color: var(--ui-muted);
}
.route-panel .route-panel__leg {
display: block;
margin-left: 46px;
padding: 2px 0 2px 12px;
border-left: 2px dashed var(--ui-line);
color: var(--ui-muted);
font-size: 12px;
}
.route-panel__add {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
padding: 8px 0 12px 36px;
}
.route-panel .route-panel__chip {
min-height: 32px;
height: 32px;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 0 12px;
border: 1px solid var(--ui-line);
border-radius: 16px;
background: none;
color: var(--ui-fg);
font-family: inherit;
font-size: 13px;
cursor: pointer;
}
.route-panel .route-panel__chip--add {
border: 1px dashed var(--accent);
color: var(--accent);
font-weight: 600;
}
.route-panel .route-panel__hint {
margin: 0;
font-size: 12px;
}
/* a ticked avoid chip, the vehicle in use */
.route-panel .route-panel__chip:has(input:checked),
.route-panel select.route-panel__chip {
border-color: var(--accent);
background: var(--accent-bg);
font-weight: 600;
}
.route-panel__chip input {
display: none;
}
.route-panel__totals {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 4px;
margin-bottom: 4px;
padding: 12px;
border-radius: 10px;
background: var(--ui-bg-2);
text-align: center;
}
.route-panel__totals[hidden] {
display: none;
}
.route-panel__totals > span {
display: flex;
flex-direction: column;
}
.route-panel__totals b {
font-size: 18px;
font-variant-numeric: tabular-nums;
}
.route-panel__totals small {
font-size: 11px;
color: var(--ui-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.route-panel .route-panel__totals-more {
grid-column: 1 / 5;
margin-top: 4px;
font-size: 12px;
color: var(--ui-muted);
}
.route-panel__summary:empty {
display: none;
}
.route-panel .route-panel__summary {
padding: 0;
background: none;
font-weight: 400;
color: var(--ui-muted);
}
.route-panel__row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
margin: 10px 0 0;
}
.route-panel__label {
width: 56px;
font-size: 12px;
color: var(--ui-muted);
}
.route-panel .route-panel__fold {
margin: 12px -16px 0;
border-top: 1px solid var(--ui-line);
}
.route-panel .route-panel__fold + .route-panel__fold {
margin-top: 0;
}
.route-panel .route-panel__fold > summary {
display: flex;
align-items: center;
padding: 0 16px;
font-weight: 600;
list-style: none;
}
.route-panel__fold > summary::-webkit-details-marker {
display: none;
}
.route-panel__fold-meta {
margin-left: auto;
font-size: 12px;
font-weight: 400;
color: var(--ui-muted);
}
.route-panel__fold-meta::after {
content: " ›";
}
.route-panel__fold[open] .route-panel__fold-meta::after {
content: " ⌄";
}
.route-panel__fold > :not(summary) {
margin: 0 16px 12px;
}
.route-panel__footer {
display: flex;
gap: 8px;
padding: 12px 16px;
border-top: 1px solid var(--ui-line);
}
.route-panel__footer:not(:has(button:not([hidden]))) {
display: none;
}
.route-panel .route-panel__footer button {
flex: 1;
height: 40px;
border-radius: 8px;
font-family: inherit;
font-size: 14px;
font-weight: 600;
cursor: pointer;
}
.route-panel .route-panel__primary {
border: none;
background: var(--accent);
color: #fff;
}
.route-panel .route-panel__secondary {
border: 1px solid var(--ui-line);
background: none;
color: var(--ui-fg);
}
.route-panel__footer button[hidden] {
display: none;
}
/* a route's markers in the panel's colours */
.route-marker {
background: var(--accent);
}
/* "On the map" on two lines in the rail */
.sidebar-icon::after {
max-width: 100%;
white-space: normal;
text-align: center;
}
/* On the map's Map group sits above the overlays' own scrolling list */
.onthemap-map {
flex: none;
}
.onthemap-map .overlays-panel__group {
margin: 0;
border-top: none;
}