/*
 * The route planner's layout: the map stage, the sidebar and the overlay
 * chrome that sits on top of them.
 *
 * PORTED FROM SkyTrackPro's edit-task.css, which the fork renamed in the
 * markup (tl-task-edit -> tl-route-edit) but never brought across. The
 * planner block has been loading a stylesheet that does not exist, so all
 * twenty one of its layout classes have had no rules at all: the page still
 * renders, which is exactly why nobody noticed.
 *
 * Only the rules the planner actually uses are here. The task editor's shared
 * task browser, its turnpoint list and its type picker are not TerraLoc
 * features and dragging them across would be 1300 lines of dead CSS.
 */

/*==============================================*\
|| TerraLoc Task Manager & Map styles (combined)||
\*==============================================*/

/* =========================================
   Design tokens
   ========================================= */
:root {
  --tl-radius: .5rem;
  --tl-shadow-sm: 0 4px 16px rgba(0,0,0,.12);
  --tl-shadow-md: 0 8px 28px rgba(0,0,0,.16);
  --tl-shadow-lg: 0 6px 24px rgba(0,0,0,.15);
  --tl-border: 1px solid rgba(0,0,0,.08);
  --tl-muted: #6c757d;

  /* Fallback-friendly theme hooks */
  --tl-primary: var(--tblr-primary, #206bc4);
  --tl-primary-bg-subtle: var(--tblr-primary-bg-subtle, #eef5ff);
  --tl-border-color: var(--tblr-border-color, #e6e8eb);
  --tl-border-color-hover: var(--tblr-border-color-hover, #dfe3e6);
  --tl-route-edit-sidebar-w: 380px;
  --tl-route-edit-sidebar-w-lg: 340px;
}





/* =========================================
   Frontend task editor map-first layout
   -----------------------------------------
   The layout hangs off the view element, and the selectors below name two of
   them: #taskView from SkyTrackPro's task editor and #tleagues-planner-main in
   the route planner.

   This matters more than it looks. Everything here, including the only rule
   that gives the page a height, was keyed to #taskView alone, and no markup in
   this codebase carries that id: it came across from SkyTrackPro and the
   element was renamed on the way. The planner therefore rendered at
   1440x0 pixels, which is what "the route planner shows nothing" was.
   ========================================= */
.tl-route-edit-page {
  margin: 0;
  padding: 0;
}





.tl-route-edit-page #taskView,
.tl-route-edit-page #tleagues-planner-main {
  --tl-route-edit-top-offset: 0px;
  --tl-route-edit-sidebar-w: 370px;
  --tl-route-edit-sidebar-w-md: 370px;
  --tl-route-edit-sidebar-current-w: var(--tl-route-edit-sidebar-w);
  --tl-route-edit-handle-w: 20px;
  --tl-route-edit-handle-h: 76px;
  --tl-route-edit-radius: 1.15rem;
  --tl-route-edit-radius-sm: 0.9rem;
  --tl-route-edit-shadow-sm: 0 10px 26px rgba(15, 23, 42, 0.12);
  --tl-route-edit-shadow-md: 0 20px 48px rgba(15, 23, 42, 0.18);
  --tl-route-edit-border: rgba(255, 255, 255, 0.42);
  --tl-route-edit-overlay-bg: rgba(var(--bs-body-bg-rgb, 255, 255, 255), 0.82);
  --tl-route-edit-overlay-bg-strong: rgba(var(--bs-body-bg-rgb, 255, 255, 255), 0.92);
  position: relative;
  width: 100%;
  height: calc(100vh - var(--tl-route-edit-top-offset, 0px));
  height: calc(100svh - var(--tl-route-edit-top-offset, 0px));
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0) 28%),
    var(--bs-body-bg, #fff);
  color: var(--bs-body-color);
}





.tl-route-edit-page .tl-route-edit-layout {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}





.tl-route-edit-page .tl-route-edit-map-stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}





.tl-route-edit-page .tl-route-edit-map-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}





