/* Shared Studio status bar: restore the original home frosted material.
   All routes use this tint; the page beneath remains visible through it. */
:root {
  --lv-site-chrome-row: 32px;
  --lv-site-chrome-offset: calc(var(--lv-site-chrome-row) + env(safe-area-inset-top, 0px));
  --lv-site-chrome-fill: rgba(255, 255, 255, .10);
  --lv-site-chrome-ink: #183c5d;
  --lv-site-chrome-edge: rgba(33, 70, 102, .10);
  --lv-site-chrome-hover: rgba(42, 92, 134, .08);
  --lv-site-chrome-focus: #1769b7;
}

html#lv-r5:is(.jr-active, [data-flow-bar-tone="dark"]) {
  --lv-site-chrome-ink: #dceaf6;
  --lv-site-chrome-hover: rgba(255, 255, 255, .12);
  --lv-site-chrome-focus: #b4d7ff;
}

html#lv-r5,
html {
  --chrome-menu-h: var(--lv-site-chrome-offset) !important;
  --os-bar: var(--lv-site-chrome-offset) !important;
  --ed-bar-height: var(--lv-site-chrome-offset) !important;
  --sd-chrome-height: var(--lv-site-chrome-row) !important;
  --sd-chrome-offset: var(--lv-site-chrome-offset) !important;
}

html#lv-r5 .site-header.os-menubar,
html #site-root .sd-chrome {
  --chrome-fill: var(--lv-site-chrome-fill) !important;
  --chrome-ink: var(--lv-site-chrome-ink) !important;
  --chrome-hover: var(--lv-site-chrome-hover) !important;
  --chrome-focus: var(--lv-site-chrome-focus) !important;
  --sd-chrome-ink: var(--lv-site-chrome-ink) !important;
  --sd-chrome-hover: var(--lv-site-chrome-hover) !important;
  --sd-chrome-focus: var(--lv-site-chrome-focus) !important;
  position: fixed !important;
  inset: 0 0 auto !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--lv-site-chrome-fill) !important;
  background-image: none !important;
  color: var(--lv-site-chrome-sampled-ink, var(--lv-site-chrome-ink)) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  backdrop-filter: blur(28px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.35) !important;
  transition: none !important;
  font-family: var(--lv-ui-font, var(--sd-font, system-ui)) !important;
  font-size: 13px !important;
  line-height: 18px !important;
}

html#lv-r5 .site-header.os-menubar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  height: var(--lv-site-chrome-offset) !important;
  min-height: var(--lv-site-chrome-offset) !important;
  padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)) !important;
}
html #site-root .sd-chrome { padding: env(safe-area-inset-top, 0px) 0 0 !important; }
html #site-root .sd-chrome-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  height: var(--lv-site-chrome-row) !important;
  min-height: var(--lv-site-chrome-row) !important;
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)) !important;
}

html#lv-r5 .site-header.os-menubar::before,
html#lv-r5 .site-header.os-menubar::after,
html#lv-r5 .site-header.os-menubar > :is(.v9-glass-backdrop, .v9-glass-rim, .v5-sheen, .v5-reading-progress),
html #site-root .sd-chrome::before,
html #site-root .sd-chrome::after,
html #site-root .sd-chrome-bar::before,
html #site-root .sd-chrome-bar::after {
  content: none !important;
  display: none !important;
}

html#lv-r5 .site-header.os-menubar :is(.brand, .os-app-name, .top-nav, .top-nav > a, .header-tools, .tool-button, .v10-social-link, #language-toggle, #os-clock, #os-clock b, #os-clock span, svg),
html #site-root .sd-chrome :is(.sd-chrome-brand, .sd-chrome-brand-name, .sd-chrome-main-link, .sd-chrome-tools, .sd-chrome-control, .sd-chrome-services-toggle, .sd-chrome-social-link, .sd-chrome-language, .sd-chrome-clock, .sd-chrome-clock b, .sd-chrome-clock span, svg) {
  --chrome-ink: var(--lv-site-chrome-ink) !important;
  color: var(--lv-site-chrome-sampled-ink, var(--lv-site-chrome-ink)) !important;
  text-shadow: none !important;
}

