@media (max-width: 899px) {
 .h-screen.w-screen.bg-envelope-editor-background {
   width: 100%; height: auto; min-height: 100dvh;
 }
 .h-screen.w-screen.bg-envelope-editor-background > nav { padding: .65rem .75rem; }
 .h-screen.w-screen.bg-envelope-editor-background > nav > div {
   display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem;
 }
 .h-screen.w-screen.bg-envelope-editor-background > nav > div > div:first-child {
   min-width: 0; gap: .5rem;
 }
 .h-screen.w-screen.bg-envelope-editor-background > nav > div > div:first-child > * { margin-inline: 0; }
 .h-screen.w-screen.bg-envelope-editor-background > nav > div > div:first-child > a { flex: 0 0 auto; }
 .h-screen.w-screen.bg-envelope-editor-background > nav > div > div:first-child > a :is(svg,img),
 .h-screen.w-screen.bg-envelope-editor-background > nav > div > div:first-child > img { max-width: 108px; height: auto; }
 .h-screen.w-screen.bg-envelope-editor-background > nav > div > div:first-child > div:has([data-testid="envelope-title-input"]) {
   flex: 1 1 0; min-width: 0; flex-wrap: wrap; gap: .3rem;
 }
 .h-screen.w-screen.bg-envelope-editor-background > nav > div > div:last-child {
   flex-wrap: wrap; justify-content: flex-end; gap: .4rem;
 }
 .h-screen.w-screen.bg-envelope-editor-background > nav > div > div:last-child > * { margin-inline: 0; }
 .h-screen.w-screen.bg-envelope-editor-background > div.flex.w-screen {
   width: 100%; height: auto; flex-direction: column; align-items: stretch;
 }
 .h-screen.w-screen.bg-envelope-editor-background > div.flex.w-screen > div:first-child {
   width: 100%; min-width: 0; overflow: visible; border-right: 0; border-bottom: 1px solid hsl(var(--border));
   padding-block: .6rem;
 }
 .h-screen.w-screen.bg-envelope-editor-background > div.flex.w-screen > div:first-child > div:has(> [data-testid^="envelope-editor-step-"]) {
   display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .35rem; padding-inline: .75rem;
 }
 .h-screen.w-screen.bg-envelope-editor-background [data-testid^="envelope-editor-step-"] {
   min-width: 0; min-height: 44px; margin-block: 0; padding: .4rem; text-align: center;
 }
 .h-screen.w-screen.bg-envelope-editor-background [data-testid^="envelope-editor-step-"] > div {
   height: 100%; flex-direction: column; justify-content: center; gap: .3rem;
 }
 .h-screen.w-screen.bg-envelope-editor-background [data-testid^="envelope-editor-step-"] > div > * { margin-inline: 0; }
 .h-screen.w-screen.bg-envelope-editor-background [data-testid^="envelope-editor-step-"] .text-xs { display: none; }
 .h-screen.w-screen.bg-envelope-editor-background [data-testid^="envelope-editor-step-"] .text-sm { font-size: .75rem; line-height: 1.2; }
 .h-screen.w-screen.bg-envelope-editor-background > div.flex.w-screen > div:first-child > [role="separator"] { margin-block: .6rem; }
 .h-screen.w-screen.bg-envelope-editor-background > div.flex.w-screen > div:first-child > div:has(> h4) {
   display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; padding-inline: .75rem;
 }
 .h-screen.w-screen.bg-envelope-editor-background > div.flex.w-screen > div:first-child > div:has(> h4) > h4 { flex-basis: 100%; }
 .h-screen.w-screen.bg-envelope-editor-background > div.flex.w-screen > div:first-child > div:has(> h4) > button {
   flex: 1 1 138px; width: auto; max-width: 100%; min-height: 40px; margin-block: 0;
   justify-content: flex-start; white-space: normal; text-align: start;
 }
 .h-screen.w-screen.bg-envelope-editor-background > div.flex.w-screen > div:last-child {
   width: 100%; min-width: 0; overflow: visible;
 }
 .h-screen.w-screen.bg-envelope-editor-background > div.flex.w-screen > div:last-child > .max-w-4xl { padding: .75rem; }
 .h-screen.w-screen.bg-envelope-editor-background > div.flex.w-screen > div:last-child > .relative.flex.h-full {
   flex-direction: column; height: auto; min-width: 0;
 }
 .h-screen.w-screen.bg-envelope-editor-background > div.flex.w-screen > div:last-child > .relative.flex.h-full > div.overflow-x-auto {
   min-width: 0; height: auto; max-height: 75dvh; overscroll-behavior: contain;
 }
 .h-screen.w-screen.bg-envelope-editor-background > div.flex.w-screen > div:last-child > .relative.flex.h-full > .sticky.w-80 {
   position: static; width: 100%; height: auto; border-left: 0;
 }
}
