@media screen and (max-width: 768px) {
    /* Z-Index Hierarchy System for Mobile UI Elements
     * This system prevents overlapping issues between maximize button and selectors
     * 
     * Hierarchy (lowest to highest):
     * - Maximize button: 1 (stays behind all UI elements)
     * - Inactive selectors: 1001 (above maximize button)
     * - Active/open selectors: 1002 (highest priority)
     * - Context-aware reduction: 1000 (when other selectors are active)
     */
    
    /* CSS Custom Properties for Z-Index Management */
    :root {
        --z-maximize-btn: 1;
        --z-selector-inactive: 1001;
        --z-selector-active: 1002;
        --z-selector-reduced: 1000;
    }
    
    /* 
     * Prevent zoom gestures on mobile devices for stable UI layout
     * Issue #506: Disable zoom on Data Insights, Folders, and Use Cases screens
     * 
     * ACCESSIBILITY NOTE: This implementation intentionally disables zoom functionality
     * on mobile devices as a business requirement to prevent UI layout disruption.
     * 
     * WCAG 2.1 AA Compliance: This approach violates Success Criterion 1.4.4 (Resize text)
     * which requires content to be readable at 200% zoom without horizontal scrolling.
     * 
     * Business Decision: Complete zoom disable was specifically requested to ensure
     * stable UI behavior on Data Insights, Folders, and Use Cases screens.
     * 
     * Future Consideration: For accessibility compliance, consider implementing:
     * - Text size controls within the application UI
     * - Alternative content scaling options
     * - User preference settings for zoom behavior
     */
    
    /* Target main containers and interactive elements instead of universal selector */
    html, body,
    .chat-container,
    .messages-container,
    .input-container,
    .superAgent-artifact-popup,
    .files-modal,
    .modal-overlay,
    .quick-actions-container,
    .mobile-quick-actions,
    .header-quick-actions,
    .header-quick-action-btn,
    .file-navigation-controls,
    .nav-button,
    .chat-options-btn,
    .history-toggle-btn,
    .input-controls,
    .left-controls,
    .right-controls,
    .file-options-icon,
    .modal-file-item,
    .file-item,
    .greeting-container,
    .centered-inner-container,
    .settings-back-button {
        touch-action: manipulation;
    }
    
    /* Prevent automatic text scaling */
    html, body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Prevent double-tap zoom and improve touch experience */
    body {
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    :root {
        --mobile-button-size: 36px;
        --mobile-button-padding: 8px;
        --mobile-button-color: #666;
        --mobile-button-hover-color: #333;
        --mobile-button-hover-bg: rgba(0, 0, 0, 0.05);
        --mobile-header-padding: 5px 0 0 0;
        --mobile-header-height: 43px;
        
        /* Mobile Typography Scale - Following iOS/Android Standards */
        --mobile-font-xs: 0.75rem;       /* 12px - Very small text */
        --mobile-font-small: 0.875rem;   /* 14px - Secondary text */
        --mobile-font-base: 1rem;        /* 16px - Base font size */
        --mobile-font-medium: 1.0625rem; /* 17px - Emphasized text */
        --mobile-font-large: 1.125rem;   /* 18px - Large text */
        --mobile-font-xl: 1.25rem;       /* 20px - Extra large */
        --mobile-font-xxl: 1.375rem;     /* 22px - Headers */
        --mobile-font-huge: 1.5rem;      /* 24px - Very large */
        --mobile-font-massive: 1.75rem;  /* 28px - Massive text */
        
        /* Line Heights for Different Content Types */
        --mobile-line-height-tight: 1.3; /* Compact text */
        --mobile-line-height-normal: 1.4; /* Normal text */
        --mobile-line-height-relaxed: 1.5; /* Body text */
        --mobile-line-height-loose: 1.6; /* Reading content */
        
        /* Font Weights */
        --mobile-font-weight-normal: 400;
        --mobile-font-weight-medium: 500;
        --mobile-font-weight-semibold: 600;
        --mobile-font-weight-bold: 700;
    }
    
    /* ======================================================================
     * TYPOGRAPHY UTILITY CLASSES
     * ======================================================================
     * 
     * These utility classes provide consistent typography across mobile UI.
     * Use these classes for rapid development and maintaining design system.
     * 
     * Font Size Classes:
     * - .mobile-text-xs    → 12px (labels, captions)
     * - .mobile-text-sm    → 14px (secondary text, descriptions)  
     * - .mobile-text-base  → 16px (body text, main content)
     * - .mobile-text-md    → 17px (emphasized text, headings)
     * - .mobile-text-lg    → 18px (large text, titles)
     * - .mobile-text-xl    → 20px (extra large, icons)
     * - .mobile-text-xxl   → 22px (headers, important titles)
     * 
     * Font Weight Classes:
     * - .mobile-weight-normal    → 400 (regular text)
     * - .mobile-weight-medium    → 500 (slightly bold)
     * - .mobile-weight-semibold  → 600 (section headings)
     * - .mobile-weight-bold      → 700 (important text)
     * 
     * Example Usage:
     * <div class="mobile-text-base mobile-weight-medium">Main content</div>
     * <h3 class="mobile-text-lg mobile-weight-semibold">Section title</h3>
     * ====================================================================== */
    
    .mobile-text-xs { font-size: var(--mobile-font-xs); line-height: var(--mobile-line-height-tight); }
    .mobile-text-sm { font-size: var(--mobile-font-small); line-height: var(--mobile-line-height-normal); }
    .mobile-text-base { font-size: var(--mobile-font-base); line-height: var(--mobile-line-height-relaxed); }
    .mobile-text-md { font-size: var(--mobile-font-medium); line-height: var(--mobile-line-height-normal); }
    .mobile-text-lg { font-size: var(--mobile-font-large); line-height: var(--mobile-line-height-normal); }
    .mobile-text-xl { font-size: var(--mobile-font-xl); line-height: var(--mobile-line-height-tight); }
    .mobile-text-xxl { font-size: var(--mobile-font-xxl); line-height: var(--mobile-line-height-tight); }
    
    .mobile-weight-normal { font-weight: var(--mobile-font-weight-normal); }
    .mobile-weight-medium { font-weight: var(--mobile-font-weight-medium); }
    .mobile-weight-semibold { font-weight: var(--mobile-font-weight-semibold); }
    .mobile-weight-bold { font-weight: var(--mobile-font-weight-bold); }
    
    .file-navigation-controls {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        display: flex;
        background: rgba(255, 255, 255, 0.95);
        padding: 4px;
        border-radius: 50px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        margin: 0 8px;
    }

    .new-tab-btn {
        position: fixed;
        right: 20px;
    }
    .new-tab-btn svg {
        width: 20px;
        height: 20px;
    }

    .view-all-files-btn {
        max-width: 218px;
        padding: 7px 0 7px 10px;
    }

    .result-display-header.mobile-header {
        display: none !important;
    }

    body.showing-quick-action .result-display-header.mobile-header,
    body.showing-quick-action .result-display-header {
        display: none !important;
    }

    .artifact-card {
        height: 100% !important;
    }

    .superAgent-artifact-popup.mobile-fullscreen {
        border-radius: var(--mobile-popup-border-radius) var(--mobile-popup-border-radius) 0 0 !important;
        margin: var(--mobile-margin) 0 0 0 !important;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2) !important;
        transition: transform 0.3s ease-out !important;
    }

    .superAgent-artifact-popup.mobile-fullscreen::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: var(--mobile-drag-handle-width);
        height: 4px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
        z-index: 1000;
    }

    [data-theme="dark"] .superAgent-artifact-popup.mobile-fullscreen::before {
        background: rgba(255, 255, 255, 0.3);
    }

    /* Animation for closing gesture */
    .superAgent-artifact-popup.mobile-fullscreen.sliding-out {
        transform: translateY(100%) !important;
        transition: transform 0.3s ease-out !important;
    }

    /* Dark mode support for mobile artifact cards */
    [data-theme="dark"] .superAgent-artifact-popup.mobile-fullscreen .artifact-card {
        background: #1e1e1e !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
    }
    aside.sidebar .settings-header {
        margin: 0;
    }
    .greeting-container{
        flex-direction: column;
    }
    .header-quick-actions{
        margin-right: 0;
        gap: 12px;
        display: none !important; /* Hide header quick actions on mobile */
    }
    
    /* Hide tooltips on mobile devices as fallback */
    .header-quick-action-tooltip {
        display: none !important;
    }

    .centered-inner-container > .quick-actions-container:not(.mobile-quick-actions) {
        display: none !important;
    }
    .mobile-quick-actions {
        display: flex !important;
        margin-top: var(--mobile-margin);
        margin-bottom: 20px;
    }
    .web-quick-actions{
        display: none !important;
    }
    .quick-actions-container.mobile-quick-actions {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
        padding: 0 16px
    }

    .header-quick-action-btn{
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-buttons {
        display: flex;
        gap: 0;
    }
    .agent-description p, ul, li, code {
        font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    }

    .nav-button {
        width: 40px;
        border: none;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        transition: all 0.2s ease;
    }

    .nav-button:first-child {
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-button:hover:not(.disabled) {
        background: transparent;
        color: #333;
    }

    .nav-button.disabled {
        color: #ccc;
    }

    [data-theme="dark"] .file-navigation-controls {
        background: rgba(60, 60, 60, 0.95);
    }

    [data-theme="dark"] .nav-button {
        color: #aaa;
    }

    [data-theme="dark"] .nav-button:first-child {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    [data-theme="dark"] .nav-button:hover:not(.disabled) {
        color: #fff;
    }

    [data-theme="dark"] .nav-button.disabled {
        color: #666;
    }


    .file-item{
        background-color: #fff;
        padding: 6px;
    }

    .file-item,
    .modal-file-item,
    .file-pill {
        cursor: pointer;
        position: relative;
        transition: background-color 0.2s ease;
    }

    .file-item:active,
    .modal-file-item:active,
    .file-pill:active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    [data-theme="dark"] .file-item:active,
    [data-theme="dark"] .modal-file-item:active,
    [data-theme="dark"] .file-pill:active {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .view-btn {
        display: none !important;
    }

    .file-item,
    .modal-file-item {
        cursor: pointer;
    }

    .desktop-header {
        display: none !important;
    }

    .browser-url-bar {
        padding: unset;
        background-color: unset;
        border: unset;
        border-radius: unset;
    }

    .artifact-prev-btn i,
    .artifact-next-btn i {
        font-size: var(--mobile-font-xl);
        line-height: var(--mobile-line-height-tight);
    }

    .dropdown-item {
        font-size: var(--mobile-font-base) !important;
    }
    .letter-icon{
        font-size: var(--mobile-font-base) !important;
    }

    /* Mobile Artifact Popup Styles */
    .superAgent-artifact-popup {
        &.mobile-fullscreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            max-width: 100vw;
            max-height: 100vh;
            z-index: 9999;
            border-radius: 0;
            margin: 0;
            padding: 0;
            background: var(--card-bg);
            box-shadow: none;
            transform: none;
            animation: slideUpFromBottom 0.3s ease-out;

            .artifact-content {
                height: calc(100vh - 200px);
                overflow-y: auto;
                padding: 8px;
            }

            .artifact-header {
                position: sticky;
                top: 0;
                background: var(--card-bg);
                z-index: 10;
                padding: 16px;
                justify-content: center;
            }

            .artifact-playback {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                background: var(--card-bg);
                z-index: 10;
                padding: 16px 16px 20px 16px;
                display: flex;
                flex-direction: column;
                gap: 12px;

                .artifact-prev-btn,
                .artifact-next-btn {
                    position: absolute;
                    width: 60px;
                    height: 38px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                .artifact-prev-btn {
                    left: 20px;
                }

                .artifact-next-btn {
                    right: 20px;
                }
            }

            .playback-progress-container {
                width: 92%;
                height: 40px;
                display: flex;
                align-items: center;
                margin: 0;
                bottom: 15px;
            }

            .playback-progress-bar {
                height: 6px;
                border-radius: 3px;
            }

            .jump-container {
                position: absolute;
                bottom: unset;
                left: 50%;
                transform: translateX(-50%);
                z-index: 11;
                display: none;
            }

            .jump-to-live-btn {
                padding: 10px 12px;
                border-radius: var(--mobile-popup-border-radius);
                background-color: #fff;
                color: #555555;
                border: none;
                font-weight: var(--mobile-font-weight-semibold);
                font-size: var(--mobile-font-small);
                line-height: var(--mobile-line-height-normal);
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            }

            .artifact-close-btn {
                position: absolute;
                left: 14px;
                top: 50%;
                transform: translateY(-50%);
                z-index: 15;
                width: 32px;
                height: 32px;
                border-radius: 50%;
                border: none;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--text-color);
            }

            .artifact-expand-btn {
                display: none;
            }

            .artifact-title {
                font-size: var(--mobile-font-medium);
                font-weight: var(--mobile-font-weight-semibold);
                line-height: var(--mobile-line-height-normal);
            }

            .result-display-header {
                padding: 12px 16px;
            }

            .view-mode-controls {
                margin: 8px 0;
            }

            .toggle-btn {
                padding: 8px 12px;
                font-size: var(--mobile-font-small);
                line-height: var(--mobile-line-height-normal);
                font-weight: var(--mobile-font-weight-medium);
            }
        }
    }

    .chat-artifact-wrapper.showing-artifact-mobile {
        display: flex;
        width: 100%;
        height: 100%;
    }

    /* Animations */
    @keyframes slideUpFromBottom {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes slideDownToBottom {
        from {
            transform: translateY(0);
            opacity: 1;
        }

        to {
            transform: translateY(100%);
            opacity: 0;
        }
    }

    /* Dark theme */
    [data-theme="dark"] {
        .superAgent-artifact-popup.mobile-fullscreen {
            background: var(--card-bg);

            .artifact-header {
                background: var(--card-bg);
                border-bottom-color: var(--border-color);
            }

            .artifact-playback {
                background: var(--card-bg);
                border-top-color: var(--border-color);
            }

            .artifact-close-btn {
                background: var(--button-bg);
                color: var(--text-color);
            }

            .artifact-prev-btn,
            .artifact-next-btn {
                background: var(--button-bg);
                border-color: var(--border-color);
                color: var(--text-color);
            }

            .jump-to-live-btn {
                background: var(--highlight-color);
                color: white;
            }
        }
    }

    /* Header visibility */
    .desktop-header {
        display: flex;
    }

    .mobile-header {
        display: none;
    }

    .file-content {
        width: 100%;
        overflow-x: hidden;
        white-space: wrap;
    }


    .file-options-icon svg {
        width: 16px;
        height: 16px;
        display: block;
    }
    .step-header {
        padding: 10px 10px 10px 4px !important;
    }
.file-name{
    max-width: 250px;
width: 100%;
font-weight: 400;
font-size: var(--mobile-font-base) !important;
}
 .file-type{
    font-size: var(--mobile-font-small) !important;
 }
 .agent-name{
    font-size: var(--mobile-font-base) !important;
 }
 .icon-text i{
    font-size: var(--mobile-font-small) !important;
 }
.operation{
    font-size: var(--mobile-font-small) !important;
}

    .file-options-popup {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        min-width: 200px;
        margin-top: 4px;
        overflow: hidden;
    }

    .file-option-item {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        cursor: pointer;
        transition: background-color 0.2s ease;
        border-bottom: 1px solid #f0f0f0;
    }

    .file-option-item:last-child {
        border-bottom: none;
    }

    .file-option-item:hover {
        background-color: #f8f9fa;
    }

    .file-option-item svg {
        margin-right: 8px;
        color: #666;
    }

    .file-option-item span {
        font-size: var(--mobile-font-small);
        color: #333;
        font-weight: var(--mobile-font-weight-medium);
        line-height: var(--mobile-line-height-normal);
    }

    /* Dark theme styles */
    [data-theme="dark"] .file-options-icon {
        color: #ccc;
        background: rgba(255, 255, 255, 0.1);
    }

    [data-theme="dark"] .file-options-icon:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    [data-theme="dark"] .file-options-popup {
        background: #2d2d2d;
        border-color: #404040;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    [data-theme="dark"] .file-option-item {
        border-bottom-color: #404040;
    }

    [data-theme="dark"] .file-option-item:hover {
        background-color: #3a3a3a;
    }

    [data-theme="dark"] .file-option-item svg {
        color: #ccc;
    }

    [data-theme="dark"] .file-option-item span {
        color: #fff;
    }

    /* Position the popup relative to the artifact-title */
    .artifact-title {
        position: relative;
    }

    .artifact-title {
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .artifact-title-syia {
        text-align: center;
        width: 100%;
    }

    /* File options icon and popup styles for mobile view */
    .file-options-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        margin-left: 8px;
        cursor: pointer;
        color: #666;
        transition: all 0.2s ease;
        position: relative;
        /* right: -20px; */
    }

    .file-share-icon {
        margin-left: auto;
    }

    .file-options-icon svg {
        width: 16px;
        height: 16px;
        display: block;
    }
    .input-controls{
        padding: 6px 9px;
    }

    .left-controls{
        gap: 6px;
        z-index: unset !important;
    }

    .right-controls{
        gap: 2px;
        z-index: unset !important;
    }

    .file-options-popup {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        min-width: 200px;
        margin-top: 4px;
        overflow: hidden;
    }

    .file-option-item {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        cursor: pointer;
        transition: background-color 0.2s ease;
        border-bottom: 1px solid #f0f0f0;
        justify-content: space-between;
    }

    .file-option-item:last-child {
        border-bottom: none;
    }

    .file-option-item:hover {
        background-color: #f8f9fa;
    }

    .file-option-item svg {
        margin-right: 8px;
        color: #666;
    }

    .file-option-item span {
        font-size: var(--mobile-font-small);
        color: #333;
        font-weight: var(--mobile-font-weight-medium);
        line-height: var(--mobile-line-height-normal);
    }
    .history-sidebar.expanded{
        width: 85% !important;
    }

    /* Position the popup relative to the artifact-title */
    .artifact-title {
        margin-left: 35px;
        position: relative;
    }

    .chat-options-btn {
        display: flex;
        padding: var(--mobile-button-padding);
        width: var(--mobile-button-size);
        height: var(--mobile-button-size);
        font-size: var(--mobile-font-large);
        border-radius: 50%;
        background: transparent;
        border: none;
        align-items: center;
        justify-content: center;
        color: var(--mobile-button-color);
        transition: all 0.2s ease;
    }
    
    .chat-options-btn:hover {
        background: var(--mobile-button-hover-bg);
        color: var(--mobile-button-hover-color);
    }
    
    [data-theme="dark"] .chat-options-btn {
        color: #ccc;
    }
    
    [data-theme="dark"] .chat-options-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    /* Show mobile-only dropdown items */
    .mobile-only-item {
        display: flex !important;
    }

    .mobile-only-separator {
        display: block !important;
    }

    .header-power-toggle {
        display: flex;
        align-items: center;
        margin-right: 8px;
    }
    
    .header-menu{
        position: relative;
        display: flex;
        align-items: center;
    }
    .agent-description{
        padding: 0 4px !important;
        max-width: 100%;
    }
    .action-header{
        /* margin-left: 5px; */
        margin: 5px 0 12px 5px;
        padding: 5px 10px;

    }
    .agent-description p {
        padding-bottom: 5px;
        font-size: var(--mobile-font-large);
        line-height: var(--mobile-line-height-relaxed);
    }
    .agent-description {
        font-size: var(--mobile-font-large);
        line-height: var(--mobile-line-height-relaxed);
    }
    .agent-description ul{
        padding-inline-start: 20px;
        margin-block-start: 4px;
    }
    .file-content-container ul {
        padding-inline-start: 16px;
    }
    .greeting {
        flex-direction: column;
    }

    .greeting-card {
        padding: unset;
    }

    body .mobile-view .main-layout,
    .main-layout {
        margin-left: unset;
    }

    .chat-container {
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .chat-container .chat-main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 99;
        background: white;
        /* border-bottom: 1px solid #e6e6e6; */
        padding: var(--mobile-header-padding);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 7px;
    }

    [data-theme="dark"] .chat-container .chat-main-header {
        background: #1e1e1e;
        border-bottom: 1px solid #333333;
    }

    .chat-container-section {
        height: 100% !important;
        flex: 1;
        overflow-y: auto;
        padding-top: 40px;
        /* Add top padding to account for fixed header */
        display: flex;
        flex-direction: column;
        padding-bottom: 150px;
    }

    #chat-main-layout{
        height: 100dvh !important;
        width: 100% !important;
    }

.history-toggle-btn svg{
    width: var(--mobile-icon-size) !important;
    height: var(--mobile-icon-size) !important;
}
.history-toggle-btn{
   padding: var(--mobile-button-padding);
   display: flex;
   align-items: center;
   justify-content: center;
   width: var(--mobile-button-size);
   height: var(--mobile-button-size);
   border-radius: 50%;
   background: transparent;
   border: none;
   color: var(--mobile-button-color);
   transition: all 0.2s ease;
   top: 6px !important;
   /* Removed arbitrary top positioning - using flexbox alignment instead */
}

.history-toggle-btn:hover {
   background: var(--mobile-button-hover-bg);
   color: var(--mobile-button-hover-color);
}

[data-theme="dark"] .history-toggle-btn {
   color: #ccc;
}

[data-theme="dark"] .history-toggle-btn:hover {
   background: rgba(255, 255, 255, 0.1);
   color: #fff;
}

.header-logo{
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}
.logo-img{
    height: 17px;
    margin-right: 0;
}
.history-name{
    font-size: var(--mobile-font-large) !important;
    line-height: var(--mobile-line-height-normal);
}
.history-item{
    margin: 5px 0 !important;
}
.profile-avatar{
    background: #cccccc !important;
    font-weight: 700;
}
.profile-name{
    font-size: var(--mobile-font-large) !important;
    line-height: var(--mobile-line-height-normal);
}
    .chat-container {
        height: 100% !important;
    }

    .history-sidebar {
        height: var(--mobile-header-height);
        z-index: unset;
        /* Ensure sidebar is above fixed header */
    }
    .step-body{
        font-size: var(--mobile-font-large) !important;
        line-height: var(--mobile-line-height-loose);
    }

    body,
    html {
        height: 100vh !important;
        height: 100dvh !important;
        overflow: hidden !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .dropdown-menu,
    .model-dropdown {
        max-height: 280px;
    }

    .dropdown-menu.position-top,
    .model-dropdown.position-top {
        bottom: 48px;
    }

    .dropdown-menu,
    .model-dropdown {
        max-height: 300px;
    }

    .dropdown-menu.position-top,
    .model-dropdown.position-top {
        bottom: 40px;
    }

    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding-top: 32px;
        position: relative;
        height: auto;
        position: static;
    }

    .layout-content {
        padding: 24px;
        margin-left: 0;
    }

    .account-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .chat-artifact-wrapper.showing-artifact .chat-section {
        min-width: 450px;
        width: 100%;
        flex: 1;
    }

    .superAgent-artifact-popup.side-view {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
    }

    .mcp-tools {
        height: calc(100% - 50px);
    }

    .settings-menu.position-top .mcp-tools,
    .dropdown-menu.position-top .mcp-tools,
    .model-dropdown.position-top .mcp-tools {
        height: calc(100% - 50px);
    }

    .mcp-tools {
        height: calc(100% - 50px);
    }

    .settings-menu.position-top .mcp-tools,
    .dropdown-menu.position-top .mcp-tools,
    .model-dropdown.position-top .mcp-tools {
        height: calc(100% - 50px);
    }

    .mcp-submenu {
        height: 100%;
    }

    .settings-menu.position-top .mcp-submenu,
    .dropdown-menu.position-top .mcp-submenu,
    .model-dropdown.position-top .mcp-submenu {
        height: 100% !important;
    }

    .mcp-submenu {
        height: 100%;
    }

    .settings-menu.position-top .mcp-submenu,
    .dropdown-menu.position-top .mcp-submenu,
    .model-dropdown.position-top .mcp-submenu {
        height: 100% !important;
    }

    .settings-menu {
        max-height: 300px;
        transition: max-height 0.3s ease;
    }

    .settings-menu.position-top {
        bottom: 39px;
        transition: max-height 0.3s ease;
    }

    [data-theme="dark"] .files-modal {
        background-color: #1c1c1e;
    }

    [data-theme="dark"] .modal-header {
        background-color: #1c1c1e;
        border-bottom-color: #38383a;
    }

    [data-theme="dark"] .modal-title {
        color: #ffffff;
    }

    [data-theme="dark"] .close-modal-btn {
        color: #ffffff;
    }

    [data-theme="dark"] .modal-tabs {
        background-color: #1c1c1e;
        border-bottom-color: #38383a;
    }

    [data-theme="dark"] .tab-btn {
        background-color: #48484a;
        color: #8e8e93;
    }

    [data-theme="dark"] .tab-btn.active {
        color: #000000;
        background-color: #ffffff;
    }

    [data-theme="dark"] .modal-content {
        background-color: #1c1c1e;
    }

    [data-theme="dark"] .files-list {
        background-color: #191919;
    }

    [data-theme="dark"] .modal-file-item {
        background-color: #2c2c2e;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    [data-theme="dark"] .modal-file-title {
        color: #ffffff;
    }

    [data-theme="dark"] .modal-file-rating {
        color: #8e8e93;
    }

    [data-theme="dark"] .modal-file-name {
        color: #98989d;
    }

    [data-theme="dark"] .file-action-menu-trigger {
        color: #8e8e93;
    }

    .modal-overlay {
        background-color: rgba(0, 0, 0, 0.3);
        justify-content: stretch;
        align-items: stretch;
    }

    .files-modal {
        background-color: #f8f8f8;
        border-radius: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        display: flex;
        flex-direction: column;
        padding-top: env(safe-area-inset-top);
    }

    .modal-header {
        background-color: #f8f8f8;
        /* border-bottom: 1px solid #e5e5e5; */
        padding: 0;
        position: relative;
        min-height: 45px;
        justify-content: center;
        align-items: center;
    }

    .modal-title {
        font-size: var(--mobile-font-medium) !important;
        font-weight: var(--mobile-font-weight-semibold);
        color: #000000;
        text-align: center;
        margin: 0;
        line-height: var(--mobile-line-height-normal);
    }

    .close-modal-btn {
        position: absolute;
        left: 10px;
        /* top: 25px; */
        /* transform: translateY(-50%); */

        font-size: var(--mobile-font-medium);
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-modal-btn::before {
        content: '‹';
        font-size: var(--mobile-font-massive);
        font-weight: var(--mobile-font-weight-normal);
        line-height: var(--mobile-line-height-tight);
    }

    .close-modal-btn i {
        display: none;
    }

    .modal-tabs {
        background-color: #f8f8f8;
        /* border-bottom: 1px solid #e5e5e5; */
        padding: 8px 16px;
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
    }

    .modal-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex-shrink: 0;
        padding: 10px 18px;
        border: 1px solid #e7e7e7;
        font-size: var(--mobile-font-small);
        font-weight: var(--mobile-font-weight-medium);
        color: #8e8e93;
        cursor: pointer;
        border-radius: 20px;
        white-space: nowrap;
        min-width: fit-content;
        transition: none;
        line-height: var(--mobile-line-height-normal);
    }

    .tab-btn.active {
        color: #ffffff;
        background-color: #000000;
    }

    .tab-btn.active::after {
        display: none;
    }

    .modal-content {
        flex: 1;
        padding: 0;
        overflow-y: auto;
        background-color: #ffffff;
    }

    .files-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 8px;
        background-color: #f8f8f8;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        height: auto;
    }

    .modal-file-item {
        display: flex;
        align-items: center;
        padding: 16px;
        cursor: pointer;
        background-color: #ffffff;
        border-radius: 12px;
        position: relative;
        margin-bottom: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .modal-file-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .modal-file-item:active {
        background-color: #f5f5f5;
    }

    .modal-file-icon {
        margin-right: 16px;
        flex-shrink: 0;
    }

    .document-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .document-icon i {
        color: white;
        font-size: var(--mobile-font-large);
        line-height: var(--mobile-line-height-tight);
    }

    .modal-file-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .modal-file-title {
        font-weight: var(--mobile-font-weight-semibold);
        font-size: var(--mobile-font-medium);
        color: #1a1a1a;
        margin-bottom: 2px;
        line-height: var(--mobile-line-height-normal);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .modal-file-rating {
        font-size: var(--mobile-font-small);
        font-weight: var(--mobile-font-weight-medium);
        color: #666;
        margin-bottom: 4px;
        line-height: var(--mobile-line-height-normal);
    }

    .modal-file-name {
        font-weight: var(--mobile-font-weight-normal);
        font-size: var(--mobile-font-small);
        color: #888;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: var(--mobile-line-height-normal);
    }



    .file-action-menu-trigger {
        display: none !important;
    }

    [data-theme="dark"] .input-container {
        background-color: var(--background-color);
    }

    .messages-container {
        padding: var(--mobile-padding);
        /* padding-bottom: 80px; */
        max-width: 100%;
        /* height: calc(100vh - 80px); */
        height: 100dvh;
        box-sizing: border-box;
        overflow-x: hidden !important;
        word-break: break-word;
        /* iOS-specific scrolling improvements */
        -webkit-overflow-scrolling: touch;
        /* Prevent iOS bounce effect when at top/bottom */
        overscroll-behavior: contain;
    }
    

    .input-container.centered {
        display: none;
    }

    #input-container-bottom {
        display: block !important;
    }

    .input-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        z-index: 1000;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom);
        margin: 0;
    }
    .input-box {
        border-radius: 20px 20px 0 0;
    }
    /* .input-box {
        margin-bottom: 15px;
    } */

    .message {
        /* max-width: 90%; */
        padding: var(--mobile-message-padding) var(--mobile-padding);
        /* margin-left: 0; */
    }

    .model-dropdown {
        right: -14px;
        left: unset;
    }

    /* Mobile artifact popup styles */
    .superAgent-artifact-popup.side-view {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        z-index: 2000 !important;
        transform: none !important;
        transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        animation: slideInFromRight 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        border-radius: 0 !important;
        margin-top: 0 !important;
        border: none !important;

    }

    @keyframes slideInFromRight {
        0% {
            transform: translateX(100%) !important;
        }

        100% {
            transform: translateX(0) !important;
        }
    }

    .superAgent-artifact-popup.side-view.hiding {
        transform: translateX(100%) !important;
        opacity: 0;
    }

    .chat-artifact-wrapper.showing-artifact .chat-section {
        width: 100% !important;
    }

    .superAgent-artifact-popup.expanded,
    .superAgent-artifact-popup.fullscreen {
        width: 100% !important;
    }

    .search-results {
        overflow-x: hidden;
        white-space: wrap;
    }

    .file-list-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }

    .file-view-back-btn {
        display: flex !important;
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }

    .superAgent-artifact-popup .artifact-header {
        position: relative !important;
        justify-content: center !important; /* Keep title centered */
    }

    .superAgent-artifact-popup .artifact-header .file-view-back-btn {
        position: absolute !important;
        left: 8px !important; /* Position back button on the left */
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        z-index: 10 !important;
        order: -1 !important;
    }

    .superAgent-artifact-popup.mobile-fullscreen .artifact-header .file-view-back-btn {
        position: absolute !important;
        left: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        z-index: 10 !important;
    }

    .superAgent-artifact-popup .artifact-header .result-subtitle {
        text-align: center !important; /* Ensure title text is centered */
    }

    .files-container {
        grid-template-columns: 1fr;
        max-width: 100%;
width: -webkit-fill-available;
padding: var(--mobile-padding) 10px;
    }

    .file-list-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }

    .file-namess {
        width: 100%;
    }

    pre code.hljs {
        background-color: unset !important;
    }


    /* File Items */
    .file-item,
    .modal-file-item,
    .file-pill {
        cursor: pointer;
        position: relative;
        transition: background-color 0.2s ease;
    }

    .file-item:active,
    .modal-file-item:active,
    .file-pill:active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    [data-theme="dark"] .file-item:active,
    [data-theme="dark"] .modal-file-item:active,
    [data-theme="dark"] .file-pill:active {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .view-btn {
        display: none !important;
    }

    /* Layout and Container Styles */
 

    .desktop-header {
        display: none !important;
    }

    .browser-url-bar {
        padding: unset;
        background-color: unset;
        border: unset;
        border-radius: unset;
    }

    .greeting {
        flex-direction: column;
    }

    .greeting-card {
        padding: unset;
    }

    body .mobile-view .main-layout,
    .main-layout {
        margin-left: unset;
    }

    /* Chat Container */
    .chat-container {
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Removed duplicate header definition - using the updated one above */

    .chat-container-section {
        height: 100% !important;
        flex: 1;
        overflow-y: auto;
        padding-top: 40px;
        display: flex;
        flex-direction: column;
        padding-bottom: 128px;
    }

    /* Extra padding when files are uploaded */
    .chat-container-section.has-uploaded-files {
        padding-bottom: 200px;
    }

    .message {
        padding: var(--mobile-message-padding) var(--mobile-padding);
    }

    /* Dropdowns and Menus */
    .model-dropdown {
        right: -14px;
        left: unset;
        max-height: 300px;
    }

    .dropdown-menu.position-top,
    .model-dropdown.position-top {
        bottom: 40px;
    }

    .settings-menu {
        max-height: 300px;
        transition: max-height 0.3s ease;
    }

    .settings-menu.position-top {
        bottom: 39px;
        transition: max-height 0.3s ease;
    }

    /* Modal and Files */
    .modal-overlay {
        background-color: rgba(0, 0, 0, 0.3);
        justify-content: stretch;
        align-items: stretch;
    }

    .files-modal {
        background-color: #f8f8f8;
        border-radius: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        display: flex;
        flex-direction: column;
        padding-top: env(safe-area-inset-top);
    }

    /* File Options */
    .file-options-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        margin-left: 8px;
        cursor: pointer;
        color: #666;
        transition: all 0.2s ease;
        position: relative;
    }

    .file-share-icon {
        margin-left: auto;
    }

    /* Dark Theme Styles */
    [data-theme="dark"] .chat-container .chat-main-header {
        background: #1e1e1e;
        border-bottom: 1px solid #333333;
    }

    [data-theme="dark"] .input-container {
        background-color: var(--background-color);
    }

    /* Additional Components */
    .search-results {
        overflow-x: hidden;
        white-space: wrap;
    }

    .file-list-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }

    .files-container {
        grid-template-columns: 1fr;
    }

    .file-namess {
        width: 100%;
    }

    pre code.hljs {
        background-color: unset !important;
    }

    .file-view-back-btn {
        display: flex !important;
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }

    /* Hide settings sidebar text labels in mobile view, show only icons */
    body .settings-layout .sidebar nav ul li .sidebar-text,
    .settings-layout .sidebar nav ul li .sidebar-text,
    .sidebar nav ul li .sidebar-text {
        display: none;
    }
    
    /* Remove grey background from settings sidebar in mobile */
    body .settings-layout .sidebar {
        background: #ffffff;
        border-bottom: 1px solid #e0e0e0;
        padding: 0;
    }
    
    /* Ensure settings back button works properly on mobile */
    body .settings-layout .sidebar .settings-header .settings-back-button {
        pointer-events: auto;
        cursor: pointer;
        touch-action: manipulation;
        z-index: 1000;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        background: none;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure back button SVG doesn't interfere with clicks */
    body .settings-layout .sidebar .settings-header .settings-back-button svg {
        pointer-events: none;
        width: 24px;
        height: 24px;
    }
    
    /* Improve mobile settings navigation layout for equal spacing */
    body .settings-layout .sidebar nav ul {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 8px 12px;
        margin: 0;
    }
    
    /* Settings navigation items - equal spacing and better layout */
    body .settings-layout .sidebar nav ul li {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0;
        border-radius: 12px;
        margin: 0;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Settings icons centered and properly sized */
    body .settings-layout .sidebar nav ul li svg {
        margin: 0;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    /* Active state styling for mobile settings tabs */
    body .settings-layout .sidebar nav ul li.active {
        background: #84848429;
    }

    .uploaded-files-message {
        padding: 0px !important;
    }

    .uploaded-images-grid {
        gap: 8px;
        max-width: 100%;
    }

    .uploaded-file-item {
        padding: 1px 5px;
        min-height: 40px;
    }

    .uploaded-file-name {
        font-size: var(--mobile-font-small);
        font-weight: var(--mobile-font-weight-medium);
        line-height: var(--mobile-line-height-normal);
    }

        /* Mobile quick actions: Remove padding when showing external services in preview mode */
.showing-quick-action .artifact-content.preview-view {
    padding: 0px;
}
.terminal-monaco-editor{
    width: auto !important;
}

/* Hide mic button on mobile devices */
.mic-btn {
    display: none !important;
}
}



@media screen and (max-width: 480px) {
    .mcp-tools {
        height: calc(100% - 50px);
    }

    .settings-menu.position-top .mcp-tools,
    .dropdown-menu.position-top .mcp-tools,
    .model-dropdown.position-top .mcp-tools {
        height: calc(100% - 50px);
    }

    .mcp-submenu {
        height: 100%;
    }

    .settings-menu.position-top .mcp-submenu,
    .dropdown-menu.position-top .mcp-submenu,
    .model-dropdown.position-top .mcp-submenu {
        height: 100% !important;
    }

    .settings-menu {
        right: 0;
        max-height: 280px;
        transition: max-height 0.3s ease;
    }

    .settings-menu.position-top {
        bottom: 31px;
        transition: max-height 0.3s ease;
    }

    input-container.centered {
        display: none;
    }

    #input-container-bottom {
        display: block !important;
    }

    .message {
        /* max-width: 95%; */
        padding: 12px 16px;
        font-size: var(--mobile-font-small);
        line-height: var(--mobile-line-height-relaxed);
        /* margin-left: 0; */
    }



    .model-dropdown {
        right: -14px;
        left: unset;
    }

    /* Additional mobile artifact popup styles for smaller screens */
    .artifact-header {
        padding: 10px;
    }

    .artifact-content {
        padding: 8px;
    }

    .message {
        padding: 7px 12px;
        font-size: var(--mobile-font-large);
        line-height: var(--mobile-line-height-loose);
        max-width: calc(100% - 100px);
    }

    .input-area {
        padding: var(--mobile-padding);
        font-size: var(--mobile-font-large); /* 16px minimum to prevent iOS zoom */
        min-height: 48px; /* Enhanced touch target size for accessibility */
        line-height: var(--mobile-line-height-relaxed);
    }

    .model-dropdown {
        right: -14px;
        left: unset;
        max-height: 280px;
    }

    .dropdown-menu.position-top,
    .model-dropdown.position-top {
        bottom: 48px;
    }

    .settings-menu {
        right: 0;
        max-height: 280px;
        transition: max-height 0.3s ease;
    }

    .settings-menu.position-top {
        bottom: 31px;
        transition: max-height 0.3s ease;
    }

    .mcp-tools {
        height: calc(100% - 50px);
    }

    .settings-menu.position-top .mcp-tools,
    .dropdown-menu.position-top .mcp-tools,
    .model-dropdown.position-top .mcp-tools {
        height: calc(100% - 50px);
    }

    .mcp-submenu {
        height: 100%;
    }

    .settings-menu.position-top .mcp-submenu,
    .dropdown-menu.position-top .mcp-submenu,
    .model-dropdown.position-top .mcp-submenu {
        height: 100% !important;
    }


}

@media (min-width: 768px) {
    .mobile-view {
        display: none !important;
    }
    .centered-inner-container {
        display: flex;
        flex-direction: column;
    }

    .greeting-container {
        order: 1;
    }

    .input-container {
        order: 2;
    }

    .quick-actions-container:not(.mobile-quick-actions) {
        order: 3;
    }
    .mobile-quick-actions {
        display: none !important;
    }

    .file-options-icon,
    .file-options-popup {
        display: none !important;
    }

    .file-options-icon,
    .file-options-popup {
        display: none !important;
    }

    .chat-options-btn {
        display: none !important;
    }

    .modal-file-item:hover {
        background-color: #f1f3f4;
    }

    .tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #1a73e8;
    }

    .file-view-back-btn {
        display: none !important;
    }

        .file-item:hover .view-btn,
        .modal-file-item:hover .view-btn {
            display: flex;
        }

        .file-options-icon,
        .file-options-popup {
            display: none !important;
        }

        .chat-options-btn {
            display: none !important;
        }

        .file-view-back-btn {
            display: none !important;
        }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #1a73e8;
        }

        .modal-file-item:hover {
            background-color: #f1f3f4;
        }
}



