/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-wb84tp2al2] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-wb84tp2al2] {
    flex: 1;
}

.main-content[b-wb84tp2al2] {
    padding: 24px 24px 24px 24px; /* 84px = AppBar height (64px) + 20px spacing */
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar[b-wb84tp2al2] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-wb84tp2al2] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-wb84tp2al2]  a, .top-row[b-wb84tp2al2]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-wb84tp2al2]  a:hover, .top-row[b-wb84tp2al2]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-wb84tp2al2]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-wb84tp2al2] {
        justify-content: space-between;
    }

    .top-row[b-wb84tp2al2]  a, .top-row[b-wb84tp2al2]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-wb84tp2al2] {
        flex-direction: row;
    }

    .sidebar[b-wb84tp2al2] {
        width: 250px;
        height: calc(100vh - 24px);
        position: sticky;
        top: 0;
    }

    .top-row[b-wb84tp2al2] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-wb84tp2al2]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-wb84tp2al2], article[b-wb84tp2al2] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-bpu0a2ng2b] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-bpu0a2ng2b] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-bpu0a2ng2b] {
    font-size: 1.1rem;
}

.bi[b-bpu0a2ng2b] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-bpu0a2ng2b] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-bpu0a2ng2b] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-bpu0a2ng2b] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-bpu0a2ng2b] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-bpu0a2ng2b] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-bpu0a2ng2b] {
        padding-bottom: 1rem;
    }

    .nav-item[b-bpu0a2ng2b]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-bpu0a2ng2b]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-bpu0a2ng2b]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-bpu0a2ng2b] {
        display: none;
    }

    .collapse[b-bpu0a2ng2b] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-bpu0a2ng2b] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Chapter/ChapterGenerationProgress.razor.rz.scp.css */
.chapter-generation-container[b-aorx3tdc1r] {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.quotes-list[b-aorx3tdc1r] {
    margin: 1rem 0;
}

.quote-item[b-aorx3tdc1r] {
    font-style: italic;
    padding: 0.5rem 0;
    border-left: 3px solid var(--mud-palette-primary);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.chip-container[b-aorx3tdc1r] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.generation-status[b-aorx3tdc1r] {
    background-color: var(--mud-palette-info-lighten);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header[b-aorx3tdc1r] {
    display: flex;
    align-items: center;
    margin: 2rem 0 1rem 0;
}

.section-header mudicon[b-aorx3tdc1r] {
    margin-right: 0.5rem;
}
/* /Shared/Help/HelpDialog.razor.rz.scp.css */
/* Help Dialog Styles */

.help-dialog-content[b-yhdo5cbtvp] {
    width: 100%;
    max-width: 100%;
}

.help-section[b-yhdo5cbtvp] {
    margin-bottom: 2rem;
}

.help-section:last-child[b-yhdo5cbtvp] {
    margin-bottom: 0;
}

.help-section-header[b-yhdo5cbtvp] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mud-palette-divider);
}

.section-icon[b-yhdo5cbtvp] {
    color: var(--mud-palette-primary);
}

/* Tutorials List */

.tutorials-list[b-yhdo5cbtvp] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.tutorial-card[b-yhdo5cbtvp] {
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mud-palette-primary) 0%, var(--mud-palette-primary-darken) 100%);
}

.tutorial-card:hover[b-yhdo5cbtvp] {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tutorial-button[b-yhdo5cbtvp] {
    padding: 0 !important;
    text-transform: none !important;
    height: auto !important;
    border-radius: 8px !important;
}

.tutorial-button:hover[b-yhdo5cbtvp] {
    background: transparent !important;
}

.tutorial-button-content[b-yhdo5cbtvp] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    width: 100%;
    text-align: left;
}

.tutorial-icon-wrapper[b-yhdo5cbtvp] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
}

.tutorial-icon[b-yhdo5cbtvp] {
    font-size: 28px;
    color: white;
}

.tutorial-info[b-yhdo5cbtvp] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tutorial-title[b-yhdo5cbtvp] {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.3;
    flex-shrink: 0;
    white-space: nowrap;
}

.title-separator[b-yhdo5cbtvp] {
    font-weight: bold;
    opacity: 0.6;
    flex-shrink: 0;
}

.tutorial-meta[b-yhdo5cbtvp] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1;
    flex-shrink: 0;
}

