.workspace-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  height: 76px;
  background: rgba(250, 251, 248, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 4px solid #8ebf50;
  box-shadow: 0 8px 22px rgba(18, 32, 24, 0.05);
}

.workspace-header__inner {
  min-height: 76px;
  height: 76px;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: nowrap;
}

.workspace-header__left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 0 0 auto;
}

.workspace-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  text-decoration: none;
}

.workspace-header__brand-image,
.workspace-theme .workspace-header__brand-image {
  height: 65px;
  width: auto;
  max-width: 160px;
  flex: 0 0 auto;
  display: block;
}

.workspace-header__brand-name {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #122018;
}

.workspace-header__brand-name span {
  color: #8ebf50;
}

.workspace-header__nav {
  min-width: 0;
}

.workspace-header__links,
.workspace-header__mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.workspace-header__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.workspace-header__item {
  list-style: none;
}

.workspace-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 0;
  border: none;
  border-bottom: 2px solid transparent;
  color: #24311a;
  background: transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

.workspace-header__link:hover,
.workspace-header__link.is-current {
  color: #5d8732;
  border-color: rgba(142, 191, 80, 0.92);
}

.workspace-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.workspace-header__support {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-left: 18px;
  margin-left: 6px;
  border-left: 1px solid #d4dfc6;
  color: #3d4a34;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}

.workspace-header__support:hover {
  color: #5d8732;
}

.workspace-header__logout {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-left: 18px;
  margin-left: 6px;
  border-left: 1px solid #d4dfc6;
  color: #3d4a34;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: 11px;
  white-space: nowrap;
}

.workspace-header__logout:hover {
  color: #5d8732;
}

.workspace-header__profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #c9dab5;
  background: #f1f7e8;
  color: #24311a;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

.workspace-header__profile:hover {
  border-color: #8ebf50;
  background: #f5f9ef;
  box-shadow: 0 8px 18px rgba(94, 135, 50, 0.12);
  transform: translateY(-1px);
}

.workspace-header__profile span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.workspace-header__menu-toggle {
  display: none;
}

.workspace-header__mobile-panel {
  display: none;
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d4dfc6;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.menu-close {
  display: none;
}

.menu-close-btn {
  align-self: flex-end;
  margin-bottom: 8px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1580px) {
  .workspace-header__support {
    justify-content: center;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding-left: 0;
    margin-left: 0;
    border-left: none;
    border: 1px solid #d4dfc6;
    border-radius: 12px;
    background: #ffffff;
    color: #5d8732;
    font-size: 0;
    letter-spacing: 0;
  }

  .workspace-header__support::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 011 1V20a1 1 0 01-1 1C10.07 21 3 13.93 3 5a1 1 0 011-1h3.5a1 1 0 011 1c0 1.24.2 2.45.57 3.57a1 1 0 01-.24 1.02l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 011 1V20a1 1 0 01-1 1C10.07 21 3 13.93 3 5a1 1 0 011-1h3.5a1 1 0 011 1c0 1.24.2 2.45.57 3.57a1 1 0 01-.24 1.02l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center / contain;
  }

  .workspace-header__support:hover {
    color: #37501d;
    background: #f7faf2;
    border-color: #8ebf50;
    box-shadow: 0 8px 18px rgba(94, 135, 50, 0.12);
  }

  .workspace-header__logout {
    justify-content: center;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding-left: 0;
    margin-left: 0;
    border-left: none;
    border: 1px solid #d4dfc6;
    border-radius: 12px;
    background: #ffffff;
    color: #5d8732;
    font-size: 0;
    letter-spacing: 0;
  }

  .workspace-header__logout::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l1.41-1.41L8.83 13H20v-2H8.83l2.58-2.59L10 7l-7 7 7 7zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l1.41-1.41L8.83 13H20v-2H8.83l2.58-2.59L10 7l-7 7 7 7zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z'/%3E%3C/svg%3E") no-repeat center / contain;
  }

  .workspace-header__logout:hover {
    color: #37501d;
    background: #f7faf2;
    border-color: #8ebf50;
    box-shadow: 0 8px 18px rgba(94, 135, 50, 0.12);
  }
}

@media (max-width: 1240px) {
  .workspace-header__support {
    display: none;
  }

  .workspace-header__logout {
    display: none;
  }
}

@media (max-width: 1360px) {
  .workspace-header__inner {
    justify-content: flex-start;
    padding: 0 18px;
    gap: 16px;
  }

  .workspace-header__brand-image,
  .workspace-theme .workspace-header__brand-image {
    height: 56px;
  }

  .workspace-header__brand-name {
    font-size: 22px;
  }
}

@media (max-width: 1350px) {
  .workspace-header__nav--desktop .workspace-header__link[href*="planejamento_anual.php"] {
    display: none;
  }
}

@media (max-width: 1150px) {
  .workspace-header__nav--desktop .workspace-header__link[href*="corrigir_avaliacoes.php"] {
    display: none;
  }
}

@media (max-width: 1025px) {
  .workspace-header__nav--desktop .workspace-header__link[href*="professor.php"] {
    display: none;
  }
}

@media (max-width: 900px) {
  .workspace-header__inner {
    padding: 0 16px;
  }

  .workspace-header__left {
    gap: 18px;
  }

  .workspace-header__right {
    gap: 10px;
  }

  .workspace-header__links {
    gap: 8px;
  }

  .workspace-header__link {
    min-height: 34px;
    padding: 6px 0;
    font-size: 11px;
  }
}

@media (max-width: 850px) {
  .workspace-header {
    min-height: 64px;
    height: 64px;
  }

  .workspace-header__inner {
    min-height: 64px;
    height: 64px;
    padding: 0 12px;
  }

  .workspace-header__brand-image,
  .workspace-theme .workspace-header__brand-image {
    height: 48px;
  }

  .workspace-header__brand-name {
    font-size: 18px;
  }

  .workspace-header__nav--desktop {
    display: none;
  }

  .workspace-header__menu-toggle {
    display: inline-flex;
  }

  .hamburger {
    display: inline-flex;
  }

  .workspace-header__mobile-panel.is-open {
    display: block;
  }

  .workspace-header__mobile-panel.detached {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 82vw;
    max-width: 380px;
    z-index: 1003;
  }

  .workspace-header__mobile-panel.detached .workspace-header__mobile-surface {
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw;
    height: 100vh;
    background: rgba(24, 31, 24, 0.96);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 16px;
    z-index: 1003;
  }

  .workspace-header__mobile-panel.detached .u-sidenav-overflow {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1004;
    padding-left: 10px;
  }

  .workspace-header__mobile-links,
  .workspace-header__mobile-panel.detached .workspace-header__link {
    position: relative;
    z-index: 1005;
  }

  .workspace-header__mobile-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .workspace-header__mobile-surface .menu-close-btn {
    display: inline-flex;
  }

  .workspace-header__mobile-panel.detached .workspace-header__link {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
    border-bottom: none;
    padding: 10px 0;
    color: #fff;
  }
}
