.atlas-tour-landing-cta {
  position: absolute !important;
  top: 18px;
  left: 50%;
  z-index: 8 !important;
  width: min(460px, calc(100vw - 420px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  transform: translateX(-50%);
}

.input-screen.disambiguation-active .atlas-tour-landing-cta {
  display: none !important;
}

.atlas-tour-landing-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: clamp(48px, 5.2vh, 54px);
  padding: 0 clamp(16px, 1vw, 20px);
  border: 1px solid var(--mid);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: color-mix(in srgb, var(--raised) 84%, transparent);
  backdrop-filter: blur(12px);
}

.atlas-tour-landing-copy strong {
  color: var(--t1);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.atlas-tour-landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: clamp(132px, 7vw, 148px);
  height: clamp(48px, 5.2vh, 54px);
  padding: 0 clamp(18px, 1.5vw, 24px);
  border: 0;
  border-radius: 0 10px 10px 0;
  background: var(--accent);
  color: var(--void);
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(11.5px, 0.68rem + 0.18vw, 13px);
  font-weight: 600;
  letter-spacing: 0.035em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}

.atlas-tour-landing-btn:hover {
  opacity: 0.92;
}

.atlas-tour-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--mid));
  border-radius: 8px;
  color: #dbe7ff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  background: rgba(5, 7, 12, 0.9);
  backdrop-filter: blur(10px);
}

.atlas-tour-launch-btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, var(--raised));
  color: var(--t1);
}

.atlas-tours-launcher {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.atlas-tour-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  width: min(360px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--dim));
  border-radius: 12px;
  background: color-mix(in srgb, var(--void) 96%, transparent);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  color: var(--t1);
}

.atlas-tour-menu[hidden],
.atlas-tutorial-welcome[hidden] {
  display: none !important;
}

.atlas-tutorial-disabled [data-atlas-tutorial-entry] {
  display: none !important;
}

.atlas-tour-menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 6px 9px;
}

.atlas-tour-menu-head strong {
  font-size: 13px;
}

.atlas-tour-menu-head span,
.atlas-tour-menu-item small {
  color: var(--t3);
  font-size: 10px;
}

.atlas-tour-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--t1);
  text-align: left;
  cursor: pointer;
}

.atlas-tour-menu-item:hover,
.atlas-tour-menu-item:focus-visible {
  background: color-mix(in srgb, var(--accent) 11%, var(--raised));
}

.atlas-tour-menu-item > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.atlas-tour-menu-item strong {
  font-size: 12px;
}

.atlas-tour-menu-item em {
  color: var(--t3);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.atlas-tour-menu-item em.completed {
  color: var(--accent);
}

.atlas-tour-menu > a {
  display: block;
  margin-top: 5px;
  padding: 9px 7px 4px;
  border-top: 1px solid var(--dim);
  color: var(--accent);
  font-size: 10px;
  text-decoration: none;
}

.atlas-tour-focus-ring {
  position: fixed;
  z-index: 19000;
  border: 2px solid var(--accent);
  border-radius: 10px;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent),
    0 0 0 9999px rgba(2, 5, 12, 0.42);
  pointer-events: none;
  transition: left 0.18s ease, top 0.18s ease, width 0.18s ease, height 0.18s ease;
}

.atlas-tour-coachmark {
  position: fixed;
  z-index: 19001;
  width: min(340px, calc(100vw - 32px));
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, var(--mid));
  border-radius: 10px;
  background: color-mix(in srgb, var(--raised) 97%, var(--void));
  color: var(--t1);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent),
    0 16px 42px rgba(0, 0, 0, 0.42);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.atlas-tour-coachmark.dragging {
  cursor: grabbing;
}

.atlas-tour-coachmark[hidden] {
  display: none;
}

.atlas-tour-coachmark--centred {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
}

.atlas-tour-coachmark--busy {
  opacity: 0.78;
  pointer-events: none;
}

.atlas-tour-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  margin: -4px -5px 5px 0;
}

.atlas-tour-card-head--choice {
  margin-bottom: 2px;
}

