/* Default (Light Mode) */
.main-layout .sidebar {
    position: static;
    /* Match the active-filters-bar reserved height in main-content-area so
       the sidebar's top aligns with the tile grid's top. Hidden/zeroed on
       mobile via the media query in tiles.css that resets the variable. */
    margin-top: var(--filters-bar-reserved);
    width: 16rem;
    flex-shrink: 0;
    border: 1px solid #e8e8e8;
    border-radius: 1rem;
    background: transparent;
    height: fit-content;
    overflow-y: visible;
    scrollbar-width: none; /* Firefox - hide scrollbar */
}

/* Webkit scrollbar styling (Chrome/Safari/Edge) - hide scrollbar */
.main-layout .sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-content {
    padding: 0.75rem !important;
}

.sidebar-content * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.sidebar-divider {
    height: 1px;
    margin: 0;
    background: rgba(156, 163, 175, 0.1);
}

.main-layout .sidebar .filter-section {
    padding-left: 5px;
    margin: 0 !important;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

/* First section should align with main content */
.main-layout .sidebar .filter-section:first-child {
    padding-top: 0 !important;
}

/* Adjust first section title to align with main content */
.main-layout .sidebar .filter-section:first-child .filter-title {
    margin-top: 0 !important;
}

/* Override the last section to have no bottom padding */
.main-layout .sidebar .filter-section:last-of-type {
    padding-bottom: 0 !important;
}

/* Add small gaps within sections where needed */
.filter-section .space-y-1\.5 > * + * {
    margin-top: 0.5rem !important;
}

.filter-section .space-y-2 > * + * {
    margin-top: 0.375rem !important;
}

.filter-section .space-y-3 > * + * {
    margin-top: 0.6rem !important;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--app-text);
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.025em;
}

.filter-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem !important;
}

.filter-title-row .filter-title {
    margin-bottom: 0 !important;
}


.filter-sublabel {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--app-text);
    margin-bottom: 0.4rem;
}

.links-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--app-text) !important;
    background: rgba(245, 245, 245, 0.8) !important;
    border: 1px solid rgba(156, 163, 175, 0.4);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-link:hover {
    background: rgba(229, 231, 235, 0.9) !important;
    border-color: rgba(156, 163, 175, 0.8) !important;
    color: var(--app-text) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-link-text {
    flex: 1;
}

.sidebar-link-icon {
    width: 0.9rem;
    height: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.sidebar-link:hover .sidebar-link-icon {
    opacity: 0.8;
}

.category-radio {
    height: 1rem;
    width: 1rem;
    color: rgb(64, 64, 64);
    border-color: rgb(209, 213, 219);
    outline: none;
}

.category-radio:checked {
    background-color: var(--app-accent);
    border-color: var(--app-accent);
}

.category-label {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--app-text);
    cursor: pointer;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    height: 1rem;
    width: 1rem;
    color: rgb(156, 163, 175);
}

.search-input {
    width: 100%;
    padding-left: 2.5rem;
    padding-right: 1rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    font-size: 0.75rem;
    border: 1px solid rgba(229, 229, 229, 0.6);
    border-radius: 0.5rem;
    background: transparent;
    color: rgb(23, 23, 23);
    transition: all 0.2s;
    outline: none;
}

.search-input:focus {
    border-color: rgb(156, 163, 175);
    box-shadow: 0 0 0 2px rgba(64, 64, 64, 0.2);
}

.search-input::placeholder {
    color: rgb(156, 163, 175);
}

.filter-select {
    width: 100%;
    padding: 0.3rem 1.75rem 0.3rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid rgba(229, 229, 229, 0.8);
    border-radius: 0.5rem;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232e2e2e' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat right 0.4rem center;
    background-size: 16px;
    color: var(--app-text);
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s;
    outline: none;
}

/* Custom multiselect dropdown */
.custom-multiselect-wrapper {
    position: relative;
    width: 100%;
}

.custom-multiselect-trigger {
    width: 100%;
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid rgba(229, 229, 229, 0.8);
    border-radius: 0.5rem;
    background: white;
    color: var(--app-text);
    transition: all 0.2s;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.custom-multiselect-trigger:hover {
    border-color: rgb(156, 163, 175);
}

.custom-multiselect-trigger.active {
    border-color: rgb(156, 163, 175);
    box-shadow: 0 0 0 2px rgba(64, 64, 64, 0.2);
}

.custom-multiselect-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-multiselect-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.custom-multiselect-trigger.active .custom-multiselect-arrow {
    transform: rotate(180deg);
}

.custom-multiselect-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(229, 229, 229, 0.8);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    flex-direction: column;
}

.custom-multiselect-dropdown.active {
    display: flex;
}

.multiselect-search-wrapper {
    padding: 0.35rem 0.35rem 0;
    flex-shrink: 0;
}

.multiselect-search-input {
    width: 100%;
    padding: 0.28rem 0.5rem;
    font-size: 0.73rem;
    border: 1px solid rgba(229, 229, 229, 0.8);
    border-radius: 0.375rem;
    background: transparent;
    color: var(--app-text);
    outline: none;
    box-sizing: border-box;
}

.multiselect-search-input:focus {
    border-color: rgb(156, 163, 175);
    box-shadow: 0 0 0 2px rgba(64, 64, 64, 0.15);
}

.multiselect-search-input::placeholder {
    color: rgb(156, 163, 175);
}

.custom-multiselect-options {
    padding: 0.25rem;
    overflow-y: auto;
    flex: 1;
}

.custom-multiselect-option {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background 0.15s;
    font-size: 0.75rem;
}

.custom-multiselect-option:hover,
.custom-multiselect-option:focus {
    background: rgba(15, 96, 217, 0.1);
    outline: none;
}

.custom-multiselect-option input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.custom-multiselect-option label {
    cursor: pointer;
    flex: 1;
    user-select: none;
}

.custom-multiselect-option.all-option {
    border-bottom: 1px solid rgba(229, 229, 229, 0.8);
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
}

.filter-select:focus {
    border-color: rgb(156, 163, 175);
    box-shadow: 0 0 0 2px rgba(64, 64, 64, 0.2);
}


.filter-checkbox:checked {
    background-color: var(--app-accent);
    border-color: var(--app-accent);
}

/* Filter Checkboxes */
.filter-checkbox {
    border-radius: 0.375rem;
    border-color: rgb(209, 213, 219);
    color: rgb(64, 64, 64);
    outline: none;
}

.filter-checkbox-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(64, 64, 64);
	margin-left: 0.75rem;
}

