/* TTS Prompt Composer - onboarding tour overlay (see ai_docs/ONBOARDING.md).
   z-index 9000: above every app modal (1000-1200) but below the
   Directorkit auth gate (10000). */

#tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    display: none;
}

.tour-shade {
    position: fixed;
    background: rgba(8, 8, 8, 0.62);
    pointer-events: auto;
}

.tour-hole-blocker {
    position: fixed;
    pointer-events: auto;
    display: none;
}

.tour-ring {
    position: fixed;
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.22), 0 0 28px rgba(212, 165, 116, 0.3);
    pointer-events: none;
    display: none;
}

.tour-card {
    position: fixed;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: var(--spacing-md);
    pointer-events: auto;
}

.tour-card.centered {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tour-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.tour-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-highlight);
}

.tour-card-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.tour-card-close:hover {
    color: var(--text-primary);
}

.tour-card-body {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.tour-card-hint {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 12px;
    font-style: italic;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-sm);
}

.tour-card-hint::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    flex-shrink: 0;
    animation: tour-hint-pulse 1.4s ease-in-out infinite;
}

@keyframes tour-hint-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.tour-card-hint.hidden,
.tour-btn-back.hidden,
.tour-btn-next.hidden,
.tour-btn-skip.hidden {
    display: none;
}

.tour-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.tour-card-progress {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.tour-card-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Toast shown when a tour ends or completes. */
#tour-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    font-size: 13px;
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 9500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#tour-toast.visible {
    opacity: 1;
}

/* Tutorials button + dropdown in the header. */
.tutorials-shell {
    position: relative;
}

.tutorials-menu {
    position: absolute;
    top: calc(100% + var(--spacing-sm));
    left: 0;
    z-index: 1200;
    min-width: 240px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    padding: var(--spacing-xs);
}

.tutorials-menu.hidden {
    display: none;
}

.tutorials-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}

.tutorials-menu-item:hover {
    background: var(--bg-tertiary);
}

.tutorials-menu-item .done-mark {
    color: var(--success);
    font-size: 12px;
}
