html {
  min-height: 100%;
  font-size: 14px;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f3f4f6;
  color: #30363d;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px;
  border-bottom: 1px solid #E5E7EB;
  background: #fff;
  color: #5c6470;
  font-size: 13px;
}

.topbar__left,
.topbar__nav,
.topbar__account {
  display: flex;
  align-items: center;
}

.topbar__left {
  min-width: 0;
  gap: 18px;
}

.topbar__brand {
  flex: 0 0 auto;
  color: #30363d;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.topbar__brand:hover,
.topbar__brand:focus {
  color: #30363d;
}

.topbar__nav {
  min-width: 0;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
}

.topbar__nav-item {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.topbar__nav .topbar__nav-item--active,
.topbar__nav .topbar__nav-item--active:link,
.topbar__nav .topbar__nav-item--active:visited {
  background: none;
  border-bottom: 2px solid #22B14C;
  color: #22B14C;
  font-weight: 600;
}

.topbar__nav-item--disabled {
  color: #68717d;
  cursor: default;
}

.topbar__account {
  flex: 0 0 auto;
  gap: 7px;
}

.topbar__account-badge {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #22B14C;
  color: #fff;
  font-weight: 700;
}

.topbar__account-text {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  line-height: 1.1;
}

.topbar__account-name {
  color: #5a626d;
  font-weight: 600;
}

.topbar__account-role {
  color: #8a929b;
  font-size: 11px;
}

.app-shell,
.workspace {
  min-height: calc(100vh - 46px);
}

.workspace {
  background: #f1f3f5;
}

.kb-workspace {
  display: flex;
}

.kb-app-root {
  width: 100%;
  min-height: calc(100vh - 46px);
  background: #fff;
}

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px;
  }

  .topbar__left {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar__nav {
    width: 100%;
    overflow-x: auto;
  }

  .topbar__account {
    align-self: flex-end;
  }

  .app-shell,
  .workspace {
    min-height: calc(100vh - 102px);
  }

  .kb-app-root {
    min-height: calc(100vh - 102px);
  }
}
