/* Create and Share composers reuse this responsive layout; desktop stays unchanged. */
@media (max-width: 1400px) {
  body.create-post-page { display: block; min-height: 100svh; }

  .create-post-page div { font-size: 18px; line-height: 1.45; }

  .create-post-page > .export-109 {
    --icon-size: clamp(22px, 6vw, 32px);
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding: calc(72px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-left), env(safe-area-inset-right))
      calc(12px + env(safe-area-inset-bottom));
  }

  .create-post-page .export-106 {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-top: 12px;
  }

  .create-post-page .export-94 { display: contents; }
  .create-post-page .export-57 { grid-row: 1; width: 100%; min-width: 0; margin-bottom: -6px; }
  .create-post-page .export-247 { width: 44px; height: 44px; }
  .create-post-page .export-150 { inset: 6%; width: 88%; height: 88%; }
  .create-post-page .export-86 { min-width: 0; flex-shrink: 1; }

  .create-post-page :is(.export-195, .export-169, .export-181, .export-191, .export-200) {
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 0;
  }

  .create-post-page .export-8 { min-height: 44px; max-width: 100%; padding: 4px 8px; }

  .create-post-page [data-pencil-name="write post"] {
    grid-row: 2;
    grid-column: 1;
    height: clamp(220px, 45svh, 600px);
  }

  .create-post-page .export-169 {
    position: relative;
    inset: auto;
    grid-row: 2;
    grid-column: 1;
    align-self: start;
    margin: 12px;
    pointer-events: none;
  }

  .create-post-page :is([data-pencil-name="Add post"], [data-pencil-name="Genre of post"]) {
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 8px;
  }

  .create-post-page [data-pencil-name="Add post"] { grid-row: 3; }
  .create-post-page [data-pencil-name="Genre of post"] { grid-row: 4; }
  .create-post-page .export-54 { max-width: 100%; flex-wrap: wrap; gap: 8px; }

  .create-post-page :is(.export-242, .export-238, .export-240, .export-241) {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: visible;
  }

  .create-post-page :is(.export-242, .export-238, .export-240, .export-241) > svg {
    position: static;
    width: auto;
    height: var(--icon-size);
    max-width: 38.5px;
  }

  .create-post-page [data-pencil-name="Post button"] {
    position: relative;
    inset: auto;
    grid-row: 5;
    justify-self: end;
    min-height: 44px;
    padding: 6px 24px;
  }

  .create-post-page .export-199 {
    inset: 0 0 auto;
    height: calc(60px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    padding: env(safe-area-inset-top) 12px 0 56px;
    white-space: normal;
    background: #141414;
  }

  .create-post-page .export-319 {
    top: calc(8px + env(safe-area-inset-top));
    left: 12px;
    width: 44px;
    height: 44px;
    transform: none;
    display: grid;
    place-items: center;
  }

  .create-post-page .export-317 {
    position: static;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    transform: rotate(90deg) scaleX(-1);
  }

  .create-post-page .export-318 { display: none; }
  .create-post-page :is(.export-266, .export-265, .export-264) {
    position: static;
    width: 24px;
    height: 13px;
  }
}

@media (min-width: 601px) and (max-width: 1400px) {
  .create-post-page [data-pencil-name="Post button"] { width: 100%; justify-self: stretch; margin-top: 4px; min-height: 52px; }
  .create-post-page [data-pencil-name="Genre of post"] { margin-top: 4px; }
  .create-post-page :is(.export-181, .export-191, .export-200) { font-size: 16px; }
  .create-post-page .export-57 .export-8 {
    padding-block: 0;
    border-block: 6px solid transparent;
    background-clip: padding-box;
    border-radius: 10px;
  }

  .create-post-page > .export-109 {
    padding-top: calc(62px + env(safe-area-inset-top));
    padding-inline: max(24px, env(safe-area-inset-left), env(safe-area-inset-right));
  }

  .create-post-page .export-199 { position: fixed; z-index: 20; }
  .create-post-page .export-319 { position: fixed; z-index: 21; }
  .create-post-page .export-199::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0f0f0f;
  }
}

@media (max-width: 600px) {
  .create-post-page > .export-109 div { font-size: calc(clamp(0.875rem, 4.1vw, 1.125rem) + 0.0625rem); }
  .create-post-page [data-pencil-name="Post button"] { width: 100%; justify-self: stretch; }
  .create-post-page > .export-109 { padding-top: calc(60px + env(safe-area-inset-top)); }
  .create-post-page :is(.export-266, .export-265, .export-264) {
    width: 18px;
    height: 9.75px;
  }

  .create-post-page .export-57 .export-8 {
    padding-block: 0;
    border-block: 6px solid transparent;
    background-clip: padding-box;
    border-radius: 10px;
  }

  .create-post-page [data-pencil-name="Add post"] { margin-top: 4px; }

  .create-post-page :is([data-pencil-name="Add post"], [data-pencil-name="Genre of post"]) {
    gap: 7.2px;
    padding: 0 2px 0 7.2px;
  }

  .create-post-page .export-54 { gap: 7.2px; }

  .create-post-page :is([data-pencil-name="Add post"], [data-pencil-name="Genre of post"]) svg {
    height: calc(var(--icon-size) * 0.9);
    max-width: 34.65px;
  }
}