.tl-route-edit-page .tl-route-edit-map-wrap {
  overflow: hidden;
  isolation: isolate;
}





.tl-route-edit-page .tl-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border-radius: 0;
  background: var(--bs-tertiary-bg, #d7e3ef);
  transform: translateZ(0);
  backface-visibility: hidden;
}





.tl-route-edit-page .tl-route-edit-overlay {
  position: absolute;
  z-index: 6;
}





.tl-route-edit-page .tl-route-edit-map-actions {
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto;
  max-width: calc(100% - 1.5rem);
  pointer-events: none;
}





.tl-route-edit-page .tl-route-edit-map-stats {
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto;
  max-width: calc(100% - 1.5rem);
  pointer-events: none;
}





.tl-route-edit-page .tl-route-edit-map-actions > * {
  pointer-events: auto;
}





/* Labelled pills on paper, not dark glass discs. Their names used to live in
   a visually-hidden span, so the row was four identical circles. */
.tl-route-edit-page .tl-route-edit-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  position: relative;
  overflow: visible;
  width: auto;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  padding: 0 0.8rem;
  border-width: 1px;
  border-style: solid;
  border-radius: 8px;
  box-shadow: 0 8px 20px -14px rgba(35, 40, 31, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}





.tl-route-edit-page .tl-route-edit-action-btn i {
  font-size: 0.8rem;
  color: inherit;
}





