/* Mobile account navigation uses the same profile and routes as desktop. */
.mobile-account-trigger { display: none; }
.mobile-account-portrait { position: relative; display: grid; place-items: center; flex: none; width: 32px; height: 32px; overflow: hidden; border-radius: 50%; background: var(--fill); color: var(--label); font-size: 15px; font-weight: 600; }
.mobile-account-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mobile-account-portrait img[hidden] { display: none; }
.mobile-account-drawer { box-sizing: border-box; position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; background: var(--surface); color: var(--label); box-shadow: 8px 0 32px rgb(0 0 0 / 12%); overflow-y: auto; }
.mobile-account-drawer[open] { display: flex; flex-direction: column; animation: mobile-drawer-in .2s ease-out; }
.mobile-account-drawer:modal { overscroll-behavior: contain; }
.mobile-account-drawer::backdrop { background: rgb(0 0 0 / 30%); overflow: hidden; overscroll-behavior: contain; }
.mobile-drawer-heading { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.mobile-drawer-heading>.icon-button { flex: none; margin-left: auto; width: 36px; height: 36px; color: var(--label-3); font-size: 24px; }
.mobile-drawer-profile { display: grid; min-width: 0; gap: 4px; color: inherit; text-decoration: none; }
.mobile-drawer-profile .mobile-account-portrait { width: 48px; height: 48px; margin-bottom: 10px; font-size: 21px; }
.mobile-drawer-profile strong { font-size: 21px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.mobile-drawer-profile>[data-mobile-account-username] { color: var(--label-3); font-size: 14px; overflow-wrap: anywhere; }
.mobile-drawer-links { display: grid; gap: 5px; margin-top: 32px; }
.mobile-drawer-links a, .mobile-drawer-footer a, .mobile-drawer-footer button { display: flex; align-items: center; gap: 18px; min-height: 52px; padding: 10px 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 18px; font-weight: 550; text-decoration: none; text-align: left; }
.mobile-drawer-links a:hover, .mobile-drawer-footer a:hover, .mobile-drawer-footer button:hover { background: var(--fill-hover); }
.mobile-drawer-links a[aria-current] { color: var(--accent); background: var(--accent-soft); }
.mobile-drawer-links .nav-icon, .mobile-drawer-footer .nav-icon { flex: none; width: 22px; height: 22px; }
.mobile-drawer-footer { display: grid; gap: 4px; margin-top: auto; padding-top: 32px; }
.mobile-drawer-footer [hidden] { display: none; }
.mobile-drawer-footer a, .mobile-drawer-footer button { width: 100%; font-size: 15px; font-weight: 400; }
@keyframes mobile-drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media(max-width:760px) {
  .app-content .site-header { gap: 8px; padding-left: 10px; }
  .mobile-account-trigger:not([hidden]) { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 6px; border: 0; border-radius: 50%; background: none; }
  .mobile-account-trigger:hover { background: var(--fill-hover); }
  .header-page-context { min-width: 0; }
  .header-page-context strong { white-space: nowrap; }
  .header-ai .header-ai-face { display: none; }
  .header-ai { margin-left: 0; flex: 1; }
  .header-ai-button { max-width: 40vw; padding-left: 4px; }
  .site-header #public-link { display: none; }
  .public-mode .site-header #public-link { display: inline-flex; }
  html.public-guest .mobile-account-trigger, html.public-page-pending .mobile-account-trigger { display: none; }
}
@media(prefers-reduced-motion:reduce) { .mobile-account-drawer[open] { animation: none; } }
