.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;
}
.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.has-file { border-style: solid; border-color: #72b395; color: #237a54; background: #f7fffb; }
.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); }
.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; }
.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 { aspect-ratio: 1.31 / 1; max-height: 510px; }
.video-preview-player { cursor: pointer; background: #dfe8f3; }
.animate-preview { aspect-ratio: 1.48 / 1; }
.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 img { height: 216px; }
.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; }

.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; overflow: hidden; border-radius: 7px; box-shadow: 0 8px 22px rgba(54,87,130,.11); }
.poster-preview img { width: 100%; display: block; }

.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%); } }

@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; }
    .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; }
    .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); }
    .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; }
}
