/* The prototype loading presentation is scoped to deep short-video creation. */
.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-prototype-busy-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 20px;background:#eaf3ff;border:1px solid #d7e8fc;border-radius:16px;margin:0 0 22px}
.copy-prototype-busy-message{display:flex;align-items:center;gap:12px;min-width:0}.copy-prototype-busy-message>div{min-width:0}.copy-prototype-busy-message strong{font-size:13px;font-weight:500;color:#26649e;line-height:1.6}.copy-prototype-busy-message p{font-size:11px;color:#6e8eaf;line-height:1.7;margin:3px 0 0;overflow-wrap:anywhere}
.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-prototype-busy-bar button{background:transparent;border-color:#c0d7ef;color:#46779f;padding:7px 14px;min-height:34px;font-size:12px;flex-shrink:0;white-space:nowrap}
.copy-prototype-spinner{width:17px;height:17px;border:2px solid #c2dcf8;border-top-color:#0071e3;border-radius:50%;animation:copy-prototype-spin .8s linear infinite;flex-shrink:0}
.copy-prototype-skeleton{background:linear-gradient(100deg,#f0f0f4 15%,#f8f8fa 35%,#f0f0f4 55%);background-size:240% 100%;animation:copy-prototype-shimmer 1.7s ease-in-out infinite;border-radius:8px;display:block}
.copy-prototype-topic-skeletons{display:grid;gap:10px;margin-top:20px}.copy-prototype-skeleton-row{height:66px;border-radius:14px;display:flex;align-items:center;gap:16px;padding:18px;background:#fafafc}.copy-prototype-skeleton-row .copy-prototype-skeleton:first-child{width:25px;height:25px;border-radius:50%;flex:0 0 auto}.copy-prototype-skeleton-row .copy-prototype-skeleton:last-child{height:12px;max-width:85%;flex:1}
.copy-prototype-loading-note{font-size:12px;color:#6e8eaf;line-height:1.7;margin:18px 0}.copy-prototype-skeleton-copy{display:grid;gap:15px;padding:20px 0}.copy-prototype-skeleton-copy i{height:12px}.copy-prototype-skeleton-copy i:nth-child(3n){width:75%}
.copy-prototype-metadata{display:grid;grid-template-columns:.9fr 1.4fr 1.2fr;gap:18px;margin:0 0 27px;padding:8px 20px;background:#fafafc;border:1px solid #efeff3;border-radius:16px}
.copy-prototype-loading-columns{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:28px}.copy-prototype-loading-columns.single-output{grid-template-columns:minmax(0,1fr)}.copy-prototype-loading-columns>section{min-width:0}.copy-prototype-loading-columns h3{margin:0 0 14px;font-size:16px}.copy-prototype-storyboard-skeleton{display:grid;gap:12px;border:1px solid #ededf3;border-radius:14px;padding:18px}.copy-prototype-storyboard-skeleton i{height:42px}
@keyframes copy-prototype-shimmer{0%{background-position:120% 0}100%{background-position:-120% 0}}@keyframes copy-prototype-spin{to{transform:rotate(360deg)}}
@media(max-width:1180px){.copy-prototype-loading-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-prototype-busy-bar{padding:12px 14px;gap:10px}.copy-prototype-busy-message{gap:9px}.copy-prototype-busy-message strong{font-size:12px}.copy-prototype-busy-message p{font-size:10px}.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-prototype-busy-bar button{padding:6px 9px;font-size:11px}.copy-prototype-metadata{gap:10px;padding:6px 14px}.copy-prototype-loading-columns{gap:24px}.copy-prototype-skeleton-row{padding:16px;gap:14px}}
@media(prefers-reduced-motion:reduce){.copy-prototype-skeleton,.copy-prototype-spinner{animation:none}}

/* Keep topic generation feedback beside the topic-selection heading. */
.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-topic-progress-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:nowrap}
.copy-topic-progress-heading h2{flex:0 0 auto;margin:0}
.copy-topic-header-progress{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0;text-align:right}
.copy-topic-header-status{display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:12px;line-height:1.65;color:var(--color-muted);min-width:0}
.copy-topic-header-status>.copy-prototype-spinner{width:14px;height:14px}
.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-topic-header-progress button{min-height:32px;padding:4px 0 4px 8px;font-size:12px;line-height:1.6;color:var(--color-primary);background:transparent;border:0;white-space:nowrap}
.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-topic-header-progress button:disabled{color:var(--color-muted)}
@media(max-width:380px){.copy-topic-header-status{font-size:11px}.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-topic-progress-heading{gap:8px}}

.copy-topic-live-list{display:grid;gap:14px}.copy-topic-live-list>.note{margin:0 0 4px;font-size:13px}.copy-topic-live-row{display:flex;align-items:baseline;gap:14px;min-height:66px;padding:18px;border-radius:14px;background:#f7f8fb;line-height:1.75;overflow-wrap:anywhere}.copy-topic-live-number{flex:none;color:#86868b;font-size:14px}.copy-topic-live-caret{display:inline-block;width:2px;height:1em;margin-left:4px;background:#0071e3;vertical-align:-.1em;animation:copy-topic-caret 1s step-end infinite}@keyframes copy-topic-caret{50%{opacity:0}}@media(prefers-reduced-motion:reduce){.copy-topic-live-caret{animation:none}}

/* Match the completed .copy-topic-select typography during streaming. */
.copy-topic-live-row{font-family:var(--font-ui);font-size:14px;font-weight:500;line-height:1.6;color:var(--ink)}
.copy-topic-live-number{font-size:12px;color:#95959f}

.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-script-stream textarea{color:var(--color-text);opacity:1}

.copy-stream-waiting{padding:24px;border:1px solid #ececf0;border-radius:18px;background:#fafafc;min-height:360px}.copy-unified-editor .copy-stream-waiting{padding:20px 0 0;border:0;border-top:1px solid #e8e8ed;border-radius:0;background:transparent}

.copy-context .copy-progress-inline{margin:0 0 0 auto;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;gap:12px;flex-wrap:wrap;min-width:0}.copy-context .copy-progress-inline .copy-prototype-busy-message{gap:8px}.copy-context .copy-progress-inline strong{font-size:12px;font-weight:400;white-space:nowrap}.copy-context .copy-progress-inline .copy-prototype-spinner{width:14px;height:14px;flex-basis:14px}.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-context .copy-progress-inline button{padding:5px 8px;border:0;background:transparent;min-height:32px;white-space:nowrap}.copy-disabled-workspace{min-width:0}@media(max-width:760px){.copy-context .copy-progress-inline{margin-left:0}}

/* Each streaming card has its own results wrapper; match the final grid gap. */
.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-results + .copy-results{margin-top:32px}
.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-results:empty{display:none}
.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-results:empty + .copy-results{margin-top:0}

/* Current generation status belongs to the voice column heading. */
.copy-script-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.copy-script-progress-heading>h3{margin:0!important}
.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-script-progress-heading .copy-progress-inline{margin:0 0 0 auto;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;gap:10px;min-width:0}
.copy-script-progress-heading .copy-prototype-busy-message{gap:7px}
.copy-script-progress-heading .copy-prototype-busy-message strong{font-size:12px;font-weight:400;color:var(--color-muted)}
.copy-script-progress-heading .copy-prototype-spinner{width:14px;height:14px}
.main:is([data-page="copy"],[data-page="copy-imitate"]) .copy-script-progress-heading .copy-progress-inline button{padding:4px 6px;border:0;min-height:28px;background:transparent;font-size:12px;color:var(--color-muted)}
