/* Product orientation is shared; reading and account tools stay within their pages. */
@view-transition { navigation: auto; }
:root { --navigation-height:76px; --navigation-ease:cubic-bezier(.22,1,.36,1); }
.product-header, .product-header * , .product-menu, .product-menu * { box-sizing:border-box; }
.portal-header.product-header { position:sticky; top:0; z-index:30; display:flex; align-items:center; flex-wrap:nowrap; gap:36px; height:var(--navigation-height); padding:0 40px; border:0; background:var(--brand-paper); color:var(--brand-ink); font:13px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; view-transition-name:product-header; }
.product-brand { display:flex; flex:none; align-items:center; gap:14px; color:var(--brand-muted); text-decoration:none; white-space:nowrap; }
.product-brand img { display:block; width:90px; height:24px; object-fit:contain; }
.product-brand span { font-size:13px; font-weight:500; }
.product-links { position:relative; display:flex; align-items:center; gap:24px; height:100%; }
.product-links a { display:flex; align-items:center; position:relative; height:100%; color:var(--brand-muted); font-size:13px; font-weight:500; white-space:nowrap; text-decoration:none; transition:color 120ms ease; }
.product-links a:hover, .product-links a[aria-current] { color:var(--brand-accent); }
.product-links a[aria-current]::after { content:''; position:absolute; left:0; right:0; bottom:17px; height:2px; background:var(--brand-accent); }
.product-links.has-indicator a::after { display:none; }
.product-indicator { position:absolute; bottom:17px; height:2px; background:var(--brand-accent); transform-origin:left; pointer-events:none; view-transition-name:product-selection; }
.product-actions { display:flex; align-items:center; gap:8px; margin-left:auto; flex:none; }
.product-header .account { position:relative; display:flex; align-items:center; justify-content:flex-end; width:146px; }
.product-header .product-account-link, .product-header .user-button { display:flex; align-items:center; justify-content:flex-end; gap:8px; width:146px; min-width:0; height:44px; padding:6px; border:0; border-radius:8px; background:transparent; color:var(--brand-ink); text-decoration:none; font:500 13px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; white-space:nowrap; cursor:pointer; }
.product-account-link:hover, .product-header .user-button:hover { background:var(--brand-hover); }
.product-header .user-button .account-label { display:inline; }
.product-header .user-button mia-user-avatar { --mia-avatar-size:28px; }
.product-header .user-button > svg { width:14px; height:14px; flex:none; }
.product-header .catalog-icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.product-header .icon-button, .product-menu .icon-button { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:10px; border:0; border-radius:8px; background:transparent; color:var(--brand-ink); cursor:pointer; font-size:26px; }
.product-header .product-menu-trigger { display:none; }
.product-menu-trigger svg { width:24px; height:24px; }
.product-header :focus-visible, .product-menu :focus-visible { outline:2px solid var(--brand-accent); outline-offset:3px; }
.product-menu { width:min(420px,calc(100vw - 24px)); max-height:calc(100dvh - 88px); margin:76px auto auto; padding:20px; border:0; border-radius:14px; overflow:auto; color:var(--brand-ink); background:var(--brand-surface); box-shadow:0 20px 70px rgb(12 16 45 / 16%); }
.product-menu::backdrop { background:rgb(12 16 45 / 25%); }
html:has(.product-menu[open]) { overflow:hidden; }
.product-menu-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; font-size:17px; }
.product-menu nav { display:grid; gap:4px; }
.product-menu nav a { display:flex; align-items:center; min-height:52px; padding:12px; border-radius:8px; font-size:17px; color:var(--brand-ink); text-decoration:none; }
.product-menu nav a[aria-current] { color:var(--brand-accent); background:var(--brand-selection); }
.product-menu nav a[aria-current]::after { content:''; margin-left:auto; width:6px; height:6px; border-radius:50%; background:var(--brand-accent); }
.product-header .user-menu { position:absolute; right:0; top:54px; z-index:40; width:min(300px,calc(100vw - 24px)); max-height:calc(100dvh - 100px); overflow:auto; padding:8px; border:0; border-radius:12px; background:var(--brand-surface); color:var(--brand-ink); box-shadow:0 16px 56px rgb(12 16 45 / 13%); animation:account-arrive 160ms var(--navigation-ease); }
.product-header [hidden] { display:none!important; }
.product-header .user-summary { display:flex; flex-direction:column; gap:3px; padding:8px 40px 14px 12px; border:0; }
.product-header .user-summary strong { font-size:14px; }
.product-header .user-summary span { color:var(--brand-muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-header .user-menu-close { position:absolute; top:8px; right:8px; width:32px; height:32px; padding:7px; }
.product-header .user-menu-item { display:flex; align-items:center; gap:10px; width:100%; min-height:40px; padding:8px 12px; border:0; border-radius:7px; background:transparent; color:var(--brand-ink); text-align:left; text-decoration:none; font:inherit; font-size:13px; cursor:pointer; }
.product-header .user-menu-item:hover, .product-header .user-menu-item:focus-visible { background:var(--brand-hover); }
.product-header .user-menu-item svg { width:20px; height:20px; flex:none; }
.product-header .user-menu-item > span:nth-child(2) { flex:1; }
.product-header .user-points { margin-left:auto; font-size:12px; color:var(--brand-muted); font-variant-numeric:tabular-nums; }
.product-header .user-account-context { padding:10px 12px 6px; border-top:1px solid var(--brand-line); }
.product-header .user-account-caption { color:var(--brand-muted); font-size:11px; }
.product-header .user-account-heading { display:flex; align-items:center; gap:8px; min-height:32px; }
.product-header .user-account-name { min-width:0; flex:1; font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.product-header .user-account-switch { display:inline-flex; align-items:center; gap:3px; flex:none; min-height:32px; padding:4px 6px; border:0; border-radius:6px; background:transparent; color:var(--brand-accent); font:inherit; font-size:12px; cursor:pointer; }
.product-header .user-account-switch:hover { background:var(--brand-hover); }
.product-header .user-account-switch svg { width:12px; height:12px; }
.product-header .user-account-switch[aria-expanded='true'] svg { transform:rotate(180deg); }
.product-header .user-account-choices { margin:4px 0; border-left:2px solid var(--brand-line); }
.product-header .user-menu-item:disabled { opacity:.6; cursor:default; }
.product-header .user-menu-status { margin:8px 12px; font-size:12px; color:var(--brand-muted); }
.product-header .user-menu-separator { height:1px; margin:8px; background:var(--brand-line); }
.workspace-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; width:min(1120px,calc(100% - 48px)); min-height:56px; margin:auto; }
.workspace-tools > a { font-size:13px; color:var(--brand-muted); text-decoration:none; }
.workspace-tools > a:hover { color:var(--brand-accent); }
.workspace-tools .quick-search-trigger { display:flex; min-height:40px; border:0; background:transparent; }
.workspace-tools svg { width:18px; height:18px; }
.app-shell:not(.is-authenticated) .workspace-tools { visibility:hidden; }
.app-shell:not(.is-authenticated) #main, .app-shell:not(.is-authenticated) .handoff-page { min-height:calc(100svh - var(--navigation-height) - 56px); }
.docs-sidebar .docs-search-trigger { width:100%; display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:10px 12px; margin:0 0 24px; border:0; border-radius:8px; color:var(--brand-muted); background:var(--brand-surface); font:inherit; font-size:13px; cursor:pointer; }
.docs-mobile-bar .docs-search-trigger { margin-left:auto; }
@keyframes account-arrive { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
::view-transition-group(*) { animation-duration:180ms; animation-timing-function:var(--navigation-ease); }
::view-transition-old(product-header), ::view-transition-new(product-header) { animation:none; mix-blend-mode:normal; }
::view-transition-old(product-selection), ::view-transition-new(product-selection) { animation:none; }
::view-transition-group(product-selection) { z-index:1; }
@media(max-width:1100px) { .portal-header.product-header { padding:0 24px; gap:24px; } .product-links { gap:20px; } }
@media(max-width:900px) {
  :root { --navigation-height:64px; }
  .portal-header.product-header { padding:0 16px; gap:12px; }
  .product-links { display:none; }
  .product-header .product-menu-trigger { display:inline-flex; }
  .product-brand { gap:10px; }
  .product-brand img { width:79px; height:21px; }
  .product-brand span { font-size:12px; }
  .product-header .account, .product-header .product-account-link, .product-header .user-button { width:136px; }
  .product-header .user-button > svg { display:none; }
  .product-header .user-menu { position:fixed; top:72px; right:12px; }
  .docs-page { --docs-header-height:64px; }
}
@media(max-width:380px) { .product-brand span { display:none; } }
@media(pointer:coarse) {
  .product-header .user-menu-item, .product-header .user-account-switch, .product-header .user-menu-close { min-height:44px; }
  .product-header .user-menu-close { width:44px; padding:12px; }
}
@media(prefers-reduced-motion:reduce) {
  @view-transition { navigation:none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation:none!important; }
  .product-header .user-menu, .product-links a { animation:none; transition:none; }
}