.tl-route-edit-page .tl-route-edit-action-btn.btn-secondary,
.tl-route-edit-page .tl-route-edit-action-btn.btn-primary,
.tl-route-edit-page .tl-route-edit-action-btn.btn-outline-primary,
.tl-route-edit-page .tl-route-edit-action-btn.btn-outline-secondary {
  --bs-btn-bg: var(--tl-panel, #FAF9F4);
  --bs-btn-border-color: var(--tl-hairline-strong, #C9C5B2);
  --bs-btn-color: var(--tl-ink, #23281F);
}

/*
  THE HOVER IS SET THROUGH BOOTSTRAP'S OWN VARIABLES.

  Writing background/color on :hover here was a fight with .btn:hover, which
  paints from --bs-btn-hover-bg, and the fight was being lost: the button
  filled with the variable's value and only the text came from here, so it
  was the accent green on the accent green. Setting the variables instead
  means Bootstrap's own rule paints exactly this, and there is nothing left
  to override.

  Quiet, because these sit in a strip of figures rather than at the end of a
  form: the paper deepens a shade and the label takes the accent.
*/
.tl-route-edit-page .tl-route-edit-action-btn {
  --bs-btn-hover-bg: var(--tl-paper-deep, #EFEDE2);
  --bs-btn-hover-border-color: var(--tl-accent, #46603C);
  --bs-btn-hover-color: var(--tl-accent, #46603C);
  --bs-btn-active-bg: var(--tl-paper-deep, #EFEDE2);
  --bs-btn-active-border-color: var(--tl-accent, #46603C);
  --bs-btn-active-color: var(--tl-accent, #46603C);
}

.tl-route-edit-page .tl-route-edit-action-btn:hover,
.tl-route-edit-page .tl-route-edit-action-btn:focus-visible {
  outline: none;
}





/* Nothing to share, download or save until the route has points. Bootstrap
   fades a disabled button to 65% opacity, which over a map leaves a filled
   accent pill you can neither read nor tell is unavailable. A quiet outline
   says "not yet" without becoming a smudge on the terrain. */
.tl-route-edit-page .tl-route-edit-action-btn:disabled,
.tl-route-edit-page .tl-route-edit-action-btn.disabled {
  opacity: 1;
  background: var(--tl-panel, #FAF9F4);
  border-color: var(--tl-hairline, #DFDCCB);
  color: var(--tl-dim, #8B8F80);
  cursor: not-allowed;
  box-shadow: none;
}

/* Save is the one action that commits something, so it is the only filled
   pill in the row. Bootstrap's success green was not a TerraLoc colour. */
.tl-route-edit-page .tl-route-edit-action-btn.btn-success,
.tl-route-edit-page .tl-route-edit-action-btn-save {
  background: var(--tl-accent, #46603C);
  color: var(--tl-accent-ink, #F3F2EC);
  border-color: var(--tl-accent, #46603C);
}

.tl-route-edit-page .tl-route-edit-action-btn.btn-success:hover,
.tl-route-edit-page .tl-route-edit-action-btn-save:hover {
  background: var(--tl-accent-hover, #2E4228);
  border-color: var(--tl-accent-hover, #2E4228);
  color: var(--tl-accent-ink, #F3F2EC);
}





.tl-route-edit-page .tl-route-edit-action-btn:disabled,
.tl-route-edit-page .tl-route-edit-action-btn.disabled {
  opacity: 0.55;
  box-shadow: none;
}





.tl-route-edit-page .tl-route-edit-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--bs-body-bg-rgb, 255, 255, 255), 0.9);
  border: 1px solid rgba(var(--bs-body-color-rgb, 33, 37, 41), 0.07);
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}





.tl-route-edit-page .tl-route-edit-stat-chip i {
  color: var(--bs-primary);
}





.tl-route-edit-page .tl-route-edit-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--tl-route-edit-sidebar-current-w);
  max-width: min(92vw, var(--tl-route-edit-sidebar-current-w));
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.08));
  background-color: rgba(var(--bs-body-bg-rgb, 255, 255, 255), 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 18px 0 40px rgba(15, 23, 42, 0.16);
  transform: translateX(0);
  opacity: 1;
  transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
  z-index: 4;
}





.tl-route-edit-page #taskView,
.tl-route-edit-page #tleagues-planner-main.tl-route-edit-sidebar-collapsed .tl-route-edit-sidebar {
  transform: translateX(calc(-100% - 1rem));
  opacity: 0;
  box-shadow: none;
  pointer-events: none;
}





.tl-route-edit-page .tl-route-edit-sidebar-header {
  position: relative;
  z-index: 2;
  padding:
    0.95rem
    1rem
    0.85rem
    calc(1rem + env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.08));
  background-color: rgba(var(--bs-secondary-bg-rgb, 248, 249, 250), 0.9);
  backdrop-filter: blur(8px);
}





.tl-route-edit-page .tl-route-edit-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bs-secondary-color, #6c757d);
}





.tl-route-edit-page .tl-route-edit-sidebar-title {
  margin: 0.28rem 0 0;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--bs-body-color, #111);
  word-break: break-word;
}





.tl-route-edit-page .tl-route-edit-sidebar-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding:
    0.8rem
    0.75rem
    calc(0.85rem + env(safe-area-inset-bottom, 0px))
    0.75rem;
}





.tl-route-edit-page .tl-route-edit-sidebar-body > .tab-pane {
  min-height: 100%;
}





.tl-route-edit-page .tl-route-edit-sidebar-body > .tab-pane.active {
  display: flex;
  flex-direction: column;
}





.tl-route-edit-page .tl-route-edit-panel {
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.08));
  border-radius: 1rem;
  background: rgba(var(--bs-body-bg-rgb, 255, 255, 255), 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}





.tl-route-edit-page .tl-route-edit-panel-fill {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 100%;
}





.tl-route-edit-page .tl-route-edit-panel-body {
  padding: 0.85rem 0.9rem;
}





.tl-route-edit-page .tl-route-edit-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem 0.75rem;
  border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.08));
  background: rgba(var(--bs-secondary-bg-rgb, 248, 249, 250), 0.9);
}





.tl-route-edit-page .tl-route-edit-panel-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bs-secondary-color, #6c757d);
}





.tl-route-edit-page .tl-route-edit-sidebar-handle {
  position: absolute;
  top: 50%;
  left: calc(var(--tl-route-edit-sidebar-current-w) - 1px);
  transform: translateY(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tl-route-edit-handle-w);
  height: var(--tl-route-edit-handle-h);
  padding: 0;
  margin: 0;
  border: 1px solid var(--bs-border-color, rgba(15, 23, 42, 0.12));
  border-left: none;
  border-radius: 0 16px 16px 0;
  background:
    linear-gradient(
      180deg,
      rgba(var(--bs-body-bg-rgb, 255, 255, 255), 0.99) 0%,
      rgba(var(--bs-secondary-bg-rgb, 248, 249, 250), 0.94) 100%
    );
  color: var(--bs-body-color, #111);
  box-shadow:
    10px 0 24px rgba(15, 23, 42, 0.1),
    0 8px 18px rgba(15, 23, 42, 0.1);
  cursor: pointer;
  transition:
    left 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}





.tl-route-edit-page #taskView,
.tl-route-edit-page #tleagues-planner-main.tl-route-edit-sidebar-collapsed .tl-route-edit-sidebar-handle {
  left: env(safe-area-inset-left, 0px);
}





.tl-route-edit-page .tl-route-edit-sidebar-handle:hover,
.tl-route-edit-page .tl-route-edit-sidebar-handle:focus-visible {
  background:
    linear-gradient(
      180deg,
      rgba(var(--bs-body-bg-rgb, 255, 255, 255), 1) 0%,
      rgba(var(--bs-secondary-bg-rgb, 248, 249, 250), 0.98) 100%
    );
  box-shadow:
    12px 0 28px rgba(15, 23, 42, 0.12),
    0 10px 22px rgba(15, 23, 42, 0.12);
}





.tl-route-edit-page .tl-route-edit-sidebar-handle i {
  pointer-events: none;
  font-size: 0.95rem;
  opacity: 0.72;
  transform: translateX(-1px);
}

@media (max-width: 991.98px) {


  .tl-route-edit-page #taskView,
.tl-route-edit-page #tleagues-planner-main {
    --tl-route-edit-sidebar-current-w: var(--tl-route-edit-sidebar-w-md);
  }



  .tl-route-edit-page #taskView,
.tl-route-edit-page #tleagues-planner-main:not(.tl-route-edit-sidebar-ready) .tl-route-edit-sidebar {
    transform: translateX(calc(-100% - 1rem));
    opacity: 0;
    box-shadow: none;
    pointer-events: none;
  }



  .tl-route-edit-page .tl-route-edit-map-actions,
  .tl-route-edit-page .tl-route-edit-map-stats {
    max-width: calc(100% - 1.5rem);
  }
}

@media (max-width: 767.98px) {


  .tl-route-edit-page .tl-route-edit-map-actions {
    top: calc(2.75rem + env(safe-area-inset-top, 0px));
    flex-wrap: nowrap;
    gap: 0.32rem;
    width: max-content;
    max-width: calc(100% - 1rem);
  }



  .tl-route-edit-page .tl-route-edit-action-btn {
    width: 2.6rem;
    min-width: 2.6rem;
    min-height: 2.6rem;
    border-radius: 0.9rem;
  }



  .tl-route-edit-page .tl-route-edit-action-btn i {
    font-size: 0.95rem;
  }



  .tl-route-edit-page .tl-route-edit-map-stats {
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    gap: 0.35rem;
  }



  .tl-route-edit-page .tl-route-edit-stat-chip {
    min-height: 2rem;
    padding: 0.42rem 0.7rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 575.98px) {


  .tl-route-edit-page .tl-route-edit-map-actions {
    top: calc(2.95rem + env(safe-area-inset-top, 0px));
    gap: 0.28rem;
  }



  .tl-route-edit-page .tl-route-edit-action-btn {
    width: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
  }

  /*
   * AND THE WORD HAS TO GO WITH THE WIDTH.
   *
   * The button was squeezed to a 2.5rem square and its label was left in
   * place, so the text overflowed and four buttons overlapped into
   * "Go bac Shar Downl Save route" across the top of the map. Every one of
   * them already carries an aria-label and a title, so the name is still
   * there for a screen reader and for a hover.
   */
  .tl-route-edit-page .tl-route-edit-action-btn > span {
    display: none;
  }



  .tl-route-edit-page .tl-route-edit-sidebar-header {
    padding-right: 0.85rem;
  }



  .tl-route-edit-page .tl-route-edit-sidebar-body {
    padding-inline: 0.65rem;
  }



  .tl-route-edit-page .tl-route-edit-sidebar-title {
    font-size: 1.2rem;
  }



  .tl-route-edit-page .tl-route-edit-panel-body,
  .tl-route-edit-page .tl-route-edit-panel-head {
    padding-inline: 0.85rem;
  }
}





/* Both halves need the dark prefix. Written as one selector list with the
   prefix on the first only, the planner root took the night background on the
   day face as well. */
[data-bs-theme="dark"] .tl-route-edit-page #taskView,
[data-bs-theme="dark"] .tl-route-edit-page #tleagues-planner-main {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.16) 0%, rgba(15, 23, 42, 0) 28%),
    var(--bs-body-bg, #111);
}





[data-bs-theme="dark"] .tl-route-edit-page .tl-route-edit-sidebar-header,
[data-bs-theme="dark"] .tl-route-edit-page .tl-route-edit-panel-head {
  background: rgba(var(--bs-tertiary-bg-rgb, 52, 58, 64), 0.88);
}





[data-bs-theme="dark"] .tl-route-edit-page .tl-route-edit-stat-chip {
  background: rgba(var(--bs-tertiary-bg-rgb, 52, 58, 64), 0.84);
  color: rgba(255, 255, 255, 0.82);
}





[data-bs-theme="dark"] .tl-route-edit-page .tl-route-edit-sidebar-handle {
  background-color: rgba(var(--bs-secondary-bg-rgb, 33, 37, 41), 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--bs-body-color);
}




/* ==========================================================================
   Task Weather editor — forecast fetch + editable conditions and wind levels.
   ========================================================================== */
.tl-route-edit-page .tl-wx-ed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}




.tl-route-edit-page .tl-wx-ed-fetch {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}




.tl-route-edit-page .tl-wx-ed-ctx {
  font-size: 12.5px;
  color: var(--tl-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}




.tl-route-edit-page .tl-wx-ed-ctx b {
  color: var(--tl-ink);
  font-weight: 600;
}




.tl-route-edit-page .tl-wx-ed-ctx .sep {
  opacity: 0.5;
}




.tl-route-edit-page .tl-wx-ed-hint {
  font-size: 12px;
  color: var(--tl-muted);
  margin: 0;
}




.tl-route-edit-page .tl-wx-ed-status {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--tl-muted);
}





.tl-route-edit-page .tl-wx-ed-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}




