@media (max-width: 720px) {
  .topbar {
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
  }
  .topbar-brand { width: 100%; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .sidebar { padding-top: 0.5rem; }
  .menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-item { text-align: center; }
  .page-header { flex-direction: column; }
  .content { padding: 1rem 0.8rem; }
  .btn { width: 100%; }
  .inline-actions { flex-direction: column; }
  .auth-card { padding: 1.2rem; }
  .mobile-dashboard-tabs {
    position: sticky;
    top: 126px;
    z-index: 8;
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.45rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-overflow-scrolling: touch;
  }
  .mobile-dashboard-tabs button {
    flex: 1 0 auto;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
  }
  .mobile-dashboard-tabs button[aria-pressed="true"] {
    background: var(--primary-strong);
    color: #fff;
  }
  .mobile-tab-panel.is-mobile-hidden { display: none; }
}
@media (max-width: 720px) {
  .menu-group-title { grid-column: 1 / -1; }
  .menu-item { justify-content: flex-start; text-align: left; }
  .quick-grid { grid-template-columns: 1fr; }
  .password-student-form { grid-template-columns: 1fr; }
  .chat-form { flex-direction: column; align-items: stretch; }
  .chat-form .btn { width: 100%; }
  .chat-row { max-width: 96%; }
  .tabs { top: 126px; width: 100%; }
}