html#lv-r5 .site-header.os-menubar .brand,
html #site-root .sd-chrome-brand {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  height: var(--lv-site-chrome-row) !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 6px 0 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  text-decoration: none !important;
}
html#lv-r5 .site-header.os-menubar .brand-glyph,
html #site-root .sd-chrome-brand > svg {
  display: block !important;
  width: 16px !important;
  height: 18px !important;
  flex: 0 0 16px !important;
  margin: 0 !important;
  fill: currentColor !important;
}
html#lv-r5 .site-header.os-menubar .brand-glyph path,
html #site-root .sd-chrome-brand > svg path { fill: currentColor !important; }
html#lv-r5 .site-header.os-menubar .os-app-name,
html #site-root .sd-chrome-brand-name {
  display: block !important;
  max-width: none !important;
  overflow: visible !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  letter-spacing: -.02em !important;
  white-space: nowrap !important;
  transform: none !important;
}

html#lv-r5 .site-header.os-menubar .top-nav,
html #site-root .sd-chrome-main {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 0 !important;
  height: var(--lv-site-chrome-row) !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html#lv-r5 .site-header.os-menubar .top-nav > a,
html #site-root .sd-chrome-main-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--lv-site-chrome-row) !important;
  min-height: 0 !important;
  padding: 0 10px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 18px !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transform: none !important;
}
html#lv-r5 .site-header.os-menubar .top-nav > a::after,
html #site-root .sd-chrome-main-link::after { content: none !important; }

html#lv-r5 .site-header.os-menubar .header-tools,
html #site-root .sd-chrome-tools {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 5px !important;
  height: var(--lv-site-chrome-row) !important;
  min-height: 0 !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
}
html#lv-r5 .site-header.os-menubar .lv-language,
html#lv-r5 .site-header.os-menubar #language-toggle,
html #site-root .sd-chrome-language {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--lv-site-chrome-row) !important;
  min-width: var(--lv-site-chrome-row) !important;
  height: var(--lv-site-chrome-row) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
}
html#lv-r5 .site-header.os-menubar #language-toggle :is(.lv-language-icon, [data-icon]),
html#lv-r5 .site-header.os-menubar #language-toggle svg,
html #site-root .sd-chrome-language > svg {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 15px !important;
  transform: none !important;
}

html#lv-r5 .site-header.os-menubar #os-clock,
html #site-root .sd-chrome-clock {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  height: var(--lv-site-chrome-row) !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 0 0 4px !important;
  border: 0 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
}
html#lv-r5 .site-header.os-menubar #os-clock :is(.time-date, b),
html #site-root .sd-chrome-clock > :is(span, b) {
  display: inline !important;
  align-self: center !important;
  height: auto !important;
  line-height: 18px !important;
  translate: none !important;
  transform: none !important;
}
html#lv-r5 .site-header.os-menubar #os-clock .time-date,
html #site-root .sd-chrome-clock > span { font-size: 12px !important; font-weight: 500 !important; }
html#lv-r5 .site-header.os-menubar #os-clock b,
html #site-root .sd-chrome-clock > b { font-size: 13px !important; font-weight: 700 !important; }

html#lv-r5 .site-header.os-menubar :is(.brand, .top-nav > a, #language-toggle):hover,
html #site-root .sd-chrome :is(.sd-chrome-brand, .sd-chrome-main-link, .sd-chrome-language):hover {
  background: var(--lv-site-chrome-hover) !important;
}
html#lv-r5 .site-header.os-menubar :is(a, button):focus-visible,
html #site-root .sd-chrome :is(a, button):focus-visible,
html #site-root .sd-chrome-language:focus-within {
  outline: 2px solid var(--lv-site-chrome-focus) !important;
  outline-offset: -2px !important;
}
html#lv-r5 .site-header.os-menubar #language-menu {
  top: calc(100% + 4px) !important;
  right: 0 !important;
  background: #f3f9fe !important;
  color: var(--lv-site-chrome-sampled-ink, var(--lv-site-chrome-ink)) !important;
}

