/* Keep dropdowns usable on narrow and short screens, including landscape. */
:root { --avlu-header-height: 84px; }
/* One quiet navigation surface and a clear keyboard path throughout the public site. */
.site-header{background:#0c0a12f5;border-bottom-color:#c1a7df1e;box-shadow:0 7px 28px #00000014}
.site-header .brand{flex-shrink:0}
.site-header .header-actions{flex-shrink:0}
:where(a,button,summary,input,select,textarea):focus-visible{outline:2px solid #d4b8f4;outline-offset:4px}
::selection{background:#a97ad859;color:#fff}
.portal-page-hero h1{letter-spacing:-.045em;text-wrap:balance}
.site-footer .footer-nav a,.site-footer .footer-legal a{transition:color .15s}
.site-footer :is(.footer-nav,.footer-legal) a:hover{color:#edddff}
@media(prefers-reduced-motion:reduce){.site-footer .footer-nav a,.site-footer .footer-legal a{transition:none}}
.profile-membership-gap { margin: 0; color: #b5a6c3; font-size: 11px; line-height: 1.7; }
.profile-membership-gap a { color: #d3b6f0; }
.account-menu-panel {
  max-height: calc(100vh - var(--avlu-header-height) - 24px);
  max-height: calc(100dvh - var(--avlu-header-height) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
@media (max-width: 1060px) {
  .account-menu-panel {
    position: fixed;
    top: calc(var(--avlu-header-height) + 8px);
    right: 16px;
    left: auto;
    width: min(284px, calc(100% - 32px));
  }
  .nav-area.is-open {
    max-height: calc(100dvh - var(--avlu-header-height) - 8px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
/* A visible scrollbar makes the additional mobile categories discoverable. */
:is(.profile-sidebar nav, .store-inventory-filters, .bot-group-filters, .leaderboard-tabs) {
  scrollbar-width: thin;
  scrollbar-color: #76558f transparent;
  scroll-padding-inline: 10px;
}
:is(.profile-sidebar nav, .store-inventory-filters, .bot-group-filters, .leaderboard-tabs)::-webkit-scrollbar {
  display: block;
  height: 3px;
}
:is(.profile-sidebar nav, .store-inventory-filters, .bot-group-filters, .leaderboard-tabs)::-webkit-scrollbar-thumb {
  background: #76558f;
  border-radius: 8px;
}
/* A pinned preview cannot use the entire height of a short viewport. */
@media (max-height: 650px) {
  .profile-atelier-preview { position: relative; top: auto; }
  .profile-sidebar { position: static; }
}
.profile-atelier-workbench :is(button, input, textarea) {
  scroll-margin-top: var(--avlu-atelier-focus-top, 110px);
}
@media (max-width: 600px) {
  .profile-atelier-workbench :is(button, input, textarea) { scroll-margin-bottom: 135px; }
}

/* Keep a complete server settings page above its mobile save bar. */
@media(max-width:850px){.profile-page:has([data-server-editor]) .profile-main{padding-bottom:140px}}

.footer-inner{flex-wrap:wrap}.footer-legal{display:flex;flex-wrap:wrap;gap:10px 20px;width:100%;padding-top:15px;border-top:1px solid #c6a9f21a}.footer-legal a{font-size:11px;color:#ac9cba;text-decoration:none}.footer-legal a:hover{color:#dec8f5}
