.gpx-viewer__visuals { display: grid; grid-template-rows: auto auto; gap: 16px; min-width: 0; align-content: start; }
.gpx-profile { padding: 20px; border: 3px solid #000; border-radius: 16px; background: #fff; color: #000; box-shadow: 5px 5px 0 #000; min-width: 0; }
.gpx-profile__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 18px; }
.gpx-profile__header h2 { margin: 0; font-size: 18px; font-weight: 900; text-transform: uppercase; }
.gpx-profile__header output { min-height: 1.5em; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gpx-profile__chart { position: relative; padding-left: 52px; cursor: crosshair; touch-action: pan-y; }
.gpx-profile__chart:focus-visible { outline: 3px solid #FF4A00; outline-offset: 5px; }
.gpx-profile__chart svg { display: block; width: 100%; height: 180px; overflow: hidden; }
.gpx-profile__chart path, .gpx-profile__chart line { vector-effect: non-scaling-stroke; }
.gpx-profile__grid { fill: none; stroke: #000; stroke-opacity: .15; stroke-width: 1; }
.gpx-profile__area { fill: #FF4A00; fill-opacity: .16; }
.gpx-profile__line { fill: none; stroke: #000; stroke-width: 2; stroke-linejoin: round; }
.gpx-profile__cursor { stroke: #FF4A00; stroke-width: 2; }
.gpx-profile__height { position: absolute; left: 0; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gpx-profile__height--max { top: 0; }
.gpx-profile__height--min { top: 156px; }
.gpx-profile__axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gpx-profile > .hint { margin: 14px 0 0; font-size: 13px; line-height: 1.5; }
@media (max-width: 600px) {
  .gpx-profile { padding: 14px; box-shadow: 3px 3px 0 #000; }
  .gpx-profile__header { gap: 6px; }
  .gpx-profile__header output { width: 100%; }
  .gpx-profile__chart { padding-left: 44px; }
}
