html, body {
            margin: 0;
            padding: 0;
            height: 100%;
            overflow: hidden;
            line-height: 1;
        }
        
        main {
            margin: 0 !important;
            padding: 0 !important;
        }
        
        .split {
            display: flex;
            flex-direction: row;
            height: 100%;
        }
        
        #split-0, #split-1, #split-2 {
            height: 100%;
        }

        .bg-staged {
            background-color: lightcoral !important;
        }

        .bg-hidden {
            background-color: #FFCCCC !important;
        }

        .gutter {
            width: 17px !important;
            background-color: var(--falcon-gray-200);
            background-repeat: no-repeat;
            background-position: 50%;
        }

        .gutter.gutter-horizontal {
            background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
            cursor: col-resize;
        }

        .treeview-text {
            font-weight: 400 !important;
            font-family: var(--pssfontfamily) !important;
            font-size: 0.9rem !important;
            line-height: 1.4 !important;
            padding-top: 2px !important;
            padding-bottom: 2px !important;
        }

        .treeview-text.treeitem-selected {
            font-weight: 600 !important;
        }


        .treeview1 {
            overflow: auto !important;
        }

        .collapsing {
            -webkit-transition: none;
            transition: none;
            display: none;
        }



    .gsc-control-cse
    {
        width:100% !important;
        background-color: var(--falcon-gray-300) !important;
        border-left: none !important;
        border-top: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--falcon-gray-400) !important;
        padding-bottom: 4px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* AI Assistant Toggle Button */
    .ai-toggle-btn {
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 102, 0, 0.8); /* pssorange with 50% transparency */
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        cursor: pointer;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        transition: all 0.3s ease;
    }
    
    .ai-toggle-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }
    
    .ai-toggle-btn.active {
        background: rgba(255, 102, 0, 0.8); /* pssorange with 50% transparency */
        opacity: 0.8;
    }
    .aiquestionbox {
        background-color: var(--falcon-gray-200);        
    }
    
    #quickAiSearch:focus {
        outline: none !important;
        box-shadow: none !important;
    }
    
    #quickAiSearchBtn {
        background-color: var(--pssorange) !important;
        border-color: var(--pssorange) !important;
    }
    
    #quickAiSearchBtn:hover {
        background-color: var(--pssorange) !important;
        border-color: var(--pssorange) !important;
        opacity: 0.9;
    }
    
    #quickAiSearchBtn:focus,
    #quickAiSearchBtn:active {
        background-color: var(--pssorange) !important;
        border-color: var(--pssorange) !important;
        box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25) !important;
    }
    
    /* Mobile TOC Toggle Button */
    #tocToggleBtn {
        display: none;
        position: fixed;
        bottom: 15px;
        left: 15px;
        z-index: 1001;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: rgba(255, 102, 0, 0.8); /* pss-orange with 50% transparency */
        color: white;
        border: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        font-size: 24px;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    #tocToggleBtn:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    /* Close button for TOC panel on mobile */
    #tocMobileCloseBtn {
        display: none !important;
        position: fixed;
        bottom: 15px;
        right: 20px;
        z-index: 10000;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--falcon-danger);
        color: white;
        border: 2px solid white;
        font-size: 20px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    #aiMobileCloseBtn {
        display: none !important;
        position: fixed;
        bottom: 80px;
        right: 20px;
        z-index: 10000;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--falcon-danger);
        color: white;
        border: 2px solid white;
        font-size: 20px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    /* Mobile Responsive Adjustments */
    @media (max-width: 768px) {
        /* Add extra top padding to logo on mobile */
        #split-0 > .flex-grow-0.bg-200 {
            padding-top: 1.5rem !important;
        }
        
        /* Hide TOC by default on mobile - full width */
        #split-0 {
            position: fixed !important;
            left: -100%;
            top: 82px;
            height: calc(100vh - 82px);
            width: 100vw;
            z-index: 1004;
            transition: left 0.3s ease;
            box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        }
        
        #split-0.mobile-visible {
            left: 0 !important;
        }
        
        /* Show TOC toggle button on mobile */
        #tocToggleBtn {
            display: flex;
        }
        
        /* Close button for TOC on mobile */
        #tocMobileCloseBtn {
            display: flex !important;
            opacity: 0;
            pointer-events: none;
        }
        
        #tocMobileCloseBtn.visible {
            opacity: 1;
            pointer-events: auto;
        }
        
        #tocMobileCloseBtn:hover {
            background: #c0392b;
        }
        
        /* Close button for AI panel on mobile */
        #aiMobileCloseBtn {
            display: flex !important;
            opacity: 0;
            pointer-events: none;
        }
        
        #aiMobileCloseBtn.visible {
            opacity: 1;
            pointer-events: auto;
        }
        
        #aiMobileCloseBtn:hover {
            background: #c0392b;
        }
        
        /* Backdrop for mobile overlays */
        .mobile-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.5);
            z-index: 1003;
        }
        
        .mobile-backdrop.active {
            display: block;
        }
        
        /* Adjust AI toggle button position on mobile */
        .ai-toggle-btn {
            bottom: 15px;
            right: 15px;
            width: 56px;
            height: 56px;
            font-size: 24px;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        
        /* Hide AI button when TOC is visible on mobile */
        .ai-toggle-btn.mobile-hidden {
            opacity: 0;
            pointer-events: none;
            transform: scale(0.8);
        }
        
        /* Disable Split.js on mobile */
        .gutter {
            display: none !important;
        }
        
        /* AI Assistant as bottom sheet on mobile - full height */
        #split-2 {
            position: fixed !important;
            left: 0;
            right: 0;
            bottom: 0;
            height: calc(100vh - 82px);
            width: 100vw;
            z-index: 1005;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
        }
        
        #split-2.mobile-visible {
            transform: translateY(0) !important;
        }
        
        /* Make main content full width on mobile */
        .split {
            flex-direction: column !important;
        }
        
        #split-1 {
            width: 100% !important;
            flex: 1 !important;
        }
    }