/* 图生/换脸右栏队列提示（缩放条左侧） */
.ai-video-queue-ahead-hint {
    flex: 0 1 auto;
    align-self: center;
    font-size: 0.72rem;
    line-height: 1.2;
    color: var(--ws-text-muted, #999999);
    border: 1px solid var(--ws-text-muted, #999999);
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
    margin-right: 4px;
}

.ai-t2v-grid-zoom-row .ai-video-queue-ahead-hint {
    margin-right: auto;
}

.ai-workspace-t2v {
    min-height: calc(100vh - 7.5rem);
}

.ai-t2v-settings-form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ai-t2v-desc {
    color: var(--ws-text-dim);
    font-size: 0.75rem;
    line-height: 1.45;
    margin-top: 2px;
}

.ai-t2v-duration-limit-hint {
    display: block;
    font-size: 0.62rem;
    line-height: 1.35;
    color: rgba(224, 224, 224, 0.42);
}

.ai-t2v-drawr-container {
    position: relative;
    margin: 0 auto;
}

.ai-t2v-drawr-footer {
    justify-content: left;
}

.ai-t2v-i2v-import-row {
    gap: 6px;
}

.ai-t2v-frame-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 10px;
    position: relative;
}

.ai-t2v-frame-title-ref {
    grid-column: 1;
    grid-row: 1;
}

.ai-t2v-frame-title-tail {
    grid-column: 2;
    grid-row: 1;
}

.ai-t2v-frame-preview-ref {
    grid-column: 1;
    grid-row: 2;
}

.ai-t2v-frame-preview-tail {
    grid-column: 2;
    grid-row: 2;
}

.ai-t2v-frame-col-body {
    min-width: 0;
    position: relative;
}

.ai-t2v-relay-status-box {
    margin-bottom: 10px;
    border: 1px solid rgba(120, 154, 255, 0.45);
    border-radius: 10px;
    background: rgba(43, 62, 117, 0.22);
    padding: 8px 10px;
}

.ai-t2v-relay-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ai-t2v-relay-status-title {
    font-size: 0.82rem;
    color: #c9d7ff;
    font-weight: 600;
}

.ai-t2v-relay-status-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: #d7e2ff;
    user-select: none;
}

.ai-t2v-relay-status-switch input {
    width: 14px;
    height: 14px;
    margin: 0;
}

.ai-t2v-relay-status-desc {
    margin-top: 6px;
    font-size: 0.74rem;
    color: #b7c7f4;
    line-height: 1.35;
}

.ai-t2v-frame-transfer-layer {
    z-index: 5;
    pointer-events: none;
}

.ai-t2v-frame-grid > .ai-t2v-frame-transfer-layer {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    align-self: center;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
}

.ai-t2v-frame-transfer-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(73, 82, 97, 0.95) !important;
    background: rgba(215, 222, 232, 0.92) !important;
    color: #1f2937 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28) !important;
    padding: 0;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-t2v-frame-transfer-btn:hover,
.ai-t2v-frame-transfer-btn:focus {
    color: #ffffff !important;
    border-color: #88beff !important;
    background: rgba(19, 57, 116, 0.94) !important;
    box-shadow: 0 10px 22px rgba(10, 42, 92, 0.45) !important;
}

.ai-t2v-frame-transfer-btn i {
    font-size: 1.1rem;
    line-height: 1;
}

.ai-t2v-frame-transfer-btn.is-swap {
    width: 52px;
    height: 60px;
}

