* {
    font-family: 'Bahnschrift', system-ui, -apple-system, sans-serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

input,
textarea,
select,
[contenteditable="true"] {
    cursor: text;
}

.fa,
.fas,
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

.far,
.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

:root {
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --load-progress: 0;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);

    --bg-main: #05060a;
    --bg-glass: rgba(23, 24, 34, 0.85);
    --bg-hover: rgba(99, 109, 184, 0.14);
    --text-1: #f5f6ff;
    --text-2: #d5d7e2;
    --text-3: #8f92a3;
    --accent: #6b6ff5;
    --accent-2: #5ad4ff;
    --success: #10b981;
    --warning: #fbbf24;
    --error: #ef4444;
    --border: rgba(255, 255, 255, 0.06);

    --blur-light: blur(8px);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.2s ease;
}

html,
body {
    background: radial-gradient(circle at 30% 20%, rgba(47, 58, 120, 0.22), transparent 28%), radial-gradient(circle at 80% 10%, rgba(39, 118, 184, 0.12), transparent 32%), linear-gradient(135deg, #040510 0%, #090a14 50%, #0d0e18 100%);
    color: var(--text-1);
    overflow-x: hidden;
    height: 100vh;
    height: 100dvh;
    overscroll-behavior: none;
    min-height: 100%;
    background-color: var(--bg-main);
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.Loading {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(107, 111, 245, 0.14), rgba(3, 4, 10, 0.95)), radial-gradient(circle at 80% 80%, rgba(22, 64, 112, 0.18), rgba(3, 4, 10, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.LoadingContent {
    text-align: center;
    padding: var(--space-5);
    background: linear-gradient(145deg, rgba(13, 14, 22, 0.92), rgba(6, 7, 14, 0.92));
    border-radius: 18px;
    border: 1px solid rgba(91, 99, 177, 0.45);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.LoadingTitle {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: var(--space-3);
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, #a5b4fc, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes pulseCore {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes rotateRing {
    to { transform: rotate(360deg); }
}

@keyframes sweep {
    0%   { stroke-dashoffset: 140; }
    50%  { stroke-dashoffset: 80; }
    100% { stroke-dashoffset: 140; }
}

.LoadingSpinnerLarge {
    position: relative;
    width: 96px;
    height: 96px;
    margin: var(--space-4) auto;
    display: grid;
    place-items: center;
}

.LoadingSpinnerLarge::before,
.LoadingSpinnerLarge::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.LoadingSpinnerLarge::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 60%);
    filter: blur(10px);
    animation: pulseCore 2s ease-in-out infinite;
}

.LoadingSpinnerLarge::after {
    background: conic-gradient(from 90deg, rgba(99, 102, 241, 0.9), rgba(96, 165, 250, 0.35), rgba(139, 92, 246, 0.65), rgba(99, 102, 241, 0.9));
    mask: radial-gradient(circle 48px, transparent 62%, black 64%);
    animation: rotateRing 2.2s linear infinite;
    opacity: 0.9;
}

.LoadingSpinnerLarge svg {
    width: 64px;
    height: 64px;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.45));
}

.LoadingSpinnerLarge circle {
    fill: none;
    stroke: url(#loadingGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 276;
    stroke-dashoffset: calc(276 - (var(--load-progress, 0) / 100) * 276);
    transition: stroke-dashoffset 0.35s ease, stroke 0.35s ease;
}

.SidebarHeader {
    padding: var(--space-3) var(--space-4) var(--space-3);
    border-bottom: none;
    background: rgba(255, 255, 255, 0.01);
    flex-shrink: 0;
}


.LoadingSpinnerLarge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #ffffff 0%, #e0e0ff 50%, #a0a0ff 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: dotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(99, 102, 241, 0.6);
    z-index: 2;
}

.LoadingProgress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: var(--space-3);
}

.LoadingProgressBar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.3s ease;
}

.Sidebar {
    width: 345px;
    background: linear-gradient(180deg, rgba(10,11,18,0.96), rgba(8,9,16,0.98));
    backdrop-filter: var(--blur-light);
    border-right: 1px solid rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    will-change: transform;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
    min-height: 0;
    z-index: 1202;
}

.SidebarScrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1040;
    display: none;
}

.SidebarScrim.visible {
    opacity: 1;
    pointer-events: auto;
    display: block;
    z-index: 1300;
}

.MobileMenuButton {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(23, 24, 34, 0.95), rgba(15, 16, 26, 0.95));
    color: var(--text-1);
    border-radius: 999px;
    padding: 10px 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(99, 102, 241, 0.18);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1201;
    pointer-events: auto;
}

.MobileMenuButton:active {
    transform: translateY(1px);
}

.MobileMenuIcon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 22px;
}

