.app-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
}

.app-overlay.is-visible {
    display: flex;
}

.app-overlay--dense {
    background: rgba(0, 0, 0, 0.7);
}

.app-overlay-card {
    width: 100%;
    max-width: 420px;
    margin: 0 16px;
    text-align: center;
}

.app-overlay-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #39a900;
    border-radius: 999px;
    animation: app-spin 1s linear infinite;
}

.app-overlay-message {
    margin-top: 16px;
    font-size: 1.05rem;
}

.app-mini-status {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1060;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    font-size: 12px;
    color: #1f2937;
}

.experience-modal-panel {
    max-width: 520px;
    width: 100%;
}

.session-stage-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.session-stage {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #6b7280;
    position: relative;
}

.session-stage::after {
    content: '';
    position: absolute;
    right: -12px;
    width: 12px;
    height: 2px;
    background: #e5e7eb;
}

.session-stage:last-child::after {
    display: none;
}

.session-stage.is-completed,
.session-stage.is-active {
    background: #39a900;
    color: #fff;
}

.session-stage.is-active {
    box-shadow: 0 0 0 4px rgba(57, 169, 0, 0.2);
    animation: app-pulse 2s infinite;
}

.session-context-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #39a900;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.session-previous-decisions {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.session-options {
    display: grid;
    gap: 16px;
}

.session-option-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.session-option-card:hover {
    border-color: #39a900;
    box-shadow: 0 4px 12px rgba(57, 169, 0, 0.15);
    transform: translateY(-2px);
}

.session-option-card.is-selected {
    border-color: #39a900;
    background: #f0fdf4;
}

.session-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.session-option-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.session-option-number {
    width: 32px;
    height: 32px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #4b5563;
    flex-shrink: 0;
}

.session-option-card.is-selected .session-option-number {
    background: #39a900;
    color: #fff;
}

.session-submit-btn {
    background: #39a900;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.session-submit-btn:hover:not(:disabled) {
    background: #007832;
    box-shadow: 0 4px 12px rgba(57, 169, 0, 0.3);
}

.session-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

@keyframes app-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes app-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(57, 169, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(57, 169, 0, 0.1);
    }
}