label[for="iconsFilterCheckbox"],
label[for="m-iconsFilterCheckbox"] {
    margin-bottom: 6px;
}

.slider-label {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Bookmark Buttons */
.bookmark-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.bookmark-button-with-text {
    display: flex;
    align-items: center;
    gap: 0.4rem !important;
    padding: 0.4rem 0.5rem !important;
    background: rgba(245, 245, 245, 0.8) !important;
    border: 1px solid rgba(209, 213, 219, 0.8) !important;
	border-radius: 0.5rem !important;
    color: var(--app-text) !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 0.75rem !important;
    font-weight: 500;
    transition: all 0.2s;
    text-align: left;
    justify-content: flex-start;
}

.bookmark-button-with-text:hover {
    background: rgba(229, 231, 235, 0.9) !important;
    border-color: rgba(156, 163, 175, 0.8) !important;
    color: var(--app-text) !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

.bookmark-button-with-text svg {
    width: 0.9rem !important;
    height: 0.9rem !important;
    flex-shrink: 0;
}

.bookmark-button-text {
    white-space: nowrap;
}


.range-slider-container {
    margin-top: 0.5rem;
}

.single-dual-range {
    position: relative;
    width: 100%;
    height: 20px;
    margin: 0.5rem 0;
}

.range-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    top: 8px;
}

.range-fill {
    position: absolute;
    height: 4px;
    background: var(--app-accent);
    border-radius: 2px;
    top: 8px;
}

.range-thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--app-accent);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    top: 2px;
    transform: translateX(-50%);
}

.range-thumb:hover {
    background: color-mix(in srgb, var(--app-accent) 80%, black);
}

.range-thumb:active {
    transform: translateX(-50%) scale(1.1);
}

.range-display {
    margin-top: 0.2rem !important;
    text-align: center;
    line-height: 1.0;
}

.range-value {
    font-size: 0.75rem;
    color: var(--app-text-subtle);
    font-weight: 500;
}

.mobile-controls, .mobile-filter-overlay {
    display: none;
}