.tutorial-meta .meta-icon[b-yhdo5cbtvp] {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.tutorial-meta .meta-icon.success[b-yhdo5cbtvp] {
    color: #4caf50;
}

.tutorial-meta .meta-text[b-yhdo5cbtvp] {
    font-weight: 500;
    white-space: nowrap;
}

.tutorial-meta .meta-separator[b-yhdo5cbtvp] {
    font-weight: bold;
    padding: 0 0.25rem;
}

.tutorial-action-icon[b-yhdo5cbtvp] {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
}

.tutorial-action-icon .mud-icon-root[b-yhdo5cbtvp] {
    font-size: 24px;
    transition: transform 0.2s ease;
}

.tutorial-button:hover .tutorial-action-icon .mud-icon-root[b-yhdo5cbtvp] {
    transform: scale(1.15);
}

/* FAQ Styles */

.faq-title[b-yhdo5cbtvp] {
    padding: 0.25rem 0;
}

.faq-answer[b-yhdo5cbtvp] {
    color: var(--mud-palette-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Alert Styles */

.no-content-alert[b-yhdo5cbtvp] {
    margin-bottom: 1rem;
}

/* Responsive Design */

@media (max-width: 768px) {
    .help-dialog-content[b-yhdo5cbtvp] {
        width: 100%;
        max-width: 100%;
    }

    .tutorials-list[b-yhdo5cbtvp] {
        grid-template-columns: 1fr;
    }

    .tutorial-button-content[b-yhdo5cbtvp] {
        padding: 1rem;
    }

    .tutorial-info[b-yhdo5cbtvp] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tutorial-title[b-yhdo5cbtvp] {
        white-space: normal;
        word-break: break-word;
    }
    
    /* Make dialog fill more of the mobile screen */
    [b-yhdo5cbtvp] .mud-dialog {
        max-height: 90vh;
        margin: 16px;
    }
    
    [b-yhdo5cbtvp] .mud-dialog-content {
        max-height: calc(90vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .help-section-header[b-yhdo5cbtvp] {
        font-size: 0.9rem;
    }

    .tutorial-icon-wrapper[b-yhdo5cbtvp] {
        width: 40px;
        height: 40px;
    }

    .tutorial-icon[b-yhdo5cbtvp] {
        font-size: 24px;
    }

    .tutorial-button-content[b-yhdo5cbtvp] {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .tutorial-title[b-yhdo5cbtvp] {
        font-size: 1rem;
    }

    .tutorial-meta[b-yhdo5cbtvp] {
        font-size: 0.8rem;
    }

    .tutorial-action-icon[b-yhdo5cbtvp] {
        width: 32px;
        height: 32px;
    }

    .tutorial-action-icon .mud-icon-root[b-yhdo5cbtvp] {
        font-size: 20px;
    }
    
    /* Optimize for small mobile screens */
    [b-yhdo5cbtvp] .mud-dialog {
        max-height: 95vh;
        margin: 8px;
    }
    
    [b-yhdo5cbtvp] .mud-dialog-content {
        max-height: calc(95vh - 100px);
        padding: 12px;
    }
    
    [b-yhdo5cbtvp] .mud-dialog-actions {
        padding: 12px;
    }
    
    /* Make expansion panels more compact on mobile */
    [b-yhdo5cbtvp] .mud-expand-panel {
        margin-bottom: 8px;
    }
    
    [b-yhdo5cbtvp] .mud-expand-panel-header {
        padding: 12px;
    }
    
    [b-yhdo5cbtvp] .mud-expand-panel-content {
        padding: 12px;
    }
}

/* /Shared/Help/WalkthroughOverlay.razor.rz.scp.css */
/* Walkthrough Overlay Component Styles */

.walkthrough-help-popup[b-26un0s9u19] {
    position: fixed;
    z-index: 2002;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px !important;
    min-width: 320px;
    animation: popupSlideIn-b-26un0s9u19 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    overflow: visible;
    box-sizing: border-box;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.walkthrough-help-popup.transitioning[b-26un0s9u19] {
    opacity: 0.3;
    transform: scale(0.98);
}

/* Element not found styling */
.walkthrough-help-popup.element-not-found[b-26un0s9u19] {
    border: 2px solid var(--mud-palette-warning);
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.2),
                0 2px 8px rgba(0, 0, 0, 0.2);
}

.walkthrough-element-warning[b-26un0s9u19] {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2003;
    background: var(--mud-palette-warning);
    color: var(--mud-palette-warning-text, #000);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDownFade-b-26un0s9u19 0.3s ease-out;
}

@keyframes slideDownFade-b-26un0s9u19 {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.walkthrough-help-content[b-26un0s9u19] {
    margin-bottom: 1.25rem;
}

.walkthrough-title[b-26un0s9u19] {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--mud-palette-info) !important;
}

.walkthrough-description[b-26un0s9u19] {
    line-height: 1.6;
    color: var(--mud-palette-info);
}

.walkthrough-progress[b-26un0s9u19] {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.walkthrough-progress-bar[b-26un0s9u19] {
    width: 100%;
    height: 6px;
    background: var(--mud-palette-divider);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.walkthrough-progress-bar-fill[b-26un0s9u19] {
    height: 100%;
    background: var(--mud-palette-info);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.walkthrough-progress-text[b-26un0s9u19] {
    text-align: center;
    color: var(--mud-palette-text-secondary);
    font-size: 0.875rem;
}

.walkthrough-controls[b-26un0s9u19] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.walkthrough-nav-buttons[b-26un0s9u19] {
    display: flex;
    gap: 0.5rem;
}

/* Animations */

@keyframes popupSlideIn-b-26un0s9u19 {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Position-specific animations */

.walkthrough-help-popup.position-top[b-26un0s9u19] {
    transform-origin: bottom center;
}

.walkthrough-help-popup.position-bottom[b-26un0s9u19] {
    transform-origin: top center;
}

.walkthrough-help-popup.position-left[b-26un0s9u19] {
    transform-origin: right center;
}

.walkthrough-help-popup.position-right[b-26un0s9u19] {
    transform-origin: left center;
}

.walkthrough-help-popup.position-center[b-26un0s9u19] {
    transform-origin: center center;
}

/* Responsive Design */

@media (max-width: 768px) {
    .walkthrough-help-popup[b-26un0s9u19] {
        max-width: calc(100vw - 2rem);
        min-width: unset;
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
    }

    .walkthrough-controls[b-26un0s9u19] {
        flex-direction: column;
        gap: 0.5rem;
    }

    .walkthrough-nav-buttons[b-26un0s9u19] {
        width: 100%;
        justify-content: space-between;
    }
    
    .walkthrough-element-warning[b-26un0s9u19] {
        max-width: calc(100vw - 2rem);
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .walkthrough-help-popup[b-26un0s9u19] {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .walkthrough-title[b-26un0s9u19] {
        font-size: 1.1rem;
    }

    .walkthrough-description[b-26un0s9u19] {
        font-size: 0.9rem;
    }

    .walkthrough-progress-bar[b-26un0s9u19] {
        height: 4px;
    }
}

/* Accessibility */

.walkthrough-help-popup:focus[b-26un0s9u19] {
    outline: 2px solid var(--mud-palette-info);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .walkthrough-help-popup[b-26un0s9u19] {
        border: 2px solid var(--mud-palette-info);
    }
    
    .walkthrough-help-popup.element-not-found[b-26un0s9u19] {
        border: 3px solid var(--mud-palette-warning);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .walkthrough-help-popup[b-26un0s9u19] {
        animation: none !important;
    }
    
    .walkthrough-progress-bar-fill[b-26un0s9u19] {
        transition: none !important;
    }
    
    .walkthrough-element-warning[b-26un0s9u19] {
        animation: none !important;
    }
}

/* Walkthrough Help Popup */
.walkthrough-help-popup[b-26un0s9u19] {
    position: fixed;
    width: 400px;
    max-width: calc(100vw - 40px);
    max-height: min(450px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    padding: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease, top 0.3s ease, left 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.walkthrough-help-popup.transitioning[b-26un0s9u19] {
    opacity: 0.7;
    transform: scale(0.98);
}

.walkthrough-help-popup.element-not-found[b-26un0s9u19] {
    border: 2px solid var(--mud-palette-warning);
}

.walkthrough-help-header[b-26un0s9u19] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.walkthrough-help-content[b-26un0s9u19] {
    margin-bottom: 20px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.walkthrough-title[b-26un0s9u19] {
    margin-bottom: 0;
    color: var(--mud-palette-primary);
    font-weight: 600;
    flex: 1;
    line-height: 1.3;
}

.walkthrough-close-button[b-26un0s9u19] {
    flex-shrink: 0;
    margin-top: -4px;
    margin-right: -8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.walkthrough-close-button:hover[b-26un0s9u19] {
    opacity: 1;
}

.walkthrough-description[b-26un0s9u19] {
    color: var(--mud-palette-text-primary);
    line-height: 1.6;
}

.walkthrough-progress[b-26un0s9u19] {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.walkthrough-progress-bar[b-26un0s9u19] {
    width: 100%;
    height: 4px;
    background-color: var(--mud-palette-grey-lighter);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.walkthrough-progress-bar-fill[b-26un0s9u19] {
    height: 100%;
    background-color: var(--mud-palette-info);
    transition: width 0.3s ease;
}

.walkthrough-progress-text[b-26un0s9u19] {
    color: var(--mud-palette-text-secondary);
    text-align: center;
    display: block;
}

.walkthrough-controls[b-26un0s9u19] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-top: auto;
}

.walkthrough-nav-buttons[b-26un0s9u19] {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Mobile step indicator - hidden on desktop */
.mobile-step-indicator[b-26un0s9u19] {
    display: none;
}

/* Element Not Found Warning */
.walkthrough-element-warning[b-26un0s9u19] {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mud-palette-warning);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 10003;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Position classes for different placements */
.position-top[b-26un0s9u19]::before,
.position-bottom[b-26un0s9u19]::before,
.position-left[b-26un0s9u19]::before,
.position-right[b-26un0s9u19]::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.position-top[b-26un0s9u19]::before {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
}

.position-bottom[b-26un0s9u19]::before {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: white;
}

.position-left[b-26un0s9u19]::before {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: white;
}

.position-right[b-26un0s9u19]::before {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: white;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .walkthrough-help-popup[b-26un0s9u19] {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        max-height: 320px;
        padding: 16px;
        border-radius: 8px 8px 0 0;
        /* Smooth slide-in animation for mobile */
        animation: slideInMobile-b-26un0s9u19 0.3s ease-out;
    }

    @keyframes slideInMobile-b-26un0s9u19 {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .walkthrough-help-header[b-26un0s9u19] {
        margin-bottom: 12px;
        gap: 8px;
    }

    .walkthrough-close-button[b-26un0s9u19] {
        margin-top: -2px;
        margin-right: -4px;
    }

    /* Hide desktop progress bar on mobile */
    .desktop-only[b-26un0s9u19] {
        display: none !important;
    }

    /* Show mobile step indicator */
    .mobile-step-indicator[b-26un0s9u19] {
        display: block !important;
        color: var(--mud-palette-text-secondary);
        font-weight: 600;
        margin-right: 8px;
    }

    .walkthrough-help-content[b-26un0s9u19] {
        margin-bottom: 16px;
        max-height: 200px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .walkthrough-title[b-26un0s9u19] {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .walkthrough-description[b-26un0s9u19] {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .walkthrough-controls[b-26un0s9u19] {
        justify-content: flex-end;
        gap: 8px;
    }

    .walkthrough-nav-buttons[b-26un0s9u19] {
        gap: 6px;
    }
    
    /* Remove arrow pointers on mobile */
    .position-top[b-26un0s9u19]::before,
    .position-bottom[b-26un0s9u19]::before,
    .position-left[b-26un0s9u19]::before,
    .position-right[b-26un0s9u19]::before {
        display: none;
    }
    
    .walkthrough-element-warning[b-26un0s9u19] {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

/* Landscape mobile (horizontal orientation) */
@media (max-width: 768px) and (orientation: landscape) {
    .walkthrough-help-popup[b-26un0s9u19] {
        width: 380px;
        max-width: 380px;
        max-height: calc(100vh - 20px);
        border-radius: 8px 0 0 8px;
        animation: slideInLandscape-b-26un0s9u19 0.3s ease-out;
    }

    @keyframes slideInLandscape-b-26un0s9u19 {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    /* Show progress bar in landscape mode */
    .desktop-only[b-26un0s9u19] {
        display: block !important;
    }
    
    /* Hide mobile step indicator in landscape */
    .mobile-step-indicator[b-26un0s9u19] {
        display: none !important;
    }

    .walkthrough-help-content[b-26un0s9u19] {
        max-height: calc(100vh - 200px);
    }
    
    .walkthrough-controls[b-26un0s9u19] {
        flex-direction: column;
        gap: 8px;
    }
    
    .walkthrough-nav-buttons[b-26un0s9u19] {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .walkthrough-help-popup[b-26un0s9u19] {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        padding: 12px;
        max-height: 300px;
    }

    .walkthrough-help-content[b-26un0s9u19] {
        max-height: 180px;
    }

    .walkthrough-title[b-26un0s9u19] {
        font-size: 1rem;
    }

    .walkthrough-description[b-26un0s9u19] {
        font-size: 0.9rem;
    }
    
    .walkthrough-nav-buttons button[b-26un0s9u19] {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