.tl-route-edit-page .tl-wx-ed-gl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tl-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}




.tl-route-edit-page .tl-wx-ed-gl .opt {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  opacity: 0.7;
}





.tl-route-edit-page .tl-wx-ed-conds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}




.tl-route-edit-page .tl-wx-ed-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}




.tl-route-edit-page .tl-wx-ed-field label {
  font-size: 11px;
  color: var(--tl-muted);
}




.tl-route-edit-page .tl-wx-ed-field .ig {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 9px;
  padding: 2px 9px;
}




.tl-route-edit-page .tl-wx-ed-field .ig input {
  border: 0;
  background: transparent;
  color: var(--tl-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 14px;
  width: 100%;
  outline: none;
  padding: 5px 0;
}




.tl-route-edit-page .tl-wx-ed-field .ig select.form-select {
  border: 0;
  background-color: transparent;
  box-shadow: none;
  color: var(--tl-ink);
  font-weight: 600;
  font-size: 13px;
  width: 100%;
  padding: 5px 1.4rem 5px 0;
}




.tl-route-edit-page .tl-wx-ed-field .ig .u {
  font-size: 11px;
  color: var(--tl-muted);
  flex: none;
}





.tl-route-edit-page .tl-wx-ed-levels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}




.tl-route-edit-page .tl-wx-ed-level {
  display: grid;
  grid-template-columns: 64px 44px 1fr auto;
  gap: 9px;
  align-items: center;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  padding: 8px 9px;
}