.ai-t2v-frame-transfer-double {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ai-t2v-frame-slot {
    position: relative;
}

.ai-t2v-frame-transfer-layer.is-segment-adjacent {
    position: absolute;
    top: 50%;
    z-index: 6;
    pointer-events: none;
}

.ai-t2v-frame-transfer-layer.is-segment-adjacent.is-prev {
    left: 0;
    transform: translate(-50%, -50%);
}

.ai-t2v-frame-transfer-layer.is-segment-adjacent.is-next {
    right: 0;
    transform: translate(50%, -50%);
}

.ai-t2v-i2v-import-btn {
    color: var(--ws-text-dim);
    border-color: var(--ws-input-border);
}

.ai-t2v-i2v-remove-btn {
    color: var(--ws-danger);
}

.ai-t2v-i2v-generate-ref-btn {
    border-color: rgba(91, 176, 255, 0.45) !important;
    background: rgba(52, 130, 224, 0.14) !important;
    color: #8fcbff;
}

.ai-t2v-i2v-generate-ref-btn:hover,
.ai-t2v-i2v-generate-ref-btn:focus {
    border-color: rgba(91, 176, 255, 0.8) !important;
    background: rgba(52, 130, 224, 0.22) !important;
    color: #b3ddff;
}

.ai-t2v-post-tool-dim-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.ai-t2v-post-tool-dim-option .ws-dim-label {
    line-height: 1.2;
}

.ai-t2v-region-mask-grid {
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 8px;
}

.ai-t2v-region-mask-option {
    min-height: 36px !important;
    padding: 7px 10px !important;
    border-radius: 999px !important;
    border-color: rgba(111, 226, 188, 0.24) !important;
    background: rgba(111, 226, 188, 0.07) !important;
    color: rgba(213, 247, 238, 0.78) !important;
    box-shadow: none !important;
}

.ai-t2v-region-mask-option .ws-dim-label {
    font-size: 0.78rem;
    line-height: 1.15;
    font-weight: 600;
}

.ai-t2v-region-mask-option:hover,
.ai-t2v-region-mask-option:focus {
    border-color: rgba(111, 226, 188, 0.5) !important;
    background: rgba(111, 226, 188, 0.12) !important;
    color: #e8fff8 !important;
}

.ai-t2v-region-mask-option.active {
    border-color: rgba(74, 222, 178, 0.88) !important;
    background: rgba(38, 166, 133, 0.28) !important;
    color: #d9fff4 !important;
    box-shadow: inset 0 0 0 1px rgba(171, 255, 229, 0.16) !important;
}

.ai-t2v-post-tool-accordion {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: rgba(10, 12, 18, 0.45) !important;
}

.ai-t2v-post-tool-card {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.ai-t2v-post-tool-card + .ai-t2v-post-tool-card {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ai-t2v-post-tool-card-header {
    padding: 0 !important;
    border: 0 !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.ai-t2v-post-tool-card-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none !important;
    color: #e7ecf7 !important;
}

.ai-t2v-post-tool-card-trigger:hover,
.ai-t2v-post-tool-card-trigger:focus {
    color: #f4f7ff !important;
    background: rgba(108, 92, 231, 0.12) !important;
}

.ai-t2v-post-tool-card-header.is-enabled .ai-t2v-post-tool-card-trigger {
    color: #f4f7ff !important;
    background: rgba(108, 92, 231, 0.12) !important;
}

.ai-t2v-post-tool-card-title {
    font-weight: 700;
}

.ai-t2v-post-tool-card-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ai-t2v-post-tool-card-chevron {
    font-size: 12px;
    color: #a9b7d6;
    transition: transform .2s ease, color .2s ease;
}

.ai-t2v-post-tool-card-chevron.is-open {
    transform: rotate(180deg);
    color: #d9e4ff;
}

.ai-t2v-post-tool-card-body {
    padding: 12px !important;
    background: rgba(7, 9, 14, 0.58) !important;
}

.ai-t2v-post-tool-enable-switch {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-t2v-test-zone-token-hint {
    line-height: 1.45;
}

.ai-t2v-post-token-breakdown {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 18, 0.55);
}

.ai-t2v-post-token-breakdown-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e7ecf7;
    margin-bottom: 6px;
}

.ai-t2v-post-token-breakdown-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.74rem;
    line-height: 1.45;
    padding: 3px 0;
}

.ai-t2v-post-token-breakdown-row + .ai-t2v-post-token-breakdown-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-t2v-post-token-breakdown-k {
    color: #c7cfdf;
    flex: 1 1 auto;
    min-width: 0;
}

.ai-t2v-post-token-breakdown-v {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.74rem;
}

.ai-t2v-post-token-breakdown-foot {
    margin-top: 8px;
    line-height: 1.45;
}

.ai-t2v-role-card-wrap {
    margin-top: 12px;
}

.ai-t2v-role-card-auto-char-setting {
    margin-top: 2px;
}

.ai-t2v-role-card-auto-char-post-hint {
    line-height: 1.45;
}

.ai-t2v-role-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.ai-t2v-role-card-slot {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 2px dashed rgba(255, 255, 255, 0.26);
    border-radius: 12px;
    background-color: rgba(11, 13, 17, 0.92);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.ai-t2v-role-card-slot:hover {
    border-color: rgba(173, 143, 255, 0.86);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.ai-t2v-role-card-slot.has-image {
    border-style: solid;
    border-color: rgba(173, 143, 255, 0.6);
}

.ai-t2v-role-card-slot-token {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 4px 4px 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
    pointer-events: none;
    background: linear-gradient(to top, rgba(8, 10, 14, 0.94) 0%, rgba(8, 10, 14, 0.55) 55%, rgba(8, 10, 14, 0) 100%);
}

.ai-t2v-role-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #d9deeb;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    background: rgba(13, 16, 24, 0.54);
    opacity: 1;
    transition: background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.ai-t2v-role-card-slot:hover .ai-t2v-role-card-overlay {
    background: rgba(21, 28, 44, 0.62);
    color: #ffffff;
}

.ai-t2v-role-card-slot.has-image .ai-t2v-role-card-overlay {
    opacity: 0;
    background: rgba(12, 16, 24, 0.2);
}

.ai-t2v-role-card-slot.has-image:hover .ai-t2v-role-card-overlay {
    opacity: 1;
    background: rgba(21, 28, 44, 0.56);
}

.ai-t2v-role-card-overlay i {
    font-size: 1rem;
}

.ai-t2v-role-card-slot-toolbar {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    pointer-events: none;
}

.ai-t2v-role-card-slot-toolbar .btn {
    pointer-events: auto;
}

.ai-t2v-role-card-rotate-btn,
.ai-t2v-role-card-remove-btn {
    position: static;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(9, 10, 13, 0.78) !important;
    color: #f3f4f7 !important;
    padding: 0 !important;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
}

.ai-t2v-role-card-rotate-btn i,
.ai-t2v-role-card-remove-btn i {
    font-size: 11px;
    line-height: 1;
    width: 1em;
    height: 1em;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ai-t2v-role-card-rotate-btn:hover,
.ai-t2v-role-card-rotate-btn:focus {
    background: rgba(36, 72, 124, 0.94) !important;
    border-color: rgba(132, 182, 255, 0.72) !important;
    color: #fff !important;
}

.ai-t2v-role-card-rotate-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ai-t2v-role-card-remove-btn:hover,
.ai-t2v-role-card-remove-btn:focus {
    background: rgba(139, 36, 36, 0.94) !important;
    border-color: rgba(255, 132, 132, 0.72) !important;
    color: #fff !important;
}

.ai-t2v-role-card-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.ai-t2v-role-card-save-btn {
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(124, 92, 255, 0.14) !important;
    color: #e7dbff !important;
    font-size: 12px;
    padding: 5px 10px;
}

.ai-t2v-role-card-save-btn:hover,
.ai-t2v-role-card-save-btn:focus {
    border-color: rgba(173, 143, 255, 0.65) !important;
    background: rgba(124, 92, 255, 0.24) !important;
    color: #fff !important;
}

.ai-t2v-face-card-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ai-t2v-face-card-modal {
    width: min(520px, 96vw);
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.ai-t2v-face-card-modal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ai-t2v-face-card-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.ai-t2v-face-card-save-mode-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-t2v-face-card-save-mode-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 12px;
}

.ai-t2v-face-card-save-mode-btn.is-active,
.ai-t2v-face-card-save-mode-btn:hover,
.ai-t2v-face-card-save-mode-btn:focus {
    border-color: #7c5cff;
    color: #4a38b8;
    background: #f3f0ff;
}

.ai-t2v-face-card-overwrite-tip {
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 12px;
}

.ai-t2v-face-card-import-modal {
    max-height: 86vh;
    overflow: auto;
}

.ai-t2v-face-card-import-loading,
.ai-t2v-face-card-import-empty {
    padding: 12px 4px;
    color: #6b7280;
}

.ai-t2v-face-card-import-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.ai-t2v-face-card-import-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
}

.ai-t2v-face-card-import-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.ai-t2v-face-card-import-name {
    font-weight: 600;
    font-size: 14px;
}

.ai-t2v-face-card-import-count {
    color: #6b7280;
    font-size: 12px;
}

.ai-t2v-face-card-import-desc {
    color: #4b5563;
    font-size: 12px;
    margin-bottom: 8px;
}

.ai-t2v-face-card-import-grid {
    gap: 6px;
}

.ai-t2v-face-card-import-slot {
    border-width: 1px;
    border-radius: 8px;
    cursor: default;
}

.ai-t2v-face-card-import-slot:hover {
    transform: none;
    box-shadow: none;
}

.ai-t2v-face-card-import-slot .ai-t2v-role-card-overlay,
.ai-t2v-face-card-import-slot .ai-t2v-role-card-remove-btn {
    display: none !important;
}

.ai-t2v-face-card-import-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.ai-t2v-face-card-overwrite-list {
    max-height: 50vh;
    overflow: auto;
}

.ai-t2v-face-card-overwrite-item {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ai-t2v-face-card-overwrite-item:hover {
    border-color: #7c5cff;
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.16);
}

.ai-t2v-face-card-overwrite-item.is-active {
    border-color: #7c5cff;
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.2);
}

.ai-t2v-face-card-overwrite-item.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 960px) {
    .ai-t2v-frame-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .ai-t2v-frame-title-ref,
    .ai-t2v-frame-title-tail,
    .ai-t2v-frame-preview-ref,
    .ai-t2v-frame-preview-tail {
        grid-column: 1;
        grid-row: auto;
    }

    .ai-t2v-frame-grid > .ai-t2v-frame-transfer-layer,
    .ai-t2v-frame-transfer-layer.is-segment-adjacent {
        display: none;
    }
}

.ai-t2v-textarea {
    min-height: 80px;
    max-height: 200px;
}

.ai-t2v-textarea:focus {
    box-shadow: none;
}

.ai-t2v-submit-row {
    margin-top: 8px;
}

.ai-t2v-post-swap-rotation-help {
    margin-left: 4px;
    font-size: 0.9rem;
    line-height: 1;
    vertical-align: middle;
}

.ai-workspace-t2v .ai-t2v-post-swap-rotation-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-workspace-t2v .ai-t2v-post-source-video-box--rotated {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 120px;
}

.ai-workspace-t2v .ai-t2v-post-source-video-box--rot-90 .ai-t2v-post-source-video,
.ai-workspace-t2v .ai-t2v-post-source-video-box--rot-270 .ai-t2v-post-source-video {
    transform-origin: center center;
    max-height: none;
    width: auto;
    height: min(62vw, 280px);
}

.ai-workspace-t2v .ai-t2v-post-source-video-box--rot-90 .ai-t2v-post-source-video {
    transform: rotate(90deg);
}

.ai-workspace-t2v .ai-t2v-post-source-video-box--rot-180 .ai-t2v-post-source-video {
    transform: rotate(180deg);
}

.ai-workspace-t2v .ai-t2v-post-source-video-box--rot-270 .ai-t2v-post-source-video {
    transform: rotate(270deg);
}

.ai-workspace-t2v .ai-t2v-post-source-video-box--rot-90,
.ai-workspace-t2v .ai-t2v-post-source-video-box--rot-270 {
    min-height: min(62vw, 280px);
}

.ai-t2v-post-source-rotation-preview-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    color: #e8e0ff;
    background: rgba(80, 50, 130, 0.82);
    border: 1px solid rgba(180, 150, 255, 0.35);
    pointer-events: none;
}

