/* Reference-board refinements for works, result states, and progressive forms. */
.creation-mode-switch{display:flex;align-items:center;justify-content:center;gap:0;margin:-6px auto 24px;border-radius:22px;padding:4px;background:#f7f5fc;max-width:290px;font-size:13px;color:#a49aae}.creation-mode-switch>*{flex:1;text-align:center;padding:9px 20px;border-radius:20px}.creation-mode-switch .active{color:#8767da;background:#eee7ff}.style-source-options{display:flex;gap:8px;margin:0 0 15px;flex-wrap:wrap}.style-source-options .chip{flex:1;font-size:11px}
.effect-cards .choice{display:flex;align-items:center;gap:12px}.effect-cards .choice>img{width:50px;height:62px;object-fit:cover;border-radius:7px}.effect-cards .choice>span{min-width:0;flex:1}.effect-cards .choice small{font-size:10px;line-height:1.6;margin-top:6px}
.audio-settings>h2{font-size:17px;margin:4px 0 22px}.audio-role-list{display:grid;gap:12px;margin-bottom:16px}.audio-role-row{display:flex;align-items:center;gap:12px;border:1px solid #ebe6f4;border-radius:12px;background:#faf8ff;padding:16px;flex-wrap:wrap}.audio-role-row.selected{border-color:#b59be7;background:#f5f0ff}.voice-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#ece4fc;color:#9874d3;font-size:21px;flex-shrink:0}.audio-role-row>span:nth-child(2){flex:1}.audio-role-row b{display:block;font-size:13px;font-weight:500;color:#695779}.audio-role-row small{display:block;font-size:11px;color:#a08cae;margin-top:7px}.selected-check{color:#9573d6}.audio-role-row audio{width:100%;height:35px;margin-top:5px}.audio-columns .brief-field textarea{min-height:320px}.audio-settings .disclosure-button{background:#fbf8ff;min-height:56px}.audio-settings .disclosure-button .voice-glyph{font-size:19px}.voice-editor .voice-actions{padding:20px 0;background:linear-gradient(110deg,#fff,#fbf8ff);border-radius:12px}.auto-voice>span{display:inline-grid;place-items:center;width:80px;height:80px;background:#f2eaff;border:7px solid #fcfaff;border-radius:50%;box-shadow:0 0 0 1px #eee4fb}
.works-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}.works-layout>section{min-width:0}.work-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.work-gallery>.empty:only-child{grid-column:1/-1}.work-tile{border:0;background:none;text-align:left;padding:0;min-width:0;color:#4b3f5c;position:relative}.work-tile-image{display:block;position:relative;width:100%;aspect-ratio:3/4;border:2px solid transparent;border-radius:12px;overflow:hidden;background:#f9f5fd}.work-tile.selected .work-tile-image{border-color:#a286e5;box-shadow:0 0 0 3px #ac8ce81a}.work-tile-image>img{width:100%;height:100%;object-fit:cover}.work-tile>strong{display:block;font-size:13px;font-weight:550;margin:12px 0 8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.work-tile>small{display:block;font-size:10px;color:#a89bb3;margin:7px 0 15px}.work-tile-state{display:flex;align-items:center;gap:6px;font-size:11px;color:#aa99b5}.work-tile-state:before{content:'';display:block;width:6px;height:6px;border-radius:50%;background:#b7a8c6}.work-tile-state.ready:before{background:#85b88a}.work-tile-state.working:before{background:#a184dc}.work-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:linear-gradient(120deg,#faf6ff,#f2effa);color:#c3b3dd}.work-placeholder>b{font-size:41px;font-weight:300}.work-placeholder>small{font-size:11px;color:#ad9ebe}.work-placeholder.copy{background:linear-gradient(135deg,#fffaf3,#f5f0fd)}.work-placeholder.audio{color:#b091da}.duration-badge{position:absolute;bottom:9px;right:8px;font-size:10px;background:#5a4f6377;color:white;border-radius:5px;padding:4px 6px}.work-inspector{border:1px solid #ede7f5;border-radius:16px;background:#fff;padding:18px;position:sticky;top:20px;min-width:0}.work-inspector h2{font-size:17px;line-height:1.6;margin:0}.work-date{font-size:10px;color:#ac9bb8;margin:10px 0 18px}.preview-tabs{display:flex;gap:6px;margin-bottom:18px}.preview-tabs .chip{font-size:11px;padding:7px 12px}.work-preview-content{max-height:66vh;overflow:auto;overscroll-behavior:contain}.library-media{margin-bottom:18px}.library-media img,.library-media video{width:100%;max-height:340px;object-fit:contain;border-radius:10px;display:block;background:#f8f5fc}.library-media audio{width:100%}.library-media>small{display:block;color:#a08baa;font-size:11px;margin-top:8px}.library-text{white-space:pre-wrap;color:#8f7b9e;font-size:12px;line-height:1.9;overflow-wrap:anywhere}.work-inspector h3{font-size:13px}.open-project{display:block;text-align:center;margin-top:18px;width:100%;font-size:12px;padding:12px}.work-filters{border:0;gap:9px;margin-bottom:24px}.work-filters button{padding:8px 16px;background:#faf7ff;border-radius:9px;border:0;font-size:12px}.work-filters button.active{border:0;background:#eee6fe;color:#8b65d1}
.progress-strip{padding:4px 0 12px;gap:0;border:0;background:transparent;justify-content:flex-start;max-width:900px}.phase{position:relative;display:flex;gap:9px;align-items:center;justify-content:flex-start;background:transparent!important;box-shadow:none!important;text-align:left;padding:8px 20px 8px 0;color:#b7acc4;flex:1}.phase:not(:last-child):after{content:'';position:absolute;right:8px;top:50%;height:2px;width:calc(100% - 132px);background:#eee8f7}.phase i{font-style:normal;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#f0eaf8;color:#baa9ce;font-size:11px;flex-shrink:0}.phase.current{color:#9570d3}.phase.current i{background:#9c78de;color:white;box-shadow:0 0 0 4px #f3edff}.phase.done{color:#a38bb7}.phase.done i{background:#f0e8fd;color:#9774cd}.phase.done:after{background:#c9b1ee}.document-summary{padding:22px;border-radius:14px}.saved-label{color:#94ad84}.saved-label:before{content:'●';font-size:8px;margin-right:5px;color:#8dbb76}.document-excerpt{color:#7c6a8b;line-height:1.95}.working-media{min-height:250px!important;background:linear-gradient(130deg,#fdfaff,#f5efff)!important}.working-dots{display:flex;gap:13px;justify-content:center;margin:20px 0}.working-dots i{width:9px;height:9px;border-radius:50%;background:#a486de;animation:pulse 1.6s ease-in-out infinite}.working-dots i:nth-child(2){animation-delay:.3s;opacity:.7}.working-dots i:nth-child(3){animation-delay:.6s;opacity:.4}
.text-project{max-width:1100px}.written-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.written-results:has(>.document-summary:only-child),.written-results:has(>.empty:only-child){grid-template-columns:1fr}.written-results .document-excerpt{-webkit-line-clamp:12;font-size:14px;min-height:120px}.written-results .document-summary{margin:0}.reuse-workspace{margin-top:26px}.reuse-workspace>.field{max-width:400px}.reuse-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.reuse-actions button{padding:20px 12px;background:white;border:1px solid #ede5f6;border-radius:13px;text-align:center;color:#8b6fa8}.reuse-actions span{display:block;font-size:28px;color:#9e7bd6;margin:0 0 12px}.reuse-actions b{font-size:13px;display:block;font-weight:500}.reuse-actions small{display:block;margin-top:8px;font-size:11px;color:#ae9ab9}.image-production-grid .results{grid-template-columns:repeat(2,minmax(0,1fr))}.image-production-grid .asset-card img{max-height:560px}.image-production-grid .asset-card .empty{min-height:300px}.transcript-audio .results{grid-template-columns:1fr}.transcript-audio{margin-bottom:20px}
@media(min-width:1600px){.work-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.works-layout{grid-template-columns:minmax(0,1fr) 270px;gap:18px}.work-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.effect-cards .choice{padding:10px;gap:8px}.effect-cards .choice>img{width:38px;height:52px}.phase{font-size:10px;padding-right:10px}.phase:not(:last-child):after{display:none}}
@media(max-width:800px){.works-layout{grid-template-columns:1fr}.work-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.work-inspector{display:none;position:static}.work-inspector.has-selection{display:block}.work-preview-content{max-height:55vh}.work-tile-image{aspect-ratio:4/5}}
@media(max-width:650px){.work-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.work-tile>strong{font-size:12px}.works-layout{gap:18px}.work-inspector{padding:17px}.work-filters{gap:6px}.work-filters button{font-size:11px;padding:8px 12px}.effect-cards .choice>img{width:36px;height:50px}.effect-cards .choice small{font-size:9px}.style-source-options .chip{font-size:10px;padding:10px 7px}.audio-columns .brief-field textarea{min-height:240px}.audio-settings>h2{font-size:16px}.audio-role-row{padding:13px}.audio-role-row b{font-size:12px}.audio-role-row small{font-size:10px}.progress-strip{overflow:auto;flex-wrap:nowrap}.phase{min-width:99px;flex:none;font-size:10px;gap:7px}.phase i{width:20px;height:20px;font-size:10px}.written-results{grid-template-columns:1fr}.written-results .document-excerpt{font-size:13px;min-height:70px}.reuse-actions{gap:8px}.reuse-actions button{padding:17px 8px}.reuse-actions b{font-size:12px}.reuse-actions small{font-size:10px;line-height:1.7}.reuse-actions span{font-size:24px}.image-production-grid .results{grid-template-columns:1fr}.creation-mode-switch{font-size:12px;max-width:240px}.work-inspector .section-label{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.rep-editor{min-inline-size:0;margin:16px 0;padding:14px 16px 10px;border:1px solid #ded6f1;border-radius:16px;background:#faf8ff;color:#342b48}
.rep-editor legend{padding:0 6px;font-size:15px;font-weight:700}.rep-editor legend small{margin-inline-start:5px;font-weight:400;color:#6a6279}.rep-editor>p,.rep-info>small{margin:0 0 10px;font-size:12px;line-height:1.6;color:#635c71}
.rep-picks,.rep-row{display:flex;align-items:center;gap:8px}.rep-picks{flex-wrap:wrap}.rep-pick,.rep-remove{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;background:white;border:1px solid #d9ccec;border-radius:10px;color:#563d79;font-size:13px;padding:8px 10px;line-height:1.35}.rep-pick svg,.rep-remove svg{width:17px;height:17px}.rep-pick:hover,.rep-pick:focus-within{border-color:#8464a9}.rep-pick:focus-within{outline:2px solid #775899;outline-offset:2px}.rep-file{position:absolute;inset:0;opacity:0;cursor:pointer;inline-size:100%;max-inline-size:100%}
.rep-item{border-top:1px solid #e6e0ed;padding-top:12px;margin-top:12px;display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px}.rep-thumb img{width:84px;height:84px;display:block;object-fit:contain;background:white;border-radius:10px}.rep-audio{grid-template-columns:minmax(0,1fr)}.rep-row{margin-bottom:7px;flex-wrap:wrap}.rep-row strong{flex:1;min-width:4em;overflow-wrap:anywhere;font-size:13px}.rep-small,.rep-remove{padding:5px 8px;font-size:12px}.rep-info{min-width:0}.rep-target{display:grid;gap:4px;color:#5f566b;font-size:12px}.rep-target input,.rep-target select{width:100%;min-width:0;padding:7px 9px;border:1px solid #d9d3df;border-radius:8px;background:white;color:#322a3a;font:inherit}.rep-info audio{width:100%;height:35px;margin-bottom:6px}.rep-status{font-size:12px;color:#604a7d;overflow-wrap:anywhere}.rep-status:not(:empty){margin-top:8px}
@media(max-width:550px){.rep-editor{padding:10px}.rep-item{grid-template-columns:62px minmax(0,1fr);gap:8px}.rep-thumb img{width:62px;height:62px}.rep-audio{grid-template-columns:minmax(0,1fr)}.rep-picks{gap:6px}.rep-pick{font-size:12px}.rep-small,.rep-remove{min-height:32px}}

.cast-control{display:grid;gap:.55rem;background:#f7f8ff;border-radius:12px;padding:.75rem;margin:.5rem 0}.cast-control .field{margin:0;min-width:0}.cast-control select,.cast-control input{width:100%;max-width:100%;min-width:0}.cast-image{display:flex;align-items:center;gap:.6rem;overflow-wrap:anywhere}.cast-image img{width:48px;height:48px;object-fit:cover;border-radius:8px}.cast-source video{width:100%;max-height:230px;margin:.5rem 0;background:#171925;border-radius:10px}.cast-source summary{cursor:pointer}.duration-field #duration-hint:not(:empty){color:#5b488a;line-height:1.45}.duration-field #duration-hint:empty{display:none}
.replica-outline ol{padding-inline-start:1.75rem}.replica-outline li+li{margin-block-start:.9rem}.replica-outline li small{display:block;color:var(--muted,#655d77)}.replica-outline li p{margin:.3rem 0;overflow-wrap:anywhere}
/* Keep the mode choice next to the source; comparison is possible without opening another page. */
.rep-mode{min-inline-size:0;border:0;padding:0;margin:0 0 20px}.rep-mode legend{font-size:15px;font-weight:700;margin-bottom:9px}.rep-mode>div,.rep-spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rep-mode label{min-width:0;position:relative;display:flex;align-items:center;gap:10px;padding:12px 15px;background:#fff;border:1px solid var(--line);border-radius:13px;cursor:pointer}.rep-mode label:has(input:checked){background:#f6f2ff;border-color:#9676d7}.rep-mode input{accent-color:var(--purple);inline-size:17px;block-size:17px;margin:0;flex-shrink:0}.rep-mode input:focus-visible{outline:2px solid var(--purple);outline-offset:2px}.rep-mode label>span{display:flex;align-items:center;gap:9px;min-width:0}.rep-mode svg{width:23px;height:23px;color:#7355af;flex-shrink:0}.rep-mode strong,.rep-mode small{display:block}.rep-mode small,.rep-next p{color:#655b77}.rep-mode small{font-size:12px;margin-top:3px}
@supports not (accent-color:auto){.rep-mode label{padding-inline-start:42px}.rep-mode input{position:absolute;opacity:0}.rep-mode input+span:before{content:"";position:absolute;inset-inline-start:14px;width:14px;height:14px;border:2px solid #79658d;border-radius:50%}.rep-mode input:checked+span:before{background:var(--purple);box-shadow:inset 0 0 0 2px white}.rep-mode input:focus-visible+span:before{outline:2px solid var(--purple);outline-offset:3px}}
.replica-text-sheet .replica-prompt-body{line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;max-height:46vh;overflow:auto;padding:15px 18px;margin:10px 0 15px;background:#faf8fe;border-radius:12px}.replica-prompt-body:focus-visible{outline:2px solid var(--purple)}.rep-prompt-actions,.rep-next{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.rep-next{margin-top:16px;border:1px solid #dfd5f1;background:linear-gradient(110deg,#f5effc,#fbfaff);border-radius:14px;padding:16px 20px;justify-content:space-between}.rep-next h3,.rep-next p{margin:3px 0}.rep-next p{font-size:13px}.reverse-edit-text{width:100%;resize:vertical}.rep-spec-grid{padding-top:12px}#edit[hidden]{display:none}
@media(max-width:580px){.rep-mode>div{grid-template-columns:1fr}.rep-mode label{padding:9px 12px}.rep-spec-grid{grid-template-columns:minmax(0,1fr)}.rep-next{align-items:stretch;flex-direction:column}.replica-text-sheet .replica-prompt-body{padding:12px}}

