/* One shared header is moved between views; legacy IDs remain for existing integrations. */
#view-dashboard>.home-unified-header{border-bottom-color:transparent!important}
.home-shell[hidden],.home-landing-page[hidden]{display:none!important}
.home-landing-page{min-height:100%;background:#050606}
.home-unified-header .home-search-control{position:relative;display:flex;align-items:center}
.home-unified-header .home-search-trigger{width:32px;height:32px;padding:7px;display:grid;place-items:center;background:transparent;color:#b6b4ad;border:0;border-radius:50%;cursor:pointer}
.home-unified-header .home-search-trigger svg{width:18px;height:18px;display:block}
.home-unified-header .home-search-trigger:hover,.home-unified-header .home-search-trigger[aria-expanded=true]{color:#e6c78c;background:#d6a95712}
#view-dashboard .home-unified-header .home-search-popover,.home-unified-header .home-search-popover{display:none!important;position:absolute;right:0;top:calc(100% + 12px);height:auto!important;width:min(300px,calc(100vw - 32px));z-index:80;padding:0}
#view-dashboard .home-unified-header .home-search-popover.is-open,.home-unified-header .home-search-popover.is-open{display:block!important}
#view-dashboard .home-unified-header .home-search-popover #project-search-input,.home-unified-header .home-search-popover #project-search-input{display:block;box-sizing:border-box;width:100%;height:46px;border:1px solid #d9bd83aa;border-radius:23px;background:#050505;color:#e8e1d5;padding:0 18px 0 40px;font-size:13px;box-shadow:0 12px 32px #0009;outline:none}
#view-dashboard .home-unified-header .home-search-popover #project-search-input:focus,.home-unified-header .home-search-popover #project-search-input:focus{border-color:#e6c78c;box-shadow:0 0 0 2px #d6a95718,0 12px 32px #0009}
.home-unified-header .home-search-popover>svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#d9bd83;pointer-events:none}
#view-editor>.home-legacy-header{display:none!important}
#view-editor>.home-unified-header,#view-dashboard>.home-unified-header{position:relative!important;inset:auto!important;transform:none!important;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;height:58px;min-height:58px;padding:0 22px;gap:28px;background:#030404!important;border-bottom:1px solid #ffffff13;color:#c9c5bc;z-index:60;font-family:"Microsoft YaHei","PingFang SC",sans-serif}
.home-unified-header .brand-logo{display:block;width:44px;height:auto;object-fit:contain}
.home-unified-header .home-brand-word{display:block;color:#e6c78c;font-size:19px;font-weight:500;letter-spacing:.04em;margin-left:9px;white-space:nowrap}
.home-unified-header #app-version-badge,.home-unified-header #project-count,.home-unified-header #project-layout-control{display:none!important}
.home-unified-header .home-nav{display:flex;align-self:stretch;align-items:stretch;gap:30px;margin-right:auto}
.home-unified-header .home-nav button{position:relative;white-space:nowrap;border:0;background:transparent;font-size:13px;font-weight:400;color:#aaa7a0}
/* Override the old homepage-only first-tab highlight. */
#view-dashboard .home-unified-header .home-nav button:first-child,.home-unified-header .home-nav button:first-child{color:#aaa7a0;border:0}
#view-dashboard .home-unified-header .home-nav button:first-child:after,.home-unified-header .home-nav button:first-child:after{content:none}
#view-dashboard .home-unified-header .home-nav button.is-active,.home-unified-header .home-nav button.is-active{color:#e6c78c}
#view-dashboard .home-unified-header .home-nav button.is-active:after,.home-unified-header .home-nav button.is-active:after{content:"";position:absolute;left:20%;right:20%;bottom:0;height:2px;background:#d6a957}
.home-unified-header #header-user-area{display:flex;align-items:center;gap:14px;margin-left:auto}
.home-unified-header #project-search-input{box-sizing:border-box;width:156px;height:32px;border:1px solid #ffffff13;border-radius:24px;background:#090a0a;color:#c9c5bc;font-size:11px;padding:0 12px 0 29px}
.home-unified-header #header-user-area>div:has(#project-search-input){display:flex;align-items:center;height:32px}
.home-unified-header #header-user-area>div:has(#project-search-input)>svg{width:14px;height:14px;left:10px;top:50%;transform:translateY(-50%)}
.home-unified-header #user-menu-control>button{width:30px;height:30px;border-color:#d6a95773}
.home-unified-header .home-help{width:20px;height:20px;flex-shrink:0;border:1px solid #888b86;border-radius:50%;color:#aaa7a0;background:transparent;font-size:12px;line-height:18px;padding:0}
.home-unified-header .home-notification{position:relative!important;inset:auto!important;box-shadow:none;background:transparent;border:0;width:32px;height:32px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.home-unified-header #notification-badge{top:auto!important;bottom:0;right:0;min-width:16px;height:16px;line-height:16px;padding:0 3px;text-align:center;background:#dc4545;color:white}
.home-unified-header #notification-panel{top:66px!important;bottom:auto!important;right:24px!important}
@media(max-width:1100px){#view-editor>.home-unified-header,#view-dashboard>.home-unified-header{gap:18px}.home-unified-header .home-nav{gap:20px}}
@media(max-width:880px){#view-editor>.home-unified-header,#view-dashboard>.home-unified-header{flex-wrap:wrap;height:auto;padding:12px;gap:12px}.home-unified-header .home-nav{order:3;width:100%;height:34px;justify-content:space-between}.home-unified-header #header-user-area{margin-left:auto}}
@media(max-width:560px){.home-unified-header #project-search-input{width:125px}.home-unified-header #header-user-points{display:none!important}}
/* Equal outer tracks keep the navigation centered independently of the tools. */
#view-editor>.home-unified-header,#view-dashboard>.home-unified-header{display:grid;grid-template-columns:minmax(155px,1fr) auto minmax(155px,1fr);gap:16px}
#view-editor .home-unified-header .home-nav,#view-dashboard .home-unified-header .home-nav{justify-content:center;gap:24px;margin:0;height:100%;order:initial;width:auto}
.home-unified-header #header-user-area{justify-self:end}
@media(max-width:1000px){#view-editor>.home-unified-header,#view-dashboard>.home-unified-header{grid-template-columns:1fr 1fr;height:auto;padding:12px;gap:10px}#view-editor .home-unified-header .home-nav,#view-dashboard .home-unified-header .home-nav{grid-row:2;grid-column:1/-1;height:34px;justify-content:center;gap:24px}.home-unified-header #header-user-area{grid-row:1;grid-column:2}}
@media(max-width:560px){#view-editor .home-unified-header .home-nav,#view-dashboard .home-unified-header .home-nav{gap:16px;flex-wrap:wrap;height:auto;min-height:34px}.home-unified-header .home-nav button{min-height:34px;font-size:12px}}

/* Reference capsule: all header content lives in one centered floating bar. */
#view-editor>.home-unified-header,#view-dashboard>.home-unified-header{display:flex;box-sizing:border-box;align-self:center;align-items:center;justify-content:space-between;width:calc(100% - 40px);max-width:1240px;height:64px;min-height:64px;margin:20px auto 14px;padding:0 26px;gap:24px;border:0!important;border-radius:999px;background:#eee7da!important;color:#302f2b;box-shadow:0 8px 28px #00000024;overflow:visible}
#view-editor .home-unified-header .home-brand-word,#view-dashboard .home-unified-header .home-brand-word{color:#fff;font-size:23px;font-weight:500;letter-spacing:-.04em}
#view-editor .home-unified-header .home-nav,#view-dashboard .home-unified-header .home-nav{display:flex;align-self:stretch;align-items:stretch;justify-content:center;gap:22px;width:auto;height:auto;margin:0 0 0 auto;order:initial;flex-wrap:nowrap}
#view-editor .home-unified-header .home-nav button,#view-dashboard .home-unified-header .home-nav button{color:#36332d;font-size:13px;min-height:0}
#view-editor .home-unified-header .home-nav button.is-active,#view-dashboard .home-unified-header .home-nav button.is-active{color:#171611}
#view-editor .home-unified-header .home-nav button.is-active:after,#view-dashboard .home-unified-header .home-nav button.is-active:after{bottom:9px;height:2px;background:#caa05a}
.home-unified-header #header-user-area{margin-left:0;gap:16px;flex-shrink:0}
#view-editor .home-unified-header .home-search-trigger,#view-dashboard .home-unified-header .home-search-trigger,#view-editor .home-unified-header .home-notification,#view-dashboard .home-unified-header .home-notification{color:#4b4841}
#view-editor .home-unified-header .home-help,#view-dashboard .home-unified-header .home-help{color:#5e584d;border-color:#8e8370}
.home-unified-header #header-user-points{color:#635437}
#view-editor .home-unified-header #user-menu-control>button,#view-dashboard .home-unified-header #user-menu-control>button{width:36px;height:36px;border:2px solid #aa8650}
.home-unified-header #notification-panel{position:absolute!important;top:calc(100% + 12px)!important;right:12px!important}
@media(max-width:1050px){#view-editor>.home-unified-header,#view-dashboard>.home-unified-header{padding:0 18px;gap:14px;width:calc(100% - 28px)}#view-editor .home-unified-header .home-nav,#view-dashboard .home-unified-header .home-nav{gap:14px}.home-unified-header #header-user-area{gap:10px}.home-unified-header .brand-logo{width:32px}#view-editor .home-unified-header .home-brand-word,#view-dashboard .home-unified-header .home-brand-word{font-size:19px}}
@media(max-width:850px){#view-editor>.home-unified-header,#view-dashboard>.home-unified-header{flex-wrap:wrap;border-radius:30px;height:auto;padding:14px 20px;gap:10px;margin-top:14px}#view-editor .home-unified-header .home-nav,#view-dashboard .home-unified-header .home-nav{order:3;flex:1 0 100%;margin:0;min-height:38px;justify-content:center;gap:20px}.home-unified-header #header-user-area{margin-left:auto}#view-editor .home-unified-header .home-nav button.is-active:after,#view-dashboard .home-unified-header .home-nav button.is-active:after{bottom:0}}
@media(max-width:480px){#view-editor .home-unified-header .home-nav,#view-dashboard .home-unified-header .home-nav{gap:13px;flex-wrap:wrap}.home-unified-header .home-nav button{min-height:32px!important;font-size:12px!important}}
