/* 7.9.56 — nuclear product scroll, white language, tab close, no fake cages */

html:has(body.bu-product-page) {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  max-height: none !important;
}
html body.bu-product-page {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100% !important;
  background: #f4efe4 !important;
}
html body.bu-product-page .landing-shell,
html body.bu-product-page .landing-shell-main,
html body.bu-product-page main {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  contain: none !important;
}

/* Language: white panel, under the button, code never truncates to “b” */
html body .bu-lang-pick.bu-lang-v56 {
  position: relative !important;
  z-index: 90;
  overflow: visible !important;
}
html body .bu-lang-v56 .bu-lang-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  min-width: 78px;
  padding: 0 10px 0 6px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #e6ddd0 !important;
  color: #1a2332 !important;
  box-shadow: 0 8px 20px rgba(26, 35, 50, 0.08);
}
html body .bu-lang-v56 .bu-lang-btn-code {
  display: inline-block !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a2332 !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
html body .bu-lang-v56 .bu-lang-btn-name {
  display: none !important;
}
html body .bu-lang-v56 .bu-lang-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  width: 280px;
  max-width: min(280px, 86vw);
  max-height: min(70vh, 480px);
  overflow: auto;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff !important;
  color: #1a2332 !important;
  border: 1px solid #e6ddd0 !important;
  box-shadow: 0 22px 50px rgba(26, 35, 50, 0.16);
  z-index: 60000 !important;
}
html body .bu-lang-v56 .bu-lang-q {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #e6ddd0;
  background: #fff;
  color: #1a2332;
  padding: 0 12px;
  margin-bottom: 8px;
}
html body .bu-lang-v56 .bu-lang-group-lab {
  margin: 8px 6px 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7380;
}
html body .bu-lang-v56 .bu-lang-opt {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #1a2332 !important;
  cursor: pointer;
}
html body .bu-lang-v56 .bu-lang-opt.is-on,
html body .bu-lang-v56 .bu-lang-opt:hover {
  background: #eef6f8;
}
html body .bu-lang-v56 .bu-lang-opt-lab {
  color: #1a2332 !important;
  font-weight: 700;
}
html body .bu-lang-v56 .bu-lang-opt-code {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  color: #0b6e86;
}
html body .bu-neon-head,
html body .bu-neon-head-inner,
html body .bu-neon-actions,
html body .bu-board-header,
html body .bu-board-header-right {
  overflow: visible !important;
}

/* Tabs stay inside chrome; every tab has × */
html body.bu-board-page .bu-tabs-chrome,
html body.bu-term .bu-tabs-chrome {
  overflow: hidden;
}
html body.bu-board-page .bu-tabs-bar,
html body.bu-term .bu-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
html body.bu-board-page .bu-tabs-scroll-wrap,
html body.bu-term .bu-tabs-scroll-wrap {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
html body.bu-board-page .bu-tabs-scroll,
html body.bu-term .bu-tabs-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}
html body.bu-board-page .bu-stab,
html body.bu-term .bu-stab {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  min-width: 0;
  overflow: hidden;
}
html body.bu-board-page .bu-tab-route,
html body.bu-term .bu-tab-route {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
html body.bu-board-page .bu-stab-x,
html body.bu-term .bu-stab-x {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  cursor: pointer;
  line-height: 1;
  font-size: 14px;
}
html body.bu-board-page .bu-stab-x:hover,
html body.bu-term .bu-stab-x:hover {
  background: #fee2e2;
  color: #991b1b;
}

html body.bu-landing-page .bu-neon-stats,
html body.bu-landing-page .bu-neon-spark {
  display: none !important;
}
