:root {
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --ink-3: #6f6e69;
  --line: #e4e2dd;
  --surface: #fcfcfb;
  --panel: #ffffff;
  --accent: #1d1d1b;
  --good: #0a7d0a;
  --bad: #b3261e;
  --field: #ffffff;
  --soft: #f4f3ef;
  --on-accent: #ffffff;
  --warn-line: #b26a00;
  --warn-bg: #fff6e5;
  --tip-bg: #eef7ee;
  --radius: 8px;
  color-scheme: light;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

/* Dark theme: follows the device unless the header button picked Light or Dark
   (theme.js sets data-theme). The two blocks hold the same values. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #ecebe6;
    --ink-2: #b4b2ab;
    --ink-3: #8f8d86;
    --line: #3a3936;
    --surface: #141413;
    --panel: #1c1c1a;
    --accent: #ecebe6;
    --good: #5fc26a;
    --bad: #f28b82;
    --field: #232321;
    --soft: #262624;
    --on-accent: #141413;
    --warn-line: #e0a040;
    --warn-bg: #2e2516;
    --tip-bg: #1a2a1c;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --ink: #ecebe6;
  --ink-2: #b4b2ab;
  --ink-3: #8f8d86;
  --line: #3a3936;
  --surface: #141413;
  --panel: #1c1c1a;
  --accent: #ecebe6;
  --good: #5fc26a;
  --bad: #f28b82;
  --field: #232321;
  --soft: #262624;
  --on-accent: #141413;
  --warn-line: #e0a040;
  --warn-bg: #2e2516;
  --tip-bg: #1a2a1c;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* Components set their own display, which would otherwise override [hidden]. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--surface);
}

.layout {
  display: grid;
  grid-template-columns: minmax(340px, 420px) 1fr;
  height: 100dvh;
}

.panel {
  overflow-y: auto;
  padding: 16px 20px 32px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

#map {
  min-height: 100%;
}

@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: 45dvh auto;
    height: auto;
  }
  #map {
    order: -1;
    min-height: 45dvh;
  }
  .panel {
    border-right: 0;
  }
}

h1 {
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.theme-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.theme-button:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.theme-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tagline {
  color: var(--ink-2);
  font-size: 0.8125rem;
  margin: 0 0 8px;
}

h2 {
  font-size: 1rem;
  margin: 20px 0 8px;
}

.muted {
  color: var(--ink-2);
  font-size: 0.875rem;
  margin: 0;
}

form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.field input,
.field select {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  width: 100%;
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.with-button {
  display: flex;
  gap: 6px;
}

.preset-fields {
  display: grid;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 10px;
  margin: 0;
}

.credits {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  margin: 0;
}

.credits legend {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0 4px;
}

.credit-row {
  display: grid;
  grid-template-columns: 1fr 96px 36px;
  gap: 6px;
  align-items: end;
}

.text-button {
  justify-self: start;
  border: 0;
  background: none;
  padding: 2px 0;
  color: var(--ink);
  font-size: 0.875rem;
  text-decoration: underline;
}

.install {
  margin-top: 6px;
}

.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.875rem;
}

button {
  font: inherit;
  cursor: pointer;
}

#plan-button,
#share-button {
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

#plan-button:disabled,
#share-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.icon-button {
  flex: none;
  width: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#status {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.message.warning {
  border-left-color: var(--warn-line);
  background: var(--warn-bg);
}

#status.error {
  color: var(--bad);
}

.summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 16px;
}

.summary .sentence {
  margin: 4px 0 6px;
  font-size: 0.9375rem;
}

.summary .big {
  font-size: 1.375rem;
  font-weight: 650;
}

.summary dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 8px 0 0;
  font-size: 0.875rem;
}

.summary dt {
  color: var(--ink-2);
}

.summary dd {
  margin: 0;
}

.message {
  border-left: 3px solid var(--ink);
  padding: 8px 12px;
  margin-top: 16px;
  background: var(--soft);
  font-size: 0.9375rem;
}

.stops {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.stop-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Revealed under the card while swiping: left = skip for now, right = never use. */
.swipe-hint {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  padding: 0 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.swipe-hint.left {
  justify-content: flex-end;
  background: #6f6e69;
}

.swipe-hint.right {
  justify-content: flex-start;
  background: #b3261e;
}

.swiping-left .swipe-hint.left,
.swiping-right .swipe-hint.right {
  display: flex;
}

.stop {
  position: relative;
  background: var(--panel);
  touch-action: pan-y;
  transition: transform 0.15s ease-out;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
}

.stop:hover {
  border-color: var(--ink-3);
}

.stop .name {
  font-weight: 600;
}

.stop .meta {
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-top: 2px;
}

.stop .line {
  font-size: 0.875rem;
  margin-top: 4px;
}

.stop .note .inkind {
  font-weight: 700;
}

.stop .note .stale {
  color: var(--bad);
  font-weight: 600;
}

.stop .note {
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-top: 4px;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.badge.free {
  color: var(--good);
}

.badge.paid {
  color: var(--ink-2);
}

/* Map and list markers: kind color, white ring, kind icon, stop number.
   Paid stops are hollow so free and paid read apart without color alone. */
.marker {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  background: var(--kind);
}

.marker svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marker.paid {
  background: var(--panel);
  box-shadow: 0 0 0 2px var(--kind);
}

.marker.paid svg {
  stroke: var(--kind);
}

.marker .num {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-accent);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.endpoint {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  background: var(--ink);
  color: var(--on-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-top: 8px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--kind);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links a {
  font-size: 0.875rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
  text-decoration: none;
}

.links a:hover {
  border-color: var(--ink-3);
}

.footnote {
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 16px;
}

.maplibregl-popup-content {
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ink);
  background: var(--panel);
}

.maplibregl-popup-content a {
  color: var(--ink);
}

.maplibregl-popup-close-button {
  color: var(--ink-2);
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: var(--panel);
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: var(--panel);
}

.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: var(--panel);
}

.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: var(--panel);
}

/* Map controls in the dark theme: dark buttons with light icons. */
:root[data-theme='dark'] .maplibregl-ctrl-group {
  background: var(--field);
}

:root[data-theme='dark'] .maplibregl-ctrl-group button + button {
  border-top-color: var(--line);
}

:root[data-theme='dark'] .maplibregl-ctrl-icon {
  filter: invert(1);
}

:root[data-theme='dark'] .maplibregl-ctrl.maplibregl-ctrl-attrib {
  background: rgba(28, 28, 26, 0.8);
  color: var(--ink-2);
}

:root[data-theme='dark'] .maplibregl-ctrl-attrib a {
  color: var(--ink-2);
}

/* Category dots and strips in the dark theme: a faint light outline, so the darker
   colors (museum purple, inKind magenta) still read against the dark panel. */
:root[data-theme='dark'] .legend i,
:root[data-theme='dark'] .strip-label i,
:root[data-theme='dark'] .chip input:not(:checked) + span::before,
:root[data-theme='dark'] .strips i {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .legend i,
  :root:not([data-theme='light']) .strip-label i,
  :root:not([data-theme='light']) .chip input:not(:checked) + span::before,
  :root:not([data-theme='light']) .strips i {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  }

  :root:not([data-theme='light']) .maplibregl-ctrl-group {
    background: var(--field);
  }

  :root:not([data-theme='light']) .maplibregl-ctrl-group button + button {
    border-top-color: var(--line);
  }

  :root:not([data-theme='light']) .maplibregl-ctrl-icon {
    filter: invert(1);
  }

  :root:not([data-theme='light']) .maplibregl-ctrl.maplibregl-ctrl-attrib {
    background: rgba(28, 28, 26, 0.8);
    color: var(--ink-2);
  }

  :root:not([data-theme='light']) .maplibregl-ctrl-attrib a {
    color: var(--ink-2);
  }
}

/* Free-charging codes: an expandable section under the title (/codes opens it). */
.codes-panel {
  margin-top: 10px;
}

.codes-panel .group-body {
  gap: 12px;
}

.codes-panel #network-filter-wrap {
  max-width: 260px;
}

