/* TWOBLOCK Studio — purple creation tools with yellow/orange play accents. */
:root{--blue:#6d28d9;--blue-dark:#4c1d95;--brand-primary:#6d28d9;--brand-accent:#ffbb00;--brand-play:#ff7936;--brand-ink:#211430;--text:#302340;--line:#e5dded}
body{accent-color:#6d28d9}
body.workspace{background:#f5f2fa;color:#302340}
.brand,.watch-brand,.academy-brand{color:#211430}
.brand img,.watch-brand-logo,.academy-brand-logo{object-fit:contain!important;border-radius:0!important;background:transparent!important}
.workspace .topbar{background:#fff;border-color:#e5dded}
.workspace .studio-nav a[aria-current=page],.workspace .rail-navigation a[aria-current=page]{color:#5b21b6;background:#f0e8ff}
.workspace .btn.primary,.workspace .studio-create-button,.workspace .submit-btn{background:#6d28d9;border-color:#6d28d9;color:#fff}
.workspace .btn.primary:hover,.workspace .studio-create-button:hover{background:#4c1d95}
.workspace .workspace-rail{background:#fcfaff;border-color:#e5dded}
.workspace .brand-studio{color:#6d28d9}
.workspace .production-fill,.workspace progress{accent-color:#6d28d9}
.watch-header{border-color:#e5dded}.watch-brand-caption{color:#7c6796}.watch-footer strong{color:#6d28d9}
body:has(main> .brand){background:radial-gradient(ellipse at top,#eee4ff,transparent 65%),#faf8fe}
body:has(main> .brand) button[type=submit]{background:#6d28d9}body:has(main> .brand) button[type=submit]:hover{background:#4c1d95}
:root{--watch-ink:#302340;--watch-muted:#81738f;--watch-line:#e5dded;--watch-paper:#faf8fe}
.watch-button{border-color:#ddd0f4;color:#5b21b6}.watch-eyebrow,.watch-meta-label{color:#7c6796}
.watch-brand-mark,.unavailable-lock{background:#6d28d9}.unavailable-main{background:radial-gradient(ellipse at 50% 35%,#eee3ff80,transparent 62%)}
.unavailable-film{background:#f0e8ff;border-color:#ddd0f4}.unavailable-film svg{stroke:#8b5cf6}.unavailable-card h1{color:#302340}
.academy-header a,.academy-toc a,.academy-breadcrumb a{color:#6d28d9}.academy-header,.academy-list>li{border-color:#e5dded}
.academy-brand{display:inline-flex;align-items:center;gap:10px}.academy-detail,.academy-index{background:#faf8fe}
.workspace .production-fill{background:#6d28d9}.workspace .eyebrow,.workspace .job-eyebrow{color:#6d28d9}

.watch-page .watch-button-primary,.watch-page .watch-button-primary:hover,.watch-page .watch-button-primary:focus-visible{color:#fff;background:#6d28d9;border-color:#6d28d9}
.watch-page .watch-button-primary svg{color:#fff;stroke:currentColor}

.watch-page .watch-player.is-portrait{background:#eee5fa;box-shadow:0 20px 44px -24px #6d28d930}
/* Filled product actions: keep white labels on every interaction state. */
body :is(.btn.primary,.btn.submit-btn,.studio-create-button,.history-play-button,.watch-button-primary,.share-action-primary,.share-modal-primary,.studio-dialog-actions [data-ok]:not(.danger)){background:#6d28d9!important;border-color:#6d28d9!important;color:#fff!important}
body :is(.btn.primary,.btn.submit-btn,.studio-create-button,.history-play-button,.watch-button-primary,.share-action-primary,.share-modal-primary):hover{background:#5b21b6!important;border-color:#5b21b6!important;color:#fff!important}
/* Outline actions: purple text and border against white. */
body :is(.btn.secondary,.btn.ghost,.button.grey,.watch-button:not(.watch-button-primary),.share-modal-action:not(.share-modal-primary):not(.share-modal-danger)){background:#fff;border-color:#6d28d9;color:#6d28d9}
body :is(.btn.secondary,.btn.ghost,.button.grey,.watch-button:not(.watch-button-primary)):hover{background:#f0e8ff;border-color:#6d28d9;color:#5b21b6}
.workspace .story-background-refresh{background:#6d28d9;border-color:#6d28d9;color:#fff}
.workspace .story-background-refresh:hover{background:#5b21b6;border-color:#5b21b6;color:#fff}

.workspace .video-result-actions>a.video-download-button{background:#6d28d9!important;border-color:#6d28d9!important;color:#fff!important}
.workspace .video-result-actions>a.video-download-button:hover,.workspace .video-result-actions>a.video-download-button:focus-visible{background:#5b21b6!important;border-color:#5b21b6!important;color:#fff!important}

/* A disabled revision action must stay visibly disabled, including on hover. */
body.workspace [data-revision-submit]:disabled,
body.workspace [data-revision-submit]:disabled:hover,
body.workspace [data-revision-submit][aria-disabled="true"]{background:#e5e7eb!important;border-color:#d1d5db!important;color:#6b7280!important;box-shadow:none!important;cursor:not-allowed!important;opacity:1!important;transform:none!important}

.production-busy-notice{display:flex;align-items:center;gap:16px;padding:18px 22px;margin:0 0 20px;border:1px solid #c4a6ef;border-radius:14px;background:#f0e8ff;color:#4c1d95}
.production-busy-notice[hidden]{display:none!important}.production-busy-notice p{margin:5px 0 0;font-size:13px;line-height:1.7}.production-spinner{display:inline-block;flex:none;width:22px;height:22px;box-sizing:border-box;border:3px solid #d9c4f5;border-top-color:#6d28d9;border-radius:50%;animation:production-spin 1s linear infinite}
.scene-task-status{display:flex;align-items:center;gap:10px;margin:10px 0}.scene-task-status .production-spinner{width:17px;height:17px;border-width:2px}
body.workspace [data-regenerate-index]:disabled{background:#e5e7eb!important;border-color:#d1d5db!important;color:#6b7280!important;cursor:not-allowed;opacity:1}
@keyframes production-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.production-spinner{animation:none;border-top-color:#6d28d9}}

.workspace-job video.clip-candidate-preview{display:block;width:auto;height:auto;max-width:min(100%,800px);max-height:60vh;max-height:60svh;object-fit:contain;margin:16px auto 0;border-radius:12px;background:#eee5fa}

.production-log-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0}.production-log-toolbar label{display:inline-flex;align-items:center;gap:6px;font-size:12px;margin:0}.production-log-toolbar input{width:auto;min-height:0;margin:0}.workspace-job #logs{min-height:200px;color:#ede9f5;background:#211a30}
.share-upload-panel{padding:20px;margin:0 0 20px;background:#fff;border:1px solid #e5dded;border-radius:14px}.share-upload-panel summary{cursor:pointer;font-weight:650;color:#6d28d9}.share-upload-panel form{display:grid;gap:12px;margin-top:16px}.share-upload-panel .field{display:block}.share-upload-panel input,.share-upload-panel textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #ddd0f4;border-radius:8px}.share-upload-label{display:inline-block;color:#6d28d9;font-size:12px;margin-bottom:10px}

.share-upload-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.share-upload-box{display:flex;flex-direction:column;gap:16px;min-width:0;padding:20px;border:1px solid #e5dded;border-radius:12px;background:#faf8fe}
.share-upload-box .field{margin:0}.share-upload-box .field-label{display:block;margin-bottom:8px;font-size:13px;font-weight:600}
.share-upload-panel input,.share-upload-panel textarea{font-family:inherit;font-size:14px;font-weight:400;line-height:1.6;color:#302340;background:#fff}
.share-upload-description{display:flex!important;flex-direction:column;flex:1}.share-upload-description textarea{flex:1;min-height:150px;resize:vertical}
.share-upload-panel .field-hint{margin:0;font-size:12px;line-height:1.7;color:#766888}.share-upload-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:4px}
@media(max-width:680px){.share-upload-columns{grid-template-columns:minmax(0,1fr)}.share-upload-footer{align-items:stretch;flex-direction:column}.share-upload-box{padding:16px}}

.share-upload-panel input[type="file"]{padding:6px;border:1px solid #ddd0f4;border-radius:10px;background:#fff;min-height:46px;color:#766888;cursor:pointer;font-size:13px}
.share-upload-panel input[type="file"]::file-selector-button{margin:0 12px 0 0;padding:9px 16px;border:1px solid #6d28d9;border-radius:7px;background:#f0e8ff;color:#5b21b6;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer;transition:background .15s,color .15s}
.share-upload-panel input[type="file"]::file-selector-button:hover{background:#6d28d9;color:#fff}
.share-upload-panel input[type="file"]:focus-visible{outline:2px solid #8b5cf6;outline-offset:3px}
/* Consistent native file pickers, including dynamically added scene inputs. */
body input[type="file"]{box-sizing:border-box;width:100%;min-width:0;min-height:46px;margin:0;padding:6px;border:1px solid #ddd0f4;border-radius:10px;background:#fff;color:#766888;font-family:inherit;font-size:13px;font-weight:400;line-height:1.6;cursor:pointer}
body input[type="file"]::file-selector-button{margin:0 12px 0 0;padding:9px 16px;border:1px solid #6d28d9;border-radius:7px;background:#f0e8ff;color:#5b21b6;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer;transition:background .15s,color .15s}
body input[type="file"]::file-selector-button:hover{background:#6d28d9;color:#fff}
body input[type="file"]:focus-visible{outline:2px solid #8b5cf6;outline-offset:3px}
body input[type="file"]:disabled,body input[type="file"]:disabled::file-selector-button{cursor:not-allowed;opacity:.55}
/* Override page-specific field sizing without exposing hidden picker inputs. */
body.workspace input[type="file"]{min-height:46px;padding:6px;font-size:13px;font-family:inherit;border-color:#ddd0f4;background:#fff;color:#766888}
/* One header lockup, matching the public watch page. */
@font-face{font-family:StudioBrand;src:url('/static/fonts/pretendard/PretendardVariable.woff2') format('woff2');font-weight:100 900;font-display:swap}
.studio-brand-lockup,.workspace>.topbar .brand.studio-brand-lockup{display:inline-flex;align-items:center;gap:12px;font-family:StudioBrand,system-ui,sans-serif;font-size:20px;font-weight:800;letter-spacing:-.7px;line-height:1.6;color:#211430;text-decoration:none;white-space:nowrap}
.studio-brand-lockup .studio-brand-symbol,.workspace>.topbar .brand.studio-brand-lockup img{display:block;width:42px;height:42px;flex:none;object-fit:contain}
.studio-brand-lockup .studio-brand-text{display:block;text-align:left;font-size:20px;font-weight:800;line-height:1.6;letter-spacing:-.7px;color:#211430}
.studio-brand-lockup .studio-brand-caption{display:block;margin-top:1px;font-size:8px;font-weight:650;letter-spacing:1.35px;line-height:1.6;color:#7c6796}

.workspace-video-shares .share-card h2{min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

.share-description .video-description{overflow-wrap:anywhere;margin-bottom:4px}.share-description .video-description.is-clamped{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.share-description .share-description-toggle{display:inline-block;padding:2px 0;border:0;background:transparent;color:#6d28d9;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.share-description .share-description-toggle[hidden]{display:none!important}
.share-description .share-description-toggle:focus-visible{outline:2px solid #8b5cf6;outline-offset:3px}

.share-description .share-description-toggle{display:block;margin-left:auto;width:fit-content;text-align:right}

.share-description{margin-top:12px}.share-description .video-description{font-size:14px;line-height:1.7;min-height:3.4em;margin:0 0 4px}.share-description-toggle-row{min-height:24px;display:flex;align-items:center;justify-content:flex-end}

.workspace-video-shares .share-upload-panel{margin-bottom:32px}.workspace-video-shares .share-playback-toolbar{margin-top:8px}
