:root {
  --ink: #233438;
  --accent: #28577d;
  --line: #d8d9c9;
  --paper: #ffffff;
  --muted: #56625c;
  --on-accent: #ffffff;
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f4eb;
  background-image:
    linear-gradient(rgba(174, 174, 147, 0.267) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 174, 147, 0.267) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--ink);
  font:
    15px/1.5 'DM Sans',
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  color: var(--ink);
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
button:focus,
select:focus,
input:focus {
  outline: 3px solid #a23943;
  outline-offset: 2px;
}
@supports selector(:focus-visible) {
  button:focus:not(:focus-visible),
  select:focus:not(:focus-visible),
  input:focus:not(:focus-visible) {
    outline: none;
  }
}
button:active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
i[data-i] {
  display: inline-flex;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}
i svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  shape-rendering: crispEdges;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.shell {
  max-width: 1016px;
  margin: auto;
  padding: 0 30px 14px;
}
.top,
.brand,
.plain,
.effective,
.field-head,
.triprow,
.text-btn,
.cal-btn,
.adjust,
.receipt,
.sheet-head,
.comp-row,
.option-row {
  display: flex;
  align-items: center;
}
.top {
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.5px;
}
.logo {
  background: #557e48;
  color: var(--on-accent);
  width: 35px;
  height: 35px;
  border-radius: 7px;
  display: grid;
  align-items: center;
  justify-items: center;
  margin-right: 9px;
  box-shadow: inset -3px -3px #24465d;
}
.logo i {
  width: 25px;
  height: 25px;
}
.plain {
  font-size: 13px;
  font-weight: 650;
  border: 1px solid #cebd98;
  border-radius: 7px;
  padding: 6px 11px;
  background: #f4e8cc;
  color: #62492f;
}
.plain i {
  width: 15px;
  margin-right: 6px;
}
.hero {
  position: relative;
  overflow: hidden;
  height: 226px;
  border: 1px solid #b1cad0;
  border-radius: 15px;
  background: #b2dafe;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 61%;
  z-index: -2;
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(239, 248, 244, 0.867) 0%,
    rgba(238, 249, 244, 0.682) 25%,
    rgba(233, 245, 248, 0.067) 51%,
    transparent 72%
  );
  z-index: -1;
}
.hero-copy {
  padding: 21px 32px;
}
.effective {
  display: inline-flex;
  background: #e6f2f5;
  color: #24465d;
  border: 1px solid #b1cad0;
  border-radius: 4px;
  font:
    bold 11px/1.5 'Courier New',
    monospace;
  letter-spacing: 0.4px;
  padding: 3px 8px;
}
.effective b {
  background: #557e48;
  width: 6px;
  height: 6px;
  margin-right: 7px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.13;
  letter-spacing: -1.8px;
  font-weight: 900;
  color: #233438;
  margin: 10px 0 9px;
}
.hero p {
  font-size: 14px;
  font-weight: 600;
  color: #233438;
}
.columns {
  display: grid;
  grid-template-columns: 1.31fr 1fr;
  grid-gap: 20px;
  margin: 20px 0;
}
.panel,
.ticket {
  border: 1px solid #d8d9c9;
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 3px 0 rgba(63, 68, 38, 0.09);
}
.panel {
  padding: 22px 24px;
}
.settings {
  min-width: 0;
  margin: 0;
}
h2 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.6px;
}
h2 i {
  color: #28577d;
  margin-right: 5px;
  margin-top: -3px;
}
h2 i[data-i] {
  width: 23px;
  height: 23px;
}
.journey {
  display: grid;
  grid-template-columns: 1fr 35px 1fr;
  align-items: center;
  margin: 17px 0 0;
}
.station {
  text-align: left;
  background: #f6f4eb;
  padding: 12px;
  border: 1px solid #d8d9c9;
  border-radius: 8px;
  min-width: 0;
  position: relative;
  min-height: 102px;
}
#from {
  background: #eaf3f5;
  border-color: #bdcfd2;
}
#to {
  background: #f8eae5;
  border-color: #dfc4bb;
}
#from:hover,
#to:hover {
  border-color: var(--accent);
}
.station:hover,
.comp-row:hover {
  background: #e6f2f5;
}
.station-top,
.station-name {
  display: flex;
  align-items: center;
}
.station-top {
  font-size: 11px;
  color: #56625c;
}
.station-top:before {
  content: '';
  width: 8px;
  height: 8px;
  border: 2px solid #557e48;
  border-radius: 50%;
  margin-right: 5px;
}
.station:last-child .station-top:before {
  border-color: #a65449;
}
.station-name {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.7px;
  margin: 5px 0 6px;
  justify-content: space-between;
  word-break: break-word;
}
.chev {
  font-size: 14px;
  color: #596962;
  margin-left: 4px;
}
.line-tag {
  display: inline-block;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 11px;
  padding: 0 6px;
  color: #233438;
  font-weight: bold;
}
.line-tag:before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 2px;
  background: var(--badge);
}
.swap {
  width: 31px;
  height: 35px;
  margin: auto;
  color: #28577d;
}
.swap i {
  width: 21px;
}
.section-rule {
  border-top: 1px dashed #d8d9c9;
  margin: 17px 0 12px;
}
.field-head,
.triprow,
.sheet-head {
  justify-content: space-between;
}
.field-head label,
.triprow label,
#vias label {
  font-weight: 700;
  font-size: 14px;
}
.text-btn {
  color: #28577d;
  font-size: 13px;
  padding: 3px 0;
}
.text-btn i {
  width: 15px;
  height: 15px;
  margin-right: 5px;
}
.segments,
.small-segments {
  display: flex;
}
.segments {
  margin-top: 8px;
}
.segments button {
  width: 100%;
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f3eb;
  font-size: 14px;
  font-weight: 650;
}
.segments button[aria-pressed='true'] {
  background: #486b3d;
  color: white;
  border-color: #3b5b33;
  box-shadow: inset 0 -2px #354f2d;
}
.triprow {
  margin: 13px 0;
}
.small-segments {
  padding: 2px;
  border: 1px solid var(--line);
  background: #f4f3eb;
  border-radius: 6px;
}
.small-segments button {
  font-size: 12px;
  padding: 4px 7px;
  border-radius: 4px;
}
.small-segments [aria-pressed='true'] {
  background: white;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(54, 67, 43, 0.22);
}
.cal-btn,
.receipt {
  border: 1px solid #24465d;
  border-radius: 6px;
  box-shadow: 2px 3px 0 #24465d;
  font-weight: 750;
}
.cal-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 8px 11px;
  font-size: 14px;
}
.cal-btn i,
.receipt i,
.adjust i {
  width: 16px;
  height: 16px;
  margin-right: 7px;
}
.cal-btn small {
  margin-left: auto;
  margin-right: 6px;
  font-weight: 500;
  color: inherit;
}
.cal-btn b,
.adjust b {
  font-size: 18px;
}
.adjust {
  width: 100%;
  font-size: 12px;
  margin-top: 10px;
  color: #56625c;
  padding: 5px 0 0;
}
.adjust b {
  margin-left: auto;
}
.resultcol {
  display: flex;
  flex-direction: column;
}
/* Printed ticket with a station field and a separate fare field. */
.ticket {
  position: relative;
  border: 1px solid #a1b8b7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow: 2px 4px 0 #d3d7bf;
}
.paper-head,
.paper-foot {
  display: flex;
  align-items: center;
  background: #d8ecec;
}
.paper-head {
  padding: 14px 16px;
  border-bottom: 1px solid #bdd3d2;
}
.paper-head h2 {
  font-size: 19px;
  line-height: 1.3;
}
.paper-head h2 small {
  display: inline-block;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0;
}
.metro-mark {
  width: 26px;
  height: 26px;
  flex: none;
  overflow: hidden;
  margin-right: 9px;
}
.metro-mark img {
  display: block;
  height: 26px;
  width: auto;
  max-width: none;
}
.paper-body {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 156px;
  background: linear-gradient(to right, #fff 50%, #fffdf6 50%);
}
.paper-body::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  border-left: 1px dashed #a6b7a8;
}
.paper-print,
.paper-fare {
  min-width: 0;
  align-self: center;
  padding: 16px 10px;
  padding: 16px clamp(10px, 2vw, 17px);
}
.paper-fare {
  container-type: inline-size;
}
.paper-stop {
  position: relative;
  padding-left: 17px;
}
.paper-stop:first-child {
  padding-bottom: 16px;
}
.paper-stop:first-child::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 4px;
  bottom: -7px;
  border-left: 1px solid #a6b7a8;
}
.paper-stop::before {
  content: '';
  position: absolute;
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  top: 4px;
  left: 0;
  border: 2px solid #426f81;
  border-radius: 50%;
  background: white;
}
.paper-stop:last-child::before {
  border-color: #a55747;
}
.paper-stop span,
.ticket-label {
  display: block;
  font-size: 12px;
  color: #53655e;
  font-weight: 650;
}
.paper-stop strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.paper-head {
  background: linear-gradient(105deg, #d0e6ed, #edf1da);
}
.paper-foot {
  background: #edf0df;
}
#pending-ticket {
  color: var(--muted);
  font-size: 13px;
}
.price {
  display: flex;
  align-items: baseline;
  line-height: 1.1;
  margin: 3px 0 5px;
  color: var(--accent);
  font:
    800 26px/1.1 'Courier New',
    monospace;
  font-size: clamp(15px, calc(145cqi / var(--price-characters, 4)), 38px);
  white-space: nowrap;
}
.price strong {
  letter-spacing: -0.05em;
}
.price small {
  font-size: 0.54em;
  margin-right: 2px;
}
.fare-averages {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-column-gap: 6px;
  font-variant-numeric: tabular-nums;
}
.fare-averages small {
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}
.fare-averages small + small {
  padding-left: 6px;
  border-left: 1px solid #cfc6ae;
}
.fare-averages b {
  display: block;
  font-size: 12px;
}
.ticket-averages {
  background: #fbefd0;
  border-radius: 4px;
  color: #63470f;
  padding: 4px 6px;
}
#recommend {
  margin: 7px 0 2px;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.paper-detail {
  padding: 8px 2px 3px;
}
.paper-foot {
  justify-content: space-between;
  border-top: 1px solid #cad4bf;
  padding: 5px 16px;
  color: #455a4c;
  font-size: 10px;
}
.boarding-times {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 3px;
  font-size: 13px;
}
.paper-foot > * + * {
  margin-left: 6px;
}
.boarding-times th,
.boarding-times td {
  padding: 5px 0;
  vertical-align: top;
}
.boarding-times thead th {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.boarding-times thead th:not(:first-child) {
  width: 78px;
}
.boarding-times th:first-child {
  text-align: left;
}
.boarding-times tr > :nth-child(n + 2) {
  white-space: nowrap;
  text-align: right;
  padding-left: 15px;
}
.boarding-times tbody th {
  font-weight: 500;
}
.boarding-times tbody td {
  font:
    700 14px/1.5 'Courier New',
    monospace;
}
.boarding-times tbody small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 380px) {
  .boarding-times tr > :nth-child(n + 2) {
    padding-left: 9px;
  }
}
.muted {
  font-family: 'Courier New', monospace;
}
.saving {
  font-size: 12px;
  color: #233438;
  margin-top: 8px;
}
.saving b {
  background: #d5eaf2;
  border: 1px solid #b1cad0;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 4px;
  color: #24465d;
}
.receipt {
  padding: 9px 14px;
  margin: 10px 2px 2px 0;
  background: #ffffff;
  justify-content: center;
}
.receipt b {
  margin-left: 9px;
}
.reward-banner {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c9a98b;
  border-radius: 10px;
  background: #fff1dc;
  box-shadow: 1px 3px 0 #dcc7aa;
  color: #4a352e;
  text-align: left;
}
.reward-banner::before {
  content: '';
  display: block;
  padding-top: 23.333333%;
}
.reward-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.reward-copy {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
}
.reward-copy strong,
.reward-copy small {
  display: block;
}
.reward-copy strong {
  font-size: 21px;
  line-height: 1.2;
}
.reward-copy strong span {
  color: #9d4d44;
}
.reward-copy small {
  margin-top: 5px;
  font-size: 12px;
  color: #655044;
}
.reward-banner:focus-visible {
  outline-color: #9d4d44;
}
.reward-status:not(:empty) {
  margin-top: 7px;
}
.muted {
  font-size: 12px;
  color: #56625c;
}
.comp-row {
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border-top: 1px solid #d8d9c9;
  position: relative;
}
.comparison .field-head {
  margin-bottom: 13px;
}
.rank {
  min-width: 25px;
  font: bold 13px monospace;
  color: #596962;
}
.rank.first {
  color: #805514;
}
.colname {
  flex: 1;
  font-size: 14px;
  font-weight: 650;
}
.comp-amounts {
  display: grid;
  justify-items: end;
  grid-gap: 2px;
  flex: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.comp-amounts strong {
  font: bold 16px monospace;
}
.comp-amounts small {
  color: var(--muted);
}
.comp-row .chev {
  margin-left: 13px;
}
.more {
  margin: 5px auto 0;
}
.comparison {
  padding-bottom: 13px;
}
footer {
  text-align: center;
  font-size: 11px;
  color: #596962;
  margin: 17px 0;
}
footer i[data-i] {
  width: 14px;
  height: 14px;
}
footer span {
  margin: 0 2px;
}
#vias {
  margin-top: 12px;
}
select,
.input {
  background: #ffffff;
  border: 1px solid #d8d9c9;
  border-radius: 6px;
  padding: 7px 8px;
  max-width: 100%;
}
#via {
  margin-left: 7px;
  font-size: 13px;
  max-width: 65%;
}
.overlay {
  --sheet-travel: 9px;
  position: fixed;
  z-index: 8;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(35, 25, 29, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.sheet {
  background: #ffffff;
  border: 1px solid #d8d9c9;
  border-radius: 15px;
  width: 440px;
  max-width: 100%;
  max-height: 86vh;
  overflow: auto;
  padding: 21px;
  box-shadow: 0 9px 35px rgba(50, 23, 34, 0.169);
}
.overlay.picking-station {
  top: var(--picker-top, 0px);
  bottom: auto;
  height: var(--picker-height, 100%);
  padding-top: 0;
  padding-bottom: 0;
}
.picking-station .sheet,
.picking-station #sheet-content {
  display: flex;
  flex-direction: column;
}
.picking-station .sheet {
  height: 75%;
}
.picking-station #sheet-content {
  flex: 1;
  min-height: 0;
}
.picking-station .confirm {
  margin-top: 12px;
}
.sheet-head {
  margin-bottom: 13px;
}
.sheet-head button {
  background: #f4f3eb;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 21px;
  line-height: 1;
}
.sheet h3 {
  font-size: 15px;
  margin: 16px 0 4px;
}
.sheet p,
.hint {
  color: #56625c;
  font-size: 13px;
  line-height: 1.7;
}
.sheet ul {
  padding-left: 20px;
  font-size: 13px;
}
.confirm {
  background: #28577d;
  color: #fff;
  width: 100%;
  font-weight: 700;
  border-radius: 6px;
  padding: 10px;
  margin-top: 16px;
}
.wheelbox {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 40px;
  margin-top: 12px;
  background: #f4f3eb;
  border-radius: 10px;
  overflow: hidden;
}
.wheelbox:before {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  box-sizing: border-box;
  height: 40px;
  top: calc(50% - 20px);
  border: 1px solid #b1cad0;
  background: #d5eaf2;
  border-radius: 6px;
  pointer-events: none;
}
.wheel {
  height: 100%;
  overflow-y: auto;
  position: relative;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior: contain;
  flex: 3;
  outline-offset: -2px;
}
.wheel:first-child {
  flex: 2;
}
.wheel::-webkit-scrollbar {
  display: none;
}
.wheel:before,
.wheel:after {
  content: '';
  display: block;
  height: calc(50% - 20px);
}
.wheel button {
  display: block;
  width: 100%;
  height: 40px;
  scroll-snap-align: center;
  font-size: 15px;
  color: #596962;
  white-space: nowrap;
  padding: 0 3px;
}
.wheel button[aria-selected='true'] {
  font-weight: 750;
  color: #24465d;
}
.option-row {
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
}
.input {
  width: 92px;
}
.sheet .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.purchase-guide {
  background: #f8f5e9;
  border: 1px solid #d9cfaf;
  border-radius: 9px;
  padding: 12px 14px;
}
.purchase-guide h3 {
  margin: 0 0 9px;
  font-size: 17px;
  color: #334f42;
}
.purchase-guide ol {
  counter-reset: purchase;
  list-style: none;
  margin: 0;
  padding: 0;
}
.purchase-guide li {
  counter-increment: purchase;
  position: relative;
  padding-left: 27px;
}
.purchase-guide li + li {
  margin-top: 10px;
  border-top: 1px dashed #d9cfaf;
  padding-top: 10px;
}
.purchase-guide li::before {
  content: counter(purchase);
  position: absolute;
  left: 0;
  width: 19px;
  line-height: 19px;
  color: #365648;
  background: #dce8d5;
  border-radius: 3px;
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}
.purchase-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 14px;
}
.purchase-line b {
  margin-left: 8px;
  white-space: nowrap;
  color: #28577d;
  font-variant-numeric: tabular-nums;
}
.purchase-guide li p {
  margin: 2px 0 0;
}
.detail-row b {
  margin-left: 9px;
  white-space: nowrap;
}
.sheet .total {
  color: var(--accent);
  font-size: 20px;
  font-weight: bold;
}
.search {
  width: 100%;
  font-size: 16px;
}
.matches {
  flex: 1;
  min-height: 0;
  margin-top: 12px;
  overflow: auto;
  overscroll-behavior: contain;
}
.matches:empty {
  display: none;
}
.match {
  display: block;
  width: 100%;
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.match small {
  float: right;
  color: var(--muted);
}
.error {
  color: #a23943 !important;
}
.handle {
  display: none;
}
.empty {
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 700px) {
  .shell {
    max-width: 540px;
    padding: 0 14px 12px;
  }
  .top {
    min-height: 54px;
  }
  .brand {
    font-size: 17px;
  }
  .logo {
    width: 30px;
    height: 30px;
  }
  .plain {
    font-size: 12px;
  }
  .hero {
    height: 165px;
    border-radius: 12px;
  }
  .hero-copy {
    padding: 13px 17px;
  }
  .hero-img {
    object-position: 65% 60%;
  }
  .hero:before {
    background: linear-gradient(
      90deg,
      rgba(242, 249, 245, 0.91) 0%,
      rgba(238, 249, 244, 0.667) 41%,
      transparent 76%
    );
  }
  .hero h1 {
    font-size: 31px;
    margin: 7px 0 5px;
  }
  .hero p {
    font-size: 11px;
  }
  .effective {
    font-size: 10px;
    padding: 2px 6px;
  }
  .columns {
    display: block;
    margin: 12px 0;
  }
  .panel {
    padding: 16px;
  }
  .resultcol {
    margin-top: 13px;
  }
  .journey {
    margin-top: 12px;
  }
  .section-rule {
    margin: 13px 0 10px;
  }
  .station {
    min-height: 91px;
    padding: 9px;
  }
  .station-name {
    font-size: 19px;
  }
  .receipt {
    margin-top: 8px;
  }
  .overlay {
    --sheet-travel: 23px;
    align-items: flex-end;
    padding: 0;
  }
  .sheet {
    width: 100%;
    max-height: 85vh;
    border-radius: 17px 17px 0 0;
    padding: 7px 17px 20px;
    padding-bottom: calc(20px + var(--safe-area-inset-bottom, 0px));
    padding-bottom: calc(20px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  }
  .handle {
    display: block;
    width: 34px;
    height: 4px;
    border-radius: 4px;
    margin: 0 auto 10px;
    background: #bdc3b3;
  }
  .sheet-head {
    margin-bottom: 12px;
  }
  .hero-img {
    top: 0;
    left: 0;
  }
  .comparison .field-head {
    margin-bottom: 9px;
  }
}
@media (min-width: 701px) {
  .hero-img {
    top: 0;
    left: 0;
  }
}
@media (max-width: 350px) {
  .shell {
    padding: 0 9px;
  }
  .station-name {
    font-size: 17px;
  }
  .journey {
    grid-template-columns: 1fr 29px 1fr;
  }
}
.hero:before {
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}
.purchase {
  font-size: 12px;
  color: #56625c;
  margin-top: 4px;
}
#unit-price {
  font-size: 11px;
  color: #56625c;
  margin-bottom: 2px;
}
#via-note {
  margin-top: 4px;
  font-size: 11px;
}
.receipt:disabled {
  color: #596962;
  box-shadow: none;
  cursor: default;
}
.shell {
  padding-top: var(--native-top, var(--safe-area-inset-top, 0px));
  padding-top: var(--native-top, var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
}
.sheet details {
  margin: 12px 0;
}
.sheet summary {
  font-size: 13px;
  color: #28577d;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.comp-main {
  flex: 1;
  min-width: 0;
  padding-right: 7px;
}
.comp-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.comp-title .colname {
  flex: initial;
}
.comp-detail {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #56625c;
  margin-top: 3px;
}
.winner {
  color: #65460a;
  background: #f7dc86;
  border: 1px solid #ccaa53;
  font-size: 10px;
  font-weight: 750;
  border-radius: 3px;
  padding: 0 4px;
  margin-left: 6px;
  white-space: nowrap;
}
.comp-row.best-row {
  background: #fff4cd;
  border: 1px solid #c8aa65;
  border-radius: 7px;
  padding: 10px;
}
.best-row .rank {
  min-width: 23px;
}
.best-row strong {
  color: #704c10;
}
.comparison .comp-row:not(.best-row) {
  padding-left: 6px;
  padding-right: 6px;
}
.best-row + .comp-row {
  border-top-color: transparent;
}
.comp-row strong {
  white-space: nowrap;
}
.travel {
  margin: 18px 0;
}
.trip-panel {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed #d8d9c9;
}
.trip-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.trip-metrics,
.trip-leg {
  display: flex;
  align-items: center;
}
.trip-metrics > * + *,
.trip-leg > * + * {
  margin-left: 10px;
}
.trip-metrics {
  margin-bottom: 9px;
  color: #233438;
}
.trip-metrics strong {
  font-size: 21px;
}
.trip-metrics span {
  font-size: 12px;
  font-weight: 700;
}
.trip-leg {
  margin: 6px 0;
  font-size: 14px;
}
.trip-leg .line-tag {
  flex: none;
  margin: 0;
}
.travel .hint {
  font-size: 12px;
  line-height: 1.6;
}
#week {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 6px;
}
#week button {
  min-height: 44px;
}
#arrangement {
  margin: 8px 0 0;
}
#daily-trips[hidden] {
  display: none;
}