/* Dark Mode */
html[data-color-scheme='dark'] {

    .main-layout .sidebar {
        border-color: rgba(64, 64, 64, 0.4);
    }

    .mobile-filter-btn {
        background: rgba(28, 32, 38, 0.97);
        border-color: rgba(255, 255, 255, 0.18);
        color: rgba(245, 245, 245, 0.8);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.2);
    }

	.sidebar-divider {
        background: rgba(64, 64, 64, 0.4);
    }
	
	.filter-title {
		color: rgb(245, 245, 245);
	}
	
	.category-radio:checked {
		background-color: var(--app-accent);
		border-color: var(--app-accent);
	}
	
	.filter-checkbox:checked {
		background-color: var(--app-accent);
		border-color: var(--app-accent);
	}
	
    .bookmark-button-with-text {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: rgb(245, 245, 245) !important;
        box-shadow: none !important;
    }

    .bookmark-button-with-text:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.18) !important;
        color: rgb(245, 245, 245) !important;
        box-shadow: none !important;
        transform: none !important;
    }
	
    .filter-sublabel {
        color: rgb(163, 163, 163);
    }
    
    .category-label,
    .filter-checkbox-label {
        color: rgb(245, 245, 245);
    }
    
    .filter-select {
        background-color: rgb(38, 38, 38);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23f5f5f5' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
        color: rgb(245, 245, 245);
        border-color: rgba(64, 64, 64, 0.6);
    }

    /* Custom multiselect dropdown dark mode */
    .multiselect-search-input {
        background: rgb(28, 28, 28);
        color: rgb(245, 245, 245);
        border-color: rgba(64, 64, 64, 0.6);
    }

    .custom-multiselect-option:focus {
        background: rgba(15, 96, 217, 0.2);
    }

    .custom-multiselect-trigger {
        background: rgb(38, 38, 38);
        color: rgb(245, 245, 245);
        border-color: rgba(64, 64, 64, 0.6);
    }

    .custom-multiselect-dropdown {
        background: rgb(38, 38, 38);
        border-color: rgba(64, 64, 64, 0.6);
    }

    .custom-multiselect-option {
        color: rgb(245, 245, 245);
    }

    .custom-multiselect-option:hover,
    .custom-multiselect-option:focus {
        background: rgba(15, 96, 217, 0.2);
    }

    .custom-multiselect-option.all-option {
        border-bottom-color: rgba(64, 64, 64, 0.6);
    }

    .sidebar-link {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: rgb(245, 245, 245) !important;
    }

    .sidebar-link:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.18) !important;
        color: rgb(245, 245, 245) !important;
    }

    .sidebar-link-text {
        color: rgb(245, 245, 245) !important;
    }

    .sidebar-link-icon {
        color: rgb(245, 245, 245) !important;
        opacity: 0.7 !important;
    }

    .sidebar-link:hover .sidebar-link-icon {
        opacity: 0.9 !important;
    }

    .search-input {
        color: rgb(245, 245, 245);
    }

    /* Mobile dark mode */
    .mobile-control-label {
        color: rgb(245, 245, 245);
    }

    .mobile-sort-select {
        background: rgb(38, 38, 38);
        color: rgb(245, 245, 245);
        border-color: rgba(64, 64, 64, 0.6);
    }

    .search-input-wrapper .search-input {
        background: rgb(38, 38, 38);
        color: rgb(245, 245, 245);
        border-color: rgba(64, 64, 64, 0.6);
    }

    .mobile-filter-content {
        background: rgb(23, 23, 23);
    }

    .mobile-filter-header {
        background: rgb(23, 23, 23);
        border-color: rgba(64, 64, 64, 0.6);
    }

    .mobile-filter-title {
        color: rgb(245, 245, 245);
    }

    .mobile-filter-apply-btn {
        background: var(--app-accent);
        color: white;
    }

    .mobile-filter-apply-btn:hover {
        background: color-mix(in srgb, var(--app-accent) 80%, black);
    }

    .mobile-filter-clear-btn {
        color: rgba(245, 245, 245, 0.72);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .mobile-filter-clear-btn:hover {
        background: rgba(255, 255, 255, 0.06);
        color: rgba(245, 245, 245, 0.95);
        border-color: rgba(255, 255, 255, 0.32);
    }

    .range-value {
        color: rgb(156, 163, 175);
    }

    .range-track {
        background: rgba(64, 64, 64, 0.6);
    }
	
}

/* Affiliate disclaimer tag */
.sidebar-content .affiliate-disclaimer-tag {
    display: flex;
    width: fit-content;
    margin-top: 8px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 5px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #545454;
    font-size: 0.625rem;
    font-weight: 500;
    cursor: default;
    user-select: none;
    letter-spacing: 0.01em;
}

.affiliate-disclaimer-tag svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--app-accent);
}

