.page-cloth-series {
    background:
        radial-gradient(circle at top left, rgba(255, 242, 204, 0.62), transparent 32%),
        linear-gradient(180deg, #faf8f4 0%, #f3f0ea 100%);
    min-height: 100vh;
}

.cloth-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 24px 56px;
}

.cloth-hero,
.cloth-mode-tabs,
.cloth-steps,
.cloth-layout {
    margin-bottom: 20px;
}

.cloth-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.cloth-kicker {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #786f61;
}

.cloth-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
}

.cloth-subtitle {
    margin: 10px 0 0;
    color: #6d6559;
    font-size: 16px;
}

.cloth-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cloth-beta-pill,
.cloth-ghost-link,
.cloth-hint-chip {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cloth-beta-pill {
    padding: 10px 16px;
    background: #111;
    color: #fff;
    font-weight: 700;
}

.cloth-ghost-link {
    padding: 10px 14px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    color: #111;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.7);
}

.cloth-mode-tabs {
    display: inline-flex;
    position: relative;
    padding: 4px;
    gap: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(17, 17, 17, 0.05);
    overflow: hidden;
}

.cloth-mode-tab {
    border: 0;
    background: transparent;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    color: #8a847d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.cloth-mode-tab:hover,
.cloth-mode-tab:focus-visible {
    color: #444;
}

.cloth-mode-tab.active {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.cloth-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.cloth-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 16px;
    color: #756d61;
}

.cloth-step span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 17, 17, 0.08);
    font-weight: 700;
}

.cloth-step.active,
.cloth-step.completed {
    color: #111;
    background: #fff;
}

.cloth-step.active span,
.cloth-step.completed span {
    background: #111;
    color: #fff;
}

.cloth-layout {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.cloth-sidebar,
.cloth-content {
    min-width: 0;
}

/* 卡片容器 - 淡蓝冷色调高级感 */
.cloth-card,
.cloth-content,
.cloth-empty-state,
.cloth-preview-section,
.cloth-result-card {
    border-radius: 28px;
    background: rgba(247, 250, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.08);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.06);
}

.cloth-card {
    padding: 22px;
    margin-bottom: 16px;
}

.cloth-card-head,
.cloth-content-head,
.cloth-section-head,
.cloth-shot-main,
.cloth-result-card-head,
.cloth-result-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

/* 统一标题体系 - 所有区块标题使用 h3 */
.cloth-card h3,
.cloth-content h3,
.cloth-section-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

/* 统一解释文字体系 */
.cloth-card p,
.cloth-content p,
.cloth-section-head p {
    margin: 4px 0 0;
    color: #6e685e;
    font-size: 13px;
    line-height: 1.5;
}

.cloth-upload-box {
    margin-top: 16px;
    display: block;
    position: relative;
    min-height: 156px;
    border-radius: 22px;
    border: 2px dashed rgba(59, 130, 246, 0.2);
    background: rgba(239, 246, 255, 0.8);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cloth-upload-box input {
    display: none;
}

.cloth-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
}

.cloth-upload-thumb {
    position: relative;
    width: 82px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    background: #e8f0fe;
}

.cloth-upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 删除按钮 */
.cloth-upload-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.cloth-upload-thumb:hover .cloth-upload-thumb-remove {
    opacity: 1;
}

.cloth-upload-thumb-remove:hover {
    background: rgba(220, 38, 38, 0.9);
}

/* 拖拽状态 */
.cloth-upload-box.is-dragging {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(219, 234, 254, 0.6);
}

.cloth-upload-box.is-locked {
    cursor: not-allowed;
    border-color: rgba(59, 130, 246, 0.14);
    background: rgba(239, 246, 255, 0.58);
}

.cloth-upload-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #8b8275;
    text-align: center;
    pointer-events: none;
}

.cloth-upload-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7e7a74;
}

.cloth-upload-empty-icon svg {
    width: 38px;
    height: 38px;
}

.cloth-upload-empty-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #2f2a24;
}

.cloth-upload-empty-copy {
    font-size: 14px;
    line-height: 1.5;
    color: #7f7a72;
}

/* 输入区域 - 淡蓝冷色调 */
.cloth-textarea,
.cloth-preview-textarea,
.cloth-shot-plan-textarea {
    width: 100%;
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 18px;
    background: rgba(239, 246, 255, 0.6);
    padding: 16px;
    font: inherit;
    resize: vertical;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cloth-textarea:focus,
.cloth-preview-textarea:focus,
.cloth-shot-plan-textarea:focus {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(239, 246, 255, 0.8);
    outline: none;
}

.cloth-textarea {
    min-height: 150px;
    margin-top: 14px;
}

.cloth-textarea.is-locked {
    cursor: not-allowed;
    color: #5f5a51;
    background: rgba(239, 246, 255, 0.52);
    border-color: rgba(59, 130, 246, 0.1);
}

.cloth-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.cloth-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cloth-field span {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #6e6658;
}

.cloth-field-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.cloth-field-label > span {
    margin-bottom: 0;
}

.cloth-field-label-help {
    position: relative;
}

.cloth-planner-help-wrap {
    position: relative;
    display: inline-flex;
}

.cloth-planner-help {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #6a6258;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cloth-planner-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 6;
    width: 214px;
    padding: 10px 11px;
    border-radius: 12px;
    background: #171717;
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.2);
    transform: translateY(-4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cloth-planner-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 14px;
    width: 12px;
    height: 12px;
    background: #171717;
    transform: rotate(45deg);
}

.cloth-planner-help-wrap:hover .cloth-planner-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cloth-planner-help-wrap:hover .cloth-planner-help {
    background: #111;
    color: #fff;
    border-color: #111;
}

.cloth-field-note {
    margin: 8px 2px 0;
    color: #6f6a62;
    font-size: 12px;
    line-height: 1.55;
}

.cloth-field--full {
    grid-column: 1 / -1;
}

.cloth-field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: #fff;
}

.cloth-field.is-locked select:disabled,
.cloth-field select:disabled {
    cursor: not-allowed;
    color: #8c8579;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(17, 17, 17, 0.06);
}