/* The original tools and menus share the same compact optical alignment. */
html#lv-r5 .site-header.os-menubar .header-tools :is(.tool-button, .v10-social-link),
html #site-root .sd-chrome-bar :is(.sd-chrome-control, .sd-chrome-social-link) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: var(--lv-site-chrome-row) !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 4px !important;
}
html#lv-r5 .site-header.os-menubar .header-tools :is(svg, .icon, [data-icon]),
html#lv-r5 .site-header.os-menubar .header-tools :is(#delivery-social-toggle, #v10-header-social) svg,
html#lv-r5 .site-header.os-menubar #jr-mobile-menu-button > svg {
  width: 15px !important;
  height: 15px !important;
  align-self: center !important;
  transform: none !important;
  margin: 0 !important;
}
html#lv-r5 .site-header.os-menubar #v10-header-social,
html #site-root .sd-chrome-socials {
  display: flex !important;
  align-items: center !important;
  height: var(--lv-site-chrome-row) !important;
  gap: 1px !important;
}
html#lv-r5 .site-header.os-menubar :is(#delivery-social-toggle, #jr-mobile-menu-button),
html #site-root .sd-chrome-bar :is(.sd-chrome-social-toggle, .sd-chrome-mobile-toggle) {
  display: none !important;
}
html#lv-r5 .site-header.os-menubar :is(.tool-button, .v10-social-link):is(:hover, [aria-expanded="true"]),
html #site-root .sd-chrome-bar :is(.sd-chrome-control, .sd-chrome-social-link):is(:hover, [aria-expanded="true"]) {
  background: var(--lv-site-chrome-hover) !important;
}
html#lv-r5 .site-header.os-menubar #language-menu,
html#lv-r5 .site-header.os-menubar #language-menu :is(button, span, svg) {
  color: #183c5d !important;
}
html #site-root .sd-chrome-services-toggle {
  display: grid !important;
  place-items: center !important;
  height: var(--lv-site-chrome-row) !important;
  width: 20px !important;
  padding: 0 !important;
}
html #site-root .sd-chrome-services > .sd-chrome-main-link { padding-right: 4px !important; }

/* Keep the five primary links visible in desktop and split-screen windows.
   Secondary tools collapse first; input type does not hide navigation. */
@media (max-width: 1179px) {
  html#lv-r5 .site-header.os-menubar #v10-header-social,
  html #site-root .sd-chrome-socials { display: none !important; }
  html#lv-r5 .site-header.os-menubar #delivery-social-toggle,
  html #site-root .sd-chrome-bar .sd-chrome-social-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--lv-site-chrome-row) !important;
    min-width: var(--lv-site-chrome-row) !important;
    height: var(--lv-site-chrome-row) !important;
    padding: 0 !important;
  }
  html#lv-r5 .site-header.os-menubar #os-clock .time-date,
  html #site-root .sd-chrome-clock > span { display: none !important; }
}
@media (min-width: 600px) and (max-width: 899px) {
  html#lv-r5 .site-header.os-menubar .top-nav > a,
  html #site-root .sd-chrome-main-link { padding-inline: 6px !important; font-size: 12px !important; }
  html#lv-r5 .site-header.os-menubar .header-tools,
  html #site-root .sd-chrome-tools { gap: 2px !important; }
}
@media (max-width: 899px) {
  html#lv-r5 .site-header.os-menubar .header-tools :is(.studio-music-launch, .os-find-button) { display: none !important; }
}
@media (max-width: 599px) {
  :root { --lv-site-chrome-row: 44px; }
  html#lv-r5 .site-header.os-menubar .top-nav,
  html #site-root .sd-chrome-main { display: none !important; }
  html#lv-r5 .site-header.os-menubar #jr-mobile-menu-button,
  html #site-root .sd-chrome-bar .sd-chrome-mobile-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--lv-site-chrome-row) !important;
    min-width: var(--lv-site-chrome-row) !important;
    height: var(--lv-site-chrome-row) !important;
    padding: 0 !important;
  }
  html#lv-r5 .site-header.os-menubar { padding-inline: max(10px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px)) !important; }
  html #site-root .sd-chrome-bar { padding-inline: max(10px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px)) !important; }
  html#lv-r5 .site-header.os-menubar .header-tools,
  html #site-root .sd-chrome-tools { gap: 0 !important; }
}
@media (max-width: 380px) {
  html#lv-r5 .site-header.os-menubar .brand,
  html #site-root .sd-chrome-brand { padding-right: 0 !important; gap: 4px !important; }
  html#lv-r5 .site-header.os-menubar .os-app-name,
  html #site-root .sd-chrome-brand-name { font-size: 12px !important; }
  html#lv-r5 .site-header.os-menubar .top-nav > a,
  html #site-root .sd-chrome-main-link { padding-inline: 6px !important; font-size: 12px !important; }
}
@media (prefers-reduced-transparency: reduce) {
  html, html#lv-r5 { --lv-site-chrome-fill: #f1f7fc !important; --lv-site-chrome-ink: #183c5d !important; }
  html#lv-r5 .site-header.os-menubar,
  html #site-root .sd-chrome { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
@media (forced-colors: active) {
  html, html#lv-r5 {
    --lv-site-chrome-fill: Canvas !important;
    --lv-site-chrome-ink: CanvasText !important;
    --lv-site-chrome-hover: Canvas;
    --lv-site-chrome-focus: Highlight;
    --lv-site-chrome-edge: CanvasText;
  }
  html#lv-r5 .site-header.os-menubar,
  html #site-root .sd-chrome { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