.code-group h3 {
  font-size: 0.875rem;
  margin: 4px 0 6px;
}

.codes-panel a {
  color: var(--ink);
}

.codes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.code-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.code-card .meta {
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-top: 2px;
}

.code-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border: 1px dashed var(--ink-3);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  min-width: 96px;
}

#expired-wrap {
  font-size: 0.875rem;
  color: var(--ink-2);
}

#expired-wrap summary {
  cursor: pointer;
}

.stop-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.stop-actions .text-button {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.swipe-help {
  margin: 6px 0 8px;
}

.skipped-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.875rem;
}

.route-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.route-choice {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
  font-size: 0.8125rem;
}

.route-choice.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* ---- Stop cards: a stack like Apple Wallet passes ---------------------------
   Collapsed cards overlap and show only their header; the open one shows all.
   Thin color strips on the left edge = categories within a 10-minute walk. */
.stops {
  gap: 0;
  padding-bottom: 4px;
}

.stop-wrap {
  border-radius: 16px;
  margin-top: -14px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06), 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: margin 0.2s ease;
}

.stop-wrap:first-child {
  margin-top: 0;
}

.stop-wrap.open {
  margin-top: 10px;
  margin-bottom: 18px;
}

.stop-wrap.open:first-child {
  margin-top: 0;
}

