body{--sidebar-width:272px}.toolbar{display:none}#gallery-sidebar{position:fixed;top:16px;bottom:88px;left:16px;width:var(--sidebar-width);z-index:40;background:#fffffff2;border-radius:24px;box-shadow:0 8px 32px #1717170c;backdrop-filter:blur(20px);overflow:hidden;transition:width .22s ease}.sidebar-head{height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;gap:16px}.sidebar-head>a{font-size:14px;font-weight:600;letter-spacing:.12em;line-height:1.6}.sidebar-head button{flex-shrink:0;width:32px;height:32px;border-radius:50%;font-size:16px;line-height:1.6}.sidebar-head button:hover{background:#eeece9}#sidebar-inner{height:calc(100% - 60px);overflow-y:auto;overflow-x:hidden;padding:0 14px 24px;scrollbar-width:thin}#site-controls .filter-pill{display:block;margin:0;padding:0;background:#f4f3f0;border-radius:999px;box-shadow:none;min-height:0}#site-controls .filter-pill label{padding:0 13px}#site-controls input{width:100%}#site-controls .filter-panel{position:static;width:auto;max-height:none;padding:18px 0;background:none;box-shadow:none;border-radius:0;overflow:visible;backdrop-filter:none}#site-controls .filter-search{margin:18px 0}#site-controls .category-options{gap:5px}#site-controls .category-options button{font-size:12px;padding:7px 9px;line-height:1.35}#site-controls .color-wheel{max-width:100%}.sidebar-search input{width:100%;padding:13px 15px;border:0;border-radius:999px;background:#f4f3f0;font-size:12px;outline-offset:2px;line-height:1.35}#component-categories{margin-top:18px}#component-categories h3{font-size:12px;font-weight:500;color:#85817d;margin:24px 10px 8px;line-height:1.35}#component-categories a{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:9px;font-size:12px;color:#555;;line-height:1.35}#component-categories svg{width:16px;height:16px;color:#888}#component-categories a:hover{background:#f3f1ee}#component-categories a[aria-current]{background:#ebe8e4;color:#191919}main#content{margin-left:calc(var(--sidebar-width) + 32px);padding:30px 24px 120px;max-width:none}#component-view{position:fixed;top:16px;bottom:88px;left:calc(var(--sidebar-width) + 40px);right:16px;transition:left .22s ease}#component-frame{width:100%;height:100%;border:0;background:transparent;opacity:0;transition:opacity .16s ease}#component-frame.ready{opacity:1}.gallery-switcher{z-index:60}.sidebar-collapsed{--sidebar-width:64px}.sidebar-collapsed #sidebar-inner{visibility:hidden}.sidebar-collapsed .sidebar-head>a{display:none}.sidebar-collapsed .sidebar-head{padding:0 16px}.sidebar-collapsed main#content{margin-left:96px}@media(max-width:760px){body{--sidebar-width:272px}#gallery-sidebar{bottom:82px}main#content{margin-left:80px;padding:24px 14px 100px}#component-view{left:88px;right:10px}.sidebar-collapsed main#content{margin-left:80px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar-collapsed{--sidebar-width:56px}.sidebar-collapsed .sidebar-head{padding:0 12px}body:not(.sidebar-collapsed) #gallery-sidebar{box-shadow:0 16px 60px #17171730}}@media(max-width:420px){.gallery-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){#gallery-sidebar,#component-view,#component-frame{transition:none}}
/* Shared background remains visible across both gallery modes. */
.gallery-switcher{grid-template-columns:repeat(3,minmax(0,1fr));width:450px}.gallery-switcher-indicator{width:calc((100% - 10px)/3)}.gallery-switcher[data-active="scraper"] .gallery-switcher-indicator{transform:translateX(200%)}#scraper-view{position:fixed;inset:0;z-index:10;background:#070708}#scraper-view iframe{width:100%;height:100%;border:0;display:block}.scraper-mode{overflow:hidden}.scraper-mode .gallery-switcher{background:#ffffffd9}@media(max-width:760px){.gallery-switcher a{font-size:12px;padding:10px 6px;line-height:1.35}#scraper-view{bottom:130px}}
html body{font-family:var(--tobira-font)}
.category-subgroup h4{font-size:12px;font-weight:500;color:#77716a;margin:12px 8px 8px;line-height:1.35}.category-subgroup{margin-bottom:12px}
.ambient canvas{opacity:.65}
#site-controls .category-group{margin:8px 0}#site-controls .category-group summary{padding:12px 8px;font-size:12px;cursor:pointer;color:#555;line-height:1.35}#site-controls .category-options{padding:0 4px 14px}#site-controls .category-group[open] summary{color:#191919}#component-controls>.sidebar-search{display:block;position:sticky;top:0;background:#fff;z-index:2;padding-bottom:10px}

/* Compact filters grow from the icon rail without duplicating filter controls. */
.filter-category-icon{width:18px;height:18px;vertical-align:middle;margin:0 9px 0 5px;stroke-width:1.35}
.filter-rail{display:none;position:absolute;top:72px;left:0;width:100%;padding:0 8px;gap:8px;align-items:center}
.sidebar-collapsed:not(.component-mode):not(.scraper-mode) .filter-rail{display:flex;flex-direction:column}
.filter-rail button{position:relative;width:44px;height:44px;display:grid;place-items:center;border-radius:16px;color:#77736e;transition:background 160ms ease,color 160ms ease,transform 160ms ease}
.filter-rail .filter-category-icon{width:20px;height:20px;margin:0}
.filter-rail button[aria-expanded=true]{background:#eeece8;color:#252321}
.filter-rail button:active{transform:scale(.96)}
.filter-rail button.has-selection:after{content:'';position:absolute;right:7px;top:7px;width:4px;height:4px;border-radius:50%;background:currentColor}
#filter-flyout{position:fixed;z-index:45;width:min(380px,calc(100vw - var(--sidebar-width) - 32px));padding:20px 22px 22px;border-radius:28px;background:#fffffff5;box-shadow:12px 14px 42px #211d1814;backdrop-filter:blur(24px);opacity:0;visibility:hidden;pointer-events:none;transform:translateX(-10px) scale(.96);transform-origin:0 var(--anchor-y,36px);transition:transform 220ms cubic-bezier(.23,1,.32,1),opacity 160ms ease,visibility 0s 220ms}
#filter-flyout:before{content:'';position:absolute;left:-14px;top:calc(var(--anchor-y,36px) - 20px);width:24px;height:40px;background:#fffffff5;border-radius:18px 0 0 18px;z-index:-1}
#filter-flyout.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(0) scale(1);transition-delay:0s}
#filter-flyout #categories{max-height:min(600px,calc(100dvh - 180px));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 3px}
#filter-flyout .category-group{margin:0}
#filter-flyout summary{list-style:none;cursor:default;font-size:12px;padding:2px 25px 18px 0;position:sticky;top:0;background:#fff;z-index:2;line-height:1.35}
#filter-flyout summary::-webkit-details-marker{display:none}
#filter-flyout summary .filter-category-icon{margin-left:0}
#filter-flyout .category-subgroup h4{margin:14px 0 10px}
#filter-flyout .category-options{gap:6px}
#filter-flyout .category-options button{padding:9px 12px}
.filter-flyout-close{position:absolute;right:15px;top:14px;width:30px;height:30px;border-radius:50%;font-size:24px;z-index:3;color:#777;line-height:1.35}
.filter-flyout-close:hover{background:#f0eeeb}
#filter-flyout.keyboard-open{transition:none}
.component-mode #filter-flyout,.scraper-mode #filter-flyout{display:none}
@media(hover:hover) and (pointer:fine){.filter-rail button:hover{background:#f0eeeb;color:#252321}}
@media(prefers-reduced-motion:reduce){#filter-flyout{transform:none;transition:opacity 100ms ease,visibility 0s 100ms}.filter-rail button{transition:none}}
/* Compact rail ends after its final control; interrupted transitions continue smoothly. */
#gallery-sidebar{bottom:auto;height:calc(100dvh - 104px);transition:width .32s cubic-bezier(.22,1,.36,1),height .32s cubic-bezier(.22,1,.36,1)}
#content{transition:margin-left .32s cubic-bezier(.22,1,.36,1)}
#component-view{transition:left .32s cubic-bezier(.22,1,.36,1)}
.preview-open{overflow:hidden}
#preview-portal{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;background:#faf9f7;border:0;border-radius:26px;box-shadow:0 20px 80px #17171730}
#preview-portal::backdrop{background:#16161677;backdrop-filter:blur(8px)}
#preview-portal #local-dialog{position:static;background:none;padding:0;display:block}
#preview-portal .dlg{width:100%;color:#191919}
#preview-portal .dlg-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px}
#preview-portal .dlg-head h2{font-size:14px;margin:0;line-height:1.6}
#preview-portal .dlg-head button{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;font-size:24px;padding:0;border-radius:50%;margin-left:auto;line-height:1.35}
#preview-portal .dlg-body{padding:0 22px 16px;font-size:12px;color:#666;line-height:1.35}
#preview-portal .dlg-body img{display:block;width:100%;max-height:60vh;object-fit:contain;border-radius:12px;margin-bottom:18px}
#preview-portal .dlg-body code{overflow-wrap:anywhere;font-size:12px;line-height:1.35}
#preview-portal .dlg-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:0 22px 22px}
#preview-portal .dlg-actions button,#preview-portal .dlg-actions a{font-size:12px;padding:12px 18px;border:0;border-radius:999px;background:#eeece9;color:#191919;line-height:1.35}
#preview-portal .dlg-actions .primary{background:#191919;color:white}
@media(prefers-reduced-motion:reduce){#gallery-sidebar,#content,#component-view{transition:none}}

/* A lone collapsed menu control is square and centered on both axes. */
.sidebar-collapsed .sidebar-head{height:var(--sidebar-width)}

/* Match Website main padding exactly; the embedded grid shares gallery.css. */
#component-view{top:30px;left:calc(var(--sidebar-width) + 32px);right:0}
@media(max-width:760px){#component-view{top:24px;left:80px;right:0}}

/* Let cards scroll behind the floating dock, without an iframe cutoff above it. */
#component-view{bottom:0}
html,body{overscroll-behavior-y:none}
.ambient{inset:-2px;overflow:hidden}
.ambient canvas{width:100%!important;height:100%!important}

/* Keep page headings below the fixed account/saved controls. */
main#content{padding-top:88px}#component-view{top:88px}
.saved-entry{position:fixed;top:18px;right:76px;z-index:42;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fffffff2;box-shadow:0 4px 24px #1717170c}
.saved-entry svg{width:20px;height:20px}.saved-entry[aria-current]{background:#191919;color:#fff}
.account-mode .saved-entry{display:none}
.bookmarks-mode main#content{margin:0 auto;max-width:1320px;padding:88px 32px 140px}
.bookmarks-mode .gallery-switcher-indicator{display:none}
.saved-heading h1{font-size:62px;line-height:1.05;font-weight:600;letter-spacing:-.04em;margin:0 0 20px}.saved-heading p{font-size:16px;line-height:1.6;color:#0a0a0a;max-width:600px}.saved-heading .library-link{margin-top:0}
.saved-controls{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:24px;margin-top:36px}.saved-controls .type-filter{margin:0}.saved-search{display:grid;gap:8px;font-size:12px;line-height:1.35}.saved-search input{border:0;background:#fff;padding:12px 16px;border-radius:12px;font:inherit;font-size:16px;max-width:100%}.saved-count{font-size:12px;margin:24px 0}.saved-card-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;line-height:1.35;margin-top:10px}.saved-card-meta button{min-height:44px;text-decoration:underline;text-underline-offset:3px}.saved-grid .empty{grid-column:1/-1}
#preview-portal .dlg-head h2{font-size:24px;line-height:1.35;font-weight:600}#preview-portal .dlg-body{font-size:14px;line-height:1.6;color:#0a0a0a}
@media(max-width:760px){main#content{padding-top:88px}.saved-entry{top:16px;right:68px}.bookmarks-mode main#content{padding:88px 20px 140px}.saved-heading h1{font-size:32px}.saved-grid{grid-template-columns:1fr}.saved-controls{display:block}.saved-search{margin-top:24px}.saved-search input{width:100%}#preview-portal .dlg-head h2{font-size:16px;line-height:1.6}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){#gallery-sidebar,#filter-flyout,#filter-flyout:before,.gallery-switcher,.saved-entry{background:#fff;backdrop-filter:none}#preview-portal::backdrop{backdrop-filter:none;background:#161616b3}#component-categories a,.category-subgroup h4{color:#191919}}
