/* Brand row above icon-and-label navigation on every page. */
html body .site-header{display:grid;grid-template-columns:42px minmax(0,1fr) auto;column-gap:8px;row-gap:0;align-items:center;padding:8px 14px 0}
html body .site-header>.brand-logo{grid-column:1;grid-row:1;width:42px;height:42px}
html body .site-header>.brand-copy{grid-column:2;grid-row:1;min-width:0}
html body .site-header>.header-actions{grid-column:3;grid-row:1;justify-self:end;display:flex;flex:none;flex-wrap:nowrap;gap:0;min-width:0}
html body .site-header>.header-actions>:not(#optionsMenu){display:none!important}
html body .site-header>.header-actions #optionsMenu>.options-toggle{box-sizing:border-box;width:auto;min-width:60px;height:44px;min-height:44px;padding:7px 9px;gap:5px;border-radius:10px}
html body .site-header>.header-actions #optionsMenu .options-toggle-label{position:static;display:inline;width:auto;height:auto;margin:0;padding:0;overflow:visible;clip:auto;white-space:nowrap;font-size:13px}
html body .site-header>.header-actions #optionsMenu>.options-toggle .options-chevron{display:none}
html body .site-header>.header-primary-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:min(100%,720px);justify-self:center;min-width:0;margin:3px 0 0;gap:0}
html body .site-header .header-primary-nav>a{box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;min-width:0;min-height:58px;margin:0;padding:5px 2px;color:var(--text);font:inherit;font-size:13px;font-weight:500;text-decoration:none;letter-spacing:0;white-space:normal;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;transform:none}
html body .site-header .header-primary-nav>a:hover{color:var(--gold);background:var(--gold-soft)}
html body .site-header .header-primary-nav>a[aria-current="page"]{color:var(--gold);border-bottom-color:var(--gold);font-weight:700;background:transparent}
html body .site-header .header-primary-nav>a:focus-visible,html body .site-header #optionsMenu>summary:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
html body .site-header .header-primary-nav>a>svg{position:static;display:block;width:19px;height:19px;min-width:19px;stroke:currentColor;fill:none}
html body .site-header .header-primary-nav>a>span{position:static;display:block;width:auto;height:auto;margin:0;padding:0;overflow:visible;clip:auto;white-space:normal;overflow-wrap:anywhere;color:inherit;font:inherit;line-height:1.4}
html body .site-header>.sources-toolbar,html body .site-header>.search-workspace{grid-column:1/-1;grid-row:auto}
/* The home-page playlist remains fully functional within More. */
html body .site-header #optionsMenu .header-playlist-in-more{position:static;width:100%;margin:0;border-bottom:1px solid var(--line)}
html body .site-header #optionsMenu .header-playlist-in-more>.playlist-toggle{box-sizing:border-box;display:flex;justify-content:flex-start;width:100%;min-height:48px;padding:8px 11px;gap:11px;border:0;border-radius:0;background:transparent;color:var(--text)}
html body .site-header #optionsMenu .header-playlist-in-more>.playlist-toggle .options-toggle-label{position:static;display:inline;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal;font-size:14px}
html body .site-header #optionsMenu .header-playlist-in-more>.playlist-toggle .options-chevron{display:block;margin-left:auto}
html body .site-header #optionsMenu .header-playlist-in-more>.playlist-panel{box-sizing:border-box;position:static;width:100%;max-width:100%;max-height:none;margin:0;padding:8px;border:0;border-radius:0;box-shadow:none;background:var(--menu-bg);overflow:visible}
@media(max-width:700px){html body .site-header{width:100%;grid-template-columns:38px minmax(0,1fr) auto;padding:6px 10px 0;border-radius:0}html body .site-header>.brand-logo{width:38px;height:38px}html body .site-header>.header-primary-nav{width:100%}html body .site-header .header-primary-nav>a{min-height:56px}}
@media(max-width:360px){html body .site-header{grid-template-columns:32px minmax(0,1fr) auto;column-gap:4px;padding-inline:6px}html body .site-header>.brand-logo{width:32px;height:32px}html body .site-header>.header-actions #optionsMenu>.options-toggle{min-width:56px;padding-inline:6px}html body .site-header .header-primary-nav>a{font-size:12px}}
/* Admin controls stay immediately accessible without wrapping into another row. */
@media(max-width:700px){
 html body .site-header .brand-copy h1.brand-breadcrumb{display:flex;flex-wrap:nowrap;overflow:hidden;white-space:nowrap}
 html body .site-header .brand-breadcrumb .brand-root{min-width:0;overflow:hidden;text-overflow:ellipsis}
 html body .site-header .brand-breadcrumb .brand-current{flex:0 0 auto}
 html body .site-header:is([data-primary-context="sources"],[data-primary-context="comments"]) .brand-breadcrumb :is(.brand-separator,.brand-current){display:none}
}

/* Keep More within the visible viewport, including the management strip. */
html body .site-header #optionsMenu>.options-panel{box-sizing:border-box;max-height:var(--header-menu-height,calc(100dvh - var(--admin-bar-height,0px) - 84px));overscroll-behavior:contain}
html body .site-header #optionsMenu>.options-toggle{background:transparent;border-color:transparent;box-shadow:none}
html body .site-header #optionsMenu[open]>.options-toggle,html body .site-header #optionsMenu>.options-toggle:hover{background:var(--gold-soft);border-color:var(--line);transform:none}
html body .site-header>.header-primary-nav{border-top:1px solid var(--line)}

/* Low-height landscape: the entire header scrolls with the page, including after menu use. */
@media (orientation:landscape) and (max-height:500px){
 html body .site-header{grid-template-columns:34px minmax(0,1fr) auto;padding:4px 12px 0;position:relative;top:auto}
 html.site-admin-active body .site-header{top:auto}
 html body .site-header>.brand-logo{width:34px;height:34px}
 html body .site-header>.brand-copy h1{font-size:22px;line-height:1.35}
 html body .site-header>.header-primary-nav{width:100%;margin-top:0}
 html body .site-header .header-primary-nav>a{flex-direction:row;flex-wrap:wrap;gap:4px;min-height:44px;padding:4px 2px}
}
/* The global brand is independent of each page heading. */
html body .site-header>.brand-copy h1{font-size:clamp(24px,3vw,32px);line-height:1.35;letter-spacing:.035em;white-space:nowrap}
@media(max-width:360px){html body .site-header>.brand-copy h1{font-size:22px}}
@media(orientation:landscape) and (max-height:500px){html body .site-header>.brand-copy h1{font-size:26px}}

/* More: shared text rhythm for links, disclosure rows and nested settings. */
html body .site-header #optionsMenu>.options-panel{width:min(360px,calc(100vw - 24px));padding:10px 12px;text-align:left;letter-spacing:0;line-height:1.5}
html body .site-header #optionsMenu .options-panel-header{padding:4px 10px 10px}
html body .site-header #optionsMenu .options-panel-header h2{font-family:inherit;font-size:16px;font-weight:700;letter-spacing:0}
html body .site-header #optionsMenu .option-action{box-sizing:border-box;grid-template-columns:20px minmax(0,1fr) 18px;gap:10px;min-height:48px;padding:11px 10px;text-align:left;line-height:1.5}
html body .site-header #optionsMenu .option-action>svg{width:20px;height:20px}
html body .site-header #optionsMenu .option-action>span:nth-child(2){min-width:0}
html body .site-header #optionsMenu .option-action strong{font-size:14px;font-weight:600;line-height:1.5;white-space:normal;overflow-wrap:anywhere;word-break:normal}
html body .site-header #optionsMenu .option-action>span:last-child{justify-self:end;font-size:16px;line-height:1}
html body .site-header #optionsMenu :is(.guide-appearance,.stamp-meaning-guide,.foreground-settings){margin:0;padding:0;border-bottom:1px solid var(--line)}
html body .site-header #optionsMenu :is(.guide-appearance,.stamp-meaning-guide,.foreground-settings)>summary{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:11px 10px 11px 40px;list-style:none;font:inherit;font-size:14px;font-weight:600;line-height:1.5;color:var(--text);cursor:pointer;overflow-wrap:anywhere}
html body .site-header #optionsMenu :is(.guide-appearance,.stamp-meaning-guide,.foreground-settings)>summary::-webkit-details-marker{display:none}
html body .site-header #optionsMenu :is(.guide-appearance,.stamp-meaning-guide,.foreground-settings)>summary::after{content:'';flex:0 0 7px;width:7px;height:7px;margin:0 4px 4px 0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
html body .site-header #optionsMenu :is(.guide-appearance,.stamp-meaning-guide,.foreground-settings)[open]>summary::after{transform:rotate(225deg);margin-bottom:0}
html body .site-header #optionsMenu :is(.guide-appearance,.stamp-meaning-guide,.foreground-settings)>summary:hover{background:var(--surface-soft)}
html body .site-header #optionsMenu .guide-appearance>.option-group{margin:0 10px;padding:12px 0}
html body .site-header #optionsMenu .option-group-heading>span{font-size:13px;line-height:1.5}
html body .site-header #optionsMenu .option-group:has(>.option-segmented){grid-template-columns:76px minmax(0,1fr);gap:8px}
html body .site-header #optionsMenu .option-segmented button{min-height:44px;white-space:normal;line-height:1.5}
html body .site-header #optionsMenu .background-picker-toggle{min-height:44px;line-height:1.5}
html body .site-header #optionsMenu .stamp-meaning-guide :is(dl,p){margin:10px 10px 14px 40px;font-size:13px;line-height:1.7}
html body .site-header #optionsMenu .foreground-settings .foreground-transparency-control{padding:10px}
html body .site-header #optionsMenu .header-playlist-in-more>.playlist-toggle{min-height:48px;padding:11px 10px;gap:10px;font-size:14px;font-weight:600;line-height:1.5;text-align:left}
html body .site-header #optionsMenu .header-playlist-in-more>.playlist-toggle>svg:first-child{width:20px;height:20px;flex-shrink:0}
html body .site-header #optionsMenu .header-playlist-in-more>.playlist-toggle .options-chevron{width:18px;flex-shrink:0}
html body .site-header #optionsMenu :is(a,button,summary):focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
@media(max-width:360px){html body .site-header #optionsMenu .option-group:has(>.option-segmented){grid-template-columns:minmax(0,1fr)}html body .site-header #optionsMenu .option-group:has(>.option-segmented)>.option-group-heading{margin-bottom:4px}}

/* Task-based More sections: compact overview, full-width controls inside. */
html body .site-header #optionsMenu .more-section{margin:0;border-bottom:1px solid var(--line)}
html body .site-header #optionsMenu .more-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;min-height:52px;padding:12px 10px;list-style:none;cursor:pointer;font-size:15px;font-weight:600;line-height:1.5}
html body .site-header #optionsMenu .more-section>summary::-webkit-details-marker{display:none}
html body .site-header #optionsMenu .more-section>summary::after{content:'';flex:0 0 7px;width:7px;height:7px;margin-right:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
html body .site-header #optionsMenu .more-section[open]>summary::after{transform:rotate(225deg)}
html body .site-header #optionsMenu .more-section[open]>summary{color:var(--gold);background:var(--surface-soft)}
html body .site-header #optionsMenu .more-section>.option-group{margin:0 10px;padding:12px 0}
html body .site-header #optionsMenu .more-section .option-action{border-bottom:0}
html body .site-header #optionsMenu .more-section .catalog-tool-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0 10px}
html body .site-header #optionsMenu .more-section :is(.catalog-tool-actions button,.danmaku-submit-entry){display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;min-height:48px;margin:0;padding:10px;border:0;border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:14px;text-align:left;white-space:normal}
html body .site-header #optionsMenu .more-section .catalog-tool-actions button::after{content:'→';color:var(--gold)}
html body .site-header #optionsMenu .more-section .catalog-reset-display{min-height:44px;margin:8px 0}
html body .site-header #optionsMenu .more-section :is(.foreground-settings,.stamp-meaning-guide){border-bottom:0}
html body .site-header #optionsMenu .more-section .catalog-card-fields>summary{min-height:44px;line-height:1.5;padding-block:10px;box-sizing:border-box;cursor:pointer}
html body .site-header #optionsMenu .more-section .catalog-card-field-grid label{min-height:44px;white-space:normal}
html body .site-header #optionsMenu #catalogToolsStatus:empty{display:none}
html body .site-header #optionsMenu [data-admin-menu-entry]{margin-top:8px;border-bottom:0}

/* Decorative menu icons use local SVG masks and inherit the active theme. */
html body .site-header #optionsMenu [data-more-section="browse"]>summary{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22%2F%3E%3C%2Fsvg%3E")}
html body .site-header #optionsMenu [data-more-section="appearance"]>summary{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203a9%209%200%201%200%200%2018h1a2%202%200%200%200%201-3.7%201.5%201.5%200%200%201%20.8-2.8H17a4%204%200%200%200%204-4C21%206.3%2017%203%2012%203Z%22%2F%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%2210%22%20r%3D%22.8%22%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%227%22%20r%3D%22.8%22%2F%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%228%22%20r%3D%22.8%22%2F%3E%3C%2Fsvg%3E")}
html body .site-header #optionsMenu [data-more-section="help"]>summary{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2011.5a8.5%208.5%200%200%201-8.5%208.5H4l-2%202V11.5a9.5%209.5%200%200%201%2019%200Z%22%2F%3E%3Cpath%20d%3D%22M9%208a3%203%200%200%201%206%200c0%202-3%202-3%204m0%203h.01%22%2F%3E%3C%2Fsvg%3E")}
html body .site-header #optionsMenu [data-catalog-history]{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010a9%209%200%201%201%201%207M3%204v6h6m3-4v6l4%202%22%2F%3E%3C%2Fsvg%3E")}
html body .site-header #optionsMenu [data-catalog-share]{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%225%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%226%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2219%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22m8.6%2010.5%206.8-4m-6.8%207%206.8%204%22%2F%3E%3C%2Fsvg%3E")}
html body .site-header #optionsMenu [data-danmaku-submit]{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%204h16v13H9l-5%204V4Z%22%2F%3E%3Cpath%20d%3D%22M8%208h8m-8%205h5%22%2F%3E%3C%2Fsvg%3E")}
html body .site-header #optionsMenu .stamp-meaning-guide>summary{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2014v-3a4%204%200%201%201%208%200v3l4%203v3H4v-3l4-3Z%22%2F%3E%3Cpath%20d%3D%22M7%2023h10%22%2F%3E%3C%2Fsvg%3E")}
html body .site-header #optionsMenu [data-more-section="browse"]>summary,html body .site-header #optionsMenu [data-more-section="appearance"]>summary,html body .site-header #optionsMenu [data-more-section="help"]>summary,html body .site-header #optionsMenu [data-catalog-history],html body .site-header #optionsMenu [data-catalog-share],html body .site-header #optionsMenu [data-danmaku-submit],html body .site-header #optionsMenu .stamp-meaning-guide>summary{display:grid;grid-template-columns:20px minmax(0,1fr) 18px;align-items:center;column-gap:10px;padding-left:10px}
html body .site-header #optionsMenu [data-more-section="browse"]>summary::before,html body .site-header #optionsMenu [data-more-section="appearance"]>summary::before,html body .site-header #optionsMenu [data-more-section="help"]>summary::before,html body .site-header #optionsMenu [data-catalog-history]::before,html body .site-header #optionsMenu [data-catalog-share]::before,html body .site-header #optionsMenu [data-danmaku-submit]::before,html body .site-header #optionsMenu .stamp-meaning-guide>summary::before{content:"";display:block;width:20px;height:20px;background:currentColor;-webkit-mask:var(--more-icon) center/contain no-repeat;mask:var(--more-icon) center/contain no-repeat}
html body .site-header #optionsMenu .more-section>summary::after{justify-self:center}
html body .site-header #optionsMenu .more-section .catalog-tool-actions button[data-catalog-history],html body .site-header #optionsMenu .more-section .catalog-tool-actions button[data-catalog-share],html body .site-header #optionsMenu .more-section button.danmaku-submit-entry[data-danmaku-submit]{display:grid;grid-template-columns:20px minmax(0,1fr) 18px;column-gap:10px}

/* Each expanded level steps inward; top-level headings keep their original edge. */
html body .site-header #optionsMenu .more-section[data-more-section] > :not(summary){box-sizing:border-box;min-width:0;width:calc(100% - 20px);margin-left:20px;margin-right:0}
html body .site-header #optionsMenu .more-section[data-more-section] > .catalog-tool-actions{padding-left:0;padding-right:0}
html body .site-header #optionsMenu .more-section[data-more-section] > .option-group{padding-left:10px;padding-right:10px}
html body .site-header #optionsMenu .more-section[data-more-section] .foreground-settings > .foreground-transparency-control{margin-left:20px;width:calc(100% - 20px);box-sizing:border-box;min-width:0}
html body .site-header #optionsMenu .more-section[data-more-section] .catalog-card-field-grid{margin-left:12px;width:calc(100% - 12px);box-sizing:border-box;min-width:0}

/* One toolbar layout in the catalogue and below the pinned header. */
html body #catalogSearchToolbar:has(>.docked-controls-toggle){
 display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,128px) max-content;
 align-items:center;gap:8px;box-sizing:border-box;min-width:0;overflow:visible;
}
html body #catalogSearchToolbar>.search-shell{grid-column:1;grid-row:1;min-width:0}
html body #catalogSearchToolbar>.performer-filter{grid-column:2;grid-row:1;min-width:0}
html body #catalogSearchToolbar>.docked-controls-toggle{
 display:flex;position:relative;grid-column:3;grid-row:1;align-items:center;justify-content:center;
 width:auto;min-width:60px;max-width:none;min-height:44px;height:auto;margin:0;padding:8px 10px;
 white-space:nowrap;cursor:pointer;
}
html body #catalogSearchToolbar>.docked-controls-content{
 display:block;grid-column:1/-1;grid-row:2;min-width:0;max-height:55dvh;overflow:auto;overscroll-behavior:contain;
}
html body #catalogSearchToolbar>.docked-controls-content[hidden]{display:none}
html body #catalogSearchToolbar>.docked-controls-content>.filter-stack{display:block;width:100%;margin:0;min-width:0}
html body #catalogSearchToolbar .advanced-filters{position:static;margin:0;min-width:0;border:0}
html body #catalogSearchToolbar .advanced-filters>summary{display:none}
html body #catalogSearchToolbar .advanced-filters>.advanced-filters-panel{
 position:static;max-height:none;width:100%;box-sizing:border-box;overflow:visible;
 padding:12px;border:0;border-radius:10px;box-shadow:none;
}
html body .site-header>#catalogSearchToolbar{
 grid-area:auto;position:absolute;inset:100% -1px auto;max-width:none;width:auto;
 margin:0;padding:10px 14px;background:var(--menu-bg);background-image:none;
 border:1px solid var(--line);border-top:0;border-radius:0 0 22px 22px;
 max-height:none;backdrop-filter:none;-webkit-backdrop-filter:none;
}
html body .site-header>#catalogSearchToolbar::after{display:none}
html body .site-header>#catalogSearchToolbar>.docked-controls-content{
 max-height:max(60px,calc(var(--docked-controls-max-height,60dvh) - 74px));
}
@media(max-width:700px){
 html body .site-header>#catalogSearchToolbar{padding:8px 10px;border-radius:0}
 html body #catalogSearchToolbar:has(>.docked-controls-toggle){grid-template-columns:minmax(0,1fr) 90px max-content;gap:6px}
}
@media(max-width:440px){
 html body #catalogSearchToolbar:has(>.docked-controls-toggle){grid-template-columns:minmax(0,1fr) max-content}
 html body #catalogSearchToolbar>.search-shell{grid-column:1/-1;grid-row:1}
 html body #catalogSearchToolbar>.performer-filter{grid-column:1;grid-row:2}
 html body #catalogSearchToolbar>.docked-controls-toggle{grid-column:2;grid-row:2}
 html body #catalogSearchToolbar>.docked-controls-content{grid-row:3}
 html body .site-header>#catalogSearchToolbar>.docked-controls-content{max-height:max(60px,calc(var(--docked-controls-max-height,60dvh) - 124px))}
}

/* Optical alignment for the Xizhao mark beside the CJK title. */
html body .site-header>.brand-copy{align-self:center}
html body .site-header>.brand-copy h1{margin-block:0}
html body .site-header>.brand-logo{align-self:center}
html body .site-header>.brand-logo img[src*="logo-xz.png"]{transform:translateY(2px)}

/* Preview home is an additional entry for signed-in administrators only. */
html body .site-header>.header-primary-nav.has-home-preview{grid-template-columns:repeat(6,minmax(0,1fr))}
