.layer-picker-trigger {
  display:flex;
  gap:10px;
  align-items:center;
  width:100%;
  text-align:left;
  padding:7px;
  border-color:#b7cac5;
  min-height:58px;
  font-size:12px;
  line-height:1.4;
}
.layer-picker-trigger>span:nth-child(2) {
  flex:1;
  min-width:0;
  overflow-wrap:anywhere;
}
.picker-chevron {
  font-size:20px;
  padding:0 4px;
  color:#58716f;
}
.layer-thumbnail {
  width:55px;
  height:43px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f0f4f2;
  border:1px solid #e0e8e4;
  border-radius:5px;
  overflow:hidden;
}
.layer-thumbnail img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.layer-thumbnail.large {
  width:70px;
  height:54px;
}
.layer-thumbnail.unavailable {
  font-size:9px;
  line-height:1.3;
  text-align:center;
  color:#6d8077;
  padding:3px;
}
.layer-picker-dialog {
  width:530px;
  max-width:calc(100vw - 24px);
  max-height:85dvh;
  padding:16px;
  overflow:hidden;
}
.layer-picker-dialog[open] {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.picker-heading {
  display:flex;
  gap:10px;
  align-items:center;
}
.picker-heading h2 {
  font-size:18px;
  flex:1;
  margin:0;
}
.picker-heading button {
  font-size:22px;
  padding:0;
  width:34px;
  min-height:34px;
}
.layer-picker-dialog input[type=search] {
  flex-shrink:0;
  margin:0;
  min-height:40px;
}
.layer-picker-options {
  overflow:auto;
  min-height:0;
  padding:0 3px 4px 0;
  overscroll-behavior:contain;
}
.layer-picker-options h3 {
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.5px;
  color:#607b71;
  margin:16px 0 8px;
}
.layer-picker-option {
  width:100%;
  display:flex;
  gap:12px;
  align-items:center;
  text-align:left;
  border-color:transparent;
  border-radius:6px;
  margin:3px 0;
  padding:7px;
}
.layer-picker-option>span:last-child {
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.layer-picker-option small {
  color:#71867d;
  font-size:10px;
  font-weight:400;
}
.layer-picker-option[aria-pressed=true] {
  background:#e7f3ed;
  color:#164c44;
  border-color:#91b7a4;
}
.layer-picker-option[aria-pressed=true] small {
  color:#527568;
}
.results {
  top:calc(100% + 7px);
  z-index:30;
}
.results button.search-result {
  display:flex;
  align-items:center;
  gap:14px;
  justify-content:space-between;
  padding:12px 13px;
  font-size:13px;
}
.search-result>span {
  flex:1;
  min-width:0;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.search-source {
  color:#87968f;
  font-size:10px;
  font-weight:400;
  white-space:nowrap;
  text-align:right;
  flex-shrink:0;
}
.results p {
  font-size:12px;
}
.results button:focus-visible {
  outline-offset:-3px;
}
.layer-picker-dialog button:focus-visible {
  outline-offset:-2px;
}
@media(max-width:520px) {
  .layer-picker-dialog {
    padding:12px;
    max-height:88dvh;
  }
  .layer-picker-option {
    gap:8px;
    font-size:12px;
  }
  .layer-thumbnail.large {
    width:60px;
    height:48px;
  }
  .search-source {
    font-size:9px;
  }
  .results button.search-result {
    gap:8px;
    padding:10px;
  }
  .picker-heading h2 {
    font-size:16px;
  }
}
#help-pane>h2 {
  padding-top:15px;
  border-top:1px solid #dce7e2;
  color:#20584e;
  margin-top:25px;
  line-height:1.4;
}
#help-pane p {
  font-size:13px;
  line-height:1.75;
}
.help-intro {
  padding:15px;
  border:1px solid #d1e1d7;
  border-radius:9px;
  background:#eaf4ee;
}
.help-intro h2 {
  margin:0 0 9px;
  font-size:19px;
}
.help-intro p {
  margin:0;
}
.help-note {
  background:#fff6df;
  border-left:3px solid #d9b465;
  padding:12px;
  border-radius:5px;
}
.help-links {
  display:flex;
  gap:14px;
  flex-direction:column;
}
#help-pane>.muted {
  font-size:11px;
}
.interactive-profile .route-profile {
  touch-action:none;
  cursor:crosshair;
}
.profile-readout {
  display:block;
  min-height:40px;
  padding:8px 0;
  font-size:12px;
  color:#176b65;
  line-height:1.5;
  font-variant-numeric:tabular-nums;
}
.daily-summary {
  border:1px solid #d7e1df;
  border-radius:8px;
  margin:14px 0;
  padding:10px;
  background:#fff;
}
.daily-summary>summary {
  font-weight:650;
  cursor:pointer;
  color:#20584e;
  font-size:13px;
}
.daily-summary table {
  width:100%;
  border-collapse:collapse;
  font-size:12px;
  table-layout:fixed;
}
.daily-summary th {
  color:var(--ui-muted);
  font-size:12px;
  font-weight:600;
}
.daily-summary td,.daily-summary th {
  padding:7px 3px;
  text-align:right;
  border-bottom:1px solid #e4ece7;
  overflow-wrap:anywhere;
}
.daily-summary td:first-child,.daily-summary th:first-child {
  text-align:left;
  width:26%;
}
.daily-summary td button {
  border:0;
  padding:0;
  min-height:25px;
  font-size:11px;
  text-align:left;
  overflow-wrap:anywhere;
  max-width:100%;
}
.daily-summary p {
  font-size:12px;
  line-height:1.5;
  margin:8px 0 0;
}
.pace-controls {
  display:flex;
  gap:10px;
  margin:12px 0;
}
.pace-controls label {
  flex:1;
  min-width:0;
  font-size:12px;
  margin:0;
}
.pace-controls input {
  padding:6px!important;
  margin-top:5px;
  font-size:12px;
}
#plan-route {
  font-size:12px;
}
#task-controls>input {
  font-size:13px;
  width:100%;
}
#task-result {
  overflow-wrap:anywhere;
}
.description .legend-swatch {
  display:inline-block;
  width:13px;
  height:13px;
  line-height:11px;
  font-size:13px;
  vertical-align:-1px;
  border:1px solid #455c6b55;
  border-radius:2px;
  margin-right:3px;
  overflow:hidden;
}
.layer-catalog-link {
  margin:0 0 14px;
  font-size:13px;
  text-align:right;
}
.layer-catalog-link a {
  font-weight:600;
  text-decoration:none;
}
.layer-catalog-link a:hover {
  text-decoration:underline;
}
.layer-picker-row {
  display:flex;
  align-items:center;
  gap:3px;
}
.layer-picker-row>.layer-picker-option {
  flex:1;
  min-width:0;
  width:auto;
}
.layer-picker-row>.layer-favorite {
  flex:0 0 38px;
  width:38px;
  min-height:44px;
  padding:4px;
  border:0;
  background:transparent;
  color:#667f76;
  font-size:27px;
  line-height:1;
  border-radius:6px;
}
.layer-picker-row>.layer-favorite:hover {
  background:#edf3ef;
}
.layer-picker-row>.layer-favorite[aria-pressed=true] {
  color:#ae7316;
  background:transparent;
}
.layer-picker-row .layer-picker-option>span:last-child {
  overflow-wrap:anywhere;
}
/* Profile readout and compact surface-slope key. */
.profile-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px 12px;
  flex-wrap:wrap;
}
.profile-footer .profile-readout {
  flex:1 1 200px;
  min-width:0;
  min-height:24px;
  margin:0!important;
  padding:5px 0;
}
.profile-coloring {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-left:auto;
  max-width:100%;
}
.profile-footer .profile-grade-control {
  margin:0;
  font-size:12px;
  line-height:1.4;
  max-width:245px;
}
.profile-footer .profile-grade-control input {
  flex:0 0 16px;
}
.profile-coloring .profile-grade-note {
  display:flex;
  flex:0 0 auto;
  align-items:stretch;
  margin:0;
  font-size:10px;
  line-height:22px;
  border-radius:3px;
  overflow:hidden;
}
.profile-coloring .profile-grade-note[hidden] {
  display:none;
}
.profile-grade-note>span {
  padding:0 6px;
  text-align:center;
  font-weight:650;
  white-space:nowrap;
}
.profile-coloring .profile-grade-note.unavailable {
  color:#845332;
  font-size:10px;
  max-width:140px;
  line-height:1.3;
}
@media(max-width:760px) {
  .profile-footer .profile-readout {
    font-size:11px;
  }
  .profile-coloring {
    width:100%;
    gap:6px;
    justify-content:flex-end;
  }
  .profile-footer .profile-grade-control {
    font-size:10px;
    max-width:185px;
  }
  .profile-grade-note>span {
    padding:0 4px;
  }
  .profile-coloring .profile-grade-note {
    font-size:9px;
    line-height:22px;
  }
}

.profile-color-label-short { display:none; }
@media(max-width:760px), (max-height:500px) {
  .profile-color-label-full { display:none; }
  .profile-color-label-short { display:inline; }
  .profile-footer .profile-grade-control { font-size:12px; max-width:none; }
  .profile-coloring { flex-wrap:wrap; }
}
