html,
body,
#app-shell,
.leaflet-map {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

html {
    font-size: 14px;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17211d;
    overflow: hidden;
}

button {
    font: inherit;
}

.leaflet-map {
    background: #dfe8dc;
}

.leaflet-control-layers {
    font-size: 12px;
}

.leaflet-control-layers-section {
    margin: 7px 4px 3px;
    padding: 7px 0 2px;
    border-top: 1px solid rgba(41, 56, 48, 0.14);
    color: #5c6f66;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.leaflet-control-layers-section:first-child {
    margin-top: 2px;
    padding-top: 2px;
    border-top: 0;
}

.route-panel {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    width: min(290px, calc(100vw - 32px));
    max-height: var(--route-panel-max-height, calc(100vh - 276px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(41, 56, 48, 0.18);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(25, 34, 30, 0.22);
    backdrop-filter: blur(10px);
}

.route-panel.panel-expanded {
    width: min(360px, calc(100vw - 32px));
    height: var(--route-panel-max-height, calc(100vh - 276px));
}

.elevation-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 700;
    height: 228px;
    min-height: 122px;
    max-height: min(48vh, 360px);
    padding: 18px 14px 10px;
    border: 1px solid rgba(37, 52, 44, 0.14);
    border-radius: 8px;
    background: rgba(250, 252, 249, 0.92);
    box-shadow: 0 8px 22px rgba(25, 34, 30, 0.14);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.elevation-controls {
    position: absolute;
    top: 11px;
    right: 12px;
    z-index: 3;
}

.elevation-tune-button {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(41, 56, 48, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.86);
    color: #334139;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: 0 3px 10px rgba(25, 34, 30, 0.1);
}

.elevation-tune-button:hover,
.elevation-tune-button[aria-expanded="true"] {
    border-color: rgba(47, 58, 53, 0.34);
    background: #ecefed;
}

.elevation-thresholds {
    position: absolute;
    top: 34px;
    right: 0;
    width: 242px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 9px;
    border: 1px solid rgba(41, 56, 48, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 26px rgba(25, 34, 30, 0.18);
    backdrop-filter: blur(10px);
}

.elevation-thresholds[hidden] {
    display: none;
}

.elevation-thresholds label {
    min-width: 0;
    display: grid;
    gap: 3px;
    color: #5a6860;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
}

.elevation-thresholds label span::after {
    content: " <= %";
    color: #7a8680;
    font-weight: 650;
}

.elevation-thresholds input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 5px 6px;
    border: 1px solid rgba(41, 56, 48, 0.16);
    border-radius: 5px;
    color: #1d2b24;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 760;
}

.elevation-threshold-reset {
    grid-column: 1 / -1;
    min-height: 26px;
    border: 1px solid rgba(41, 56, 48, 0.16);
    border-radius: 5px;
    background: #f7f9f7;
    color: #334139;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 820;
}

.elevation-threshold-reset:hover {
    background: #ecefed;
}

.elevation-resize-handle {
    position: absolute;
    left: 50%;
    top: 5px;
    width: 54px;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 8px;
    cursor: ns-resize;
    touch-action: none;
}

.elevation-resize-handle::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    height: 3px;
    border-radius: 999px;
    background: rgba(29, 43, 36, 0.24);
}

.elevation-resize-handle:hover::before {
    background: rgba(15, 118, 110, 0.62);
}

.elevation-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    color: #526158;
    font-size: 0.74rem;
    line-height: 1.1;
}

.elevation-meta > span:first-child {
    flex: 0 1 auto;
    min-width: max-content;
    color: #1d2b24;
    font-weight: 800;
}

.elevation-meta > span:last-child {
    flex: 1;
    max-width: none;
    min-width: 0;
    text-align: right;
}

.elevation-stat {
    display: inline-block;
    margin-left: 10px;
    white-space: nowrap;
}

.elevation-stat:first-child {
    margin-left: 0;
}

.elevation-stat-label {
    color: #6f7c74;
    font-weight: 520;
}

.elevation-stat-value {
    color: #24332b;
    font-weight: 760;
}

#elevation-chart {
    display: block;
    width: 100%;
    min-height: 70px;
    flex: 1;
    margin-top: 4px;
    overflow: hidden;
}

