/* Shared two-tier product navigation; scoped to avoid changing content styles. */
.header.product-header{display:block;height:auto;min-height:0;padding:0;border:0}
.product-header .header-top{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line,#263240);padding:14px 0}
.product-header .header-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-shrink:0}
.product-header .dashboard-back{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:46px;padding:0 20px;border:1px solid #66dedb60;border-radius:13px;background:linear-gradient(120deg,#153336,#14232d);color:#b7f4ed;font-size:14px;font-weight:750;line-height:1.3;white-space:nowrap;text-decoration:none;box-shadow:inset 0 1px 0 #ffffff0c,0 4px 16px #0002;transition:transform .2s,box-shadow .2s,border-color .2s}
.product-header .dashboard-back::before{content:"";position:absolute;inset:-100% -50%;z-index:-1;background:linear-gradient(105deg,transparent 42%,#bafdf025 50%,transparent 58%);transform:translateX(-75%);transition:transform .65s;pointer-events:none}
.product-header .dashboard-back>span:first-child{font-size:21px;line-height:1;transition:transform .2s}
.product-header .dashboard-back:hover{color:#e2fff7;border-color:#86e5d5;box-shadow:0 6px 24px #51cfc51f;transform:translateY(-2px)}
.product-header .dashboard-back:hover::before{transform:translateX(75%)}
.product-header .dashboard-back:hover>span:first-child{transform:translateX(-3px)}
.product-header .dashboard-back:active{transform:translateY(0) scale(.98)}
.product-header .dashboard-back:focus-visible,.product-header .header-tools>a:focus-visible,.product-header .header-tools>button:focus-visible,.product-header .language:focus-visible{outline:2px solid #a5f1dc;outline-offset:4px}
.product-header .header-tools .github-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;min-width:40px;width:auto;padding:0 14px;border:1px solid var(--line,#263240);border-radius:11px;background:var(--panel,#101722);color:var(--text,#f3f6fa);font-size:12px;transition:background .2s,border-color .2s}
.product-header .github-link svg{display:block;width:17px;height:17px;flex-shrink:0}
.product-header .github-link span{display:inline}
.product-header .header-tools .github-link:hover{border-color:#77988e;background:#1c2c2a}
.product-header .language,.product-header .language-toggle{display:inline-flex;align-items:center;justify-content:center;height:40px;width:102px;min-width:102px;padding:0 12px;border:1px solid var(--line,#263240);border-radius:11px;background:var(--panel,#101722);color:var(--text,#f3f6fa);font-size:12px;cursor:pointer}
.product-header .language-toggle{width:auto;min-width:78px}
.product-header .header-bottom{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:28px;border-bottom:1px solid var(--line,#263240);padding:18px 0}
.product-header .header-bottom .brand{flex-shrink:0}
.product-header .header-bottom .brand img{width:42px;height:42px;object-fit:cover;border-radius:12px}
.product-header .header-bottom nav{display:flex;align-items:center;justify-content:flex-end;gap:24px;flex-wrap:nowrap;font-size:13px}
.product-header .header-bottom nav>a{display:inline-flex;align-items:center;min-height:40px;flex-shrink:0}
.docs-header.product-header{position:relative;top:auto}
.docs-body .docs-sidebar{top:24px;max-height:calc(100vh - 48px)}
@media(max-width:900px){
.product-header .header-bottom{align-items:flex-start;flex-direction:column;gap:12px;padding:16px 0 10px}
.product-header .header-bottom nav{justify-content:flex-start;width:100%;max-width:100%;overflow-x:auto;gap:24px;flex-wrap:nowrap;scrollbar-width:thin;padding-bottom:4px}
.product-header .header-bottom nav>a:nth-child(n){display:inline-flex}
}
@media(max-width:520px){
.product-header .header-top{min-height:74px;gap:10px;padding:13px 0}
.product-header .dashboard-back{min-height:44px;padding:0 12px;gap:7px;font-size:12px;border-radius:11px}
.product-header .header-tools{gap:8px}
.product-header .header-tools .github-link{width:40px;min-width:40px;padding:0}
.product-header .header-tools .github-link span{display:none}
.product-header .language{min-width:88px;width:88px;padding:0 7px}
.product-header .language-toggle{min-width:66px;padding:0 9px}
.product-header .header-bottom .brand{font-size:12px;letter-spacing:.08em}
.product-header .header-bottom nav{gap:22px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){
.product-header .dashboard-back,.product-header .dashboard-back::before,.product-header .dashboard-back>span:first-child,.product-header .header-tools .github-link{transition:none}
.product-header .dashboard-back:hover,.product-header .dashboard-back:hover>span:first-child{transform:none}
.product-header .dashboard-back::before{display:none}
}
