/* The workbench and company library are peers; research pages live one level below. */
.side-menu .research-nav-group > .el-sub-menu__title {
  height: 44px;
  margin-bottom: 4px;
  border-radius: 8px;
  gap: 10px;
  font-weight: 800;
}

.side-menu .research-nav-group.is-active > .el-sub-menu__title {
  color: var(--brand);
}

.side-menu .research-nav-group > .el-menu {
  margin: 0 0 12px 12px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  background: transparent;
}

.side-menu .research-nav-group > .el-menu > .el-menu-item {
  min-width: 0;
  height: 40px;
  margin-bottom: 4px;
  padding-left: 14px !important;
  padding-right: 10px;
  font-size: 13px;
  font-weight: 600;
}

.side-menu i {
  width: 18px;
  flex-shrink: 0;
  text-align: center;
}

.mobile-nav-toggle { display: none; }

@media (max-width: 960px) {
  #app .app-frame > .sidebar {
    width: 100% !important;
    display: block;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #app .sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .sidebar-logo { width: 150px; }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-strong);
    font: inherit;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
  }

  .mobile-nav-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
  }

  #app .sidebar .side-menu { display: none; }

  #app .sidebar.mobile-nav-open .side-menu {
    display: block;
    margin-top: 12px;
  }

  #app .sidebar .side-menu > .el-menu-item {
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
  }

  #app .app-shell > .topbar { height: auto; min-height: 96px; }
}

#app .app-shell > .topbar { height: auto; min-height: 88px; padding-top: 18px; padding-bottom: 16px; }
.topbar-title { flex: 1 1 auto; min-width: 0; }
.topbar-account { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; max-width: 100%; margin-left: auto; }
.topbar-identity { display: grid; gap: 5px; min-width: 0; max-width: 200px; }
.topbar-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--brand-strong); font-size: 14px; line-height: 1.4; }
.topbar-identity .el-tag { width: fit-content; }
.topbar-account-actions { display: flex; flex-shrink: 0; gap: 8px; }
.topbar-account-actions .el-button { margin: 0; min-height: 32px; }
@media (max-width: 560px) {
  #app .app-shell > .topbar { gap: 14px; }
  .topbar-title { width: 100%; }
  .topbar-account { width: 100%; justify-content: space-between; gap: 12px; }
  .topbar-identity { flex: 1 1 auto; max-width: none; }
  .topbar-account-actions { gap: 6px; }
  .topbar-account-actions .el-button { min-height: 36px; }
}
