.pic-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 16px;
}

.pic-modal-overlay.is-open {
    display: flex;
}

.pic-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.pic-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.pic-modal__header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.pic-modal__close {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0 4px;
}

.pic-modal__body {
    padding: 16px 18px;
}

.pic-modal__stage {
    width: 100%;
    max-height: 55vh;
    background: #111827;
    overflow: hidden;
}

.pic-modal__stage img {
    display: block;
    max-width: 100%;
}

.pic-modal__hint {
    margin: 10px 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.pic-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid #e5e7eb;
}

.pic-modal__btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
}

.pic-modal__btn--primary {
    border-color: #db2777;
    background: #db2777;
    color: #fff;
}

.pic-modal__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
