@layer bdr-base {
.bdr-profile-shell {
  min-width: 0;
  z-index: 25;
}
.bdr-profile-trigger {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 6px 12px;
  border: 1px solid #355d7e;
  border-radius: 15px;
  background: #173552;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  box-shadow: inset 0 1px #ffffff16;
}
.bdr-profile-trigger:hover,.bdr-profile-trigger[aria-expanded="true"] {
  border-color: #53c9e7;
  background: #1b4265;
}
.bdr-profile-trigger:focus-visible {
  outline: 2px solid #7ee5ff;
  outline-offset: 2px;
}
.bdr-profile-trigger .bdr-existing-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  pointer-events: none;
}
.bdr-profile-trigger .bdr-profile-chevron {
  margin-left: auto;
  font-size: 14px;
  transition: transform .18s;
  color: #b9e6f7;
}
.bdr-profile-trigger[aria-expanded="true"] .bdr-profile-chevron {
  transform: rotate(180deg);
}
.bdr-profile-popup {
  position: absolute;
  z-index: 100;
  right: 0;
  top: calc(100% + 8px);
  width: max(240px,100%);
  max-width: min(310px,calc(100vw - 28px));
  padding: 12px;
  border: 1px solid #3c7498;
  border-radius: 15px;
  background: var(--theme-surface);
  box-shadow: 0 14px 35px #0007;
  box-sizing: border-box;
  color: #e9f6ff;
}
.bdr-profile-popup-title {
  font-weight: 850;
  font-size: 13px;
  margin: 0 0 4px;
}
.bdr-profile-popup-name {
  font-size: 12px;
  color: #a9d3e8;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.bdr-profile-popup-logout {
  width: 100%;
  min-height: 40px;
  border-radius: 9px;
  border: 1px solid #7ca9c8;
  background: #f5fbff;
  color: #143852;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.bdr-profile-popup-logout:hover {
  background: #d7f3ff;
}
.bdr-profile-trigger .admin-identity-avatar,.bdr-profile-trigger .yt-avatar {
  flex: none;
}
.bdr-profile-trigger .admin-identity-copy,.bdr-profile-trigger .yt-profile-labels {
  min-width: 0;
}
.bdr-profile-trigger .admin-identity-copy>*,.bdr-profile-trigger .yt-profile-labels>* {
  overflow: hidden;
  text-overflow: ellipsis;
}
.bdr-profile-popup {
  width: 270px;
  padding: 14px;
  border: 1px solid #286384;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .4);
}
.bdr-profile-popup-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}
.bdr-profile-popup-name {
  color: #9bc9e3;
  font-size: 12px;
  margin-bottom: 14px;
}
.bdr-profile-popup .bdr-profile-popup-logout {
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  margin-bottom: 7px;
  border: 1px solid rgba(86, 160, 194, .22);
  border-radius: 9px;
  background: rgba(40, 85, 119, .24);
  color: #e5f5ff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.bdr-profile-popup .bdr-profile-popup-logout:hover {
  background: rgba(31, 143, 184, .28);
  border-color: #39b9e0;
}
.bdr-profile-popup .bdr-profile-popup-logout:last-child {
  margin-top: 12px;
  margin-bottom: 0;
  border-color: rgba(232, 112, 112, .3);
  color: #ffb9b9;
}
@media(max-width:700px){
.bdr-mobile-admin-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 48vh;
  overflow-y: auto;
  margin: 9px 0 12px;
  padding: 7px 0;
  border-top: 1px solid var(--theme-control-border);
  border-bottom: 1px solid var(--theme-control-border);
}
.bdr-mobile-nav-item {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--theme-control-border);
  border-radius: 9px;
  background: var(--theme-nav);
  color: var(--theme-text);
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.bdr-mobile-nav-item:active {
  background: #27668b;
}
@media(max-width:700px){
.bdr-profile-popup .finance-link,.bdr-profile-popup a[href="/premium/"] {
  display: block;
  width: 100%;
  min-height: 43px;
}
}
}
}
@layer bdr-legacy-priority {
.bdr-profile-shell {
  position: relative;
}
.bdr-profile-popup[hidden] {
  display: none;
}
.bdr-profile-popup .bdr-profile-popup-logout {
  display: flex;
  text-align: left;
}
@media(max-width:700px){
.admin-app .admin-header #menuToggle {
  display: none;
}
.admin-app .admin-header #adminNav {
  display: none;
}
@media(max-width:700px){
.bdr-profile-popup .finance-link,.bdr-profile-popup a[href="/premium/"] {
  text-align: left;
  padding: 11px 12px;
  margin: 5px 0;
  border: 1px solid var(--theme-control-border);
  border-radius: 9px;
  background: var(--theme-nav);
  color: var(--theme-text);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  box-sizing: border-box;
}
.bdr-profile-popup a[href="/premium/"][hidden] {
  display: none;
}
}
.admin-app .admin-header .bdr-profile-popup {
  z-index: 10010;
}
}
@media(min-width:701px){
.bdr-mobile-admin-links {
  display: none;
}
}
}
