/* The product shell now exposes only Learn and Practice. */
body.ls-learn-practice-shell .ls-app-primary-nav > button:not([data-ls-learn-nav]):not([data-ls-practice-nav]) {
  display: none !important;
}

/* React periodically rebuilds the legacy tabs. Keep them suppressed throughout
   that commit so the retired product UI can never flash between tool remounts. */
body.ls-learn-practice-shell [data-slot="tabs-content"] {
  display: none !important;
}

/* The React tab rail remains the mounting point, but its old full-width
   dashboard treatment is deliberately neutralized. Learn and Practice form a
   compact workspace switcher above the active page heading. */
body.ls-learn-practice-shell .ls-product-switcher {
  position: relative !important;
  inset: auto !important;
  display: inline-grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-self: center !important;
  justify-self: center !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 2rem) !important;
  height: auto !important;
  min-height: 3rem !important;
  margin: 0 auto 1.25rem !important;
  padding: 0.25rem !important;
  gap: 0.2rem !important;
  border: 1px solid rgba(30, 43, 68, 0.13) !important;
  border-radius: 8px !important;
  background: #f4f8fc !important;
  box-shadow: 0 8px 22px rgba(30, 43, 68, 0.07) !important;
}
body.ls-learn-practice-shell .ls-product-switcher > [data-ls-learn-nav],
body.ls-learn-practice-shell .ls-product-switcher > [data-ls-practice-nav] {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 5.9rem !important;
  height: 2.4rem !important;
  min-height: 3rem !important;
  margin: 0 !important;
  padding: 0 0.85rem !important;
  gap: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #526078 !important;
  font-family: Aptos, "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease !important;
}
body.ls-learn-practice-shell .ls-product-switcher > [data-ls-learn-nav] svg,
body.ls-learn-practice-shell .ls-product-switcher > [data-ls-practice-nav] svg {
  display: none !important;
}
body.ls-learn-practice-shell .ls-product-switcher > [data-ls-learn-nav]:hover,
body.ls-learn-practice-shell .ls-product-switcher > [data-ls-practice-nav]:hover {
  background: rgba(251, 253, 255, 0.72) !important;
  color: #1c2944 !important;
}
body.ls-learn-practice-shell .ls-product-switcher > [data-ls-learn-nav]:focus-visible,
body.ls-learn-practice-shell .ls-product-switcher > [data-ls-practice-nav]:focus-visible {
  outline: 2px solid #657492 !important;
  outline-offset: 2px !important;
}
body.ls-learn-practice-shell .ls-product-switcher > [aria-current="page"] {
  border-color: rgba(30, 43, 68, 0.12) !important;
  background: #fbfdff !important;
  color: #101827 !important;
  box-shadow: 0 2px 7px rgba(30, 43, 68, 0.1) !important;
}

/* The traced brand mark anchors the left side of the workspace header without
   entering the switcher's layout or shifting its true center. */
body.ls-learn-practice-shell .ls-product-wordmark {
  position: absolute !important;
  inset: 2.3rem auto auto 1rem !important;
  z-index: 80 !important;
  display: flex !important;
  align-items: center !important;
  width: clamp(8.75rem, 13vw, 10rem) !important;
  height: 3rem !important;
  pointer-events: auto !important;
  user-select: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

body.ls-learn-practice-shell .ls-product-wordmark:focus-visible {
  outline: 2px solid #657492 !important;
  outline-offset: 4px !important;
  border-radius: 4px !important;
}

body.ls-learn-practice-shell .ls-product-wordmark img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 2rem !important;
  object-fit: contain !important;
}

/* Feedback and settings remain available without the old full-width header surface. */
body.ls-learn-practice-shell .ls-app-header.ls-product-utility-dock {
  position: absolute !important;
  inset: 2.3rem 0 auto auto !important;
  z-index: 80 !important;
  width: auto !important;
  min-height: 3rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
}

body.ls-learn-practice-shell .ls-app-header.ls-product-utility-dock > :first-child:empty {
  display: none !important;
}

body.ls-learn-practice-shell .ls-app-header.ls-product-utility-dock > :last-child {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  pointer-events: auto;
}

body.ls-learn-practice-shell .ls-product-utility-dock button[aria-label="Feedback"],
body.ls-learn-practice-shell .ls-product-utility-dock button[aria-label="Settings"] {
  width: 3rem !important;
  min-width: 3rem !important;
  height: 3rem !important;
  min-height: 3rem !important;
  padding: 0 !important;
}

body.ls-learn-practice-shell .ls-product-utility-dock button[aria-label="Feedback"] svg {
  width: 1.45rem !important;
  height: 1.45rem !important;
}

body.ls-learn-practice-shell .ls-product-utility-dock button[aria-label="Settings"] .ls-account-avatar-logo {
  width: 2.65rem !important;
  min-width: 2.65rem !important;
  max-width: 2.65rem !important;
  height: 2.65rem !important;
}

html.ls-dark-mode body.ls-learn-practice-shell .ls-product-switcher {
  border-color: rgba(169, 184, 205, 0.18) !important;
  background: #101827 !important;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22) !important;
}
html.ls-dark-mode body.ls-learn-practice-shell .ls-product-switcher > [data-ls-learn-nav],
html.ls-dark-mode body.ls-learn-practice-shell .ls-product-switcher > [data-ls-practice-nav] {
  color: #aebbd0 !important;
}
html.ls-dark-mode body.ls-learn-practice-shell .ls-product-switcher > [data-ls-learn-nav]:hover,
html.ls-dark-mode body.ls-learn-practice-shell .ls-product-switcher > [data-ls-practice-nav]:hover {
  background: #172235 !important;
  color: #eef4ff !important;
}
html.ls-dark-mode body.ls-learn-practice-shell .ls-product-switcher > [aria-current="page"] {
  border-color: rgba(132, 153, 183, 0.25) !important;
  background: #1c2944 !important;
  color: #eef4ff !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.26) !important;
}

html.ls-dark-mode body.ls-learn-practice-shell .ls-product-wordmark img {
  filter: brightness(0) invert(1) !important;
  opacity: 0.94 !important;
}

@media (max-width: 760px) {
  body.ls-learn-practice-shell .ls-product-wordmark {
    display: none !important;
  }
}

@media (max-width: 640px) {
  body.ls-learn-practice-shell .ls-product-switcher {
    max-width: calc(100% - 1rem) !important;
    margin-bottom: 1rem !important;
  }
  body.ls-learn-practice-shell .ls-product-switcher > [data-ls-learn-nav],
  body.ls-learn-practice-shell .ls-product-switcher > [data-ls-practice-nav] {
    min-width: 5.35rem !important;
    height: 2.3rem !important;
    padding-inline: 0.7rem !important;
    font-size: 0.86rem !important;
  }
  body.ls-learn-practice-shell .ls-app-header.ls-product-utility-dock {
    top: 1.25rem !important;
    right: 0 !important;
  }
}

