/* 《万千》C117 自由行程行动列表。 */
wqxt-free-schedule-action-list {
  --wqxt-fs-text: #f4f1eb;
  --wqxt-fs-soft: rgba(244, 241, 235, .68);
  --wqxt-fs-faint: rgba(244, 241, 235, .48);
  --wqxt-fs-line: rgba(238, 233, 223, .18);
  --wqxt-fs-line-strong: rgba(238, 233, 223, .4);
  --wqxt-fs-surface: rgba(12, 12, 17, .82);
  --wqxt-fs-gold: #e4bd67;
  --wqxt-fs-mint: #75d8cb;
  --wqxt-fs-danger: #e78a86;
  --wqxt-fs-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --wqxt-fs-sans: Inter, "Noto Sans SC", "PingFang SC", sans-serif;
  --wqxt-fs-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --wqxt-fs-max-width: 960px;
  --wqxt-fs-item-min-height: 84px;
  --wqxt-fs-item-padding: 16px;
  --wqxt-fs-title-size: 14px;
  --wqxt-fs-outcome-size: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(var(--wqxt-fs-max-width), 100%);
  color: var(--wqxt-fs-text);
}

wqxt-free-schedule-action-list[hidden] { display: none !important; }

.wqxt-free-schedule-list__item {
  position: relative;
  min-width: 0;
  min-height: var(--wqxt-fs-item-min-height);
  padding: var(--wqxt-fs-item-padding);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 7px;
  overflow: hidden;
  border: 1px solid var(--wqxt-fs-line);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,.035), transparent 58%), var(--wqxt-fs-surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 90ms ease;
}

.wqxt-free-schedule-list__item.is-concise { grid-template-rows: auto 1fr; }
.wqxt-free-schedule-list__item.is-title-only { grid-template-rows: 1fr; }
.wqxt-free-schedule-list__item.is-title-only .wqxt-free-schedule-list__head { align-self: center; }

.wqxt-free-schedule-list__item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  content: "";
  background: rgba(238, 233, 223, .28);
}

.wqxt-free-schedule-list__item.is-explore::before,
.wqxt-free-schedule-list__item.is-random::before { background: var(--wqxt-fs-mint); }
.wqxt-free-schedule-list__item.is-milestone::before { background: var(--wqxt-fs-gold); }

.wqxt-free-schedule-list__item:hover:not(:disabled),
.wqxt-free-schedule-list__item:focus-visible {
  border-color: var(--wqxt-fs-line-strong);
  background-color: rgba(19, 19, 25, .94);
}

.wqxt-free-schedule-list__item:focus-visible {
  outline: 2px solid var(--wqxt-fs-gold);
  outline-offset: 2px;
}

.wqxt-free-schedule-list__item:active:not(:disabled) { transform: translateY(1px); }

.wqxt-free-schedule-list__item:disabled { cursor: default; }
.wqxt-free-schedule-list__item.is-disabled { color: rgba(244, 241, 235, .52); }
.wqxt-free-schedule-list__item.is-disabled::before { background: rgba(238, 233, 223, .18); }
.wqxt-free-schedule-list__item.is-pending { border-color: rgba(228, 189, 103, .56); }
.wqxt-free-schedule-list__item.is-complete { border-color: rgba(117, 216, 203, .52); }

.wqxt-free-schedule-list__head,
.wqxt-free-schedule-list__foot {
  min-width: 0;
  display: flex;
  align-items: baseline;
}

.wqxt-free-schedule-list__head { justify-content: space-between; gap: 12px; }
.wqxt-free-schedule-list__foot { align-self: end; gap: 10px; }

.wqxt-free-schedule-list__title {
  min-width: 0;
  overflow: hidden;
  color: var(--wqxt-fs-text);
  font: 600 var(--wqxt-fs-title-size)/1.4 var(--wqxt-fs-serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wqxt-free-schedule-list__kind {
  flex: 0 0 auto;
  color: var(--wqxt-fs-faint);
  font: 600 10px/1.2 var(--wqxt-fs-mono);
}

.is-explore .wqxt-free-schedule-list__kind,
.is-random .wqxt-free-schedule-list__kind { color: var(--wqxt-fs-mint); }
.is-milestone .wqxt-free-schedule-list__kind,
.is-pending .wqxt-free-schedule-list__kind { color: var(--wqxt-fs-gold); }
.is-complete .wqxt-free-schedule-list__kind { color: var(--wqxt-fs-mint); }
.is-disabled .wqxt-free-schedule-list__kind { color: var(--wqxt-fs-danger); }

.wqxt-free-schedule-list__description,
.wqxt-free-schedule-list__trace,
.wqxt-free-schedule-list__error {
  min-width: 0;
  overflow: hidden;
  font: 400 11px/1.5 var(--wqxt-fs-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wqxt-free-schedule-list__description { color: var(--wqxt-fs-soft); }
.wqxt-free-schedule-list__trace { margin-left: auto; color: var(--wqxt-fs-soft); }
.wqxt-free-schedule-list__error { grid-column: 1 / -1; color: var(--wqxt-fs-danger); white-space: normal; }

.wqxt-free-schedule-list__outcome {
  min-width: 0;
  overflow: hidden;
  color: var(--wqxt-fs-gold);
  font: 600 var(--wqxt-fs-outcome-size)/1.2 var(--wqxt-fs-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wqxt-free-schedule-list__arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--wqxt-fs-faint);
  font: 500 18px/1 var(--wqxt-fs-serif);
}

.wqxt-free-schedule-list__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  color: var(--wqxt-fs-soft);
  font: 400 14px/1.7 var(--wqxt-fs-serif);
  text-align: center;
}

@media (max-width: 1000px), (max-height: 560px) {
  wqxt-free-schedule-action-list {
    --wqxt-fs-item-min-height: 64px;
    --wqxt-fs-item-padding: 12px;
    --wqxt-fs-title-size: 13px;
    --wqxt-fs-outcome-size: 13px;
    gap: 8px;
  }
  .wqxt-free-schedule-list__item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 4px 8px;
  }
  .wqxt-free-schedule-list__item.is-title-only {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
  }
  .wqxt-free-schedule-list__head { grid-column: 1 / -1; }
  .wqxt-free-schedule-list__description { grid-column: 1; }
  .wqxt-free-schedule-list__foot { grid-column: 2; min-width: 0; }
  .wqxt-free-schedule-list__error { grid-column: 1 / -1; }
  .wqxt-free-schedule-list__description,
  .wqxt-free-schedule-list__trace,
  .wqxt-free-schedule-list__error { font-size: 10px; }
  .wqxt-free-schedule-list__head { gap: 8px; }
  .wqxt-free-schedule-list__foot { gap: 7px; }
  .wqxt-free-schedule-list__trace { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wqxt-free-schedule-list__item { transition: none; }
}