@media screen and (max-height: 480px) {

    .dropdown-menu,
    .model-dropdown {
        max-height: 200px;
    }

    .settings-menu {
        max-height: 200px;
    }

    /* Consolidated dropdown and settings menu max-height above */
    
    /* Z-index hierarchy for mobile selectors and dropdowns */
    .maximize-btn {
        z-index: var(--z-maximize-btn) !important; /* Keep button behind other UI elements */
    }
    
    /* Base z-index for all selectors and dropdowns (above maximize button) */
    .select-agent-box,
    .model-dropdown,
    .model-selector,
    .agent-selector,
    .chat-mode-selector,
    .settings-menu {
        z-index: var(--z-selector-inactive) !important;
    }
    
    /* Higher z-index for active/open selectors */
    .select-agent-box.show,
    .model-dropdown.show,
    .settings-menu.active + .settings-menu {
        z-index: var(--z-selector-active) !important;
    }
    
    /* Prevent overlapping between selectors when one is active
     * Uses modern :has() pseudo-class with fallbacks for older browsers */
    body:has(.select-agent-box.show) .model-selector {
        z-index: var(--z-selector-reduced) !important;
    }
    
    body:has(.model-dropdown.show) .select-agent-box {
        z-index: var(--z-selector-reduced) !important;
    }
    
    body:has(.settings-menu:not(.display\\:none)) .model-selector,
    body:has(.settings-menu:not(.display\\:none)) .select-agent-box {
        z-index: var(--z-selector-reduced) !important;
    }
    
    /* Fallback for browsers that don't support :has() pseudo-class
     * These rules provide basic z-index management without context awareness */
    @supports not (selector(:has(*))) {
        .select-agent-box.show,
        .model-dropdown.show,
        .settings-menu.active + .settings-menu {
            z-index: calc(var(--z-selector-active) + 1) !important;
        }
    }
}

@media screen and (max-height: 600px) {
    .settings-menu {
        max-height: 250px;
    }

    .dropdown-menu,
    .model-dropdown {
        max-height: 250px;
    }
}
