.app-tour {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

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

.app-tour-spotlight {
    position: fixed;
    border: 2px solid var(--primary-500);
    border-radius: 0.75rem;
    box-shadow: 0 0 0 9999px rgb(15 23 42 / 0.62), 0 0 0 5px color-mix(in srgb, var(--primary-500) 22%, transparent);
    transition: inset 180ms ease, width 180ms ease, height 180ms ease;
}

.app-tour-card {
    position: fixed;
    width: min(25rem, calc(100vw - 2rem));
    padding: 1.25rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 1rem;
    background: white;
    box-shadow: 0 24px 60px rgb(15 23 42 / 0.28);
    color: rgb(15 23 42);
    pointer-events: auto;
}

.dark .app-tour-card { border-color: rgb(71 85 105); background: rgb(17 24 39); color: white; }
.app-tour-heading, .app-tour-footer, .app-tour-actions { display: flex; align-items: center; }
.app-tour-heading, .app-tour-footer { justify-content: space-between; }
.app-tour-eyebrow { color: var(--primary-600); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; }
.app-tour-close { padding: 0.1rem 0.4rem; color: rgb(100 116 139); font-size: 1.5rem; line-height: 1; }
.app-tour-close[hidden], .app-tour-dismiss-choice[hidden] { display: none; }
.app-tour-progress { height: 0.25rem; margin: 0.9rem 0 1rem; overflow: hidden; border-radius: 999px; background: rgb(226 232 240); }
.app-tour-progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary-500); transition: width 180ms ease; }
.app-tour-card h2 { font-size: 1.15rem; font-weight: 700; }
.app-tour-description { margin-top: 0.5rem; color: rgb(71 85 105); font-size: 0.9rem; line-height: 1.55; }
.dark .app-tour-description { color: rgb(203 213 225); }
.app-tour-hint { margin-top: 0.75rem; padding: 0.65rem 0.75rem; border-radius: 0.6rem; background: var(--primary-50); color: var(--primary-800); font-size: 0.8rem; }
.app-tour-dismiss-choice { display: flex; gap: 0.5rem; align-items: center; margin-top: 1rem; color: rgb(71 85 105); font-size: 0.78rem; }
.dark .app-tour-dismiss-choice { color: rgb(203 213 225); }
.app-tour-dismiss-choice input { accent-color: var(--primary-600); }
.app-tour-footer { margin-top: 1.1rem; }
.app-tour-count { color: rgb(100 116 139); font-size: 0.75rem; }
.app-tour-actions { gap: 0.5rem; }
.app-tour-actions button { border-radius: 0.55rem; padding: 0.5rem 0.85rem; font-size: 0.82rem; font-weight: 600; }
.app-tour-back { color: rgb(71 85 105); }
.dark .app-tour-back { color: rgb(203 213 225); }
.app-tour-next { background: var(--primary-600); color: white; }

@media (max-width: 639px) {
    .app-tour-card { right: 1rem !important; bottom: 1rem !important; left: 1rem !important; top: auto !important; width: auto; }
}
