/* A single row for shared discovery and workspace navigation. */
body.site-shell:has(> header.site-compact-header) { margin: 0; }
body.site-shell > header.site-compact-header,
body.site-shell > #studio-header.site-compact-header {
  box-sizing: border-box;
  position: sticky;
  inset: 0 auto auto;
  z-index: 30;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: auto;
  max-width: none;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  margin: 0;
  padding: 0 24px;
  color: var(--vizurai-text, #fff);
  background: var(--vizurai-bg, #0f1112);
  border-bottom: 1px solid var(--vizurai-border, #353739);
  white-space: nowrap;
}
body.site-shell > .site-compact-header :is(a, button) { text-decoration: none; }
.site-compact-header :is(.brand, .pricing-brand, .welcome-brand) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  color: inherit;
  overflow-wrap: normal;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 750;
}
.site-compact-header :is(.brand, .pricing-brand, .welcome-brand) img {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.site-compact-header :is(.brand, .pricing-brand, .welcome-brand) > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-compact-header .brand :is(small,.brand-label) { display: none; }
.site-compact-header > nav,
.site-compact-header :is(.header-actions,.top-actions,.topbar-actions,.welcome-head-actions):not([hidden]) {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}
.site-compact-header > nav,
#studio-header.site-compact-header .nav-tabs {
  height: 44px;
  min-height: 0;
  max-height: 44px;
  align-items: center;
  overflow: visible;
  scrollbar-width: none;
}
.site-compact-header > nav a { white-space: nowrap; overflow-wrap: normal; }
.site-compact-header > :is(.top-actions,.topbar-actions) { margin-inline-start: auto; }
body.site-shell > .site-compact-header > .vizurai-language-switch { margin-inline-start: auto; }
body.site-shell > .site-compact-header:has(> :is(.top-actions,.topbar-actions):not([hidden])) > .vizurai-language-switch { margin-inline-start: 0; }
.site-compact-header .vizurai-language-switch label > span { display: none; }
.site-compact-header .vizurai-language-switch select,
#studio-header.site-compact-header .vizurai-language-switch select {
  appearance: none;
  -webkit-appearance: none;
  width: 62px;
  min-width: 0;
  max-width: 62px;
  height: 38px;
  min-height: 38px;
  padding: 6px 20px 6px 8px;
  background: #171e23 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23d3d8e0' stroke-width='1.6'/%3E%3C/svg%3E") right 7px center / 12px no-repeat;
}
.site-compact-header > .vizurai-community-header {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
  overflow-wrap: normal;
}
.site-compact-header .vizurai-community-long { display: none; }
.site-compact-header .vizurai-community-short { display: inline; }
.site-compact-header :is(.site-header-account, .pricing-account) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 42px;
  padding-inline: 12px;
  border: 1px solid var(--vizurai-border, #353739);
  border-radius: 10px;
  color: inherit;
  font-size: 13px;
}
body.site-shell > .site-compact-header .vizurai-account-control {
  position: static;
  inset: auto;
  flex: 0 0 auto;
  margin: 0;
}
.site-compact-header :is(.vizurai-bell-button,.vizurai-account-trigger) { flex-shrink: 0; }
.site-compact-header .pricing-wallet {
  flex: 0 0 auto;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.site-shell > .site-announcement--launch[data-welcome-banner] .site-announcement-inner { min-height: 0; }
body.site-shell > .site-announcement--launch[data-welcome-banner]:has(.site-announcement-actions:empty) { display: none; }

/* Secondary links stay reachable without a horizontally scrolling header. */
.vizurai-sidebar .vizurai-nav-scroll:has(> .vizurai-discovery-menu) > .vizurai-nav-links {
  flex: 1;
  min-height: 0;
}
.vizurai-discovery-menu {
  display: flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 7px;
  padding: 0 8px; border-radius: 8px; color: var(--vizurai-muted); text-decoration: none;
}
.vizurai-discovery-menu:is(:hover, :focus-visible, [aria-current=page]) {
  color: var(--vizurai-text); background: var(--vizurai-raised);
}
@media (min-width: 901px) {
  .site-sidebar-collapsed .vizurai-discovery-menu { justify-content: center; padding: 0; }
  .site-sidebar-collapsed .vizurai-discovery-menu > span:last-child { display: none; }
}

body.site-shell :is(.seo-skip,.news-skip,.ws-skip):not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
body.site-shell:is(.seo-guide,.news-site) h3 > a { text-decoration: none; }
body.site-shell :is(.studio-gallery-popover,.studio-filter-popover,.vizurai-account-panel,.vizurai-nav-tools-panel) {
  scrollbar-width: thin;
  scrollbar-color: #53555e #191b20;
}
body.site-shell :is(.studio-gallery-popover,.voice-main) select {
  appearance: none;
  -webkit-appearance: none;
}

/* The hamburger gets its own 60px header gutter. */
@media (max-width: 1100px) {
  body.site-shell > header.site-compact-header,
  body.site-shell > #studio-header.site-compact-header {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    gap: 7px;
    padding: 0 12px 0 64px;
  }
  body.site-shell:has(> .site-compact-header) > .vizurai-nav-toggle { top: 7px; }
  .site-compact-header > nav,
  #studio-header.site-compact-header > .nav-tabs,
  body.site-shell > .site-compact-header > .vizurai-community-header,
  .site-compact-header > :is(.top-actions,.topbar-actions) > a:not(.header-balance,.balance,#account-link) { display: none; }
  .site-compact-header:has(.vizurai-account-control) #logout { display: none; }
  .site-compact-header > :is(.top-actions,.topbar-actions,.header-actions):not([hidden]) { gap: 6px; }
  .site-compact-header .brand { max-width: 132px; }
  .site-compact-header .pricing-wallet { max-width: 9rem; }
}
@media (max-width: 560px) {
  body.pricing-page .site-compact-header .pricing-brand [data-site-copy="brand_name"],
  #studio-header.site-compact-header .brand > [data-site-copy="brand_name"] { display: inline; }
  #studio-header.site-compact-header .brand { display: inline-flex; }
  #studio-header.site-compact-header :is(.brand-mark,.brand-mark img) { width: 25px; height: 25px; }
  #studio-header.site-compact-header .studio-balance { display: none; }
  body.site-shell > .site-compact-header :is(.pricing-wallet,#header-balance,.studio-balance,.header-pricing,.vizurai-bonus-link) { display: none; }
  .site-compact-header .vizurai-account-trigger { min-width: 42px; }
  #studio-header.site-compact-header .header-actions { gap: 6px; }
  #studio-header.site-compact-header .vizurai-account-trigger { min-width: 42px; }
  .site-compact-header :is(.brand,.pricing-brand,.welcome-brand) { gap: 5px; }
  .site-compact-header :is(.brand,.pricing-brand,.welcome-brand) img { flex-basis: 25px; width: 25px; height: 25px; }
  /* A native details card in the footer never covers a working control. */
  body.site-shell #vizurai-support .support-entry {
    position: static;
    width: min(280px,calc(100vw - 32px));
    height: auto;
    min-height: 44px;
    margin: 12px auto;
    border: 1px solid var(--vizurai-border);
    border-radius: 10px;
    background: var(--vizurai-panel);
    overflow: hidden;
  }
  body.site-shell #vizurai-support .support-entry::before,
  body.site-shell #vizurai-support .support-entry::after { display: none; }
  body.site-shell #vizurai-support .support-toggle {
    position: static;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    height: auto;
    padding: 8px 10px;
    gap: 8px;
  }
  body.site-shell #vizurai-support .support-toggle::after { content: attr(aria-label); font-size: 13px; }
  body.site-shell #vizurai-support .support-toggle .support-hint { display: none; }
  body.site-shell #vizurai-support .support-choices { position: static; min-height: 44px; margin: 0 10px 8px; }
}