.MobileMenuIcon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--text-1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open .MobileMenuIcon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.menu-open .MobileMenuIcon span:nth-child(2) {
    opacity: 0;
}

body.menu-open .MobileMenuIcon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.SidebarClose {
    display: none;
}

.SidebarBrandBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    width: 100%;
    flex-wrap: nowrap;
}

.BrandLeft {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
    flex: 1 1 auto;
}

.BrandLogoLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.SidebarLogo.Small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    filter: drop-shadow(0 8px 18px rgba(99, 102, 241, 0.35));
}

.BrandText {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.BrandTextLink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none !important;
    cursor: pointer;
}

.BrandTextLink:hover,
.BrandTextLink:focus,
.BrandTextLink:active {
    text-decoration: none !important;
}

.BrandTitle {
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.BrandSub {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.SidebarSearch {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    flex-shrink: 0;
    background: transparent;
}

.SearchContainer {
    position: relative;
}

.SearchInput,
.TopSearchInput {
    width: 100% !important;
    padding: 12px 12px 12px 40px !important;
    background: rgba(26, 28, 42, 0.95) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    border-radius: 12px !important;
    color: var(--text-1) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    outline: none;
    transition: var(--transition);
}

.SearchInput:focus,
.TopSearchInput:focus {
    background: rgba(30, 32, 48, 0.98) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

.TopSearchInput::placeholder {
    color: #d6dbf5;
    opacity: 0.9;
}

.SearchIcon,
.TopSearchIcon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text-3) !important;
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.ClassList .recyclerviewport {
    overflow-y: auto;
}

.ClassList .recycleractive {
    overflow: visible;
}

.ClassList {
    flex: 1;
    scroll-behavior: smooth;
    overflow-y: auto;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
    width: 100%;
    position: relative;
    padding: var(--space-2) var(--space-3) var(--space-2);
    display: block;
    background: transparent;
}

.ClassList>div {
    width: 100%;
}

.ClassList > .RecyclerViewport {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.ClassItem {
    padding: 12px 20px !important;
    cursor: pointer;
    font-size: 14px !important;
    color: var(--text-2) !important;
    border-left: 3px solid transparent;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center;
    min-height: 48px;
    height: 48px;
    line-height: 1.2;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.ClassItem:hover {
    background: rgba(99,102,241,0.08) !important;
    color: var(--text-1) !important;
    border-left-color: transparent !important;
}

.ClassItem.Active {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(99,102,241,0.06)) !important;
    color: var(--text-1) !important;
    border-left-color: transparent !important;
    font-weight: 600 !important;
    box-shadow: inset 0 0 0 1px rgba(99,102,241,0.35), 0 10px 28px rgba(99, 102, 241, 0.18);
}

.SidebarFooter {
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(255, 255, 255, 0.01);
    flex-shrink: 0;
    font-weight: 400;
}

.SidebarFooter span {
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
}

.SidebarFooter span b {
    font-weight: 700;
}

.Notice {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.Notice.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-left: auto;
}

.MainContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    max-width: 100vw;
    min-width: 0;
    position: relative;
}

.ContentHeader {
    padding: var(--space-5);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: linear-gradient(180deg, rgba(17, 18, 28, 0.82), rgba(12, 12, 20, 0.9));
    backdrop-filter: var(--blur-light);
    position: relative;
    z-index: 2;
}

.TopBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.TopLeft {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    min-width: 0;
}



.BrandLogoLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.SidebarLogo.Small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.Breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-2);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.BreadcrumbPart {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.BreadcrumbDivider {
    color: var(--text-3);
}

.TopActions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-content: flex-end;
}

.MobileBrand {
    display: none;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.MobileBrandLogo {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.25);
}

.MobileBrandText {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.MobileBrandTitle {
    font-weight: 800;
    font-size: 13px;
    color: var(--text-1);
    letter-spacing: 0.2px;
}

.MobileBrandSub {
    font-weight: 600;
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.MobileHeaderRow {
    display: none;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
}

.QuickMeta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    cursor: pointer;
}

.MetaPill {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(107, 111, 245, 0.15);
    color: var(--text-1);
    border: 1px solid rgba(107, 111, 245, 0.4);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 18px rgba(107, 111, 245, 0.18);
}

@media (max-width: 768px) {
    .MetaPill {
        padding: 5px 10px;
        font-size: 12px;
    }
}

.ToastContainer {
    position: fixed;
    right: var(--space-3);
    bottom: calc(var(--space-3) + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    z-index: 12000;
    pointer-events: none;
    max-width: min(360px, 90vw);
}

.Toast {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(74, 222, 128, 0.38);
    background: linear-gradient(145deg, rgba(11, 28, 18, 0.96), rgba(13, 35, 24, 0.95));
    color: #ecfff6;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 10px 28px rgba(74, 222, 128, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.Toast.Show {
    transform: translateY(0);
    opacity: 1;
}

.ToastIcon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.95), rgba(74, 222, 128, 0.85), rgba(16, 185, 129, 0.6));
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12), 0 6px 18px rgba(74, 222, 128, 0.3);
}