/* 规划模型自定义下拉菜单 */
.cloth-planner-select-wrapper {
    position: relative;
    width: 100%;
}

.cloth-planner-select-trigger {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cloth-planner-select-trigger:hover {
    border-color: rgba(17, 17, 17, 0.15);
}

.cloth-planner-select-trigger:focus,
.cloth-planner-select-trigger:focus-visible {
    outline: none;
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.cloth-planner-select-trigger.is-open {
    border-color: rgba(74, 144, 226, 0.5);
}

.cloth-planner-select-trigger.is-disabled {
    cursor: not-allowed;
    color: #8c8579;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(17, 17, 17, 0.06);
}

.cloth-planner-select-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.cloth-planner-select-text {
    flex: 1;
    font-size: 14px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cloth-planner-select-arrow {
    flex-shrink: 0;
    color: #6f6a62;
    transition: transform 0.2s;
}

.cloth-planner-select-trigger.is-open .cloth-planner-select-arrow {
    transform: rotate(180deg);
}

.cloth-planner-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.cloth-planner-select-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.cloth-planner-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s;
    pointer-events: auto;
}

.cloth-planner-select-option:first-child {
    border-radius: 14px 14px 0 0;
}

.cloth-planner-select-option:last-child {
    border-radius: 0 0 14px 14px;
}

.cloth-planner-select-option:hover {
    background: #f5f3ef;
}

.cloth-planner-select-option:focus-visible {
    outline: none;
    background: #eef4ff;
}

.cloth-planner-select-option.is-selected {
    background: #f0f4ff;
}

.cloth-planner-option-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.cloth-planner-option-text {
    flex: 1;
    font-size: 14px;
    color: #1a1a1a;
}

.cloth-shot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.cloth-shot-item {
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: #fbfaf7;
}

.cloth-shot-item.is-locked {
    cursor: not-allowed;
}

.cloth-switch {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #625b51;
}

.cloth-segment {
    display: inline-flex;
    gap: 8px;
    margin-top: 12px;
}

.cloth-segment button,
.cloth-stepper button,
.cloth-result-action {
    border: 0;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.08);
    color: #111;
    cursor: pointer;
}

.cloth-segment button {
    padding: 8px 14px;
}

.cloth-segment button.active,
.cloth-stepper button:hover,
.cloth-result-action.primary {
    background: #111;
    color: #fff;
}

.cloth-hint-chip {
    margin-top: 12px;
    padding: 7px 12px;
    background: rgba(17, 17, 17, 0.06);
    color: #5f584d;
    width: fit-content;
}

.cloth-stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cloth-stepper button {
    width: 34px;
    height: 34px;
    font-size: 18px;
}

.cloth-segment button:disabled,
.cloth-stepper button:disabled,
.cloth-pill-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.cloth-stepper span {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
}

.cloth-sidebar-actions {
    position: sticky;
    bottom: 16px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 26px;
    padding: 18px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 18px 50px rgba(36, 28, 21, 0.1);
}

.cloth-sidebar-action-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cloth-sidebar-action-group[hidden] {
    display: none;
}

.cloth-credit-meta {
    margin-bottom: 14px;
    color: #6b6458;
    font-weight: 600;
    text-align: center;
}

.cloth-primary-btn,
.cloth-secondary-btn {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.cloth-secondary-btn {
    margin-top: 10px;
}

.cloth-sidebar-action-group-preview .cloth-secondary-btn {
    margin-top: 0;
}

.cloth-content {
    padding: 24px;
}

/* 空状态文字 */
.cloth-empty-state {
    padding: 72px 18px;
    text-align: center;
}

.cloth-empty-state p {
    margin: 4px 0 0;
    color: #6e685e;
    font-size: 14px;
    line-height: 1.6;
}

.cloth-empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
    color: #786f61;
}

.cloth-state-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cloth-preview-notice {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.18);
    color: #8a5a10;
    font-size: 13px;
    line-height: 1.6;
}

.cloth-preview-panels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cloth-preview-card {
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 18px 40px rgba(36, 28, 21, 0.06);
}

.cloth-preview-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.cloth-preview-card-main {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 0;
}

.cloth-preview-order {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.08);
    color: #1f1f1f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.cloth-preview-card-copy {
    min-width: 0;
}

.cloth-preview-card-copy h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: #171717;
}

.cloth-preview-card-copy p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6e685e;
}

.cloth-preview-card-tools {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.cloth-preview-tool {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.96);
    color: #555047;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cloth-preview-tool svg {
    width: 16px;
    height: 16px;
}

.cloth-preview-tool:hover {
    border-color: rgba(17, 17, 17, 0.16);
    background: rgba(17, 17, 17, 0.06);
    color: #171717;
    transform: translateY(-1px);
}

.cloth-preview-tool.is-expanded svg {
    transform: rotate(180deg);
}

