/* /Components/FilterRail.razor.rz.scp.css */
.filter-rail[b-i3zgcn5hjm] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rail-section[b-i3zgcn5hjm] {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gallery-border, #e5e7eb);
}
.rail-section:last-child[b-i3zgcn5hjm] { border-bottom: none; }

.rail-search[b-i3zgcn5hjm] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--gallery-border, #e5e7eb);
    border-radius: 10px;
    background: var(--gallery-surface, #fff);
}
.rail-search i[b-i3zgcn5hjm] { color: #888; font-size: 0.85rem; }
.rail-search input[b-i3zgcn5hjm] {
    border: none; background: transparent; outline: none;
    font-size: 0.88rem; width: 100%; color: var(--gallery-text, #111);
}
.rail-search input[b-i3zgcn5hjm]::placeholder { color: #aaa; }

/* Collapsible heading button */
.rail-heading-btn[b-i3zgcn5hjm] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0 0 0.4rem;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}
.rail-heading-btn:hover .rail-heading[b-i3zgcn5hjm] { color: var(--gallery-accent, #6366f1); }

.rail-heading[b-i3zgcn5hjm] {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gallery-text-muted, #6b7280);
    margin: 0;
    transition: color 120ms ease;
}

.rail-chevron[b-i3zgcn5hjm] {
    font-size: 0.65rem;
    color: var(--gallery-text-muted, #6b7280);
    transition: transform 150ms ease;
}

.rail-section-body[b-i3zgcn5hjm] {
    display: flex;
    flex-direction: column;
}

/* Category list */
.cat-item[b-i3zgcn5hjm] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 0.82rem;
    color: var(--gallery-text, #111);
    cursor: pointer;
    text-align: left;
    transition: background 120ms ease;
}
.cat-item:hover[b-i3zgcn5hjm] { background: var(--gallery-surface-2, #f3f4f6); }
.cat-item.active[b-i3zgcn5hjm] {
    background: var(--gallery-accent-soft, #eef2ff);
    color: var(--gallery-accent, #6366f1);
    font-weight: 600;
}
.cat-icon[b-i3zgcn5hjm] { font-size: 0.85rem; color: var(--cat-color); }
.cat-count[b-i3zgcn5hjm] {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--gallery-text-muted, #6b7280);
    font-variant-numeric: tabular-nums;
}

/* Tag cloud */
.tag-cloud[b-i3zgcn5hjm] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

[data-theme="dark"] .rail-search[b-i3zgcn5hjm] { background: var(--gallery-surface, #14171c); border-color: var(--gallery-border, #2a2f37); }
[data-theme="dark"] .rail-search input[b-i3zgcn5hjm] { color: var(--gallery-text, #e5e7eb); }
[data-theme="dark"] .cat-item[b-i3zgcn5hjm] { color: var(--gallery-text, #e5e7eb); }
[data-theme="dark"] .cat-item:hover[b-i3zgcn5hjm] { background: var(--gallery-surface-2, #1b1f25); }
[data-theme="dark"] .cat-item.active[b-i3zgcn5hjm] { background: rgba(99,102,241,0.15); }
/* /Components/SampleCard.razor.rz.scp.css */
/* ============================================
   Sample Card — API Atlas variant
   ============================================ */

@keyframes cardFadeIn-b-4mczkvayer {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sample-card[b-4mczkvayer] {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--gallery-surface, #fff);
    border: 1px solid var(--gallery-border, #e5e7eb);
    cursor: pointer;
    animation: cardFadeIn-b-4mczkvayer 0.22s ease-out both;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
}

.sample-card:hover[b-4mczkvayer] {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.12);
    border-color: color-mix(in srgb, var(--card-color) 40%, var(--gallery-border, #e5e7eb));
}

/* Accent bar */
.card-accent[b-4mczkvayer] {
    height: 5px;
    width: 100%;
}

/* Body */
.card-body[b-4mczkvayer] {
    padding: 0.9rem 0.9rem 0.5rem;
}

.card-header[b-4mczkvayer] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.4rem;
}

.card-icon[b-4mczkvayer] { font-size: 1.1rem; }

.card-badges[b-4mczkvayer] {
    display: flex;
    gap: 0.3rem;
}

.badge[b-4mczkvayer] {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-new[b-4mczkvayer] { background: #dcfce7; color: #166534; }
.badge-live[b-4mczkvayer] { background: #fff7ed; color: #9a3412; }
.badge-doc[b-4mczkvayer] { background: #f1f5f9; color: #475569; }

.card-title[b-4mczkvayer] {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gallery-text, #111827);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.card-desc[b-4mczkvayer] {
    font-size: 0.78rem;
    color: var(--gallery-text-muted, #6b7280);
    line-height: 1.4;
    margin: 0;
}

/* Tag strip */
.card-tags[b-4mczkvayer] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0.4rem 0.9rem;
}

.card-tag[b-4mczkvayer] {
    display: inline-block;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid var(--gallery-border, #e5e7eb);
    background: transparent;
    color: var(--gallery-text-muted, #6b7280);
    cursor: pointer;
    transition: all 120ms ease;
    white-space: nowrap;
}
.card-tag:hover[b-4mczkvayer] {
    border-color: var(--gallery-accent, #6366f1);
    color: var(--gallery-accent, #6366f1);
    background: var(--gallery-accent-soft, #eef2ff);
}
.card-tag.ct-type[b-4mczkvayer] { color: var(--color-type, #2563eb); }
.card-tag.ct-method[b-4mczkvayer] { color: var(--color-method, #d97706); }
.card-tag.ct-active[b-4mczkvayer] {
    background: var(--gallery-accent, #6366f1);
    color: white;
    border-color: var(--gallery-accent, #6366f1);
}

.card-tag-overflow[b-4mczkvayer] {
    font-size: 0.65rem;
    color: var(--gallery-text-muted, #6b7280);
    padding: 0.15rem 0.3rem;
    align-self: center;
}

/* Footer */
.card-footer[b-4mczkvayer] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.9rem 0.7rem;
    font-size: 0.72rem;
}

.card-category[b-4mczkvayer] {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.card-arrow[b-4mczkvayer] {
    opacity: 0;
    transition: opacity 150ms ease, transform 150ms ease;
    color: var(--card-color);
    font-weight: 600;
}
.sample-card:hover .card-arrow[b-4mczkvayer] {
    opacity: 1;
    transform: translateX(2px);
}

/* Disabled / unsupported */
.sample-card-disabled[b-4mczkvayer] {
    opacity: 0.5 !important;
    cursor: not-allowed;
    filter: grayscale(0.6);
    animation: none;
}
.sample-card-disabled:hover[b-4mczkvayer] {
    transform: none;
    box-shadow: none;
    border-color: var(--gallery-border, #e5e7eb);
}
.sample-card-disabled .card-tags[b-4mczkvayer],
.sample-card-disabled .card-tag[b-4mczkvayer] {
    pointer-events: none;
}
.card-unsupported[b-4mczkvayer] {
    font-size: 0.68rem;
    color: #b45309;
    font-weight: 600;
}

/* Dark mode */
[data-theme="dark"] .sample-card[b-4mczkvayer] { background: var(--gallery-surface, #14171c); border-color: var(--gallery-border, #2a2f37); }
[data-theme="dark"] .card-title[b-4mczkvayer] { color: var(--gallery-text, #e5e7eb); }
[data-theme="dark"] .badge-new[b-4mczkvayer] { background: #052e16; color: #4ade80; }
[data-theme="dark"] .badge-live[b-4mczkvayer] { background: #431407; color: #fb923c; }
[data-theme="dark"] .badge-doc[b-4mczkvayer] { background: #1e293b; color: #94a3b8; }
[data-theme="dark"] .card-tag[b-4mczkvayer] { border-color: var(--gallery-border, #2a2f37); color: #9ca3af; }
[data-theme="dark"] .card-tag.ct-type[b-4mczkvayer] { color: #60a5fa; }
[data-theme="dark"] .card-tag.ct-method[b-4mczkvayer] { color: #fbbf24; }
[data-theme="dark"] .card-tag:hover[b-4mczkvayer] { background: rgba(99,102,241,0.15); }
[data-theme="dark"] .card-unsupported[b-4mczkvayer] { color: #fbbf24; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sample-card[b-4mczkvayer] { animation: none; }
    .sample-card:hover[b-4mczkvayer] { transform: none; }
}
/* /Components/TagPill.razor.rz.scp.css */
.api-tag[b-n7xi285cqw] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid var(--gallery-border, #e5e7eb);
    border-radius: 999px;
    padding: 0.32rem 0.6rem;
    background: transparent;
    color: var(--gallery-text, #111827);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease, color 140ms ease, opacity 140ms ease;
    white-space: nowrap;
    line-height: 1.3;
}
.api-tag:hover[b-n7xi285cqw] {
    transform: translateY(-1px);
    border-color: var(--gallery-accent, #6366f1);
    background: var(--gallery-accent-soft, #eef2ff);
}
.api-tag.active[b-n7xi285cqw] {
    background: var(--gallery-accent, #6366f1);
    color: white;
    border-color: var(--gallery-accent, #6366f1);
}
.api-tag.active:hover[b-n7xi285cqw] {
    background: var(--gallery-accent-strong, #4f46e5);
}
.api-tag.zero[b-n7xi285cqw] {
    opacity: 0.3;
    cursor: default;
}
.api-tag.zero:hover[b-n7xi285cqw] {
    transform: none;
}

/* Type vs Method visual hints */
.api-tag.tag-type[b-n7xi285cqw] { color: var(--color-type, #2563eb); }
.api-tag.tag-type:hover[b-n7xi285cqw] { background: var(--color-type-soft, #dbeafe); border-color: var(--color-type, #2563eb); }
.api-tag.tag-type.active[b-n7xi285cqw] { background: var(--color-type, #2563eb); color: white; border-color: var(--color-type, #2563eb); }
.api-tag.tag-method[b-n7xi285cqw] { color: var(--color-method, #d97706); }
.api-tag.tag-method:hover[b-n7xi285cqw] { background: var(--color-method-soft, #fef3c7); border-color: var(--color-method, #d97706); }
.api-tag.tag-method.active[b-n7xi285cqw] { background: var(--color-method, #d97706); color: white; border-color: var(--color-method, #d97706); }

.tag-prefix[b-n7xi285cqw] {
    font-size: 0.6rem;
    font-weight: 700;
    background: var(--color-type, #2563eb);
    color: white;
    border-radius: 3px;
    padding: 0 3px;
    line-height: 1.4;
}
.api-tag.active .tag-prefix[b-n7xi285cqw] { background: rgba(255,255,255,0.3); }

.tag-count[b-n7xi285cqw] {
    font-size: 0.65rem;
    opacity: 0.6;
    font-variant-numeric: tabular-nums;
}
.api-tag.active .tag-count[b-n7xi285cqw] { opacity: 0.8; }

.tag-remove[b-n7xi285cqw] {
    font-size: 0.65rem;
    margin-left: 0.1rem;
    opacity: 0.7;
}
.tag-remove:hover[b-n7xi285cqw] { opacity: 1; }

/* Sizes for tag cloud weight */
.api-tag.size-large[b-n7xi285cqw] { font-size: 0.9rem; padding: 0.4rem 0.75rem; font-weight: 600; }
.api-tag.size-small[b-n7xi285cqw] { font-size: 0.72rem; padding: 0.25rem 0.5rem; }

[data-theme="dark"] .api-tag[b-n7xi285cqw] { border-color: var(--gallery-border, #2a2f37); color: var(--gallery-text, #e5e7eb); }
[data-theme="dark"] .api-tag.tag-type[b-n7xi285cqw] { color: #60a5fa; }
[data-theme="dark"] .api-tag.tag-type:hover[b-n7xi285cqw] { background: rgba(37,99,235,0.15); border-color: #60a5fa; }
[data-theme="dark"] .api-tag.tag-type.active[b-n7xi285cqw] { background: #2563eb; color: white; }
[data-theme="dark"] .api-tag.tag-method[b-n7xi285cqw] { color: #fbbf24; }
[data-theme="dark"] .api-tag.tag-method:hover[b-n7xi285cqw] { background: rgba(217,119,6,0.15); border-color: #fbbf24; }
[data-theme="dark"] .api-tag.tag-method.active[b-n7xi285cqw] { background: #d97706; color: white; }
[data-theme="dark"] .tag-prefix[b-n7xi285cqw] { background: #3b82f6; }

@media (prefers-reduced-motion: reduce) {
    .api-tag[b-n7xi285cqw] { transition: none; }
    .api-tag:hover[b-n7xi285cqw] { transform: none; }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-emhr2bw88a] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

main[b-emhr2bw88a] {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.top-row[b-emhr2bw88a] {
    background-color: #1a237e;
    height: 3.5rem;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.top-row a[b-emhr2bw88a] {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.top-row a:hover[b-emhr2bw88a] {
    color: white;
}

.navbar-brand[b-emhr2bw88a] {
    font-size: 1.2rem;
    font-weight: bold;
    color: white !important;
    white-space: nowrap;
}

.content[b-emhr2bw88a] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0 !important;
}

@media (max-width: 640px) {
    .top-row[b-emhr2bw88a] { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .content[b-emhr2bw88a] { padding-left: 0 !important; padding-right: 0 !important; }
    .navbar-brand[b-emhr2bw88a] { font-size: 1rem; }
}

[data-theme="dark"] .top-row[b-emhr2bw88a] { background-color: #0d1147; }
/* /Pages/Home.razor.rz.scp.css */
/* ============================================
   Gallery — API Atlas layout
   Full split: page never scrolls. Sidebar and
   card grid each scroll independently.
   ============================================ */

/* Design tokens */
.gallery-page[b-l96lye9fo2] {
    --gallery-bg: #fafafa;
    --gallery-surface: #ffffff;
    --gallery-surface-2: #f3f4f6;
    --gallery-border: #e5e7eb;
    --gallery-text: #111827;
    --gallery-text-muted: #6b7280;
    --gallery-accent: #6366f1;
    --gallery-accent-strong: #4f46e5;
    --gallery-accent-soft: #eef2ff;
    --color-type: #2563eb;
    --color-type-soft: #dbeafe;
    --color-method: #d97706;
    --color-method-soft: #fef3c7;

    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    color: var(--gallery-text);
}

/* ─── Info strip (fixed at top, never scrolls) ─── */
.info-strip[b-l96lye9fo2] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid var(--gallery-border);
    flex-shrink: 0;
}
.info-subtitle[b-l96lye9fo2] {
    font-size: 0.82rem;
    color: var(--gallery-text-muted);
    margin: 0;
}
.info-stats[b-l96lye9fo2] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-variant-numeric: tabular-nums;
}
.stat[b-l96lye9fo2] {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gallery-accent);
}
.stat small[b-l96lye9fo2] {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--gallery-text-muted);
}
.stat-sep[b-l96lye9fo2] { color: var(--gallery-border); }

/* ─── Filter bar (fixed, between hero and main) ─── */
.filter-bar-area[b-l96lye9fo2] {
    flex-shrink: 0;
    padding: 0 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ─── Main split layout (fills remaining height) ─── */
.gallery-main[b-l96lye9fo2] {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 0;
    flex: 1;
    min-height: 0; /* critical: allows children to shrink below content height */
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ─── Sidebar (scrolls independently) ─── */
.sidebar-desktop[b-l96lye9fo2] {
    display: block;
    overflow-y: auto;
    padding: 0.75rem 1rem 1rem 1.5rem;
    border-right: 1px solid var(--gallery-border);
    scrollbar-width: thin;
}
.sidebar-desktop[b-l96lye9fo2]::-webkit-scrollbar { width: 4px; }
.sidebar-desktop[b-l96lye9fo2]::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }

/* ─── Results column (scrolls independently) ─── */
.results-column[b-l96lye9fo2] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.results-header[b-l96lye9fo2] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.5rem;
    gap: 1rem;
    flex-shrink: 0;
    border-bottom: 1px solid var(--gallery-border);
}
.results-count[b-l96lye9fo2] {
    font-size: 0.85rem;
    font-weight: 600;
}
.results-sort[b-l96lye9fo2] {
    font-size: 0.78rem;
    color: var(--gallery-text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.results-sort select[b-l96lye9fo2] {
    border: 1px solid var(--gallery-border);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
    background: var(--gallery-surface);
    color: var(--gallery-text);
    cursor: pointer;
}

/* ─── Scrollable card area ─── */
.results-scroll[b-l96lye9fo2] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem 2rem;
}

/* ─── Card grid ─── */
.sample-grid[b-l96lye9fo2] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.9rem;
}
.grid-link[b-l96lye9fo2] {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ─── Empty state ─── */
.empty-state[b-l96lye9fo2] {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gallery-text-muted);
}
.empty-state h3[b-l96lye9fo2] {
    margin: 0.75rem 0 0.3rem;
    color: var(--gallery-text);
}
.empty-state p[b-l96lye9fo2] { margin: 0 0 1rem; font-size: 0.9rem; }
.empty-reset[b-l96lye9fo2] {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--gallery-border);
    border-radius: 8px;
    background: var(--gallery-surface);
    color: var(--gallery-accent);
    font-weight: 600;
    cursor: pointer;
    transition: background 120ms ease;
}
.empty-reset:hover[b-l96lye9fo2] { background: var(--gallery-accent-soft); }

/* ─── Footer ─── */
.gallery-footer[b-l96lye9fo2] {
    text-align: center;
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    color: var(--gallery-text-muted);
    border-top: 1px solid var(--gallery-border);
    flex-shrink: 0;
}

/* ─── Responsive ─── */

.mobile-filter-fab[b-l96lye9fo2] {
    display: none;
}

@media (max-width: 860px) {
    .gallery-main[b-l96lye9fo2] {
        grid-template-columns: 1fr;
    }
    .sidebar-desktop[b-l96lye9fo2] {
        display: none;
    }
    .sample-grid[b-l96lye9fo2] {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .mobile-filter-fab[b-l96lye9fo2] {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        position: fixed;
        bottom: 1.25rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        padding: 0.65rem 1.2rem;
        border-radius: 999px;
        border: 1px solid var(--gallery-border, #e5e7eb);
        background: var(--gallery-surface, #fff);
        color: var(--gallery-text, #111);
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(0,0,0,0.12);
        transition: box-shadow 150ms ease, transform 150ms ease;
    }
    .mobile-filter-fab:active[b-l96lye9fo2] { transform: translateX(-50%) scale(0.97); }
    .mobile-filter-fab.has-filters[b-l96lye9fo2] {
        background: var(--gallery-accent, #6366f1);
        color: white;
        border-color: var(--gallery-accent, #6366f1);
    }
    .mobile-filter-fab i[b-l96lye9fo2] { font-size: 0.9rem; }
    .fab-badge[b-l96lye9fo2] {
        background: white;
        color: var(--gallery-accent, #6366f1);
        font-size: 0.65rem;
        font-weight: 700;
        min-width: 1.1rem;
        height: 1.1rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Drawer */
.drawer-backdrop[b-l96lye9fo2] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    animation: fadeIn-b-l96lye9fo2 150ms ease;
}
.drawer-panel[b-l96lye9fo2] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    z-index: 201;
    background: var(--gallery-surface, #fff);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    animation: slideUp-b-l96lye9fo2 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-header[b-l96lye9fo2] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gallery-border, #e5e7eb);
    flex-shrink: 0;
}
.drawer-title[b-l96lye9fo2] {
    font-size: 0.9rem;
    font-weight: 700;
}
.drawer-close[b-l96lye9fo2] {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--gallery-text-muted, #6b7280);
    padding: 0.25rem;
}
.drawer-body[b-l96lye9fo2] {
    overflow-y: auto;
    padding: 0.5rem 1.25rem 2rem;
    flex: 1;
}
.drawer-body .filter-rail[b-l96lye9fo2] {
    position: static;
    max-height: none;
    padding-right: 0;
}

@keyframes slideUp-b-l96lye9fo2 {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes fadeIn-b-l96lye9fo2 {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 640px) {
    .info-strip[b-l96lye9fo2] { padding: 0.5rem 0.75rem; }
    .info-subtitle[b-l96lye9fo2] { display: none; }
    .info-stats[b-l96lye9fo2] { display: none; }
    .filter-bar-area[b-l96lye9fo2] { padding: 0 0.75rem; }
    .results-header[b-l96lye9fo2] { padding: 0.5rem 0.75rem; }
    .results-scroll[b-l96lye9fo2] { padding: 0.75rem; }
    .sample-grid[b-l96lye9fo2] {
        grid-template-columns: 1fr;
    }
}

/* Dark mode drawer */
[data-theme="dark"] .mobile-filter-fab[b-l96lye9fo2] { background: var(--gallery-surface, #14171c); border-color: var(--gallery-border, #2a2f37); color: var(--gallery-text, #e5e7eb); }
[data-theme="dark"] .mobile-filter-fab.has-filters[b-l96lye9fo2] { background: var(--gallery-accent, #818cf8); }
[data-theme="dark"] .drawer-panel[b-l96lye9fo2] { background: var(--gallery-surface, #14171c); }
[data-theme="dark"] .drawer-header[b-l96lye9fo2] { border-color: var(--gallery-border, #2a2f37); }
[data-theme="dark"] .drawer-backdrop[b-l96lye9fo2] { background: rgba(0,0,0,0.6); }
[data-theme="dark"] .sidebar-desktop[b-l96lye9fo2] { border-right-color: var(--gallery-border, #2a2f37); }
[data-theme="dark"] .gallery-page[b-l96lye9fo2] { color: var(--gallery-text); }
[data-theme="dark"] .gallery-footer[b-l96lye9fo2] { color: var(--gallery-text-muted); border-top-color: var(--gallery-border); }
[data-theme="dark"] .results-header[b-l96lye9fo2] { border-bottom-color: var(--gallery-border, #2a2f37); }
[data-theme="dark"] .results-sort select[b-l96lye9fo2] { background: var(--gallery-surface); color: var(--gallery-text); border-color: var(--gallery-border); }
[data-theme="dark"] .info-strip[b-l96lye9fo2] { border-bottom-color: var(--gallery-border); }
/* /Pages/SamplePage.razor.rz.scp.css */
.sample-page[b-r3elgt27t3] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.sample-header[b-r3elgt27t3] {
    flex-shrink: 0;
    padding-bottom: 0.5rem;
}

.sample-body[b-r3elgt27t3] {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 0;
}

.sample-canvas[b-r3elgt27t3] {
    flex: 1;
    min-width: 0;
    min-height: 0;
}

.sample-canvas .canvas-wrapper[b-r3elgt27t3] {
    width: 100%;
    height: 100%;
}

/* --- Sidebar --- */

.sample-sidebar[b-r3elgt27t3] {
    width: 320px;
    flex-shrink: 0;
    overflow-y: auto;
    border-left: 1px solid #e0e0e0;
    padding: 0.75rem;
    background: #fafafa;
    transition: width 0.2s ease;
    position: relative;
    z-index: 99;
}

.sample-sidebar.collapsed[b-r3elgt27t3] {
    width: 36px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sample-sidebar.collapsed .sidebar-label[b-r3elgt27t3] {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sample-sidebar.collapsed .sidebar-content[b-r3elgt27t3] {
    display: none;
}

/* Backdrop for dismiss-on-click-outside */
.sidebar-backdrop[b-r3elgt27t3] {
    position: fixed;
    inset: 0;
    z-index: 98;
    background: transparent;
}

@media (max-width: 767.98px) {
    .sample-body[b-r3elgt27t3] {
        flex-direction: column;
    }

    .sample-sidebar[b-r3elgt27t3] {
        width: 100%;
        max-height: 40vh;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    .sample-sidebar.collapsed[b-r3elgt27t3] {
        width: 100%;
        height: 36px;
    }

    .sample-sidebar.collapsed .sidebar-label[b-r3elgt27t3] {
        writing-mode: horizontal-tb;
        transform: none;
    }
}
