.site-header{
  position:relative;
  top:auto;
  z-index:2000;
  width:100vw;
  margin:0 calc(50% - 50vw);
  padding:0 16px;
  border-bottom:1px solid #e6e6e6;
  background:#fff;
  color:#111;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  box-sizing:border-box;
}

.site-header *,
.site-header *::before,
.site-header *::after{
  box-sizing:border-box;
}

body > :not(.site-header):not(.account-shell):not(.teacher-account-layout):not(script):not(style):not(noscript):not(.topbar):not(#toTopBtn):not(.cat){
  box-sizing:border-box;
  max-width:var(--site-width, 1304px);
  margin-left:auto;
  margin-right:auto;
}

body > .wrap{
  padding-left:0;
  padding-right:0;
}

.site-header__inner{
  max-width:var(--site-width, 1304px);
  height:64px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.site-header__logo{
  color:#111;
  text-decoration:none;
  font-size:20px;
  line-height:1.15;
  font-weight:700;
  white-space:nowrap;
}

.site-header__nav{
  display:flex;
  align-items:center;
  gap:28px;
}

.site-header__teacher-mobile{
  display:none;
}

.site-header__teacher-profile{
  white-space:nowrap;
}

.site-header__teacher-section{
  white-space:nowrap;
}

.site-header[data-session-role="teacher"] .site-header__nav{
  gap:18px;
}

.site-header[data-session-role="teacher"] .site-header__link{
  font-size:14px;
}

.site-header__dropdown{
  position:relative;
}

.site-header__dropdown::after{
  content:"";
  display:none;
  position:absolute;
  top:100%;
  left:0;
  right:0;
  height:12px;
}

.site-header__dropdown:hover::after,
.site-header__dropdown:focus-within::after{
  display:block;
}

.site-header__link{
  display:flex;
  align-items:center;
  gap:6px;
  color:#111;
  border:0;
  background:transparent;
  text-decoration:none;
  font:inherit;
  font-size:15px;
  cursor:pointer;
}

.site-header__link.is-active{
  color:#4c78a8;
  font-weight:700;
}

.site-header__idea{
  color:#8a5a14;
  font-weight:800;
}

.site-header__idea:hover,
.site-header__idea.is-active{
  color:#74480d;
}

.site-header__arrow{
  font-size:12px;
}

.site-header__menu{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  z-index:10;
  min-width:180px;
  padding:8px;
  flex-direction:column;
  border:1px solid #e6e6e6;
  border-radius:14px;
  background:#fff;
  box-shadow:0 16px 32px rgba(0,0,0,.12);
  overflow:hidden;
}

.site-header__dropdown:hover .site-header__menu,
.site-header__dropdown:focus-within .site-header__menu{
  display:flex;
}

.site-header__menu a{
  padding:9px 12px;
  border-radius:10px;
  color:#111;
  text-decoration:none;
  font-size:14px;
  white-space:nowrap;
  transition:background .15s ease, color .15s ease;
}

.site-header__menu a:hover{
  background:#f2f6fb;
  color:#4c78a8;
}

.site-header__toggle{
  display:none;
  width:44px;
  height:44px;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#111;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.site-header__toggle:active{
  background:#f2f2f2;
}

@media (max-width:900px){
  body > .wrap{
    padding-left:16px;
    padding-right:16px;
  }

  .site-header__logo{
    font-size:17px;
  }

  .site-header__toggle{
    display:flex;
  }

  .site-header__nav{
    display:none;
    position:absolute;
    top:64px;
    left:0;
    width:100%;
    padding:10px 20px;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    border-bottom:1px solid #e6e6e6;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
  }

  .site-header__nav.is-open{
    display:flex;
  }

  .teacher-account-layout .teacher-sidebar{
    display:none;
  }

  .teacher-account-layout{
    gap:0;
  }

  .site-header__teacher-mobile{
    display:grid;
    width:100%;
  }

  .site-header__teacher-profile{
    display:none;
  }

  .site-header__teacher-section{
    display:none;
  }

  .site-header__teacher-mobile > a,
  .site-header__teacher-mobile > span{
    display:grid;
    grid-template-columns:24px minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
    min-height:43px;
    padding:9px 0;
    border-bottom:1px solid #edf1f5;
    color:#26384d;
    font-size:15px;
    font-weight:750;
    line-height:1.2;
    text-decoration:none;
  }

  .site-header__teacher-mobile > a > span,
  .site-header__teacher-mobile > span > span{
    display:grid;
    place-items:center;
    width:24px;
    height:24px;
    border-radius:7px;
    background:#f1f6fb;
    color:#335b8a;
    font-size:13px;
    line-height:1;
  }

  .site-header__teacher-mobile .is-disabled{
    color:#6f7d8d;
  }

  .site-header__teacher-mobile small{
    padding:3px 7px;
    border-radius:999px;
    background:#fff7df;
    color:#8b5e10;
    font-size:10px;
    font-weight:900;
  }

  .site-header__teacher-mobile .is-idea{
    color:#8a5b10;
    font-weight:850;
  }

  .site-header__dropdown{
    width:100%;
  }

  .site-header__dropdown::after{
    display:none;
  }

  .site-header__link{
    width:100%;
    justify-content:space-between;
    padding:12px 0;
    font-size:18px;
    font-weight:650;
  }

  .site-header__menu{
    display:flex;
    position:static;
    gap:12px;
    margin-top:6px;
    padding:0 0 8px 20px;
    border:0;
    border-radius:0;
    box-shadow:none;
    overflow:visible;
  }

  .site-header__menu a{
    padding:4px 0;
    font-size:16px;
  }

  .site-header__login{
    width:100%;
    margin-top:8px;
    padding:12px 0;
    font-size:18px;
    font-weight:650;
  }

  .site-header__idea{
    justify-content:flex-start;
    min-height:0;
    padding:12px 0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#8a5a14;
    font-size:18px;
    font-weight:800;
  }

  .site-header__arrow{
    display:none;
  }
}
