@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar,
  .split,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-head {
    grid-template-columns: 1fr;
  }

  .page {
    width: min(100%, calc(100% - 20px));
    margin-top: 10px;
  }

  .hero,
  .toolbar .card,
  .panel {
    padding: 14px;
  }

  .service-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .users-table-controls {
    width: 100%;
  }

  .users-page-size {
    flex-basis: calc(33.333% - 8px);
    min-width: 140px;
  }

  .users-table-search {
    flex-basis: 240px;
    min-width: 200px;
  }
}

@media (max-width: 900px) {
  .bulk-settings-grid,
  .bulk-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bulk-scope-group:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .bulk-scope-group:nth-child(3) .bulk-scope-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .test-reviewer-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .bulk-command-grid {
    grid-template-columns: 1fr;
  }

  .stats,
  .brand-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    font-size: clamp(28px, 8vw, 44px);
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero,
  .panel,
  .toolbar .card,
  .modal {
    border-radius: 18px;
  }

  .brand-tile {
    min-height: 78px;
    padding: 10px;
  }

  .brand-tile img {
    height: 28px;
  }

  .brand-caption {
    font-size: 10px;
  }

  .hero-platform-link,
  .brand-strip-desktop {
    display: none;
  }

  .brand-dropdown-mobile {
    display: block;
  }

  .users-table-summary-row {
    display: grid;
    gap: 8px;
    align-items: stretch;
  }

  .users-table-search {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }

  .users-table-search-input {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 16px;
    text-align: left;
  }

  .users-table-controls {
    flex-wrap: wrap;
  }

  .users-page-size {
    flex-basis: calc(50% - 8px);
    min-width: 120px;
  }

  .users-page-nav {
    width: 100%;
    justify-content: flex-end;
  }

  .vpn-app-layout {
    grid-template-columns: 1fr;
  }

  .vpn-app-actions {
    flex-direction: column;
  }

  .vpn-action {
    width: 100%;
  }

  .photo-viewer-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .users-table {
    min-width: 760px;
  }
}

@media (max-width: 620px) {
  .bulk-scope-grid {
    grid-template-columns: 1fr;
  }

  .bulk-scope-group,
  .bulk-scope-group + .bulk-scope-group,
  .bulk-scope-group:nth-child(3) {
    grid-column: auto;
    margin: 0;
    padding: 0;
    border-top: 0;
    border-left: 0;
  }

  .bulk-scope-group + .bulk-scope-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .bulk-scope-group:nth-child(3) .bulk-scope-values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .bulk-settings-grid {
    grid-template-columns: 1fr;
  }

  .bulk-form-actions .btn {
    width: 100%;
  }

  .stats,
  .brand-strip {
    grid-template-columns: 1fr;
  }

  .hero-platform-logo {
    height: 22px;
  }

  .actions {
    flex-direction: column;
  }

  .login-actions .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .profile-photo-preview {
    width: min(150px, 100%);
    max-height: 150px;
  }

  .vpn-support-note {
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