.ToastMessage {
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.ToastClose {
    margin-left: 4px;
    border: none;
    background: transparent;
    color: #a7f3d0;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.ToastClose:hover {
    background: rgba(16, 185, 129, 0.14);
    color: #ecfdf3;
}

.toastify-neptune {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: linear-gradient(145deg, rgba(12, 28, 20, 0.98), rgba(14, 36, 26, 0.95)) !important;
    border: 1px solid rgba(74, 222, 128, 0.4) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.52), 0 12px 26px rgba(74, 222, 128, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
    color: #f0fff7 !important;
    font-weight: 700 !important;
    letter-spacing: 0.05px !important;
    line-height: 1.25 !important;
    backdrop-filter: blur(8px);
}

.toastify-neptune .toast-close {
    color: #bafbd7 !important;
    opacity: 0.9;
    margin-left: 6px !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.toastify-neptune .toast-close:hover {
    color: #ffffff !important;
}

.toastify-neptune::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.95), rgba(16, 185, 129, 0.75));
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12), 0 6px 16px rgba(74, 222, 128, 0.3);
    color: #04110a;
    font-size: 10px;
    font-weight: 900;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .ToastContainer {
        right: 50%;
        transform: translateX(50%);
        bottom: calc(var(--space-2) + var(--safe-bottom));
        align-items: center;
    }
}

.HeaderTopRow {
    display: none;
}

.HeaderInfoRow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-2);
    flex-wrap: wrap;
}

.TitleBlock {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 260px;
}

.ClassTitle {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-1);
}

.TopSearchContainer {
    position: relative;
    width: 320px;
    z-index: 5;
}

.HeaderStats {
    display: flex;
    align-items: flex-end;
    gap: var(--space-3);
    margin-left: auto;
}

.Stats {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin: 0;
    justify-content: flex-end;
}

.StatCard {
    background: linear-gradient(180deg, rgba(24, 25, 39, 0.96), rgba(16, 17, 26, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 16px 20px;
    text-align: center;
    min-width: 140px;
    transition: var(--transition);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32), 0 10px 28px rgba(99, 102, 241, 0.18);
}

.StatCard:hover {
    transform: translateY(-1px);
    background: rgba(34, 36, 54, 0.95);
    border-color: rgba(107, 111, 245, 0.5);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35), 0 14px 34px rgba(99, 102, 241, 0.24);
}

