/* Only Inspiration / personal Recreate opt in. Other editor entry points retain their layout. */
.creative-workspace-enabled #editor-main { flex-direction: column; }
.creative-workspace-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; padding: 4px 12px; min-height: 44px; box-sizing: border-box; border-bottom: 1px solid #e8e7ed; background: #fff; flex-shrink: 0; z-index: 110; }
.creative-workspace-modes { display: flex; grid-column: 2; grid-row: 1; padding: 3px; gap: 3px; border: 1px solid #e7def5; border-radius: 999px; background: #f8f5fd; }
.creative-workspace-nav [data-workspace-chat-toggle] { grid-column: 1; grid-row: 1; justify-self: start; gap: 7px; padding: 6px 8px; display: inline-flex; align-items: center; justify-content: center; }
.creative-workspace-nav [data-workspace-chat-toggle][aria-expanded="true"] { color: #68439c; background: #f0eaf9; }
.creative-scout-status { grid-column: 3; grid-row: 1; justify-self: end; font-size: 12px; color: #81758b; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creative-workspace-nav button { min-height: 28px; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: #67616e; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.creative-workspace-nav button[aria-pressed="true"] { background: #fff; color: #6543b2; box-shadow: 0 2px 8px #432b6a19; }
.creative-workspace-nav button:hover { background: #f5f2fa; }
.creative-workspace-enabled .ai-agent-sidebar { width: var(--scout-chat-width, 400px); min-width: var(--scout-chat-width, 400px); max-width: var(--scout-chat-width, 400px); flex: 0 0 var(--scout-chat-width, 400px); transition: none; }
.scout-chat-divider { flex: 0 0 9px; background: #f6f5f8; cursor: col-resize; touch-action: none; position: relative; z-index: 105; }
.scout-chat-divider::after { content: ''; position: absolute; top: 40%; bottom: 40%; width: 3px; left: 3px; border-radius: 3px; background: #c8c1d5; }
.scout-chat-divider:hover, .scout-chat-divider:focus-visible, .scout-resizing .scout-chat-divider { background: #e9defc; outline: none; }
.scout-resizing, .scout-resizing * { cursor: col-resize !important; user-select: none !important; }
.creative-chat-hidden .ai-agent-sidebar, .creative-chat-hidden .scout-chat-divider { display: none !important; }
.creative-workspace-enabled .agent-panel-header { display: none; }
.creative-workspace-enabled .agent-header-text h3 { color: #30283d; }
.creative-workspace-enabled .agent-status { color: #807889; font-size: 12px; }
.creative-workspace-enabled .agent-icon { font-size: 20px; }
.creative-workspace-enabled .agent-toggle-btn { color: #706580; background: #f4f1f8; min-width: 40px; min-height: 40px; }
.creative-workspace-enabled .agent-messages { padding: 20px 18px; user-select: text; -webkit-user-select: text; container-type: inline-size; }
.creative-workspace-enabled .message-content { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.creative-workspace-enabled .message-content p { margin: 0 0 12px; }
.scout-copy-message { border: 0; background: transparent; color: #786e85; font: inherit; font-size: 12px; cursor: pointer; padding: 8px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.scout-copy-message:hover { color: #543287; }
.scout-chat-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.scout-chat-table th, .scout-chat-table td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid #e7e3ec; overflow-wrap: anywhere; }
.scout-chat-table th { background: #f6f3fa; font-weight: 600; }
.scout-table-wrap { overflow: auto; margin: 12px 0; }
@container (max-width: 480px) {
  .scout-chat-table, .scout-chat-table tbody, .scout-chat-table tr, .scout-chat-table td { display: block; }
  .scout-chat-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .scout-chat-table tr { border: 1px solid #e8e3ee; border-radius: 12px; margin-bottom: 10px; padding: 8px 12px; }
  .scout-chat-table td { border: 0; padding: 5px 0; }
  .scout-chat-table td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: #81758b; }
}
.creative-workspace-enabled[data-creative-view="storyboard"] .canva-filmstrip,
.creative-workspace-enabled[data-creative-view="storyboard"] .editor-right-rail,
.creative-workspace-enabled[data-creative-view="storyboard"] .contextual-toolbar { display: none !important; }
.creative-workspace-enabled .editor-canvas #recreation-storyboard.is-canvas-storyboard { inset: 0 !important; padding: 0; border-radius: 0; background: #f8f7fa; }
.creative-workspace-enabled .editor-canvas #recreation-storyboard .video-import-build-widget { width: 100%; max-width: none; height: 100%; max-height: none; box-sizing: border-box; border-radius: 0; border: 0; background: #f8f7fa; padding: 22px; box-shadow: none; }
.creative-workspace-enabled #recreation-storyboard .video-import-build-brand { display: none; }
body.creative-workspace-enabled .editor-canvas #recreation-storyboard .video-import-build-header { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
body.creative-workspace-enabled .editor-canvas #recreation-storyboard .recreation-storyboard-tabs { position: static; transform: none; margin: 0; grid-column: 2; grid-row: 1; order: 0; justify-self: center; }
body.creative-workspace-enabled .editor-canvas #recreation-storyboard .video-import-build-header-actions { grid-column: 3; grid-row: 1; order: 0; justify-self: end; }
.creative-workspace-enabled #recreation-storyboard .video-import-build-intro { margin: 12px 0 20px; }
.creative-workspace-enabled #recreation-storyboard .video-import-build-intro h2 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; margin: 6px 0; }
.creative-workspace-enabled #recreation-storyboard .video-import-build-kicker { display: none; }
.creative-workspace-enabled #recreation-storyboard .storyboard-overview { font-size: 13px; margin: 10px 0; }
.creative-workspace-enabled #recreation-storyboard summary { cursor: pointer; min-height: 32px; line-height: 1.5; }
.creative-workspace-enabled #recreation-storyboard .storyboard-user-references { margin: 12px 0; }
.creative-workspace-enabled #recreation-storyboard .video-import-scene-scroll { overflow: visible; margin-top: 20px; }
.creative-workspace-enabled #recreation-storyboard .video-import-scene-track { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; align-items: start; }
.creative-workspace-enabled #recreation-storyboard .storyboard-clip-card { width: 100%; min-width: 0; max-width: 420px; border: 1px solid #e4deeb; border-radius: 16px; overflow: hidden; background: white; box-shadow: 0 3px 12px #29153906; }
body.creative-workspace-enabled .editor-canvas #recreation-storyboard .storyboard-clip-card .video-import-scene-card-visual { max-height: 320px; background: #eae6ee; }
.creative-workspace-enabled #recreation-storyboard .video-import-scene-copy { padding: 12px; }
body.creative-workspace-enabled .editor-canvas #recreation-storyboard .video-import-scene-copy h3 { font-size: 15px; font-weight: 600; line-height: 1.4; white-space: normal; margin: 6px 0; }
body.creative-workspace-enabled .editor-canvas #recreation-storyboard .storyboard-clip-description,
body.creative-workspace-enabled .editor-canvas #recreation-storyboard .storyboard-description { font-size: 12px; line-height: 1.55; color: #6d6278; }
.creative-workspace-enabled #recreation-storyboard .storyboard-description summary { display: block; }
.creative-workspace-enabled #recreation-storyboard .storyboard-description summary::after { content: ' More'; color: #7953ac; font-size: 12px; }
.creative-workspace-enabled #recreation-storyboard .storyboard-description[open] summary { display: list-item; }
.creative-workspace-enabled #recreation-storyboard .storyboard-description[open] summary::after { content: ''; }
.creative-workspace-enabled #recreation-storyboard .storyboard-clip-timing,
.creative-workspace-enabled #recreation-storyboard .storyboard-production-details { font-size: 12px; line-height: 1.6; margin-top: 12px; }
.storyboard-scene-state { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: #eef6f1; color: #347554; float: right; }
.storyboard-scene-state[data-state="failed"] { color: #a23942; background: #fcedee; }
.storyboard-scene-state[data-state="running"], .storyboard-scene-state[data-state="queued"] { color: #836322; background: #fff6dd; }
.storyboard-scene-chat { margin-left: auto; border: 0; border-radius: 8px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #81758b; cursor: pointer; flex-shrink: 0; }
.creative-workspace-enabled #recreation-storyboard .storyboard-prompt-unavailable { cursor: help; color: #81798a; }
.storyboard-prompt-unavailable span { font-size: 11px; font-weight: 400; }
.scout-clip-context { max-width: 100%; }
.scout-clip-context > span { white-space: normal; overflow-wrap: anywhere; }
.scout-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (pointer: coarse) { .scout-copy-message, .storyboard-scene-chat { width: 44px; height: 44px; } }
.creative-storyboard-empty { position: absolute; inset: 0; z-index: 100; display: grid; align-content: center; justify-items: center; padding: 24px; text-align: center; background: #faf8fc; }
.creative-storyboard-empty button { border: 0; border-radius: 10px; padding: 12px 24px; background: #684891; color: white; cursor: pointer; }
.creative-workspace-enabled :is(.creative-workspace-nav button, .scout-copy-message, .storyboard-scene-chat):focus-visible { outline: 3px solid #9574c7; outline-offset: 2px; }
.creative-workspace-compact .creative-workspace-nav { grid-template-columns: minmax(80px, 1fr) auto minmax(0, 1fr); padding: 2px 6px; min-height: 48px; }
.creative-workspace-compact .creative-workspace-nav button { flex: 1; min-height: 44px; }
.creative-workspace-compact .scout-chat-divider { display: none; }
.creative-workspace-compact .ai-agent-sidebar { position: relative !important; inset: auto !important; flex: 1 1 100% !important; width: 100% !important; min-width: 0 !important; max-width: none !important; height: 100% !important; display: flex !important; z-index: 100; }
.creative-workspace-compact .ai-agent-panel { position: relative !important; inset: auto !important; transform: none !important; height: 100% !important; max-height: none !important; width: 100% !important; border-radius: 0 !important; box-shadow: none; visibility: visible !important; }
.creative-workspace-compact .agent-panel-body { min-height: 0; flex: 1; overflow: hidden; }
.creative-workspace-compact .agent-messages { min-height: 0; flex: 1; overflow-y: auto; }
.creative-workspace-compact:not([data-creative-view="chat"]) .ai-agent-sidebar,
.creative-workspace-compact[data-creative-view="chat"] .editor-canvas,
.creative-workspace-compact[data-creative-view="chat"] .editor-right-rail { display: none !important; }
.creative-workspace-enabled .agent-mobile-floating-bar,
.creative-workspace-enabled .agent-mobile-backdrop,
.creative-workspace-enabled .mobile-sheet-handle { display: none !important; }
.creative-workspace-compact #wedding-editor { bottom: var(--scout-keyboard-inset, 0px); }
.creative-workspace-compact .agent-input-field { font-size: 16px !important; }
.creative-workspace-compact #recreation-storyboard .video-import-build-widget { padding: 16px !important; }
.creative-workspace-compact #recreation-storyboard .video-import-scene-track { grid-template-columns: 1fr; }
.creative-workspace-compact #recreation-storyboard .storyboard-clip-card { max-width: none; }

@media (prefers-reduced-motion: reduce) { .creative-workspace-enabled * { scroll-behavior: auto !important; } }
.scout-viewer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: auto; }
.scout-viewer-tools button, .scout-viewer-tools a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 10px; background: #fff; color: #635b71; font-size: 14px; padding: 0 8px; text-decoration: none; }
.scout-viewer-tools [hidden] { display: none; }
.scout-viewer-tools button:hover, .scout-viewer-tools a:hover { background: #eee8f5; }
.scout-viewer-stage { overflow: auto; touch-action: none; }
.scout-viewer-stage > img { flex-shrink: 0; user-select: none; -webkit-user-drag: none; }
.scout-viewer-stage.is-zoomed { display: block; cursor: grab; }
.scout-viewer-stage.is-zoomed > img { max-width: none; max-height: none; }
@media (max-width: 600px) {
  .scout-viewer-header { flex-wrap: wrap; gap: 4px; }
  .scout-viewer-title { flex: 1; }
  .scout-viewer-tools { order: 3; flex: 1 0 100%; justify-content: center; }
  .scout-viewer-close { min-height: 44px; min-width: 44px; }
  .scout-viewer-status { font-size: 12px; }
}
.creative-workspace-enabled #right-icon-storyboard,
.creative-workspace-enabled .mobile-editor-btn.right-icon-storyboard { display: none; }
.creative-workspace-enabled[data-creative-view="storyboard"] #right-icon-strip,
.creative-workspace-compact[data-creative-view="chat"] #right-icon-strip { display: none !important; }
.creative-workspace-enabled .user-message .message-content { background: linear-gradient(120deg, #5d68ce, #754da0); color: #fff; box-shadow: none; border-radius: 14px; }
.scout-message-expand { display: block; border: 0; padding: 10px 0; color: #6d4d96; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.creative-workspace-enabled .agent-message.is-condensed .message-content { max-height: 290px; overflow: hidden; mask-image: linear-gradient(#000 80%,transparent); }
.creative-workspace-compact .editor-workspace { margin-top: 0 !important; }
.creative-workspace-compact .editor-canvas { padding-bottom: 0 !important; }
.creative-workspace-compact .creative-workspace-nav { z-index: 1100; }
.creative-workspace-compact:not([data-creative-view="edit"]) #editor-mobile-bottom-nav { display: none !important; }
.creative-workspace-compact[data-creative-view="edit"] #editor-mobile-bottom-nav { bottom: env(safe-area-inset-bottom); }
.creative-workspace-compact[data-creative-view="edit"] .editor-canvas { padding-bottom: 60px !important; }
.creative-workspace-compact .ai-agent-sidebar { transform: none !important; visibility: visible !important; opacity: 1 !important; }
.creative-workspace-enabled #recreation-storyboard .video-import-scene-eyebrow { font-size: 11px; line-height: 1.5; }
.creative-workspace-enabled #recreation-storyboard .video-import-scene-card-visual::after { display: none; }
.creative-workspace-enabled .agent-message { flex-direction: column; gap: 4px; }
.creative-workspace-enabled .assistant-message { align-items: stretch; }
.creative-workspace-enabled .assistant-message > .message-content { max-width: 100%; box-sizing: border-box; }
.creative-workspace-enabled .agent-message { position: relative; padding-bottom: 28px; }
.creative-workspace-enabled .agent-message > .scout-copy-message { position: absolute; bottom: 0; right: 0; width: 28px; height: 28px; padding: 5px; opacity: 0; transition: opacity .12s; }
.creative-workspace-enabled .agent-message:hover > .scout-copy-message,
.creative-workspace-enabled .agent-message:focus-within > .scout-copy-message { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .creative-workspace-enabled .agent-message { padding-bottom: 44px; }
  .creative-workspace-enabled .agent-message > .scout-copy-message { opacity: 1; width: 44px; height: 44px; }
}
.creative-workspace-enabled .user-message { align-items: flex-end; }
/* Tablets use the compact project menu before the desktop action bar clips. */
.creative-workspace-compact #global-action-bar { display: none !important; }
.creative-workspace-compact #editor-mobile-header { display: flex !important; position: fixed; top: 0; left: 97px; right: 0; height: 52px !important; align-items: center; justify-content: space-between; padding: 0 16px; box-sizing: border-box; z-index: 10000; background: #283d78; color: white; }
.creative-workspace-compact #wedding-editor { top: 52px !important; }
.creative-workspace-compact .editor-mobile-header-left, .creative-workspace-compact .editor-mobile-header-right { display: flex; align-items: center; gap: 4px; min-width: 0; }
.creative-workspace-compact .editor-mobile-header-right > button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 44px; padding: 0; background: #ffffff16; color: white; border: 0; border-radius: 8px; cursor: pointer; }
.creative-workspace-compact .editor-mobile-header-right > button:disabled { opacity: .35; }
.creative-workspace-compact .editor-mobile-brand { font-size: 14px; white-space: nowrap; }
.creative-workspace-compact .editor-mobile-credits { font-size: 11px; }
@media (max-width: 768px) { .creative-workspace-compact #editor-mobile-header { left: 0; } }
.scout-viewer-nav { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: white; color: #635b71; font-size: 24px; }
.scout-viewer-nav[hidden] { display: none; }

@media (min-width: 769px) and (max-width: 1249px) {
.creative-workspace-enabled #global-action-bar { display: none !important; }
.creative-workspace-enabled #editor-mobile-header { display: flex !important; position: fixed; top: 0; left: 97px; right: 0; height: 52px !important; align-items: center; justify-content: space-between; padding: 0 16px; box-sizing: border-box; z-index: 10000; background: #283d78; color: white; }
.creative-workspace-enabled #wedding-editor { top: 52px !important; }
.creative-workspace-enabled .editor-mobile-header-left, .creative-workspace-enabled .editor-mobile-header-right { display: flex; align-items: center; gap: 4px; min-width: 0; }
.creative-workspace-enabled .editor-mobile-header-right > button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 44px; padding: 0; background: #ffffff16; color: white; border: 0; border-radius: 8px; cursor: pointer; }
.creative-workspace-enabled .editor-mobile-header-right > button:disabled { opacity: .35; }
.creative-workspace-enabled .editor-mobile-brand { font-size: 14px; white-space: nowrap; }
.creative-workspace-enabled .editor-mobile-credits { font-size: 11px; }
}
/* Override the older 320px Inspiration grid so widening chat still leaves a useful board. */
body.creative-workspace-enabled .editor-canvas #recreation-storyboard[data-storyboard-kind] .video-import-scene-track { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.creative-workspace-enabled #recreation-storyboard .storyboard-overview summary { padding: 4px 0; min-height: 28px; font-size: 13px; box-sizing: border-box; }
.creative-workspace-enabled #recreation-storyboard .storyboard-user-references > summary { min-height: 28px; }
.creative-workspace-enabled #recreation-storyboard .storyboard-overview:not([open]), .creative-workspace-enabled #recreation-storyboard .storyboard-user-references:not([open]) { margin: 6px 0; padding: 0; }
@media (pointer: coarse) { .creative-workspace-enabled #recreation-storyboard summary { min-height: 44px !important; } }

.storyboard-scene-meta { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 5px; row-gap: 2px; padding: 2px 0; }
.storyboard-scene-meta .video-import-scene-eyebrow { margin: 0; }
.storyboard-scene-format { font-size: 11px; line-height: 1.5; color: #81758b; }
.creative-workspace-compact .creative-workspace-modes button { padding-left: 10px; padding-right: 10px; }
@media (pointer: coarse) { .creative-workspace-nav button { min-height: 44px; } }

body.creative-workspace-enabled .editor-canvas #recreation-storyboard .storyboard-user-references > summary { font-size: 13px; }
.storyboard-scene-chat:hover { background: #f3eff8; color: #684891; }

.scout-workspace-mascot { width: 24px; height: 24px; object-fit: contain; }
.creative-workspace-nav [data-workspace-chat-toggle] { font-size: 12px; }
.creative-workspace-enabled .user-message .message-content p { color: inherit; }
.creative-workspace-enabled .user-message .scout-image-mention { color: #fff; text-decoration: underline; }

.scout-message-next-step { font-size: 13px; line-height: 1.55; padding: 10px 12px; background: #f4f1f8; border-radius: 10px; }
.scout-message-next-step p { margin: 0 0 6px; }
.scout-message-next-step ul, .scout-message-next-step ol { margin: 0; padding-left: 18px; }
.agent-message:not(.is-condensed) > .scout-message-next-step { display: none; }
.creative-workspace-nav .scout-workspace-mascot { transform: scale(1.35); }

/* A clear project heading above quiet metadata, adapting to the available panel width. */
.creative-workspace-enabled #recreation-storyboard .storyboard-project-metadata { display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: 12px 24px; box-sizing: border-box; padding: 14px 16px; border: 1px solid #e7dff3; border-radius: 12px; background: #faf8fe; }
.creative-workspace-enabled #recreation-storyboard .storyboard-project-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin: 16px 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.creative-workspace-enabled #recreation-storyboard .storyboard-project-strip .storyboard-format__item { display: flex; flex-direction: row; flex: 0 1 auto; align-items: baseline; gap: 7px; min-width: 0; padding: 0; border: 0; }
.creative-workspace-enabled #recreation-storyboard .storyboard-project-strip .storyboard-format__item--style { flex: 1 1 240px; }
.creative-workspace-enabled #recreation-storyboard .storyboard-project-strip h2 { font: inherit; font-size: 22px; font-weight: 600; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.creative-workspace-enabled #recreation-storyboard .storyboard-project-strip .storyboard-format__label { font-size: 11px; font-weight: 500; color: #81748f; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.creative-workspace-enabled #recreation-storyboard .storyboard-project-strip .storyboard-format__label::after { content: ':'; }
.creative-workspace-enabled #recreation-storyboard .storyboard-project-strip strong,
.creative-workspace-enabled #recreation-storyboard .storyboard-project-strip .storyboard-format__value { font-size: 12px; line-height: 1.5; }
.creative-workspace-enabled #recreation-storyboard .storyboard-project-summary h3 { font: inherit; font-size: 12px; font-weight: 600; margin: 0 0 5px; }
.creative-workspace-enabled #recreation-storyboard .storyboard-project-summary .storyboard-overview__body { font-size: 12px; line-height: 1.55; }

.creative-workspace-enabled #recreation-storyboard .storyboard-project-strip .storyboard-format__item--title { flex: 0 0 100%; margin-bottom: 2px; }
.creative-workspace-enabled #recreation-storyboard[data-storyboard-kind="inspiration"] details.storyboard-overview { width: 100%; box-sizing: border-box; padding: 10px 14px; margin: 10px 0; border: 1px solid #e7e3ed; border-radius: 10px; background: #fff; }
.creative-workspace-enabled #recreation-storyboard[data-storyboard-kind="inspiration"] .storyboard-overview__body { max-width: none; }
.creative-workspace-enabled #recreation-storyboard[data-storyboard-kind="inspiration"] .storyboard-overview__body p { font-size: 13px; line-height: 1.65; margin: 8px 0 2px; max-width: none; }
.creative-workspace-enabled #recreation-storyboard[data-storyboard-kind="inspiration"] .storyboard-script { border: 0; border-radius: 0; background: transparent; padding: 10px 0 2px; }
.creative-workspace-enabled #recreation-storyboard[data-storyboard-kind="inspiration"] .storyboard-script p { max-width: none; }
@media (max-width: 600px) { .creative-workspace-enabled #recreation-storyboard .storyboard-project-strip h2 { font-size: 20px; } }

/* Thumbnail controls share the image space; the card body starts with scene details. */
.creative-workspace-enabled #recreation-storyboard .video-import-scene-card-visual > .video-import-scene-actions { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; transform: none; pointer-events: none; }
.creative-workspace-enabled #recreation-storyboard .video-import-scene-actions > * { pointer-events: auto; }
.creative-workspace-enabled #recreation-storyboard .video-import-scene-actions .storyboard-clip-prompt { background: #6140b5; color: white; border: 1px solid #ffffff55; border-radius: 999px; padding: 7px 10px; min-height: 34px; box-shadow: 0 1px 5px #24154125; }
.creative-workspace-enabled #recreation-storyboard .video-import-scene-actions .storyboard-scene-chat { background: #fff; color: #6140b5; border: 1px solid #e5deef; box-shadow: 0 1px 5px #24154125; }
.creative-workspace-enabled #recreation-storyboard .video-import-scene-actions .storyboard-scene-chat:hover { background: #f3eff8; }
.creative-workspace-enabled #recreation-storyboard .storyboard-prompt-editor[hidden] { display: none; }
.creative-workspace-enabled #recreation-storyboard .video-import-action-dialog-panel .storyboard-prompt-editor { margin: 14px 0 0; }
.creative-workspace-enabled #recreation-storyboard .storyboard-prompt-editor textarea { min-height: 220px; max-height: 45vh; line-height: 1.6; margin: 6px 0 10px; }
@media (pointer: coarse) { .creative-workspace-enabled #recreation-storyboard .video-import-scene-actions .storyboard-clip-prompt { min-height: 44px; } }

/* Canvas is a viewport of bounded, virtual cards, never a giant bitmap. */
.project-canvas { position:absolute; inset:0; z-index:105; background:#f8f7fa; display:flex; flex-direction:column; min-width:0; }
.project-canvas[hidden] { display:none; }
.project-canvas header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 16px; border-bottom:1px solid #e9e5ef; background:#fff; flex-wrap:wrap; font:12px system-ui; color:#776b85; }
.project-canvas header>div { display:flex; align-items:center; gap:5px; }
.project-canvas button { border:1px solid #e7e0ef; background:#fff; color:#635078; border-radius:8px; padding:7px 10px; cursor:pointer; font:12px system-ui; }
.project-canvas button[aria-pressed=true] { background:#eee8f7; }
.project-canvas button:disabled { opacity:.4; cursor:default; }
.project-canvas button:focus-visible,.project-canvas-card:focus-visible { outline:2px solid #8057bb; outline-offset:2px; }
.project-canvas-viewport { flex:1; min-height:0; position:relative; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; background-image:radial-gradient(#dcd6e5 1px,transparent 1px); background-size:20px 20px; }
.project-canvas-card { position:absolute; left:0; top:0; width:240px; height:240px; box-sizing:border-box; transform-origin:0 0; border:1px solid #e1dbea; border-radius:12px; background:#fff; box-shadow:0 3px 12px #35234308; display:flex; flex-direction:column; padding:10px; gap:6px; user-select:none; }
.project-canvas-card img { width:100%; height:160px; object-fit:contain; pointer-events:none; }
.project-canvas-card>span { font:12px/1.4 system-ui; color:#584d63; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; margin-top:auto; }
.project-canvas-card button { align-self:flex-start; font-size:11px; padding:4px 8px; }
.project-canvas-empty { margin:80px auto; padding:20px; max-width:300px; text-align:center; font:14px/1.6 system-ui; color:#81738e; }
.project-canvas footer { padding:8px 16px; font:11px system-ui; color:#8b8094; }
.creative-workspace-enabled[data-creative-view=canvas] :is(.canva-filmstrip,.editor-right-rail,.contextual-toolbar,#right-icon-strip,#video-play-overlay) { display:none!important; }
@media(pointer:coarse) { .project-canvas button { min-height:44px; } .project-canvas-card { height:250px; } }
@media(max-width:600px) { .creative-workspace-compact .creative-workspace-nav { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); } .creative-workspace-compact .creative-workspace-modes { justify-self:center; } .creative-scout-status { display:none; } .project-canvas header { padding:8px; gap:6px; } .project-canvas-count { display:none; } }

.project-canvas-surface { position:relative; width:100%; overflow:hidden; }
.project-canvas-fixed { color:#8b8094; padding-right:8px; font-size:11px; }

/* Leave equal space around the mode switch on narrow phones. Scout retains its accessible label. */
@media(max-width:400px) { .creative-workspace-compact .creative-workspace-nav [data-workspace-chat-toggle] span { display:none; } }