.elevation-axis {
    stroke: rgba(29, 43, 36, 0.36);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.elevation-grid {
    stroke: rgba(29, 43, 36, 0.1);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.elevation-x-label,
.elevation-y-label {
    fill: #66746b;
    font-size: 11px;
    font-weight: 650;
}

.elevation-x-label {
    text-anchor: middle;
}

.elevation-y-label {
    text-anchor: end;
}

.elevation-fill {
    fill: rgba(122, 134, 128, 0.12);
    stroke: none;
}

.elevation-line {
    fill: none;
    stroke: #7a8680;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.elevation-line-route {
    stroke: #7a8680;
}

.elevation-line-moderate {
    stroke: #eab308;
}

.elevation-line-hard {
    stroke: #f97316;
}

.elevation-line-steep {
    stroke: #ef4444;
    stroke-width: 2.9;
}

.elevation-line-extreme {
    stroke: #991b1b;
    stroke-width: 3.1;
}

.elevation-match-line {
    stroke: rgba(255, 0, 204, 0.62);
    stroke-width: 1.6;
    stroke-dasharray: 4 5;
    vector-effect: non-scaling-stroke;
}

.elevation-match-dot {
    fill: #ff00cc;
    stroke: #fff;
    stroke-width: 2.4;
    vector-effect: non-scaling-stroke;
}

.elevation-hover-line {
    stroke: rgba(0, 119, 255, 0.7);
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
}

.elevation-hover-dot {
    fill: #0077ff;
    stroke: #fff;
    stroke-width: 2.4;
    vector-effect: non-scaling-stroke;
}

.elevation-hover-label {
    fill: #1d2b24;
    font-size: 12px;
    font-weight: 800;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 3;
    stroke-linejoin: round;
}

.elevation-hit-area {
    fill: transparent;
    cursor: crosshair;
    pointer-events: all;
}

.head-stack-marker {
    background: transparent;
    border: 0;
    z-index: 650;
}

.head-stack {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    filter: saturate(var(--head-saturation, 100%)) drop-shadow(0 4px 7px rgba(0, 0, 0, 0.32));
    transform: scale(var(--map-marker-scale, 1));
    transform-origin: bottom center;
}

.head-stack img {
    width: 36px;
    height: 50px;
    object-fit: contain;
    margin-left: -12px;
    pointer-events: none;
}

.head-stack img:first-child {
    margin-left: 0;
}

.head-stack-marker.historical .head-stack {
    filter: saturate(var(--head-saturation, 75%)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.24));
    opacity: 0.86;
}

.head-stack-marker.historical .head-stack img {
    width: 24px;
    height: 34px;
    margin-left: -8px;
}

.waypoint-scale-marker {
    background: transparent;
    border: 0;
}

.waypoint-pin {
    width: 30px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    font-size: 13px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.26));
    transform: scale(var(--map-marker-scale, 1));
    transform-origin: bottom center;
}

.waypoint-pin::before {
    content: "";
    position: absolute;
    inset: 1px 4px 8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50% 50% 50% 0;
    background: #3b82f6;
    transform: rotate(-45deg);
}

.waypoint-pin i {
    position: relative;
    top: -4px;
    z-index: 1;
}

.waypoint-pin-green::before {
    background: #15803d;
}

.waypoint-pin-blue::before {
    background: #2563eb;
}

.waypoint-pin-cadetblue::before {
    background: #0f766e;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px 4px;
}

.panel-header > div:first-child {
    min-width: 0;
}

.panel-kicker {
    margin: 0 0 1px;
    color: #5c6f66;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.panel-header h1 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.2;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.latest-update-summary {
    padding: 6px 10px 8px;
}

.latest-update-card {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    padding: 8px 9px;
    border: 1px solid rgba(255, 0, 204, 0.36);
    border-radius: 6px;
    background: rgba(255, 0, 204, 0.08);
    color: #1f2d27;
    cursor: pointer;
    text-align: left;
}

.latest-update-card:hover,
.latest-update-card:focus-visible {
    border-color: rgba(255, 0, 204, 0.58);
    background: rgba(255, 0, 204, 0.12);
}

.latest-update-empty {
    margin: 0;
    padding: 8px 9px;
    border: 1px solid rgba(41, 56, 48, 0.12);
    border-radius: 6px;
    background: #f8fbf9;
    color: #68756e;
    font-size: 0.78rem;
    line-height: 1.35;
}

.latest-update-empty span {
    display: block;
    margin-bottom: 2px;
    color: #1d2b24;
    font-weight: 800;
}

.panel-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 10px 10px;
}

.panel-tab {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(41, 56, 48, 0.16);
    border-radius: 6px;
    background: #f8fbf9;
    color: #405049;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.panel-tab-wide {
    grid-column: 1 / -1;
}

