.tour-restart-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.tour-restart-btn:hover,
.tour-restart-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: 2px solid rgba(130, 190, 255, 0.85);
  outline-offset: 2px;
}

.tour-backdrop,
.tour-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.72);
  z-index: 9000;
}

.tour-highlight {
  position: relative;
  z-index: 9001;
  outline: 3px solid #7dd3fc;
  outline-offset: 5px;
  box-shadow: 0 0 0 9px rgba(14, 165, 233, 0.22), 0 18px 48px rgba(0, 0, 0, 0.38);
  border-radius: 8px;
}

.tour-card,
.tour-modal {
  position: fixed;
  z-index: 9002;
  width: min(420px, calc(100vw - 28px));
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #101521;
  color: #f8fafc;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.55);
}

.tour-card {
  padding: 1rem;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.tour-card h2,
.tour-modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.tour-card p,
.tour-modal p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.45;
}

.tour-progress {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #93c5fd;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tour-note {
  margin-top: 0.65rem;
  color: #fde68a;
  font-size: 0.9rem;
}

.tour-actions,
.tour-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tour-actions button,
.tour-modal-actions button {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 6px;
  background: #1f2937;
  color: #f8fafc;
  padding: 0.55rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

.tour-actions button:hover,
.tour-modal-actions button:hover,
.tour-actions button:focus-visible,
.tour-modal-actions button:focus-visible {
  border-color: #93c5fd;
  outline: 2px solid rgba(147, 197, 253, 0.5);
  outline-offset: 1px;
}

.tour-actions .primary,
.tour-modal-actions .primary {
  background: #2563eb;
  border-color: #60a5fa;
}

.tour-actions .ghost,
.tour-modal-actions .ghost {
  background: transparent;
}

.tour-modal {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 1.1rem;
}

.tour-modal label {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  color: #dbeafe;
  font-weight: 700;
}

.tour-combobox {
  position: relative;
  display: grid;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.tour-modal input {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 6px;
  background: #0b1020;
  color: #f8fafc;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.tour-modal input:focus {
  border-color: #93c5fd;
  outline: 2px solid rgba(147, 197, 253, 0.35);
}

.tour-autocomplete-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 9003;
  max-height: min(260px, 42vh);
  overflow-y: auto;
  margin: 0;
  padding: 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 6px;
  background: #0b1020;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  list-style: none;
}

.tour-autocomplete-option {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.6rem;
  border-radius: 5px;
  cursor: pointer;
}

.tour-autocomplete-option:hover,
.tour-autocomplete-option.is-active {
  background: rgba(37, 99, 235, 0.35);
  outline: 1px solid rgba(147, 197, 253, 0.45);
}

.tour-autocomplete-name {
  color: #f8fafc;
  font-weight: 800;
}

.tour-autocomplete-meta,
.tour-autocomplete-note {
  color: #cbd5e1;
  font-size: 0.82rem;
}

.tour-autocomplete-note {
  margin-top: 0.25rem !important;
}

@media (max-width: 720px) {
  .tour-card {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    top: auto !important;
    width: auto;
  }

  .tour-actions,
  .tour-modal-actions {
    flex-wrap: wrap;
  }

  .tour-actions button,
  .tour-modal-actions button {
    flex: 1 1 auto;
  }
}
