:root {
  --openplay-shell-height: 113px;
  --openplay-shell-width: 1384px;
  --openplay-shell-pad: 28px;
}

.openplay-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(calc(100% - (var(--openplay-shell-pad) * 2)), var(--openplay-shell-width));
  min-height: var(--openplay-shell-height);
  margin: 0 auto;
  padding: 8px 18px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "brand utility"
    "nav nav";
  align-items: center;
  column-gap: 22px;
  row-gap: 6px;
  background: linear-gradient(90deg, rgba(13, 20, 27, .99), rgba(16, 24, 32, .99));
  border-bottom: 1px solid rgba(255, 210, 30, .44);
  box-shadow: 0 16px 42px rgba(6, 10, 15, .24);
}

.openplay-shell-brand {
  grid-area: brand;
  width: 178px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center start;
  background: transparent;
}

.openplay-shell-logo {
  width: 156px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.openplay-shell-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.openplay-shell-nav::-webkit-scrollbar,
.level-feature-nav::-webkit-scrollbar {
  display: none;
}

.openplay-shell-nav a {
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  color: rgba(235, 242, 246, .66);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.openplay-shell-nav a:hover {
  color: rgba(255, 255, 255, .96);
}

.openplay-shell-nav a.active {
  color: #ffd21e;
}

.openplay-shell-utility {
  grid-area: utility;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
}

.openplay-shell-home {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.openplay-shell-home:hover {
  color: #ffd21e;
}

.staff-beta-navigation {
  display: none !important;
}

html.staff-beta-access .staff-beta-navigation {
  display: inline-flex !important;
}

.openplay-shell .language-switcher {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: rgba(255, 255, 255, .07);
}

.openplay-shell .lang-btn {
  width: 34px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 900;
  box-shadow: none;
}

.openplay-shell .lang-btn.active {
  background: #ffd21e;
  color: #111820;
}

.openplay-shell .utility-member {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}

.openplay-shell .member-session {
  max-width: 180px;
  overflow: hidden;
  color: #cde85b;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-module-shell {
  position: sticky;
  top: var(--openplay-shell-height);
  z-index: 85;
  width: 100%;
  border-bottom: 1px solid #dbe3df;
  background: rgba(250, 251, 248, .97);
  box-shadow: 0 8px 24px rgba(17, 24, 32, .06);
  backdrop-filter: blur(12px);
}

.level-module-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.level-module-heading {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
}

.level-module-heading span {
  color: #14865c;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
}

.level-module-heading strong {
  color: #182129;
  font-size: 16px;
  font-weight: 950;
}

.level-feature-nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.level-feature-nav a,
.level-feature-nav button {
  position: relative;
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 66px;
  padding: 0 0;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #66716d;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: none;
}

.level-feature-nav a::after,
.level-feature-nav button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: transparent;
}

.level-feature-nav a:hover,
.level-feature-nav button:hover,
.level-feature-nav a.active,
.level-feature-nav button.active {
  color: #111820;
  background: transparent;
}

.level-feature-nav a.active::after,
.level-feature-nav button.active::after {
  background: #14865c;
}

.level-feature-nav small {
  color: #14865c;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .04em;
}

@media (max-width: 760px) {
  :root {
    --openplay-shell-height: 109px;
    --openplay-shell-pad: 12px;
  }

  .openplay-shell {
    padding: 7px 12px 9px;
    column-gap: 8px;
    row-gap: 6px;
  }

  .openplay-shell-brand {
    width: 112px;
    height: 48px;
  }

  .openplay-shell-logo {
    width: 108px;
    height: 42px;
  }

  .openplay-shell-nav {
    gap: 8px;
  }

  .openplay-shell-nav a {
    min-height: 36px;
    padding: 0 9px 0 0;
    font-size: 14px;
  }

  .openplay-shell-utility {
    gap: 5px;
  }

  .openplay-shell-home,
  .openplay-shell .member-session {
    display: none !important;
  }

  .openplay-shell .language-switcher {
    gap: 1px;
    padding: 2px;
  }

  .openplay-shell .lang-btn {
    width: 27px;
    min-height: 30px;
    font-size: 9px;
  }

  .openplay-shell .utility-member {
    width: 54px;
    min-height: 34px;
    padding: 0 5px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .level-module-inner {
    width: calc(100% - 24px);
    min-height: 58px;
    gap: 14px;
  }

  .level-module-heading {
    display: none;
  }

  .level-feature-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 22px;
  }

  .level-feature-nav a,
  .level-feature-nav button {
    min-height: 58px;
    font-size: 13px;
  }
}

html.spomotive-level-embedded,
html.spomotive-level-embedded body {
  min-height: 0 !important;
  background: #f4f6f1 !important;
}

html.spomotive-level-embedded .openplay-shell {
  display: none !important;
}

html.spomotive-level-embedded .app,
html.spomotive-level-embedded .workspace,
html.spomotive-level-embedded .shell,
html.spomotive-level-embedded body.result-active .workspace {
  min-height: 0 !important;
}

html.spomotive-level-embedded .workspace,
html.spomotive-level-embedded .shell {
  padding-bottom: 0 !important;
}

html.spomotive-level-embedded .shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

html.spomotive-level-embedded .level-module-shell,
html.spomotive-level-embedded .level-hero,
html.spomotive-level-embedded .ai-hero {
  display: none !important;
}

html.spomotive-level-embedded #appLayout,
html.spomotive-level-embedded body.result-active #appLayout,
html.spomotive-level-embedded .ai-workspace-grid {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-top: 0 !important;
}

html.spomotive-level-embedded .app-footer,
html.spomotive-level-embedded .site-footer {
  display: none !important;
}