.cloth-preview-card-body {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.cloth-preview-readonly {
    padding: 18px;
    border-radius: 18px;
    background: #f0f7ff;
    border: 1px solid rgba(59, 130, 246, 0.1);
    white-space: pre-wrap;
    line-height: 1.75;
    color: #2f2a24;
    font-size: 14px;
}

.cloth-preview-editor-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cloth-preview-editor-field + .cloth-preview-editor-field {
    margin-top: 16px;
}

.cloth-preview-editor-field > span {
    font-size: 13px;
    font-weight: 700;
    color: #524a3f;
}

.cloth-preview-editor-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cloth-preview-editor-label > span {
    font-size: 13px;
    font-weight: 700;
    color: #524a3f;
}

.cloth-preview-field-help-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cloth-preview-field-help {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #6a6258;
    font-size: 10px;
    font-weight: 800;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cloth-preview-field-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 6;
    width: 230px;
    padding: 10px 11px;
    border-radius: 12px;
    background: #171717;
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.22);
    transform: translateY(-4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cloth-preview-field-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 14px;
    width: 12px;
    height: 12px;
    background: #171717;
    transform: rotate(45deg);
}

.cloth-preview-field-help-wrap:hover .cloth-preview-field-tooltip,
.cloth-preview-field-help-wrap:focus-within .cloth-preview-field-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cloth-preview-field-help-wrap:hover .cloth-preview-field-help,
.cloth-preview-field-help-wrap:focus-within .cloth-preview-field-help {
    background: #111;
    color: #fff;
    border-color: #111;
}

.cloth-preview-input,
.cloth-preview-textarea {
    width: 100%;
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 18px;
    background: rgba(239, 246, 255, 0.6);
    padding: 15px 16px;
    font: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cloth-preview-input:focus,
.cloth-preview-textarea:focus {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(239, 246, 255, 0.84);
    outline: none;
}

.cloth-preview-input {
    min-height: 52px;
}

.cloth-preview-textarea {
    min-height: 220px;
    margin-top: 0;
    resize: vertical;
}

.cloth-shot-plan-textarea {
    min-height: 210px;
    margin-top: 0;
}

.cloth-preview-editor-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.cloth-preview-save,
.cloth-preview-cancel {
    min-width: 112px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cloth-preview-save {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: #f8fafc;
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.16);
}

.cloth-preview-cancel {
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.96);
    color: #374151;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.cloth-preview-save:hover,
.cloth-preview-cancel:hover {
    transform: translateY(-1px);
}

.cloth-preview-shot-card.is-editing,
.cloth-preview-card.is-editing {
    box-shadow: 0 20px 48px rgba(31, 23, 60, 0.1);
}

.cloth-analysis-shell {
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 244, 236, 0.9) 100%);
    border: 1px solid rgba(17, 17, 17, 0.06);
    box-shadow: 0 18px 44px rgba(36, 28, 21, 0.08);
}

.cloth-analysis-hero {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

/* 分析区域标题与解释 - 统一文字体系 */
.cloth-analysis-kicker {
    margin-bottom: 8px;
    color: #786f61;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cloth-analysis-hero h3 {
    margin: 0;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    color: #1a1a1a;
}

.cloth-analysis-hero p {
    margin: 8px 0 0;
    color: #6e685e;
    font-size: 13px;
    line-height: 1.5;
}

.cloth-analysis-spinner {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5));
    border: 1px solid rgba(17, 17, 17, 0.06);
    position: relative;
    overflow: hidden;
}

.cloth-analysis-spinner::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 4px solid rgba(17, 17, 17, 0.08);
    border-top-color: #111;
    animation: cloth-spin 1.1s linear infinite;
}

.cloth-analysis-spinner span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #111;
    opacity: 0.28;
    animation: cloth-pulse 1.4s ease-in-out infinite;
}

.cloth-analysis-spinner span:nth-child(1) {
    top: 14px;
    right: 16px;
}

.cloth-analysis-spinner span:nth-child(2) {
    bottom: 18px;
    right: 12px;
    animation-delay: 0.2s;
}

.cloth-analysis-spinner span:nth-child(3) {
    bottom: 16px;
    left: 14px;
    animation-delay: 0.4s;
}

.cloth-analysis-progress {
    margin-top: 22px;
}

.cloth-analysis-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cloth-analysis-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.06);
    color: #6f675c;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.cloth-analysis-pill.active {
    background: #111;
    color: #fff;
    transform: translateY(-1px);
}

.cloth-analysis-pill.done {
    background: rgba(20, 115, 67, 0.14);
    color: #0f6a37;
}

.cloth-progress-wrap {
    margin-bottom: 8px;
}

.cloth-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.08);
    overflow: hidden;
}

.cloth-progress-bar span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #111, #8e7f63);
    transition: width 0.24s ease;
}

.cloth-progress-text {
    margin-top: 10px;
    color: #6d665c;
    font-weight: 600;
}

.cloth-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cloth-result-card {
    overflow: hidden;
}

.cloth-result-card-media {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #efece6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloth-result-card-media.is-clickable {
    cursor: zoom-in;
}

.cloth-result-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cloth-result-placeholder {
    color: #7a7266;
    font-weight: 700;
}

.cloth-result-card-body {
    padding: 14px 14px 16px;
}

.cloth-result-card-head {
    margin-bottom: 12px;
    gap: 10px;
}

.cloth-result-card-head > div {
    min-width: 0;
    flex: 1;
}

.cloth-result-card-head strong {
    display: block;
    font-size: 18px;
    line-height: 1.28;
}

.cloth-result-card-head p {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
}

.cloth-result-status {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    flex-shrink: 0;
    background: rgba(17, 17, 17, 0.08);
    color: #534d45;
}

.cloth-result-status.success {
    background: rgba(39, 174, 96, 0.14);
    color: #13663a;
}

.cloth-result-status.failed {
    background: rgba(220, 38, 38, 0.12);
    color: #9d1f1f;
}

.cloth-result-card-actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.cloth-result-action {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}

.cloth-result-viewer {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(10px);
}

.cloth-result-viewer[hidden] {
    display: none !important;
}

