    .creative-page-shell,
    .creative-page-shell * {
        -webkit-user-select: none;
        user-select: none;
    }

    .creative-page-shell input,
    .creative-page-shell textarea,
    .creative-page-shell [contenteditable="true"] {
        -webkit-user-select: text;
        user-select: text;
    }

    .creative-studio-container {
        max-width: 1600px;
        min-height: calc(100vh - 96px);
        margin: 24px auto 24px 280px; /* V05-31-V2: 左侧留出 280px 给固定侧边栏 */
        padding: 0 24px;
        display: flex;
        align-items: stretch;
    }

    /* V05-31-V2: 智能创编顶部进度条区域 - 避免与侧边栏叠压 */
    .creative-progress-header {
        position: relative;
        z-index: 10;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .page-header {
        background: white;
        padding: 24px;
        border-radius: 8px;
        margin-bottom: 24px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .page-header h1 {
        font-size: 24px;
        font-weight: 600;
        color: #262626;
        margin-bottom: 8px;
    }

    .page-header p {
        color: #8c8c8c;
        font-size: 14px;
    }

    .main-layout {
        display: flex;
        gap: 24px;
        align-items: flex-start;
    }

    .left-panel {
        flex: 2;
    }

    .right-panel {
        flex: 1;
        min-width: 400px;
    }

    @media (max-width: 1400px) {
        .main-layout {
            flex-direction: column;
        }
        .right-panel {
            min-width: auto;
            width: 100%;
        }
    }

    .panel {
        background: white;
        border-radius: 8px;
        padding: 24px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        min-height: 600px;
    }

    .panel-title {
        font-size: 18px;
        font-weight: 600;
        color: #262626;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid #f0f0f0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .panel-title-text {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex: 1;
    }
    
    .panel-title-subtitle {
        font-size: 12px;
        font-weight: 400;
        color: #8c8c8c;
        margin-top: 2px;
    }
    
    /* 区域引导说明 */
    .area-guide {
        font-size: 13px;
        color: #8c8c8c;
        line-height: 1.6;
        font-weight: 400;
        margin-left: 8px;
    }

    .panel-title-icon {
        font-size: 20px;
    }

    /* 剧本编辑器模块 */
    .module-section {
        margin-bottom: 32px;
    }
    
    .script-editor-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .script-editor-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .btn-import-doc {
        padding: 6px 12px;
        background: rgba(113, 62, 255, 0.05);
        color: #6a39f3;
        border: 1px solid rgba(113, 62, 255, 0.12);
        border-radius: 999px;
        cursor: pointer;
        font-size: 12px;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .btn-import-doc:hover {
        background: rgba(113, 62, 255, 0.09);
        border-color: rgba(113, 62, 255, 0.18);
    }
    
    .script-editor-textarea {
        width: 100%;
        min-height: 180px;
        padding: 12px 14px;
        border: 1px solid #d9d9d9;
        border-radius: 14px;
        font-size: 13px;
        line-height: 1.6;
        font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
        resize: vertical;
        transition: border-color 0.3s;
        box-sizing: border-box;
    }

    .script-editor-textarea::placeholder,
    .project-name-input::placeholder,
    .intent-editor::placeholder,
    .season-plan-textarea::placeholder,
    .creative-chat-input::placeholder {
        color: rgba(34, 34, 34, 0.36);
        transition: opacity 0.18s ease, color 0.18s ease;
    }

    .script-editor-textarea:focus::placeholder,
    .project-name-input:focus::placeholder,
    .intent-editor:focus::placeholder,
    .season-plan-textarea:focus::placeholder,
    .creative-chat-input:focus::placeholder {
        opacity: 0;
    }
    
    .script-editor-textarea:focus {
        outline: none;
        border-color: #713eff;
        box-shadow: 0 0 0 2px rgba(113, 62, 255, 0.1);
    }
    
    /* 项目名称输入框样式 */
    .project-name-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .project-name-input {
        width: 100%;
        padding: 14px 18px;
        border: 1px solid #d9d9d9;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
        transition: border-color 0.3s;
        box-sizing: border-box;
        min-height: 48px;
    }
    
    .project-name-input:focus {
        outline: none;
        border-color: #713eff;
        box-shadow: 0 0 0 2px rgba(113, 62, 255, 0.1);
    }
    
    .script-editor-footer {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: #8c8c8c;
    }
    
    .word-count {
        font-weight: 500;
    }

    .module-title {
        font-size: 16px;
        font-weight: 500;
        color: #595959;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .module-icon {
        font-size: 18px;
    }

    .upload-zone {
        border: 2px dashed #d9d9d9;
        border-radius: 8px;
        padding: 32px;
        text-align: center;
        transition: all 0.3s;
        cursor: pointer;
        background: #fafafa;
    }

    .upload-zone:hover {
        border-color: #713eff;
        background: #f5f0ff;
    }

    .upload-zone.dragover {
        border-color: #713eff;
        background: #f5f0ff;
    }

    .upload-icon {
        font-size: 48px;
        color: #8c8c8c;
        margin-bottom: 12px;
    }

    .upload-text {
        color: #8c8c8c;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .upload-hint {
        color: #bfbfbf;
        font-size: 12px;
    }

    .file-input {
        display: none;
    }

    .file-display {
        margin-top: 16px;
        padding: 12px;
        background: #fafafa;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .file-info {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .file-icon {
        font-size: 24px;
        color: #713eff;
    }

    .file-details {
        flex: 1;
    }

    .file-name {
        font-size: 14px;
        color: #262626;
        margin-bottom: 4px;
    }

    .file-size {
        font-size: 12px;
        color: #8c8c8c;
    }

    .btn {
        padding: 6px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s;
    }

    .btn-danger {
        background: #ff4d4f;
        color: white;
    }

    .btn-danger:hover {
        background: #ff7875;
    }

    /* 视觉定调模块 */
    .reference-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-top: 16px;
        align-items: start; /* 确保所有项目从顶部对齐 */
    }
    
    .reference-grid > * {
        min-width: 0; /* 防止grid项溢出 */
    }
    
    @media (max-width: 1200px) {
        .reference-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    @media (max-width: 800px) {
        .reference-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .image-item {
        position: relative;
        border-radius: 6px;
        overflow: hidden;
        border: 2px solid #e8e8e8;
        transition: all 0.3s;
        background: white;
        display: flex;
        flex-direction: column;
        min-height: 0; /* 防止flex子项溢出 */
    }

    .image-item:hover {
        border-color: #713eff;
        box-shadow: 0 2px 8px rgba(113, 62, 255, 0.2);
    }

    .image-preview {
        position: relative;
        aspect-ratio: 1;
        overflow: hidden;
        flex-shrink: 0; /* 防止预览区域被压缩 */
        width: 100%;
    }

    .image-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block; /* 防止图片底部空白 */
    }

    .image-remove {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 24px;
        height: 24px;
        background: rgba(255, 77, 79, 0.9);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 10;
    }

    .image-item:hover .image-remove {
        opacity: 1;
    }

    .image-label {
        padding: 12px;
        background: #fafafa;
        border-top: 1px solid #e8e8e8;
        flex-shrink: 0; /* 防止标签区域被压缩 */
        min-height: 0; /* 允许内容收缩但不被隐藏 */
    }

    .image-label-input {
        width: 100%;
        min-height: 60px;
        padding: 10px 12px;
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        font-size: 13px;
        line-height: 1.5;
        transition: all 0.3s;
        background: white;
        resize: vertical;
        font-family: inherit;
        box-sizing: border-box;
    }

    .image-label-input:focus {
        outline: none;
        border-color: #713eff;
        box-shadow: 0 0 0 2px rgba(113, 62, 255, 0.1);
    }

    .image-label-input::placeholder {
        color: #bfbfbf;
    }

    .add-image-btn {
        aspect-ratio: 1;
        border: 2px dashed #d9d9d9;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s;
        background: #fafafa;
    }

    .add-image-btn:hover {
        border-color: #713eff;
        background: #f5f0ff;
    }

    /* 集群选择器样式 */
    .cluster-selector-container {
        padding: 12px 0;
    }

    .cluster-selector {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        font-size: 14px;
        background: white;
        cursor: pointer;
        transition: all 0.3s;
    }

    .cluster-selector:focus {
        outline: none;
        border-color: #713eff;
        box-shadow: 0 0 0 2px rgba(113, 62, 255, 0.1);
    }

    .cluster-selector:hover {
        border-color: #713eff;
    }

    .cluster-selector option {
        padding: 8px;
    }

    .cluster-selector optgroup {
        font-weight: 600;
        color: #333;
    }

    .add-image-icon {
        font-size: 32px;
        color: #8c8c8c;
        margin-bottom: 8px;
    }

    .add-image-text {
        font-size: 12px;
        color: #8c8c8c;
    }

    /* 操作区 */
    .action-section {
        margin-top: 32px;
        padding-top: 24px;
        border-top: 2px solid #f0f0f0;
        display: flex;
        gap: 16px;
        align-items: center;
    }

    .btn-primary {
        flex: 2;
        padding: 14px 24px;
        background: #713eff;
        color: white;
        font-size: 15px;
        font-weight: 600;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
    }

    .btn-primary:hover {
        background: #5a2fd9;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(113, 62, 255, 0.3);
    }

    .btn-primary:disabled {
        background: #d9d9d9;
        cursor: not-allowed;
        transform: none;
    }

    .btn-secondary {
        flex: 1;
        padding: 12px 20px;
        background: #f0f0f0;
        color: #595959;
        font-size: 14px;
        font-weight: 500;
        border: 1px solid #d9d9d9;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
    }

    .btn-secondary:hover {
        background: #e8e8e8;
        border-color: #bfbfbf;
    }

    /* 历史任务样式 */
    .history-section {
        margin-top: 32px;
        padding-top: 32px;
        border-top: 1px solid #e8e8e8;
    }
    
    .history-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: 400px;
        overflow-y: auto;
        margin-top: 16px;
    }
    
    .history-item {
        background: white;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        padding: 16px;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .history-item:hover {
        border-color: #713eff;
        box-shadow: 0 2px 8px rgba(113, 62, 255, 0.1);
    }
    
    .history-item-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 8px;
    }
    
    .history-project-name {
        font-size: 15px;
        font-weight: 600;
        color: #333;
        flex: 1;
    }
    
    .history-task-id {
        font-size: 11px;
        color: #999;
        font-family: monospace;
    }
    
    .history-meta {
        font-size: 12px;
        color: #666;
        margin-top: 8px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .history-meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .history-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
    }
    
    .btn-history-action {
        flex: 1;
        padding: 6px 12px;
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        background: white;
        color: #333;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .btn-history-action:hover {
        border-color: #713eff;
        color: #713eff;
    }
    
    .btn-history-action.primary {
        background: #713eff;
        color: white;
        border-color: #713eff;
    }
    
    .btn-history-action.primary:hover {
        background: #5a2fd9;
    }
    
    /* 预设库 */
    .preset-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .btn-upload-preset {
        padding: 8px 16px;
        background: #713eff;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s;
    }

    .btn-upload-preset:hover {
        background: #5a2fd9;
    }

    .preset-list {
        max-height: calc(100vh - 400px);
        overflow-y: auto;
    }

    .preset-item {
        padding: 16px;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        margin-bottom: 12px;
        transition: all 0.3s;
    }

    .preset-item:hover {
        border-color: #713eff;
        box-shadow: 0 2px 8px rgba(113, 62, 255, 0.1);
    }

    .preset-header-info {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .preset-name {
        font-size: 16px;
        font-weight: 500;
        color: #262626;
        margin-bottom: 4px;
    }

    .preset-time {
        font-size: 12px;
        color: #8c8c8c;
    }

    .preset-actions {
        display: flex;
        gap: 8px;
    }

    .btn-sm {
        padding: 4px 12px;
        font-size: 12px;
    }

    .btn-load {
        background: #1890ff;
        color: white;
    }

    .btn-load:hover {
        background: #40a9ff;
    }

    .empty-state {
        text-align: center;
        padding: 48px 24px;
        color: #8c8c8c;
    }

    .empty-icon {
        font-size: 64px;
        margin-bottom: 16px;
        opacity: 0.3;
    }

    .empty-text {
        font-size: 14px;
    }

    /* 模态框 */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 2000;
    }

    .modal-overlay.active {
        display: flex;
    }

    .modal-content {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2001;
        background: white;
        border-radius: 8px;
        padding: 24px;
        max-width: 500px;
        width: 90%;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid #f0f0f0;
    }

    .modal-title {
        font-size: 18px;
        font-weight: 600;
        color: #262626;
    }

    .modal-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #8c8c8c;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-close:hover {
        color: #262626;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #595959;
        margin-bottom: 8px;
    }

    .form-input {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #d9d9d9;
        border-radius: 6px;
        font-size: 14px;
        transition: all 0.3s;
    }

    .form-input:focus {
        outline: none;
        border-color: #713eff;
        box-shadow: 0 0 0 2px rgba(113, 62, 255, 0.1);
    }

    .modal-actions {
        display: flex;
        gap: 12px;
        justify-content: flex-end;
        margin-top: 24px;
    }

    .btn-cancel {
        padding: 8px 16px;
        background: #f0f0f0;
        color: #595959;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
    }

    .btn-cancel:hover {
        background: #e0e0e0;
    }

    .btn-confirm {
        padding: 8px 16px;
        background: #713eff;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
    }

    .btn-confirm:hover {
        background: #5a2fd9;
    }
    
    /* 草稿保存状态提示 */
    .draft-status {
        position: fixed;
        bottom: 24px;
        right: 24px;
        background: rgba(113, 62, 255, 0.95);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        display: none;
        align-items: center;
        gap: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        animation: draftStatusFadeIn 0.3s ease-out;
    }
    
    .draft-status.show {
        display: flex;
    }
    
    .draft-status.saving {
        background: rgba(250, 173, 20, 0.95);
    }
    
    .draft-status.error {
        background: rgba(255, 77, 79, 0.95);
    }
    
    @keyframes draftStatusFadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .draft-status-icon {
        font-size: 14px;
    }
    
    /* 手动保存草稿按钮 */
    .btn-save-draft {
        flex: 1;
        padding: 12px 20px;
        background: #fafafa;
        color: #595959;
        border: 1px solid #d9d9d9;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
    }
    
    .btn-save-draft:hover {
        background: #f0f0f0;
        border-color: #bfbfbf;
    }
    
    /* 消息提示模态框 */
    .message-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 10000;
    }
    
    .message-modal-overlay.active {
        display: flex;
    }
    
    .message-modal-content {
        background: white;
        border-radius: 8px;
        padding: 24px;
        min-width: 400px;
        max-width: 600px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        animation: messageModalSlideIn 0.3s ease-out;
    }
    
    @keyframes messageModalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    .message-modal-title {
        font-size: 18px;
        font-weight: 600;
        color: #262626;
        margin-bottom: 16px;
    }
    
    .message-modal-body {
        font-size: 14px;
        color: #595959;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    
    .message-modal-actions {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
    }
    
    .message-modal-btn {
        padding: 8px 24px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s;
    }
    
    .message-modal-btn-primary {
        background: #713eff;
        color: white;
    }
    
    .message-modal-btn-primary:hover {
        background: #5a2fd9;
    }
    
    /* 确认对话框样式 */
    .confirm-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 10001;
    }
    
    .confirm-modal-overlay.active {
        display: flex;
    }
    
    .confirm-modal-content {
        background: white;
        border-radius: 8px;
        padding: 24px;
        min-width: 400px;
        max-width: 500px;
        width: 90%;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        animation: messageModalSlideIn 0.3s ease-out;
    }
    
    .confirm-modal-title {
        font-size: 18px;
        font-weight: 600;
        color: #262626;
        margin-bottom: 16px;
    }
    
    .confirm-modal-body {
        font-size: 14px;
        color: #595959;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    
    .confirm-modal-actions {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
    }
    
    .confirm-modal-btn {
        padding: 8px 24px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s;
    }
    
    .confirm-modal-btn-cancel {
        background: #f0f0f0;
        color: #595959;
    }
    
    .confirm-modal-btn-cancel:hover {
        background: #e0e0e0;
    }
    
    .confirm-modal-btn-confirm {
        background: #713eff;
        color: white;
    }
    
    .confirm-modal-btn-confirm:hover {
        background: #5a2fd9;
    }
    .process-flow-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        margin-bottom: 20px;
        padding: 14px 20px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(113, 62, 255, 0.12);
        box-shadow: 0 10px 30px rgba(113, 62, 255, 0.08);
    }

    .process-step {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 600;
        color: #888;
    }

    .process-step.active {
        color: #713eff;
    }

    .process-arrow {
        color: #bbb;
        font-size: 14px;
    }

    .chat-intro-panel {
        margin-bottom: 22px;
        padding: 28px 32px;
        border-radius: 28px;
        background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,245,255,0.96) 100%);
        border: 1px solid rgba(113, 62, 255, 0.12);
        box-shadow: 0 18px 50px rgba(113, 62, 255, 0.10);
        text-align: center;
    }

    .chat-intro-title {
        font-size: 34px;
        font-weight: 700;
        color: #141414;
        margin-bottom: 10px;
    }

    .chat-intro-subtitle {
        font-size: 15px;
        color: #666;
        margin-bottom: 22px;
    }

    .task-mode-switch {
        display: inline-flex;
        gap: 8px;
        padding: 6px;
        border-radius: 999px;
        background: rgba(113, 62, 255, 0.08);
        margin-bottom: 22px;
    }

    .task-mode-btn {
        border: none;
        background: transparent;
        color: #555;
        border-radius: 999px;
        padding: 10px 18px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .task-mode-btn.active {
        background: #713eff;
        color: #fff;
        box-shadow: 0 8px 18px rgba(113, 62, 255, 0.28);
    }

    .quick-scene-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
        margin-top: 8px;
    }

    .quick-scene-chip {
        border: none;
        text-align: left;
        background: #f7f7fb;
        border-radius: 16px;
        padding: 14px 16px;
        color: #303030;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .quick-scene-chip:hover {
        background: #ede7ff;
        transform: translateY(-1px);
    }

    .intent-editor {
        width: 100%;
        min-height: 140px;
        border-radius: 18px;
        border: 1px solid #e5dcff;
        padding: 16px 18px;
        resize: vertical;
        font-size: 15px;
        line-height: 1.7;
        background: #fff;
        color: #222;
        box-sizing: border-box;
    }

    .intent-editor:focus {
        outline: none;
        border-color: #713eff;
        box-shadow: 0 0 0 4px rgba(113, 62, 255, 0.08);
    }

    .intent-hints {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 12px;
    }

    .intent-hint-chip {
        border: 1px solid #e9e1ff;
        background: #fff;
        border-radius: 999px;
        padding: 8px 12px;
        font-size: 13px;
        color: #555;
        cursor: pointer;
    }

    .season-planner {
        display: none;
        margin-top: 16px;
    }

    .season-planner.active {
        display: block;
    }

    .season-plan-textarea {
        width: 100%;
        min-height: 120px;
        border-radius: 16px;
        border: 1px dashed #d9ccff;
        padding: 14px 16px;
        resize: vertical;
        background: #fcfbff;
        box-sizing: border-box;
    }

    .summary-card {
        background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
        border: 1px solid rgba(113, 62, 255, 0.12);
        border-radius: 20px;
        padding: 18px 18px 16px;
        margin-bottom: 20px;
    }

    .summary-title {
        font-size: 16px;
        font-weight: 700;
        color: #1f1f1f;
        margin-bottom: 12px;
    }

    .summary-list {
        display: grid;
        gap: 10px;
    }

    .summary-item {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        font-size: 13px;
        color: #555;
    }

    .summary-item strong {
        color: #1f1f1f;
        font-weight: 600;
    }

    .creative-chat-layout {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        align-items: stretch;
    }

    .creative-chat-panel {
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        min-height: calc(100vh - 132px);
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .creative-chat-panel.is-empty-state {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .creative-chat-empty {
        padding: 0 28px 12px;
    }

    .creative-chat-panel.is-empty-state .creative-chat-empty {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
        min-height: 0;
        padding: 0;
    }

    .creative-chat-empty-card {
        background: rgba(255,255,255,0.72);
        border: 1px solid rgba(113, 62, 255, 0.08);
        border-radius: 22px;
        padding: 20px;
    }

    .creative-chat-panel.is-empty-state .creative-chat-empty-card {
        width: min(700px, 100%);
        margin: 0 auto;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        text-align: center;
    }

    .creative-chat-empty-title {
        font-size: 16px;
        font-weight: 600;
        color: #1f1f1f;
        margin-bottom: 10px;
    }

    .creative-chat-empty-desc {
        font-size: 13px;
        line-height: 1.7;
        color: #666;
        margin-bottom: 26px;
    }

    .creative-entry-followup {
        display: none;
        width: min(560px, 100%);
        margin: 18px auto 0;
        padding: 14px 16px;
        border: 1px solid rgba(113, 62, 255, 0.08);
        border-radius: 20px;
        background: rgba(255,255,255,0.62);
        text-align: left;
    }

    .creative-entry-followup.active {
        display: block;
    }

    .creative-entry-followup-title {
        font-size: 13px;
        font-weight: 600;
        color: #282828;
        margin-bottom: 4px;
    }

    .creative-entry-followup-desc {
        font-size: 12px;
        line-height: 1.6;
        color: #7a7a7a;
        margin-bottom: 12px;
    }

    .creative-entry-followup-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .creative-entry-followup-btn {
        min-height: 34px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid rgba(113, 62, 255, 0.12);
        background: rgba(113, 62, 255, 0.06);
        color: #5c36d3;
        font-size: 12px;
        font-weight: 600;
    }

    @media (max-width: 520px) {
        .creative-entry-followup-actions {
            flex-direction: column;
            align-items: stretch;
        }
        .creative-entry-followup-btn {
            width: 100%;
            text-align: center;
        }
    }

    .creative-chat-messages {
        flex: 0 0 auto;
        overflow: visible;
        padding: 0 28px 20px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        min-height: 0;
        justify-content: flex-start;
        order: 1;
    }

    .creative-chat-message {
        display: flex;
        flex-direction: column;
        gap: 6px;
        max-width: 82%;
    }

    .creative-chat-message.user {
        align-self: flex-end;
        align-items: flex-end;
        margin-left: auto;
    }

    .creative-chat-message.assistant {
        align-self: flex-start;
        align-items: flex-start;
        margin-right: auto;
    }

.creative-chat-brief-card {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(113, 62, 255, 0.18);
    background: linear-gradient(180deg, rgba(243, 238, 255, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%);
    box-shadow: 0 8px 20px rgba(113, 62, 255, 0.08);
    padding: 10px 12px;
}

.creative-chat-brief-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.creative-chat-brief-title {
    font-size: 11px;
    font-weight: 700;
    color: #5b32d6;
    letter-spacing: 0.02em;
}

.creative-chat-brief-agent {
    font-size: 11px;
    color: #667085;
}

.creative-chat-brief-segments {
    display: grid;
    gap: 8px;
}

.creative-chat-brief-segment {
    border-radius: 10px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.92);
    padding: 7px 9px;
}

.creative-chat-brief-segment.is-conclusion {
    border-color: rgba(113, 62, 255, 0.18);
    background: rgba(247, 243, 255, 0.92);
}

.creative-chat-brief-segment.is-todo {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(255, 251, 235, 0.9);
}

.creative-chat-brief-segment.is-next {
    border-color: rgba(6, 182, 212, 0.24);
    background: rgba(236, 254, 255, 0.9);
}

.creative-chat-brief-segment-title {
    font-size: 11px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.creative-chat-brief-list {
    margin: 0;
    padding: 0 0 0 16px;
    display: grid;
    gap: 3px;
    color: #344054;
    font-size: 12px;
    line-height: 1.55;
}

.creative-chat-brief-list li {
    margin: 0;
}

    .creative-chat-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: #8c8c8c;
    }

    .creative-chat-role {
        display: inline-flex;
        align-items: center;
        padding: 2px 8px;
        border-radius: 999px;
        background: rgba(113, 62, 255, 0.10);
        color: #5b32d6;
        font-weight: 600;
    }

    .creative-chat-role.user {
        background: rgba(24, 144, 255, 0.10);
        color: #1765d1;
    }

    .creative-chat-bubble {
        border-radius: 22px;
        padding: 16px 18px;
        font-size: 14px;
        line-height: 1.8;
        white-space: pre-wrap;
        word-break: break-word;
        box-shadow: 0 8px 28px rgba(17, 12, 46, 0.06);
    }

    .creative-chat-message.assistant .creative-chat-bubble {
        background: #fff;
        border: 1px solid rgba(113, 62, 255, 0.08);
        color: #222;
    }

    .creative-chat-message.user .creative-chat-bubble {
        background: linear-gradient(135deg, #713eff 0%, #8e57ff 100%);
        color: #fff;
    }

    .creative-chat-toolbar {
        display: none;
    }

    .creative-chat-composer {
        padding: 18px 28px 28px;
        border-top: none;
        background: transparent;
        flex-shrink: 0;
    }

    .creative-chat-input-wrap {
        border: none;
        border-radius: 22px;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    /* 2026-05-06 大王令：补充信息卡剥离为独立卡 · 与 input-wrap 同级、上下并列 · 不再嵌入 wrap 内撑高输入框 */
    .creative-chain-options {
        display: none;
        margin: 0 0 12px;
        padding: 10px 14px;
        border-radius: 18px;
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(113, 62, 255, 0.12);
        box-shadow: 0 12px 28px rgba(113, 62, 255, 0.06);
        pointer-events: auto;
        box-sizing: border-box;
    }

    .creative-chain-options.is-collapsed {
        padding: 8px 12px;
    }

    .creative-chain-options-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 12px;
        color: #6b7280;
    }

    .creative-chain-options-head strong {
        color: #2f2360;
        font-size: 13px;
    }

    .creative-chain-options-head-left {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .creative-chain-options-summary-chips {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .creative-chain-options-summary-chips li {
        font-size: 11px;
        line-height: 1.6;
        color: #5b35d5;
        background: rgba(113, 62, 255, 0.08);
        border-radius: 999px;
        padding: 2px 9px;
        border: 1px solid rgba(113, 62, 255, 0.16);
    }

    .creative-chain-options-summary-chips li.is-empty {
        color: #8c93a6;
        background: rgba(17, 24, 39, 0.04);
        border-color: rgba(17, 24, 39, 0.06);
    }

    .creative-chain-options-toggle {
        appearance: none;
        border: 1px solid rgba(113, 62, 255, 0.16);
        background: rgba(255, 255, 255, 0.7);
        color: #5b35d5;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        padding: 5px 10px;
        border-radius: 999px;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.15s ease;
    }

    .creative-chain-options-toggle:hover {
        background: rgba(113, 62, 255, 0.08);
    }

    .creative-chain-options-toggle .creative-chain-options-toggle-caret {
        display: inline-block;
        margin-left: 4px;
        transition: transform 0.18s ease;
    }

    .creative-chain-options:not(.is-collapsed) .creative-chain-options-toggle-caret {
        transform: rotate(180deg);
    }

    .creative-chain-options-body {
        margin-top: 10px;
    }

    .creative-chain-options.is-collapsed .creative-chain-options-body {
        display: none;
    }

    .creative-chain-option-group {
        border-top: 1px solid rgba(17, 24, 39, 0.06);
        padding: 8px 0 0;
        margin-top: 8px;
    }

    .creative-chain-option-group:first-of-type {
        border-top: none;
        margin-top: 0;
    }

    .creative-chain-option-group summary {
        cursor: pointer;
        font-size: 12px;
        font-weight: 600;
        color: #4b5563;
        list-style: none;
    }

    .creative-chain-option-group summary::-webkit-details-marker {
        display: none;
    }

    .creative-chain-option-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
    }

    .creative-chain-option-list.is-card-list {
        gap: 10px;
    }

    .creative-chain-option-btn {
        min-height: 30px;
        padding: 0 11px;
        border-radius: 999px;
        border: 1px solid rgba(113, 62, 255, 0.12);
        background: rgba(255,255,255,0.84);
        color: #4f46e5;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
    }

    .creative-chain-option-btn.is-active {
        background: rgba(113, 62, 255, 0.12);
        border-color: rgba(113, 62, 255, 0.38);
        color: #5b35d5;
    }

    .creative-chain-option-btn.is-preview {
        min-width: 82px;
        height: 58px;
        border-radius: 16px;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }

    .creative-chain-option-preview {
        width: 42px;
        height: 24px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(113,62,255,0.16), rgba(82,196,134,0.16));
        color: #5b35d5;
        font-size: 11px;
    }

    .creative-chain-option-btn:disabled {
        opacity: 0.42;
        cursor: not-allowed;
    }

    .creative-chat-input {
        width: 100%;
        min-height: 90px;
        border: none;
        resize: none;
        outline: none;
        font-size: 15px;
        line-height: 1.7;
        font-family: inherit;
        background: transparent;
        box-sizing: border-box;
        padding: 8px 8px 12px;
    }

    .creative-chat-input-actions {
        margin-top: 4px;
        padding-top: 10px;
        border-top: none;
    }

    .creative-chat-toolbelt {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 10px;
        min-height: 36px;
    }

    .creative-chat-toolbelt-left {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 6px;
        overflow: hidden;
        white-space: nowrap;
    }

    .creative-chat-toolbelt-center {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .creative-chat-toolbelt-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        flex-shrink: 0;
        justify-self: end;
    }

    .creative-chat-tool-dot {
        font-size: 11px;
        line-height: 1;
        color: #a0a5af;
        white-space: nowrap;
    }

    .creative-chat-tool-status {
        display: inline-flex;
        align-items: center;
        min-height: 22px;
        padding: 0 9px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .creative-chat-tool-status.entry {
        background: rgba(113, 62, 255, 0.12);
        color: #6f49df;
    }

    .creative-chat-tool-status.assistant {
        background: rgba(82, 196, 134, 0.10);
        color: #4e8d6d;
    }

    .creative-chat-generate-btn {
        display: none;
        align-items: center;
        justify-content: center;
        min-width: 144px;
        height: 34px;
        padding: 0 16px;
        border: none;
        border-radius: 999px;
        background: linear-gradient(135deg, #713eff 0%, #8e57ff 100%);
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.01em;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(113, 62, 255, 0.2);
        transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    }

    .creative-chat-generate-btn.is-visible {
        display: inline-flex;
    }

    .creative-chat-generate-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(113, 62, 255, 0.24);
    }

    .creative-chat-generate-btn:disabled {
        cursor: not-allowed;
        opacity: 0.7;
        transform: none;
        box-shadow: none;
    }

    .creative-chat-tool-btn {
        min-height: 24px;
        padding: 0 8px;
        border: 1px solid rgba(17, 24, 39, 0.06);
        border-radius: 999px;
        background: rgba(17, 24, 39, 0.03);
        color: #8a909a;
        font-size: 11px;
        font-weight: 500;
    }

    .creative-chat-tool-btn.is-danger {
        color: #9a7f8b;
    }

    .creative-chat-send-round {
        width: 26px;
        min-width: 26px;
        height: 26px;
        border: none;
        border-radius: 999px;
        background: linear-gradient(135deg, #7b52ff 0%, #6a39f3 100%);
        color: #fff;
        position: relative;
        flex-shrink: 0;
        box-shadow: 0 6px 14px rgba(113, 62, 255, 0.22), inset 0 0 0 1px rgba(255,255,255,0.06);
    }

    .creative-chat-send-round::before {
        content: "\2191";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
    }

    .creative-chat-send-round:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .creative-chat-send-round.is-loading::before {
        content: "...";
        font-size: 12px;
    }

    /* V05-31-V2: 侧边栏固定定位，避免与顶部进度条叠压 */
    .creative-side-panel {
        position: fixed;
        left: 0;
        top: 140px; /* V05-31-V2: 避开顶部导航栏 + 进度条区域 */
        width: 280px; /* V05-31-V2: 明确宽度 */
        height: calc(100vh - 160px); /* V05-31-V2: 留出底部空间 */
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 16px; /* V05-31-V2: 去掉右边距，保持内部间距 */
        z-index: 5;
    }

    .creative-side-card {
        background: #fff;
        border-radius: 18px;
        border: 1px solid rgba(113, 62, 255, 0.08);
        box-shadow: 0 8px 24px rgba(17, 12, 46, 0.05);
        padding: 14px;
    }

    .creative-side-card-title {
        font-size: 13px;
        font-weight: 600;
        color: #252a32;
        margin-bottom: 8px;
    }

    .creative-side-card-subtitle {
        font-size: 11px;
        line-height: 1.65;
        color: #8a909a;
        margin-bottom: 10px;
    }

    .creative-side-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .creative-advanced-card {
        padding: 0;
        overflow: hidden;
    }

    .creative-advanced-card[open] {
        padding-bottom: 12px;
    }

    .creative-advanced-summary {
        list-style: none;
        cursor: pointer;
        padding: 14px;
        font-size: 13px;
        font-weight: 600;
        color: #252a32;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .creative-advanced-summary::-webkit-details-marker {
        display: none;
    }

    .creative-advanced-body {
        padding: 0 14px;
    }

    .creative-fold-card {
        padding: 0;
        overflow: hidden;
        background: rgba(255,255,255,0.84);
        border-style: dashed;
    }

    .creative-fold-card[open] {
        padding-bottom: 12px;
        background: #fff;
        border-style: solid;
    }

    .creative-fold-summary {
        list-style: none;
        cursor: pointer;
        padding: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .creative-fold-summary::-webkit-details-marker {
        display: none;
    }

    .creative-fold-summary-main {
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }

    .creative-fold-summary-title {
        font-size: 15px;
        font-weight: 700;
        color: #1f1f1f;
    }

    .creative-fold-summary-desc {
        font-size: 12px;
        line-height: 1.6;
        color: #8c8c8c;
    }

    .creative-fold-summary-kpi {
        flex-shrink: 0;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(113, 62, 255, 0.08);
        color: #5b32d6;
        font-size: 12px;
        font-weight: 600;
    }

    .creative-fold-body {
        padding: 0 14px;
        display: grid;
        gap: 14px;
    }

    .creative-minor-card {
        border-top: 1px solid rgba(113, 62, 255, 0.08);
        padding-top: 18px;
    }

    .creative-minor-card:first-child {
        border-top: none;
        padding-top: 0;
    }

    .creative-minor-card-title {
        font-size: 15px;
        font-weight: 700;
        color: #1f1f1f;
        margin-bottom: 8px;
    }

    .creative-minor-card-desc {
        font-size: 12px;
        line-height: 1.6;
        color: #8c8c8c;
        margin-bottom: 12px;
    }

    .creative-summary-preview {
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(113, 62, 255, 0.06);
        color: #555;
        font-size: 12px;
        line-height: 1.7;
    }

    .summary-book-context-wrap {
        margin-top: 12px;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(24, 144, 255, 0.06);
        border: 1px solid rgba(24, 144, 255, 0.12);
    }

    .summary-book-meta {
        font-size: 13px;
        color: #1f1f1f;
        margin-bottom: 6px;
    }

    .summary-book-synopsis {
        margin: 0;
        font-size: 12px;
        line-height: 1.65;
        color: #434343;
    }

    .summary-book-err {
        margin: 6px 0 0;
        font-size: 12px;
        color: #cf1322;
    }

    .summary-book-hint {
        margin: 6px 0 0;
        font-size: 12px;
        color: #8c8c8c;
        line-height: 1.6;
    }

    .creative-book-tag {
        display: inline-block;
        margin-left: 6px;
        padding: 1px 8px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
    }

    .creative-book-tag--hit {
        background: rgba(82, 196, 26, 0.15);
        color: #389e0d;
    }

    .creative-book-tag--miss {
        background: rgba(250, 173, 20, 0.15);
        color: #d48806;
    }

    .creative-book-tag--err {
        background: rgba(255, 77, 79, 0.12);
        color: #cf1322;
    }

    .creative-book-retry-btn {
        margin-top: 10px;
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 10px;
        border: 1px solid rgba(24, 144, 255, 0.35);
        background: #fff;
        color: #096dd9;
        cursor: pointer;
    }

    .creative-book-retry-btn:hover {
        background: rgba(24, 144, 255, 0.08);
    }

    .creative-action-group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .creative-action-group .btn-primary,
    .creative-action-group .btn-secondary,
    .creative-action-group .btn-save-draft {
        flex: 1 1 160px;
        justify-content: center;
    }

.creative-task-submit-btn {
    flex: 1 1 220px;
    justify-content: center;
}

.creative-task-sidebar {
    display: none;
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow: auto;
}

    .creative-reference-hint {
        font-size: 12px;
        color: #8c8c8c;
        margin-bottom: 12px;
        line-height: 1.6;
    }

    .creative-chat-layout {
        grid-template-columns: 1fr;
    }

.creative-chat-layout.is-task-card-workspace {
    grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.creative-chat-layout.is-task-card-workspace .creative-task-sidebar {
    display: block;
}

.creative-chat-layout.is-task-card-workspace .creative-card-stream {
    align-items: stretch;
}

.creative-chat-layout.is-task-card-workspace .creative-flow-card {
    width: 100%;
    align-self: stretch;
}

.creative-chat-layout.is-task-card-workspace .creative-chat-panel {
    width: min(920px, 100%);
    margin: 0;
}

    .creative-chat-panel {
        width: min(1180px, 100%);
        margin: 0 auto;
        min-height: calc(100vh - 150px);
        height: auto;
    }

    .creative-chat-panel.is-empty-state {
        height: auto;
    }

    .creative-chat-scroll {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 0 24px 8px;
        overflow: visible;
    }

    .creative-chat-panel.is-empty-state .creative-chat-scroll {
        flex: 0 0 auto;
        margin-top: auto;
        justify-content: center;
        gap: 30px;
        padding-top: 0;
    }

    .creative-chat-panel:not(.is-empty-state) .creative-chat-scroll {
        justify-content: flex-end;
    }

    .creative-chat-empty,
    .creative-chat-messages {
        padding: 0;
    }

    .creative-chat-empty-card {
        width: min(920px, 100%);
        border-radius: 28px;
        background: linear-gradient(180deg, rgba(113, 62, 255, 0.06) 0%, rgba(255, 255, 255, 0.96) 100%);
        box-shadow: 0 16px 40px rgba(17, 12, 46, 0.08);
    }

    .quick-scene-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .quick-scene-chip {
        min-height: 84px;
        align-items: flex-start;
        justify-content: flex-start;
        font-weight: 700;
        line-height: 1.5;
    }

    .creative-chat-messages {
        max-height: none;
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding-bottom: 0;
    }

    .creative-chat-message {
        max-width: min(820px, 100%);
    }

    .creative-chat-message.user {
        align-self: flex-end;
    }

    .creative-card-stream {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding-bottom: 0;
        order: 2;
        align-items: center;
    }

    .creative-flow-card {
        width: min(520px, 100%);
        align-self: center;
    }

    .creative-flow-card-meta {
        font-size: 11px;
        line-height: 1.4;
        color: #a0a5af;
        letter-spacing: 0.02em;
        margin-bottom: 6px;
    }

    .creative-flow-card-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .creative-chat-composer {
        width: 100%;
        margin-top: 12px;
        padding: 0;
    }

    .creative-chat-panel:not(.is-empty-state) .creative-chat-composer {
        position: sticky;
        bottom: 18px;
        z-index: 4;
        background: transparent;
        backdrop-filter: none;
        pointer-events: none;
    }

    /* 与 8099 .chat-input-sticky 同构：上缘渐变 + 背后实底，避免消息透过透明 sticky 区 */
    .creative-chat-panel:not(.is-empty-state) .creative-chat-composer::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -18px;
        height: 18px;
        background: linear-gradient(
            to bottom,
            rgba(240, 242, 245, 0) 0%,
            rgba(240, 242, 245, 0.92) 100%
        );
        pointer-events: none;
    }

    .creative-chat-panel:not(.is-empty-state) .creative-chat-composer::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: -48px;
        background: #f0f2f5;
        pointer-events: none;
        z-index: -1;
    }

    .creative-chat-panel:not(.is-empty-state) .creative-chat-input-wrap {
        width: min(560px, 100%);
        margin: 0 auto;
        border: 1px solid rgba(113, 62, 255, 0.10);
        background: rgba(255,255,255,0.95);
        box-shadow: 0 14px 34px rgba(113, 62, 255, 0.08);
        padding: 10px 12px 12px;
        pointer-events: auto;
    }

    /* 2026-05-06：补充信息独立卡 · sticky 态宽度对齐输入框、上下并列 */
    .creative-chat-panel:not(.is-empty-state) .creative-chain-options {
        width: min(560px, 100%);
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;
    }

    .creative-chat-panel:not(.is-empty-state) .creative-chat-input {
        min-height: 52px;
        max-height: 180px;
        overflow-y: auto;
        padding: 4px 6px 8px;
    }

    .creative-chat-panel:not(.is-empty-state) .creative-chat-input-actions {
        margin-top: 0;
        padding-top: 8px;
        border-top: 1px solid rgba(17, 24, 39, 0.06);
    }

    .creative-chat-panel.is-empty-state .creative-chat-composer {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        margin-bottom: auto;
        padding-top: 8px;
        border-top: none;
        background: transparent;
        pointer-events: auto;
    }

    .creative-chat-panel.is-empty-state .creative-chat-input-wrap {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
        border: 1px solid rgba(113, 62, 255, 0.12);
        background: rgba(255,255,255,0.9);
        box-shadow: 0 16px 36px rgba(113, 62, 255, 0.08);
        padding: 10px 12px 12px;
    }

    /* 2026-05-06：补充信息独立卡 · empty-state 首屏宽度对齐输入框、上下并列 */
    .creative-chat-panel.is-empty-state .creative-chain-options {
        max-width: 700px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 12px;
    }

    .creative-chat-panel.is-empty-state .creative-chat-input {
        min-height: 120px;
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 8px 8px 12px;
        box-shadow: none;
        resize: none;
    }

    .creative-chat-panel.is-empty-state .creative-chat-input-actions {
        margin-top: 0;
        padding: 10px 2px 0;
        border-top: 1px solid rgba(17, 24, 39, 0.08);
    }

    .creative-chat-panel.is-empty-state .creative-chat-toolbelt {
        min-height: 26px;
    }

    .creative-chat-panel.is-empty-state .creative-chat-tool-dot {
        color: #7b8191;
    }

    .creative-chat-panel.is-empty-state .creative-chat-tool-btn {
        background: rgba(17, 24, 39, 0.035);
        color: #8f95a0;
    }

    .creative-chat-panel.is-empty-state .creative-chat-send-round {
        background: linear-gradient(135deg, #7b52ff 0%, #6a39f3 100%);
    }

    .creative-entry-grid {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .book-split-workspace {
        margin-bottom: 16px;
    }

    .book-split-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .book-full-textarea {
        min-height: 140px;
    }

    .creative-entry-chip {
        min-width: 160px;
        min-height: 52px;
        padding: 0 22px;
        border-radius: 999px;
        border: 1px solid rgba(17, 24, 39, 0.08);
        background: rgba(255,255,255,0.82);
        color: #303030;
        justify-content: center;
        align-items: center;
        text-align: center;
        box-shadow: none;
    }

    .creative-entry-chip.active {
        border-color: rgba(113, 62, 255, 0.38);
        background: rgba(113, 62, 255, 0.12);
        color: #5127cf;
    }

    /* Seed-1 美育创学入口：用米白+黛青+浅杏柔化教学语境，和创作者紫色明确区分 */
    .creative-entry-chip.is-edu {
        background: linear-gradient(135deg, rgba(253, 247, 238, 0.92), rgba(244, 238, 226, 0.85));
        border-color: rgba(54, 84, 99, 0.18);
        color: #2f4a59;
    }

    .creative-entry-chip.is-edu.active {
        background: linear-gradient(135deg, rgba(248, 224, 196, 0.78), rgba(234, 216, 190, 0.72));
        border-color: rgba(54, 84, 99, 0.42);
        color: #1f3a4a;
        box-shadow: 0 2px 10px rgba(54, 84, 99, 0.08);
    }

    /* Seed-1 美育创学最小表单：在 creative-entry-followup 容器内切换为表单视图 */
    .creative-edu-form {
        display: grid;
        gap: 10px;
    }

    .creative-edu-form__row {
        display: grid;
        grid-template-columns: 96px 1fr;
        gap: 10px;
        align-items: center;
    }

    .creative-edu-form__label {
        font-size: 12px;
        font-weight: 600;
        color: #2f4a59;
    }

    .creative-edu-form__select,
    .creative-edu-form__input,
    .creative-edu-form__textarea {
        width: 100%;
        padding: 8px 10px;
        border-radius: 12px;
        border: 1px solid rgba(54, 84, 99, 0.16);
        background: rgba(253, 247, 238, 0.78);
        color: #1f3a4a;
        font-size: 13px;
        line-height: 1.55;
        transition: border-color 0.15s ease, background 0.15s ease;
    }

    .creative-edu-form__select:focus,
    .creative-edu-form__input:focus,
    .creative-edu-form__textarea:focus {
        outline: none;
        border-color: rgba(54, 84, 99, 0.45);
        background: #fff;
    }

    .creative-edu-form__textarea {
        min-height: 64px;
        resize: vertical;
    }

    .creative-edu-form__hint {
        font-size: 11px;
        color: rgba(54, 84, 99, 0.68);
        line-height: 1.55;
    }

    .creative-edu-form__footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 4px;
    }

    .creative-edu-form__status {
        font-size: 11px;
        color: rgba(54, 84, 99, 0.64);
    }

    .creative-edu-form__status.is-saved {
        color: #3f7a52;
    }

    .creative-edu-form__reset {
        min-height: 30px;
        padding: 0 12px;
        border-radius: 999px;
        border: 1px solid rgba(54, 84, 99, 0.18);
        background: rgba(253, 247, 238, 0.78);
        color: #2f4a59;
        font-size: 11px;
        cursor: pointer;
    }

    .creative-edu-form__submit {
        min-height: 30px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid rgba(54, 84, 99, 0.48);
        background: linear-gradient(135deg, rgba(248, 224, 196, 0.92), rgba(234, 216, 190, 0.86));
        color: #1f3a4a;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        letter-spacing: 0.4px;
    }
    .creative-edu-form__submit:hover { filter: brightness(1.04); }
    .creative-edu-form__submit:disabled {
        opacity: 0.55;
        cursor: progress;
    }

    .creative-edu-form__result {
        margin-top: 6px;
        padding: 0;
        font-size: 11px;
        line-height: 1.55;
        color: rgba(54, 84, 99, 0.85);
    }
    .creative-edu-form__result:empty { display: none; }
    .creative-edu-form__result.is-progress {
        padding: 8px 10px;
        border-radius: 8px;
        background: rgba(253, 247, 238, 0.6);
        border: 1px dashed rgba(54, 84, 99, 0.28);
        color: #465968;
    }
    .creative-edu-form__result.is-ok {
        padding: 10px 12px;
        border-radius: 10px;
        background: linear-gradient(135deg, rgba(232, 246, 227, 0.7), rgba(240, 247, 232, 0.55));
        border: 1px solid rgba(88, 130, 76, 0.26);
        color: #2e4a30;
    }
    .creative-edu-form__result.is-error {
        padding: 10px 12px;
        border-radius: 10px;
        background: linear-gradient(135deg, rgba(253, 231, 224, 0.75), rgba(250, 220, 214, 0.6));
        border: 1px solid rgba(162, 78, 74, 0.3);
        color: #7b2f2a;
    }
    .creative-edu-form__result-line {
        padding: 1px 0;
    }
    .creative-edu-form__result-line code {
        background: rgba(255, 255, 255, 0.55);
        padding: 0 4px;
        border-radius: 4px;
        font-size: 11px;
    }
    .creative-edu-form__result-hint {
        margin-top: 4px;
        opacity: 0.78;
        font-style: italic;
    }
    .creative-edu-form__err-item {
        padding: 1px 0;
    }
    .creative-edu-form__err-item code {
        background: rgba(255, 255, 255, 0.6);
        padding: 0 4px;
        border-radius: 4px;
    }
    .creative-edu-form__err-item span {
        font-weight: 600;
    }

    /* === Seed-3 审核 / 执行卡片 ========================================== */
    .creative-edu-review {
        margin-top: 14px;
        padding: 12px 14px;
        border: 1px dashed rgba(66, 82, 92, 0.32);
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(252, 247, 236, 0.85), rgba(255, 255, 255, 0.6));
        display: grid;
        gap: 10px;
    }
    .creative-edu-review__row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
    .creative-edu-review__badge {
        display: inline-flex;
        align-items: center;
        padding: 2px 10px;
        border-radius: 999px;
        font-size: 12px;
        letter-spacing: 0.04em;
        font-weight: 600;
        background: rgba(66, 82, 92, 0.1);
        color: #42525c;
    }
    .creative-edu-review__badge--draft        { background: rgba(66, 82, 92, 0.12); color: #42525c; }
    .creative-edu-review__badge--l1_pending   { background: rgba(212, 165, 116, 0.22); color: #8b5a2b; }
    .creative-edu-review__badge--l1_passed,
    .creative-edu-review__badge--l2_passed    { background: rgba(177, 148, 111, 0.22); color: #6d4a21; }
    .creative-edu-review__badge--approved     { background: rgba(104, 153, 100, 0.22); color: #355d33; }
    .creative-edu-review__badge--rejected     { background: rgba(168, 69, 69, 0.2); color: #7d2f2f; }
    .creative-edu-review__hint {
        font-size: 12px;
        color: rgba(66, 82, 92, 0.7);
    }
    .creative-edu-review__actions {
        gap: 8px;
    }
    .creative-edu-review__btn {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 8px;
        border: 1px solid rgba(66, 82, 92, 0.32);
        background: #fbf6ec;
        color: #42525c;
        cursor: pointer;
        transition: transform 0.08s ease, background 0.15s ease;
    }
    .creative-edu-review__btn:hover:not([disabled]) {
        background: #f3ead6;
        transform: translateY(-1px);
    }
    .creative-edu-review__btn[disabled] {
        opacity: 0.55;
        cursor: not-allowed;
    }
    .creative-edu-review__btn--primary {
        background: #42525c;
        color: #fbf6ec;
        border-color: #42525c;
    }
    .creative-edu-review__btn--primary:hover:not([disabled]) {
        background: #2e3942;
    }
    .creative-edu-review__btn--danger {
        border-color: rgba(168, 69, 69, 0.5);
        color: #7d2f2f;
    }
    .creative-edu-review__result {
        font-size: 13px;
        line-height: 1.55;
        padding: 6px 10px;
        border-radius: 6px;
        min-height: 0;
    }
    .creative-edu-review__result.is-progress { background: rgba(212, 165, 116, 0.14); }
    .creative-edu-review__result.is-ok       { background: rgba(104, 153, 100, 0.14); color: #355d33; }
    .creative-edu-review__result.is-error    { background: rgba(168, 69, 69, 0.14); color: #7d2f2f; }

    @media (max-width: 520px) {
        .creative-edu-form__row {
            grid-template-columns: 1fr;
            gap: 4px;
        }
    }

    .creative-status-rail {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 0 0 4px;
    }

    .creative-status-chip {
        border: 1px solid rgba(17, 24, 39, 0.06);
        background: rgba(255,255,255,0.74);
        color: #757b86;
        border-radius: 999px;
        padding: 4px 8px;
        font-size: 11px;
        line-height: 1.2;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.18s ease;
    }

    .creative-status-chip.is-ready {
        color: #5b6380;
        border-color: rgba(113, 62, 255, 0.10);
        background: rgba(113, 62, 255, 0.04);
    }

    .creative-status-chip.active {
        border-color: rgba(113, 62, 255, 0.24);
        background: rgba(113, 62, 255, 0.08);
        color: #4c28c7;
        box-shadow: 0 4px 12px rgba(113, 62, 255, 0.08);
    }

    @media (max-width: 1280px) {
        .creative-chat-panel {
            height: auto;
        }

        .creative-flow-card-grid {
            grid-template-columns: 1fr;
        }
    }

    /* V05-31-V2: 小屏幕恢复默认布局 */
    @media (max-width: 1024px) {
        .creative-studio-container {
            margin-left: 0; /* 去掉左侧间距 */
            padding: 0 12px 24px;
        }
        .creative-side-panel {
            position: static; /* 取消固定定位 */
            width: auto;
            height: auto;
            top: auto;
            left: auto;
            max-height: none;
            padding-right: 0;
        }
    }

    @media (max-width: 768px) {
        .creative-studio-container {
            padding: 0 12px 24px;
            margin: 16px auto;
        }
        .creative-chat-scroll,
        .creative-chat-empty,
        .creative-chat-toolbar,
        .creative-chat-composer {
            padding-left: 18px;
            padding-right: 18px;
        }

        .creative-chat-panel:not(.is-empty-state) .creative-chat-composer {
            bottom: 12px;
        }

        .quick-scene-grid {
            grid-template-columns: 1fr 1fr;
        }

        .creative-entry-grid {
            width: 100%;
        }

        .creative-chat-panel.is-empty-state .creative-chat-input-wrap {
            padding: 0;
        }

        .creative-chat-panel:not(.is-empty-state) .creative-chat-input-wrap {
            width: 100%;
            padding: 8px 10px 10px;
        }

        /* 2026-05-06：补充信息独立卡 · 移动端 ≤768 宽度跟随 wrap 撑满 */
        .creative-chat-panel:not(.is-empty-state) .creative-chain-options,
        .creative-chat-panel.is-empty-state .creative-chain-options {
            width: 100%;
            max-width: 100%;
        }

        .creative-chat-toolbelt {
            flex-wrap: wrap;
            align-items: flex-end;
        }

        .creative-chat-toolbelt-left {
            width: 100%;
            overflow-x: auto;
        }

        .creative-chat-toolbelt-center {
            width: 100%;
            justify-content: center;
        }

        .creative-chat-toolbelt-right {
            width: 100%;
            justify-content: flex-end;
        }
    }

.creative-chat-layout {
    display: block;
}

.creative-handoff-shell {
    margin: 0 auto 10px;
    width: min(760px, 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.creative-handoff-track {
    display: grid;
    gap: 5px;
}

.creative-handoff-density-control {
    display: flex;
    justify-content: flex-end;
}

.creative-handoff-density-btn {
    border: 1px solid rgba(113, 62, 255, 0.16);
    background: rgba(255, 255, 255, 0.9);
    color: #5b32d6;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.2;
    padding: 3px 8px;
    cursor: pointer;
}

.creative-handoff-density-btn:hover {
    border-color: rgba(113, 62, 255, 0.28);
    background: rgba(245, 243, 255, 0.95);
}

.creative-handoff-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 10px;
    padding: 7px 10px;
    border: 1px solid rgba(113, 62, 255, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: #4b5563;
    font-size: 11px;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.creative-handoff-step-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.creative-handoff-step-agent {
    font-size: 10px;
    color: #6b7280;
}

.creative-handoff-stage-icon {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #4c28c7;
    background: rgba(113, 62, 255, 0.12);
    border: 1px solid rgba(113, 62, 255, 0.2);
}

.creative-handoff-step.is-active {
    border-color: rgba(113, 62, 255, 0.28);
    background: rgba(113, 62, 255, 0.1);
    color: #4c28c7;
}

.creative-handoff-step.is-done {
    border-color: rgba(6, 182, 212, 0.18);
    background: rgba(236, 254, 255, 0.9);
    color: #0f766e;
}

.creative-handoff-events {
    display: grid;
    gap: 6px;
}

.creative-handoff-meta-line {
    width: 100%;
    font-size: 11px;
    line-height: 1.4;
    color: #6b7280;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    padding: 6px 10px;
}

.creative-handoff-event {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.creative-handoff-event.is-running {
    border-color: rgba(113, 62, 255, 0.24);
    background: rgba(245, 243, 255, 0.92);
}

.creative-handoff-event.is-done {
    border-color: rgba(6, 182, 212, 0.2);
    background: rgba(236, 254, 255, 0.92);
}

.creative-handoff-event.is-error {
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(254, 242, 242, 0.92);
}

.creative-handoff-meta-card {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(113, 62, 255, 0.16);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    padding: 8px 10px;
}

.creative-handoff-meta-card.is-gate {
    border-color: rgba(6, 182, 212, 0.24);
}

.creative-handoff-meta-card.is-route {
    border-color: rgba(113, 62, 255, 0.24);
}

.creative-handoff-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.creative-handoff-meta-title {
    font-size: 11px;
    font-weight: 700;
    color: #111827;
}

.creative-handoff-meta-badge {
    font-size: 10px;
    color: #5b32d6;
    background: rgba(113, 62, 255, 0.10);
    border-radius: 999px;
    padding: 2px 6px;
}

.creative-handoff-meta-body {
    display: grid;
    gap: 4px;
}

.creative-handoff-meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.creative-handoff-meta-label {
    font-size: 10px;
    color: #6b7280;
}

.creative-handoff-meta-value {
    font-size: 11px;
    color: #111827;
    font-weight: 600;
}

.creative-handoff-meta-trace {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.creative-handoff-meta-trace span {
    font-size: 10px;
    color: #4b5563;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(248, 250, 252, 0.92);
    padding: 2px 6px;
}

.creative-handoff-event-stage {
    font-size: 10px;
    line-height: 1.2;
    color: #5f4dbf;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.creative-handoff-event-title {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.creative-handoff-event-summary {
    font-size: 11px;
    line-height: 1.35;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.creative-handoff-shell.is-density-comfy {
    gap: 8px;
}

.creative-handoff-shell.is-density-comfy .creative-handoff-track,
.creative-handoff-shell.is-density-comfy .creative-handoff-events {
    gap: 7px;
}

.creative-handoff-shell.is-density-comfy .creative-handoff-step {
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 12px;
}

.creative-handoff-shell.is-density-comfy .creative-handoff-event,
.creative-handoff-shell.is-density-comfy .creative-handoff-meta-card {
    border-radius: 12px;
    padding: 10px 12px;
}

.creative-handoff-shell.is-density-comfy .creative-handoff-meta-title,
.creative-handoff-shell.is-density-comfy .creative-handoff-meta-value,
.creative-handoff-shell.is-density-comfy .creative-handoff-event-title {
    font-size: 12px;
}

.creative-handoff-shell.is-density-comfy .creative-handoff-event-summary {
    font-size: 11px;
}

.creative-handoff-shell.is-density-dense {
    gap: 4px;
}

.creative-handoff-shell.is-density-dense .creative-handoff-track,
.creative-handoff-shell.is-density-dense .creative-handoff-events {
    gap: 4px;
}

.creative-handoff-shell.is-density-dense .creative-handoff-step {
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 10px;
}

.creative-handoff-shell.is-density-dense .creative-handoff-step-agent,
.creative-handoff-shell.is-density-dense .creative-handoff-meta-label,
.creative-handoff-shell.is-density-dense .creative-handoff-meta-trace span,
.creative-handoff-shell.is-density-dense .creative-handoff-event-stage,
.creative-handoff-shell.is-density-dense .creative-handoff-event-summary,
.creative-handoff-shell.is-density-dense .creative-handoff-density-btn {
    font-size: 9px;
}

.creative-handoff-shell.is-density-dense .creative-handoff-stage-icon {
    width: 12px;
    height: 12px;
    font-size: 8px;
}

.creative-handoff-shell.is-density-dense .creative-handoff-event,
.creative-handoff-shell.is-density-dense .creative-handoff-meta-card {
    border-radius: 8px;
    padding: 6px 8px;
}

.creative-handoff-shell.is-density-dense .creative-handoff-meta-title,
.creative-handoff-shell.is-density-dense .creative-handoff-meta-value,
.creative-handoff-shell.is-density-dense .creative-handoff-event-title {
    font-size: 10px;
}

.creative-floating-launcher {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 24;
    border: 1px solid rgba(113, 62, 255, 0.16);
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(244, 240, 255, 0.96));
    color: #4c28c7;
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 18px 48px rgba(76, 40, 199, 0.18);
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    cursor: pointer;
}

.creative-floating-launcher-label {
    font-size: 13px;
    font-weight: 700;
}

.creative-floating-launcher-meta {
    font-size: 11px;
    color: #6b7280;
}

.creative-card-stream {
    position: fixed;
    left: 14px;
    top: 112px;
    z-index: 25;
    width: min(540px, calc(100vw - 32px));
    overflow: visible;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.creative-cube-panel-header,
.creative-cube-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.creative-cube-panel-header {
    cursor: move;
    position: absolute;
    left: var(--creative-cube-header-left, 14px);
    right: var(--creative-cube-header-right, 14px);
    top: var(--creative-cube-header-top, -44px);
    margin-bottom: 0;
    z-index: 2;
}

.creative-cube-panel-title,
.creative-cube-drawer-title {
    display: inline-flex;
    align-items: center;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(113, 62, 255, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.creative-cube-panel-subtitle,
.creative-cube-drawer-desc {
    display: none;
}

.creative-cube-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.creative-cube-panel-actions .creative-cube-panel-btn {
    height: 27px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.creative-cube-interaction-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 999px;
    border: 1px solid rgba(113, 62, 255, 0.14);
    background: rgba(255, 255, 255, 0.72);
}

.creative-cube-mode-btn {
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s ease;
}

.creative-cube-mode-btn.is-active {
    color: #4c28c7;
    background: rgba(113, 62, 255, 0.12);
}

.creative-cube-panel-btn {
    border: 1px solid rgba(113, 62, 255, 0.14);
    background: rgba(113, 62, 255, 0.06);
    color: #4c28c7;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
}

.creative-cube-progress {
    position: absolute;
    top: calc(100% + var(--creative-cube-progress-top-gap, 10px) + var(--creative-cube-progress-offset-y, 0px));
    left: var(--creative-cube-progress-left, 14px);
    right: var(--creative-cube-progress-right, 14px);
    margin-bottom: 0;
    padding: 10px 12px;
    border-radius: var(--creative-cube-progress-corner-radius, 14px);
    border: 1px solid rgba(113, 62, 255, 0.12);
    background: rgba(242, 246, 255, 0.96);
    color: #4b5563;
    font-size: 12px;
    line-height: 1.6;
}

/* §六 v3.1：固定 3×3 = 9 磁贴，与 #creative-cube-grid 子节点数量契约一致 */
.creative-cube-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(86px, auto);
    gap: 10px;
    margin-bottom: 0;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(113, 62, 255, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.16);
}

.creative-cube-card {
    min-height: 86px;
    text-align: left;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.creative-cube-card:hover,
.creative-cube-card.is-active {
    transform: translateY(-1px);
    border-color: rgba(113, 62, 255, 0.22);
    box-shadow: 0 14px 28px rgba(113, 62, 255, 0.12);
}

.creative-card-stream.is-flat-3d-mode .creative-cube-grid {
    perspective: 920px;
    transform-style: preserve-3d;
}

.creative-card-stream.is-flat-3d-mode .creative-cube-card {
    position: relative;
    transform-style: preserve-3d;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.creative-card-stream.is-flat-3d-mode .creative-cube-card:hover,
.creative-card-stream.is-flat-3d-mode .creative-cube-card.is-active {
    transform: none;
    border-color: rgba(113, 62, 255, 0.28);
    box-shadow: 0 12px 22px rgba(113, 62, 255, 0.16);
}

.creative-card-stream.is-flat-3d-mode .creative-cube-card-title,
.creative-card-stream.is-flat-3d-mode .creative-cube-card-value {
    position: relative;
    z-index: 2;
    transform: translateZ(22px);
    backface-visibility: hidden;
}

.creative-card-stream.is-flat-3d-mode .creative-cube-grid.is-flat-3d-twist .creative-cube-card {
    animation: cube-flat-3d-twist 0.58s cubic-bezier(0.2, 0.62, 0.24, 1);
    animation-delay: calc(var(--cube-dist, 0) * 32ms);
}

.creative-card-stream.is-flat-3d-mode .creative-cube-grid.is-flat-3d-twist .creative-cube-card .creative-cube-card-title,
.creative-card-stream.is-flat-3d-mode .creative-cube-grid.is-flat-3d-twist .creative-cube-card .creative-cube-card-value {
    animation: cube-flat-3d-text-fade 0.58s ease;
    animation-delay: calc(var(--cube-dist, 0) * 32ms);
}

.creative-card-stream.is-flat-3d-mode .creative-cube-card:nth-child(3n + 1) {
    --cube-tilt-y: -14deg;
}

.creative-card-stream.is-flat-3d-mode .creative-cube-card:nth-child(3n + 2) {
    --cube-tilt-y: 0deg;
}

.creative-card-stream.is-flat-3d-mode .creative-cube-card:nth-child(3n + 3) {
    --cube-tilt-y: 14deg;
}

@keyframes cube-flat-3d-twist {
    0% {
        transform: rotateX(0deg) rotateY(0deg) scale(1);
    }
    38% {
        transform: rotateX(18deg) rotateY(var(--cube-tilt-y, 0deg)) scale(0.98);
    }
    72% {
        transform: rotateX(-10deg) rotateY(calc(var(--cube-tilt-y, 0deg) * -0.55)) scale(1.01);
    }
    100% {
        transform: rotateX(0deg) rotateY(0deg) scale(1);
    }
}

@keyframes cube-flat-3d-text-fade {
    0% {
        opacity: 1;
    }
    34% {
        opacity: 0.65;
    }
    100% {
        opacity: 1;
    }
}

.creative-cube-card.is-submit {
    background: linear-gradient(135deg, rgba(113, 62, 255, 0.12), rgba(6, 182, 212, 0.1));
}

.creative-cube-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.creative-cube-card-value {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.creative-cube-card-sub {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.35;
    margin-top: 4px;
}

.creative-cube-drawer-header {
    margin-bottom: 14px;
    padding-top: 6px;
}

.creative-card-stream .creative-flow-card {
    width: 100%;
    margin-bottom: 12px;
}

[data-detail-panel-group] {
    display: none;
}

[data-detail-panel-group].creative-detail-panel-visible {
    display: block;
}

details[data-detail-panel-group].creative-detail-panel-visible {
    display: block;
}

.creative-cube-detail-popcard {
    position: fixed;
    left: 28px;
    top: 220px;
    z-index: 31;
    width: min(360px, calc(100vw - 24px));
    border-radius: 16px;
    border: 1px solid rgba(113, 62, 255, 0.2);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
    padding: 14px;
}

.creative-cube-debug-popcard {
    position: fixed;
    z-index: 40;
    width: min(760px, calc(100vw - 36px));
    height: min(78vh, 760px);
    border-radius: 16px;
    border: 1px solid rgba(113, 62, 255, 0.24);
    background: rgba(12, 8, 24, 0.92);
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.creative-cube-debug-popcard-header {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.26);
    color: #efe8ff;
    font-size: 14px;
    font-weight: 600;
}

.creative-cube-debug-popcard iframe {
    width: 100%;
    height: calc(100% - 44px);
    border: 0;
    background: transparent;
}

.creative-cube-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.creative-cube-detail-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.creative-cube-detail-text {
    margin-top: 8px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
}

.creative-cube-detail-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 900px) {
    .creative-card-stream {
        left: 12px;
        right: 12px;
        top: 92px;
        bottom: auto;
        width: auto;
    }

    .creative-cube-panel-header {
        top: -40px;
        left: 12px;
        right: 12px;
    }

    .creative-floating-launcher {
        right: 12px;
        bottom: 18px;
    }

    .creative-cube-detail-popcard {
        left: 10px;
        width: calc(100vw - 20px);
        top: 180px;
    }

    .creative-cube-debug-popcard {
        left: 10px !important;
        width: calc(100vw - 20px);
        height: min(76vh, 720px);
    }

    .creative-cube-progress {
        left: 12px;
        right: 12px;
    }
}

@media (max-width: 640px) {
    .creative-cube-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .creative-handoff-shell {
        width: 100%;
    }
}

/* CR-PX-C01：分镜/口播面板（随磁贴召回，默认隐藏） */
.creative-storyboard-panel .creative-storyboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}
.creative-storyboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.creative-storyboard-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(113, 62, 255, 0.14);
    background: rgba(255, 255, 255, 0.72);
}
.creative-storyboard-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}
.creative-storyboard-row textarea {
    width: 100%;
    min-height: 56px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.45;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
}
.creative-storyboard-row input[type="text"] {
    width: 100%;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.1);
}
.creative-storyboard-row-remove {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 4px 10px;
}

/* 创编聊天气泡 Markdown */
.creative-chat-bubble-md {
    white-space: normal;
    word-break: break-word;
}

.creative-chat-bubble-md p {
    margin: 0 0 0.55em;
}

.creative-chat-bubble-md p:last-child {
    margin-bottom: 0;
}

.creative-chat-bubble-md h1,
.creative-chat-bubble-md h2,
.creative-chat-bubble-md h3,
.creative-chat-bubble-md h4 {
    margin: 0.4em 0 0.35em;
    font-size: 1.05em;
    font-weight: 700;
    color: #1f2937;
}

.creative-chat-bubble-md ul,
.creative-chat-bubble-md ol {
    margin: 0.35em 0 0.55em;
    padding-left: 1.25em;
}

.creative-chat-bubble-md li {
    margin: 0.2em 0;
}

.creative-chat-bubble-md code {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 0.92em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(113, 62, 255, 0.08);
    color: #4c28c7;
}

.creative-chat-bubble-md pre {
    margin: 0.5em 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f4f4f5;
    border: 1px solid rgba(17, 24, 39, 0.08);
    overflow-x: auto;
}

.creative-chat-bubble-md pre code {
    background: transparent;
    padding: 0;
    color: #374151;
}

.creative-chat-bubble-md .creative-md-bq {
    margin: 0.45em 0;
    padding: 8px 12px;
    border-left: 3px solid rgba(113, 62, 255, 0.32);
    background: rgba(113, 62, 255, 0.045);
    border-radius: 0 10px 10px 0;
    color: #374151;
    font-size: 13px;
    line-height: 1.55;
}

.creative-chat-bubble-md .creative-md-bq p {
    margin: 0.3em 0;
}

.creative-chat-bubble-md .creative-md-bq p:first-child {
    margin-top: 0;
}

.creative-chat-bubble-md .creative-md-bq p:last-child {
    margin-bottom: 0;
}

.creative-md-chat-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #6b7280;
}

.creative-chat-bubble-md a {
    color: #5b32d6;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}

.creative-chat-bubble-md .creative-md-table-wrap {
    margin: 0.45em 0;
}

.creative-md-table-wrap {
    margin: 0.5em 0;
    overflow-x: auto;
    max-width: 100%;
}

.creative-md-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.45;
}

.creative-md-table th,
.creative-md-table td {
    border: 1px solid rgba(17, 24, 39, 0.12);
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}

.creative-md-table th {
    background: rgba(113, 62, 255, 0.06);
    font-weight: 600;
    color: #374151;
}

.creative-md-hr {
    border: none;
    border-top: 1px solid rgba(17, 24, 39, 0.1);
    margin: 0.65em 0;
}

/* §六 v3.2：L2 仅轻召回（魔方正下方）；重编辑在 .creative-detail-modal-overlay；限制高度避免抢主对话区 */
.creative-detail-l2 {
    width: 100%;
    max-width: min(420px, 100%);
    max-height: min(38vh, 320px);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0 auto 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(113, 62, 255, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.creative-detail-l2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.creative-detail-l2-meta {
    font-size: 11px;
    color: #a0a5af;
    letter-spacing: 0.02em;
}

.creative-detail-l2-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-top: 4px;
}

.creative-detail-l2-text {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.55;
    margin-top: 6px;
}

.creative-detail-l2-summary {
    margin-top: 8px;
}

.creative-detail-l2-line {
    font-size: 12px;
    color: #374151;
    line-height: 1.45;
    margin-bottom: 4px;
}

.creative-detail-l2-thumbs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.creative-detail-l2-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(113, 62, 255, 0.12);
}

.creative-detail-l2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.creative-detail-l2-actions .btn-primary,
.creative-detail-l2-actions .btn-secondary {
    font-size: 12px;
    padding: 8px 12px;
}

/* L3 中间弹窗：重编辑区 */
.creative-detail-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.creative-detail-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.creative-detail-modal-card {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(85vh, 820px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(113, 62, 255, 0.16);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.creative-detail-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    flex-shrink: 0;
}

.creative-detail-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.creative-detail-modal-body {
    overflow-y: auto;
    padding: 12px 14px 16px;
    -webkit-overflow-scrolling: touch;
}

.creative-detail-modal-body .creative-flow-card,
.creative-detail-modal-body .summary-card {
    width: 100% !important;
    max-width: none !important;
    align-self: stretch !important;
}

.creative-detail-modal-body .intent-editor {
    min-height: 100px;
}

.creative-detail-modal-body .script-editor-textarea {
    min-height: 200px;
}

.creative-archive-modal-body .preset-list {
    max-height: 36vh;
}

.creative-modal-panel[hidden] {
    display: none !important;
}

/* D10.3 对话 chips：白鹤回复里「（候选A / 候选B / 候选C）」可点击 */
.creative-chat-chip-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 2px;
    vertical-align: baseline;
}
.creative-chat-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.30);
    background: rgba(37, 99, 235, 0.06);
    color: #1e3a8a;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.creative-chat-chip:hover {
    background: rgba(37, 99, 235, 0.14);
}
.creative-chat-chip:active {
    transform: translateY(1px);
}

/* ===== Wave-D UI-D1+D2 · 五闸分级进度条 + soft_warn 黄条 ===== */
.creative-qg-bar {
    margin: 8px 16px 4px;
    padding: 6px 12px 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.creative-qg-bar-track {
    display: flex;
    gap: 4px;
    height: 24px;
    align-items: stretch;
}
.creative-qg-seg {
    flex: 1 1 20%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    border-radius: 6px;
    background: #e5e7eb;
    border: 1px solid rgba(15, 23, 42, 0.06);
    cursor: default;
    transition: background 0.2s ease, color 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
}
.creative-qg-seg.is-pass {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
}
.creative-qg-seg.is-soft-warn {
    background: #f59e0b;
    color: #1f2937;
    border-color: #d97706;
}
.creative-qg-seg.is-hard-fail {
    background: #ef4444;
    color: #ffffff;
    border-color: #dc2626;
}
.creative-qg-seg.is-pending {
    background: #e5e7eb;
    color: #6b7280;
}
.creative-qg-soft-warn-row {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    background: rgba(245, 158, 11, 0.10);
    color: #78350f;
    border: 1px solid rgba(245, 158, 11, 0.32);
    display: flex;
    gap: 8px;
    align-items: center;
}
.creative-qg-soft-warn-row.is-hard-fail {
    background: rgba(239, 68, 68, 0.10);
    color: #7f1d1d;
    border-color: rgba(239, 68, 68, 0.36);
}
.creative-qg-soft-warn-row .creative-qg-warn-icon {
    font-size: 14px;
    line-height: 1;
}
.creative-qg-soft-warn-row .creative-qg-warn-text {
    flex: 1;
    min-width: 0;
}
.creative-qg-bar.is-simple-view .creative-qg-bar-track {
    display: none;
}

/* ===== Creative UX v2 · 2026-05-09 ===== */

/* --- P1: 任务魔方折叠态胶囊 --- */
.creative-cube-pill {
    position: fixed;
    right: 28px;
    bottom: 80px;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(244,240,255,0.97));
    border: 1px solid rgba(113,62,255,0.18);
    box-shadow: 0 4px 16px rgba(76,40,199,0.14);
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 600;
    color: #4c28c7;
    transition: box-shadow 0.18s, transform 0.12s;
    font-family: inherit;
}
.creative-cube-pill:hover {
    box-shadow: 0 6px 24px rgba(76,40,199,0.22);
    transform: translateY(-1px);
}
.creative-cube-pill-icon {
    font-size: 14px;
    line-height: 1;
}
.creative-cube-pill-label {
    font-size: 13px;
    font-weight: 600;
}
.creative-cube-pill-count {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    background: rgba(113,62,255,0.08);
    border-radius: 999px;
    padding: 1px 7px;
}
@media (max-width: 640px) {
    .creative-cube-pill { right: 16px; bottom: 72px; }
}

/* --- P3/Thinking: 推理思考折叠块 --- */
.creative-thinking-block {
    border-radius: 10px;
    background: #f8f7ff;
    border: 1px solid rgba(113,62,255,0.10);
    margin-bottom: 6px;
    overflow: hidden;
}
.creative-thinking-block > summary,
.creative-thinking-summary {
    font-size: 12px;
    color: #7c5cbf;
    padding: 6px 12px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.creative-thinking-block > summary::-webkit-details-marker,
.creative-thinking-summary::-webkit-details-marker { display: none; }
.creative-thinking-body {
    font-size: 11px;
    color: #999;
    font-family: monospace;
    padding: 8px 12px 10px;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    border-top: 1px solid rgba(113,62,255,0.06);
}

/* --- P3-2026-05-25: 渐进引导卡 --- */
.creative-guide-card {
    max-width: 520px;
    margin: 12px auto;
    padding: 16px 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #f0f4ff 100%);
    border: 1px solid rgba(113,62,255,0.12);
    border-radius: 14px;
    animation: guideSlideIn 0.3s ease-out;
}
@keyframes guideSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.creative-guide-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.creative-guide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4d4d8;
    transition: background 0.2s;
}
.creative-guide-dot.is-done {
    background: #7c3aed;
}
.creative-guide-dot.is-current {
    background: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167,139,250,0.2);
}
.creative-guide-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px;
    line-height: 1.4;
}
.creative-guide-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 14px;
    line-height: 1.5;
}
.creative-guide-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.creative-guide-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
    border: 1px solid rgba(113,62,255,0.15);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    font-family: inherit;
    font-size: 14px;
}
.creative-guide-option:hover {
    border-color: #7c3aed;
    background: #faf5ff;
}
.creative-guide-option.is-active {
    border-color: #7c3aed;
    background: #ede9fe;
}
.creative-guide-option strong {
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
}
.creative-guide-option small {
    color: #9ca3af;
    font-size: 11px;
    margin-top: 2px;
}
.creative-guide-skip {
    display: block;
    margin: 0 auto;
    padding: 4px 12px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}
.creative-guide-skip:hover {
    color: #6b7280;
    text-decoration: underline;
}

/* --- P4: 质量门禁 details 折叠 summary 行 --- */
.creative-qg-bar > summary.creative-qg-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
    list-style: none;
}
.creative-qg-bar > summary.creative-qg-summary::-webkit-details-marker { display: none; }
.creative-qg-summary-label {
    font-weight: 600;
    color: #4c28c7;
}
details.creative-qg-bar[open] .creative-qg-bar-track {
    margin-top: 4px;
}

/* --- P5: 聊天消息居中布局 + 用户输入吸顶 ---
   注：用 !important 覆盖原文件中 align-self: flex-end/flex-start（L1464-1474）
   top: 64px = .global-nav height（base.css L64），避免被导航栏遮挡 */
.creative-chat-message {
    max-width: min(720px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
}
.creative-chat-message.user {
    align-self: center !important;
    align-items: flex-end;
    margin-left: auto !important;
    margin-right: auto !important;
    background: #f0f2f5;
}
.creative-chat-message.user.is-latest-user {
    position: sticky;
    top: 64px;
    z-index: 4;
    padding-top: 6px;
    padding-bottom: 6px;
}
.creative-chat-message.assistant {
    align-self: center !important;
    align-items: flex-start;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- P4-v2: QG 门禁条折叠态轻量化 --- */
details.creative-qg-bar > summary.creative-qg-summary {
    max-width: fit-content;
    min-width: 180px;
    background: transparent;
    border: none;
    padding: 3px 0;
    font-size: 12px;
    color: #9b8fa6;
    gap: 6px;
}
details.creative-qg-bar > summary.creative-qg-summary:hover {
    color: #6d5f7a;
}
details.creative-qg-bar {
    max-width: fit-content;
}

/* --- P2-v2: 结构化卡折叠态 --- */
.creative-brief-details {
    border: none;
    background: transparent;
    margin: 4px 0 8px;
}
.creative-brief-details > summary.creative-brief-summary {
    list-style: none;
    cursor: pointer;
    font-size: 12px;
    color: #9b8fa6;
    padding: 2px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}
.creative-brief-details > summary.creative-brief-summary::marker,
.creative-brief-details > summary.creative-brief-summary::-webkit-details-marker {
    display: none;
}
.creative-brief-details > summary.creative-brief-summary:hover {
    color: #6d5f7a;
}
.creative-brief-details[open] > summary.creative-brief-summary {
    color: #5a4d6a;
}

/* ============================================================
   2026-05-09 大王令 Round-2：聊天布局对齐（设计契约见 §13 CREATIVE_CENTER_CHAT_MODE_DESIGN）
   P1 输入框/补充信息宽度对齐 720px
   P2 隐藏用户"你"状态栏
   P3 用户气泡撑满容器
   P4 QG门禁条居中
   P5 吸顶用户消息底部渐变遮罩
   ============================================================ */

/* P1: 输入框 & 补充信息宽度与聊天消息主体对齐至 720px */
.creative-chat-panel:not(.is-empty-state) .creative-chat-input-wrap,
.creative-chat-panel:not(.is-empty-state) .creative-chain-options {
    width: min(720px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* P2: 隐藏用户消息顶部"你"角色状态栏 */
.creative-chat-message.user .creative-chat-meta {
    display: none !important;
}

/* P3: 用户消息气泡撑满 720px 容器（配合 P5 遮罩宽度一致） */
.creative-chat-message.user .creative-chat-bubble {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* P4: QG门禁条居中对齐，跟随 720px 主体宽度 */
details.creative-qg-bar {
    max-width: min(720px, 100%) !important;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* P5: 吸顶用户消息底部渐变遮罩 + 实底色块
   与 .creative-chat-composer::before/::after 同构（双层遮罩）
   ::before 实底色块阻断消息流穿透（参考 composer::after bottom:-48px）
   ::after 底部渐变淡出（参考 composer::before 渐变方向适配）
   left/right 各延伸 24px 覆盖 .creative-chat-scroll 两侧 padding */
.creative-chat-message.user.is-latest-user {
    overflow: visible !important;
}
.creative-chat-message.user.is-latest-user::before {
    content: "";
    position: absolute;
    left: -24px;
    right: -24px;
    top: 0;
    bottom: -48px;
    background: #f0f2f5;
    pointer-events: none;
    z-index: -1;
}
.creative-chat-message.user.is-latest-user::after {
    content: "";
    position: absolute;
    left: -24px;
    right: -24px;
    bottom: -20px;
    height: 20px;
    background: linear-gradient(to bottom, #f0f2f5 0%, rgba(240,242,245,0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ===== P3 主动引导 · 一键补全 Action Bar ===== */
.creative-suggested-actions-bar {
    margin: 8px 16px 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    backdrop-filter: blur(6px);
}

.creative-suggested-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #4f46e5;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.24);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.creative-suggested-action-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(139, 92, 246, 0.12));
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.creative-suggested-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.12);
}

.creative-suggested-action-btn.is-loading {
    cursor: wait;
    opacity: 0.75;
    pointer-events: none;
}

.creative-suggested-action-btn.is-loading .creative-suggested-action-icon {
    animation: creative-action-spin 1s linear infinite;
}

.creative-suggested-action-btn.is-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.08));
    border-color: rgba(239, 68, 68, 0.36);
    color: #dc2626;
}

.creative-suggested-action-icon {
    font-size: 15px;
    line-height: 1;
    display: inline-block;
}

.creative-suggested-action-label {
    flex: 1;
    min-width: 0;
}

@keyframes creative-action-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 妈妈视图简化：仅显示按钮，隐藏复杂状态 */
.creative-suggested-actions-bar.is-simple-view .creative-suggested-action-btn {
    font-size: 12px;
    padding: 6px 12px;
}