.panel-tab:hover,
.panel-tab:focus-visible {
    border-color: rgba(47, 58, 53, 0.34);
    background: #ecefed;
    color: #2f3a35;
}

.panel-tab.active {
    border-color: #2f3a35;
    background: #2f3a35;
    color: #fff;
}

.panel-tab.active::after {
    content: "\f077";
    font: var(--fa-font-solid);
    font-size: 0.7rem;
}

.panel-view {
    border-top: 1px solid rgba(41, 56, 48, 0.1);
}

.panel-view:not([hidden]) {
    min-height: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.latest-updates-panel {
    min-height: 0;
    overflow: hidden;
}

.route-about-shell,
.other-routes-shell {
    min-height: 0;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 6px;
}

.section-header.compact {
    padding-bottom: 2px;
}

.section-header h2 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.2;
    color: #1d2b24;
}

.latest-updates {
    flex: 1;
    min-height: 0;
    list-style: none;
    margin: 0;
    padding: 0 12px 8px;
    display: grid;
    align-content: start;
    gap: 6px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.update-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid rgba(41, 56, 48, 0.12);
    border-radius: 6px;
    background: #ffffff;
    color: #1f2d27;
    cursor: pointer;
    text-align: left;
}

.update-item-featured {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 10px 12px;
    border-color: rgba(15, 118, 110, 0.36);
    background: #eef7f2;
}

.update-item:hover,
.update-item:focus-visible {
    border-color: rgba(0, 119, 255, 0.44);
    background: rgba(0, 119, 255, 0.08);
}

.update-dot {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 999px;
    background: #8a948e;
    box-shadow: 0 0 0 4px rgba(70, 82, 76, 0.1);
}

.update-item:hover .update-dot,
.update-item:focus-visible .update-dot {
    background: #0077ff;
    box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.14);
}

.update-heads {
    width: 50px;
    min-height: 46px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.update-heads.compact {
    width: 38px;
    min-height: 34px;
}

.update-heads img {
    width: 30px;
    height: 40px;
    object-fit: contain;
    object-position: top center;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.22));
}

.update-heads img + img {
    margin-left: -12px;
}

.update-heads.compact img {
    width: 24px;
    height: 32px;
}

.update-heads.compact img + img {
    margin-left: -9px;
}

.update-kicker {
    display: block;
    margin: 0 0 3px;
    color: #5c6f66;
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.update-copy {
    min-width: 0;
}

.update-message {
    margin: 0 0 4px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.update-item-featured .update-message {
    font-size: 1rem;
    -webkit-line-clamp: 3;
}

.latest-update-card .update-message {
    margin-bottom: 3px;
    font-size: 0.83rem;
    -webkit-line-clamp: 2;
}

.latest-update-card .update-meta {
    gap: 6px;
    font-size: 0.68rem;
}

.update-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #68756e;
    font-size: 0.72rem;
    font-weight: 650;
}

.update-time,
.update-battery {
    cursor: help;
}

.update-battery.ok {
    color: #0f766e;
}

.update-battery.low {
    color: #b42318;
}

.update-locate {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.78);
    color: #0f766e;
}

.empty-updates {
    margin: 0;
    padding: 4px 4px 8px;
    color: #68756e;
    font-size: 0.86rem;
}

.route-list-shell {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.route-list-shell::before,
.route-list-shell::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    z-index: 1;
    height: 16px;
    pointer-events: none;
}

.route-list-shell::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

.route-list-shell::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

.route-list {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 5px;
    padding: 3px 10px 9px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.route-tab {
    min-height: 44px;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    padding: 6px 8px;
    border: 1px solid rgba(41, 56, 48, 0.14);
    border-radius: 6px;
    background: #f9fbf8;
    color: #1f2d27;
    cursor: pointer;
    text-align: left;
}

.route-tab:hover,
.route-tab.active {
    border-color: rgba(25, 99, 84, 0.45);
    background: #eef7f2;
}

.route-swatch {
    width: 10px;
    height: 10px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--route-color);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.route-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.route-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 700;
}

.route-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #687870;
    font-size: 0.66rem;
    line-height: 1;
    font-weight: 650;
}

.route-date {
    color: inherit;
}

.route-status {
    margin: 0;
    color: #687870;
    font-size: 0.78rem;
    font-weight: 650;
    min-height: 0;
}

.route-description {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 0 16px 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    scrollbar-width: thin;
}

.route-description h1,
.route-description h2,
.route-description h3 {
    font-size: 1.04rem;
    line-height: 1.25;
    margin: 12px 0 8px;
}

