/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .content {
    flex-direction: column;
  }

  .content__form,
  .content__preview {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .preview-wrapper {
    position: static;
    justify-content: center;
    overflow-x: hidden;
  }

  .preview-paper {
    width: 210mm;
    height: 297mm;
    max-width: 100%;
    transform-origin: top center;
  }
}

@media (max-width: 900px) {
  .preview-paper {
    transform: scale(0.85);
    transform-origin: top center;
    margin-bottom: -44mm;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }

  .header__menu-btn {
    display: flex;
  }

  .header {
    padding: 12px 16px;
    gap: 12px;
    align-items: flex-start;
  }

  .header__title {
    font-size: 1rem;
  }

  .header__subtitle {
    font-size: 0.75rem;
    display: none;
  }

  .header__actions {
    gap: 6px;
  }

  .header__actions .btn {
    padding: 6px 10px;
    font-size: 0.8125rem;
  }

  .header__actions .btn__tag {
    display: none;
  }

  .header__actions .btn__icon {
    display: none;
  }

  .wizard {
    padding: 16px 12px;
    overflow-x: auto;
  }

  .wizard__track {
    min-width: 480px;
  }

  .wizard__label {
    font-size: 0.75rem;
  }

  .content {
    padding: 16px;
    gap: 16px;
    overflow-x: hidden;
  }

  .form {
    padding: 8px 16px 16px;
  }
}

@media (max-width: 480px) {
  .header__actions .btn span:not(.btn__icon) {
    font-size: 0.75rem;
  }

  .form__actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .form__actions .btn,
  .form__actions span {
    width: 100%;
  }

  .form__actions .btn {
    justify-content: center;
  }
}
