/* Shared header controls. Product editors and their back actions stay independent. */
body.storybook .ew-header-nav { position: relative; display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; margin-left: auto; }
body.storybook .ew-header-nav :is(.ew-header-menu-toggle,.ew-header-home,.experience-menu-label) { font-family: var(--font-display) !important; font-size: 16px !important; font-weight: 400 !important; line-height: 1.2; letter-spacing: normal !important; color: var(--gold); }
body.storybook .ew-header-home, body.storybook .ew-header-menu-toggle { display: flex; align-items: center; justify-content: center; width: fit-content; min-width: 64px; min-height: 44px; margin: 0; padding: 8px 12px; border: 0; background: none; text-decoration: none; text-align: center; cursor: pointer; }
body.storybook .ew-header-menu { position: static; }
body.storybook .ew-header-menu-toggle { list-style: none; }
body.storybook .ew-header-menu-toggle::-webkit-details-marker { display: none; }
body.storybook .ew-header-menu-panel { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(300px, calc(100vw - 32px)); max-height: min(450px, calc(100dvh - 170px)); overflow: auto; padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--gold); background: #030710; box-shadow: 0 18px 48px #0009; }
body.storybook .ew-header-menu-panel :is(a,button) { display: flex; align-items: center; width: fit-content; max-width: 100%; min-width: 44px; min-height: 44px; margin: 0; padding: 8px 0; border: 0; color: var(--gold); background: none; font-size: 16px !important; line-height: 1.4; text-align: left; text-decoration: none; }
body.storybook .ew-header-route-actions { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
body.storybook .ew-header-nav :is(summary,a,button):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
body.storybook .ew-header-nav-main .experience-menu { max-height: calc(100dvh - 195px); z-index: 30; }
body.storybook .ew-header-nav-main > noscript .ew-header-menu-panel { top: calc(100% + 8px); }
@media (max-width: 720px) { body.storybook .topbar:has(.ew-header-nav) { gap: 12px; } body.storybook .ew-header-home, body.storybook .ew-header-menu-toggle { padding-inline: 8px; } }
@media (max-height: 500px) and (orientation: landscape) { body.storybook .ew-header-menu-panel, body.storybook .ew-header-nav-main .experience-menu { max-height: calc(100dvh - 165px); } }
