/* The mark is a tiny enamel star, not a verification tick or an account role. */
nb-orbit-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  vertical-align: middle;
  line-height: 0;
}
.fo-pin {
  appearance: none;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  min-width: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  border: 1px solid transparent;
  border-radius: 50%;
  line-height: 1;
  cursor: help;
  touch-action: manipulation;
}
.fo-art {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  overflow: visible;
  filter: drop-shadow(0 1px 1px #09071580);
}
nb-orbit-pin[data-place="account"] .fo-art {
  width: 20px;
  height: 20px;
}
.fo-pin:focus-visible {
  outline: 2px solid #e7d6ff;
  outline-offset: 1px;
}
.fo-pin[aria-expanded="true"] {
  border-color: #8f79aa80;
  background: #3d304c;
}
.fo-star {
  transform-origin: 16px 16px;
}
.fo-pin[aria-expanded="true"] .fo-star {
  filter: drop-shadow(0 0 1.5px #ffd7a680);
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-effects="reduced"]) .fo-pin[aria-expanded="true"] .fo-star {
    animation: fo-catchlight 0.48s ease-out both;
  }
  @keyframes fo-catchlight {
    0% {
      transform: scale(0.94);
    }
    52% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
}
.fo-nameplate {
  display: block;
  min-width: 0;
  max-width: 100%;
  line-height: 1.2;
  text-wrap: balance;
}
.fo-nameplate h1 {
  display: inline;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.fo-nameplate nb-orbit-pin {
  margin-inline-start: 3px;
  vertical-align: middle;
}
/* Nick colors are deliberate pale inks. Keep signed-in names readable on a dark
   surface without changing the sign-in CTA, or expanding a touch target on hover. */
html[data-working] .gl-top #authBtn[data-viewer^="@"] {
  background: #282132;
  box-shadow: inset 0 0 0 1px #51445e;
}
html[data-working] .gl-top #authBtn[data-viewer^="@"]:hover {
  background: #342a40;
  box-shadow: inset 0 0 0 1px #806e92;
}
.gl-profile-cover .flex:has(> .fo-nameplate) {
  flex-wrap: wrap;
  gap: 6px 8px;
}
#nbOrbitExplanation {
  position: fixed;
  box-sizing: border-box;
  z-index: 9999;
  display: grid;
  gap: 4px;
  width: max-content;
  max-width: min(212px, calc(100vw - 16px));
  padding: 10px 12px;
  border: 1px solid #746382;
  border-radius: 10px;
  background: #211c2b;
  color: #efe8f4;
  box-shadow: 0 8px 24px #08050f55;
  font:
    400 12px/1.45 system-ui,
    sans-serif;
  text-align: left;
  isolation: isolate;
  pointer-events: auto;
}
#nbOrbitExplanation[hidden],
.fo-console [hidden] {
  display: none !important;
}
#nbOrbitExplanation strong {
  color: #f7d79b;
  font-weight: 680;
  font-size: 13px;
}
#nbOrbitExplanation::before {
  content: "";
  position: absolute;
  left: var(--fo-tail, 50%);
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  background: #211c2b;
  transform: translateX(-50%) rotate(45deg);
}
#nbOrbitExplanation[data-side="above"]::before {
  bottom: -5px;
  border-right: 1px solid #746382;
  border-bottom: 1px solid #746382;
}
#nbOrbitExplanation[data-side="below"]::before {
  top: -5px;
  border-left: 1px solid #746382;
  border-top: 1px solid #746382;
}
.fo-welcome {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 2px solid #ad8b63;
  padding: 5px 10px;
  line-height: 1.4;
  color: #e2d6e9;
}
nb-orbit-admin {
  display: block;
}
.fo-console {
  margin: 15px 0;
  padding: 16px 18px;
  border: 1px solid #554457;
  border-radius: 14px;
  background: linear-gradient(120deg, #2c2432, #19161f 74%);
  color: #f4edf8;
}
.fo-console header,
.fo-meta,
.fo-confirm footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fo-medal {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #302634;
  border: 1px solid #705b6f;
}
.fo-medal .fo-art {
  width: 31px;
  height: 31px;
}
.fo-console h2,
.fo-confirm h2 {
  margin: 2px 0;
  color: #f8f2fa;
}
.fo-console header small,
.fo-confirm > small {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 650;
  color: #e3c58d;
}
.fo-console p,
.fo-console output,
.fo-confirm p {
  color: #cec4d6;
  line-height: 1.45;
}
.fo-console p {
  margin: 9px 0;
  font-size: 14px;
}
.fo-meta b {
  font-weight: 600;
  color: #a9daca;
}
.fo-meta span {
  color: #cfc4da;
}
.fo-meta {
  gap: 8px 16px;
  font-size: 13px;
}
nb-orbit-admin[data-phase="sealed"] .fo-meta b {
  color: #e5c991;
}
.fo-console output {
  display: block;
  font-size: 12px;
}
.fo-console button {
  margin-top: 10px;
}
.fo-confirm {
  width: min(420px, calc(100vw - 28px));
  box-sizing: border-box;
  max-height: 85dvh;
  overflow: auto;
  padding: 20px;
  border: 1px solid #776282;
  background: #211c29;
  color: #f0ebf6;
  border-radius: 16px;
}
.fo-confirm::backdrop {
  background: #09060dba;
}
.fo-confirm h2 {
  font-size: 1.35rem;
  margin: 5px 0;
}
.fo-confirm label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.fo-confirm input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #d5b9fb;
}
.fo-confirm footer {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 17px;
}
@media (pointer: coarse) {
  .fo-pin {
    height: 44px;
    width: 40px;
  }
  .fo-confirm .btn {
    min-height: 44px;
  }
}
@media (max-width: 520px) {
  .gl-profile-cover > .flex-between {
    flex-wrap: wrap;
    gap: 12px;
  }
  .gl-profile-cover > .flex-between > .flex {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .gl-profile-cover > .flex-between > .flex:first-child > div {
    min-width: 0;
    max-width: 100%;
  }
  .gl-top .top-actions:has(nb-orbit-pin) {
    gap: 2px;
  }
  #nbOrbitExplanation {
    font-size: 13px;
  }
}

@media (max-width: 365px) {
  .gl-top:has(nb-orbit-pin) .gl-brand {
    font-size: 0;
    gap: 0;
    width: 32px;
    height: 44px;
    justify-content: center;
  }
  .gl-profile-cover {
    --fo-name-size: 20px;
  }
}

/* Identity pins stay adjacent to account labels without being inside another button or link. */
nb-orbit-pin[data-place="inline"] > button.fo-pin {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  position: static;
  inset: auto;
  color: inherit;
  border-radius: 50%;
  background: transparent;
}
nb-orbit-pin[data-place="inline"] .fo-art {
  width: 19px;
  height: 19px;
}
nb-orbit-pin[data-place="inline"] > .fo-pin[aria-expanded="true"] {
  background: #403047;
  border-color: #a992bc;
}