.StatNumber {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.StatLabel {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.MetaPillsRow {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-3);
}

.Tabs {
    display: flex;
    gap: 4px;
    background: linear-gradient(180deg, rgba(28,29,44,0.9), rgba(20,21,34,0.92));
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.Tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-2);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.Tab:hover:not(.Active) {
    background: rgba(107, 111, 245, 0.14);
    color: var(--text-1);
}

.Tab.Active {
    background: linear-gradient(135deg, var(--accent), #7c8cff);
    color: white;
    box-shadow: 0 8px 18px rgba(107, 111, 245, 0.35), 0 12px 28px rgba(96, 165, 250, 0.25);
}

.ContentBody {
    flex: 1;
    min-height: 0;
    padding: var(--space-5);
    padding-bottom: calc(var(--space-5) + 50px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    position: relative;
}

.TableScroller {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    padding-left: var(--space-2);
    padding-right: var(--space-2);
}

.TableScroller::-webkit-scrollbar {
    height: 8px;
}

.MembersTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(180deg, rgba(20, 21, 32, 0.85), rgba(14, 14, 24, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.MembersTable th {
    background: rgba(34, 35, 48, 0.8);
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    color: var(--text-1);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.MembersTable td {
    padding: 11px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
    font-weight: 500;
    user-select: text;
}

.CellValue {
    user-select: text;
    cursor: text;
}

.MembersTable tr:hover td {
    background: rgba(107, 111, 245, 0.06);
}

.RowHighlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(96, 165, 250, 0.14)) !important;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25) inset, 0 10px 24px rgba(0, 0, 0, 0.28);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.TypeColumn {
    color: var(--success);
    cursor: pointer;
    font-weight: 600;
}

.TypeColumn:hover {
    color: var(--accent);
}

.TypeColumn.basic-type {
    cursor: default;
}

.TypeColumn.basic-type:hover {
    color: var(--success);
}

.MemberColumn {
    color: var(--warning);
    font-weight: 600;
    user-select: text;
}

.CopyBtn {
    margin-left: 6px;
    padding: 2px;
    border: none;
    background: transparent;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.CopyBtn:hover {
    color: var(--text-1);
    transform: translateY(-1px);
}

.CopyBtn .fa-copy {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    pointer-events: none;
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.OffsetColumn {
    color: var(--accent);
    font-weight: 700;
    user-select: text;
}

.SizeColumn {
    color: var(--error);
    font-weight: 700;
    user-select: text;
}

.GlobalsMode .MembersTable th:nth-child(4),
.GlobalsMode .MembersTable td:nth-child(4) {
    display: none;
}

.NoData {
    text-align: center;
    color: var(--text-3);
    padding: var(--space-5);
    font-style: italic;
}

.Hidden {
    display: none !important;
}

@media (max-width: 768px) {
    body {
        display: block;
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
    }

    .MainContent {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        min-height: 100dvh;
        overflow: visible;
    }

    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }

    .Sidebar {
        width: min(320px, 85vw);
        transform: translateX(-105%);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        position: fixed;
        top: var(--safe-top);
        left: 0;
        bottom: var(--safe-bottom);
        height: auto;
        min-height: calc(100vh - var(--safe-top) - var(--safe-bottom));
        max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
        z-index: 1400;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
        padding: calc(var(--safe-top) + var(--space-3)) var(--space-3) calc(var(--space-3) + var(--safe-bottom));
        overflow-y: auto;
        background: linear-gradient(180deg, rgba(10,11,18,0.98), rgba(8,9,16,0.98));
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
    }

    .Sidebar.open {
        transform: translateX(0);
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
    }

    .SidebarScrim {
        display: none;
    }

    .SidebarScrim.visible {
        display: block;
    }

    .MobileMenuButton {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: static;
        z-index: 1203;
        margin-left: 0;
        margin-right: var(--space-2);
        padding: 10px 12px;
    }

    .ContentHeader {
        padding: var(--space-2) var(--space-3) var(--space-2);
        padding-top: calc(var(--safe-top) + var(--space-2));
        gap: var(--space-2);
        position: relative;
        padding-left: var(--space-3);
    }

    .TopBar {
        align-items: center;
        flex-direction: row;
        gap: var(--space-2);
        width: 100%;
        padding-right: 0;
    }

    .Breadcrumbs {
        display: none;
    }

    .TopActions {
        width: 100%;
        justify-content: center;
        display: flex;
        position: relative;
        padding-top: 2px;
        margin-top: 2px;
        align-items: center;
    }

    .TopSearchContainer {
        width: 100%;
        max-width: none;
        display: flex;
        align-items: center;
        gap: var(--space-2);
        margin-top: 0;
    }

    .TopSearchInput {
        height: 42px;
        padding: 10px 14px 10px 40px !important;
        font-size: 14px !important;
    }

    .TopSearchIcon {
        left: 12px !important;
    }

    .HeaderInfoRow {
        flex-direction: column;
        gap: var(--space-2);
        margin-top: var(--space-1);
        align-items: flex-start;
    }

    .HeaderStats {
        width: 100%;
        margin: 0;
        justify-content: center;
        align-items: center;
    }

    .Stats {
        width: 100%;
        max-width: 380px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: var(--space-2);
        justify-items: center;
        text-align: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .StatCard {
        min-width: 0;
        padding: 10px 12px;
        text-align: center;
    }

    .MetaPillsRow {
        width: 100%;
        gap: var(--space-2);
        margin-top: var(--space-2);
        justify-content: center;
        align-items: center;
    }

    .HeaderStats {
        justify-content: center;
        align-items: center;
    }

    .Stats {
        justify-content: center;
        align-items: center;
    }

    .ClassTitle {
        font-size: 22px;
        margin-top: var(--space-2);
    }

    .ContentBody {
        padding: var(--space-2) var(--space-3);
        padding-bottom: calc(var(--space-3) + var(--safe-bottom));
        overflow: visible;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .Tabs {
        width: 100%;
        margin-top: var(--space-2);
        padding: 4px;
    }

    .Tab {
        flex: 1;
        text-align: center;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .MembersTable {
        min-width: 560px;
    }

    .MembersTable th {
        padding: 12px;
        color: #e8eaf6;
    }

    .MembersTable td {
        padding: 9px 12px;
    }

    .StatusStrip {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .SidebarClose {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.Sidebar,
.MainContent,
.ClassList {
    transform: translateZ(0);
    will-change: transform;
}

.SidebarHeader div[style*="font-size"] {
    font-size: 12px !important;
    color: var(--text-3) !important;
    margin-top: var(--space-2) !important;
    word-break: break-all !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--space-2) !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

.SidebarHeader div[style*="font-size"] span:first-child {
    font-weight: 500;
    opacity: 0.8;
    font-family: 'Bahnschrift', monospace !important;
    letter-spacing: 0.5px;
}

.SidebarHeader .Notice {
    margin-top: var(--space-1);
    font-size: 11px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.SidebarHeader .Notice svg {
    width: 12px !important;
    height: 12px !important;
}

.SidebarHeader>div:last-child {
    font-size: 12px !important;
    color: var(--text-3) !important;
    margin-top: var(--space-2) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: var(--space-2) !important;
    line-height: 1.3 !important;
}

.SidebarHeader>div:last-child>span:first-child {
    font-weight: 500 !important;
    opacity: 0.9 !important;
    font-size: 11px !important;
    letter-spacing: 0.3px !important;
}

.Inheritance {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: var(--space-2);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    align-self: flex-start;
    font-family: 'Bahnschrift', monospace !important;
}

.SidebarResizer {
    width: 6px;
    cursor: col-resize;
    background: transparent;
    flex: 0 0 6px;
    align-self: stretch;
    transition: var(--transition);
    position: relative;
}

.SidebarResizer:hover {
    background: var(--accent);
}

.SidebarResizer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: var(--border);
    transform: translate(-50%, -50%);
    border-radius: 1px;
    opacity: 0;
    transition: var(--transition);
}

.SidebarResizer:hover::after {
    opacity: 1;
}

.GlobalSearchDropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: var(--blur-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 4000;
    display: none;
    box-shadow: var(--shadow);
}

.GlobalSearchItem {
    padding: var(--space-3);
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-2);
}

.GlobalSearchItem:hover {
    background: var(--bg-hover);
    color: var(--text-1);
}

.GlobalSearchItem:last-child {
    border-bottom: none;
}

.SearchHighlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(90, 212, 255, 0.24));
    color: #f4f7ff;
    padding: 0 1px;
    border: 1px solid rgba(142, 186, 255, 0.4);
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 16px rgba(90, 212, 255, 0.2), 0 0 18px rgba(99, 102, 241, 0.4);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.55), 0 0 18px rgba(90, 212, 255, 0.45);
    transition: color 0.12s ease, text-shadow 0.12s ease, background 0.12s ease;
}

.GlobalSearchItem {
    animation: fadeIn 0.15s ease;
}

.GlobalSearchClass {
    color: var(--accent);
    font-weight: 700;
}

.Error {
    text-align: center;
    color: var(--error);
    padding: var(--space-5);
    font-size: 14px;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.StructViewer {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-light);
    border-radius: 16px;
    padding: var(--space-5);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    user-select: text;
}

.StructHeader {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.StructName {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-2);
}

.StructInfo {
    display: flex;
    gap: var(--space-3);
    font-size: 14px;
    color: var(--text-3);
}

.StructMembers {
    display: grid;
    gap: var(--space-3);
}

.StructMember {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: var(--space-3);
    border-radius: 8px;
    transition: var(--transition);
    user-select: text;
}

.StructMember .MemberName,
.StructMember .MemberOffset,
.StructMember .MemberSize {
    user-select: text;
    cursor: text;
}

.StructMember:hover {
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.MemberHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.MemberName {
    font-weight: 500;
    color: var(--warning);
}

.MemberType {
    color: var(--success);
    cursor: pointer;
    font-weight: 400;
}

.MemberType:hover {
    color: var(--accent);
    text-decoration: underline;
}

.MemberType.basic-type {
    cursor: default;
}

.MemberType.basic-type:hover {
    color: var(--success);
    text-decoration: none;
}

.MemberDetails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    font-size: 12px;
    color: var(--text-3);
}

.MemberOffset {
    color: var(--accent);
    font-weight: 600;
}

.MemberSize {
    color: var(--error);
    font-weight: 600;
}

.RecyclerViewport {
    height: 100%;
    width: 100% !important;
    max-width: 100% !important;
    overflow-y: auto;
    position: relative;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

.RecyclerSpacer {
    width: 1px;
    opacity: 0;
}

.ClassItem[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + var(--space-2));
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-glass);
    color: var(--text-1);
    padding: var(--space-2) var(--space-3);
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: var(--blur-light);
    pointer-events: none;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.SidebarHeader div[style*="font-size"] {
    font-size: 12px !important;
    color: var(--text-3) !important;
    margin-top: var(--space-2) !important;
    word-break: break-all !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--space-2) !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

.SidebarHeader div[style*="font-size"] span:first-child {
    font-weight: 500;
    opacity: 0.8;
    font-family: 'Bahnschrift', monospace !important;
    letter-spacing: 0.5px;
}

.SidebarHeader .Notice {
    margin-top: var(--space-1);
    font-size: 11px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.SidebarHeader .Notice svg {
    width: 12px !important;
    height: 12px !important;
}

@media (max-width: 540px) {
    .Sidebar {
        width: min(360px, 90vw);
    }

    .SidebarSearch .SearchInput {
        padding: 14px 14px 14px 44px !important;
        min-height: 48px;
    }

    .SidebarFooter span,
    .SidebarFooter span b {
        font-size: 11px;
    }

    .ContentHeader {
        padding: var(--space-3);
    }

    .TopBar {
        gap: var(--space-1);
    }

    .Breadcrumbs {
        width: 100%;
        flex-wrap: wrap;
        row-gap: var(--space-1);
    }

    .TopActions {
        width: 100%;
    }

    .HeaderInfoRow {
        gap: var(--space-2);
        align-items: center;
        text-align: center;
    }

    .Stats {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        justify-items: center;
        text-align: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .ClassTitle {
        font-size: 22px;
    }

    .Tabs {
        width: 100%;
    }

    .Tab {
        flex: 1;
        text-align: center;
    }

    .ContentBody {
        padding: var(--space-2) var(--space-3);
        padding-bottom: calc(var(--space-2) + var(--safe-bottom));
        overflow-x: hidden;
    }

    .MembersTable {
        min-width: 520px;
    }

    .MembersTable th {
        padding: 12px;
        color: #e8eaf6;
    }

    .MembersTable td {
        padding: 9px 12px;
    }

    .StatusStrip {
        display: none;
    }

    .SidebarSearch {
        position: sticky;
        top: 0;
        z-index: 2;
        background: linear-gradient(180deg, rgba(10,11,18,0.98), rgba(10,11,18,0.95));
        padding-top: var(--space-2);
        padding-bottom: var(--space-2);
    }
}

/* Mobile alignment & styling refinements */
@media (max-width: 768px) {
    .MobileMenuButton {
        background: linear-gradient(135deg, rgba(107,111,245,0.15), rgba(72,84,202,0.25));
        border: 1px solid rgba(107,111,245,0.35);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(99, 102, 241, 0.18);
        padding: 10px 12px;
        border-radius: 999px;
        top: calc(var(--safe-top) + var(--space-2));
        left: var(--space-3);
        position: absolute;
    }

    .Sidebar {
        transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
    }

    .Sidebar.open {
        animation: menuSlideIn 0.25s ease forwards;
    }

    @keyframes menuSlideIn {
        from { transform: translateX(-110%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }

    .HeaderInfoRow {
        align-items: flex-start;
        text-align: left;
    }

    .ClassTitle {
        text-align: left;
        width: 100%;
    }

    .Inheritance {
        text-align: left;
        align-self: flex-start;
        margin-top: var(--space-1);
    }

    .Stats {
        justify-items: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .SidebarClose {
        background: linear-gradient(135deg, rgba(107,111,245,0.15), rgba(72,84,202,0.25));
        border: 1px solid rgba(107,111,245,0.35);
        color: var(--text-1);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(99, 102, 241, 0.18);
    }
}




.Sidebar,
.ClassList,
.RecyclerViewport,
.ContentBody,
.GlobalSearchDropdown,
.ASResults {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.6) transparent;
}

.Sidebar::-webkit-scrollbar,
.ClassList::-webkit-scrollbar,
.RecyclerViewport::-webkit-scrollbar,
.ContentBody::-webkit-scrollbar,
.GlobalSearchDropdown::-webkit-scrollbar,
.ASResults::-webkit-scrollbar {
    width: 8px;
}

.Sidebar::-webkit-scrollbar-track,
.ClassList::-webkit-scrollbar-track,
.RecyclerViewport::-webkit-scrollbar-track,
.ContentBody::-webkit-scrollbar-track,
.GlobalSearchDropdown::-webkit-scrollbar-track,
.ASResults::-webkit-scrollbar-track {
    background: transparent;
}

.Sidebar::-webkit-scrollbar-thumb,
.ClassList::-webkit-scrollbar-thumb,
.RecyclerViewport::-webkit-scrollbar-thumb,
.ContentBody::-webkit-scrollbar-thumb,
.GlobalSearchDropdown::-webkit-scrollbar-thumb,
.ASResults::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6);
    border-radius: 4px;
    transition: var(--transition);
}

.Sidebar::-webkit-scrollbar-thumb:hover,
.ClassList::-webkit-scrollbar-thumb:hover,
.RecyclerViewport::-webkit-scrollbar-thumb:hover,
.ContentBody::-webkit-scrollbar-thumb:hover,
.GlobalSearchDropdown::-webkit-scrollbar-thumb:hover,
.ASResults::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.9);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
}

.CommandPalette {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 11000;
}

.CPPanel {
    width: 520px;
    background: linear-gradient(145deg, rgba(14, 15, 24, 0.96), rgba(9, 10, 17, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.CPInput {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-1);
    font-size: 15px;
    font-weight: 600;
    outline: none;
}

.CPList {
    max-height: 320px;
    overflow-y: auto;
}

.CPItem {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-2);
    transition: var(--transition);
}

.CPItem:hover,
.CPItem.Active {
    background: rgba(107, 111, 245, 0.14);
    color: var(--text-1);
}

.CPItem:last-child {
    border-bottom: none;
}

.CPShortcut {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Advanced Search Overlay Styles */
.AdvancedSearchButton {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--accent);
}

.AdvancedSearchButton:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.05);
}

.AdvancedSearchButton svg {
    display: block;
}

.AdvancedSearchOverlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(107, 111, 245, 0.15), rgba(5, 6, 10, 0.92)), radial-gradient(circle at 80% 80%, rgba(90, 212, 255, 0.12), rgba(5, 6, 10, 0.92));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.AdvancedSearchPanel {
    background: linear-gradient(145deg, rgba(17, 18, 28, 0.96), rgba(10, 11, 18, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 36px rgba(96, 165, 250, 0.14);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ASHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(180deg, rgba(24, 25, 38, 0.9), rgba(15, 16, 26, 0.92));
}

.ASHeader h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ASClose {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-2);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ASClose:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-1);
}

.ASControls {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: linear-gradient(180deg, rgba(20, 21, 34, 0.92), rgba(14, 15, 24, 0.94));
}

.ASSearchInputWrapper {
    margin-bottom: 16px;
}

.ASSearchInputWrapper input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(26, 28, 42, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 8px;
    color: var(--text-1);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

.ASSearchInputWrapper input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ASFilters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px 12px;
    align-items: stretch;
}

.ASFilters label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(28, 29, 44, 0.85), rgba(18, 19, 30, 0.92));
    cursor: pointer;
    font-size: 14px;
    color: var(--text-2);
    font-weight: 700;
    user-select: none;
    transition: var(--transition);
}

.ASFilters label:has(.Hint) {
    grid-column: 1 / -1;
}

.ASFilters label:hover {
    color: var(--text-1);
    background: var(--bg-hover);
    border-color: rgba(99, 102, 241, 0.4);
}

.ASFilters label.Disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    border-style: dashed;
    color: var(--text-3);
}

.ASFilters input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.35);
    position: relative;
    flex-shrink: 0;
    transform: translateY(0);
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.14s ease;
}

