@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .header {
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .auth-screen {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: calc(100vh - 24px);
  }

  .auth-hero {
    min-height: auto;
    gap: 10px;
    padding: 16px;
  }

  .auth-hero .auth-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 0;
  }

  .auth-hero h1 {
    font-size: 1.28rem;
    line-height: 1.15;
  }

  .auth-hero p {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .auth-card {
    padding: 20px;
  }

  .logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }

  .brand-copy {
    display: none;
  }

  .top-grid,
  .middle-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chart-container {
    height: 300px;
  }

  .header-actions {
    align-items: center;
    gap: 10px;
  }

  .logo-container {
    min-width: 0;
  }

  .header-toolbar {
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }

  .btn-pro {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .account-area {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    min-height: 38px;
    max-width: 148px;
    padding: 4px 8px 4px 4px;
  }

  .account-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.88rem;
  }

  .account-name {
    max-width: 82px;
    font-size: 0.82rem;
  }

  .account-plan {
    display: none;
  }

  .logout-button {
    min-height: 30px;
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  thead {
    display: none;
  }

  .pro-header,
  .pro-grid,
  .pro-benefit-grid,
  .pro-support-card,
  .pro-account-card,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .pro-support-card {
    align-items: stretch;
    flex-direction: column;
  }

  .support-link {
    white-space: normal;
  }

  .profile-form button {
    justify-self: stretch;
    min-width: 0;
  }

  .pro-header {
    flex-direction: column;
    padding: 20px;
  }

  .pro-header h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 380px) {
  .account-area {
    grid-template-columns: 28px auto;
  }

  .account-copy {
    display: none;
  }
}
