/* Isolated Security Styles */

/* Logout true dropdown: fixed layer, not page-flow content */
.toolbar-dropdown-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible !important;
}

.toolbar-logout-trigger {
  cursor: pointer;
}

.toolbar-logout-menu {
  display: none !important;
  position: fixed !important;
  min-width: 190px;
  width: max-content;
  max-height: none !important;
  overflow: visible !important;
  background: #fbf7f0;
  border: 1px solid rgba(161, 126, 48, .42);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(31, 77, 58, .18);
  padding: 8px;
  z-index: 10050;
}

.toolbar-logout-menu.bbh-logout-menu-open {
  display: grid !important;
  gap: 6px;
}

.toolbar-logout-menu.hidden:not(.bbh-logout-menu-open) {
  display: none !important;
}

.toolbar-logout-item,
.toolbar-logout-menu button.toolbar-logout-item,
.toolbar-logout-menu a.toolbar-logout-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 170px;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  color: #123d2d;
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.toolbar-logout-item:hover,
.toolbar-logout-item:focus {
  background: rgba(212, 175, 55, .16);
  outline: none;
}

/* PIN overlay remains isolated */
.bbh-pin-lock-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  background: rgba(20, 28, 24, .32);
  backdrop-filter: blur(8px);
  transition: backdrop-filter 150ms ease-out, opacity 150ms ease-out;
}

.bbh-pin-lock-overlay.active {
  display: flex;
  opacity: 1;
}

.bbh-pin-lock-overlay.unlocking {
  backdrop-filter: blur(0px);
  opacity: 0;
}

.bbh-pin-lock-card {
  width: min(92vw, 420px);
  background: #fbf7f0;
  border: 1px solid rgba(212, 175, 55, .55);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  padding: 26px;
  text-align: center;
}

.bbh-pin-lock-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #9a7a24;
  font-size: .76rem;
  font-weight: 900;
}

.bbh-pin-input {
  font-size: 2rem;
  letter-spacing: .35em;
  text-align: center;
  max-width: 190px;
  margin: 12px auto;
}

.bbh-pin-input.pin-error {
  border-color: #9f1d1d !important;
  animation: bbh-pin-shake 180ms ease;
}

@keyframes bbh-pin-shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.bbh-pin-error {
  min-height: 22px;
  color: #9f1d1d;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 8px;
}