/* Owner: WP6. Styles for screens/export.js only, scoped under .screen-export.
   Layout comes from base.css (.split, .side, .stage, .sec, .title, .num, .meta, .btn, .row, .field,
   .progress, .checklist); the phone frame (.phone) is in css/vertical.css. Tokens: css/tokens.css. */

.screen-export .export-side { gap: 18px; }
.screen-export .sec[hidden], .screen-export .export-done[hidden] { display: none; }
.screen-export .hint { margin: 0; }
.screen-export .hint[hidden] { display: none; }
.screen-export .export-panel { gap: 10px; }
.screen-export .export-panel .num[hidden] { display: none; }
.screen-export .export-panel .checklist { margin-top: 8px; }
.screen-export .export-close { margin-top: 8px; }
.screen-export .export-meta { gap: 4px 12px; }
.screen-export .meta dd { font-variant-numeric: tabular-nums; }
.screen-export .btn.primary.block { margin-top: 4px; }

/* Done */
.screen-export .export-done { display: flex; flex-direction: column; gap: 18px; }
.screen-export .export-socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.screen-export .export-social { height: 32px; padding: 0 6px; font-size: 12px; }
.screen-export .export-post { gap: 6px; }
.screen-export #export-post-caption { resize: none; user-select: text; }
.screen-export .export-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.screen-export .export-actions .btn[hidden] { display: none; }

/* For editors */
.screen-export .export-files { display: flex; flex-direction: column; }
.screen-export .export-files-label { padding: 0 var(--gutter) 4px; }
.screen-export .export-file { justify-content: space-between; height: 32px; }
.screen-export .export-ext { font-size: 12px; color: var(--c-muted); }

/* Phone: darkened still while rendering, the finished file when done. */
.screen-export .export-stage { overflow: auto; }
.screen-export .export-video { position: absolute; top: 0; left: 0; display: block; max-width: none; background: #000; transition: filter 0.4s; }
.screen-export .export-phone.is-dim .export-video { filter: brightness(0.45); }
.screen-export .export-playbtn {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); width: 56px; height: 56px; padding: 0;
  border: 0; border-radius: var(--r-control); background: rgba(0, 0, 0, 0.6); color: #ffffff; display: grid; place-items: center; cursor: pointer;
}
.screen-export .export-playbtn[hidden] { display: none; }

@media (max-width: 899.98px) {
  .screen-export .export-side { overflow: visible; }
  .screen-export .export-stage { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .screen-export .export-video { transition: none; }
}

/* Share: the phone share sheet, links to each upload page and a hint (screens/export.js). */
.screen-export a.export-social { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
.screen-export .export-share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.screen-export .export-share[hidden] { display: none; }
.screen-export .export-socials-hint { margin: 0; }
