:root {
  --orp-suite-purple: #38039f;
  --orp-suite-purple-dark: #27026f;
  --orp-suite-purple-mid: #5a21c8;
  --orp-suite-orange: #f35300;
  --orp-suite-line: rgba(255, 255, 255, 0.24);
  --orp-suite-copy: #ffffff;
  --orp-suite-muted: rgba(255, 255, 255, 0.72);
  --orp-suite-header-height: 76px;
}

.orp-suite-header {
  box-sizing: border-box;
  height: var(--orp-suite-header-height);
  min-height: var(--orp-suite-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  padding: 12px clamp(10px, 1.8vw, 28px);
  background: var(--orp-suite-purple);
  color: var(--orp-suite-copy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.orp-suite-header *,
.orp-suite-header *::before,
.orp-suite-header *::after {
  box-sizing: border-box;
}

.orp-suite-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.orp-suite-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.orp-suite-brand-title {
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.orp-suite-tools {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
}

.orp-suite-tool {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #fff;
  background: transparent;
  text-decoration: none;
  line-height: 1;
}

.orp-suite-tool[href]:hover,
.orp-suite-tool[href]:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.84);
}

.orp-suite-tool.is-active {
  border-bottom-color: var(--orp-suite-orange);
  color: #fff;
}

.orp-suite-tool strong,
.orp-suite-tool small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orp-suite-tool strong {
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0;
}

.orp-suite-tool small {
  color: var(--orp-suite-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.orp-suite-tool.is-disabled {
  color: rgba(255, 255, 255, 0.42);
  cursor: default;
  pointer-events: none;
}

.orp-suite-tool.is-disabled small {
  color: rgba(255, 255, 255, 0.34);
}

.orp-suite-user-slot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.orp-suite-usercard,
.orp-suite-user-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  max-width: 52vw;
  height: 44px;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid var(--orp-suite-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.9rem;
}

.orp-suite-user-menu {
  position: relative;
  min-width: 0;
}

.orp-suite-user-menu summary {
  list-style: none;
  cursor: pointer;
}

.orp-suite-user-menu summary::-webkit-details-marker {
  display: none;
}

.orp-suite-user-menu[open] summary,
.orp-suite-user-menu summary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.orp-suite-user-icon,
.orp-suite-usercard svg,
.orp-suite-user-menu svg,
.orp-suite-usercard .material-symbols-outlined,
.orp-suite-user-menu .material-symbols-outlined {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: currentColor;
  font-size: 18px;
  line-height: 1;
}

.orp-suite-user-copy {
  display: grid;
  min-width: 0;
  max-width: min(34vw, 340px);
  line-height: 1.15;
}

.orp-suite-user-kicker {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
}

.orp-suite-user-copy strong,
.orp-suite-user-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orp-suite-user-copy strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.orp-suite-user-copy small {
  color: var(--orp-suite-muted);
  font-size: 0.75rem;
}

.orp-suite-user-action,
.orp-suite-usercard > a,
.orp-suite-user-menu a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  padding: 7px 10px;
}

.orp-suite-user-menu a {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--orp-suite-purple);
  box-shadow: 0 10px 24px rgba(29, 23, 37, 0.2);
  font-weight: 800;
  white-space: nowrap;
}

.orp-suite-user-menu a:hover {
  background: var(--orp-suite-orange);
}

@media (max-width: 980px) {
  .orp-suite-header {
    align-items: center;
    flex-wrap: nowrap;
  }

  .orp-suite-tools {
    padding-bottom: 2px;
  }

  .orp-suite-user-slot {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .orp-suite-header {
    height: var(--orp-suite-header-height);
    min-height: var(--orp-suite-header-height);
    gap: 8px;
    padding: 10px;
  }

  .orp-suite-brand {
    gap: 0;
  }

  .orp-suite-brand-mark {
    width: 34px;
    height: 34px;
  }

  .orp-suite-brand-title {
    display: none;
  }

  .orp-suite-tools {
    justify-content: flex-start;
    gap: 9px;
  }

  .orp-suite-tool {
    min-height: 28px;
    padding: 2px 0;
  }

  .orp-suite-tool small {
    display: none;
  }

  .orp-suite-usercard,
  .orp-suite-user-menu summary {
    width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
  }

  .orp-suite-user-copy {
    display: none;
  }

  .orp-suite-user-kicker,
  .orp-suite-user-copy small {
    display: none;
  }

  .orp-suite-user-action {
    padding: 7px 8px;
  }
}
