#archiveNavigation,#archiveDrawer{display:none}
html.desktop-window body header{display:none!important}
html.desktop-window #archiveNavigation{display:flex;position:fixed;top:64px;left:var(--gallery-header-inset);right:var(--gallery-header-inset);height:28px;align-items:center;gap:18px;padding-left:50px;z-index:32;background:var(--surface);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px);transition:transform 240ms ease-out,opacity 180ms ease-out,visibility 0s 180ms}
html.desktop-window.desktop-search-open #archiveNavigation{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition-delay:0s}
#archiveNavigation button{position:relative;padding:0;color:var(--ui-line-color);font-size:12px;line-height:14px;white-space:nowrap}
#archiveNavigation button:hover,#archiveNavigation button:focus-visible,#archiveNavigation button[aria-expanded="true"]{color:var(--foreground)}
html.desktop-window #archiveNavigation button::before{content:'';position:absolute;inset:-7px -9px;pointer-events:auto}
html.desktop-window #archiveDrawer:not([hidden]){display:block;position:fixed;top:92px;left:var(--gallery-header-inset);right:var(--gallery-header-inset);z-index:19;background:var(--surface);padding:6px 0 14px 50px;max-height:55dvh;overflow:auto;scrollbar-width:none}
#archiveDrawer::-webkit-scrollbar{display:none}
body.artwork-open #archiveDrawer{visibility:hidden}
/* The canvas and its artwork sizes stay as before; only its top offset changes. */
html.desktop-window body{padding-top:var(--wall-base,106px);transition:padding-top 360ms cubic-bezier(.22,1,.36,1)}
html.desktop-window.wall-raised{--wall-base:67px}
html.desktop-window body .category-pager{display:block;overflow:hidden!important;scroll-snap-type:none;overscroll-behavior:none}
html.desktop-window .category-page{width:100%;height:100%;scroll-snap-align:none}
html.desktop-window .category-page:not([data-page=""]){display:none!important}
.archive-date{display:grid;grid-template-columns:110px 42px minmax(0,1fr);gap:24px;align-items:start;min-height:186px}
.archive-years{display:flex;flex-direction:column;align-items:flex-start}
.archive-years button{font:400 32px/1.25 Arial,sans-serif;padding:0;color:var(--ui-line-color)}
.archive-years button:hover,.archive-years button:focus-visible,.archive-years button.previewed{color:var(--foreground)}
.archive-year-empty{opacity:1}
.archive-month-labels{display:flex;flex-direction:column;justify-content:space-between;height:160px;align-items:flex-start}
.archive-month-labels button{padding:0;color:var(--ui-line-color);font-size:10px;line-height:12px;white-space:nowrap}
.archive-month-labels button:hover,.archive-month-labels button:focus-visible,.archive-month-labels button.previewed{color:var(--foreground)}
.archive-previews{display:grid;grid-auto-flow:column;grid-template-rows:repeat(var(--preview-rows,2),88px);grid-auto-columns:64px;gap:10px;justify-content:safe end;align-items:start;min-width:0;width:100%;overflow-x:auto;overflow-y:hidden;min-height:88px;scrollbar-width:none;overscroll-behavior-x:contain}
.archive-previews::-webkit-scrollbar{display:none}
.archive-previews button{display:block;padding:0;width:64px;height:88px;position:relative;isolation:isolate;border-radius:10.27px;overflow:hidden;outline:var(--ui-line-width) solid var(--ui-line-color);outline-offset:calc(-1 * var(--ui-line-width));animation:preview-enter 260ms ease-out var(--preview-delay,0ms) both}
.archive-previews img{display:block;width:64px;height:88px;object-fit:cover;object-position:center;border-radius:inherit;background:var(--surface)}
.archive-previews.preview-static button{animation:none}
.archive-empty{grid-column:1 / -1;font-size:11px;color:var(--muted)}
#archiveDrawer>.archive-previews{margin-top:24px}
.archive-options{display:flex;flex-wrap:wrap;gap:14px 26px}
.archive-options button,.archive-work-search button{color:var(--ui-line-color);font-size:12px;line-height:14px}
.archive-options button:hover,.archive-options button:focus-visible,.archive-options button.previewed,.archive-work-search button:hover{color:var(--foreground)}
.archive-work-search{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.archive-work-search input{background:transparent;border:0;border-bottom:var(--ui-line-width) solid var(--ui-line-color);padding:8px;color:var(--foreground);max-width:100%}
@keyframes preview-enter{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
/* Retrieval never adds a horizontal divider above the artwork wall. */
#archiveNavigation::after,#archiveDrawer::after{content:none}
html.desktop-window .brand-hover-zone{position:relative;isolation:isolate}
html.desktop-window .brand-hover-zone::before{content:'';position:absolute;inset:-8px -12px;pointer-events:auto;z-index:-1}
html.desktop-window:not(.desktop-search-open) #desktopSearchReveal{top:64px;height:31px;width:min(560px,calc(100% - 36px))}
@media(max-width:650px){html.desktop-window #archiveNavigation{padding-left:0;gap:12px;overflow-x:auto;scrollbar-width:none}html.desktop-window #archiveDrawer:not([hidden]){padding:6px 12px 20px}.archive-date{grid-template-columns:1fr;gap:20px}.archive-years{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.archive-years button{font-size:22px}.archive-month-labels{height:auto;flex-direction:row;justify-content:flex-start;flex-wrap:wrap;gap:12px 16px}}
@media(prefers-reduced-motion:reduce){html.desktop-window body,html.desktop-window #archiveNavigation{transition:none}.archive-previews button{animation:none}}

/* Small archive previews share the wall hover, with a proportionally smaller corner. */
.archive-previews button{transition:border-top-right-radius 280ms cubic-bezier(.22,1,.36,1)}
@media(hover:hover) and (pointer:fine){
.archive-previews button:hover{border-top-right-radius:0}
.archive-previews button::after{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to bottom,rgba(96,96,96,.32) 0%,rgba(96,96,96,0) 60%,rgba(96,96,96,0) 100%);mix-blend-mode:multiply;opacity:0;transition:opacity 220ms ease;pointer-events:none}
.archive-previews button:hover::after{opacity:1}
}
@media(prefers-reduced-motion:reduce){.archive-previews button,.archive-previews button::after{transition:none}}

/* Divider belongs between the open menu and its submenu, never above the wall. */
html.desktop-window.archive-content-open #archiveNavigation::after{content:'';position:absolute;left:50px;right:0;bottom:0;height:1px;background:var(--ui-line-color);pointer-events:none}
.archive-date .archive-previews{height:186px;min-height:186px}
@media(max-width:650px){html.desktop-window.archive-content-open #archiveNavigation::after{left:0}.archive-date .archive-month-labels{min-height:40px;align-content:flex-start}}

/* 2026-10-14 voice-confirmed retrieval: the drawer overlays, never adds a third wall offset. */
.archive-date{display:flex;flex-direction:column;gap:14px;min-height:240px}
.archive-years{flex-direction:row;gap:26px}
.archive-years button{font:400 12px/14px Arial,sans-serif}
.archive-month-labels{height:14px;min-height:14px;flex-direction:row;justify-content:flex-start;gap:16px}
.archive-preview-region{width:100%;min-width:0;height:186px;margin-top:20px}
.archive-date .archive-preview-region{margin-top:0}
.archive-previews{margin-left:auto;justify-content:start;scroll-behavior:auto;height:186px;min-height:186px}
.archive-preview-spacer{width:64px;height:88px;pointer-events:none}
html.desktop-window.wall-raised #desktopSearchReveal{pointer-events:none!important}
@media(max-width:650px){html.desktop-window #archiveDrawer:not([hidden]){padding:6px 0 14px}.archive-years{display:flex;gap:20px}.archive-month-labels{min-height:14px;height:auto;flex-wrap:wrap}}

/* 19:32 revision: hover leaves the canvas in place; selection lowers it smoothly. */
html.desktop-window body{padding-top:67px;transition:none;overflow-y:hidden}
html.desktop-window body .category-pager{height:calc(100dvh - 67px);transform:translate3d(0,var(--archive-wall-shift,0px),0);transition:transform 680ms cubic-bezier(.22,1,.36,1);will-change:transform}
html.desktop-window #archiveNavigation{transform:none;transition:opacity 0s 700ms,visibility 0s 700ms}
html.desktop-window.desktop-search-open #archiveNavigation{transition-delay:0s}
html.desktop-window #archiveNavigation button{opacity:0;transition:opacity 400ms ease var(--menu-out-delay,0ms),color 160ms ease}
html.desktop-window.desktop-search-open #archiveNavigation button{opacity:1;transition:opacity 400ms ease var(--menu-in-delay,0ms),color 160ms ease}
html.desktop-window:not(.archive-pinned) #archiveDrawer .archive-preview-region{display:none}
html.desktop-window:not(.archive-pinned) #archiveDrawer .archive-date{min-height:0}
html.desktop-window.archive-content-exit #archiveNavigation::after{content:none}
html.desktop-window.archive-content-exit #archiveDrawer{animation:none;pointer-events:none}
html.desktop-window.archive-content-exit #archiveDrawer button,html.desktop-window.archive-content-exit #archiveDrawer input{animation:archive-submenu-exit 350ms ease var(--submenu-exit-delay,0ms) both}
@keyframes archive-submenu-exit{to{opacity:0}}
@media(prefers-reduced-motion:reduce){html.desktop-window body .category-pager,html.desktop-window #archiveNavigation,html.desktop-window #archiveNavigation button{transition:none}html.desktop-window.archive-content-exit #archiveDrawer button,html.desktop-window.archive-content-exit #archiveDrawer input{animation:none}}

/* 21:44 revision: lower the rounded viewing boundary, never translate the artwork wall. */
html.desktop-window body .category-pager{transform:none;transition:none;will-change:auto}
#archiveTopCurtain{display:none}
html.desktop-window #archiveTopCurtain{display:block;position:fixed;top:67px;left:0;right:0;height:var(--archive-wall-shift,0px);background:var(--surface);z-index:18;pointer-events:none;transition:height 680ms cubic-bezier(.22,1,.36,1)}
html.desktop-window body.artwork-open .category-pager{visibility:hidden;pointer-events:none}
html.desktop-window body.artwork-open #archiveTopCurtain{display:none}
html.desktop-window body.artwork-open #archiveDrawer{visibility:visible;z-index:33}
html.desktop-window #dialog{top:152px;bottom:0;height:calc(100dvh - 152px);max-height:calc(100dvh - 152px);z-index:20}
html.desktop-window #detail.desktop-viewer{padding-top:0;grid-template-columns:var(--viewer-image-width) var(--viewer-text-width) var(--viewer-thumb-width)}
html.desktop-window #detail.desktop-viewer>.image-stage,html.desktop-window #detail.desktop-viewer>.related-works{top:0}
html.desktop-window #detail.desktop-viewer>.related-works,html.desktop-window #detail.desktop-viewer .related-works .related-grid{width:var(--viewer-thumb-width)}
html.desktop-window #detail.desktop-viewer .related-works .related-grid{grid-template-columns:var(--viewer-thumb-width)}
html.desktop-window #detail.desktop-viewer.desktop-expanded>.image-stage{grid-column:1 / span 2;width:100%;border-radius:var(--viewer-frame-radius,24px)!important}
html.desktop-window #detail.desktop-viewer .artwork-controls{position:absolute;left:0;top:0;z-index:8;display:flex;gap:8px;padding:10px}
.artwork-controls button{width:32px;height:32px;border-radius:50%;background:var(--surface);color:var(--foreground);font-size:21px;line-height:1;opacity:0;transition:opacity 180ms ease}
.artwork-controls{min-width:94px;min-height:52px}
.artwork-controls:hover button,.artwork-controls:focus-within button{opacity:.9}
html.desktop-window #detail.desktop-expanded .artwork-enlarge{display:none}
html.desktop-window #detail.desktop-viewer.viewer-focused.desktop-expanded>.image-stage{grid-column:1;width:var(--viewer-image-width)}
html:not(.desktop-window) .panel,html:not(.desktop-window) .panel.applied{left:12px;right:12px;width:auto;max-width:340px;top:var(--mobile-search-top,106px);padding:12px;max-height:min(calc(100svh - 182px),var(--mobile-search-height,100svh));overflow-x:hidden}
html:not(.desktop-window) .panel input,html:not(.desktop-window) .panel select{font-size:16px;min-width:0;max-width:100%;padding:8px 10px;height:38px}
html:not(.desktop-window) .panel .panel-head{margin-bottom:10px}
html:not(.desktop-window) .panel .field{margin-bottom:8px}
html:not(.desktop-window) .panel .note{display:none}
html:not(.desktop-window) .panel .result-count{margin:8px 0 0}
@media(prefers-reduced-motion:reduce){html.desktop-window #archiveTopCurtain{transition:none}}

/* Clip the enlarged artwork once, at the shared rounded image-and-text frame. */
html.desktop-window #detail.desktop-viewer.desktop-expanded>.image-stage{overflow:hidden;isolation:isolate;border-radius:var(--viewer-frame-radius,24px)!important}

/* Upward return clears menu paint immediately; the rounded boundary keeps animating. */
html.desktop-window.wall-raised #archiveNavigation{opacity:0;visibility:hidden;pointer-events:none;background:transparent;transition:none}
html.desktop-window.wall-raised #archiveNavigation button{opacity:0;transition:none}

/* Hover submenus stay inside the preallocated band and never cover the wall edge. */
html.desktop-window:not(.archive-pinned) #archiveDrawer:not([hidden]){height:60px;max-height:60px;padding-bottom:0;overflow:hidden;background:transparent}
/* Shared image/text frame, with a uniform theme background and larger corners. */
html.desktop-window #detail.desktop-viewer{--viewer-frame-radius:24px}
html.desktop-window #detail.desktop-viewer::before{border-radius:var(--viewer-frame-radius)}
html.desktop-window #detail.desktop-viewer>.image-stage{background:var(--surface);border-radius:var(--viewer-frame-radius) 0 0 var(--viewer-frame-radius)!important}
html.desktop-window #detail.desktop-viewer>.detail-info{border-radius:0 var(--viewer-frame-radius) var(--viewer-frame-radius) 0}
html.desktop-window #detail.desktop-viewer.viewer-focused>.image-stage{border-radius:var(--viewer-frame-radius) var(--viewer-frame-radius) 0 0!important}
html.desktop-window #detail.desktop-viewer.viewer-focused>.detail-info{border-radius:0 0 var(--viewer-frame-radius) var(--viewer-frame-radius)}
html.desktop-window #detail.desktop-viewer.desktop-expanded>.image-stage{border-radius:var(--viewer-frame-radius)!important}
html.desktop-window #detail.desktop-viewer .artwork-controls{gap:6px;padding:12px;min-width:118px;min-height:68px}
html.desktop-window #detail.desktop-viewer .artwork-controls button{display:grid;place-items:center;width:44px;height:44px;padding:6px;border:0;border-radius:0;background:transparent;color:var(--foreground)}
html.desktop-window #detail.desktop-viewer .artwork-controls svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;pointer-events:none}
html.desktop-window #detail.desktop-viewer>.image-stage:hover .artwork-controls button,html.desktop-window #detail.desktop-viewer .artwork-controls:focus-within button{opacity:1}
html.desktop-window #detail.desktop-expanded .artwork-controls .artwork-enlarge{display:none}

/* The preview viewport shares both menu/wall edges; whole columns absorb spare width. */
html.desktop-window .archive-previews{margin-left:0;column-gap:var(--preview-column-gap,10px);row-gap:10px}
