.rt-workspace,
.rt-preview {
  min-width: 0;
  color: var(--ink, #182e36);
}
.rt-box,
.rt-preview {
  background: #fff;
  border: 1px solid var(--line, #d8e1e2);
  border-radius: 6px;
}
.rt-workspace h3,
.rt-preview h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 650;
  margin: 0;
}
.rt-controls {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(180px, 0.8fr);
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.rt-field {
  display: grid;
  gap: 6px;
  position: relative;
  align-content: start;
  min-width: 0;
}
.rt-field > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}
.rt-loc {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #155957;
  background: white;
}
.rt-loc.end {
  border-color: #364d68;
  border-radius: 2px;
}
.rt-field select,
.rt-field input {
  color: var(--ink);
  width: 100%;
  min-width: 0;
  min-height: 40px;
  background-color: white;
  border: 1px solid #b8c1c3;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.92rem;
}
.rt-field select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23556768' stroke-width='1.7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.rt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(245px, 0.95fr);
  gap: 16px;
  align-items: start;
}
.rt-map-box,
.rt-comparison,
.rt-details,
.rt-preview {
  overflow: hidden;
}
.rt-map-head,
.rt-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 19px;
}
.rt-sample,
.rt-count,
.rt-preview-head > span {
  font-size: 0.8125rem;
  font-weight: 520;
  color: var(--muted);
}
.rt-map-frame {
  border-block: 1px solid #dbe4df;
  background: #eff1ef;
}
.rt-map-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
}
.rt-parcels {
  fill: #e1e5df;
  stroke: #d6dbd6;
  stroke-width: 0.75;
}
.rt-minor-streets {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
}
.rt-river-bank,
.rt-river {
  stroke: #c0cdcf;
  fill: none;
  stroke-width: 14;
}
.rt-river {
  stroke: #bccfd3;
  stroke-width: 11;
}
.rt-road-edge,
.rt-road-core,
.rt-traces {
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.rt-road-edge {
  stroke: #c8d3cd;
  stroke-width: 8;
}
.rt-road-core {
  stroke: #fff;
  stroke-width: 6;
}
.rt-route.rt-alternate {
  stroke: #778c92;
  stroke-width: 2.3;
  stroke-dasharray: 5 5;
  opacity: 0.82;
}
.rt-route.rt-selected {
  stroke: #155957;
  stroke-width: 4.5;
}
.rt-geolabels {
  fill: #566661;
  font:
    600 8px system-ui,
    sans-serif;
  letter-spacing: 1.5px;
}
.rt-roadnames {
  fill: #526663;
  font:
    italic 8px system-ui,
    sans-serif;
  paint-order: stroke;
  stroke: #eff1ef;
  stroke-width: 2px;
}
.rt-pin {
  fill: #155957;
  stroke: white;
  stroke-width: 2.5;
}
.rt-pin.end {
  fill: #294454;
}
.rt-pin-letter,
.rt-map-issue text {
  fill: #fff;
  font:
    700 11px system-ui,
    sans-serif;
  text-anchor: middle;
}
.rt-junction {
  fill: white;
  stroke: #6e8d83;
  stroke-width: 1.3;
}
.rt-node,
.rt-map-issue {
  cursor: pointer;
  outline: none;
}
.rt-node:hover .rt-junction,
.rt-node:focus .rt-junction,
.rt-node:focus .rt-pin {
  stroke: #163b45;
  stroke-width: 4px;
}
.rt-map-issue .over {
  fill: #a44d34;
  stroke: #fff;
  stroke-width: 2px;
}
.rt-map-issue .near,
.rt-map-issue .unknown {
  fill: #8c682a;
  stroke: #fff;
  stroke-width: 2px;
}
.rt-map-issue:focus circle {
  stroke: #193838;
  stroke-width: 4px;
}
.rt-map-tools,
.rt-node-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 9px;
  margin: 14px 18px;
  font-size: 0.86rem;
  color: #425860;
}
.rt-map-tools > div {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.rt-map-tools button,
.rt-node-picker button,
.rt-preview-link {
  background: #fff;
  border: 1px solid #bdc5c7;
  color: var(--dark-teal);
  font-size: 0.84rem;
  font-weight: 620;
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
}
.rt-map-tools button:hover,
.rt-node-picker button:hover,
.rt-preview-link:hover,
.rt-map-tools button[aria-pressed='true'] {
  background: #eff4f3;
  border-color: #96aaa7;
}
.rt-node-picker {
  justify-content: flex-start;
  padding: 9px;
  background: #f1f4f3;
  border-radius: 4px;
}
.rt-footnote {
  margin: 12px 18px 16px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #596c70;
}
.rt-options {
  padding: 0 12px 12px;
  display: grid;
  gap: 0;
}
.rt-option {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 11px;
  font: inherit;
  cursor: pointer;
}
.rt-option:hover,
.rt-option.active {
  background: #eff4f3;
}
.rt-option-title {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 7px;
}
.rt-option-title strong {
  color: #243d42;
  font-size: 0.9rem;
  font-weight: 630;
}
.rt-radio {
  border: 1px solid #93a5a3;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex: none;
  background: #fff;
}
.rt-option.active .rt-radio {
  border-color: var(--dark-teal);
  background: var(--dark-teal);
  box-shadow: inset 0 0 0 2.5px #fff;
}
.rt-minutes {
  margin-left: auto;
  color: #42585a;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 590;
}
.rt-option-info,
.rt-muted,
.rt-summary,
.rt-details li p {
  color: #52666e;
  font-size: 0.84rem;
  line-height: 1.45;
}
.rt-summary {
  flex: 0 0 100%;
  font-size: 0.79rem;
}
.rt-detour {
  flex: 0 0 100%;
  margin-top: 3px;
  color: var(--dark-teal);
  font-size: 0.82rem;
}
.rt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.3;
  color: #3a5d4f;
}
.rt-badge.over {
  color: #96422c;
}
.rt-badge.unknown,
.rt-badge.near {
  color: #795b24;
}
.rt-badge > span {
  font-size: 0.8rem;
  line-height: 1;
}
.rt-details {
  margin-top: 16px;
  padding: 17px 19px;
}
.rt-details h3 {
  margin-bottom: 5px;
}
.rt-details ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.rt-details li {
  padding: 10px 1px;
  border-top: 1px solid #e1e8e6;
}
.rt-details li div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rt-details li strong {
  font-size: 0.89rem;
}
.rt-details li p {
  margin-top: 4px;
}
.rt-details li:focus {
  outline: 2px solid #188272;
  outline-offset: 2px;
}
.rt-empty {
  padding: 21px;
}
.rt-empty p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #53676a;
  line-height: 1.5;
}
.rt-preview-head {
  padding: 15px 18px 13px;
}
.rt-preview-art {
  overflow: hidden;
  border-block: 1px solid #dbe4df;
  background: #eff1ef;
}
.rt-preview-art .rt-map-svg {
  height: clamp(88px, 8.5vw, 123px);
}
.rt-preview-body {
  margin: 12px 18px 10px;
  line-height: 1.45;
  font-size: 0.84rem;
  color: #53696a;
}
.rt-preview-body strong {
  color: #294044;
  font-weight: 620;
  font-size: 0.91rem;
}
.rt-preview-body div {
  margin-top: 3px;
}
.rt-preview-link {
  display: block;
  width: calc(100% - 36px);
  margin: 0 18px 15px;
  padding: 8px;
  background: white;
}

@media (max-width: 850px) {
  .rt-controls {
    grid-template-columns: 1fr 1fr;
  }
  .rt-depart {
    grid-column: 1/-1;
  }
  .rt-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(216px, 1fr);
    gap: 12px;
  }
}
@media (max-width: 660px) {
  .rt-controls {
    gap: 10px;
    padding: 14px;
  }
  .rt-layout {
    grid-template-columns: 1fr;
  }
  .rt-map-tools,
  .rt-node-picker {
    margin: 12px 14px;
  }
  .rt-map-head,
  .rt-preview-head {
    padding: 14px;
  }
  .rt-footnote {
    margin: 10px 14px 12px;
  }
  .rt-preview-art .rt-map-svg {
    height: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rt-workspace *,
  .rt-preview * {
    scroll-behavior: auto;
  }
}