.tl-route-edit-page .tl-wx-ed-alt {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 4px 7px;
}




.tl-route-edit-page .tl-wx-ed-alt input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--tl-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 13px;
  outline: none;
}




.tl-route-edit-page .tl-wx-ed-alt .u {
  font-size: 10px;
  color: var(--tl-muted);
}




.tl-route-edit-page .tl-wx-ed-dial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  display: grid;
  place-items: center;
  position: relative;
  cursor: grab;
  padding: 0;
  touch-action: none;
}




.tl-route-edit-page .tl-wx-ed-dial:active {
  cursor: grabbing;
}




.tl-route-edit-page .tl-wx-ed-dial .arrow {
  display: grid;
  color: var(--tl-accent);
  transition: transform 0.15s;
}




.tl-route-edit-page .tl-wx-ed-dial .arrow svg {
  width: 20px;
  height: 20px;
}




.tl-route-edit-page .tl-wx-ed-dial::after {
  content: "N";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  color: var(--tl-muted);
}




.tl-route-edit-page .tl-wx-ed-wind {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}




.tl-route-edit-page .tl-wx-ed-wind .seg {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 4px 8px;
}




.tl-route-edit-page .tl-wx-ed-wind .seg input {
  border: 0;
  background: transparent;
  color: var(--tl-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 13px;
  outline: none;
  width: 34px;
  text-align: center;
}




.tl-route-edit-page .tl-wx-ed-wind .seg.dir input {
  width: 40px;
  text-transform: uppercase;
}




.tl-route-edit-page .tl-wx-ed-wind .seg .u {
  font-size: 10px;
  color: var(--tl-muted);
}




.tl-route-edit-page .tl-wx-ed-del {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--tl-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}




.tl-route-edit-page .tl-wx-ed-del:hover {
  color: var(--bs-danger);
  border-color: var(--bs-danger);
}




.tl-route-edit-page .tl-wx-ed-add {
  align-self: flex-start;
  background: transparent;
  border: 1px dashed var(--bs-border-color);
  color: var(--tl-accent);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}




.tl-route-edit-page .tl-wx-ed-add:hover {
  border-color: var(--tl-accent);
  background: rgba(var(--tl-accent-rgb), 0.06);
}




.tl-route-edit-page .tl-wx-ed-add i {
  font-size: 11px;
}




.tl-route-edit-page .tl-wx-ed-notes {
  font-size: 13px;
}

/* ------------------------------------------------------------------
   Three classes the TerraLoc planner block introduced.

   They have no counterpart in the stylesheet this file was ported from,
   so they are written here rather than renamed from anything. Without
   them the markup carried class names that matched no rule at all.
   ------------------------------------------------------------------ */

/* The whole planner, below the site header. */
.tl-route-edit-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

/* Back is the one action that leaves the planner, so it reads quieter than
   Save next to it: same size and shape, less contrast. */
.tl-route-edit-page .tl-route-edit-action-btn-back {
  background: rgba(52, 58, 64, 0.62);
  border-color: rgba(255, 255, 255, 0.10);
}
.tl-route-edit-page .tl-route-edit-action-btn-back:hover {
  background: rgba(52, 58, 64, 0.85);
}

/* The line of explanation under the sidebar title. */
.tl-route-edit-page .tl-route-edit-sidebar-copy {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--bs-secondary-color, #6c757d);
}