.cloth-result-viewer-dialog {
    width: min(1360px, calc(100vw - 40px));
    height: min(900px, calc(100vh - 40px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.cloth-result-viewer-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 22px 24px 18px;
    background: linear-gradient(135deg, #f7faff 0%, #edf3ff 100%);
}

.cloth-result-viewer-close,
.cloth-result-viewer-nav {
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.cloth-result-viewer-close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 42px;
    height: 42px;
    font-size: 28px;
    line-height: 1;
    z-index: 2;
}

.cloth-result-viewer-counter {
    position: absolute;
    top: 20px;
    left: 22px;
    z-index: 2;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
}

.cloth-result-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 28px;
    z-index: 2;
}

.cloth-result-viewer-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.cloth-result-viewer-nav-prev {
    left: 22px;
}

.cloth-result-viewer-nav-next {
    right: 22px;
}

.cloth-result-viewer-main {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 54px 22px;
}

.cloth-result-viewer-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
}

.cloth-result-viewer-thumbs {
    display: flex;
    gap: 12px;
    padding-top: 6px;
    overflow-x: auto;
}

.cloth-result-viewer-thumb {
    flex: 0 0 86px;
    width: 86px;
    height: 86px;
    padding: 0;
    border: 2px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.cloth-result-viewer-thumb.is-active {
    border-color: rgba(37, 99, 235, 0.72);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
}

.cloth-result-viewer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cloth-result-viewer-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.cloth-result-viewer-head {
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cloth-result-viewer-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
}

.cloth-result-viewer-chips::-webkit-scrollbar {
    height: 0;
}

.cloth-result-viewer-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #274690;
    font-size: 13px;
    font-weight: 700;
}

.cloth-result-viewer-submeta {
    margin-top: 12px;
    color: #7c8799;
    font-size: 13px;
    line-height: 1.5;
}

.cloth-result-viewer-submeta:empty {
    display: none;
}

.cloth-result-viewer-title {
    margin: 14px 0 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.cloth-result-viewer-subtitle {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.cloth-result-viewer-body {
    flex: 1;
    min-height: 0;
    padding: 24px 28px 0;
    overflow-y: auto;
}

.cloth-result-viewer-section + .cloth-result-viewer-section {
    margin-top: 22px;
}

.cloth-result-viewer-section h4 {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.4;
}

.cloth-result-viewer-text {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f3f7ff;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.72;
    white-space: pre-wrap;
}

.cloth-result-viewer-uploads {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cloth-result-viewer-upload,
.cloth-result-viewer-empty {
    border-radius: 16px;
    overflow: hidden;
    background: #f4f7fb;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.cloth-result-viewer-upload img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.cloth-result-viewer-empty {
    grid-column: 1 / -1;
    padding: 18px 14px;
    color: #728095;
    font-size: 13px;
    text-align: center;
}

.cloth-result-viewer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 28px 26px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cloth-result-viewer-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(243, 246, 251, 0.92);
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.cloth-result-viewer-action-primary {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: #f8fafc;
    border-color: rgba(15, 23, 42, 0.08);
}

.cloth-result-viewer-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 1180px) {
    .cloth-layout {
        grid-template-columns: 1fr;
    }

    .cloth-sidebar-actions {
        position: static;
    }

    .cloth-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .cloth-page {
        padding: 20px 14px 40px;
    }

    .cloth-hero,
    .cloth-content-head,
    .cloth-card-head,
    .cloth-shot-main {
        flex-direction: column;
    }

    .cloth-steps,
    .cloth-grid-two,
    .cloth-result-grid {
        grid-template-columns: 1fr;
    }

    .cloth-analysis-hero {
        grid-template-columns: 1fr;
    }

    .cloth-result-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cloth-result-viewer {
        padding: 12px;
    }

    .cloth-result-viewer-dialog {
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
        grid-template-columns: 1fr;
    }

    .cloth-result-viewer-stage {
        min-height: 48vh;
        padding: 18px 16px 14px;
    }

    .cloth-result-viewer-main {
        padding: 44px 16px 18px;
    }

    .cloth-result-viewer-thumb {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .cloth-result-viewer-info {
        border-left: 0;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }

    .cloth-result-viewer-head,
    .cloth-result-viewer-body,
    .cloth-result-viewer-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cloth-result-viewer-title {
        font-size: 24px;
    }

    .cloth-result-viewer-uploads {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cloth-result-viewer-actions {
        grid-template-columns: 1fr;
    }

    .cloth-analysis-spinner {
        width: 72px;
        height: 72px;
    }

    .cloth-preview-card-head,
    .cloth-preview-card-main,
    .cloth-preview-editor-actions {
        flex-direction: column;
    }

    .cloth-preview-card-tools {
        align-self: flex-end;
    }
}

@keyframes cloth-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes cloth-pulse {
    0%,
    100% {
        opacity: 0.22;
        transform: scale(0.92);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.08);
    }
}

/* 2026-03-12 compact sidebar refresh */
body.page-home.page-cloth-series .mx-home-main {
    background:
        radial-gradient(circle at top right, rgba(247, 242, 233, 0.96), transparent 22%),
        linear-gradient(180deg, #f7f5f1 0%, #f1ede8 100%);
}

body.page-home.page-cloth-series .cloth-page {
    max-width: 1600px;
    padding: 18px 22px 28px;
}

body.page-home.page-cloth-series .cloth-topbar {
    display: block;
    margin-bottom: 14px;
}

body.page-home.page-cloth-series .cloth-topbar-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

body.page-home.page-cloth-series .cloth-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.page-home.page-cloth-series .cloth-beta-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: #171717;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
    white-space: nowrap;
}

body.page-home.page-cloth-series .cloth-mode-tabs {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(17, 17, 17, 0.05);
    margin-bottom: 0;
}

body.page-home.page-cloth-series .cloth-mode-tab {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
}

/* 顶部介绍文字 - 统一颜色 */
body.page-home.page-cloth-series .cloth-topbar-intro {
    margin: 0;
    max-width: 760px;
    color: #6e685e;
    font-size: 14px;
    line-height: 1.6;
}

body.page-home.page-cloth-series .cloth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

body.page-home.page-cloth-series .cloth-step {
    padding: 8px 6px;
    border: 0;
    background: transparent;
    position: relative;
    color: #6e685e;
}

body.page-home.page-cloth-series .cloth-step::after {
    content: "";
    width: 36px;
    height: 1px;
    background: rgba(17, 17, 17, 0.14);
    margin-left: 4px;
}

body.page-home.page-cloth-series .cloth-step:last-child::after {
    display: none;
}

body.page-home.page-cloth-series .cloth-step span {
    width: 32px;
    height: 32px;
    background: rgba(17, 17, 17, 0.92);
    color: #fff;
}

body.page-home.page-cloth-series .cloth-step strong {
    font-size: 15px;
}

body.page-home.page-cloth-series .cloth-layout {
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 20px;
}

/* 页面级卡片 - 统一白底高级感 */
/* 页面级卡片 - 淡蓝冷色调 */
body.page-home.page-cloth-series .cloth-card,
body.page-home.page-cloth-series .cloth-content,
body.page-home.page-cloth-series .cloth-empty-state,
body.page-home.page-cloth-series .cloth-preview-section,
body.page-home.page-cloth-series .cloth-result-card {
    background: rgba(247, 250, 255, 0.95);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.05);
}

body.page-home.page-cloth-series .cloth-result-card-body {
    padding: 13px 13px 15px;
}

body.page-home.page-cloth-series .cloth-card {
    padding: 18px 18px 16px;
    margin-bottom: 14px;
}

body.page-home.page-cloth-series .cloth-upload-box {
    min-height: 132px;
    margin-top: 14px;
}

body.page-home.page-cloth-series .cloth-upload-thumb {
    width: 72px;
    height: 88px;
}

body.page-home.page-cloth-series .cloth-textarea {
    min-height: 128px;
    margin-top: 12px;
}

body.page-home.page-cloth-series .cloth-grid {
    margin-top: 14px;
}

body.page-home.page-cloth-series .cloth-textarea,
body.page-home.page-cloth-series .cloth-preview-textarea,
body.page-home.page-cloth-series .cloth-shot-plan-textarea {
    padding: 14px 15px;
    border-radius: 16px;
}

body.page-home.page-cloth-series .cloth-shot-list {
    gap: 10px;
    margin-top: 12px;
}

body.page-home.page-cloth-series .cloth-shot-item {
    padding: 15px;
    background: #fbfaf7;
}

body.page-home.page-cloth-series .cloth-segment button,
body.page-home.page-cloth-series .cloth-stepper button,
body.page-home.page-cloth-series .cloth-result-action {
    background: rgba(17, 17, 17, 0.07);
    color: #181818;
    border-radius: 999px;
}

body.page-home.page-cloth-series .cloth-segment button.active,
body.page-home.page-cloth-series .cloth-stepper button:hover,
body.page-home.page-cloth-series .cloth-result-action.primary {
    background: #111;
    color: #fff;
}

body.page-home.page-cloth-series .cloth-switch input {
    accent-color: #111;
}

body.page-home.page-cloth-series .cloth-hint-chip {
    background: rgba(17, 17, 17, 0.05);
}

/* 操作区卡片 - 淡蓝冷色调 */
body.page-home.page-cloth-series .cloth-sidebar-actions {
    padding: 16px;
    border-radius: 24px;
    background: rgba(247, 250, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.08);
}

body.page-home.page-cloth-series .cloth-credit-meta {
    margin-bottom: 12px;
    color: #686157;
}

body.page-home.page-cloth-series .cloth-primary-btn,
body.page-home.page-cloth-series .cloth-secondary-btn {
    min-height: 48px;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: none;
}

body.page-home.page-cloth-series .cloth-primary-btn {
    background: #111;
    border: 1px solid #111;
    color: #fff;
}

body.page-home.page-cloth-series .cloth-primary-btn:hover {
    background: #1c1c1c;
    border-color: #1c1c1c;
}

body.page-home.page-cloth-series .cloth-secondary-btn {
    background: rgba(255, 255, 255, 0.98);
    color: #181818;
    border: 1px solid rgba(17, 17, 17, 0.1);
}

body.page-home.page-cloth-series .cloth-content {
    padding: 20px;
}

body.page-home.page-cloth-series .cloth-empty-state {
    padding: 64px 18px;
}

body.page-home.page-cloth-series .cloth-result-grid {
    gap: 16px;
}

body.page-home.page-cloth-series .cloth-result-card-actions {
    gap: 8px;
}

body.page-home.page-cloth-series .cloth-result-action {
    min-height: 40px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

body.page-home.page-cloth-series .cloth-result-card-media.is-clickable::after {
    content: '点击查看详情';
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.76);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

body.page-home.page-cloth-series .cloth-result-card-media.is-clickable:hover::after,
body.page-home.page-cloth-series .cloth-result-card-media.is-clickable:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    body.page-home.page-cloth-series .cloth-topbar-main {
        width: 100%;
    }

    body.page-home.page-cloth-series .cloth-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.page-home.page-cloth-series .mx-home-main {
        margin-left: 0;
        border-radius: 0;
    }

    body.page-home.page-cloth-series .cloth-page {
        padding: 16px 14px 24px;
    }

    body.page-home.page-cloth-series .cloth-topbar-actions {
        width: 100%;
        gap: 10px;
    }

    body.page-home.page-cloth-series .cloth-mode-tabs {
        flex: 1;
        width: auto;
        justify-content: flex-start;
    }

    body.page-home.page-cloth-series .cloth-mode-tab {
        width: 100%;
        flex: 1;
    }

    body.page-home.page-cloth-series .cloth-topbar-intro {
        font-size: 14px;
        line-height: 1.6;
    }

    body.page-home.page-cloth-series .cloth-steps {
        justify-content: flex-start;
        gap: 8px;
    }

    body.page-home.page-cloth-series .cloth-step::after {
        display: none;
    }
}

body.page-home.page-cloth-series,
body.page-home.page-cloth-series .mx-home-main {
    background: #e8eefb;
}

body.page-home.page-cloth-series .app-layout {
    min-height: 100vh;
    background: #e8eefb;
}

body.page-home.page-cloth-series .app-main {
    background: #e8eefb;
}

body.page-home.page-cloth-series .sidebar-logo {
    width: 82px;
    height: 82px;
    padding: 0;
}

body.page-home.page-cloth-series .sidebar-menu {
    gap: 18px;
}

body.page-home.page-cloth-series .sidebar-menu-item.active .menu-icon {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.08);
}

body.page-home.page-cloth-series .menu-icon-tools {
    width: 26px;
    height: 26px;
}

body.page-home.page-cloth-series .cloth-sidebar-community {
    font-size: 22px;
    line-height: 1;
}

body.page-home.page-cloth-series .cloth-sidebar-shell {
    gap: 12px;
    padding-bottom: 8px;
}

body.page-home.page-cloth-series .cloth-sidebar-notification {
    position: relative;
}

body.page-home.page-cloth-series .cloth-sidebar-theme {
    width: 72px;
}

body.page-home.page-cloth-series .cloth-sidebar-auth-btn {
    min-width: 72px;
    border-radius: 18px;
}

/* 页面级卡片 - 统一白底高级感 */
/* 页面级卡片 - 淡蓝冷色调 */
body.page-home.page-cloth-series .cloth-card,
body.page-home.page-cloth-series .cloth-content,
body.page-home.page-cloth-series .cloth-empty-state,
body.page-home.page-cloth-series .cloth-preview-section,
body.page-home.page-cloth-series .cloth-result-card,
body.page-home.page-cloth-series .cloth-sidebar-actions {
    background: rgba(247, 250, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.08);
}

/* 选择生成类型卡片 - 统一背景与边框 */
body.page-home.page-cloth-series .cloth-shot-item {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: 2px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.6);
    min-height: 116px;
    padding: 12px 14px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

body.page-home.page-cloth-series .cloth-shot-item.is-selected {
    background: rgba(255, 255, 255, 0.92);
    border-color: #171717;
}

body.page-home.page-cloth-series .cloth-shot-item.is-muted {
    opacity: 0.92;
}

body.page-home.page-cloth-series .cloth-shot-item.is-disabled {
    opacity: 0.52;
}

body.page-home.page-cloth-series .cloth-shot-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    font-size: 0;
    line-height: 0;
}

body.page-home.page-cloth-series .cloth-shot-icon-art {
    width: 18px;
    height: 18px;
    display: block;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

body.page-home.page-cloth-series .cloth-shot-item.is-muted .cloth-shot-icon,
body.page-home.page-cloth-series .cloth-shot-item.is-disabled .cloth-shot-icon {
    background: #efeff4;
    color: #7a7d89;
}

body.page-home.page-cloth-series .cloth-shot-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
    align-content: center;
}

/* 卡片内标题 - 统一字体大小 */
body.page-home.page-cloth-series .cloth-shot-copy strong {
    display: block;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 卡片内描述 - 统一颜色与字号 */
body.page-home.page-cloth-series .cloth-shot-copy p {
    margin: 0;
    color: #6e685e;
    font-size: 12px;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.page-home.page-cloth-series .cloth-shot-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 138px;
}

body.page-home.page-cloth-series .cloth-segment {
    margin-top: 0;
    gap: 6px;
}

body.page-home.page-cloth-series .cloth-segment button,
body.page-home.page-cloth-series .cloth-pill-toggle {
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    border: 2px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: #7b7d88;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

body.page-home.page-cloth-series .cloth-segment button.active,
body.page-home.page-cloth-series .cloth-pill-toggle.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

body.page-home.page-cloth-series .cloth-pill-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

body.page-home.page-cloth-series .cloth-pill-check {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
}

body.page-home.page-cloth-series .cloth-pill-circle {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
    opacity: 0.8;
}

body.page-home.page-cloth-series .cloth-stepper {
    gap: 6px;
}

body.page-home.page-cloth-series .cloth-stepper button {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: #7b7d88;
}

body.page-home.page-cloth-series .cloth-stepper button:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

body.page-home.page-cloth-series .cloth-stepper span {
    min-width: 22px;
    color: #4a4b55;
    font-size: 15px;
    font-weight: 700;
}

body.page-home.page-cloth-series .cloth-empty-state {
    min-height: 360px;
}

body.page-home.page-cloth-series .cloth-empty-icon {
    font-size: 64px;
}

@media (max-width: 760px) {
    body.page-home.page-cloth-series .cloth-shot-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
        min-height: 0;
    }

    body.page-home.page-cloth-series .cloth-shot-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 64px;
        min-width: 0;
    }

    body.page-home.page-cloth-series .cloth-shot-icon {
        width: 48px;
        height: 48px;
    }

    body.page-home.page-cloth-series .cloth-shot-icon-art {
        width: 22px;
        height: 22px;
    }

    body.page-home.page-cloth-series .cloth-shot-copy strong {
        font-size: 16px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    body.page-home.page-cloth-series .cloth-shot-copy p {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
    }
}

/* 2026-03-14 model abstraction + result panel stretch */
.cloth-layout {
    grid-template-columns: 420px minmax(0, 1fr);
}

.cloth-sidebar-top {
    grid-column: 1;
}

.cloth-content {
    grid-column: 2;
    align-self: stretch;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cloth-content-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cloth-empty-state,
.cloth-state-block {
    flex: 1;
    min-height: 0;
}

.cloth-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cloth-speed-card {
    padding-bottom: 16px;
}

.cloth-speed-card-head {
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
}

.cloth-speed-card-copy {
    min-width: 0;
}

.cloth-speed-title-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cloth-speed-title-wrap {
    position: relative;
}

.cloth-speed-title-row h3 {
    font-size: 16px;
    line-height: 1.1;
}

.cloth-speed-card-copy p {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.35;
}

.cloth-speed-title-help {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #5f584e;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cloth-speed-title-help:hover,
.cloth-speed-title-help:focus-visible {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-1px);
}

.cloth-speed-title-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 6;
    width: 208px;
    padding: 10px 11px;
    border-radius: 12px;
    background: #171717;
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.22);
    transform: translateY(-4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cloth-speed-title-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 14px;
    width: 12px;
    height: 12px;
    background: #171717;
    transform: rotate(45deg);
}

.cloth-speed-title-wrap:hover .cloth-speed-title-tooltip,
.cloth-speed-title-wrap:focus-within .cloth-speed-title-tooltip,
.cloth-speed-title-wrap.is-tooltip-open .cloth-speed-title-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cloth-speed-switch {
    display: flex;
    position: relative;
    width: min(100%, 248px);
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(17, 17, 17, 0.05);
    justify-self: end;
    overflow: hidden;
}

.cloth-speed-item {
    flex: 1;
    position: relative;
    min-width: 0;
    z-index: 1;
}

.cloth-speed-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(33.333% - 8px / 3);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.cloth-speed-help {
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.1);
    color: #5d574e;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease;
    z-index: 2;
}

.cloth-speed-help:hover,
.cloth-speed-help:focus-visible {
    background: rgba(17, 17, 17, 0.14);
    color: #171717;
}

.cloth-speed-tooltip {
    position: fixed;
    z-index: 1000;
    width: 168px;
    padding: 9px 11px;
    border-radius: 12px;
    background: #171717;
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.cloth-speed-tooltip::after {
    content: "";
    position: absolute;
    right: 14px;
    top: -6px;
    bottom: auto;
    width: 12px;
    height: 12px;
    background: #171717;
    transform: rotate(45deg);
}

.cloth-speed-option {
    min-width: 0;
    width: 100%;
    min-height: 38px;
    padding: 0 6px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    cursor: pointer;
    transition: color 0.18s ease;
}

.cloth-speed-option:hover {
    color: #444;
}

.cloth-speed-item.is-active .cloth-speed-option {
    color: #111;
    font-weight: 800;
}

.cloth-speed-item.is-disabled .cloth-speed-option,
.cloth-speed-option.is-disabled,
.cloth-speed-option:disabled {
    cursor: not-allowed;
    color: #c5c0b8;
}

.cloth-speed-option-label {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.cloth-speed-item.is-tooltip-open .cloth-speed-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cloth-speed-item.is-active .cloth-speed-help {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

.cloth-speed-note {
    display: none;
}

.cloth-speed-legacy-note {
    margin-top: 6px;
    color: #8a5d43;
}

body.page-home.page-cloth-series .cloth-layout {
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 20px;
}

body.page-home.page-cloth-series .cloth-content {
    padding: 20px;
}

body.page-home.page-cloth-series .cloth-content-body {
    flex: 1;
}

body.page-home.page-cloth-series .cloth-empty-state {
    padding: 64px 18px;
    min-height: 0;
}

body.page-home.page-cloth-series .cloth-speed-switch {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(17, 17, 17, 0.05);
}

body.page-home.page-cloth-series .cloth-speed-item.is-disabled .cloth-speed-option,
body.page-home.page-cloth-series .cloth-speed-option.is-disabled,
body.page-home.page-cloth-series .cloth-speed-option:disabled {
    color: #a1a4af;
}

body.page-home.page-cloth-series .cloth-speed-help {
    background: rgba(17, 17, 17, 0.08);
    color: #6f6a61;
}

@media (max-width: 1180px) {
    .cloth-layout {
        grid-template-columns: 1fr;
    }

    .cloth-sidebar-top,
    .cloth-content {
        grid-column: 1;
    }

    .cloth-speed-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .cloth-speed-switch {
        width: 100%;
        justify-self: stretch;
    }

    body.page-home.page-cloth-series .cloth-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .cloth-planner-tooltip {
        width: 196px;
    }

    .cloth-speed-switch {
        padding: 4px;
    }

    .cloth-speed-option {
        min-height: 36px;
        padding: 0 6px;
    }

    .cloth-speed-option-label {
        font-size: 13px;
    }

    .cloth-speed-tooltip {
        right: -2px;
        width: 154px;
    }

    .cloth-speed-title-tooltip {
        left: 0;
        width: 196px;
        transform: translateY(-4px);
    }

    .cloth-speed-title-tooltip::before {
        left: 18px;
        transform: rotate(45deg);
    }

    .cloth-speed-title-wrap.is-tooltip-open .cloth-speed-title-tooltip {
        transform: translateY(0);
    }
}

body.page-home.page-cloth-series .cloth-beta-pill {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: #f8fafc;
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.16);
}

body.page-home.page-cloth-series .cloth-ghost-link,
body.page-home.page-cloth-series .cloth-hint-chip {
    border-color: rgba(113, 61, 234, 0.1);
    background: rgba(255, 255, 255, 0.84);
}

body.page-home.page-cloth-series .cloth-segment button.active,
body.page-home.page-cloth-series .cloth-stepper button:hover,
body.page-home.page-cloth-series .cloth-result-action.primary {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: #f8fafc;
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.14);
}

body.page-home.page-cloth-series .cloth-mode-tab.active {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.page-home.page-cloth-series .cloth-switch input {
    accent-color: #713dea;
}

body.page-home.page-cloth-series .cloth-primary-btn {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border-color: rgba(15, 23, 42, 0.08);
    color: #f8fafc;
    box-shadow: 0 20px 38px rgba(17, 24, 39, 0.18);
}

body.page-home.page-cloth-series .cloth-primary-btn:hover {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 24px 42px rgba(17, 24, 39, 0.22);
}

body.page-home.page-cloth-series .cloth-secondary-btn {
    background: rgba(255, 255, 255, 0.96);
    color: #374151;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

body.page-home.page-cloth-series .cloth-secondary-btn:hover {
    border-color: rgba(113, 61, 234, 0.18);
    color: #111827;
    box-shadow: 0 18px 32px rgba(113, 61, 234, 0.12);
}

body.page-home.page-cloth-series .cloth-state-block {
    gap: 18px;
}

body.page-home.page-cloth-series .cloth-analysis-shell,
body.page-home.page-cloth-series .cloth-generating-shell {
    position: relative;
    overflow: hidden;
    min-height: 308px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 247, 251, 0.96) 100%);
    border: 1px solid rgba(113, 61, 234, 0.1);
    box-shadow: 0 24px 52px rgba(31, 23, 60, 0.08);
}

body.page-home.page-cloth-series .cloth-generating-shell {
    min-height: 240px;
    padding-top: 20px;
    padding-bottom: 18px;
}

body.page-home.page-cloth-series .cloth-analysis-shell::before,
body.page-home.page-cloth-series .cloth-generating-shell::before {
    content: "";
    position: absolute;
    top: -72px;
    right: -56px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(171, 122, 255, 0.24) 0%, rgba(171, 122, 255, 0) 68%);
    pointer-events: none;
}

body.page-home.page-cloth-series .cloth-analysis-head,
body.page-home.page-cloth-series .cloth-generating-head,
body.page-home.page-cloth-series .cloth-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body.page-home.page-cloth-series .cloth-analysis-head,
body.page-home.page-cloth-series .cloth-generating-head {
    position: relative;
    z-index: 1;
}

body.page-home.page-cloth-series .cloth-analysis-kicker {
    margin-bottom: 0;
    color: #6b6480;
    letter-spacing: 0.08em;
}

body.page-home.page-cloth-series .cloth-analysis-stage-badge,
body.page-home.page-cloth-series .cloth-generating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(113, 61, 234, 0.08);
    border: 1px solid rgba(113, 61, 234, 0.12);
    color: var(--mx-violet);
    font-size: 13px;
    font-weight: 700;
}

