/* This utility bar is outside .site-shell so it stays visible while scrolling. */
.theme-topbar{position:sticky;top:0;z-index:900;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 10px;min-width:0;padding:7px clamp(12px,4vw,56px);background:#101725;color:#f4f8ff;border-bottom:1px solid #42566e;box-shadow:0 2px 9px #0002}
.theme-topbar>.button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.theme-topbar>.button:hover{transform:none}
.theme-topbar .account-status{order:-1;display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;flex:1 1 270px;min-width:0;margin-right:auto;font-size:12px;line-height:1.5}
.theme-topbar .account-status .button{flex:none;padding:5px 10px;white-space:normal}
.account-status-error{flex-basis:100%;color:#ffb8c5;font-size:11px}
.account-status button:disabled{cursor:wait;opacity:.65}
.account-status-link{display:inline-block;max-width:100%;padding:5px 0;color:#f4f8ff;font-weight:700;overflow-wrap:anywhere;text-decoration:underline;text-decoration-color:#829cbb;text-underline-offset:3px}
.account-status-link:hover{color:#fff;text-decoration-thickness:2px}
.account-status-link:focus-visible{outline:2px solid #a9ddff;outline-offset:3px;border-radius:3px}
.account-status[data-account-state="loading"] .account-status-link{color:#c0cee0;font-weight:400}
html[data-theme="light"] .theme-topbar{background:#fff;color:#17263e;border-color:#c1cede;box-shadow:0 2px 9px #20355014}
html[data-theme="light"] .account-status-link{color:#17263e;text-decoration-color:#62758d}
html[data-theme="light"] .account-status-link:hover{color:#0b1728}
html[data-theme="light"] .account-status-link:focus-visible{outline-color:#243854}
html[data-theme="light"] .account-status[data-account-state="loading"] .account-status-link{color:#435770}
html[data-theme="light"] .account-status-error{color:#a12637}
/* Legacy windows reserve an in-page caption. Tabbed windows already place
   the entire catalogue below the native shell: no second offset is needed. */
html[data-desktop-app="true"] .theme-topbar{top:36px}
html[data-desktop-app="true"][data-desktop-layout="tabbed"]:not([data-desktop-guest-view="true"]) .theme-topbar{top:0}
html[data-desktop-guest-view="true"] .theme-topbar{top:var(--chartshub-guest-banner-height,64px)}
.native-download-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;flex-basis:100%;min-width:0;border-top:1px solid #42566e;padding-top:6px;font-size:12px;overflow-wrap:anywhere}
.native-download-summary>span{min-width:0;flex:1}
.desktop-update-notice{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-basis:100%;min-width:0;border-top:1px solid #829cbb;padding-top:7px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.desktop-update-notice[hidden]{display:none}
.desktop-update-notice>span{flex:1 1 240px;min-width:0}
.desktop-update-notice .button{min-width:0;max-width:100%;padding:5px 10px;white-space:normal;line-height:1.4}
html[data-theme="light"] .desktop-update-notice{border-color:#62758d}
.chart-card .native-download-cancel{grid-column:1 / -1;justify-self:start;align-self:start;padding:6px 9px;font-size:11px;white-space:normal}
@media(max-width:560px){.theme-topbar{gap:5px 8px;padding:6px 12px}.theme-topbar .account-status{flex-basis:100%}.theme-topbar>.button{font-size:11px;padding:5px 9px}}
@media(forced-colors:active){.theme-topbar{border-bottom:1px solid CanvasText}.account-status-link{color:LinkText;text-decoration-color:LinkText}.account-status-link:focus-visible{outline-color:Highlight}}
/* Shared navigation keeps catalogue handler targets mounted without exposing
   a second, page-specific menu or account link. */
[data-navigation-retired], [data-shared-navigation-header] .import-top{display:none!important}
[data-shared-navigation-header]{width:100%;min-width:0}
[data-shared-navigation-header] .topnav{min-width:0}
[data-shared-navigation-header] .top-actions{margin-left:auto}
[data-shared-navigation-header] .language-select{flex:none}
@media(max-width:790px){[data-shared-navigation-header]{gap:10px}[data-shared-navigation-header] .top-actions{gap:8px}[data-shared-navigation-header] .brand{font-size:20px}}
/* Pending archive actions must look unavailable as well as reject clicks. */
#folder-approval-list .button:disabled,#folder-approval-list .button:disabled:hover{opacity:.5;filter:grayscale(1);cursor:not-allowed;transform:none;box-shadow:none}
