.creation-category-tabs {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.creation-category-tabs > a[hidden] {
    display: none !important;
}

.work-thumb-wrap,
.project-head > div:last-child { position: relative; }
.work-card-menu,
.project-action-menu {
    position: absolute;
    z-index: 30;
    right: 8px;
    top: 42px;
    min-width: 142px;
    padding: 6px;
    display: grid;
    gap: 2px;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 39, 76, .14);
}
.work-card-menu[hidden],
.project-action-menu[hidden],
.project-version-list[hidden] { display: none !important; }
.work-card-menu button,
.project-action-menu button {
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #243754;
    text-align: left;
    cursor: pointer;
}
.work-card-menu button:hover,
.project-action-menu button:hover { background: #f1f6fc; }
.work-card-menu button:last-child { color: #c34052; }
.project-action-menu { right: 0; top: 48px; }
.project-version-list {
    margin: -1px 0 18px;
    padding: 12px 16px;
    display: grid;
    gap: 8px;
    border: 1px solid #dce5f0;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: #f8fbff;
    color: #64748b;
    font-size: 12px;
}
.brand-editor {
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #dce5f0;
    background: #f8fbff;
}
.brand-editor[hidden] { display: none !important; }
.brand-file-button,
.brand-editor-action {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b9c9dd;
    border-radius: 7px;
    background: #fff;
    color: #285f9f;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.brand-editor-note { min-width: 0; overflow: hidden; color: #73839a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.brand-color-control { display: inline-flex; align-items: center; gap: 7px; color: #63758d; font-size: 11px; }
.brand-color-control input { width: 34px; height: 30px; padding: 2px; border: 1px solid #cbd7e6; border-radius: 6px; background: #fff; cursor: pointer; }
.brand-text-input,
.brand-field select {
    min-width: 0;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #cbd7e6;
    border-radius: 7px;
    background: #fff;
    color: #243754;
    font-size: 12px;
}
.brand-text-input { width: 88px; }
.brand-text-input.is-invalid { border-color: #d85a67; }
.brand-field { width: 100%; display: grid; gap: 7px; color: #63758d; font-size: 11px; }
.brand-field select { width: 100%; }
.brand-asset-list { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; color: #73839a; font-size: 11px; }
.brand-asset-list > span { max-width: 100%; padding: 4px 7px; overflow: hidden; border-radius: 5px; background: #eaf2ff; color: #35689f; text-overflow: ellipsis; white-space: nowrap; }

body[data-ui-theme="dark"] .brand-editor { border-color: #26364b; background: #111d2d; }
body[data-ui-theme="dark"] .brand-file-button,
body[data-ui-theme="dark"] .brand-editor-action,
body[data-ui-theme="dark"] .brand-text-input,
body[data-ui-theme="dark"] .brand-field select,
body[data-ui-theme="dark"] .brand-color-control input { border-color: #34465e; background: #172437; color: #dbe8f8; }
.creation-category-tabs a {
    min-width: 178px;
    min-height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #d8e1ed;
    border-radius: 9px;
    background: #fff;
    color: #41526d;
    font-size: 15px;
    font-weight: 650;
}
.creation-category-tabs a:hover,
.creation-category-tabs a.active {
    border-color: #8ab8ff;
    color: var(--creation-blue);
    box-shadow: inset 0 -2px 0 var(--creation-blue);
}
.creation-category-tabs svg,
.creation-category-tabs > a > img { width: 27px; height: 27px; flex: 0 0 27px; }

.detail-breadcrumb { margin-bottom: 18px; flex-wrap: wrap; }
.detail-heading h1 { font-size: 36px; }
.detail-heading p { margin-top: 7px; font-size: 15px; }
.creation-detail-layout {
    display: grid;
    grid-template-columns: 405px minmax(0, 1fr);
    gap: 22px;
    margin-top: 26px;
}
.fuuvo-detail-icon { display: block; object-fit: contain; }
.detail-submit .fuuvo-detail-icon { width: 21px; height: 21px; flex: 0 0 21px; }
.creation-detail-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #fff;
}
.creation-detail-card h2 {
    margin: 0 0 18px;
    color: var(--creation-ink);
    font-size: 18px;
    line-height: 1.3;
}
.detail-controls { align-self: start; }
.edit-detail-layout .detail-controls { align-self: stretch; }
.edit-detail-layout > .creation-detail-card { height: 100%; }
.edit-detail-layout .edit-generate-icon { filter: brightness(0) invert(1); }
.poster-detail-layout .detail-controls { align-self: stretch; }
.poster-detail-layout > .creation-detail-card { height: 100%; }
.detail-label {
    margin: 16px 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #243651;
    font-size: 14px;
    font-weight: 650;
}
.detail-controls > .detail-label:first-of-type { margin-top: 0; }
.detail-textarea-wrap,
.detail-input-wrap { position: relative; }
.detail-textarea-wrap textarea,
.detail-input-wrap input {
    width: 100%;
    min-height: 124px;
    padding: 12px 13px 28px;
    resize: none;
    border: 1px solid #cbd6e5;
    border-radius: 9px;
    outline: none;
    color: #273b59;
    background: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1.65;
}
.detail-textarea-wrap.small textarea { min-height: 76px; }
.detail-textarea-wrap textarea:focus,
.detail-input-wrap input:focus { border-color: var(--creation-blue); box-shadow: 0 0 0 3px #edf5ff; }
.detail-textarea-wrap textarea::placeholder { color: #98a8bc; }
.detail-textarea-wrap > small,
.detail-input-wrap > small {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: #7b8ba2;
    font-size: 11px;
}
.video-edit-context {
    margin-top: 10px;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #b9d7ff;
    border-radius: 8px;
    background: #edf6ff;
}
.video-edit-context[hidden] { display: none !important; }
.video-edit-context > span { min-width: 0; display: grid; gap: 2px; }
.video-edit-context strong { color: #1d4f91; font-size: 12px; }
.video-edit-context small { color: #5c7290; font-size: 10px; line-height: 1.45; }
.video-edit-context button { min-width: 0; padding: 4px 0; flex: 0 0 auto; border: 0; background: transparent; color: var(--creation-blue); font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.video-edit-context button:hover,
.video-edit-context button:focus-visible { text-decoration: underline; outline: none; }
.video-detail-layout.is-video-editing [data-sync-select="#video-ratio"] button:disabled,
.video-detail-layout.is-video-editing [data-sync-select="#video-duration"] button:disabled,
.video-detail-layout.is-video-editing #video-ratio:disabled,
.video-detail-layout.is-video-editing #video-duration:disabled { opacity: .58; cursor: not-allowed; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="video"] .video-edit-context { border-color: #355b86; background: #152b43; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="video"] .video-edit-context strong { color: #d9eaff; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="video"] .video-edit-context small { color: #9eb4ce; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="video"] .video-edit-context button { color: #83b9ff; }
.animate-detail-layout.is-animate-editing #animate-length:disabled { opacity: .58; cursor: not-allowed; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-edit-context { border-color: #355b86; background: #152b43; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-edit-context strong { color: #d9eaff; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-edit-context small { color: #9eb4ce; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-edit-context button { color: #83b9ff; }
.detail-input-wrap input { min-height: 40px; padding: 0 50px 0 12px; }
.detail-dropzone {
    min-height: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px dashed #bdcbe0;
    border-radius: 9px;
    color: #71839e;
    background: #fff;
    cursor: pointer;
    text-align: center;
}
.detail-dropzone:hover { border-color: var(--creation-blue); background: #fafdff; }
.detail-dropzone svg,
.detail-dropzone > img { width: 25px; height: 25px; color: var(--creation-blue); }
.detail-dropzone strong { color: #687b96; font-size: 13px; font-weight: 600; }
.detail-dropzone small { font-size: 11px; }
.detail-dropzone.compact {
    display: grid;
    grid-template-columns: 22px auto;
    grid-template-rows: auto auto;
    align-content: center;
    justify-content: center;
    column-gap: 7px;
    row-gap: 6px;
}
.detail-dropzone.compact > img {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}
.detail-dropzone.compact > strong {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}
.detail-dropzone.compact > small {
    grid-column: 1 / -1;
    grid-row: 2;
}
.detail-dropzone.dragging,
.poster-upload.dragging {
    border-style: solid;
    border-width: 2px;
    border-color: var(--creation-blue);
    background: #edf5ff;
    color: var(--creation-blue);
    box-shadow: 0 0 0 4px rgba(11,111,242,.13);
}
.poster-upload.dragging .poster-drop-hint { display: block; }
.poster-drop-hint {
    grid-column: 1 / -1;
    grid-row: 3;
    color: var(--creation-blue);
    font-size: 12px;
    font-weight: 700;
}
.poster-upload-list {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.poster-upload-list[hidden] { display: none; }
.poster-upload-item {
    min-width: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #f7faff;
}
.poster-upload-item > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    background: #edf2f8;
}
.poster-upload-item > p {
    margin: 0;
    padding: 6px 7px 7px;
    overflow: hidden;
    color: #536782;
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.poster-upload-remove {
    width: 24px;
    height: 24px;
    padding: 0;
    position: absolute;
    top: 5px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 50%;
    background: rgba(20,43,78,.78);
    color: #fff;
    font: 400 18px/1 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(15,23,42,.2);
}
.poster-upload-remove:hover,
.poster-upload-remove:focus-visible { background: #b54747; outline: none; }
.detail-dropzone.has-file { border-style: solid; border-color: #72b395; color: #237a54; background: #f7fffb; }
.poster-upload { position: relative; overflow: hidden; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.poster-upload > img,
.poster-upload > strong,
.poster-upload > small { transition: opacity .12s ease; }
.poster-drop-prompt {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #edf5ff;
    color: var(--creation-blue);
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease;
}
.poster-drop-prompt b { font-size: 13px; font-style: normal; }
.poster-drop-prompt em { color: #55779f; font-size: 10px; font-style: normal; line-height: 1.45; }
.poster-detail-layout.is-poster-file-dragging .poster-upload,
.poster-upload.dragging { border-color: var(--creation-blue); background: #edf5ff; box-shadow: 0 0 0 3px rgba(11,111,242,.13); }
.poster-detail-layout.is-poster-file-dragging .poster-upload > img,
.poster-detail-layout.is-poster-file-dragging .poster-upload > strong,
.poster-detail-layout.is-poster-file-dragging .poster-upload > small,
.poster-upload.dragging > img,
.poster-upload.dragging > strong,
.poster-upload.dragging > small { opacity: 0; }
.poster-detail-layout.is-poster-file-dragging .poster-drop-prompt,
.poster-upload.dragging .poster-drop-prompt { opacity: 1; }
.poster-material-list { margin-top: 9px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.poster-material-list[hidden] { display: none !important; }
.poster-material-item { min-width: 0; min-height: 54px; padding: 6px 34px 6px 6px; position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 8px; border: 1px solid #d8e2ee; border-radius: 8px; background: #fbfdff; }
.poster-material-item > img { width: 42px; height: 42px; display: block; border-radius: 6px; background: #edf3f9; object-fit: cover; }
.poster-material-item > span { min-width: 0; display: grid; gap: 3px; }
.poster-material-item > span strong { overflow: hidden; color: #405572; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.poster-material-item > span small { color: #8291a5; font-size: 9px; }
.poster-material-remove { width: 24px; min-width: 24px; height: 24px; min-height: 24px; padding: 0; position: absolute; top: 50%; right: 6px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: #73839a; font-size: 18px; line-height: 1; cursor: pointer; }
.poster-material-remove:hover,
.poster-material-remove:focus-visible { outline: none; background: #e8eef6; color: #304965; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .poster-detail-layout.is-poster-file-dragging .poster-upload,
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .poster-upload.dragging { border-color: var(--fuuvo-dark-blue-line) !important; background: var(--fuuvo-dark-blue-soft) !important; box-shadow: 0 0 0 3px rgba(96,165,250,.13) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .poster-drop-prompt { background: #172a43 !important; color: var(--fuuvo-dark-blue) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .poster-drop-prompt em { color: var(--fuuvo-dark-muted) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .poster-material-item { border-color: var(--fuuvo-dark-line-strong); background: var(--fuuvo-dark-surface-raised); }
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .poster-material-item > img { background: #111827; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .poster-material-item > span strong { color: var(--fuuvo-dark-text-soft); }
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .poster-material-item > span small { color: var(--fuuvo-dark-muted); }
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .poster-material-remove { color: var(--fuuvo-dark-muted); }
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .poster-material-remove:hover,
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .poster-material-remove:focus-visible { background: var(--fuuvo-dark-blue-soft); color: var(--fuuvo-dark-blue); }
.detail-dropzone.poster-upload.dragging { border-color: var(--creation-blue); background: #edf5ff; }
.detail-option-grid { display: grid; gap: 9px; }
.detail-option-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-option-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-option {
    min-height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #cfd9e7;
    border-radius: 8px;
    background: #fff;
    color: #556882;
    font-size: 13px;
    cursor: pointer;
}
.detail-option svg,
.detail-option > img { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.detail-option:hover,
.detail-option.active { border-color: var(--creation-blue); color: var(--creation-blue); box-shadow: inset 0 0 0 1px var(--creation-blue); }

.animate-motion-workflow { margin-top: 16px; }
.video-detail-layout .detail-preview-card,
.animate-detail-layout .detail-preview-card,
.poster-detail-layout .detail-preview-card { align-self: start; }
.animate-motion-heading {
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.animate-motion-heading > strong { color: #243651; font-size: 14px; font-weight: 650; }
.animate-motion-heading > span {
    padding: 3px 7px;
    border-radius: 5px;
    background: #edf5ff;
    color: #3977c8;
    font-size: 10px;
    font-weight: 700;
}
.animate-motion-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.animate-motion-option {
    min-width: 0;
    min-height: 72px;
    padding: 9px 29px 9px 9px;
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid #cfd9e7;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #52657f;
    cursor: pointer;
    text-align: left;
}
.animate-motion-option:hover { border-color: #83b5f8; background: #f9fbff; }
.animate-motion-option:focus-visible { border-color: var(--creation-blue); box-shadow: 0 0 0 3px #eaf3ff; }
.animate-motion-option.active { border-color: var(--creation-blue); background: #f2f7ff; box-shadow: inset 0 0 0 1px var(--creation-blue); }
.animate-motion-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.animate-motion-icon img { width: 24px; height: 24px; }
.animate-motion-copy { min-width: 0; display: grid; gap: 3px; }
.animate-motion-copy strong { overflow-wrap: anywhere; color: #2f4564; font-size: 12px; line-height: 1.3; }
.animate-motion-copy small { color: #7b8ca3; font-size: 10px; line-height: 1.4; }
.animate-motion-option.active .animate-motion-copy strong { color: var(--creation-blue); }
.animate-motion-check {
    width: 17px;
    height: 17px;
    position: absolute;
    top: 7px;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b9c7d9;
    border-radius: 50%;
    background: #fff;
}
.animate-motion-option.active .animate-motion-check { border-color: var(--creation-blue); background: var(--creation-blue); }
.animate-motion-option.active .animate-motion-check::after {
    width: 4px;
    height: 7px;
    margin-top: -2px;
    content: "";
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}
.animate-current-effects { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2eaf3; }
.animate-current-effects.is-attention { border-top-color: #75aef7; }
.animate-current-effects-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.animate-current-effects-heading strong { color: #344a68; font-size: 12px; }
.animate-current-effects-heading > span { color: #71839b; font-size: 10px; }
.animate-current-effects-list { min-height: 24px; margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; }
.animate-current-effects-list > span {
    max-width: 100%;
    padding: 4px 7px;
    overflow: hidden;
    border-radius: 5px;
    background: #eaf3ff;
    color: #286fc8;
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.animate-current-effects-list > span.is-empty { background: #f1f4f8; color: #8391a5; font-weight: 500; }
.animate-current-meta { margin-top: 8px; padding-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-top: 1px dashed #dce5ef; }
.animate-current-meta > span { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.animate-current-meta small { color: #8290a4; font-size: 10px; }
.animate-current-meta strong { overflow: hidden; color: #415773; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.animate-detail-label .detail-optional { color: #8291a6; font-size: 10px; font-weight: 500; }
.animate-preserve-check { position: relative; cursor: pointer; line-height: 1.45; }
.animate-preserve-check > input { width: 1px; height: 1px; position: absolute; opacity: 0; pointer-events: none; }
.animate-preserve-check > span {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #aab9cc;
    border-radius: 4px;
    background: #fff;
}
.animate-preserve-check > span img { width: 18px; height: 18px; opacity: 0; }
.animate-preserve-check > input:checked + span { border-color: transparent; background: transparent; }
.animate-preserve-check > input:checked + span img { opacity: 1; }
.animate-preserve-check > input:focus-visible + span { outline: 3px solid #dcecff; outline-offset: 1px; }
.animate-generation-actions { margin-top: 16px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 9px; }
.animate-generation-actions .detail-submit { min-width: 0; margin-top: 0; gap: 7px; }
.animate-generation-actions .detail-submit .fuuvo-detail-icon { filter: brightness(0) invert(1); }
.animate-generation-actions .detail-submit:disabled { cursor: wait; opacity: .82; }
.animate-generation-actions .detail-submit.is-loading > .fuuvo-detail-icon { display: none; }
.detail-submit-spinner {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: none;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: animate-generation-spin .78s linear infinite;
}
.animate-generation-actions .detail-submit.is-loading .detail-submit-spinner { display: block; }
.animate-refine-action { width: 100%; min-height: 43px; padding: 0 10px; font-size: 12px; }

body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-motion-heading > strong,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-motion-copy strong,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-current-effects-heading strong,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-current-meta strong { color: var(--fuuvo-dark-text-soft) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .detail-label,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-preserve-check { color: var(--fuuvo-dark-text-soft) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-motion-heading > span,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-current-effects-list > span { background: var(--fuuvo-dark-blue-soft) !important; color: var(--fuuvo-dark-blue) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-motion-option {
    border-color: var(--fuuvo-dark-line-strong) !important;
    background: var(--fuuvo-dark-surface-raised) !important;
    color: var(--fuuvo-dark-text-soft) !important;
    box-shadow: none !important;
}
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-motion-option:hover,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-motion-option.active {
    border-color: var(--fuuvo-dark-blue-line) !important;
    background: var(--fuuvo-dark-blue-soft) !important;
    box-shadow: inset 0 0 0 1px var(--fuuvo-dark-blue) !important;
}
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-motion-copy small,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-current-effects-heading > span,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-current-meta small,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-detail-label .detail-optional { color: var(--fuuvo-dark-muted) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-motion-check,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-preserve-check > span { border-color: var(--fuuvo-dark-line-strong) !important; background: var(--fuuvo-dark-input) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-motion-option.active .animate-motion-check { border-color: var(--fuuvo-dark-blue) !important; background: var(--fuuvo-dark-blue) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-preserve-check > input:checked + span { border-color: transparent !important; background: transparent !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-current-effects { border-top-color: var(--fuuvo-dark-line) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-current-effects.is-attention { border-top-color: var(--fuuvo-dark-blue-line) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-current-meta { border-top-color: var(--fuuvo-dark-line) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-current-effects-list > span.is-empty { background: var(--fuuvo-dark-surface-soft) !important; color: var(--fuuvo-dark-muted) !important; }
.detail-select {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #cbd6e5;
    border-radius: 8px;
    color: #364a67;
    background: #fff;
    outline: none;
}
.detail-select:focus { border-color: var(--creation-blue); }
.video-setting-select.detail-select {
    padding-right: 48px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('/static/icons/fuuvo-pages/009_FUUVO_Create_Video_Page_Icons_Only/fuuvo-dropdown.svg');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px 18px;
}
.video-mobile-select { display: none; }
.detail-advanced { margin-top: 13px; border-top: 1px solid #edf1f6; color: #6d7f98; font-size: 13px; }
#creation-app[data-creation-page="video"] .detail-advanced { border-top: 0; }
.detail-advanced summary { padding: 12px 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }
.detail-advanced summary::-webkit-details-marker { display: none; }
.detail-advanced summary > img { width: 18px; height: 18px; flex: 0 0 18px; transition: transform .18s ease; }
.detail-advanced[open] summary > img { transform: rotate(180deg); }
.detail-advanced div { display: flex; gap: 14px; padding: 8px 0; }
.detail-submit { width: 100%; min-height: 43px; margin-top: 16px; font-size: 14px; }
.sparkle { margin-right: 8px; }
.detail-form-status { min-height: 0; margin: 8px 0 -6px; color: var(--creation-blue); font-size: 12px; text-align: center; }
.detail-form-status:empty { display: none; }

.detail-preview-card { display: flex; flex-direction: column; }
.detail-media { position: relative; overflow: hidden; border-radius: 10px; background: #eef4fb; }
.detail-media > img,
.detail-media > video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-preview {
    width: 100%;
    max-width: 906px;
    margin-inline: auto;
    aspect-ratio: 16 / 9;
}
.video-preview[data-preview-ratio="16:9"] { width: 100%; max-width: 906px; aspect-ratio: 16 / 9; }
.video-preview[data-preview-ratio="9:16"] { width: 100%; max-width: 287px; aspect-ratio: 9 / 16; }
.video-preview[data-preview-ratio="1:1"] { width: 100%; max-width: 510px; aspect-ratio: 1 / 1; }
.video-preview > video { object-fit: contain; background: #080b10; }
.video-preview-player { cursor: pointer; }
.video-preview[data-preview-ratio="9:16"] + .media-controls { width: 100%; max-width: 287px; margin-inline: auto; }
.video-preview[data-preview-ratio="1:1"] + .media-controls { width: 100%; max-width: 510px; margin-inline: auto; }
.animate-preview { aspect-ratio: 1.48 / 1; }
.detail-media.is-empty { display: grid; place-items: center; border: 1px dashed #cbd7e6; background: #f6f9fd; }
.generation-preview-empty { max-width: 310px; padding: 24px; display: grid; justify-items: center; gap: 7px; color: #72849d; text-align: center; }
.generation-preview-empty > span { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #e8f2ff; }
.generation-preview-empty > span img { width: 25px; height: 25px; }
.generation-preview-empty strong { color: #405775; font-size: 14px; }
.generation-preview-empty p { margin: 0; font-size: 12px; line-height: 1.6; }
.animate-preview.is-generation-pending .animate-preview-empty {
    max-width: none;
    position: absolute;
    inset: 0;
    z-index: 5;
    align-content: center;
    padding: 24px clamp(20px, 7vw, 72px);
    background: rgba(246,249,253,.94);
}
.animate-preview-empty.is-generating > .animate-preview-state-icon { position: relative; }
.animate-preview-empty.is-generating > .animate-preview-state-icon img { opacity: 0; }
.animate-preview-empty.is-generating > .animate-preview-state-icon::after {
    width: 23px;
    height: 23px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -11.5px 0 0 -11.5px;
    content: '';
    border: 3px solid #cfe2fb;
    border-top-color: var(--creation-blue);
    border-radius: 50%;
    animation: animate-generation-spin .78s linear infinite;
}
.animate-preview-empty.is-error > .animate-preview-state-icon { background: #fff0f1; }
.animate-generation-progress { width: min(290px, 100%); margin-top: 9px; display: grid; gap: 8px; }
.animate-generation-progress > i { height: 6px; display: block; overflow: hidden; border-radius: 999px; background: #dce8f7; }
.animate-generation-progress > i > b {
    width: 42%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #73adf6, var(--creation-blue));
    animation: animate-generation-progress 1.35s ease-in-out infinite;
}
.animate-generation-progress small { color: #647893; font-size: 11px; line-height: 1.55; }
#creation-app[data-creation-page="animate-photo"].is-generating [data-demo-preview]::after { display: none; }
@keyframes animate-generation-spin { to { transform: rotate(360deg); } }
@keyframes animate-generation-progress {
    from { transform: translateX(-115%); }
    to { transform: translateX(245%); }
}
[data-demo-preview] [hidden],
.creation-detail-layout .media-controls[hidden],
.creation-detail-layout .detail-preview-note[hidden] { display: none !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="video"] .detail-media.is-empty,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .detail-media.is-empty { border-color: var(--fuuvo-dark-line-strong) !important; background: var(--fuuvo-dark-surface-soft) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="video"] .generation-preview-empty,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .generation-preview-empty,
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .generation-preview-empty { color: var(--fuuvo-dark-muted) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="video"] .generation-preview-empty > span,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .generation-preview-empty > span,
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .generation-preview-empty > span { background: var(--fuuvo-dark-blue-soft) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="video"] .generation-preview-empty strong,
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .generation-preview-empty strong,
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .generation-preview-empty strong { color: var(--fuuvo-dark-text-soft) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-preview.is-generation-pending .animate-preview-empty { background: rgba(19,29,43,.94) !important; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-preview-empty.is-generating > .animate-preview-state-icon::after { border-color: #30445f; border-top-color: var(--fuuvo-dark-blue); }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-generation-progress > i { background: #2b3a4e; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="animate-photo"] .animate-generation-progress small { color: var(--fuuvo-dark-muted) !important; }
.preview-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    border-radius: 18px;
    background: rgba(13, 28, 50, .62);
    color: #fff;
    font-size: 12px;
}
.media-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: rgba(22, 34, 51, .55);
    color: #fff;
    cursor: pointer;
}
.media-play.light { background: rgba(255,255,255,.94); color: var(--creation-blue); box-shadow: 0 8px 24px rgba(21,74,145,.14); }
.media-play svg,
.media-play img { width: 36px; height: 36px; }
.detail-media.is-playing .media-play { opacity: 0; pointer-events: none; }
.media-expand { position: absolute; top: 13px; right: 13px; width: 36px; height: 36px; border: 1px solid #d5e0ee; border-radius: 9px; background: rgba(255,255,255,.94); color: #536985; cursor: pointer; }
.media-controls {
    min-height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 0 0 10px 10px;
    background: #f5f7fa;
    color: #344965;
    font-size: 12px;
}
.media-controls button { border: 0; background: transparent; color: #273e60; cursor: pointer; }
.media-controls i { --video-progress: 0%; height: 4px; flex: 1; position: relative; border-radius: 4px; background: #dce3ec; cursor: pointer; }
.media-controls i::before { content: ""; width: var(--video-progress); height: 100%; position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--creation-blue); }
.media-controls i b { width: 8px; height: 8px; position: absolute; left: var(--video-progress); top: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: var(--creation-blue); }
.media-controls .mini-play.playing img { opacity: 0; }
.media-controls .mini-play.playing { position: relative; }
.media-controls .mini-play.playing::before,
.media-controls .mini-play.playing::after { content: ""; width: 2px; height: 12px; position: absolute; top: 50%; border-radius: 1px; background: currentColor; transform: translateY(-50%); }
.media-controls .mini-play.playing::before { left: calc(50% - 4px); }
.media-controls .mini-play.playing::after { left: calc(50% + 2px); }
.detail-preview-note { margin: auto 0 0; padding-top: 28px; color: #7b8ba2; font-size: 13px; text-align: center; }
.detail-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.detail-result-actions[hidden] { display: none; }
.detail-result-actions .creation-outline { min-height: 42px; font-size: 14px; }
.detail-result-actions svg,
.detail-result-actions img { width: 21px; height: 21px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.source-image { overflow: hidden; border: 1px solid #d8e2ee; border-radius: 10px; background: #eef4fb; }
.source-image img { width: 100%; height: 166px; display: block; object-fit: cover; }
.animate-source { min-height: 216px; position: relative; display: grid; place-items: center; border-style: solid; background: #eef4fb; cursor: pointer; outline: none; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.animate-source.is-empty { border-style: dashed; background: #f7f9fc; }
.animate-source:hover { border-color: #83b5f8; background: #f3f8ff; }
.animate-source:focus-visible { border-color: var(--creation-blue); box-shadow: 0 0 0 3px rgba(11,111,242,.12); }
.animate-source.dragging { border-color: var(--creation-blue); background: #edf5ff; box-shadow: 0 0 0 3px rgba(11,111,242,.14); }
.animate-source > [data-source-preview] { width: 100%; height: 216px; display: block; object-fit: contain; background: #eef4fb; }
.animate-source.is-empty > [data-source-preview] { display: none; }
.animate-source-empty { max-width: 290px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #7b8ba1; text-align: center; }
.animate-source-empty[hidden] { display: none; }
.animate-source-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #e8f1fd; }
.animate-source-empty > span img { width: 23px; height: 23px; object-fit: contain; opacity: .78; }
.animate-source-empty strong { color: #536780; font-size: 14px; }
.animate-source-empty small { color: #8997aa; font-size: 12px; line-height: 1.5; }
body[data-ui-theme="dark"] .animate-source { border-color: #425169; background: #111827; }
body[data-ui-theme="dark"] .animate-source.is-empty { background: rgba(15,23,42,.46); }
body[data-ui-theme="dark"] .animate-source:hover,
body[data-ui-theme="dark"] .animate-source:focus-visible,
body[data-ui-theme="dark"] .animate-source.dragging { border-color: #60a5fa; background: rgba(30,64,175,.2); box-shadow: 0 0 0 3px rgba(96,165,250,.13); }
body[data-ui-theme="dark"] .animate-source > [data-source-preview] { background: #111827; }
body[data-ui-theme="dark"] .animate-source-empty { color: #9ba9bd; }
body[data-ui-theme="dark"] .animate-source-empty > span { background: rgba(59,130,246,.14); }
body[data-ui-theme="dark"] .animate-source-empty > span img { filter: brightness(0) saturate(100%) invert(73%) sepia(26%) saturate(1034%) hue-rotate(181deg) brightness(101%) contrast(101%); opacity: 1; }
body[data-ui-theme="dark"] .animate-source-empty strong { color: #dce7f5; }
body[data-ui-theme="dark"] .animate-source-empty small { color: #93a3b8; }
.edit-source-stage,
.edit-result-stage { min-width: 0; position: relative; overflow: hidden; border: 1px dashed #c7d3e3; border-radius: 10px; background: #f5f8fc; }
.edit-source-stage { min-height: 190px; display: grid; place-items: center; cursor: pointer; }
.edit-source-stage:not(.is-empty) { border-style: solid; }
.edit-source-stage:focus-visible { border-color: var(--creation-blue); outline: none; box-shadow: 0 0 0 3px #edf5ff; }
.edit-source-stage > [data-source-preview] { width: 100%; height: 190px; display: block; object-fit: contain; background: #edf3f9; }
.edit-source-stage.is-empty > [data-source-preview] { display: none; }
.edit-source-name { max-width: calc(100% - 74px); min-height: 27px; padding: 0 9px; position: absolute; left: 9px; bottom: 9px; display: inline-flex; align-items: center; overflow: hidden; border-radius: 5px; background: rgba(20,43,78,.78); color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.edit-empty-state { max-width: 330px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #71829a; text-align: center; }
.edit-empty-state > img { width: 31px; height: 31px; opacity: .7; }
.edit-empty-state strong { color: #52657f; font-size: 13px; }
.edit-empty-state small { color: #8291a6; font-size: 11px; line-height: 1.55; }
.edit-empty-state[hidden],
.edit-source-name[hidden],
.edit-media-remove[hidden],
.edit-reference-grid[hidden],
.edit-result-stage > [data-edit-result-image][hidden] { display: none !important; }
.edit-media-remove { width: 30px !important; min-width: 30px !important; max-width: 30px; height: 30px !important; min-height: 30px !important; max-height: 30px; aspect-ratio: 1 / 1; padding: 0 !important; position: absolute; top: 9px; right: 9px; flex: 0 0 30px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; border: 1px solid rgba(255,255,255,.56); border-radius: 50%; background: rgba(15,23,42,.56); color: rgba(255,255,255,.96); font: 400 21px/1 Arial, sans-serif; cursor: pointer; box-shadow: 0 2px 7px rgba(15,23,42,.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.edit-media-remove:hover,
.edit-media-remove:focus-visible { border-color: rgba(255,255,255,.76); background: rgba(181,71,71,.84); outline: none; box-shadow: 0 0 0 3px rgba(11,111,242,.2), 0 2px 7px rgba(15,23,42,.18); }
.edit-reference-label { margin-top: 17px; }
.edit-reference-label small { color: #7a8aa0; font-size: 12px; font-weight: 400; }
.edit-reference-dropzone { min-height: 96px; padding: 10px 14px; }
.edit-reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.edit-reference-item { min-width: 0; position: relative; overflow: hidden; box-sizing: border-box; border: 1px solid #d8e2ee; border-radius: 8px; background: #fff; }
.edit-reference-item img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; background: #edf3f9; }
.edit-reference-item p { margin: 0; padding: 6px 7px 7px; overflow: hidden; color: #52657f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.edit-reference-item .edit-media-remove { width: 25px !important; min-width: 25px !important; max-width: 25px; height: 25px !important; min-height: 25px !important; max-height: 25px; top: 5px; right: 5px; flex-basis: 25px; font-size: 19px; }
.edit-detail-layout.is-edit-dragging .edit-source-stage,
.edit-detail-layout.is-edit-dragging .edit-reference-dropzone,
.edit-source-stage.dragging,
.edit-reference-dropzone.dragging { border-color: var(--creation-blue); background: #edf5ff; color: var(--creation-blue); box-shadow: 0 0 0 3px rgba(11,111,242,.12); }
.edit-result-stage { min-height: 460px; flex: 1 1 auto; display: grid; place-items: center; border-style: solid; }
.edit-result-stage > [data-edit-result-image] { width: 100%; height: 100%; min-height: 458px; display: block; object-fit: contain; background: #edf3f9; }
.edit-result-stage.is-empty > [data-edit-result-image] { display: none; }
.detail-upload-button { width: 164px; min-height: 37px; margin: 11px auto 0; padding: 0 15px; font-size: 13px; cursor: pointer; }
.detail-upload-button.wide { width: 100%; }
.detail-upload-button svg,
.detail-upload-button img { width: 20px; height: 20px; margin-right: 8px; }
.detail-controls hr { margin: 17px 0; border: 0; border-top: 1px solid #e3e9f1; }
.edit-tool-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.edit-tool-row button { min-height: 35px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #d3ddea; border-radius: 7px; background: #fff; color: var(--creation-blue); font-size: 11px; cursor: pointer; }
.edit-tool-row svg,
.edit-tool-row img { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.title-info { width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 50%; color: #637892; font-size: 10px; }
.title-info img { width: 15px; height: 15px; }
.compare-stage { height: 460px; position: relative; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #d6e0ed; border-radius: 10px; background: #f6f9fd; }
.compare-stage.show-before { grid-template-columns: 1fr 0; }
.compare-half { min-width: 0; position: relative; overflow: hidden; }
.compare-half img { width: 100%; height: 100%; display: block; object-fit: cover; }
.compare-half.before img { object-position: center; }
.compare-half.after img { object-position: center; }
.compare-half span { position: absolute; top: 12px; padding: 4px 9px; border-radius: 5px; background: rgba(81,98,122,.62); color: #fff; font-size: 12px; }
.compare-half.before span { left: 12px; }
.compare-half.after span { right: 12px; background: rgba(51,112,191,.68); }
.compare-handle { position: absolute; left: 50%; top: 50%; width: 45px; height: 45px; transform: translate(-50%,-50%); border: 1px solid #d6e0ed; border-radius: 50%; background: #fff; color: #334967; box-shadow: 0 3px 12px rgba(44,75,117,.14); }
.compare-handle img { width: 28px; height: 28px; margin: auto; }
.detail-rights-note { margin: 20px 0 0; color: #8291a6; font-size: 13px; text-align: center; }

body[data-ui-theme="dark"] .edit-source-stage,
body[data-ui-theme="dark"] .edit-result-stage,
body[data-ui-theme="dark"] .edit-reference-dropzone { border-color: #425169; background: rgba(15,23,42,.46); color: #aebbd0; }
body[data-ui-theme="dark"] .edit-empty-state { color: #9ba9bd; }
body[data-ui-theme="dark"] .edit-empty-state strong { color: #dce7f5; }
body[data-ui-theme="dark"] .edit-empty-state small { color: #93a3b8; }
body[data-ui-theme="dark"] .edit-empty-state > img { filter: brightness(0) saturate(100%) invert(73%) sepia(11%) saturate(569%) hue-rotate(177deg) brightness(94%) contrast(88%); opacity: 1; }
body[data-ui-theme="dark"] .edit-source-stage > [data-source-preview],
body[data-ui-theme="dark"] .edit-result-stage > [data-edit-result-image],
body[data-ui-theme="dark"] .edit-reference-item img { background: #111827; }
body[data-ui-theme="dark"] .edit-reference-item { border-color: #3b4a60; background: #172033; }
body[data-ui-theme="dark"] .edit-reference-item p { color: #d8e4f3; }
body[data-ui-theme="dark"] .edit-detail-layout.is-edit-dragging .edit-source-stage,
body[data-ui-theme="dark"] .edit-detail-layout.is-edit-dragging .edit-reference-dropzone,
body[data-ui-theme="dark"] .edit-source-stage.dragging,
body[data-ui-theme="dark"] .edit-reference-dropzone.dragging { border-color: #60a5fa; background: rgba(30,64,175,.2); color: #9dccff; box-shadow: 0 0 0 3px rgba(96,165,250,.13); }
body[data-ui-theme="dark"] .poster-upload.dragging,
body[data-ui-theme="dark"] .detail-dropzone.dragging { border-color: #60a5fa; background: rgba(30,64,175,.2); color: #9dccff; box-shadow: 0 0 0 4px rgba(96,165,250,.13); }
body[data-ui-theme="dark"] .poster-drop-hint { color: #9dccff; }
body[data-ui-theme="dark"] .poster-upload-item { border-color: #35475f; background: #172437; }
body[data-ui-theme="dark"] .poster-upload-item > img { background: #111827; }
body[data-ui-theme="dark"] .poster-upload-item > p { color: #c3d2e5; }

.detail-check { margin-top: 12px; display: flex; align-items: center; gap: 8px; color: #52657f; font-size: 12px; }
.detail-check input { accent-color: var(--creation-blue); }
.detail-check i { width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #7b8ba0; border-radius: 50%; font-style: normal; font-size: 9px; }

.project-ai-heading,
.project-result-heading { align-items: flex-end; }
.project-ai-kicker { display: block; margin-bottom: 7px; color: var(--creation-blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.project-history-link { min-height: 40px; }
.project-ai-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr); gap: 22px; margin-top: 25px; align-items: start; }
.project-ai-form { padding: 25px; }
.project-ai-section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.project-ai-section-head > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: #eaf3ff; color: var(--creation-blue); font-size: 13px; font-weight: 800; }
.project-ai-section-head h2 { margin: 1px 0 3px; font-size: 17px; }
.project-ai-section-head p { margin: 0; color: #7a8aa0; font-size: 12px; line-height: 1.55; }
.project-ai-divider { height: 1px; margin: 25px 0; background: #e7edf5; }
.project-field-grid { display: grid; gap: 14px; }
.project-field-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-field { min-width: 0; display: grid; gap: 7px; margin-top: 14px; color: #263a56; font-size: 13px; font-weight: 650; }
.project-field > span:first-child b { color: #d04455; }
.project-field > input,
.project-color-field > input[type="text"] { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid #cbd6e5; border-radius: 8px; outline: none; background: #fff; color: #293d59; font: inherit; font-weight: 400; }
.project-field > input:focus,
.project-color-field > input[type="text"]:focus { border-color: var(--creation-blue); box-shadow: 0 0 0 3px #edf5ff; }
.project-field > small { color: #8694a8; font-size: 11px; font-weight: 400; line-height: 1.5; }
.project-field .detail-textarea-wrap textarea { min-height: 132px; }
.project-color-field { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 8px; }
.project-color-field input[type="color"] { width: 45px; min-height: 40px; padding: 3px; border: 1px solid #cbd6e5; border-radius: 8px; background: #fff; cursor: pointer; }
.project-visual-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.project-visual-option { min-width: 0; min-height: 70px; padding: 10px; display: flex; align-items: center; gap: 10px; border: 1px solid #d2dce9; border-radius: 10px; background: #fff; color: #52657f; cursor: pointer; text-align: left; }
.project-visual-option > img { width: 31px; height: 31px; flex: 0 0 31px; object-fit: contain; }
.project-visual-option > span { min-width: 0; display: grid; gap: 3px; }
.project-visual-option strong { font-size: 13px; }
.project-visual-option small { color: #8392a6; font-size: 10px; line-height: 1.35; }
.project-visual-option:hover,
.project-visual-option.active { border-color: var(--creation-blue); color: var(--creation-blue); box-shadow: inset 0 0 0 1px var(--creation-blue); background: #f9fcff; }
.project-assets-dropzone { min-height: 110px; }
.project-assets-dropzone > img { width: 31px; height: 31px; }
.project-rights-note { margin: 10px 0 0; color: #8291a6; font-size: 11px; line-height: 1.55; }
.project-generate-button img { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }
.project-ai-brief-card { position: sticky; top: 22px; padding: 25px; overflow: hidden; background: linear-gradient(155deg, #f8fbff 0%, #fff 54%, #f3f8ff 100%); }
.project-ai-brief-icon { width: 60px; height: 60px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 18px; background: #eaf3ff; }
.project-ai-brief-icon img { width: 42px; height: 42px; object-fit: contain; }
.project-ai-brief-card > h2 { margin-bottom: 7px; font-size: 22px; }
.project-ai-brief-card > p { margin: 0 0 19px; color: #74859d; font-size: 12px; line-height: 1.55; }
.project-live-brief,
.project-result-brief { margin: 0; display: grid; gap: 0; }
.project-live-brief > div,
.project-result-brief > div { padding: 12px 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; border-top: 1px solid #e5edf6; }
.project-live-brief dt,
.project-result-brief dt { color: #8493a7; font-size: 11px; }
.project-live-brief dd,
.project-result-brief dd { min-width: 0; margin: 0; color: #2b405d; font-size: 12px; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; }
.project-live-brief dd:has([data-project-color-swatch]) { display: flex; align-items: center; gap: 7px; }
[data-project-color-swatch] { width: 14px; height: 14px; flex: 0 0 14px; display: inline-block; border: 1px solid rgba(15,23,42,.12); border-radius: 50%; background: #0B63F6; }
.project-ai-process { margin-top: 20px; padding: 15px; border-radius: 11px; background: #eef5ff; color: #61738e; }
.project-ai-process strong { color: #315c92; font-size: 12px; }
.project-ai-process ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 7px; font-size: 11px; line-height: 1.45; }

.project-result-page { margin-top: 24px; }
.project-result-status { min-height: 68px; margin: 0 0 18px; padding: 12px 18px; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid #d9e5f3; border-radius: 13px; background: #f8fbff; }
.project-result-status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--creation-blue); box-shadow: 0 0 0 5px rgba(36,119,238,.11); }
.project-result-status strong { color: #263b59; font-size: 14px; }
.project-result-status .detail-form-status { margin: 3px 0 0; text-align: left; }
.project-result-status > small { color: #8392a7; font-size: 11px; }
.project-result-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr); gap: 22px; align-items: start; }
.project-result-visual-card { padding: 18px; }
.project-result-media { min-height: 520px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #fff 0%, #edf4fc 68%, #e4edf8 100%); }
.project-result-media > img { width: 100%; max-height: 720px; display: block; object-fit: contain; background: #edf3fa; }
.project-result-media > img[hidden] { display: none; }
.project-result-waiting { max-width: 410px; padding: 36px; display: grid; justify-items: center; gap: 13px; color: #708198; text-align: center; }
.project-result-waiting[hidden] { display: none; }
.project-result-waiting strong { color: #2b405e; font-size: 18px; }
.project-result-waiting p { margin: 0; font-size: 12px; line-height: 1.7; }
.project-result-spinner { width: 46px; height: 46px; border: 4px solid #d9e8fb; border-top-color: var(--creation-blue); border-radius: 50%; animation: project-result-spin .85s linear infinite; }
@keyframes project-result-spin { to { transform: rotate(360deg); } }
.project-result-actions { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.project-result-actions[hidden] { display: none; }
.project-result-actions > * { min-width: 0; min-height: 42px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; text-align: center; }
.project-result-actions svg { width: 18px; height: 18px; flex: 0 0 18px; }
.project-result-actions .creation-primary svg { filter: none; }
.project-result-brief-card { position: sticky; top: 22px; padding: 22px; }
.project-result-brief-card h2 { font-size: 21px; }
.project-result-brief > div { grid-template-columns: 82px minmax(0, 1fr); }
.project-result-brief > div.wide { grid-template-columns: 1fr; gap: 6px; }
.project-result-tip { margin-top: 18px; padding: 14px; border-radius: 10px; background: #fff8e7; color: #7a6431; }
.project-result-tip strong { font-size: 12px; }
.project-result-tip p { margin: 5px 0 0; font-size: 11px; line-height: 1.6; }

body[data-ui-theme="dark"] .project-ai-section-head > span { background: rgba(37,99,235,.18); }
body[data-ui-theme="dark"] .project-field > input,
body[data-ui-theme="dark"] .project-color-field > input[type="text"],
body[data-ui-theme="dark"] .project-color-field input[type="color"],
body[data-ui-theme="dark"] .project-visual-option { border-color: #34465e; background: #172437; color: #dbe8f8; }
body[data-ui-theme="dark"] .project-ai-divider,
body[data-ui-theme="dark"] .project-live-brief > div,
body[data-ui-theme="dark"] .project-result-brief > div { background: transparent; border-color: #293a50; }
body[data-ui-theme="dark"] .project-ai-brief-card { background: linear-gradient(155deg, #111d2d, #152238); }
body[data-ui-theme="dark"] .project-ai-process { background: rgba(30,64,175,.17); color: #b8c6d9; }
body[data-ui-theme="dark"] .project-live-brief dd,
body[data-ui-theme="dark"] .project-result-brief dd,
body[data-ui-theme="dark"] .project-result-status strong { color: #e3edf9; }
body[data-ui-theme="dark"] .project-result-status { border-color: #2a3c53; background: #111d2d; }
body[data-ui-theme="dark"] .project-result-media { background: radial-gradient(circle at 50% 40%, #1a2940 0%, #101b2b 72%); }
body[data-ui-theme="dark"] .project-result-waiting strong { color: #dce8f7; }
body[data-ui-theme="dark"] .project-result-tip { background: rgba(146,104,22,.18); color: #e2c980; }

.poster-size-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.poster-option { min-height: 62px; padding: 7px 8px; display: flex; align-items: center; gap: 8px; border: 1px solid #d1dbe8; border-radius: 8px; background: #fff; color: #52657f; cursor: pointer; text-align: left; }
.poster-option svg,
.poster-option img { width: 28px; height: 28px; flex: 0 0 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.poster-option span { min-width: 0; display: grid; gap: 2px; }
.poster-option strong { font-size: 11px; white-space: nowrap; }
.poster-option small { color: #8695a9; font-size: 9px; }
.poster-option:hover, .poster-option.active { border-color: var(--creation-blue); color: var(--creation-blue); box-shadow: inset 0 0 0 1px var(--creation-blue); }

/* English labels need more horizontal room than the corresponding Chinese
 * controls. Stack icon and copy so narrower desktop panes never clip text. */
html[lang^="en"] #creation-app[data-creation-page="image"] .settings-panel .setting-option[data-setting="style"] {
    min-width: 0;
    min-height: 68px;
    padding: 6px 4px;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}
html[lang^="en"] #creation-app[data-creation-page="image"] .settings-panel .setting-option[data-setting="style"]::before {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
}
html[lang^="en"] .poster-option {
    min-width: 0;
    min-height: 80px;
    padding: 7px 4px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    text-align: center;
}
html[lang^="en"] .poster-option img,
html[lang^="en"] .poster-option svg {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
}
html[lang^="en"] .poster-option span { justify-items: center; }
html[lang^="en"] .poster-option strong {
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}
html[lang^="en"] .poster-option small { white-space: nowrap; }
.poster-style-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.poster-style { min-height: 76px; padding: 7px 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #d4deea; border-radius: 8px; background: #fff; color: #60728c; font-size: 10px; cursor: pointer; }
.poster-style svg,
.poster-style img { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.poster-style:hover, .poster-style.active { border-color: var(--creation-blue); color: var(--creation-blue); box-shadow: inset 0 0 0 1px var(--creation-blue); }
.poster-preview-card { align-items: stretch; }
.poster-preview { width: min(384px, 82%); margin: 0 auto; position: relative; overflow: hidden; border-radius: 7px; box-shadow: 0 8px 22px rgba(54,87,130,.11); }
.poster-preview.is-empty { aspect-ratio: 3 / 4; display: grid; place-items: center; border: 1px dashed #cbd7e6; background: #f6f9fd; box-shadow: none; }
.poster-preview > img[data-generated-image] { width: 100%; display: block; }
body[data-ui-theme="dark"] #creation-app[data-creation-page="poster"] .poster-preview.is-empty { border-color: var(--fuuvo-dark-line-strong) !important; background: var(--fuuvo-dark-surface-soft) !important; }

.is-generating [data-demo-preview]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.6) 45%, transparent 70%);
    animation: creation-demo-shimmer .9s linear infinite;
}
@keyframes creation-demo-shimmer { from { transform: translateX(-80%); } to { transform: translateX(80%); } }

/* Keep the edit-result loading cue visible without washing a broad stripe
 * across the preview, especially on the dark surface. */
#creation-app[data-creation-page="edit-image"].is-generating [data-demo-preview]::after {
    top: -8%;
    right: auto;
    bottom: -8%;
    left: -12%;
    width: clamp(32px, 6%, 56px);
    background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.04) 28%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.04) 72%, transparent 100%);
    filter: blur(1px);
    opacity: .72;
    pointer-events: none;
    transform: skewX(-10deg);
    animation: creation-edit-result-shimmer 1.45s ease-in-out infinite;
    will-change: left;
}
body[data-ui-theme="dark"] #creation-app[data-creation-page="edit-image"].is-generating [data-demo-preview]::after {
    background: linear-gradient(105deg, transparent 0%, rgba(216,230,247,.025) 28%, rgba(216,230,247,.11) 50%, rgba(216,230,247,.025) 72%, transparent 100%);
    opacity: .62;
}
@keyframes creation-edit-result-shimmer {
    from { left: -12%; }
    to { left: 106%; }
}

.creation-version-history[hidden] { display: none !important; }
.creation-version-history {
    margin: 26px 0 0;
    padding: 24px 0 2px;
    border-top: 1px solid #dce5f0;
}
.creation-version-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.creation-version-header h2 {
    margin: 0;
    color: #20344f;
    font-size: 20px;
    line-height: 1.3;
}
.creation-version-header p {
    max-width: 720px;
    margin: 6px 0 0;
    color: #718198;
    font-size: 13px;
    line-height: 1.6;
}
.creation-version-compare-button {
    flex: 0 0 auto;
    min-width: 132px;
}
.creation-version-compare-button:disabled { opacity: .48; cursor: not-allowed; }
.creation-version-status {
    margin: 16px 0 0;
    padding: 13px 15px;
    border: 1px dashed #c8d5e5;
    border-radius: 8px;
    background: #f7faff;
    color: #718198;
    font-size: 13px;
}
.creation-version-list {
    margin-top: 17px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}
.creation-version-item {
    min-width: 0;
    padding: 10px;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(34, 63, 102, .05);
}
.creation-version-item.is-current { border-color: #4f91e8; box-shadow: inset 0 0 0 1px #4f91e8; }
.creation-version-item.is-compare-selected { background: #f4f8ff; }
.creation-version-thumb {
    width: 108px;
    height: 108px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #edf3fa;
    cursor: pointer;
}
.creation-version-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.creation-version-body { min-width: 0; display: flex; flex-direction: column; }
.creation-version-title-row {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.creation-version-title-row strong {
    min-width: 0;
    overflow: hidden;
    color: #243754;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.creation-version-title-row span {
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e7f1ff;
    color: #276dbd;
    font-size: 11px;
}
.creation-version-body > p {
    min-height: 36px;
    margin: 7px 0 2px;
    display: -webkit-box;
    overflow: hidden;
    color: #66778f;
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.creation-version-body > small { color: #91a0b3; font-size: 11px; }
.creation-version-actions {
    margin-top: auto;
    padding-top: 8px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}
.creation-version-action {
    min-width: 0;
    min-height: 28px;
    padding: 0 5px;
    border: 1px solid #ccd8e7;
    border-radius: 6px;
    background: #fff;
    color: #516782;
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
}
.creation-version-action:hover { border-color: #5594e5; color: #246bbd; }
.creation-version-action.is-primary { border-color: #347dd2; background: #347dd2; color: #fff; }
.creation-version-compare-dialog {
    width: min(1040px, calc(100vw - 36px));
    max-height: calc(100vh - 40px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #243754;
    box-shadow: 0 24px 70px rgba(13, 31, 56, .28);
}
.creation-version-compare-dialog::backdrop { background: rgba(12, 25, 43, .62); }
.creation-version-compare-dialog.is-fallback-open {
    position: fixed;
    z-index: 2000;
    inset: 20px auto auto 50%;
    transform: translateX(-50%);
}
.creation-version-compare-shell { min-width: 0; }
.creation-version-compare-shell > header {
    min-height: 54px;
    padding: 0 17px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dce5f0;
}
.creation-version-compare-shell h3 { margin: 0; font-size: 17px; }
.creation-version-dialog-close {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5f7188;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.creation-version-dialog-close:hover { background: #eef3f9; color: #243754; }
.creation-version-compare-grid {
    max-height: calc(100vh - 96px);
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: auto;
}
.creation-version-compare-grid figure {
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f8fc;
}
.creation-version-compare-grid figure > img {
    width: 100%;
    min-height: 280px;
    max-height: calc(100vh - 210px);
    display: block;
    object-fit: contain;
    background: #edf2f8;
}
.creation-version-compare-grid figcaption { padding: 11px 13px 13px; display: grid; gap: 4px; }
.creation-version-compare-grid figcaption strong { color: #243754; font-size: 14px; }
.creation-version-compare-grid figcaption span { color: #718198; font-size: 12px; line-height: 1.5; }
body[data-ui-theme="dark"] .creation-version-history { border-color: var(--fuuvo-dark-line-strong) !important; }
body[data-ui-theme="dark"] .creation-version-header h2,
body[data-ui-theme="dark"] .creation-version-title-row strong { color: var(--fuuvo-dark-text) !important; }
body[data-ui-theme="dark"] .creation-version-header p,
body[data-ui-theme="dark"] .creation-version-body > p,
body[data-ui-theme="dark"] .creation-version-body > small { color: var(--fuuvo-dark-muted) !important; }
body[data-ui-theme="dark"] .creation-version-status,
body[data-ui-theme="dark"] .creation-version-item,
body[data-ui-theme="dark"] .creation-version-action,
body[data-ui-theme="dark"] .creation-version-compare-dialog,
body[data-ui-theme="dark"] .creation-version-compare-grid figure {
    border-color: var(--fuuvo-dark-line-strong) !important;
    background: var(--fuuvo-dark-surface) !important;
    color: var(--fuuvo-dark-text) !important;
}
body[data-ui-theme="dark"] .creation-version-item.is-compare-selected { background: var(--fuuvo-dark-surface-soft) !important; }
body[data-ui-theme="dark"] .creation-version-thumb,
body[data-ui-theme="dark"] .creation-version-compare-grid figure > img { background: #172131 !important; }
body[data-ui-theme="dark"] .creation-version-compare-shell > header { border-color: var(--fuuvo-dark-line-strong) !important; }
body[data-ui-theme="dark"] .creation-version-compare-shell h3,
body[data-ui-theme="dark"] .creation-version-compare-grid figcaption strong { color: var(--fuuvo-dark-text) !important; }
body[data-ui-theme="dark"] .creation-version-compare-grid figcaption span { color: var(--fuuvo-dark-muted) !important; }
body[data-ui-theme="dark"] .creation-version-dialog-close { color: var(--fuuvo-dark-muted) !important; }
body[data-ui-theme="dark"] .creation-version-dialog-close:hover { background: var(--fuuvo-dark-surface-soft) !important; }
@media (prefers-reduced-motion: reduce) {
    #creation-app[data-creation-page="edit-image"].is-generating [data-demo-preview]::after {
        left: 48%;
        opacity: .28;
        animation: none;
    }
}

@media (max-width: 1120px) {
    .creation-detail-layout { grid-template-columns: 360px minmax(0,1fr); }
    .creation-category-tabs a { min-width: 0; flex: 1; padding: 0 12px; }
    .poster-style-grid { grid-template-columns: repeat(3, 1fr); }
    .project-ai-layout,
    .project-result-layout { grid-template-columns: minmax(0, 1.35fr) minmax(275px, .65fr); }
    .project-result-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .creation-category-tabs { align-items: stretch; overflow-x: auto; }
    .creation-category-tabs a { min-width: 190px; flex: 0 0 auto; }
    .creation-detail-layout { grid-template-columns: 1fr; }
    .edit-result-stage { min-height: 380px; }
    .edit-result-stage > [data-edit-result-image] { min-height: 378px; }
    .compare-stage { height: 380px; }
    .project-ai-layout,
    .project-result-layout { grid-template-columns: 1fr; }
    .project-ai-brief-card,
    .project-result-brief-card { position: static; }
    .video-detail-layout .video-desktop-option-grid { display: none; }
    .video-detail-layout .video-mobile-select { display: block; }
}
@media (max-width: 560px) {
    .detail-heading h1 { font-size: 29px; }
    .creation-detail-card { padding: 15px; }
    .video-edit-context { align-items: flex-start; }
    .video-edit-context button { padding-top: 1px; }
    .animate-motion-options { grid-template-columns: 1fr; }
    .animate-motion-option { min-height: 62px; }
    .animate-generation-actions { grid-template-columns: 1fr; }
    .animate-preview.is-generation-pending .animate-preview-empty { padding: 18px; }
    .animate-generation-progress { width: min(260px, 100%); }
    .edit-source-stage,
    .edit-source-stage > [data-source-preview] { min-height: 176px; height: 176px; }
    .edit-reference-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .edit-result-stage { min-height: 300px; }
    .edit-result-stage > [data-edit-result-image] { min-height: 298px; }
    .detail-option-grid.cols-3, .poster-size-grid { grid-template-columns: 1fr; }
    .edit-tool-row { grid-template-columns: 1fr; }
    .poster-style-grid { grid-template-columns: repeat(2, 1fr); }
    .poster-material-list { grid-template-columns: 1fr; }
    .compare-stage { height: 290px; }
    .detail-result-actions { grid-template-columns: 1fr; }
    .project-ai-heading,
    .project-result-heading { align-items: flex-start; }
    .project-ai-heading .creation-outline,
    .project-result-heading .creation-outline { width: 100%; }
    .project-ai-form { padding: 15px; }
    .project-field-grid.cols-2,
    .project-visual-type-grid { grid-template-columns: 1fr; }
    .project-visual-option { min-height: 64px; }
    .project-result-status { grid-template-columns: 12px minmax(0, 1fr); }
    .project-result-status > small { grid-column: 2; }
    .project-result-media { min-height: 360px; }
    .project-result-actions { grid-template-columns: 1fr; }
    .creation-version-header { display: grid; grid-template-columns: minmax(0, 1fr); }
    .creation-version-compare-button { width: 100%; }
    .creation-version-list { grid-template-columns: 1fr; }
    .creation-version-item { grid-template-columns: 88px minmax(0, 1fr); padding: 8px; gap: 9px; }
    .creation-version-thumb { width: 88px; height: 88px; }
    .creation-version-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .creation-version-compare-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
    .creation-version-compare-grid { grid-template-columns: 1fr; max-height: calc(100vh - 76px); padding: 10px; }
    .creation-version-compare-grid figure > img { min-height: 220px; max-height: 50vh; }
}

@media (prefers-reduced-motion: reduce) {
    .detail-submit-spinner,
    .animate-preview-empty.is-generating > .animate-preview-state-icon::after { animation-duration: 1.5s; }
    .animate-generation-progress > i > b { width: 68%; animation: none; transform: translateX(24%); }
}
