/* One identity chooser for the account dialog and full selector page. */
body.qb-theme-account .qb-account-switch-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; border: 1px solid #dce2ed; border-radius: 5px; background: #f7f9fc; color: #172a50; cursor: pointer; font: 500 12px/1.4 "Segoe UI", Arial, sans-serif; }
body.qb-theme-account .qb-account-switch-trigger:hover { border-color: #b7c8e5; background: #edf1f9; color: #123b91; }
.qb-account-switch-trigger > svg { width: 15px; height: 15px; flex: 0 0 auto; }
.qb-account-switch-trigger > span { max-width: 145px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.qb-account-switch-trigger > .qb-account-switch-chevron { width: 12px; height: 12px; }
.qb-switcher-modal .modal-dialog { width: calc(100% - 32px); max-width: 520px; margin: 24px auto; }
body.qb-theme-account .qb-switcher-modal .modal-content { border: 1px solid #dce2ed; border-radius: 8px; box-shadow: 0 24px 80px #0e21462b; overflow: hidden; }
.qb-profile-switcher { background: #fff; color: #172a50; font-family: "Segoe UI", Arial, sans-serif; text-align: start; border-radius: 8px; }
.qb-switcher-heading { position: relative; padding: 26px 28px 22px; border-bottom: 1px solid #e5e9f0; }
.qb-switcher-eyebrow { display: block; color: #66748b; font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 8px; }
.qb-switcher-heading h2 { margin: 0 40px 8px 0; font: 400 28px/1.2 Georgia, "Times New Roman", serif; color: #172a50; }
.qb-switcher-heading p { margin: 0; max-width: 390px; color: #66748b; font-size: 12px; line-height: 1.6; }
.qb-switcher-close { position: absolute; inset-inline-end: 18px; top: 18px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 5px; background: #f3f5f9; color: #66748b; cursor: pointer; }
.qb-switcher-close:hover { background: #e8edf8; color: #123b91; }
.qb-switcher-close svg { width: 18px; height: 18px; }
.qb-switcher-body { padding: 20px 20px 12px; }
.qb-switcher-search { position: relative; margin: 0 8px 22px; }
.qb-switcher-search > svg { width: 17px; height: 17px; position: absolute; top: 14px; inset-inline-start: 13px; color: #8190a9; pointer-events: none; }
body.qb-theme-account .qb-switcher-search .form-control { padding-inline-start: 39px; padding-inline-end: 12px; font-size: 13px; min-height: 44px; border: 1px solid #dce2ed; border-radius: 5px; background: #f9fafc; }
.qb-switcher-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 8px 10px; color: #66748b; font-size: 11px; font-weight: 600; }
.qb-switcher-count { font-variant-numeric: tabular-nums; color: #172a50; padding: 2px 7px; border-radius: 3px; background: #edf1f7; min-width: 22px; text-align: center; }
.qb-switcher-count:empty { display: none; }
.qb-switcher-list { list-style: none; margin: 0; padding: 0; max-height: min(340px, 42vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cbd4e3 transparent; }
.qb-switcher-item { margin: 0; padding: 0; }
.qb-switcher-item + .qb-switcher-item { margin-top: 5px; }
.qb-switcher-choice { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 76px; padding: 14px 12px; background: transparent; color: #172a50; border: 1px solid transparent; border-radius: 5px; text-align: start; font: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.qb-switcher-choice:hover { background: #f6f8fc; border-color: #e5e9f0; }
.qb-switcher-choice.is-current { background: #f0f3fa; border-color: #dce4f3; }
.qb-switcher-avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; overflow: hidden; border-radius: 6px; background: #e8edf8; color: #123b91; font-size: 17px; font-weight: 600; }
.qb-switcher-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qb-switcher-page { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 4px; }
.qb-switcher-page b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.qb-switcher-category { color: #66748b; font-size: 11px; line-height: 1.4; }
.qb-switcher-sections { display: flex; flex-wrap: wrap; gap: 4px; }
.qb-switcher-section { font-size: 10px; line-height: 1.5; padding: 1px 5px; border-radius: 3px; background: #e8edf8; color: #123b91; }
.qb-switcher-current { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; color: #123b91; font-size: 10px; }
.qb-switcher-current svg { width: 13px; height: 13px; }
.qb-switcher-go { display: inline-flex; flex: 0 0 auto; color: #93a0b7; }
.qb-switcher-go svg { width: 15px; height: 15px; }
.qb-switcher-state { min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; color: #66748b; font-size: 13px; text-align: center; line-height: 1.6; }
.qb-switcher-state[hidden], .qb-switcher-create[hidden] { display: none; }
.qb-switcher-state p { margin: 0; }
.qb-switcher-spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid #dce2ed; border-top-color: #123b91; border-radius: 50%; animation: qb-switcher-spin .7s linear infinite; }
.qb-switcher-switching .qb-switcher-go svg, .qb-switcher-switching .qb-switcher-current svg { animation: qb-switcher-spin .7s linear infinite; }
.qb-switcher-actions { padding: 12px 20px 20px; border-top: 1px solid #e5e9f0; background: #fafbfd; }
body.qb-theme-account .qb-switcher-create { display: flex; align-items: center; gap: 13px; padding: 13px 12px; border-radius: 5px; color: #172a50; text-decoration: none; }
body.qb-theme-account .qb-switcher-create:hover { background: #edf1f8; color: #123b91; }
.qb-switcher-action-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #dce2ed; border-radius: 5px; background: #fff; color: #123b91; flex: 0 0 auto; }
.qb-switcher-action-icon svg { width: 17px; height: 17px; }
.qb-switcher-create > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 4px; }
.qb-switcher-create b { font-size: 12px; font-weight: 600; }
.qb-switcher-create small { color: #66748b; font-size: 11px; line-height: 1.4; }
.qb-switcher-create > svg { flex: 0 0 auto; width: 15px; height: 15px; color: #93a0b7; }
body.qb-selector-page .selector-shell { max-width: 660px; min-height: 0; padding: 0; margin: 0 auto; }
.qb-selector-intro { padding: 0 0 24px; }
.qb-selector-back { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; margin-bottom: 24px; }
.qb-selector-back svg { width: 15px; height: 15px; }
body.qb-selector-page .qb-selector-intro h1 { font: 400 34px/1.2 Georgia, "Times New Roman", serif; margin: 0 0 10px; color: #172a50; }
.qb-selector-intro p { margin: 0; color: #66748b; font-size: 13px; line-height: 1.6; }
#qb_profile_selector_inline .qb-profile-switcher { border: 1px solid #dce2ed; overflow: hidden; }
#qb_profile_selector_inline .qb-switcher-body { padding-top: 26px; }
#qb_profile_selector_inline .qb-switcher-list { max-height: 480px; }
@keyframes qb-switcher-spin { to { transform: rotate(360deg); } }
@media (max-width: 575px) {
  body.qb-theme-account .qb-account-switch-trigger { width: 34px; height: 34px; padding: 0; background: transparent; border: 0; }
  .qb-account-switch-trigger > span, .qb-account-switch-trigger > .qb-account-switch-chevron { display: none; }
  .qb-account-switch-trigger > svg { width: 20px; height: 20px; }
  .qb-switcher-modal .modal-dialog { width: calc(100% - 24px); margin: 12px auto; min-height: calc(100% - 24px); }
  .qb-switcher-heading { padding: 24px 20px 20px; }
  .qb-switcher-heading h2 { font-size: 25px; }
  .qb-switcher-heading p { max-width: 250px; }
  .qb-switcher-body { padding: 18px 12px 12px; }
  .qb-switcher-search { margin-bottom: 18px; }
  .qb-switcher-choice { padding: 12px 9px; gap: 10px; }
  .qb-switcher-page b { font-size: 13px; }
  .qb-switcher-avatar { width: 40px; height: 40px; }
  .qb-switcher-current { flex-direction: column; gap: 2px; max-width: 58px; text-align: center; }
  .qb-switcher-actions { padding: 10px 12px 16px; }
  .qb-switcher-create small { font-size: 10px; }
  body.qb-selector-page .qb-selector-intro h1 { font-size: 29px; }
  #qb_profile_selector_inline .qb-switcher-body { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .qb-switcher-spinner, .qb-switcher-switching .qb-switcher-go svg, .qb-switcher-switching .qb-switcher-current svg { animation: none; }
  .qb-switcher-choice { transition: none; }
}
