#header.sc-site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(49, 40, 44, .08);
  box-shadow: 0 8px 30px rgba(45, 34, 39, .06);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

#header.sc-site-header > a:first-child {
  align-items: center;
  color: #211b1e;
  display: inline-flex;
  justify-self: start;
  letter-spacing: .09em;
  text-decoration: none;
}

#header.sc-site-header #logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.92rem, 1.5vw, 1.15rem);
  font-weight: 800;
  max-height: none;
}

.sc-top-nav {
  align-items: center;
  background: #f6f3f4;
  border: 1px solid rgba(46, 36, 41, .06);
  border-radius: 999px;
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 5px;
}

.sc-top-nav-item {
  align-items: center;
  border-radius: 999px;
  color: #736a6e;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 700;
  gap: 7px;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
  white-space: nowrap;
}

.sc-top-nav-item .icon { font-size: 1rem; }
.sc-top-nav-item:hover { background: #fff; color: #ec5f78; transform: translateY(-1px); }
.sc-top-nav-item.sc-active {
  background: #ec5f78;
  box-shadow: 0 8px 18px rgba(236, 95, 120, .25);
  color: #fff;
}

body.dark-mode #header.sc-site-header { background: rgba(25, 22, 23, .9); border-color: rgba(255,255,255,.08); }
body.dark-mode #header.sc-site-header > a:first-child { color: #fff; }
body.dark-mode .sc-top-nav { background: #2a2527; border-color: rgba(255,255,255,.08); }
body.dark-mode .sc-top-nav-item { color: #c3babe; }
body.dark-mode .sc-top-nav-item:hover { background: #373134; color: #fff; }

@media (max-width: 767.98px) {
  #header.sc-site-header {
    gap: 12px;
    grid-template-columns: 1fr;
    height: auto;
    padding: 12px 14px 10px;
  }
  #header.sc-site-header > a:first-child { justify-self: center; }
  .sc-top-nav {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
  }
  .sc-top-nav::-webkit-scrollbar { display: none; }
  .sc-top-nav-item { flex: 0 0 auto; font-size: .8rem; min-height: 38px; padding: 0 14px; }
  .sc-top-nav-item .icon { display: none; }
}

#lside .sc-sidebar-story-btn:not(.sc-active) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #545454 !important;
  text-shadow: none !important;
}

#lside .sc-sidebar-nav-item {
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#lside .sc-legacy-story-row,
#lside .row:has(.sc-sidebar-story-btn) {
  display: none !important;
}

#menuHolder .mnav-btn[data-sc-nav="works"] {
  color: #fff !important;
  font-weight: 800;
}

#menuHolder .mnav-btn[data-sc-nav="works"] .icon,
#menuHolder .mnav-btn[data-sc-nav="works"] .text {
  color: inherit !important;
}

#menuHolder .mnav-btn.sc-active {
  color: #ec5f78;
}

#lside .sc-vr-device-icon {
  fill: none;
  height: 1.55rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  width: 1.55rem;
}

@media (min-width: 992px) {
  #lside .col-12.py-4.px-3:has(> .sc-sidebar-story-btn) {
    padding-bottom: .35rem !important;
    padding-top: 1rem !important;
  }

  #lside .navigation-holder {
    padding-top: 1rem !important;
  }

  #lside .navigation ul {
    display: flex;
    flex-direction: column;
    gap: .35rem;
  }

  #lside .navigation li {
    margin: 0 !important;
  }

  #lside:hover .sc-sidebar-story-btn > .icon,
  #lside:hover .sc-sidebar-nav-item > .icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 47px;
    justify-content: center;
    margin: 0 !important;
    min-width: 47px;
    width: 47px;
  }

  #lside:hover .sc-vr-device-icon {
    height: 1.55rem;
  }
}

#lside .sc-sidebar-story-btn:hover,
#lside .sc-sidebar-nav-item:hover {
  background: #e2e2e2 !important;
  border-color: transparent !important;
  color: #545454 !important;
}

#lside .sc-sidebar-nav-item.sc-active,
#lside .sc-sidebar-story-btn.sc-active {
  background: #ec5f78 !important;
  border-color: #ec5f78 !important;
  box-shadow: 0 8px 18px rgba(236, 95, 120, .28) !important;
  color: #fff !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, .16) !important;
}

#lside .sc-sidebar-nav-item.sc-active .icon,
#lside .sc-sidebar-story-btn.sc-active .icon,
#lside .sc-sidebar-nav-item.sc-active .text {
  color: inherit !important;
}

body.dark-mode #lside .sc-sidebar-story-btn:not(.sc-active) {
  color: #e2e2e2 !important;
}

body.dark-mode #lside .sc-sidebar-story-btn:hover,
body.dark-mode #lside .sc-sidebar-nav-item:hover {
  background: #545454 !important;
  color: #e2e2e2 !important;
}

.sc-header-auth {
  align-items: center;
  gap: 10px;
}

.sc-header-auth .btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  min-width: 86px;
  padding: 0 22px;
  text-decoration: none;
}

.sc-header-auth .sc-auth-login {
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  color: #545454;
}

.sc-header-auth .sc-auth-login:hover {
  background: #f8f8f8;
  border-color: #e4e4e4;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .1);
  color: #ec5f78;
}

.sc-header-auth .sc-auth-register {
  box-shadow: 0 10px 24px rgba(236, 95, 120, .28);
  color: #fff;
}

body.dark-mode .sc-header-auth .sc-auth-login {
  background: #232323;
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
  color: #f8f8f8;
}

body.dark-mode .sc-header-auth .sc-auth-login:hover {
  border-color: rgba(255, 255, 255, .26);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .26);
  color: #ec5f78;
}

.sc-header-login-compact {
  display: none !important;
}

#logo,
#logoLS {
  height: auto;
  max-height: 54px;
  object-fit: contain;
  width: auto;
}

@media (max-width: 575.98px) {
  #logo,
  #logoLS {
    max-height: 40px;
  }
}

@media (min-width: 992px) {
  #lside:not(:hover) .sc-sidebar-story-btn {
    align-items: center;
    border-radius: 999px;
    display: flex;
    font-size: 0;
    height: 47px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    white-space: nowrap;
    width: 47px !important;
  }

  #lside:not(:hover) .sc-sidebar-story-btn .icon {
    font-size: 1.45rem;
    margin: 0;
  }

  #lside:hover .sc-sidebar-story-btn {
    gap: 0;
    overflow: hidden;
    white-space: nowrap;
  }
}