.ai-t2v-submit-btn {
    min-width: 0;
}

.ai-t2v-results-empty {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ai-t2v-result-item {
    color: var(--ws-text-dim);
    font-size: 0.78rem;
    margin-top: 6px;
}

.ai-t2v-result-key {
    color: var(--ws-text-muted);
}

.ai-t2v-meta-line {
    color: var(--ws-text-muted);
    font-size: 0.72rem;
    margin: 2px 0 6px;
}

.ai-t2v-processing-bar {
    width: 100%;
}

.ai-t2v-result-video {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.ai-t2v-result-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.ai-t2v-result-poster-bg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    background-color: #000;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.ai-t2v-video-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.ai-t2v-preview-box {
    position: relative;
    cursor: pointer;
}

.ai-t2v-queue-ref-box {
    position: relative;
}

.ai-t2v-queue-ref-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.42);
    pointer-events: none;
    padding: 10px;
}

.ai-t2v-queue-ref-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.ai-t2v-processing-overlay {
    flex-direction: column;
    gap: 10px;
}

.ai-t2v-processing-text {
    display: block;
}

.ai-t2v-queue-safe-tip {
    display: block;
    max-width: min(88%, 360px);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.ai-t2v-processing-progress {
    width: min(76%, 300px);
    margin: 0;
    background: rgba(255, 255, 255, 0.2);
}

.ai-t2v-video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.32);
    pointer-events: none;
}

.ai-t2v-video-loading .spinner-border {
    width: 1.35rem;
    height: 1.35rem;
    border-width: 0.16rem;
}

.ai-t2v-grid-zoom-row {
    margin-bottom: 10px;
}

.ai-t2v-grid-zoom-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.ai-t2v-grid-cols-tip {
    color: var(--ws-text-muted);
    font-size: 0.72rem;
    min-width: 12px;
    text-align: center;
}

.ai-t2v-results-toolbar-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ai-t2v-multi-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-t2v-result-filter-wrap {
    position: relative;
}

.ai-t2v-result-filter-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 40;
    min-width: 148px;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--ws-border);
    background: var(--ws-panel);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ai-t2v-result-filter-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--ws-text);
    font-size: 0.74rem;
    text-align: left;
    cursor: pointer;
}