.route-description p,
.route-description ul {
    margin: 0 0 10px;
}

.route-description ul {
    padding-left: 18px;
}

.route-description a {
    color: #0f766e;
    font-weight: 700;
}

.leaflet-tooltip,
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content-wrapper {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(31, 45, 39, 0.14);
    box-shadow: 0 12px 26px rgba(23, 33, 29, 0.22);
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 5px 12px rgba(23, 33, 29, 0.14);
}

.leaflet-popup-tip-container,
.leaflet-tooltip::before {
    display: none;
}

.overlay-leader-halo,
.overlay-leader-line,
.overlay-leader-dot {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.overlay-leader-halo {
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 6;
}

.overlay-leader-line {
    stroke: rgba(23, 33, 29, 0.64);
    stroke-width: 2.2;
}

.overlay-leader-dot {
    fill: rgba(23, 33, 29, 0.72);
    stroke: rgba(255, 255, 255, 0.96);
    stroke-width: 2;
}

.leaflet-popup-content {
    margin: 0;
}

.leaflet-tooltip {
    padding: 0;
    border: 1px solid rgba(31, 45, 39, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(23, 33, 29, 0.18);
}

.leaflet-tooltip .location-popup {
    width: auto;
    min-width: 180px;
    max-width: min(292px, calc(100vw - 64px));
}

.waypoint-popup dl {
    padding-top: 4px;
}

.location-popup {
    width: min(292px, calc(100vw - 64px));
    min-width: min(228px, calc(100vw - 64px));
    max-width: calc(100vw - 64px);
    padding: 0;
    color: #1b2821;
}

.location-popup header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(41, 56, 48, 0.1);
    text-transform: capitalize;
    background: rgba(245, 249, 246, 0.88);
}

.location-popup-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
}

.location-popup header strong {
    font-size: 0.9rem;
    letter-spacing: 0;
}

.location-popup p {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.91rem;
    line-height: 1.4;
    white-space: pre-wrap;
    border-bottom: 1px solid rgba(41, 56, 48, 0.08);
}

.location-popup dl {
    margin: 0;
    display: grid;
    gap: 0;
    padding: 6px 12px 10px;
}

.location-popup dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    padding: 4px 0;
}

.location-popup span {
    color: #68756e;
    font-size: 0.72rem;
    font-weight: 650;
}

.location-popup strong {
    color: #1d2b24;
    font-size: 0.78rem;
    text-align: right;
}

.update-popup .update-popup-message strong {
    display: block;
    color: #1d2b24;
    font-size: 0.91rem;
    font-weight: 820;
    line-height: 1.4;
    text-align: left;
}

.update-popup .popup-value {
    color: #1d2b24;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: right;
}

.update-popup .popup-subvalue {
    display: block;
    margin-top: 2px;
    color: inherit;
    font-size: 0.72rem;
    font-weight: inherit;
}

.update-popup .popup-value .update-time {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.location-popup .update-battery.ok {
    color: #0f766e;
}

.location-popup .update-battery.low {
    color: #b42318;
}

#debug-banner {
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .route-panel {
        top: auto;
        right: 8px;
        bottom: 249px;
        left: 8px;
        width: auto;
        max-height: var(--route-panel-max-height, 46vh);
    }

    .route-panel.panel-expanded {
        width: auto;
    }

    .panel-header {
        padding: 9px 10px 4px;
    }

    .section-header {
        padding: 8px 12px 6px;
    }

    .latest-updates {
        padding: 0 8px 8px;
    }

    .update-item-featured {
        grid-template-columns: auto 1fr;
    }

    .update-heads {
        width: 42px;
    }

    .update-locate {
        display: none;
    }

    .route-list {
        grid-template-columns: 1fr;
        padding: 0 7px 7px;
    }

    .route-tab {
        min-height: 34px;
        padding: 5px 7px;
    }

    .route-meta {
        font-size: 0.64rem;
    }

    .route-label {
        font-size: 0.78rem;
    }

    .route-description {
        padding: 12px;
    }

    .elevation-panel {
        left: 8px;
        right: 8px;
        bottom: 8px;
        height: 225px;
        padding: 16px 10px 10px;
    }

    .elevation-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding-right: 0;
        font-size: 0.72rem;
    }

    .elevation-meta > span:last-child {
        max-width: none;
        text-align: left;
    }

    .elevation-stat {
        margin-left: 0;
        margin-right: 8px;
    }
}
