ikasa-journeys {
  display: block;
  --j-ink: #173c56;
  color: var(--j-ink);
  font: inherit;
  min-width: 0;
}
.j-shell {
  min-width: 0;
}
.j-shell * {
  box-sizing: border-box;
}
.j-shell button,
.j-shell input,
.j-shell select {
  font: inherit;
}
.j-shell button {
  cursor: pointer;
}
.j-shell button:disabled {
  opacity: 0.4;
  cursor: default;
}
.j-shell button:focus-visible,
.j-shell input:focus-visible,
.j-shell select:focus-visible {
  outline: 3px solid #339ac9;
  outline-offset: 3px;
}
.j-controls {
  padding: 24px;
  border: 1px solid #d6e7f0;
  border-radius: 20px;
  background: linear-gradient(130deg, #edf8ff, #f8fcff);
}
.j-basis {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.j-basis button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 16px;
  color: #40657d;
  font-size: 14px;
}
.j-basis [aria-pressed='true'] {
  background: #fff;
  box-shadow: 0 2px 10px #17466b13;
  color: #174e78;
  font-weight: 600;
}
.j-search {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  align-items: end;
  gap: 12px;
}
.j-search > span {
  text-align: center;
  padding-bottom: 12px;
  font-size: 24px;
  color: #78a2bf;
}
.j-controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
}
.j-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbdfea;
  border-radius: 12px;
  padding: 13px;
  background: #fff;
  color: #173c56;
}
.j-filter-row {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.j-filter-row select {
  min-width: 120px;
  max-width: 100%;
  border: 1px solid #cfdfeb;
  border-radius: 9px;
  padding: 8px 26px 8px 10px;
  background: #fff;
  color: #30546f;
  font-size: 14px;
}
.j-reset {
  border: 0;
  background: none;
  color: #457593;
  padding: 10px 0;
  margin-left: auto;
  font-size: 14px !important;
}
.j-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.j-summary p {
  font-size: 21px;
  margin: 0 !important;
}
.j-summary strong {
  font-size: 32px;
  color: #235f88;
  font-variant-numeric: tabular-nums;
}
.j-summary p > span {
  color: #6bafcf;
  margin: 0 12px;
}
.j-summary > span {
  font-size: 14px;
  color: #546f84;
}
.j-definition {
  font-size: 13px !important;
  line-height: 1.8 !important;
  color: #5f7688;
  margin: 8px 0 20px !important;
}
.j-regions-heading {
  font-weight: 600;
  font-size: 15px;
  margin-top: 24px;
}
.j-regions-heading small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #667f93;
  margin-top: 5px;
}
.j-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 28px;
}
.j-pref-wrap {
  position: relative;
}
.j-pref {
  border: 1px solid #d7e8f2;
  border-radius: 13px;
  padding: 12px 16px;
  background: #f5fbff;
  color: #24567b;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px !important;
}
.j-pref b {
  font-size: 20px;
  font-weight: 600;
}
.j-pref small {
  font-size: 12px;
  font-weight: 400;
  margin-left: 3px;
}
.j-pref:hover,
.j-pref:focus-visible {
  background: #e3f3ff;
  border-color: #8dcae8;
}
.j-pref-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: min(320px, 72vw);
  padding: 17px;
  background: #fff;
  border: 1px solid #cadeec;
  border-radius: 14px;
  box-shadow: 0 15px 38px #14375020;
  z-index: 12;
  font-size: 13px;
  line-height: 1.7;
  pointer-events: none;
}
.j-pref-tooltip p {
  margin: 8px 0 !important;
  font-size: 13px !important;
}
.j-pref-tooltip small {
  color: #627f93;
}
.j-pref-wrap:hover .j-pref-tooltip,
.j-pref-wrap:focus-within .j-pref-tooltip {
  display: block;
}
.j-route-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 12px;
}
.j-route-heading h4 {
  font-size: 16px;
  margin: 0;
}
.j-route-heading > span {
  font-size: 12px;
  color: #688396;
}
.j-routes {
  border: 1px solid #dce7ef;
  border-radius: 16px;
  overflow: hidden;
}
.j-route {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) 118px;
  gap: 18px;
  text-align: left;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #e0eaf1;
  background: #fff;
  padding: 22px;
  color: #1d4664;
  transition: background 0.15s;
}
.j-route:last-child {
  border: 0;
}
.j-route:hover,
.j-route:focus-visible {
  background: #f1f9ff;
}
.j-place {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
  overflow-wrap: anywhere;
}
.j-place strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  color: #173f5d;
}
.j-place > small {
  font-size: 12px;
  line-height: 1.6;
  color: #657f91;
}
.j-place > span {
  font-size: 12px;
  color: #647f94;
  line-height: 1.6;
}
.j-place em,
.j-route-count em {
  font-size: 11px;
  font-style: normal;
  color: #347896;
}
.j-arrow {
  font-size: 22px;
  color: #6aa6c6;
}
.j-route-count {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.j-route-count b {
  font-size: 26px;
  font-weight: 600;
  color: #245b80;
}
.j-route-count small {
  font-size: 12px;
  font-weight: 400;
}
.j-route-count b small {
  margin-left: 4px;
}
.j-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 18px 0;
  font-size: 13px;
}
.j-pagination button,
.j-message + button {
  padding: 9px 15px;
  border: 1px solid #cce1ed;
  background: #fff;
  border-radius: 9px;
  color: #286084;
}
.j-message {
  padding: 24px;
  text-align: center;
  color: #5c768b;
  font-size: 14px !important;
}
.j-output[aria-busy='true'] {
  opacity: 0.55;
}
.j-method {
  font-size: 13px;
  color: #5a7488;
  border-top: 1px solid #dce8ef;
  margin-top: 20px;
  padding-top: 16px;
}
.j-method summary {
  cursor: pointer;
  color: #3a6585;
}
.j-method p {
  font-size: 13px !important;
  line-height: 1.8;
}
.j-dialog {
  border: 1px solid #d1e4ef;
  border-radius: 22px;
  width: min(760px, calc(100% - 28px));
  max-height: 88dvh;
  padding: 0;
  color: #21455f;
  background: #f7fbfe;
  box-shadow: 0 28px 110px #14385635;
}
.j-dialog::backdrop {
  background: #10273e69;
  backdrop-filter: blur(4px);
}
.j-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: #f7fbfef2;
  backdrop-filter: blur(10px);
  padding: 20px 24px;
  border-bottom: 1px solid #dce8f0;
  z-index: 2;
}
.j-dialog-head h3 {
  font-size: 18px;
  margin: 0;
}
.j-dialog-head button {
  border: 1px solid #cddfea;
  border-radius: 10px;
  padding: 8px 12px;
  background: white;
  color: #365f7c;
  font-size: 13px;
}
.j-details {
  padding: 20px 24px;
}
.j-details > p {
  font-size: 13px;
}
.j-record {
  border: 1px solid #d5e6f0;
  border-radius: 16px;
  background: white;
  padding: 20px;
  margin: 16px 0;
}
.j-record-plan {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  border-bottom: 1px solid #e1edf5;
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.j-record-plan > span {
  font-size: 13px;
  background: #e6f5ff;
  color: #28678b;
  padding: 5px 9px;
  border-radius: 7px;
  margin-right: auto;
}
.j-record-plan strong {
  font-size: 21px;
}
.j-record-plan small {
  font-size: 12px;
}
.j-record-timeline {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 16px;
  align-items: start;
}
.j-record-timeline > span {
  transform: rotate(-90deg);
  color: #78adca;
  align-self: center;
}
.j-record-timeline > div > small {
  display: block;
  font-size: 12px;
  color: #557c98;
  margin-bottom: 8px;
}
.j-record-timeline time {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #214f70;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .j-controls {
    padding: 16px;
  }
  .j-search {
    gap: 8px;
    grid-template-columns: 1fr 20px 1fr;
  }
  .j-search input {
    font-size: 16px;
    padding: 11px 9px;
  }
  .j-search label {
    font-size: 13px;
  }
  .j-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .j-filter-row label {
    font-size: 12px;
  }
  .j-filter-row select {
    width: 100%;
    min-width: 0;
  }
  .j-reset {
    grid-column: 1/-1;
    justify-self: end;
  }
  .j-summary p {
    font-size: 16px;
  }
  .j-summary strong {
    font-size: 28px;
  }
  .j-summary p > span {
    margin: 0 3px;
  }
  .j-route {
    padding: 16px;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 10px;
  }
  .j-route-count {
    grid-column: 1/-1;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-end;
    padding-top: 8px;
  }
  .j-route-count b {
    margin-right: auto;
    font-size: 23px;
  }
  .j-place strong {
    font-size: 15px;
  }
  .j-pref {
    padding: 10px 12px;
    gap: 12px;
  }
  .j-regions {
    gap: 8px;
  }
  .j-pref-tooltip {
    position: fixed;
    top: auto;
    bottom: 22px;
    left: 16px;
    width: calc(100vw - 32px);
  }
  .j-dialog-head,
  .j-details {
    padding: 16px;
  }
  .j-record {
    padding: 16px;
  }
  .j-record-timeline {
    grid-template-columns: 1fr;
  }
  .j-record-timeline > span {
    transform: none;
    margin-left: 4px;
  }
  .j-route-heading h4 {
    font-size: 14px;
  }
  .j-route-heading > span {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .j-shell * {
    transition: none !important;
  }
}
@media print {
  .j-controls,
  .j-regions,
  .j-pagination,
  .j-dialog,
  .j-method {
    display: none !important;
  }
  .j-route {
    break-inside: avoid;
  }
  .j-route-count > small {
    display: none;
  }
}

.j-controls {
  padding: 0;
  border: 0;
  background: none;
}
.j-search-fold {
  padding: 16px 20px;
  border: 1px solid #d4e6f2;
  border-radius: 14px;
  background: #f3faff;
}
.j-search-fold summary {
  cursor: pointer;
  font-size: 14px;
  color: #2b5e80;
  font-weight: 500;
}
.j-search-fold summary > span {
  float: right;
  font-size: 12px;
  color: #628197;
  font-weight: 400;
}
.j-search-fold[open] .j-search {
  margin-top: 22px;
}
.j-search-fold[open] summary > span {
  display: none;
}
.j-basis {
  margin-bottom: 16px;
}
.j-summary {
  margin-top: 22px;
}
@media (max-width: 600px) {
  .j-search-fold summary > span {
    display: none;
  }
  .j-search-fold {
    padding: 15px;
  }
}
.j-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
  font-size: 13px;
  color: #54758c;
}
.j-active-filters:empty {
  display: none;
}
.j-active-filters b {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 8px;
  background: #e7f3f9;
  color: #2d6b8e;
}
.j-active-filters button {
  margin-left: auto;
  padding: 5px 8px;
  color: #2b7da7;
}
.j-pref[aria-pressed='true'] {
  background: #d7eef9;
  border-color: #3296be;
  box-shadow: 0 0 0 1px #3296be;
}