.ai-t2v-result-filter-option:hover,
.ai-t2v-result-filter-option:focus {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.ai-t2v-result-filter-option.is-active {
    background: rgba(127, 143, 255, 0.18);
    color: #c8ceff;
    font-weight: 600;
}

.ai-t2v-result-filter-trigger.is-active {
    border-color: rgba(127, 143, 255, 0.75);
    color: #c8ceff;
}

.ai-t2v-multi-btn {
    font-size: 0.72rem;
    line-height: 1.15;
    padding: 4px 8px;
    border-radius: 6px;
}

.ai-t2v-result-grid {
    display: grid;
    gap: 10px;
}

.ai-t2v-result-col {
    min-width: 0;
}

.ai-t2v-result-col-inner {
    height: 100%;
    background: var(--ws-panel);
    border: 1px solid var(--ws-border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ai-t2v-result-col-inner:hover {
    border-color: rgba(127, 143, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(127, 143, 255, 0.55), 0 8px 22px rgba(8, 12, 26, 0.32);
    transform: translateY(-1px);
}

.ai-t2v-result-col-inner.is-multi-select-clickable,
.ai-t2v-result-col-inner.is-multi-select-clickable * {
    cursor: pointer;
}

.ai-t2v-result-col-inner.is-multi-selected {
    border-color: #7f8fff;
    box-shadow: 0 0 0 1px rgba(127, 143, 255, 0.75), 0 0 14px rgba(127, 143, 255, 0.28);
}

.ai-t2v-i2v-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-t2v-i2v-preview {
    width: 100%;
    border: 1px solid var(--ws-border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.ai-t2v-i2v-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    background: #0f1116;
}

.ai-t2v-strict-upload-box {
    width: 100%;
    min-height: 190px;
    border: 2px dashed rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(11, 13, 17, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ws-text-muted);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.ai-t2v-strict-upload-box:hover {
    border-color: rgba(173, 143, 255, 0.65);
    background: rgba(15, 17, 24, 0.96);
    color: #d8c8ff;
}

.ai-t2v-strict-upload-box i {
    font-size: 2.2rem;
    line-height: 1;
}

.ai-t2v-strict-upload-box p {
    margin: 0;
    font-size: 1.95rem;
    line-height: 1.1;
    font-weight: 500;
}

.ai-t2v-strict-upload-box small {
    font-size: 0.78rem;
    color: var(--ws-text-muted);
}

.ai-t2v-segment-continuity-first-frame-box i {
    color: #b8a4ff;
}

.ai-t2v-segment-continuity-first-frame-box p {
    max-width: 92%;
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 400;
    text-align: center;
}

/* i2v 左右两栏：有图/无图状态统一容器高度 */
.ai-workspace-t2v .ws-i2i-preview {
    margin-bottom: 0;
    border-radius: 16px;
}

.ai-workspace-t2v .ws-i2i-preview-image {
    padding-top: 0;
    min-height: 190px;
    border-radius: 16px;
}

.ai-workspace-t2v .ws-i2i-preview-image.ai-t2v-relay-first-frame-locked {
    cursor: default;
    pointer-events: none;
}

.ai-i2v-paste-layer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.ai-i2v-paste-layer-panel {
    width: min(920px, calc(100vw - 36px));
    background: #0f1116;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
    padding: 14px 14px 12px;
}

.ai-i2v-paste-layer-title {
    color: #f5f7fb;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ai-i2v-paste-layer-desc {
    color: #c9d2e4;
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.ai-i2v-paste-layer-tip {
    color: #9fb0cc;
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.ai-i2v-paste-layer-grid {
    display: grid;
    gap: 12px;
}

.ai-i2v-paste-layer-section-title {
    color: #e5e9f3;
    font-size: 0.84rem;
    font-weight: 700;
    margin: 8px 0 6px 0;
}

.ai-i2v-paste-layer-section-desc {
    color: #9fb0cc;
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 8px;
}

.ai-i2v-paste-layer-grid-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-i2v-paste-layer-grid-role {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-i2v-paste-layer-panel--post-reactor .ai-i2v-paste-layer-grid--post-reactor .ai-i2v-paste-layer-card-box {
    min-height: 104px !important;
}

.ai-i2v-paste-layer-panel--post-reactor .ai-i2v-paste-layer-grid--post-reactor .ai-i2v-paste-layer-card-overlay i {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.35rem !important;
}

.ai-i2v-paste-layer-panel--post-reactor .ai-i2v-paste-layer-grid--post-reactor .ai-i2v-paste-layer-card-overlay span {
    font-size: 0.78rem !important;
}

.ai-i2v-paste-layer-card {
    min-width: 0;
    cursor: pointer;
}

.ai-i2v-paste-layer-card-label {
    color: #e5e9f3;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.ai-i2v-paste-layer-card-box {
    position: relative;
    min-height: 170px;
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.26);
    background: linear-gradient(180deg, rgba(30, 34, 45, 0.95), rgba(20, 23, 31, 0.95));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ai-i2v-paste-layer-card-box.has-image {
    border-style: solid;
    border-color: rgba(170, 130, 255, 0.45);
}

.ai-i2v-paste-layer-card:hover .ai-i2v-paste-layer-card-box {
    border-color: rgba(176, 140, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}

.ai-i2v-paste-layer-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
}

.ai-i2v-paste-layer-card-overlay i {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
}

.ai-i2v-paste-layer-card-overlay span {
    font-size: 0.88rem;
    letter-spacing: 0.2px;
}

.ai-i2v-paste-layer-card--paste-disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.62;
}

.ai-i2v-paste-layer-card--paste-disabled .ai-i2v-paste-layer-card-box:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.22);
}

.ai-i2v-paste-layer-card-locked-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 8px 10px;
    font-size: 0.68rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.72);
    text-align: center;
    font-weight: 600;
}

.ai-workspace-t2v .ai-t2v-post-upload-zone {
    margin-bottom: 16px;
}
.ai-workspace-t2v .ai-t2v-post-upload-zone--flash {
    animation: ai-t2v-post-zone-flash 1.5s ease;
}
@keyframes ai-t2v-post-zone-flash {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.0);
        background: rgba(108, 99, 255, 0.0);
    }
    25% {
        box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.65);
        background: rgba(108, 99, 255, 0.08);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.0);
        background: rgba(108, 99, 255, 0.0);
    }
}
.ai-workspace-t2v .ai-t2v-post-upload-dropzone {
    color: var(--ws-text-muted);
    border: 2px dashed rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    padding: 26px 16px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
}
.ai-workspace-t2v .ai-t2v-post-upload-dropzone i {
    font-size: 26px;
    margin-bottom: 8px;
}
.ai-workspace-t2v .ai-t2v-post-upload-dropzone p {
    margin: 0;
    font-weight: 600;
}
.ai-workspace-t2v .ai-t2v-post-upload-dropzone small {
    display: block;
    margin-top: 4px;
    opacity: 0.86;
}
.ai-workspace-t2v .ai-t2v-post-source-preview {
    margin-top: 10px;
}
.ai-workspace-t2v .ai-video-post-source-empty {
    width: 100%;
    min-height: 132px;
    margin-top: 10px;
    border: 2px dashed rgba(124, 92, 255, 0.58);
    border-radius: 12px;
    background: rgba(124, 92, 255, 0.08);
    color: var(--ws-text, #e0e0e0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.ai-workspace-t2v .ai-video-post-source-empty:hover {
    border-color: rgba(124, 92, 255, 0.9);
    background: rgba(124, 92, 255, 0.14);
    transform: translateY(-1px);
}
.ai-workspace-t2v .ai-video-post-source-empty-plus {
    font-size: 44px;
    line-height: 1;
    font-weight: 700;
    color: var(--ws-accent-hover, #7b73ff);
}
.ai-workspace-t2v .ai-video-post-source-empty-text {
    font-size: 14px;
    font-weight: 700;
}
.ai-workspace-t2v .ai-t2v-post-source-player-group {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    overflow: hidden;
    background: #0c0c0c;
}
.ai-workspace-t2v .ai-t2v-post-source-video-box {
    border-radius: 0;
    overflow: hidden;
    background: #111;
}
.ai-workspace-t2v .ai-t2v-post-source-video {
    width: 100%;
    max-height: 220px;
    display: block;
    vertical-align: top;
}
.ai-workspace-t2v .ai-t2v-post-source-buffer-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    text-align: center;
    background: rgba(10, 10, 10, 0.96);
}
.ai-workspace-t2v .ai-t2v-post-source-buffer-text {
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    max-width: 280px;
}
.ai-workspace-t2v .ai-t2v-post-source-meta {
    margin-top: 8px;
}
.ai-workspace-t2v .ai-t2v-post-source-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}
.ai-workspace-t2v .ai-t2v-post-source-controls {
    margin-top: 0;
    padding: 8px 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-workspace-t2v .ai-t2v-post-source-controls-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
}
.ai-workspace-t2v .ai-t2v-post-source-controls-row-ab {
    justify-content: space-between;
}
.ai-workspace-t2v .ai-t2v-post-source-controls-row-play {
    flex-wrap: nowrap;
}
.ai-workspace-t2v .ai-t2v-post-play-toggle {
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: 42px;
    width: 42px;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.ai-workspace-t2v .ai-t2v-post-icon-btn {
    flex-shrink: 0;
    width: 42px;
    min-width: 42px;
    height: 34px;
    padding-left: 0;
    padding-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ai-workspace-t2v .ai-t2v-post-icon-btn i {
    font-size: 14px;
}
.ai-workspace-t2v .ai-t2v-post-segment-btn {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    max-width: 120px;
    line-height: 1.15;
    padding-top: 4px;
    padding-bottom: 4px;
}
.ai-workspace-t2v .ai-t2v-post-segment-btn-title {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.92;
}
.ai-workspace-t2v .ai-t2v-post-segment-btn-time {
    font-size: 10px;
    font-family: ui-monospace, monospace;
    margin-top: 2px;
    opacity: 0.85;
    word-break: break-all;
    text-align: center;
}
.ai-workspace-t2v .ai-t2v-post-segment-duration-chip {
    min-width: 132px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 4px 8px;
    text-align: center;
    align-self: center;
    background: rgba(255, 255, 255, 0.04);
}
.ai-workspace-t2v .ai-t2v-post-segment-duration-title {
    display: block;
    font-size: 11px;
    opacity: 0.88;
}
.ai-workspace-t2v .ai-t2v-post-segment-duration-value {
    display: block;
    font-size: 12px;
    font-family: ui-monospace, monospace;
    margin-top: 2px;
}
.ai-workspace-t2v .ai-t2v-post-loop-btn.is-active {
    border-color: rgba(72, 199, 116, 0.85);
    color: rgba(72, 199, 116, 1);
    box-shadow: 0 0 0 1px rgba(72, 199, 116, 0.35) inset;
}
.ai-workspace-t2v .ai-t2v-post-jump-btn {
    min-width: 42px;
    font-family: ui-monospace, monospace;
}
.ai-workspace-t2v .ai-t2v-post-fullscreen-btn {
    min-width: 42px;
}
.ai-workspace-t2v .ai-t2v-post-fullscreen-rotation-wrap {
    position: relative;
    display: none;
    align-items: center;
}
.ai-workspace-t2v .ai-t2v-post-source-player-group:fullscreen .ai-t2v-post-fullscreen-rotation-wrap,
.ai-workspace-t2v .ai-t2v-post-source-player-group:-webkit-full-screen .ai-t2v-post-fullscreen-rotation-wrap {
    display: inline-flex;
}
.ai-workspace-t2v .ai-t2v-post-fullscreen-rotation-btn.is-active {
    border-color: rgba(180, 150, 255, 0.85);
    color: rgba(210, 190, 255, 1);
    box-shadow: 0 0 0 1px rgba(180, 150, 255, 0.35) inset;
}
.ai-workspace-t2v .ai-t2v-post-fullscreen-rotation-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-width: 168px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(24, 24, 32, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.ai-workspace-t2v .ai-t2v-post-fullscreen-rotation-option {
    min-width: 0;
    padding: 6px 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
}
.ai-workspace-t2v .ai-t2v-post-fullscreen-rotation-option.active {
    border-color: rgba(180, 150, 255, 0.85);
    background: rgba(80, 50, 130, 0.55);
    color: #f0eaff;
}
.ai-workspace-t2v .ai-t2v-post-fullscreen-rotation-option:hover {
    border-color: rgba(255, 255, 255, 0.32);
}
.ai-workspace-t2v .ai-t2v-post-source-player-group:fullscreen .ai-t2v-post-fullscreen-rotation-popover,
.ai-workspace-t2v .ai-t2v-post-source-player-group:-webkit-full-screen .ai-t2v-post-fullscreen-rotation-popover {
    z-index: 20001;
}
.ai-workspace-t2v .ai-t2v-post-segment-btn-inline {
    display: none;
}
.ai-workspace-t2v .ai-t2v-post-segment-mark-label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    font-family: inherit;
}
.ai-workspace-t2v .ai-t2v-post-seek-column {
    flex: 1;
    min-width: 64px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
}
.ai-workspace-t2v .ai-t2v-post-seek-wrap {
    position: relative;
    width: 100%;
    height: 22px;
    --ai-post-ab-left-pct: 0%;
    --ai-post-ab-width-pct: 0%;
    --ai-post-played-pct: 0%;
}
.ai-workspace-t2v .ai-t2v-post-seek-timecode {
    width: 100%;
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
    font-family: ui-monospace, monospace;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}
.ai-workspace-t2v .ai-t2v-post-seek-timecode.ai-t2v-post-segment-btn-time {
    margin-top: 0;
    font-size: 10px;
    opacity: 0.85;
}
.ai-workspace-t2v .ai-t2v-post-seek-layers {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    pointer-events: none;
}
.ai-workspace-t2v .ai-t2v-post-seek-track-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.18);
}
.ai-workspace-t2v .ai-t2v-post-seek-buffered {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.38);
}
.ai-workspace-t2v .ai-t2v-post-seek-ab-range {
    position: absolute;
    left: var(--ai-post-ab-left-pct);
    width: var(--ai-post-ab-width-pct);
    top: 0;
    bottom: 0;
    background: rgba(72, 199, 116, 0.92);
}
.ai-workspace-t2v .ai-t2v-post-seek-played {
    position: absolute;
    left: 0;
    width: var(--ai-post-played-pct);
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.12);
}
.ai-workspace-t2v .ai-t2v-post-seek-range {
    position: absolute;
    left: 0;
    right: 0;
    top: 40%;
    width: 100%;
    height: 16px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
    transform: translateY(-50%);
}

