.mobile-header-actions { display: none; }

@media (max-width: 760px) {
  .topbar {
    min-height: 64px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #e7eaf0;
    box-shadow: 0 1px 0 rgba(17,24,39,.02);
    overflow: visible;
  }

  .topbar-inner {
    position: relative;
    width: calc(100% - 28px);
    min-height: 64px;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .topbar .desktop-nav { display: none; }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 17px;
    letter-spacing: -.45px;
  }

  .brand-mark {
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: none;
  }

  .brand-word {
    display: inline !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #151b27;
    font-weight: 780;
  }

  .brand-word strong {
    color: #717987;
    font-weight: 620;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
  }

  .mobile-compose,
  .mobile-language-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 780;
    line-height: 1;
  }

  .mobile-compose {
    border: 1px solid var(--orbis-ink);
    background: var(--orbis-ink);
    color: white;
    box-shadow: 0 5px 14px rgba(17,24,39,.10);
  }

  .mobile-language-chip {
    min-width: 42px;
    border: 1px solid #dce1e8;
    background: #fff;
    color: #303746;
  }

  .mobile-menu {
    position: relative;
    margin: 0;
  }

  .mobile-menu > summary {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #dce1e8;
    border-radius: 11px;
    background: #fff;
    display: grid;
    place-content: center;
    gap: 4px;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .mobile-menu > summary::marker { display: none; content: ""; }

  .mobile-menu > summary span {
    display: block;
    width: 17px;
    height: 1.5px;
    border-radius: 99px;
    background: #202735;
    transition: transform .16s ease, opacity .16s ease;
  }

  .mobile-menu[open] > summary {
    border-color: #cfd5de;
    background: #f7f8fa;
  }

  .mobile-menu[open] > summary span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .mobile-menu[open] > summary span:nth-child(2) { opacity: 0; }
  .mobile-menu[open] > summary span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

  .topbar .mobile-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: min(330px, calc(100vw - 28px));
    max-width: none;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    justify-items: stretch;
    align-items: stretch;
    gap: 4px;
    padding: 9px;
    border: 1px solid #e0e4ea;
    border-radius: 16px;
    background: rgba(255,255,255,.985);
    box-shadow: 0 20px 55px rgba(17,24,39,.16);
    backdrop-filter: blur(20px);
    text-align: left;
  }

  .topbar .mobile-menu-panel > a {
    display: grid;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    gap: 2px;
    padding: 11px 12px;
    border-radius: 11px;
    color: #202633;
    text-align: left;
  }

  .topbar .mobile-menu-panel > a:hover,
  .topbar .mobile-menu-panel > a:focus-visible {
    background: #f3f5f8;
    outline: none;
  }

  .topbar .mobile-menu-panel > a span {
    font-size: 14px;
    font-weight: 760;
    letter-spacing: -.2px;
  }

  .topbar .mobile-menu-panel > a small {
    color: #858c98;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
  }
}

@media (max-width: 390px) {
  .topbar-inner { width: calc(100% - 22px); gap: 8px; }
  .brand { gap: 7px; font-size: 15px; }
  .brand-mark { width: 29px; height: 29px; border-radius: 9px; }
  .mobile-compose { min-height: 36px; padding: 0 11px; }
  .mobile-menu > summary { width: 38px; height: 38px; }
}
