/* Loaded in <head> (render-blocking): reserves the account button's slot
   next to hextra's search before auth-widget.js runs, so nothing jumps.
   Slot = button width 2rem + the navbar gap (gap-1, md:gap-2). */
.hextra-search-trigger { margin-inline-end: 2.25rem; }
@media (min-width: 768px) { .hextra-search-trigger { margin-inline-end: 2.5rem; } }
html.myenv-acct-ready .hextra-search-trigger { margin-inline-end: 0; }

#myenv-auth-widget { position: relative; flex-shrink: 0; }
.myenv-acct-btn { display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; padding: 0; border-radius: 9999px; cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .12); background: transparent; color: #4b5563; }
.myenv-acct-btn:hover { background: rgba(0, 0, 0, .05); color: #111827; }
html.dark .myenv-acct-btn { border-color: rgba(255, 255, 255, .15); color: #d4d4d4; }
html.dark .myenv-acct-btn:hover { background: rgba(255, 255, 255, .08); color: #fafafa; }

.myenv-acct-menu { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 50;
  min-width: 14rem; padding: .3rem; font-size: .875rem; line-height: 1.4;
  border: 1px solid rgba(0, 0, 0, .1); border-radius: .6rem; background: #fff; color: #374151;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.myenv-acct-menu[hidden] { display: none; }
html.dark .myenv-acct-menu { background: #171717; color: #e5e5e5;
  border-color: rgba(255, 255, 255, .12); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.myenv-acct-item { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem;
  border-radius: .4rem; color: inherit; text-decoration: none; white-space: nowrap; }
.myenv-acct-item:hover, .myenv-acct-item:focus-visible { background: rgba(0, 0, 0, .06); }
html.dark .myenv-acct-item:hover, html.dark .myenv-acct-item:focus-visible { background: rgba(255, 255, 255, .08); }
.myenv-acct-who { padding: .4rem .6rem .5rem; margin-bottom: .2rem; color: #6b7280;
  border-bottom: 1px solid rgba(0, 0, 0, .08); overflow-wrap: anywhere; }
html.dark .myenv-acct-who { color: #a3a3a3; border-color: rgba(255, 255, 255, .1); }
.myenv-acct-floating { position: fixed; top: .5rem; right: .5rem; z-index: 60; }
