.prorx-thumb {
    position: relative;
    overflow: visible;
    isolation: isolate;
    z-index: 0;
}
.prorx-thumb:hover,
.prorx-thumb:focus-within {
    z-index: 8;
}
.prorx-thumb-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.45);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.prorx-thumb:hover .prorx-thumb-frame,
.prorx-thumb:focus-within .prorx-thumb-frame {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 26px 52px -34px rgba(79, 70, 229, 0.32);
}
.prorx-thumb-frame > img {
    display: block;
    position: static;
    inset: auto;
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    padding: 0;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(224, 231, 255, 0.72), rgba(251, 207, 232, 0.72));
    transition: transform .22s ease;
}
.prorx-thumb:hover .prorx-thumb-frame > img,
.prorx-thumb:focus-within .prorx-thumb-frame > img {
    transform: scale(1.04);
}
.prorx-thumb-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.8);
    opacity: 0;
    pointer-events: none;
    transform: scale(.9);
    transition: opacity .16s ease, transform .16s ease, background .16s ease;
    z-index: 3;
}
.prorx-thumb:hover .prorx-thumb-remove,
.prorx-thumb:focus-within .prorx-thumb-remove {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.prorx-thumb-remove:hover {
    background: rgba(225, 29, 72, 0.92);
}
.prorx-thumb-order {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 14px 24px -22px rgba(15, 23, 42, 0.72);
    z-index: 3;
}
.prorx-thumb-zoom {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    width: 184px;
    height: 184px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 28px 56px -30px rgba(15, 23, 42, 0.58);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(.96);
    transform-origin: left center;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 4;
}
.prorx-thumb:hover .prorx-thumb-zoom,
.prorx-thumb:focus-within .prorx-thumb-zoom {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
.prorx-thumb-zoom img {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transform: none;
}
#outfit-preview-summary.is-pending {
    border-color: rgba(99, 102, 241, 0.22);
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.94), rgba(245, 243, 255, 0.92));
    color: #4338ca;
}
#outfit-preview-summary.is-error {
    border-color: rgba(244, 63, 94, 0.2);
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.94), rgba(255, 247, 237, 0.92));
    color: #be123c;
}
.prorx-thumb.is-pending .prorx-thumb-frame {
    min-height: 0;
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.92), rgba(255, 255, 255, 0.96));
}
.prorx-thumb.is-pending .prorx-thumb-frame > img {
    filter: saturate(0.72) blur(1px);
    opacity: 0.28;
    transform: none;
}
.prorx-thumb.is-pending:hover .prorx-thumb-frame,
.prorx-thumb.is-pending:focus-within .prorx-thumb-frame {
    transform: none;
}
.prorx-thumb-pending-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(224, 231, 255, 0.84), rgba(250, 245, 255, 0.84));
    color: rgba(99, 102, 241, 0.8);
    font-size: 32px;
}
.prorx-thumb-pending-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 14px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.92));
}
.prorx-thumb-pending-indicator {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid rgba(99, 102, 241, 0.14);
    border-top-color: rgba(99, 102, 241, 0.9);
    animation: prorx-thumb-spin .8s linear infinite;
}
.prorx-thumb-pending-indicator[data-state="failed"] {
    position: relative;
    border: 0;
    background: rgba(244, 63, 94, 0.14);
    animation: none;
}
.prorx-thumb-pending-indicator[data-state="failed"]::before,
.prorx-thumb-pending-indicator[data-state="failed"]::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.92);
}
.prorx-thumb-pending-indicator[data-state="failed"]::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.prorx-thumb-pending-indicator[data-state="failed"]::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.prorx-thumb-pending-title {
    font-size: 13px;
    font-weight: 900;
    color: #1e1b4b;
}
.prorx-thumb-pending-note {
    max-width: 120px;
    font-size: 11px;
    line-height: 1.55;
    font-weight: 800;
    color: #6366f1;
}
.prorx-thumb.is-failed .prorx-thumb-frame {
    border-color: rgba(244, 63, 94, 0.18);
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.94), rgba(255, 255, 255, 0.96));
}
.prorx-thumb.is-failed .prorx-thumb-pending-title {
    color: #9f1239;
}
.prorx-thumb.is-failed .prorx-thumb-pending-note {
    color: #be123c;
}
@keyframes prorx-thumb-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@media (hover: none) {
    .prorx-thumb-remove {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }
    .prorx-thumb-zoom {
        display: none;
    }
}
.prorx-count-btn {
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.82);
    padding: 12px 10px;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.prorx-count-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px -30px rgba(79, 70, 229, 0.45);
}
.prorx-count-btn.is-selected {
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.96), rgba(217, 70, 239, 0.92));
    color: #fff;
    box-shadow: 0 24px 42px -30px rgba(139, 92, 246, 0.7);
}
.prorx-action-card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.9);
    text-align: left;
    box-shadow: 0 24px 42px -34px rgba(15, 23, 42, 0.4);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease;
}
.prorx-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 48px -34px rgba(79, 70, 229, 0.34);
}
.prorx-action-card.is-selected {
    border-color: rgba(217, 70, 239, 0.55);
    box-shadow: 0 28px 52px -34px rgba(217, 70, 239, 0.45);
}
.prorx-action-card.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: saturate(0.68);
    transform: none;
    box-shadow: none;
}
.prorx-action-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(140deg, rgba(224, 231, 255, 0.85), rgba(253, 230, 246, 0.82));
}
.prorx-action-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prorx-action-check {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 16px 24px -22px rgba(15, 23, 42, 0.7);
}
.prorx-action-card.is-selected .prorx-action-check {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.98), rgba(217, 70, 239, 0.94));
    color: #fff;
}
.prorx-action-body {
    padding: 14px 14px 16px;
}
.prorx-action-title {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
    color: #0f172a;
}
.prorx-action-meta {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.65;
    font-weight: 700;
    color: #64748b;
}
.prorx-preview-card[data-prorx-stage="waiting"] .generation-preview-art {
    animation: none;
    background:
        radial-gradient(circle at 18% 22%, rgba(148, 163, 184, 0.28), transparent 30%),
        radial-gradient(circle at 82% 26%, rgba(192, 132, 252, 0.22), transparent 24%),
        linear-gradient(135deg, rgba(226, 232, 240, 0.82), rgba(241, 245, 249, 0.94));
}
.prorx-preview-card[data-prorx-stage="queued"] .generation-progress-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #fb7185 100%);
}
.prorx-preview-card[data-prorx-stage="completed"] .generation-preview-art {
    animation: none;
    background: #fff;
}
.prorx-preview-card[data-prorx-stage="completed"] .generation-progress-fill {
    animation: none;
    background: linear-gradient(90deg, #10b981 0%, #14b8a6 100%);
}
.prorx-preview-card[data-prorx-stage="completed"] .generation-preview-percent {
    color: #059669;
    font-size: 18px;
}
.prorx-preview-card[data-prorx-stage="failed"] .generation-preview-art {
    animation: none;
    background:
        radial-gradient(circle at 18% 22%, rgba(251, 113, 133, 0.4), transparent 30%),
        radial-gradient(circle at 82% 26%, rgba(244, 63, 94, 0.28), transparent 24%),
        linear-gradient(135deg, rgba(255, 241, 242, 0.94), rgba(255, 228, 230, 0.98));
}
.prorx-preview-card[data-prorx-stage="failed"] .generation-progress-fill {
    animation: none;
    background: linear-gradient(90deg, #fb7185 0%, #e11d48 100%);
}
.prorx-preview-card[data-prorx-stage="failed"] .generation-preview-percent {
    color: #e11d48;
    font-size: 18px;
}
.prorx-board-grid {
    display: grid;
    align-items: start;
    grid-auto-flow: row;
    grid-auto-rows: auto;
    gap: 16px;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}
.prorx-board-card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    min-height: 0;
    align-self: start;
    border-radius: 26px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 42px -34px rgba(15, 23, 42, 0.42);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: grab;
}
.prorx-board-frame {
    position: relative;
    display: block;
    width: 100%;
}
.prorx-board-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.34);
    box-shadow: 0 28px 48px -34px rgba(245, 158, 11, 0.32);
}
.prorx-board-card:active {
    cursor: grabbing;
}
.prorx-board-cover {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, rgba(255, 247, 237, 0.88), rgba(254, 242, 242, 0.84));
}
.prorx-board-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .24s ease;
}
.prorx-board-card:hover .prorx-board-cover img,
.prorx-board-card:focus-within .prorx-board-cover img {
    transform: scale(1.035);
}
.prorx-board-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 24%, rgba(15, 23, 42, 0.08) 44%, rgba(15, 23, 42, 0.78) 100%);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}
.prorx-board-card:hover .prorx-board-body,
.prorx-board-card:focus-within .prorx-board-body {
    opacity: 1;
    transform: translateY(0);
}
.prorx-board-title {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 8px 22px rgba(15, 23, 42, 0.48);
}
.prorx-board-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.prorx-board-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.prorx-board-tag.is-garment {
    border: 1px solid rgba(253, 186, 116, 0.28);
    background: rgba(120, 53, 15, 0.36);
    color: #ffedd5;
}
.prorx-board-tag.is-gender {
    border: 1px solid rgba(165, 180, 252, 0.26);
    background: rgba(49, 46, 129, 0.38);
    color: #e0e7ff;
}
.prorx-board-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.94);
    padding: 10px 12px;
    color: #7c2d12;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 16px 28px -24px rgba(15, 23, 42, 0.78);
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
    pointer-events: auto;
}
.prorx-board-add-btn:hover {
    border-color: rgba(255, 237, 213, 0.96);
    background: #fff7ed;
    transform: translateY(-1px);
}
@media (min-width: 1024px) {
    .prorx-board-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 1023.98px) {
    .prorx-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (hover: none) {
    .prorx-board-body {
        opacity: 1;
        transform: none;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0) 42%, rgba(15, 23, 42, 0.72) 100%);
    }
}
.upload-slot.is-board-drop-target {
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.14);
}
.upload-slot.is-board-drop-blocked {
    border-color: rgba(244, 63, 94, 0.42);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}
.prorx-preview-art {
    position: relative;
    overflow: hidden;
}
.prorx-preview-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #fff;
}
.prorx-preview-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    text-align: center;
    color: #fff;
}
.prorx-preview-placeholder-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 32px -28px rgba(15, 23, 42, 0.6);
    font-size: 18px;
}
.prorx-preview-placeholder-title {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.01em;
}
.prorx-preview-placeholder-note {
    max-width: 220px;
    font-size: 11px;
    line-height: 1.65;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.84);
}
.prorx-result-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 40px -34px rgba(15, 23, 42, 0.38);
}
.prorx-result-media {
    position: relative;
    overflow: hidden;
    background: rgba(241, 245, 249, 0.85);
}
.prorx-result-caption {
    padding: 14px 16px 16px;
}
