.app-header {
  height: 68px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid #dedbe4;
  position: relative;
  top: auto;
  z-index: 20;
}

.app-header .brand {
  display: flex;
  align-items: center;
  color: #17171c;
  font: 800 22px Manrope, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.app-header .brand > span:last-child { color: #7255eb; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-logo {
  display: block;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
}

.brand .brand-name {
  color: #17171c;
  line-height: 1;
}

.brand .brand-name span {
  color: #7255eb;
}

.brand-mark {
  width: 29px;
  height: 29px;
  margin-right: 9px;
  position: relative;
  flex: 0 0 auto;
}

.brand-mark i {
  display: block;
  width: 19px;
  height: 8px;
  border: 2px solid #17171c;
  border-radius: 50%;
  position: absolute;
  left: 5px;
}

.brand-mark i:nth-child(1) { top: 3px; }
.brand-mark i:nth-child(2) { top: 10px; }
.brand-mark i:nth-child(3) { top: 17px; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
}

.header-new {
  min-height: 37px;
  height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.primary.header-new,
.primary-btn.header-new {
  border: 0;
  background: #17171c;
  color: #fff;
  box-shadow: 0 5px 14px rgba(23,23,28,.16);
}

.primary.header-new:hover,
.primary-btn.header-new:hover { background: #302f38; }

.avatar {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #17171c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0;
}

.account-menu {
  position: absolute;
  z-index: 150;
  top: 48px;
  right: 0;
  width: 360px;
  max-height: min(680px, calc(100vh - 85px));
  overflow: auto;
  display: none;
  background: #fff;
  border: 1px solid #dfdce5;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(37,30,60,.21);
  text-align: left;
}

.account-menu.show { display: block; }

.account-menu-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #ebe8ee;
  background: #fff;
}

.account-menu-head div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-menu-head small {
  color: #8b8793;
  font-size: 8px;
  letter-spacing: 1.3px;
  font-weight: 800;
}

.account-menu-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font: 800 16px Manrope, sans-serif;
}

.account-menu section {
  padding: 13px 12px;
  border-bottom: 1px solid #ebe8ee;
}

.account-menu section:last-child { border-bottom: 0; }

.account-menu section h3 {
  margin: 0 3px 8px;
  color: #85818e;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.account-meta {
  margin: 0 3px 9px;
  color: #5f5b66;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.account-actions form { margin: 0; }

.account-actions button,
.feature-links a {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedbe4;
  border-radius: 8px;
  background: #fff;
  color: #4c4853;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

.account-actions button:hover,
.feature-links a:hover {
  border-color: #bfb4ee;
  background: #f4f1ff;
  color: #6044ce;
}

.concept-list {
  display: grid;
  gap: 4px;
}

.concept-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 10px;
  background: #fff;
  color: #17171c;
  text-align: left;
}

.concept-item:hover { background: #f7f5fa; }
.concept-item.active { border-color: #d5ccf7; background: #f2effd; }

.concept-item span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.concept-item b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.concept-item small {
  color: #918e98;
  font-size: 9px;
}

.concept-item i {
  color: #9a96a1;
  font-style: normal;
  font-size: 18px;
}

.feature-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

@media (max-width: 760px) {
  .app-header {
    padding: 0 14px;
    gap: 10px;
  }

  .app-header .brand {
    font-size: 20px;
  }

  .project {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-new {
    padding: 0 10px;
    font-size: 11px;
  }

  .account-menu {
    position: fixed;
    top: 66px;
    right: 6px;
    width: calc(100vw - 12px);
  }

  .feature-links {
    grid-template-columns: 1fr;
  }
}