.stop {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.stop:hover {
  border-color: var(--line);
}

.strips {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  gap: 2px;
  padding: 0;
}

.strips i {
  width: 5px;
  height: 100%;
}

.stop-head {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 12px 14px 12px calc(14px + var(--strip-room, 34px));
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
}

.head-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.head-text .name {
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.head-line {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.stop-body {
  display: none;
  padding: 0 14px 14px calc(14px + var(--strip-room, 34px));
}

.stop-wrap.open .stop-body {
  display: block;
}

.strip-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}

.strip-label i,
.legend i.bar {
  display: inline-block;
  width: 5px;
  height: 14px;
  border-radius: 2px;
  background: var(--kind);
}

.note.criteria {
  color: var(--good);
  font-weight: 600;
}

.must {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  margin: 0;
}

.must legend {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0 4px;
}

@media (prefers-reduced-motion: reduce) {
  .stop-wrap,
  .stop {
    transition: none;
  }
}

/* "Must" chips: real checkboxes underneath (keyboard and screen readers work as usual),
   shown as pills. Selected = dark with a check. The dot matches the category color. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  font-size: 0.875rem;
  color: var(--ink);
  user-select: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.chip span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
}

.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-accent);
}

.chip input:checked + span::before {
  content: '✓';
  width: auto;
  height: auto;
  background: none;
  color: var(--on-accent);
  font-size: 0.75rem;
  line-height: 1;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chip:hover span {
  border-color: var(--ink-3);
}

.why {
  margin-top: 8px;
  font-size: 0.8125rem;
}

.why summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.why-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--ink-2);
}

.why-list li {
  margin: 3px 0;
}

/* Collapsed option groups (car and charge, stops): a one-line summary when closed. */
.group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
}

.group summary {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px 32px 10px 12px;
  cursor: pointer;
  list-style: none;
}

.group summary::-webkit-details-marker {
  display: none;
}

.group summary::after {
  content: '▾';
  position: absolute;
  right: 14px;
  color: var(--ink-3);
}

.group[open] summary::after {
  content: '▴';
}

.group-title {
  font-size: 0.875rem;
  font-weight: 650;
}

.group-summary {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.group[open] .group-summary {
  display: none;
}

.group-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

/* Google Maps directions: the main thing to do once a plan is ready. */
.links a.maps-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.35), 0 1px 2px rgba(0, 0, 0, 0.12);
}

.links a.maps-button::before {
  content: '';
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.links a.maps-button:hover {
  background: #1765cc;
  border-color: transparent;
}

.links a.maps-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.search-credit {
  font-size: 0.75rem;
  text-align: center;
}

/* At the destination: free Level 2 and the nearest DC fast charger */
.message.tip {
  border-left-color: var(--good);
  background: var(--tip-bg);
}

.dest-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 10px;
}

.dest-list li {
  border-left: 3px solid var(--good);
  padding: 4px 0 4px 10px;
}

.dest-dc {
  margin-top: 12px;
  font-size: 0.875rem;
}

/* The owner's round-trip visits. */
.visits {
  margin-top: 16px;
}

.visit-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: grid;
  gap: 10px;
}

.visit-list li {
  border-left: 3px solid var(--good);
  padding: 4px 0 4px 10px;
  font-size: 0.875rem;
}

.visit-leg {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* The owner's "plot" picks: what's within 5 miles of the route, listed by mile. */
.plot-list {
  margin-top: 8px;
  font-size: 0.875rem;
}

.plot-list summary {
  cursor: pointer;
}

.plot-list ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  max-height: 320px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.plot-list li {
  border-bottom: 1px solid var(--line);
}

.plot-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 2px;
  text-decoration: none;
  font-size: 0.8125rem;
}

.plot-mile {
  display: inline-block;
  min-width: 3.6em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.plot-star {
  color: #b58100;
}

.plot-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: -1px;
}

.plot-dot.inkind {
  background: #c2185b;
}

.plot-dot.museum {
  background: #6b57d6;
}

.stop .note .museum-on-list {
  font-weight: 700;
}

.plot-dot.dc {
  border: 2px solid #0f9f8f;
  background: #fff;
}

.plot-dot.dc.chargepoint {
  border-color: #f28c28;
}

/* Share a code: just the code and network are needed. */
.share {
  background: var(--panel);
}

.share .group-body {
  display: grid;
  gap: 10px;
}

.share-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share .footnote {
  margin-top: 0;
}

/* Hidden field that only bots fill in. */
.share .hp {
  position: absolute;
  left: -9999px;
}

#share-status.error {
  color: var(--bad);
}

/* Free Level 2 near the destination on the map: small squares, so they read as
   different from the round, numbered stops. Solid = free price; outlined = paid
   with a credit (ChargePoint or EVgo). */
.l2-marker {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  background: #0a7d0a;
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.l2-marker.credit {
  background: var(--panel);
  color: var(--good);
  box-shadow: 0 0 0 2px var(--good);
}

.dest-list li.credit {
  border-left-style: dashed;
}

.chips-note {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}