.atlas-tour-progress {
  color: color-mix(in srgb, var(--t1) 52%, var(--t2));
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.atlas-tour-drag-handle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: color-mix(in srgb, var(--t1) 42%, var(--t2));
  cursor: grab;
  touch-action: none;
}

.atlas-tour-drag-handle:hover,
.atlas-tour-drag-handle:focus-visible {
  background: color-mix(in srgb, var(--t2) 9%, transparent);
  color: var(--t1);
}

.atlas-tour-drag-handle.dragging {
  cursor: grabbing;
}

.atlas-tour-drag-handle svg {
  fill: currentColor;
}

.atlas-tour-coachmark h2 {
  margin: 0;
  color: var(--t1);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.atlas-tour-coachmark p {
  margin: 7px 0 0;
  color: color-mix(in srgb, var(--t1) 82%, var(--t2));
  font-size: 13px;
  font-weight: 450;
  line-height: 1.52;
}

.atlas-tour-unavailable {
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--dim));
  border-radius: 8px;
  background: color-mix(in srgb, var(--warn) 8%, transparent);
  color: color-mix(in srgb, var(--t1) 78%, var(--t2)) !important;
  font-size: 12px !important;
}

.atlas-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--dim);
}

.atlas-tour-actions-end,
.atlas-welcome-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.atlas-welcome-actions {
  justify-content: flex-start;
  margin-top: 20px;
}

.atlas-tour-primary-btn,
.atlas-tour-secondary-btn,
.atlas-tour-text-btn {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.atlas-tour-primary-btn {
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 82%, #08796e);
  color: #03130f;
}

.atlas-tour-secondary-btn {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--dim));
  background: color-mix(in srgb, var(--accent) 8%, var(--raised));
  color: var(--t1);
}

.atlas-tour-text-btn {
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--t1) 58%, var(--t2));
}

.atlas-tour-text-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.atlas-tour-primary-btn:hover,
.atlas-tour-secondary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.atlas-tour-completion-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, var(--raised));
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.atlas-tour-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 17px;
}

.atlas-tour-choice-grid button {
  width: 100%;
}

.atlas-tour-live {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.atlas-tour-target {
  outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent) !important;
  outline-offset: 3px;
}

.atlas-tutorial-welcome {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.atlas-tutorial-welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.7);
  backdrop-filter: blur(7px);
}

.atlas-tutorial-welcome-card {
  position: relative;
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--mid));
  border-radius: 14px;
  background: var(--raised);
  color: var(--t1);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    0 28px 72px rgba(0, 0, 0, 0.56);
}

.atlas-tutorial-welcome-card h2 {
  margin: 0;
  color: var(--t1);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.atlas-tutorial-welcome-card p {
  max-width: 38ch;
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--t1) 76%, var(--t2));
  font-size: 14px;
  font-weight: 450;
  line-height: 1.5;
}

.atlas-welcome-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--t3);
  font-size: 22px;
  cursor: pointer;
}

.atlas-feature-empty {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 32%, var(--dim));
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: var(--t2);
  font-size: 11px;
  line-height: 1.45;
}

.atlas-feature-empty strong {
  color: var(--t1);
  font-size: 12px;
}

.atlas-feature-empty button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 721px) and (max-width: 900px) {
  .atlas-tour-landing-cta {
    width: min(460px, calc(100vw - 420px));
  }

  .atlas-tour-landing-btn {
    padding-inline: 10px;
  }

  .app-route .input-screen:not(.disambiguation-active) .input-hero {
    padding-top: 76px;
  }

  .app-route .input-screen:not(.disambiguation-active) .input-card {
    padding-top: 18px;
  }
}

@media (max-height: 800px) and (min-width: 721px) {
  .atlas-tour-landing-cta {
    top: 10px;
  }

  .atlas-tour-landing-copy,
  .atlas-tour-landing-btn {
    height: 46px;
  }

  .app-route .input-screen:not(.disambiguation-active) .input-hero {
    padding-top: 68px;
  }
}

@media (max-width: 720px) {
  [data-atlas-tutorial-entry],
  #atlas-tour-root,
  .atlas-tutorial-welcome {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-tour-focus-ring,
  .atlas-tour-primary-btn,
  .atlas-tour-secondary-btn {
    transition: none !important;
    transform: none !important;
  }
}
