/* The In-App Message editor (dashboard/in_app_messages, docs/MESSAGES.md): the form beside the
   builder's phone, which keeps its own styles (builder.css). Under 52rem the phone goes under the
   form. */
@layer tokens, base, layout, components, screens;

@layer screens {
  .shell__main:has(.message-editor) {
    max-width: none;
  }

  .message-editor {
    display: grid;
    grid-template-columns: minmax(0, 48rem) 21rem;
    grid-template-areas: "form phone";
    gap: var(--space-5);
    align-items: start;
  }

  .message-editor__form {
    grid-area: form;
    min-width: 0;
  }

  @media (max-width: 52rem) {
    .message-editor {
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas: "form" "phone";
    }

    .message-editor .builder__phone {
      position: static;
    }
  }
}