.ASFilters input[type="checkbox"]:hover:not(:disabled) {
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.14);
}

.ASFilters input[type="checkbox"]:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.ASFilters input[type="checkbox"]::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 10px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 60%);
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.ASFilters input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.32), 0 0 0 2px rgba(99, 102, 241, 0.22);
    animation: checkboxPop 0.16s ease;
}

.ASFilters input[type="checkbox"]:checked::before {
    opacity: 1;
    transform: scale(1);
    animation: checkboxRipple 0.35s ease;
}

.ASFilters label.Disabled input[type="checkbox"] {
    cursor: not-allowed;
    box-shadow: none;
}

.ASFilters .Hint {
    font-size: 12px;
    color: var(--text-3);
    font-style: italic;
    margin-left: 6px;
    font-weight: 600;
}

@keyframes checkboxPop {
    0% {
        transform: scale(0.9);
    }

    70% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes checkboxRipple {
    0% {
        opacity: 0.8;
        transform: scale(0.85);
    }

    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

.ASResults {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    min-height: 300px;
    max-height: calc(85vh - 300px);
    background: linear-gradient(180deg, rgba(14, 15, 24, 0.92), rgba(10, 11, 18, 0.96));
}

.ASResultItem {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(30, 31, 46, 0.92), rgba(18, 19, 30, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ASResultItem:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(2px);
}

.ASResultItem.ASResultFocused {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(96, 165, 250, 0.14));
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.22), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.ASResultType {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.ASResultItem:has(.ASResultType:first-child) .ASResultType {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.ASResultName {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 4px;
}

.ASResultClass {
    font-size: 13px;
    color: #60a5fa;
    margin-bottom: 6px;
}

.ASResultDetails {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
}

.ASResultTypeName {
    color: #34d399;
}

.ASResultOffset {
    color: #fbbf24;
    font-family: 'Courier New', monospace;
}

.ASResultMatchType {
    font-size: 11px;
    color: var(--text-3);
    font-style: italic;
}

.ASResultFuzzy {
    font-size: 11px;
    color: var(--warning);
    margin-top: 4px;
    font-style: italic;
}

.ASHighlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(90, 212, 255, 0.24));
    color: #f4f7ff;
    padding: 0 1px;
    border: 1px solid rgba(142, 186, 255, 0.4);
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 16px rgba(90, 212, 255, 0.2), 0 0 18px rgba(99, 102, 241, 0.4);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.55), 0 0 18px rgba(90, 212, 255, 0.45);
}

.ASNoResults {
    text-align: center;
    color: var(--text-3);
    padding: 60px 20px;
    font-size: 15px;
}

.ASStatus {
    padding: 12px 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(255, 255, 255, 0.01);
    font-size: 12px;
    color: var(--text-3);
    text-align: right;
}

.StatusStrip {
    position: fixed;
    bottom: 0;
    left: 345px;
    right: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px;
    background: linear-gradient(90deg, rgba(14, 15, 24, 0.9), rgba(10, 11, 18, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    color: var(--text-2);
    font-size: 12px;
    z-index: 9000;
    user-select: none;
}

.StatusGroup {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Final mobile alignment fixes */
@media (max-width: 768px) {
    .SidebarHeader {
        display: none;
    }

    .MobileBrand {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
    }

    .ContentHeader {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    .TopBar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
        justify-content: flex-start;
        width: 100%;
    }

    .MobileHeaderRow {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        width: 100%;
        justify-content: space-between;
    }

    .TopActions {
        flex: 1;
        width: 100%;
        justify-content: flex-start;
        min-width: 0;
        margin-top: var(--space-1);
    }

    .MobileMenuButton {
        position: static;
        margin-right: var(--space-2);
        padding: 10px 12px;
        min-width: 42px;
        min-height: 42px;
    }

    .MobileBrand {
        justify-content: flex-end;
    }

    .HeaderInfoRow {
        width: 100%;
        align-items: flex-start;
    }
}

.StatusBadge {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(107, 111, 245, 0.16);
    border: 1px solid rgba(107, 111, 245, 0.4);
    color: var(--text-1);
    font-weight: 600;
}

.StatusText {
    color: var(--text-3);
}

.StatusLinks {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.StatusLinks a.StatusBadge {
    text-decoration: none;
    color: var(--text-1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .AdvancedSearchPanel {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 20px);
    }

    .StatusStrip {
        left: 0;
        height: auto;
        min-height: 44px;
        flex-wrap: wrap;
    }

    .AdvancedSearchOverlay {
        align-items: flex-start;
        padding: 10px;
    }
    
    .ASFilters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .AdvancedSearchButton {
        padding: 4px 6px;
    }
}

.Sidebar,
.ClassList,
.RecyclerViewport,
.ContentBody,
.GlobalSearchDropdown {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.6) transparent;
}

.Sidebar::-webkit-scrollbar,
.ClassList::-webkit-scrollbar,
.RecyclerViewport::-webkit-scrollbar,
.ContentBody::-webkit-scrollbar,
.GlobalSearchDropdown::-webkit-scrollbar {
    width: 8px;
}

.Sidebar::-webkit-scrollbar-track,
.ClassList::-webkit-scrollbar-track,
.RecyclerViewport::-webkit-scrollbar-track,
.ContentBody::-webkit-scrollbar-track,
.GlobalSearchDropdown::-webkit-scrollbar-track {
    background: transparent;
}

.Sidebar::-webkit-scrollbar-thumb,
.ClassList::-webkit-scrollbar-thumb,
.RecyclerViewport::-webkit-scrollbar-thumb,
.ContentBody::-webkit-scrollbar-thumb,
.GlobalSearchDropdown::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6);
    border-radius: 4px;
    transition: var(--transition);
}

.Sidebar::-webkit-scrollbar-thumb:hover,
.ClassList::-webkit-scrollbar-thumb:hover,
.RecyclerViewport::-webkit-scrollbar-thumb:hover,
.ContentBody::-webkit-scrollbar-thumb:hover,
.GlobalSearchDropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.9);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
}

/* Fallback custom scrollbar styling for any scrollable element */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.6) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6);
    border-radius: 4px;
    transition: var(--transition);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.9);
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
}

.SidebarClose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-1);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
}

.SidebarClose:active {
    transform: scale(0.97);
}

.BackToTop {
    position: fixed;
    right: 16px;
    bottom: 72px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: linear-gradient(145deg, rgba(23, 24, 34, 0.95), rgba(15, 16, 26, 0.95));
    color: var(--text-1);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 10px 24px rgba(99, 102, 241, 0.18);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9001;
}

.BackToTop span {
    font-size: 18px;
    font-weight: 700;
}

.BackToTop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.BackToTop:active {
    transform: translateY(2px);
}

@media (min-width: 769px) {
    .BackToTop {
        display: none !important;
    }
}