.period-field {
  margin: 14px 0;
}
#period {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 4px;
}
#period button {
  font-size: 13px;
  min-height: 40px;
}
#period button[aria-pressed='true'] {
  background: #755842;
  border-color: #694c37;
  box-shadow: inset 0 -2px #563f2f;
}
#period-note {
  margin-top: 6px;
  font-size: 12px;
}

#plans {
  scroll-margin-top: calc(var(--native-top, 0px) + 12px);
}
.overlay.leaving {
  pointer-events: none;
}
.reward-copy strong span {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-arrive {
    from {
      opacity: 0.4;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes backdrop-in {
    from {
      background-color: transparent;
    }
    to {
      background-color: rgba(35, 25, 29, 0.4);
    }
  }
  .hero-copy {
    animation: hero-arrive 260ms var(--ease-out);
  }
  .overlay:not([hidden]) {
    animation: backdrop-in 160ms var(--ease-out);
  }
  .station,
  .plain,
  .confirm,
  .comp-row,
  .receipt,
  .cal-btn,
  .reward-banner,
  .segments button,
  .small-segments button,
  .sheet-head button {
    transition:
      transform 125ms var(--ease-out),
      background-color 125ms,
      border-color 125ms,
      box-shadow 125ms;
  }
  .wheel button {
    transition: color 90ms;
  }
  .cal-btn b,
  .receipt b,
  .comp-row .chev,
  .reward-copy strong span {
    transition: transform 155ms var(--ease-out);
  }
  .cal-btn:active:not(:disabled),
  .receipt:active:not(:disabled),
  .reward-banner:active:not(:disabled) {
    transform: translate(1px, 2px);
    box-shadow: none;
  }
  @media (hover: hover) and (pointer: fine) {
    .station:hover,
    .reward-banner:not(:disabled):hover {
      transform: translateY(-2px);
    }
    .cal-btn:hover b,
    .receipt:not(:disabled):hover b,
    .comp-row:hover .chev,
    .reward-banner:hover .reward-copy strong span {
      transform: translateX(3px);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  button:active {
    transform: none;
  }
}
