/*
 * GAINVO v3.5.0
 * Business-first identity for authenticated workspaces.
 */

.workspace-identity {
  position: relative;
  min-height: 78px;
  padding: 0 3px 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.workspace-identity::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: -1px;
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.workspace-brand {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--ink);
}

.workspace-brand:focus-visible {
  border-radius: 14px;
  outline: 3px solid rgba(21, 62, 117, .18);
  outline-offset: 4px;
}

.workspace-brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d9e3ed;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--brand), #4175a8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 62, 117, .18);
}

.workspace-brand-mark > span {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
}

.workspace-brand-mark.has-logo {
  padding: 4px;
  background: #fff;
}

.workspace-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.workspace-brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.workspace-brand-copy small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-brand-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 880;
  line-height: 1.2;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workspace-powered {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  padding: 2px 13px 0 !important;
  color: #5d6c7e !important;
  font-size: 9px;
  line-height: 1.35;
}

.workspace-powered strong {
  color: #38495d;
  font-size: inherit;
}

.workspace-powered span {
  margin-left: auto;
  color: #66758a;
  font-size: 8px;
  white-space: nowrap;
}

.workspace-powered span::before {
  content: "·";
  margin-right: 4px;
}

@media (max-width: 680px) {
  .workspace-identity {
    min-height: 72px;
    margin-bottom: 8px;
    padding-bottom: 13px;
  }

  .workspace-brand {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding-right: 4px;
  }

  .workspace-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .workspace-brand-copy strong {
    font-size: 14px;
  }
}
