:root {
  --user-header-background: rgba(255, 255, 255, 0.94);
  --user-header-border: #e4e7ec;
}

.user-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.user-top-actions a,
.user-top-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 13px;
  color: #475467;
  background: transparent !important;
  border: 0 !important;
  border-radius: 7px;
  box-shadow: none !important;
  font-size: 13px;
  text-decoration: none;
}

.user-top-actions button {
  cursor: pointer;
}

.user-top-actions a:hover,
.user-top-actions button:hover {
  color: #344054;
  background: #f2f4f7;
}

.user-top-actions a.active,
.user-top-actions button.active {
  color: #087fb8;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  font-weight: 700;
}

.user-top-actions .nav-count {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.user-top-actions .nav-count[hidden],
.user-top-actions button[hidden] {
  display: none;
}

.user-top-actions button.quick-link-action {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  color: #98a2b3;
  background: transparent;
  border: 0;
}

.user-top-actions button.quick-link-action:hover {
  color: #344054;
  background: transparent;
}

.user-top-actions button.quick-link-action.active {
  color: #d18a12;
  background: transparent;
}

.user-top-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-top-actions a.mobile-version-link,
.channel-user-actions a.mobile-version-link {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 6px;
  color: #475467;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  font-weight: 400;
  opacity: 1;
  white-space: nowrap;
}

.user-top-actions a.mobile-version-link:hover,
.channel-user-actions a.mobile-version-link:hover {
  color: #344054;
  background: transparent !important;
  border-color: transparent !important;
  opacity: 1;
}

.user-top-actions a.mobile-version-link:focus-visible,
.channel-user-actions a.mobile-version-link:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 3px;
}

.user-top-actions .mobile-version-link .nav-label-text {
  display: inline;
}

.quick-entry-button {
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  color: #98a2b3;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.title-with-quick {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.user-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.channel-nav-inner {
  padding-top: 16px;
  padding-bottom: 16px;
}

.page.user-page-shell {
  padding-top: 0;
}

header.user-page-header {
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding-right: clamp(16px, 2vw, 24px);
  padding-left: clamp(16px, 2vw, 24px);
  background: var(--user-header-background);
  border-bottom: 1px solid var(--user-header-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.topbar-inner.user-page-header {
  width: 100%;
  padding-right: clamp(16px, 2vw, 24px);
  padding-left: clamp(16px, 2vw, 24px);
}

.user-page-header > .user-header-main {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.user-page-header > .page-topbar-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  width: max-content;
  max-width: 100%;
}

.user-page-header > .search-box {
  flex: 1 1 320px;
  max-width: 620px;
  margin-left: auto;
}

.topbar-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shared-top-brand {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 8px;
}

.shared-top-brand img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.quick-entry-button:hover {
  color: #344054;
  background: transparent;
}

.quick-entry-button.active {
  color: #d18a12;
  background: transparent;
}

.quick-entry-button.active svg {
  fill: currentColor;
}

.quick-entry-button span {
  display: none;
}

.quick-link-toast {
  position: fixed;
  z-index: 9999;
  top: 18px;
  left: 50%;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.quick-link-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.quick-entry-button[hidden] {
  display: none;
}

.quick-entry-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .user-top-actions .nav-label-text {
    display: none;
  }
}

@media (max-width: 800px) {
  .user-page-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .user-page-header > .user-header-main {
    flex: 1 1 calc(100% - 46px);
  }

  .user-page-header > .page-topbar-actions {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }
}
