.portal-mobile-navigation { display: none; }
@media (max-width: 767px) {
  body.portal-mobile-open { overflow: hidden; }
  .portal-topbar { width: min(267px, calc(100% - 32px)); min-height: 58px; margin: calc(env(safe-area-inset-top) + 12px) auto 16px; padding: 7px 7px 7px 10px; box-sizing: border-box; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: #030405; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  /* Standalone body already reserves the status-bar safe area. */
  body.portal-standalone .portal-topbar { margin-top: 12px; }
  .portal-topbar .portal-brand__logo { width: 168px; max-width: 100%; height: auto; }
  .portal-topbar .portal-topbar-actions { display: none; }
  .portal-mobile-navigation { display: block; flex-shrink: 0; }
  .portal-mobile-toggle { display: flex; position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
  .portal-mobile-toggle span { width: 22px; height: 2px; background: currentColor; }
  .portal-mobile-dialog { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; box-sizing: border-box; padding: 0 24px max(24px, env(safe-area-inset-bottom)); border: 0; background: #030405; color: #fff; overflow-y: auto; }
  .portal-mobile-dialog::backdrop { background: #030405; }
  .portal-mobile-top { width: min(267px, 100%); min-height: 58px; margin: max(16px, env(safe-area-inset-top)) auto 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px 7px 7px 10px; box-sizing: border-box; }
  .portal-mobile-top img { display: block; width: 168px; max-width: 100%; height: auto; }
  .portal-mobile-close span { position: absolute; transform: rotate(45deg); }
  .portal-mobile-close span + span { transform: rotate(-45deg); }
  .portal-mobile-links { min-height: calc(100dvh - 150px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 24px 0; box-sizing: border-box; }
  .portal-mobile-links > a, .portal-mobile-links summary, .portal-mobile-links > form > button { display: block; font: inherit; font-size: clamp(28px, 10vw, 46px); line-height: 1.1; font-weight: 500; letter-spacing: -.035em; padding: 4px 8px; color: #fff; background: none; border: 0; text-decoration: none; text-align: center; min-height: 44px; list-style: none; cursor: pointer; }
  .portal-mobile-links summary::-webkit-details-marker { display: none; }
  .portal-mobile-links summary::after { content: '+'; margin-left: 8px; font-size: 24px; }
  .portal-mobile-links details[open] summary::after { content: '−'; }
  .portal-mobile-submenu { display: grid; gap: 4px; padding: 12px 0; }
  .portal-mobile-submenu a { color: #ccc; font-size: 24px; text-align: center; padding: 10px; text-decoration: none; min-height: 44px; }
  .portal-mobile-toggle:focus-visible, .portal-mobile-links a:focus-visible, .portal-mobile-links summary:focus-visible { outline: 2px solid #9db8e0; outline-offset: 4px; }
}
