html .front-pagebar [data-theme-toggle]{visibility:hidden!important}
/* Reference corner switch. Keep it outside the content's 1.1 zoom. */
html body:has(>.reference-theme-corner){position:relative;min-height:100dvh}
html body>button.reference-theme-corner{
 position:absolute!important;inset:0 0 auto auto!important;z-index:1100;box-sizing:border-box!important;display:block!important;
 width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
 color:#fff!important;overflow:hidden!important;clip-path:none!important;isolation:isolate;transform:none!important;zoom:1!important;transition:none!important;cursor:pointer;
}
html body>button.reference-theme-corner>*{display:none!important}
html body>button.reference-theme-corner::after{content:"";position:absolute;right:-66px;top:-66px;width:100px;height:100px;background:#1f2551;transform:rotate(45deg);z-index:-1;pointer-events:none}
html body>button.reference-theme-corner::before{content:"";position:absolute;right:4px;top:7px;width:12px;height:12px;background:#fff;mask:url("img/theme-moon.svg?v=379") center/contain no-repeat;-webkit-mask:url("img/theme-moon.svg?v=379") center/contain no-repeat;pointer-events:none}
html body>button.reference-theme-corner:focus-visible{outline:2px solid var(--brand,#283593);outline-offset:-2px}
@media(min-width:821px) and (max-width:1100px){html body>button.reference-theme-corner{transform:scale(.8)!important;transform-origin:top right}}
@media(max-width:820px){
 html body>button.reference-theme-corner{inset:auto 0 0 auto!important;transform:scale(.8)!important;transform-origin:bottom right}
 html body>button.reference-theme-corner::after{top:5px}
 html body>button.reference-theme-corner::before{top:25px}
}
/* Desktop history stays beside the star and uses the configured utility icon. */
@media(min-width:821px){
 html .front-main .front-pagebar #browseHistoryOpen.header-history.reference-desktop-history,html .front-main .front-pagebar #browseHistoryOpen.header-history.reference-desktop-history:hover{
  position:static!important;inset:auto!important;z-index:auto;display:flex!important;align-items:center;justify-content:center;
  box-sizing:border-box;width:40px!important;min-width:40px!important;max-width:40px!important;height:35px!important;min-height:35px!important;max-height:35px!important;
  margin:0!important;padding:0 12px!important;gap:0;border:0!important;border-radius:10px!important;background:#fff!important;color:#283593!important;
  box-shadow:none!important;backdrop-filter:none!important;filter:none!important;transform:none!important;zoom:.9090909091!important;opacity:1;visibility:visible;transition:box-shadow .15s ease-in-out!important;cursor:pointer;
 }
 html .front-main .front-pagebar #browseHistoryOpen.header-history.reference-desktop-history :is(svg,.utility-icon){display:block!important;flex:0 0 16px;width:16px;height:16px;min-width:16px;max-width:16px;filter:none!important;color:inherit!important}
 html .front-main .front-pagebar #browseHistoryOpen.header-history.reference-desktop-history .utility-icon img{display:block!important;filter:none!important}
 html .front-main .front-pagebar #browseHistoryOpen.header-history.reference-desktop-history::before{content:none!important}
 html .front-main .front-pagebar #browseHistoryOpen.header-history.reference-desktop-history::after{content:none!important}
 html .front-main .front-pagebar #browseHistoryOpen.header-history.reference-desktop-history:is(:hover,[aria-expanded="true"]){box-shadow:0 -2px 10px 1px rgba(0,0,0,.05)!important}
 html[data-theme="dark"] .front-main .front-pagebar #browseHistoryOpen.header-history.reference-desktop-history,html[data-theme="dark"] .front-main .front-pagebar #browseHistoryOpen.header-history.reference-desktop-history:hover{background:#2c2e2f!important;color:#e0e0e0!important}
 html .front-pagebar>.admin-pagebar-actions{margin-right:0;gap:6px}
}
html #browseHistoryCard.browse-history-card{border-radius:16px}
html #browseHistoryOpen[hidden]{display:none!important}
html.immersive-mode #browseHistoryOpen.reference-desktop-history,body.immersive-mode #browseHistoryOpen.reference-desktop-history{display:none!important}
.header-tool-tooltip{position:fixed;z-index:1200;width:max-content;max-width:calc(100vw - 16px);padding:5px 9px;border-radius:4px;background:#000;color:#fff;font:12px/1.5 var(--site-font-family,Arial,sans-serif);pointer-events:none;box-shadow:none}
.header-tool-tooltip[hidden]{display:none!important}
.header-tool-tooltip::after{content:"";position:absolute;left:100%;top:50%;margin-top:-4px;border:4px solid transparent;border-left-color:#000}
@media(prefers-reduced-motion:reduce){html .front-main .front-pagebar #browseHistoryOpen.header-history.reference-desktop-history{transition:none!important}}

/* Exact reference clock outline, rendered from its source vector. */
html .front-main .front-pagebar #browseHistoryOpen.header-history svg.header-reference-history{display:block!important;fill:currentColor!important;stroke:none!important;width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important}
html .front-main .front-pagebar #browseHistoryOpen.header-history svg.header-reference-history path{fill:currentColor!important;stroke:none!important}
@media(max-width:820px){html .front-main .front-pagebar #browseHistoryOpen.header-history svg.header-reference-history{width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important}}
@media(max-width:820px){html .front-main .front-pagebar #browseHistoryOpen.header-history svg.header-reference-history{zoom:.9090909091}}

/* Both header glyphs share one palette, including hover and open states. */
:root{--header-entry-icon-color:#283593}
:root[data-theme="dark"]{--header-entry-icon-color:#e0e0e0}
html .front-main .front-pagebar :is(button.group-chat-trigger,#browseHistoryOpen.header-history,#frontMenuBtn)>svg.header-reference-icon{color:var(--header-entry-icon-color)!important}
@media(max-width:820px){:root,:root[data-theme="dark"]{--header-entry-icon-color:var(--text,#282a2d)}}

/* Native vector for the reference mobile classification/menu glyph. */
html .front-main .front-pagebar #frontMenuBtn>svg.header-reference-menu{display:block;width:22.5px;height:20px;fill:currentColor!important;stroke:none!important;flex:none;zoom:.9090909091}
html .front-main .front-pagebar #frontMenuBtn>svg.header-reference-menu path{fill:currentColor!important;stroke:none!important}
@media(max-width:370px){html .front-main .front-pagebar #frontMenuBtn>svg.header-reference-menu{width:18px;height:16px}}