.ai-workspace-t2v .ai-t2v-post-seek-range:focus {
    outline: none;
}
.ai-workspace-t2v .ai-t2v-post-seek-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    margin-top: 0;
    border-radius: 50%;
    background: #e8e8f0;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.ai-workspace-t2v .ai-t2v-post-seek-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e8e8f0;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.ai-workspace-t2v .ai-t2v-post-seek-range::-webkit-slider-runnable-track {
    height: 6px;
    margin: 5px 0;
    background: transparent;
}
.ai-workspace-t2v .ai-t2v-post-seek-range::-moz-range-track {
    height: 6px;
    background: transparent;
}
.ai-workspace-t2v .ai-t2v-post-source-player-group:fullscreen .ai-t2v-post-source-video,
.ai-workspace-t2v .ai-t2v-post-source-player-group:-webkit-full-screen .ai-t2v-post-source-video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}
.ai-workspace-t2v .ai-t2v-post-source-player-group:fullscreen,
.ai-workspace-t2v .ai-t2v-post-source-player-group:-webkit-full-screen {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    overflow: visible;
}

.ai-workspace-t2v .ai-t2v-post-source-player-group:fullscreen .tooltip,
.ai-workspace-t2v .ai-t2v-post-source-player-group:-webkit-full-screen .tooltip {
    z-index: 20000;
    pointer-events: none;
}
.ai-workspace-t2v .ai-t2v-post-source-player-group:fullscreen .ai-t2v-post-source-video-box,
.ai-workspace-t2v .ai-t2v-post-source-player-group:-webkit-full-screen .ai-t2v-post-source-video-box {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.ai-workspace-t2v .ai-t2v-post-source-player-group:fullscreen .ai-t2v-post-source-controls,
.ai-workspace-t2v .ai-t2v-post-source-player-group:-webkit-full-screen .ai-t2v-post-source-controls {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
}
.ai-workspace-t2v .ai-t2v-post-source-player-group:fullscreen .ai-t2v-post-source-controls-row,
.ai-workspace-t2v .ai-t2v-post-source-player-group:-webkit-full-screen .ai-t2v-post-source-controls-row {
    flex-wrap: nowrap;
    width: auto;
}
.ai-workspace-t2v .ai-t2v-post-source-player-group:fullscreen .ai-t2v-post-source-controls-row-play,
.ai-workspace-t2v .ai-t2v-post-source-player-group:-webkit-full-screen .ai-t2v-post-source-controls-row-play {
    flex: 1;
}
.ai-workspace-t2v .ai-t2v-post-source-player-group:fullscreen .ai-t2v-post-segment-btn-main,
.ai-workspace-t2v .ai-t2v-post-source-player-group:-webkit-full-screen .ai-t2v-post-segment-btn-main {
    display: none;
}
.ai-workspace-t2v .ai-t2v-post-source-player-group:fullscreen .ai-t2v-post-source-controls-row-ab,
.ai-workspace-t2v .ai-t2v-post-source-player-group:-webkit-full-screen .ai-t2v-post-source-controls-row-ab {
    flex: 0 0 auto;
}
.ai-workspace-t2v .ai-t2v-post-source-player-group:fullscreen .ai-t2v-post-segment-btn-inline,
.ai-workspace-t2v .ai-t2v-post-source-player-group:-webkit-full-screen .ai-t2v-post-segment-btn-inline {
    display: inline-flex;
}
.ai-workspace-t2v .ai-t2v-post-uploading-hint {
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.9;
}
.ai-workspace-t2v .ai-t2v-post-repo-upload-row {
    margin-top: 6px;
}
.ai-workspace-t2v .ai-t2v-post-repo-progress {
    height: 1.25rem;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}
.ai-workspace-t2v .ai-t2v-uploaded-videos-scroll {
    min-width: 0;
    overflow-x: hidden;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
}
.ai-workspace-t2v .ai-t2v-uploaded-video-item-main {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-item-actions {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-item-primary-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-item-sales-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-item-actions .btn-outline-secondary {
    background: var(--ws-input-bg, #1f1f1f);
    border-color: var(--ws-input-border, rgba(255, 255, 255, 0.16));
    color: var(--ws-text-dim, #999999);
    border-radius: 999px;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-item-actions .btn-outline-secondary:hover,
.ai-workspace-t2v .ai-t2v-uploaded-video-item-actions .btn-outline-secondary:focus {
    background: rgba(108, 99, 255, 0.14);
    border-color: var(--ws-accent, #6c63ff);
    color: #fff;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-stage-action--sales {
    border-color: rgba(40, 167, 69, 0.72);
    color: #5dd879;
    background: rgba(40, 167, 69, 0.08);
    border-radius: 999px;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-stage-action--sales:hover,
.ai-workspace-t2v .ai-t2v-uploaded-video-stage-action--sales:focus {
    background: rgba(40, 167, 69, 0.18);
    border-color: #28a745;
    color: #7ae092;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-stage-delete {
    white-space: nowrap;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-stage-action {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ai-workspace-t2v a.ai-t2v-uploaded-video-stage-action {
    text-decoration: none;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-cover {
    width: 128px;
    min-width: 96px;
    max-width: 38%;
    flex-shrink: 0;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-cover-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-meta {
    min-width: 0;
    flex: 1;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-title {
    display: block;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-workspace-t2v .ai-t2v-uploaded-video-title-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    overflow: visible;
    white-space: normal;
}

.ai-workspace-t2v .ai-media-asset-remark-head {
    width: 100%;
    min-width: 0;
    margin-top: 0;
}

.ai-workspace-t2v .ai-media-asset-remark-title {
    font-size: 13px;
    font-weight: 600;
}

.ai-workspace-t2v .ai-media-asset-remark-text {
    flex: 1;
    min-width: 0;
}

.ai-workspace-t2v .ai-media-asset-resolution-line {
    margin-top: 2px;
}

.ai-workspace-t2v .ai-media-asset-remark-btn {
    background: var(--ws-input-bg, #1f1f1f);
    border-color: var(--ws-input-border, rgba(255, 255, 255, 0.16));
    color: var(--ws-text-dim, #999999);
}

.ai-workspace-t2v .ai-media-asset-remark-edit {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.ai-workspace-t2v .ai-media-asset-remark-input {
    flex: 1;
    min-width: 0;
    width: auto;
}

.ai-workspace-t2v .ai-media-asset-remark-confirm-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ai-workspace-t2v .ai-t2v-uploaded-video-title-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: text;
    cursor: text;
    word-break: break-all;
}

.ai-workspace-t2v a.ai-t2v-uploaded-video-title-detail {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    user-select: none;
}

.ai-workspace-t2v a.ai-t2v-uploaded-video-title-detail:hover {
    color: #fff;
    border-color: rgba(108, 99, 255, 0.55);
}

.ai-workspace-t2v .ai-t2v-result-post-actions {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.ai-workspace-t2v .ai-t2v-result-post-actions-primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ai-workspace-t2v .ai-t2v-result-post-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    border-radius: 999px;
    background: var(--ws-input-bg, #1f1f1f);
    border-color: var(--ws-input-border, rgba(255, 255, 255, 0.16));
    color: var(--ws-text-dim, #999999);
}

.ai-workspace-t2v .ai-t2v-result-post-action:hover,
.ai-workspace-t2v .ai-t2v-result-post-action:focus {
    background: rgba(108, 99, 255, 0.14);
    border-color: var(--ws-accent, #6c63ff);
    color: #fff;
}

.ai-workspace-t2v a.ai-t2v-result-post-action {
    text-decoration: none;
}
.ai-workspace-t2v .ai-t2v-uploaded-video-sub {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ai-t2v-result-text {
    
}

.ai-t2v-media-slot {
    margin-top: 8px;
}

.ai-t2v-job-role-card-wrap {
    margin: 0 0 8px 0;
}

.ai-t2v-job-role-card-grid {
    gap: 6px;
}

.ai-t2v-job-role-card-slot {
    border-width: 1px;
    border-radius: 8px;
    cursor: default;
}

.ai-t2v-job-role-card-slot:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(173, 143, 255, 0.6);
}

.ai-t2v-task-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
    .ai-t2v-task-grid {
        grid-template-columns: 1fr;
    }

    .ai-workspace-video-post .ai-t2v-uploaded-videos-stack,
    .ai-workspace-video-post .ai-t2v-uploaded-videos-scroll,
    .ai-workspace-video-post .ai-video-post-jobs-panel .ws-tab-content-scroll {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .ai-workspace-video-post .ai-t2v-uploaded-videos-scroll {
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    .ai-workspace-video-post .ai-t2v-uploaded-videos-stack .mx-3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .ai-workspace-video-post .ai-t2v-uploaded-video-cover {
        width: 96px;
        min-width: 80px;
        max-width: 32%;
        height: 54px;
    }

    .ai-workspace-video-post .ai-t2v-uploaded-video-title,
    .ai-workspace-video-post .ai-t2v-uploaded-video-title-text {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
    }

    /* 图生视频：窄屏隐藏结果区缩放条，任务卡片单列 */
    .ai-workspace-i2v .ai-t2v-grid-zoom-controls {
        display: none;
    }

    .ai-workspace-i2v .ai-t2v-grid-zoom-row {
        justify-content: flex-end;
        gap: 6px;
        padding-left: 0;
        padding-right: 0;
    }

    .ai-workspace-i2v .ai-t2v-result-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    /* 换脸页：窄屏隐藏换脸任务缩放条，换脸任务 / 我的图生视频 均单列卡片 */
    .ai-workspace-video-post .ai-t2v-grid-zoom-controls {
        display: none;
    }

    .ai-workspace-video-post .ai-t2v-grid-zoom-row {
        justify-content: flex-end;
        gap: 6px;
        padding-left: 0;
        padding-right: 0;
    }

    .ai-workspace-video-post .ai-t2v-result-grid,
    .ai-workspace-video-post .ai-video-post-job-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .ai-i2v-paste-layer-grid-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-i2v-paste-layer-grid-role {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-i2v-paste-layer-card-box {
        min-height: 150px;
    }

    .ai-workspace-t2v .ws-i2i-preview-image {
        min-height: 180px;
    }
}

@media (max-width: 575.98px) {
    .ai-i2v-paste-layer-grid-main,
    .ai-i2v-paste-layer-grid-role {
        grid-template-columns: 1fr;
    }
}

.ai-t2v-job-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-t2v-job-card {
    background: var(--ws-panel);
    border: 1px solid var(--ws-border);
}

.ai-t2v-job-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ai-t2v-job-topline-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ai-t2v-job-icon-btn {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    line-height: 1;
}

.ai-t2v-job-delete-btn {
    color: var(--ws-text-muted);
    text-decoration: none;
}

.ai-t2v-job-delete-btn:hover,
.ai-t2v-job-delete-btn:focus {
    color: var(--ws-danger);
    text-decoration: none;
}

.ai-t2v-job-retry-btn {
    color: var(--ws-accent);
    font-size: 0.62rem;
    text-decoration: none;
}

.ai-t2v-job-retry-btn:hover,
.ai-t2v-job-retry-btn:focus {
    color: var(--ws-accent);
    text-decoration: none;
}

.ai-t2v-job-import-swap-btn {
    color: var(--ws-accent);
    font-size: 0.68rem;
    text-decoration: none;
}

.ai-t2v-job-import-swap-btn:hover,
.ai-t2v-job-import-swap-btn:focus {
    color: var(--ws-accent);
    text-decoration: none;
}

.ai-t2v-job-import-repair-btn {
    color: #6fbf73;
    font-size: 0.68rem;
    text-decoration: none;
}

.ai-t2v-job-import-repair-btn:hover,
.ai-t2v-job-import-repair-btn:focus {
    color: #6fbf73;
    text-decoration: none;
}

.ai-t2v-job-download-btn {
    color: var(--ws-accent);
    font-size: 0.62rem;
    text-decoration: none;
}

.ai-t2v-job-download-btn:hover,
.ai-t2v-job-download-btn:focus {
    color: var(--ws-accent);
    text-decoration: none;
}

.ai-t2v-job-fav-btn {
    color: var(--ws-text-dim);
    font-size: 0.62rem;
    text-decoration: none;
}

.ai-t2v-job-fav-btn:hover,
.ai-t2v-job-fav-btn:focus {
    color: var(--ws-accent);
    text-decoration: none;
}

.ai-t2v-job-fav-btn.is-favorited {
    color: var(--ws-gold);
}

.ai-t2v-job-fav-btn.is-favorited:hover,
.ai-t2v-job-fav-btn.is-favorited:focus {
    color: var(--ws-gold);
    text-decoration: none;
}

.ai-t2v-job-select-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-width: 16px;
    min-height: 16px;
}

.ai-t2v-job-select-box input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

.ai-t2v-job-status {
    font-size: 0.68rem;
    font-weight: 500;
}

.ai-t2v-job-prompt {
    margin-bottom: 8px;
}

.ai-t2v-job-prompt-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-t2v-job-prompt-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 7px;
    padding: 6px 8px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.ai-t2v-job-prompt-item--segment-frames {
    border: none;
    padding: 0;
    background: transparent;
}

.ai-t2v-job-prompt-ig {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    box-sizing: border-box;
}

.ai-t2v-job-prompt-ig-addon {
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.28);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
}

.ai-t2v-job-prompt-ig-addon--prepend {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-t2v-job-prompt-ig-addon--append {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-t2v-job-prompt-ig-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 8px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.ai-t2v-job-prompt-item-label {
    color: #b9b2d3;
    font-size: 0.72rem;
    font-weight: 700;
    flex: 0 0 auto;
    white-space: nowrap;
}

.ai-t2v-job-prompt-item-text {
    color: var(--ws-text);
    font-size: 0.74rem;
    line-height: 1.35;
    flex: 1 1 auto;
    word-break: break-word;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-t2v-job-prompt.expanded .ai-t2v-job-prompt-item-text,
.ai-t2v-job-prompt.expanded .ai-t2v-job-prompt-ig-main .ai-t2v-job-prompt-item-text {
    display: block;
}

.ai-t2v-prompt-toggle {
    color: var(--ws-accent);
    font-size: 0.68rem;
    line-height: 1;
    padding: 0;
    margin: 5px 0 0 0;
    text-decoration: none;
}

.ai-t2v-prompt-toggle:hover,
.ai-t2v-prompt-toggle:focus {
    color: var(--ws-accent);
    text-decoration: underline;
}

.ai-t2v-job-meta {
    color: var(--ws-text-muted);
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.ai-t2v-job-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-t2v-job-time-elapsed {
    margin-left: auto;
    white-space: nowrap;
    text-align: right;
}

.ai-t2v-job-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.58rem;
    line-height: 1.2;
    letter-spacing: 0.4px;
    font-weight: 700;
    color: #ffefc6;
    background: rgba(255, 157, 56, 0.85);
}

.ai-t2v-job-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.ai-t2v-job-effect-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(164, 122, 255, 0.9);
    color: #d9c6ff;
    background: rgba(122, 80, 219, 0.16);
    font-size: 0.68rem;
    line-height: 1.25;
    word-break: break-word;
}

.ai-t2v-job-relay-tag {
    border-color: rgba(56, 189, 248, 0.95);
    color: #bae6fd;
    background: rgba(14, 116, 144, 0.28);
    font-weight: 600;
}

.ai-t2v-effect-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.ai-t2v-effect-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-t2v-effect-group {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
}

.ai-t2v-effect-group.is-single-group {
    border-color: rgba(170, 130, 255, 0.45);
    background: rgba(124, 88, 220, 0.08);
}

.ai-t2v-effect-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-t2v-effect-group-title {
    color: #e5d7ff;
    font-size: 0.75rem;
    font-weight: 600;
}

.ai-t2v-effect-trigger {
    font-size: 0.68rem;
    color: var(--ws-text-muted);
}

.ai-t2v-video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.86);
}

.ai-t2v-video-modal-dialog {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ai-t2v-video-modal-player {
    width: 100vw;
    height: 100vh;
    background: #000;
    object-fit: contain;
    outline: none;
}

.ai-t2v-video-modal-close,
.ai-t2v-video-modal-fullscreen,
.ai-t2v-video-modal-fullscreen {
    position: absolute;
    top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 6px;
    font-size: 0.78rem;
    line-height: 1;
    height: 34px;
    padding: 0 10px;
}

.ai-t2v-video-modal-close {
    right: 14px;
    width: 34px;
    padding: 0;
}

.ai-t2v-video-modal-fullscreen {
    right: 56px;
}

.ai-t2v-video-modal-player.video-js {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw;
    max-height: 100vh;
    background: #000;
}

.ai-t2v-video-modal-player.video-js .vjs-tech {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.ai-t2v-video-modal-player.video-js .vjs-poster {
    background-size: contain;
    background-position: center center;
    background-color: #000;
}

.ai-t2v-video-modal-player.video-js .vjs-ai-relay-btn {
    width: auto;
    min-width: 72px;
    padding: 0 10px;
    font-size: 0.88rem;
}

.ai-t2v-video-modal-player.video-js .vjs-ai-relay-btn .vjs-icon-placeholder {
    width: auto;
    height: auto;
    position: static;
    margin: 0;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
}

.ai-t2v-video-modal-player.video-js .vjs-ai-relay-btn.vjs-ai-relay-hidden {
    display: none !important;
}

.ai-t2v-result-pagination {
    margin-top: 0;
}

.ai-t2v-segment-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-t2v-segment-tab-wrap {
    position: relative;
    display: inline-flex;
}

.ai-t2v-segment-tab-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e53e3e;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.ai-t2v-segment-tab-remove:hover {
    background: #c53030;
}

.ai-t2v-segment-help-icon {
    margin-left: 6px;
    color: var(--ws-text-muted);
    font-size: 0.78rem;
    cursor: pointer;
}

.ai-t2v-anime-invalid-note {
    margin-left: 0.35em;
    color: #fc5c5c;
    font-weight: 600;
}

.tooltip .tooltip-inner .ai-t2v-anime-invalid-note {
    color: #ff8a8a;
}

.ai-t2v-segment-tab {
    border: 1px solid #e5d7ff !important;
    color: #e5d7ff !important;
    background: rgba(198, 198, 198, 0.02);
    border-radius: 8px;
    font-size: 0.74rem;
    padding: 0.24rem 0.5rem;
    min-height: calc(1.5em + 0.5rem + 2px);
}


.ai-t2v-segment-tab.active {
    border-color: var(--ws-accent);
    color: #fff;
    background: rgba(126, 97, 220, 0.32);
}

.ai-t2v-segment-pill-group {
    flex-wrap: nowrap;
    align-items: stretch;
}

.ai-t2v-segment-pill-group .ai-t2v-segment-tab {
    border-radius: 8px;
    white-space: nowrap;
}

.ai-t2v-segment-pill-group .input-group-prepend + .ai-t2v-segment-tab {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.ai-t2v-segment-pill-group .ai-t2v-segment-tab:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.ai-workspace-t2v .ai-t2v-segment-pill-group .ai-t2v-segment-thumb-addon {
    padding: 2px;
    background: rgba(198, 198, 198, 0.02) !important;
    border: 1px solid #e5d7ff !important;
    color: #e5d7ff !important;
    cursor: pointer;
}

.ai-workspace-t2v .ai-t2v-segment-pill-group .ai-t2v-segment-thumb-addon.is-left {
    border-right: 0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.ai-workspace-t2v .ai-t2v-segment-pill-group .ai-t2v-segment-thumb-addon.is-right {
    border-left: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.ai-workspace-t2v .ai-t2v-segment-pill-group.active .ai-t2v-segment-thumb-addon {
    color: #fff !important;
    background: rgba(126, 97, 220, 0.32) !important;
}

.ai-t2v-segment-thumb-img {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background-color: #10131a;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.ai-t2v-segment-add-btn {
    border: 1px dashed rgba(170, 130, 255, 0.95) !important;
    color: #f3eaff !important;
    background: rgba(122, 80, 219, 0.28) !important;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.24rem 0.5rem;
    min-height: calc(1.5em + 0.5rem + 2px);
}

.ai-t2v-segment-add-plus {
    font-size: 0.95rem;
    line-height: 1;
    font-weight: 700;
}

.ai-t2v-segment-add-text {
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 600;
}

.ai-t2v-segment-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tooltip .tooltip-inner .ai-t2v-seg-tip {
    text-align: left;
    min-width: 260px;
    max-width: 420px;
}

.tooltip.ai-t2v-segment-tooltip .tooltip-inner {
    max-width: min(560px, calc(100vw - 28px));
}

.tooltip .tooltip-inner .ai-t2v-seg-tip-row {
    display: block;
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.tooltip .tooltip-inner .ai-t2v-seg-tip-row:last-child {
    margin-bottom: 0;
}

.tooltip .tooltip-inner .ai-t2v-seg-tip-row .k {
    color: #c8ced9;
    margin-right: 4px;
}

.tooltip .tooltip-inner .ai-t2v-seg-tip-row .v {
    font-weight: 600;
}

.tooltip .tooltip-inner .ai-t2v-seg-tip-row .v-prompt { color: #9cdcfe; }
.tooltip .tooltip-inner .ai-t2v-seg-tip-row .v-motion { color: #ffd166; }
.tooltip .tooltip-inner .ai-t2v-seg-tip-row .v-effects { color: #c3e88d; }
.tooltip .tooltip-inner .ai-t2v-seg-tip-row .v-duration { color: #ff9ed6; }
.tooltip .tooltip-inner .ai-t2v-seg-tip-row .v-mode { color: #b39ddb; }
.tooltip .tooltip-inner .ai-t2v-seg-tip-row .v-resolution { color: #80cbc4; }
.tooltip .tooltip-inner .ai-t2v-seg-tip-row .v-ratio { color: #f48fb1; }
.tooltip .tooltip-inner .ai-t2v-seg-tip-row .v-fps { color: #ffab91; }
.tooltip .tooltip-inner .ai-t2v-seg-tip-row .v-generic { color: #eceff4; }

.ai-t2v-token-usage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.ai-t2v-token-usage-head .ai-t2v-token-usage-title {
    margin-bottom: 0;
}

.ai-t2v-token-usage-title {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ws-text, #e0e0e0);
}

.ai-t2v-token-svg {
    display: block;
    width: 100%;
    height: 8px;
}

.ai-t2v-token-svg-bg {
    fill: rgba(255, 255, 255, 0.08);
}

.ai-t2v-token-svg-fill.ai-t2v-token-w0 {
    fill: #5c7cfa;
}

.ai-t2v-token-svg-fill.ai-t2v-token-w1 {
    fill: #fab005;
}

.ai-t2v-token-svg-fill.ai-t2v-token-w2 {
    fill: #fd7e14;
}

.ai-t2v-token-svg-fill.ai-t2v-token-w3 {
    fill: #fa5252;
}

.ai-t2v-token-warn {
    color: #fab005;
}

/* 分辨率区上方：任务底价说明（与分项价同色体系） */
.ai-t2v-token-job-base-line {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #2fb344;
    font-weight: 600;
    margin-bottom: 4px;
}

/* AI 视频：词元价格提示（统一绿色，避免 inline style） */
.ai-t2v-token-price {
    color: #2fb344;
    font-weight: 600;
    margin-left: 0.35rem;
    white-space: nowrap;
}

.ws-dim-option .ai-t2v-token-price {
    font-size: 0.72rem;
}

.ws-dim-option .ai-t2v-token-price--locked {
    color: var(--ws-text-dim);
}

.ai-t2v-submit-btn .ai-t2v-token-price--submit {
    margin-left: 0.5rem;
    font-size: 0.95rem;
}

/* Phase4 替换：ft_confirm 内试算明细（与换脸试算 tooltip 同源 HTML 行） */
.ai-phase4-replace-quote-confirm {
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ai-phase4-replace-quote-confirm__line {
    margin-bottom: 0.2rem;
}

.ai-phase4-replace-quote-confirm__intro {
    margin-bottom: 0.65rem;
}

/* 多 Comfy 服务器接入：当任务对应的 AI 视频服务器下线（legacy_unknown/disabled/unknown）时的提示样式 */
.ai-video-server-offline-alert {
    border-radius: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.45;
    background-color: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.45);
    color: #856404;
}