body.page-home.page-cloth-series .cloth-analysis-next {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin: 14px 0 18px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(113, 61, 234, 0.06);
    color: #5d4aa6;
    font-size: 13px;
    font-weight: 600;
}

body.page-home.page-cloth-series .cloth-analysis-hero {
    position: relative;
    z-index: 1;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
}

body.page-home.page-cloth-series .cloth-analysis-hero h3,
body.page-home.page-cloth-series .cloth-generating-head h3 {
    color: #111827;
}

body.page-home.page-cloth-series .cloth-analysis-hero p,
body.page-home.page-cloth-series .cloth-generating-head p {
    color: #5b556d;
}

body.page-home.page-cloth-series .cloth-analysis-spinner {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(244, 240, 255, 0.86));
    border: 1px solid rgba(113, 61, 234, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.page-home.page-cloth-series .cloth-analysis-spinner::before {
    border-color: rgba(113, 61, 234, 0.16);
    border-top-color: var(--mx-violet);
}

body.page-home.page-cloth-series .cloth-analysis-spinner span {
    background: var(--mx-violet);
    opacity: 0.42;
}

body.page-home.page-cloth-series .cloth-analysis-progress,
body.page-home.page-cloth-series .cloth-generating-progress {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    margin-bottom: 0;
}

body.page-home.page-cloth-series .cloth-progress-bar {
    height: 12px;
    background: rgba(113, 61, 234, 0.08);
}

body.page-home.page-cloth-series .cloth-progress-bar span {
    background: linear-gradient(90deg, #713dea 0%, #4b34b2 48%, #111827 100%);
    box-shadow: 0 10px 24px rgba(113, 61, 234, 0.22);
}

body.page-home.page-cloth-series .cloth-progress-text {
    margin-top: 0;
    color: #111827;
    font-weight: 700;
}

body.page-home.page-cloth-series .cloth-progress-inline {
    color: #6b6480;
    font-size: 13px;
    font-weight: 600;
}

body.page-home.page-cloth-series .cloth-analysis-timeline {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    gap: 12px;
}

body.page-home.page-cloth-series .cloth-analysis-pill {
    min-height: 40px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(113, 61, 234, 0.08);
    color: #6b6480;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.page-home.page-cloth-series .cloth-analysis-pill.active {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border-color: transparent;
    color: #f8fafc;
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.14);
}

body.page-home.page-cloth-series .cloth-analysis-pill.done {
    background: rgba(113, 61, 234, 0.1);
    color: var(--mx-violet);
}

body.page-home.page-cloth-series .cloth-generating-head {
    position: relative;
    z-index: 1;
    align-items: flex-start;
    margin-bottom: 16px;
}

body.page-home.page-cloth-series .cloth-generating-head h3 {
    margin: 6px 0 0;
    font-size: clamp(22px, 2.5vw, 28px);
}

body.page-home.page-cloth-series .cloth-generating-head p {
    margin-top: 6px;
}

body.page-home.page-cloth-series .cloth-generating-progress {
    margin-top: 16px;
}

body.page-home.page-cloth-series .cloth-result-card {
    border: 1px solid rgba(113, 61, 234, 0.08);
    box-shadow: 0 18px 40px rgba(31, 23, 60, 0.08);
}

body.page-home.page-cloth-series .cloth-result-card.is-pending .cloth-result-card-media {
    background: linear-gradient(135deg, rgba(248, 247, 251, 0.96) 0%, rgba(243, 239, 255, 0.92) 100%);
}

body.page-home.page-cloth-series .cloth-result-card.is-pending .cloth-result-card-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.72) 46%, transparent 100%);
    transform: translateX(-100%);
    animation: cloth-result-shimmer 1.8s ease-in-out infinite;
}

