:root {
  color-scheme: light;
  --ink: #281044;
  --paper: #faf9f6;
  --violet: #613bac;
  --acid: #e7ff00;
  --line: #dfdcd9;
  --muted: #665e6a;
  --wash: #f1edf7;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button svg,
[data-icon] svg {
  display: block;
  width: 18px;
  height: 18px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #9061dc;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1220px;
  margin: auto;
  padding-inline: clamp(16px, 4.5vw, 64px);
}
.topbar {
  background: var(--ink);
  color: white;
}
.bar-inner,
.brand,
.intro,
.session,
.panel-head,
.target,
.target-view,
.file-button,
.map-foot,
.legend,
.legend > span,
.dialog-title,
.dialog-actions {
  display: flex;
  align-items: center;
}
.bar-inner {
  height: 72px;
  justify-content: space-between;
}
.brand {
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 550;
  letter-spacing: 0.01em;
}
.brand img {
  display: block;
  width: 48px;
  height: auto;
  border-radius: 3px;
}
.bar-divider {
  height: 23px;
  width: 1px;
  background: #705c81;
}
.file-button,
.target-view,
.secondary,
.primary {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 600;
  font-size: 0.86rem;
  gap: 9px;
}
.file-button {
  color: white;
  background: #ffffff08;
  border-color: #ffffff45;
}
.file-button:hover {
  background: #ffffff18;
}
.intro {
  justify-content: space-between;
  gap: 16px;
  padding: clamp(24px, 4vw, 44px) 0 24px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2.05rem, 4.25vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 750;
}
.intro p,
.choice-head p,
.chart-head p,
dialog p {
  color: var(--muted);
  line-height: 1.45;
}
.intro p {
  margin-top: 9px;
  font-size: 1rem;
}
.session {
  flex-shrink: 0;
  gap: 8px;
  background: #eeebf0;
  border-radius: 30px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}
.session i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c6497;
}
.target {
  gap: 19px;
  padding: 19px 22px;
  background: #f1edf6;
  border: 1px solid #d8cfe4;
  border-radius: 13px;
  margin-bottom: 18px;
}
.target-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--acid);
  flex: none;
}
.target-symbol svg {
  width: 22px;
  height: 22px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.67rem;
  font-weight: 750;
  color: #715885;
  display: block;
  line-height: 1.3;
}
.target-title {
  flex: 1;
  min-width: 0;
}
h2 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.target-title h2,
.panel-head .eyebrow + h2 {
  margin-top: 5px;
}
#spark {
  width: min(12vw, 136px);
  height: 38px;
  margin-inline: 4px 8px;
}
.target-stat {
  border-left: 1px solid #d4cbdd;
  min-width: 76px;
  padding-left: 18px;
}
.target-stat span {
  color: var(--muted);
  font-size: 0.73rem;
}
.target-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
  white-space: nowrap;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.target-view {
  background: transparent;
  border-color: #cec4d8;
  white-space: nowrap;
}
.target-view[aria-pressed="true"],
.target-view:hover {
  background: #e4dcec;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.98fr) minmax(265px, 1fr);
  gap: 18px;
  align-items: stretch;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.panel-head {
  padding: 18px 21px;
  justify-content: space-between;
  gap: 14px;
}
.map-indicator,
.legend,
.map-foot {
  color: var(--muted);
  font-size: 0.74rem;
}
.map-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.map-indicator i,
.local-line {
  width: 16px;
  height: 3px;
  background: var(--violet);
  border-radius: 1.5px;
}
.map-field {
  position: relative;
  border-block: 1px solid #d9d8d0;
  background: #e9e6dc;
}
#map {
  display: block;
  width: 100%;
  height: clamp(260px, 23vw, 335px);
}
.map-buttons {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  flex-direction: column;
  border: 1px solid #c8c5bc;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.map-buttons button,
.close {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  background: white;
  display: grid;
  place-items: center;
}
.map-buttons button + button {
  border-top: 1px solid #e4e0db;
}
.map-buttons button:hover,
.close:hover {
  background: var(--wash);
}
.map-foot {
  gap: 6px;
  min-height: 32px;
  flex-wrap: wrap;
  padding: 6px 14px;
  font-size: 0.66rem;
}
.start-dot {
  border: 2px solid var(--violet);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: white;
}
.map-credit {
  margin-left: auto;
  text-align: right;
}
.map-credit a {
  color: inherit;
}
.choices {
  padding: 21px;
  display: flex;
  flex-direction: column;
}
.choice-head p,
.chart-head p {
  font-size: 0.84rem;
  margin-top: 5px;
}
#route-choices {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}
.route-choice {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  text-align: left;
  padding: 13px 12px;
  width: 100%;
  min-width: 0;
}
.route-choice.selected {
  border-color: var(--violet);
  box-shadow: inset 0 0 0 0.5px var(--violet);
  background: #f7f3fb;
}
.route-choice:hover {
  border-color: var(--violet);
}
.choice-letter {
  border-radius: 6px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
  color: #66596c;
  background: #ece9ee;
  font-size: 0.8rem;
}
.selected .choice-letter {
  color: white;
  background: var(--violet);
}
.choice-info {
  flex: 1;
  min-width: 0;
}
.choice-info strong {
  display: block;
  margin: 3px 0 7px;
  font-size: 0.99rem;
  overflow-wrap: anywhere;
}
.choice-info small {
  color: var(--muted);
  font-size: 0.77rem;
}
.radio {
  width: 15px;
  height: 15px;
  flex: none;
  border: 1px solid #aaa0b0;
  border-radius: 50%;
  margin-top: 5px;
  background: white;
}
.selected .radio {
  background: var(--violet);
  border-color: var(--violet);
  box-shadow: inset 0 0 0 3px white;
}
.download-wrap {
  margin-top: auto;
}
#download,
.primary {
  background: var(--ink);
  color: white;
  border: 0;
  border-radius: 8px;
  font-weight: 650;
}
#download {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
}
#download [data-icon] {
  color: var(--acid);
}
#download:hover,
.primary:hover {
  background: #472369;
}
#export-note {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  margin-top: 7px;
}
.elevation {
  margin: 18px 0 35px;
  padding-bottom: 8px;
}
.legend {
  flex-wrap: wrap;
  gap: 16px;
}
.legend > span {
  gap: 6px;
}
.target-line {
  width: 20px;
  border-top: 2px dashed #937fa9;
}
#profile {
  display: block;
  width: calc(100% - 30px);
  margin: 0 15px;
  height: 165px;
}
.profile-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 6px 20px;
}
#startup {
  margin: 15px 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  padding: 24px;
  width: min(440px, calc(100% - 28px));
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #21152c70;
}
.dialog-title,
.dialog-actions {
  justify-content: space-between;
  gap: 10px;
}
.close {
  border-radius: 8px;
}
dialog p {
  font-size: 0.88rem;
  margin: 10px 0 16px;
}
.file-slot {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 650;
  font-size: 0.9rem;
}
.file-slot small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
}
.file-slot input {
  display: block;
  max-width: 100%;
  font-size: 0.8rem;
}
.dialog-actions {
  margin-top: 15px;
}
#file-error {
  color: #922947;
  font-size: 0.83rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 780px) {
  .target {
    gap: 12px;
    padding: 15px;
  }
  .target-stat {
    padding-left: 13px;
    min-width: 64px;
  }
  #spark {
    display: none;
  }
  .choices {
    padding: 15px;
  }
  .layout {
    gap: 12px;
    grid-template-columns: minmax(0, 1.4fr) minmax(225px, 1fr);
  }
  .panel-head {
    padding: 15px;
  }
  .choice-info strong {
    font-size: 0.9rem;
  }
}
@media (max-width: 620px) {
  .bar-inner {
    height: 59px;
  }
  .brand {
    gap: 11px;
    font-size: 0.8rem;
  }
  .brand img {
    width: 39px;
  }
  .file-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
  }
  .intro {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px;
    padding: 24px 0 15px;
  }
  .intro p {
    font-size: 0.88rem;
    margin-top: 5px;
  }
  .session {
    font-size: 0.69rem;
    padding: 5px 9px;
  }
  .target {
    display: grid;
    grid-template-columns: 34px 1fr auto auto;
    gap: 10px;
    margin-bottom: 12px;
  }
  .target-symbol {
    width: 34px;
    height: 34px;
  }
  .target-title {
    grid-column: 2/5;
  }
  .target-title h2 {
    font-size: 1.04rem;
  }
  .target-stat {
    min-width: 0;
    border: 0;
    padding-left: 0;
  }
  .target-stat:nth-of-type(3) {
    grid-column: 2;
  }
  .target-stat strong {
    font-size: 0.88rem;
  }
  .target-stat span {
    font-size: 0.68rem;
  }
  .target-view {
    font-size: 0.72rem;
    min-height: 34px;
    padding: 0 8px;
  }
  .target-view svg {
    width: 14px;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .choices {
    order: -1;
    padding: 14px;
  }
  .choice-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }
  .choice-head p {
    font-size: 0.75rem;
  }
  .choice-head h2,
  h2 {
    font-size: 1.12rem;
  }
  #route-choices {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin: 12px 0;
  }
  .route-choice {
    position: relative;
    padding: 9px;
    gap: 7px;
  }
  .choice-letter {
    width: 21px;
    height: 21px;
    font-size: 0.68rem;
  }
  .choice-info strong {
    font-size: 0.83rem;
    line-height: 1.2;
    margin: 3px 0 4px;
  }
  .choice-info small {
    font-size: 0.69rem;
  }
  .radio {
    display: none;
  }
  #download {
    min-height: 40px;
  }
  #export-note {
    font-size: 0.67rem;
  }
  #map {
    height: 258px;
  }
  .map-buttons button {
    min-height: 39px;
    min-width: 39px;
  }
  .panel-head {
    padding: 13px 15px;
  }
  .map-foot {
    padding: 5px 9px;
  }
  .elevation {
    margin-top: 12px;
  }
  .chart-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .legend {
    gap: 12px;
  }
  .chart-head p {
    font-size: 0.76rem;
  }
  #profile {
    margin: 0 6px;
    width: calc(100% - 12px);
    height: 150px;
  }
  .target .eyebrow,
  .panel-head .eyebrow {
    font-size: 0.6rem;
  }
}
#map {
  cursor: grab;
  touch-action: pan-y;
}
#map:active {
  cursor: grabbing;
}

#map.pannable {
  touch-action: none;
}
