/* Keep the existing React close action visible as an app-level back button on phones. */
@media (max-width: 767px) {
  [data-no-drag-select] > .z-10 > .md\:hidden:first-child {
    position: absolute;
    inset: max(12px, env(safe-area-inset-top)) auto auto 12px;
    z-index: 30;
    display: flex !important;
    height: auto;
    padding: 0;
    pointer-events: none;
  }

  [data-no-drag-select]
    > .z-10
    > .md\:hidden:first-child
    > button[aria-label="返回图片列表"] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgb(0 0 0 / 55%);
    box-shadow: 0 2px 10px rgb(0 0 0 / 18%);
    backdrop-filter: blur(8px);
    pointer-events: auto;
  }

  [data-no-drag-select]
    > .z-10
    > .md\:hidden:first-child
    > button[aria-label="返回图片列表"]
    svg {
    display: none;
  }

  [data-no-drag-select]
    > .z-10
    > .md\:hidden:first-child
    > button[aria-label="返回图片列表"]::before {
    content: "←";
    font-size: 20px;
    line-height: 1;
  }

  [data-no-drag-select]
    > .z-10
    > .md\:hidden:first-child
    > button[aria-label="返回图片列表"]::after {
    content: "返回";
    font-size: 14px;
    font-weight: 600;
  }
}