html[data-color-scheme='dark'] .affiliate-disclaimer-tag {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Non-mobile: slightly reduced padding on controls */
@media (min-width: 769px) {
    .sidebar-link {
        padding: 0.28rem 0.5rem !important;
    }

    .search-input {
        padding-top: 0.32rem;
        padding-bottom: 0.32rem;
    }

    .filter-select {
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }

    .custom-multiselect-trigger {
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }

}

/* 1080p screens */
@media (max-width: 1080px) {

    .filter-title {
        font-size: 0.82rem;
    }
	
    .sidebar-content {
        padding: 0.7rem !important;
    }

    .main-layout .sidebar .filter-section {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Add small gaps within sections where needed */
    .filter-section .space-y-1\.5 > * + * {
        margin-top: 0.3rem !important;
    }
	
	.sidebar-link, .bookmark-button-with-text {
        font-size: 0.66rem !important;
    }

}

/* Mobile (768px and below) */
@media (max-width: 768px) {

    /* Hide main sidebar on mobile */
    .main-layout .sidebar {
        display: none;
    }

    /* Hide multiselect dropdowns in mobile overlay */
    .mobile-filter-content .custom-multiselect-wrapper {
        display: none;
    }

    /* Hide all bookmark-related elements on mobile */
    .bookmark-buttons-grid,
    #shareBookmarksButton,
    #deleteBookmarksButton,
    #bookmarksFilterCheckbox,
    #bookmarksFilterCheckbox + .filter-checkbox-label {
        display: none !important;
    }

    /* Hide bookmark section title if it has bookmark buttons */
    .filter-section:has(.bookmark-buttons-grid) {
        display: none !important;
    }
    
    /* Show mobile controls */
    .mobile-controls {
        display: block;
        padding: 1rem 0;
        margin-bottom: 0;
    }
    
    .mobile-controls-row {
        display: flex;
        gap: 1rem;
        align-items: flex-end;
    }
    
    .mobile-sort-container,
    .mobile-search-container {
        flex: 1;
    }
    
    .mobile-control-label {
        display: block;
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--app-text);
        margin-bottom: 0.4rem;
    }
    
    .mobile-sort-select {
        width: 100%;
        padding: 0.45rem 0.5rem;
        font-size: 0.75rem;
        border: 1px solid rgba(229, 229, 229, 0.8);
        border-radius: 0.5rem;
        background: white;
        color: var(--app-text);
        outline: none;
    }
    
    .search-input-wrapper {
        position: relative;
    }
    
    .search-input-wrapper .search-icon {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        height: 1rem;
        width: 1rem;
        color: rgb(156, 163, 175);
        z-index: 2;
    }
    
    .search-input-wrapper .search-input {
        width: 100%;
        padding-left: 2.5rem;
        padding-right: 1rem;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
        font-size: 0.75rem;
        border: 1px solid rgba(229, 229, 229, 0.8);
        border-radius: 0.5rem;
        background: white;
        color: rgb(23, 23, 23);
        outline: none;
    }
    
    .slider-filter {
        display: none;
    }

    /* Mobile filter button - floating ghost circle */
    .mobile-filter-btn {
        position: fixed;
        bottom: 1.5rem;
        left: 1.5rem;
        z-index: 1000;
        width: 3.75rem;
        height: 3.75rem;
        background: rgba(247, 247, 247, 0.97);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #374151;
        border: 1px solid rgba(0, 0, 0, 0.18);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
        cursor: pointer;
        transition: box-shadow 0.15s ease, border-color 0.15s ease;
    }

    .mobile-filter-btn:active {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .mobile-filter-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    /* Mobile filter overlay */
    .mobile-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        display: none;
        align-items: flex-end;
    }
    
    .mobile-filter-overlay.active {
        display: flex;
    }
    
    .mobile-filter-content {
        background: white;
        width: 100%;
        max-height: 80vh;
        border-radius: 1rem 1rem 0 0;
        overflow: hidden;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-filter-overlay.active .mobile-filter-content {
        transform: translateY(0);
    }
    
    .mobile-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(229, 229, 229, 0.8);
        background: white;
    }
    
    .mobile-filter-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--app-text);
        margin: 0;
    }
    
    .mobile-filter-apply-btn {
        background: var(--app-accent);
        color: white;
        border: none;
        font-size: 0.78rem;
        font-weight: 600;
        padding: 0.5rem 1.25rem;
        cursor: pointer;
        border-radius: 0.5rem;
        transition: background 0.15s;
    }

    .mobile-filter-apply-btn:hover {
        background: color-mix(in srgb, var(--app-accent) 80%, black);
    }

    .mobile-filter-header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-filter-clear-btn {
        background: transparent;
        color: var(--app-text-subtle);
        border: 1px solid rgba(0, 0, 0, 0.18);
        font-size: 0.78rem;
        font-weight: 500;
        padding: 0.5rem 0.9rem;
        cursor: pointer;
        border-radius: 0.5rem;
        transition: background 0.15s, color 0.15s, border-color 0.15s;
    }

    .mobile-filter-clear-btn:hover {
        background: rgba(0, 0, 0, 0.04);
        border-color: rgba(0, 0, 0, 0.3);
    }

    #mobileFilterSections {
        padding: 1rem 1.5rem;
        max-height: calc(80vh - 5rem);
        overflow-y: auto;
    }

    /* Bump mobile filter overlay typography */
    #mobileFilterSections .filter-title {
        font-size: 0.95rem;
    }

    #mobileFilterSections .filter-sublabel,
    #mobileFilterSections .filter-checkbox-label,
    #mobileFilterSections .category-label {
        font-size: 0.85rem;
    }

    #mobileFilterSections .filter-select {
        font-size: 0.85rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

}