#credentialBroker {
  position: fixed; right: 16px; bottom: 16px; z-index: 10050;
  width: min(400px, calc(100vw - 32px)); max-height: min(85dvh, 740px);
  overflow: auto; padding: 16px; box-sizing: border-box; border-radius: 12px;
  color: var(--text-primary, #ececf1); background: var(--bg-panel, #1d2028);
  border: 1px solid var(--border, #505868); box-shadow: 0 8px 36px #0008;
  font: 14px/1.5 system-ui, sans-serif;
}
#credentialBroker[hidden] { display: none; }
#credentialBroker h2 { font-size: 16px; margin: 0 0 12px; }
#credentialBroker h3 { font-size: 17px; margin: 0 0 6px; overflow-wrap: anywhere; }
#credentialBroker .credential-card + .credential-card { border-top: 1px solid #555; margin-top: 16px; padding-top: 16px; }
#credentialBroker p { margin: 6px 0 10px; overflow-wrap: anywhere; }
#credentialBroker .credential-note, #credentialBroker .credential-session { font-size: 12px; color: #bfc6d3; }
#credentialBroker .credential-value {
  display: block; box-sizing: border-box; width: 100%; min-height: 44px;
  margin: 6px 0 12px; padding: 8px 10px; border-radius: 6px;
  border: 1px solid #747c8c; background: #12151b; color: #fff; font: 16px system-ui;
}
#credentialBroker .credential-remember,
#credentialBroker .credential-visibility { display: flex; gap: 8px; align-items: center; min-height: 44px; cursor: pointer; }
#credentialBroker input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; }
#credentialBroker .credential-actions { display: flex; justify-content: flex-end; gap: 8px; }
#credentialBroker button { min-height: 44px; padding: 8px 12px; border-radius: 6px; border: 1px solid #747c8c; background: #292f3b; color: #fff; cursor: pointer; font: inherit; }
#credentialBroker button[type=submit] { background: #3057ae; }
#credentialBroker :focus-visible { outline: 2px solid #a4c2ff; outline-offset: 2px; }
#credentialBroker button:disabled { opacity: .55; cursor: wait; }
#credentialBroker .credential-error { color: #ffb5b5; }
@media (max-width: 480px) {
  #credentialBroker { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100vw - 16px); padding: 14px; }
}
