.pending-task-card.painterly-task {
    flex: 0 0 296px;
    width: 296px;
}
.pending-masonry-item.painterly-task {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.painterly-card {
    overflow: hidden;
    border: 1px solid #e1ded2;
    border-radius: 18px;
    background: #faf8f1;
    color: #363e36;
    box-shadow: 0 4px 14px #26372e08;
    font-family: inherit;
}
.painterly-art {
    position: relative;
    aspect-ratio: 26 / 18;
    overflow: hidden;
    background: #e7ebdf;
}
.painterly-art painterly-wait { display: block; width: 100%; height: 100%; }
.painterly-topline {
    position: absolute;
    z-index: 1;
    inset: 12px 12px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.painterly-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    background: #fffdf2dc;
    border: 1px solid #ffffff80;
    border-radius: 30px;
    color: #465644;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}
.painterly-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #738c69;
    animation: painterly-breathe 2.8s ease-in-out infinite;
}
.painterly-status.is-queued::before { background: #ac9770; animation: none; }
.painterly-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    background: #fffdf2dc;
    color: #52604d;
    cursor: pointer;
}
.painterly-cancel svg { width: 13px; height: 13px; }
.painterly-cancel:hover { background: #fffdf2; color: #9b554e; }
.painterly-cancel:focus-visible { outline: 2px solid #687f60; outline-offset: 3px; }
.painterly-cancel:disabled { cursor: wait; opacity: .5; }
.painterly-caption { padding: 15px 17px 16px; }
.painterly-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #7a8173;
    font-size: 10px;
    letter-spacing: .035em;
    margin-bottom: 7px;
}
.painterly-model { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.painterly-kind { flex-shrink: 0; }
.painterly-prompt {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 40px;
}
body[data-theme="dark"] .painterly-card {
    background: #242a25;
    border-color: #3a4338;
    color: #eeeee4;
}
body[data-theme="dark"] .painterly-meta { color: #b0b8a8; }
@keyframes painterly-breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .painterly-status::before { animation: none; } }
@media (max-width: 640px) {
    .pending-task-card.painterly-task { flex-basis: 266px; width: 266px; }
}

/* 等待卡片与作品共用日期网格，完成后原位替换。 */
.my-works-date-list .painterly-task { width: 100%; }
.my-works-date-list .painterly-card { width: 100%; }
.my-work-card-media .painterly-result-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    z-index: 2;
    pointer-events: none;
}
