@media (max-width: 1160px) {
  header {
    gap: 14px;
    padding: 0 12px;
  }

  .actions {
    gap: 10px;
  }

  .action-group {
    gap: 4px;
  }

  .action-group-run {
    padding-left: 10px;
  }

  .btn {
    padding: 0 9px;
  }
}

@media (max-width: 920px) {
  header {
    gap: 10px;
    padding: 0 10px;
  }

  .logo {
    font-size: 15px;
  }

  .actions {
    gap: 8px;
  }

  .action-group-run {
    padding-left: 8px;
  }

  .btn {
    gap: 5px;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow: auto;
  }

  .container {
    flex-direction: column;
    height: auto;
    min-height: calc(100% - var(--header-height));
  }

  header {
    height: auto;
    align-items: stretch;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .action-group {
    flex: none;
    flex-wrap: wrap;
  }

  .action-group-file {
    justify-content: flex-start;
  }

  .action-group-run {
    justify-content: flex-start;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .btn-text {
    display: inline;
    font-size: 11px;
  }

  .btn {
    justify-content: center;
  }

  .editor-wrapper,
  .preview-wrapper {
    width: 100%;
    min-width: 0;
  }

  .editor-wrapper {
    min-height: 48vh;
  }

  .preview-wrapper {
    min-height: 44vh;
  }

  .resizer {
    width: 100%;
    height: 10px;
    cursor: row-resize;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-left: 0;
    border-right: 0;
  }

  body.resizing {
    cursor: row-resize;
  }
}