body.page-home.page-cloth-series .cloth-result-card.is-failed .cloth-result-card-media {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95) 0%, rgba(255, 248, 248, 0.98) 100%);
}

body.page-home.page-cloth-series .cloth-result-placeholder {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px;
    text-align: center;
    color: #5b556d;
}

body.page-home.page-cloth-series .cloth-result-placeholder strong {
    font-size: 17px;
    color: #111827;
    line-height: 1.25;
}

body.page-home.page-cloth-series .cloth-result-placeholder span {
    font-size: 13px;
    line-height: 1.5;
    color: #6b6480;
}

body.page-home.page-cloth-series .cloth-result-placeholder-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(113, 61, 234, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

body.page-home.page-cloth-series .cloth-result-placeholder-icon::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 3px solid rgba(113, 61, 234, 0.16);
    border-top-color: var(--mx-violet);
    animation: cloth-spin 1.1s linear infinite;
}

body.page-home.page-cloth-series .cloth-result-placeholder.is-failed .cloth-result-placeholder-icon {
    border-color: rgba(239, 68, 68, 0.14);
    background: rgba(255, 255, 255, 0.84);
}

body.page-home.page-cloth-series .cloth-result-placeholder.is-failed .cloth-result-placeholder-icon::before {
    content: "!";
    inset: 0;
    border: 0;
    animation: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 22px;
    font-weight: 800;
}

