.recreation-preview { width: calc(100% - 40px); min-width: 0; max-width: 1320px; margin: 20px auto 60px; color: #282337; }
.recreation-preview [hidden] { display: none !important; }
.recreation-preview button, .recreation-preview a, .recreation-preview summary { cursor: pointer; }
.recreation-preview button:focus-visible, .recreation-preview a:focus-visible, .recreation-preview summary:focus-visible, .recreation-preview textarea:focus-visible { outline: 3px solid #8b66ee; outline-offset: 4px; }
.recreation-preview__toolbar, .recreation-preview__heading, .recreation-preview__summary, .recreation-preview__samples, .recreation-preview__footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.recreation-preview__toolbar { justify-content: space-between; margin: 0 0 24px; font-size: 13px; color: #716a7e; }
.recreation-preview__toolbar a { color: #5f3dc5; }
.recreation-preview__board { padding: clamp(20px, 3vw, 42px); border: 1px solid #e9e3f1; border-radius: 28px; background: linear-gradient(140deg, #fff 65%, #f5f0ff); box-shadow: 0 16px 60px #34204b0b; min-width: 0; }
.recreation-preview__heading { justify-content: space-between; align-items: flex-start; }
.recreation-preview__eyebrow, .recreation-preview__empty > span { letter-spacing: .13em; font-size: 11px; font-weight: 700; color: #7955c6; }
.recreation-preview h1 { font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -.04em; font-weight: 600; margin: 12px 0; }
.recreation-preview p { color: #787182; font-size: 14px; line-height: 1.6; }
.recreation-preview__heading > button, .recreation-preview__dialog form button { border: 1px solid #e4ddee; border-radius: 50%; width: 38px; height: 38px; background: #fff; font-size: 23px; }
.recreation-preview__summary { margin: 28px 0 22px; padding: 18px 0; border-block: 1px solid #ece7f2; font-size: 13px; }
.recreation-preview__summary strong { font-size: 18px; }
.recreation-preview__summary strong span { color: #a89bbd; margin: 0 12px; }
.recreation-preview__summary > span { color: #787182; }
.recreation-preview__summary details { margin-left: auto; max-width: 330px; }
.recreation-preview__summary summary, .recreation-preview__toolbar button { padding: 9px 14px; border-radius: 20px; background: #efe8ff; color: #6543b2; font-weight: 600; }
.recreation-preview__samples { font-size: 12px; margin-bottom: 20px; gap: 14px; color: #82768f; }
.recreation-preview__samples a { padding: 7px 12px; border-radius: 15px; border: 1px solid #e7dfef; color: #6e5985; }
.recreation-preview__samples a[aria-current] { background: #30283f; border-color: #30283f; color: white; }
.recreation-preview__scenes { display: flex; overflow-x: auto; gap: 24px; padding: 4px 2px 22px; scroll-snap-type: x proximity; }
.recreation-preview__scene { flex: 0 0 225px; border: 1px solid #e7e0ed; border-radius: 20px; overflow: hidden; background: white; scroll-snap-align: start; }
.recreation-preview__image { width: 100%; position: relative; display: block; background: #191626; padding: 0; border: 0; }
.recreation-preview__image img { width: 100%; height: 240px; object-fit: contain; }
.recreation-preview__image > span { position: absolute; top: 12px; left: 12px; padding: 5px 9px; background: #241a35cc; color: white; border-radius: 14px; font-size: 11px; }
.recreation-preview__image > .recreation-preview__zoom { left: auto; right: 12px; }
.recreation-preview__scene-body { padding: 17px; }
.recreation-preview__scene small { font-size: 11px; color: #8c829a; }
.recreation-preview__scene h2 { font-size: 16px; font-weight: 600; margin: 7px 0 16px; }
.recreation-preview__source-details { font-size: 12px; color: #756585; margin: 0 0 16px; }
.recreation-preview__source-details p { margin: 8px 0; }
.recreation-preview__audio { display: flex; gap: 10px 18px; flex-wrap: wrap; padding: 12px 16px; background: #f4f0fa; border-radius: 12px; margin: 12px 0 20px; font-size: 12px; color: #6b5c80; }
.recreation-preview__provenance { margin: 0; }
.creative-studio-grid:has(> .creative-studio-card.recreation) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.creative-studio-card.recreation { background: #faf7ff; border-color: #ebebeb; }
.creative-studio-icon-box.recreation { background: #eee5ff; color: #7145d5; }
.creative-studio-card.recreation .creative-studio-cta { color: #7145d5; }
@media (max-width: 768px) { .creative-studio-grid:has(> .creative-studio-card.recreation) { grid-template-columns: 1fr; } }
.recreation-preview__prompt { border-radius: 20px; border: 1px solid #e5d9ff; background: #f3edff; color: #6844b2; padding: 9px 12px; font-size: 12px; font-weight: 600; }
.recreation-preview__scene p { font-size: 11px; margin: 10px 0 0; }
.recreation-preview__notes { margin: 6px 0 24px; color: #746b82; font-size: 12px; max-width: 780px; }
.recreation-preview__notes p { font-size: 12px; margin: 10px 0; }
.recreation-preview__footer { justify-content: space-between; border-top: 1px solid #e9e1f0; padding-top: 24px; }
.recreation-preview__footer strong { font-size: 13px; }
.recreation-preview__footer p { font-size: 11px; margin: 6px 0 0; }
.recreation-preview__primary { padding: 13px 22px; background: #7145d5; color: #fff; border-radius: 14px; border: 0; font-size: 13px; font-weight: 600; }
.recreation-preview__empty { text-align: center; padding: 100px 20px; border: 1px dashed #ded5e9; border-radius: 24px; background: #faf8fd; }
.recreation-preview__dialog { box-sizing: border-box; width: min(650px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid #e5dced; border-radius: 24px; padding: 28px; color: #282337; margin: auto; background: white; }
.recreation-preview__dialog::backdrop { background: #21153099; backdrop-filter: blur(5px); }
.recreation-preview__dialog form { text-align: right; }
.recreation-preview__dialog h2 { font-size: 24px; font-weight: 600; margin: 5px 0 24px; }
.recreation-preview__dialog img { max-width: 100%; max-height: 65dvh; object-fit: contain; margin: auto; border-radius: 12px; }
.recreation-preview__dialog label { display: block; font-size: 13px; margin: 12px 0; }
.recreation-preview__dialog textarea { box-sizing: border-box; width: 100%; border: 1px solid #dacdea; border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.6; resize: vertical; }
.recreation-preview__dialog p { font-size: 12px; margin: 12px 0 20px; }
/* Local review workflow (upload -> background analysis -> Storyboard). Shares the
   preview's scene/dialog styling so there is one visual Storyboard, not two. */
.recreation-preview__image--missing { display: grid; place-content: center; gap: 8px; height: 240px; text-align: center; color: #cfc4e2; }
.recreation-preview__image--missing p { color: #cfc4e2; font-size: 12px; margin: 0; }
.recreation-review__form { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 26px 0; padding: 22px; border: 1px dashed #ded5e9; border-radius: 18px; background: #faf8fd; }
.recreation-review__form label { font-size: 13px; font-weight: 600; }
.recreation-review__form input[type="file"] { font-size: 13px; max-width: 100%; }
.recreation-review__pending { padding: 28px; border: 1px solid #ece5f5; border-radius: 18px; background: #faf8fd; margin: 24px 0; }
.recreation-review__pending strong { display: block; font-size: 15px; margin-bottom: 10px; }
.recreation-review__error { color: #a3313f; }
.recreation-review__notice { color: #5f3dc5; }
.recreation-entry__file { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.recreation-entry__zone--dragging, .recreation-entry__zone--selected { border-color: #818cf8 !important; background: #eef2ff !important; }
/* Recreation clips inside the shared Import Storyboard. Only NEW class names are
   styled here; the Storyboard itself uses video_import_build_overlay.css as-is. */
.recreation-review__storyboard-button { padding: 9px 14px; border-radius: 20px; border: 0; background: #efe8ff; color: #6543b2; font-weight: 600; }
.storyboard-source-preview { margin: 14px 0 4px; padding: 12px; border: 1px solid #ece5f5; border-radius: 14px; background: #faf8fd; }
.storyboard-source-preview__heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 11px; color: #6c5d8f; }
.storyboard-source-preview__heading > span:first-child { letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #7955c6; }
.storyboard-source-preview video { display: block; max-width: 100%; max-height: 220px; margin-top: 10px; border-radius: 10px; background: #17131f; }
.storyboard-source-preview__stills { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.storyboard-source-preview__stills figure { flex: 0 0 64px; margin: 0; text-align: center; }
.storyboard-source-preview__stills img { width: 64px; height: 80px; object-fit: contain; border-radius: 8px; background: #17131f; }
.storyboard-source-preview__stills figcaption { font-size: 9px; color: #8c829a; }
.storyboard-source-preview__note { margin: 6px 0 0; font-size: 10px; color: #8c829a; }
.storyboard-clip-card .storyboard-clip-timing { margin: 4px 0 0; font-size: 10px; color: #6c5d8f; }
.storyboard-clip-text { margin-top: 8px; font-size: 10px; color: #6c5d8f; }
.storyboard-clip-text summary { cursor: pointer; font-weight: 700; color: #6543b2; }
.storyboard-clip-text div { display: grid; gap: 2px; margin-top: 6px; padding: 7px 8px; border-radius: 8px; background: #f8f5fd; }
.storyboard-clip-text strong { color: #30283f; font-size: 10px; overflow-wrap: anywhere; }
.storyboard-clip-text span, .storyboard-clip-text small { color: #756585; font-size: 9px; line-height: 1.35; }
.storyboard-clip-card .storyboard-clip-source { margin-top: 6px; font-size: 10px; color: #756585; }
.storyboard-clip-card .storyboard-clip-source p { margin: 4px 0; font-size: 10px; }
/* Shot grouping draft: compact group boundaries over the source shots. */
.storyboard-grouping { margin: 10px 0 4px; padding: 12px; border: 1px solid #ece5f5; border-radius: 14px; background: #fff; }
.storyboard-grouping__heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 11px; color: #6c5d8f; }
.storyboard-grouping__heading > span:first-child { letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #7955c6; }
.storyboard-grouping__groups { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0; }
.storyboard-grouping__group { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border: 1px solid #d9ccf3; border-radius: 10px; background: #faf8fd; }
.storyboard-grouping__group.is-needs-replanning { border-style: dashed; border-color: #d99a3a; background: #fff8ec; }
.storyboard-grouping__shots { display: flex; gap: 4px; }
.storyboard-grouping__shot { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 7px; background: #fff; font-size: 10px; cursor: pointer; }
.storyboard-grouping__shot small { color: #8c829a; font-size: 9px; }
.storyboard-grouping__meta { font-size: 9px; color: #756585; }
.storyboard-grouping__group button, .storyboard-grouping__actions button { align-self: flex-start; padding: 4px 9px; border: 1px solid #d9ccf3; border-radius: 12px; background: #fff; color: #5f3dc5; font-size: 10px; font-weight: 600; }
.storyboard-grouping__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.storyboard-grouping__note, .storyboard-grouping__unavailable { margin: 8px 0 0; font-size: 10px; color: #8c829a; }
.storyboard-grouping__alert { margin: 6px 0 0; font-size: 11px; color: #a3313f; }
.storyboard-grouping__notice { margin: 6px 0 0; font-size: 11px; color: #5f3dc5; }
.storyboard-clip-card.is-needs-replanning { border-style: dashed; }
.storyboard-clip-card .storyboard-clip-stale { background: #fff3dd; color: #8a5a12; cursor: default; }
.storyboard-clip-card .storyboard-clip-note, .storyboard-clip-card .storyboard-clip-prior p { margin: 4px 0; font-size: 10px; color: #756585; }
.storyboard-clip-card .storyboard-clip-prior blockquote { margin: 6px 0; padding-left: 8px; border-left: 2px solid #e4d9f7; }
.storyboard-clip-card .storyboard-clip-prior small { font-size: 9px; color: #8c829a; }
.recreation-storyboard-form { display: contents; }
.video-import-build-overlay [hidden] { display: none !important; }
.recreation-storyboard-tabs { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #e7def5; border-radius: 999px; background: #f8f5fd; }
.recreation-storyboard-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 11px; background: transparent; color: #756a83; font-size: 11px; font-weight: 700; cursor: pointer; }
.recreation-storyboard-tabs button.is-active { background: #fff; color: #6543b2; box-shadow: 0 2px 8px rgba(67, 43, 106, .1); }
.recreation-storyboard-tabs button span { min-width: 26px; padding: 2px 6px; border-radius: 999px; background: #eee7fb; font-size: 9px; text-align: center; }
.storyboard-clip-card { position: relative; }
.storyboard-clip-select { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0 0 9px; padding: 6px 9px; border: 1px solid #dfd3f2; border-radius: 999px; background: #f4effc; color: #6543b2; font-size: 9px; font-weight: 700; cursor: pointer; }
.storyboard-clip-select input { width: 14px; height: 14px; margin: 0; accent-color: #7c4fe0; }
.storyboard-clip-select:has(input:disabled) { border-color: #cce7d9; background: #edf8f2; color: #347a58; cursor: default; }
/* Recreation cards only (scoped to the recreation root; Path C cards are untouched):
   one portrait frame size for every card, tops aligned, text wraps inside the card. */
#recreation-storyboard .video-import-scene-track { align-items: flex-start; }
#recreation-storyboard .video-import-transition { align-self: center; }
#recreation-storyboard .storyboard-clip-card { flex: 0 0 216px; width: 216px; min-width: 0; align-content: start; }
/* The shared presenter writes each image's own ratio inline; recreation keeps one box. */
#recreation-storyboard .storyboard-clip-card .video-import-scene-card-visual { width: 100%; aspect-ratio: 4 / 5 !important; }
#recreation-storyboard .storyboard-clip-card .video-import-scene-card-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#recreation-storyboard .storyboard-clip-card .video-import-scene-edit { z-index: 4; display: inline-flex; width: auto; height: 28px; gap: 5px; padding: 0 10px; font-size: 9px; font-weight: 750; }
#recreation-storyboard .storyboard-clip-card .video-import-scene-actions { z-index: 4; }
#recreation-storyboard .storyboard-clip-card .video-import-scene-copy { min-width: 0; overflow-wrap: anywhere; }
#recreation-storyboard .storyboard-clip-card .video-import-scene-copy h3 { -webkit-line-clamp: 3; }
.storyboard-clip-card .storyboard-clip-description { margin: 5px 0 0; color: #6f6580; font-size: 10px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.storyboard-format { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; font-size: 11px; color: #6c5d8f; }
.storyboard-format__label { color: #7955c6; font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.storyboard-format strong { color: #30283f; font-weight: 650; }
.storyboard-format__style { color: #857a93; }
/* Analysing / failed: the Import progress-modal pattern over the inert upload form. */
.recreation-progress { position: relative; }
.recreation-progress__backdrop { filter: saturate(.9); opacity: .55; pointer-events: none; user-select: none; }
.recreation-progress__overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.recreation-progress__card { width: 100%; max-width: 380px; padding: 32px 24px; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.recreation-progress__card h2 { margin: 0 0 6px; color: #111827; font-size: 18px; font-weight: 600; }
.recreation-progress__card p { margin: 0; color: #6b7280; font-size: 14px; line-height: 1.5; }
.recreation-progress__card .recreation-progress__hint { margin-top: 12px; color: #9ca3af; font-size: 12px; overflow-wrap: anywhere; }
.recreation-progress__card .recreation-progress__error { color: #dc2626; }
.recreation-progress__scout { position: relative; width: 72px; height: 72px; margin: 0 auto 16px; }
.recreation-progress__mascot { position: absolute; inset: 10px; width: 52px; height: 52px; object-fit: contain; animation: recreation-scout-bob 2.4s ease-in-out infinite; }
.recreation-progress__ring { position: absolute; inset: 0; border: 3px solid #e5e7eb; border-top-color: #6366f1; border-radius: 50%; animation: recreation-spin 1.1s linear infinite; }
.recreation-progress__retry { display: inline-block; margin-top: 16px; padding: 10px 20px; border-radius: 10px; background: #6366f1; color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; }
@keyframes recreation-scout-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .recreation-progress__mascot, .recreation-progress__ring { animation: none; }
  .recreation-progress__ring { border-top-color: #e5e7eb; }
}
.recreation-storyboard-generated { min-height: 260px; }
.recreation-storyboard-generated-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.recreation-generated-card { min-width: 0; overflow: hidden; border: 1px solid #e8e0f1; border-radius: 16px; background: #fff; }
.recreation-generated-card header { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; color: #756a83; font-size: 10px; }
.recreation-generated-card header strong { color: #6543b2; font-size: 10px; }
.recreation-generated-card video, .recreation-generated-card__empty { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 340px; background: #191522; object-fit: contain; }
.recreation-generated-card__empty { display: grid; place-content: center; gap: 9px; color: #b7aac8; text-align: center; font-size: 11px; }
.recreation-generated-card__empty i { width: 24px; height: 24px; margin: auto; border: 3px solid #4e4260; border-top-color: #9a6ff0; border-radius: 50%; animation: recreation-spin .8s linear infinite; }
.recreation-generated-card__empty small { max-width: 170px; color: #dc8793; }
.recreation-generated-card h3 { margin: 12px 12px 4px; overflow: hidden; color: #342c40; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.recreation-generated-card > p { margin: 0 12px 12px; color: #8b8097; font-size: 10px; }
.recreation-storyboard-final { margin: 0 0 18px; padding: 14px; border: 1px solid #ded1f4; border-radius: 18px; background: linear-gradient(135deg, #faf7ff, #f1ebff); }
.recreation-storyboard-final header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.recreation-storyboard-final header strong { color: #352944; font-size: 13px; }
.recreation-storyboard-final header span { color: #6d4fbb; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.recreation-storyboard-final video { display: block; width: min(100%, 340px); max-height: 440px; margin: auto; border-radius: 14px; background: #17131f; object-fit: contain; }
.recreation-storyboard-final .recreation-generated-card__empty { aspect-ratio: auto; min-height: 120px; border-radius: 12px; }
.recreation-storyboard-generate[disabled] { cursor: not-allowed; opacity: .55; }
@keyframes recreation-spin { to { transform: rotate(360deg); } }
.recreation-editor-empty { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 420px; padding: 40px; text-align: center; }
.recreation-editor-empty span { color: #7652ce; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.recreation-editor-empty h3 { margin: 4px 0 0; color: #30283b; font-size: 20px; }
.recreation-editor-empty p { max-width: 330px; margin: 0; color: #82798d; font-size: 12px; line-height: 1.5; }
.recreation-editor-storyboard-unavailable { position: absolute; z-index: 10002; inset: 18px 18px auto; display: flex; align-items: baseline; gap: 8px 14px; padding: 12px 16px; border: 1px solid #ead7ae; border-radius: 14px; background: #fff9ea; color: #6e5420; box-shadow: 0 8px 24px rgba(75, 54, 18, .08); }
.recreation-editor-storyboard-unavailable strong { font-size: 12px; }
.recreation-editor-storyboard-unavailable span { font-size: 11px; }
@media (max-width: 600px) {
  .recreation-preview { margin-top: 10px; }
  .recreation-review__form { flex-direction: column; align-items: stretch; }
  .recreation-preview__toolbar { gap: 12px; }
  .recreation-preview__summary { gap: 12px; }
  .recreation-preview__summary details { margin-left: 0; }
  .recreation-preview__scene { flex-basis: 210px; }
  .recreation-preview__heading > div { max-width: calc(100% - 58px); }
  .recreation-preview__footer > button { width: 100%; }
  .video-import-build-header-actions { align-items: flex-end; flex-direction: column-reverse; }
  .recreation-storyboard-tabs button { padding: 6px 9px; }
}
