


.wp-controls { margin: 6px 0 10px; font-size: 13px; }
.wp-controls[hidden] { display: none; }
.wp-hint { margin: 0 0 6px; color: var(--muted); }
.wp-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.wp-count { flex: 1; min-width: 7em; font-weight: 600; font-variant-numeric: tabular-nums; }
.wp-add[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.wp-clear[hidden] { display: none; }
.wp-note { margin: 6px 0 0; color: var(--fail); }
.wp-note[hidden] { display: none; }

.wp-confirm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--fail);
  border-radius: var(--radius-panel);
  background: var(--bg);
}
.wp-confirm[hidden] { display: none; }
.wp-ask { flex: 1; font-weight: 600; color: var(--fail); }
.wp-delete { background: var(--bg); border-color: var(--fail); color: var(--fail); }
.wp-delete:hover { background: var(--fail); border-color: var(--fail); color: var(--bg); }


.dt-legs tr.at-waypoint > * { border-bottom: 2px solid var(--ink); }
.dt-wp {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 18px;
}



#route-extent.pt-replaced { display: none; }
.pt-table { margin: 4px 0 8px; font-size: 13px; }
.pt-table[hidden] { display: none; }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.pt-title { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; color: var(--muted); }
.pt-reverse { padding: 2px 10px; font-size: 12px; }
.pt-list { display: flex; flex-direction: column; gap: 4px; }
.pt-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
}
.pt-pin { width: 18px; height: 24px; justify-self: center; overflow: visible; }
.pt-pin path { stroke-width: 1.5; }


.pt-start .pt-pin path, .pt-finish .pt-pin path { stroke: var(--bg); }
.pt-waypoint .pt-pin path { fill: var(--border); stroke: var(--body-text); }
.pt-pin text { font: 700 10px "Open Sans", sans-serif; fill: var(--body-text); }
#route-form .pt-input {
  width: 100%;
  min-width: 0;
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.pt-bad .pt-input { border-color: var(--fail); }
.pt-tools { display: flex; gap: 4px; }
.pt-tools button {
  width: 30px; height: 30px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1;
}
.pt-here svg { width: 16px; height: 16px; }
.pt-plus.pt-full { opacity: .45; }
.pt-cause { grid-column: 2 / -1; margin: 2px 0 0; color: var(--fail); font-size: 12px; }
.pt-cause[hidden] { display: none; }



.pt-pause { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 4px; }
.pt-pause button { padding: 2px 10px; font-size: 12px; }
.pt-pause-on[aria-pressed="true"], .pt-way[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--bg);
}
.pt-pause-set { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pt-pause-set[hidden] { display: none; }
.pt-ways { display: inline-flex; flex-wrap: wrap; gap: 4px; }
#route-form .pt-hours { width: 4.5em; margin: 0; font-family: inherit; font-size: 13px; text-align: right; }
.pt-unit { color: var(--muted); }



.wp-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 10px;
           border: 1px solid var(--ink); border-radius: var(--radius-panel); background: var(--bg); }
.wp-menu[hidden] { display: none; }
.wp-menu-title { flex-basis: 100%; font-weight: 600; }
.wp-type[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.wp-menu .wp-delete { margin-left: auto; }
.wp-typebox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px;
              border: 1px solid var(--ink); border-radius: var(--radius-panel); background: var(--bg); }
.wp-typebox[hidden] { display: none; }
.wp-typebox-title { flex-basis: 100%; font-weight: 600; }
.wp-field { display: inline-flex; align-items: center; gap: 4px; }
.wp-field[hidden] { display: none; }
.wp-field input { width: 4.5em; }
.wp-field-course input { width: 4em; }
.wp-choice { display: inline-flex; gap: 4px; }
.wp-choice[hidden] { display: none; }
.wp-option[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.wp-typebox-note { flex-basis: 100%; margin: 0; color: var(--fail); }
.wp-typebox-note:empty { display: none; }
.wp-typebox-row { display: flex; gap: 8px; }
.pt-pause .pt-typebox { margin-top: 4px; }


.pt-way:disabled, .wp-menu .wp-type:disabled { opacity: 0.45; cursor: default; }
.pt-limit, .wp-menu-limit { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
