/* FLYNNTASTIC_ACCOUNT_MENU_V1 */
header .account-menu { position: relative; flex: 0 0 auto; }
header .account-menu #accountMenuBtn {
  background: #334155 !important;
  color: #fff !important;
  border: 1px solid #475569;
  white-space: nowrap;
  text-align: center;
}
header .account-menu #accountMenuBtn:hover { background: #1e293b !important; }
header .account-menu-name { color: inherit; font-weight: 700; width: auto !important; margin: 0 !important; text-align: inherit !important; }
header .account-menu-panel[hidden] { display: none !important; }
header .account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 100;
  width: 205px;
  padding: 6px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  box-shadow: 0 12px 30px #0f172a33;
}
header .account-menu-panel button,
header .header-actions .account-menu-panel button {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  text-align: left !important;
  white-space: nowrap;
  background: transparent !important;
  color: #1e293b !important;
  font-size: 13px;
  padding: 11px 12px !important;
}
header .account-menu-panel button:hover { background: #f1f5f9 !important; }
@media (max-width: 900px) {
  header .account-menu #accountMenuBtn { width: auto !important; min-width: 0 !important; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) header .account-menu-panel { background: #1e293b; border-color: #475569; }
  :root:not([data-theme="light"]) header .account-menu-panel button { color: #f8fafc !important; }
  :root:not([data-theme="light"]) header .account-menu-panel button:hover { background: #334155 !important; }
}
:root[data-theme="dark"] header .account-menu-panel { background: #1e293b; border-color: #475569; }
:root[data-theme="dark"] header .account-menu-panel button { color: #f8fafc !important; }
:root[data-theme="dark"] header .account-menu-panel button:hover { background: #334155 !important; }

/* FLYNNTASTIC_MOBILE_ACCOUNT_BUTTON_FIX_V2 */
@media (max-width: 650px) {

    /* Fill the entire bottom-right grid cell */
    header .header-actions > .account-menu {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        justify-self: stretch !important;
    }

    /* Override the old width:auto rule */
    header .header-actions > .account-menu > #accountMenuBtn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    /* Make sure the username is visible */
    header #who.account-menu-name {
        display: inline !important;
        width: auto !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
        color: white !important;
        text-align: center !important;
    }
}
