html[data-theme] body.header-upgrade>header{display:flex!important;flex-wrap:nowrap!important;gap:22px!important;padding:14px 28px!important;min-height:88px;background:var(--dto-bg)!important;border-bottom:1px solid var(--dto-border)!important}.header-upgrade header .dto-wordmark{order:0!important;margin:0!important;padding:0 0 0 18px!important;border-left:1px solid var(--dto-text);font-size:18px!important;line-height:1.12!important;flex:none}.header-upgrade header .company-brand{order:4!important;margin:0!important;padding:0 0 0 20px!important;border-left:1px solid var(--dto-border);flex:none}.header-upgrade header .company-brand img{width:100px!important;height:54px!important;object-fit:contain}.header-upgrade .system-tabs{display:flex;align-self:stretch;align-items:stretch;gap:14px;padding:0!important;margin:auto!important;background:none!important}.header-upgrade .system-tabs button{display:flex;gap:12px;align-items:center;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:none!important;white-space:nowrap;padding:10px 12px!important;color:var(--dto-muted)!important}.header-upgrade .system-tabs button[aria-pressed=true]{color:var(--dto-text)!important;border-bottom-color:#00dbea!important}.header-upgrade .system-tabs button[aria-pressed=true] svg{color:#00dbea} .header-upgrade svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}.header-upgrade #header-snapshot{order:2;white-space:nowrap;font-size:12px;color:var(--dto-muted)}#header-snapshot:before{content:'';display:inline-block;width:9px;height:9px;background:#00d6a5;border-radius:50%;margin-right:9px}.header-upgrade #theme-toggle{order:3!important;background:none!important;border:0!important;box-shadow:none!important;width:38px!important;min-width:38px!important;padding:6px!important}.header-upgrade #package{order:5!important;display:flex;align-items:center;gap:10px;color:#00cfe6!important;border:1px solid #00bcd4!important;background:transparent!important;white-space:nowrap}.header-upgrade #shared-controls{padding:0!important;margin:0!important;background:var(--dto-bg)!important;border:0!important}.header-tools{display:flex;align-items:center;gap:28px;padding:12px 28px;border-bottom:1px solid var(--dto-border)}.header-branch{display:flex;align-items:center;gap:14px;min-width:260px}.header-branch button,.header-branch select{border:0!important;background:transparent!important;color:var(--dto-text)!important;font:inherit;max-width:220px;padding:6px 0}.header-upgrade #shared-search-form{display:flex!important;flex:1;position:relative;margin:0!important}.header-upgrade #shared-search{width:100%!important;padding:11px 12px 11px 48px!important;background:transparent!important;border:1px solid var(--dto-border)!important;border-radius:5px!important;font:inherit;color:var(--dto-text)}.header-upgrade #shared-search-form button{position:absolute;left:4px;top:4px;border:0;background:none;padding:6px}.header-tools>button{display:flex;align-items:center;gap:14px;white-space:nowrap;background:none!important;border:0!important;padding:7px 0!important;color:var(--dto-muted)!important}.header-filters{position:relative}.header-filters>summary{cursor:pointer;display:flex;align-items:center;gap:14px;padding:9px 18px;border:1px solid var(--dto-border);border-radius:5px;list-style:none}.header-filter-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:10001;width:290px;padding:18px;display:flex;flex-direction:column;gap:12px;background:var(--dto-panel,#102c30);border:1px solid #39e6d0;box-shadow:0 14px 35px #0005}.header-filter-menu label{display:flex;justify-content:space-between;gap:12px}.header-filter-menu select{max-width:180px}.header-stats{display:flex;gap:24px;padding:12px 28px;border-bottom:1px solid var(--dto-border);font-size:12px;color:var(--dto-muted)}.header-stats span+span{border-left:1px solid var(--dto-border);padding-left:24px}#header-risks{color:#fa8a45}.header-upgrade #shared-summary[hidden]{display:none!important}@media(max-width:1200px){html[data-theme] body.header-upgrade>header{gap:12px!important;padding:12px 18px!important;flex-wrap:wrap!important}.header-upgrade .system-tabs{gap:0;flex:1}.header-upgrade .system-tabs button{gap:7px;padding:10px 8px!important;font-size:12px}.header-tools{gap:16px;flex-wrap:wrap}.header-branch{min-width:220px}.header-upgrade #shared-search-form{min-width:240px}}@media(max-width:650px){.header-upgrade .system-tabs{order:6;width:100%;overflow:auto}.header-upgrade #header-snapshot{margin-left:auto;font-size:10px}.header-upgrade header .dto-wordmark{font-size:13px!important}.header-upgrade header .company-brand img{width:75px!important}.header-upgrade #package{font-size:11px}.header-tools{padding:12px;gap:12px}.header-stats{padding:12px;gap:12px;font-size:10px}.header-stats span+span{padding-left:12px}}
/* Override legacy global button chrome only within the new header. */
html[data-theme] body.header-upgrade .system-tabs button,html[data-theme] body.header-upgrade .header-tools button{background:transparent!important;box-shadow:none!important;border-radius:0!important}
html[data-theme] body.header-upgrade .system-tabs button{border:0!important;border-bottom:2px solid transparent!important}
html[data-theme] body.header-upgrade .system-tabs button[aria-pressed=true]{border-bottom-color:#00dbea!important}
html[data-theme] body.header-upgrade #package{background:transparent!important;border-color:#00cfe6!important;color:#00cfe6!important;box-shadow:none!important}
html[data-theme] body.header-upgrade header .company-brand{width:120px!important;align-self:center!important}
html[data-theme] body.header-upgrade header .company-brand img{width:100px!important;height:54px!important;filter:none!important}
@media(max-width:1200px){.header-upgrade .system-tabs{order:6!important;width:100%;flex-basis:100%;justify-content:center}.header-upgrade #header-snapshot{margin-left:auto}.header-upgrade header .company-brand{margin-left:0!important}}
/* Snapshot stays with its package action at every breakpoint. */
.header-upgrade .header-package-block{order:5;display:flex;flex-direction:column;align-items:center;gap:6px;flex:none}
.header-upgrade .header-package-block #header-snapshot{margin:0!important;font-size:10px;line-height:1.2}
.header-upgrade .header-package-block #header-snapshot:before{width:6px;height:6px;margin-right:6px}
html[data-theme] body.header-upgrade #header-risks{font:inherit;line-height:inherit;padding:0 0 0 24px!important;margin:0;border:0!important;border-left:1px solid var(--dto-border)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#fa8a45!important;cursor:pointer}
html[data-theme] body.header-upgrade #header-risks:hover{color:#ffb77b!important;text-decoration:underline;text-underline-offset:4px}
html[data-theme] body.header-upgrade #header-risks[aria-pressed=true]{color:#ffb77b!important;text-decoration:underline;text-underline-offset:4px;font-weight:600}
@media(max-width:650px){html[data-theme] body.header-upgrade #header-risks{padding-left:12px!important}}
html[data-theme] body.header-upgrade .header-package-block #package{order:0!important}
html[data-theme] body.header-upgrade .header-package-block #header-snapshot{order:1!important}
.header-upgrade .action-history{display:flex;align-items:center;gap:2px;margin-left:-10px;margin-right:4px}
html[data-theme] body.header-upgrade .system-tabs .action-history button{font-size:23px!important;padding:5px!important;width:30px;min-width:30px;border:0!important;color:var(--dto-muted)!important}
.header-upgrade .action-history button:disabled{opacity:.3;cursor:default}