body.page-home.page-cloth-series .cloth-result-status {
    border: 1px solid rgba(113, 61, 234, 0.08);
    background: rgba(113, 61, 234, 0.08);
    color: var(--mx-violet);
}

body.page-home.page-cloth-series .cloth-result-status.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

body.page-home.page-cloth-series .cloth-result-status.failed {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

@keyframes cloth-result-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 760px) {
    body.page-home.page-cloth-series .cloth-analysis-shell,
    body.page-home.page-cloth-series .cloth-generating-shell {
        min-height: auto;
        padding: 20px;
    }

    body.page-home.page-cloth-series .cloth-analysis-head,
    body.page-home.page-cloth-series .cloth-generating-head,
    body.page-home.page-cloth-series .cloth-progress-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-home.page-cloth-series .cloth-analysis-stage-badge,
    body.page-home.page-cloth-series .cloth-generating-badge {
        min-width: 0;
    }

    body.page-home.page-cloth-series .cloth-analysis-next {
        width: 100%;
    }

    body.page-home.page-cloth-series .cloth-analysis-hero {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 14px;
    }

    body.page-home.page-cloth-series .cloth-analysis-spinner {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }

    body.page-home.page-cloth-series .cloth-analysis-spinner::before {
        inset: 12px;
    }
}
