.ps-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding: 4px 12px;
    border: 1px solid #d9e2ef;
    border-radius: 999px;
    background: #f7faff;
    color: #2367c9;
    font-size: 13px;
    line-height: 1.6;
    vertical-align: middle;
    cursor: pointer;
}
.ps-share-btn:hover { background: #eaf2ff; border-color: #9fc1f5; color: #1453a8; }
.ps-share-btn .icon-share-alt { font-size: 14px; }

.ps-modal[hidden] { display: none !important; }
.ps-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ps-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(9, 18, 33, .72);
    backdrop-filter: blur(3px);
}
.ps-modal-card {
    position: relative;
    z-index: 1;
    width: min(92vw, 430px);
    max-height: 92vh;
    overflow-y: auto;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}
.ps-modal-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .86);
    color: #5a6575;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.ps-preview {
    min-height: 180px;
    margin-top: 8px;
    border-radius: 14px;
    background: #f2f4f8;
    overflow: hidden;
}
.ps-preview img {
    display: block;
    width: 100%;
    height: auto;
}
.ps-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}
.ps-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 18px;
    border-radius: 10px;
    background: #1d6fe8;
    color: #fff !important;
    font-size: 14px;
    text-decoration: none;
}
.ps-download:hover { background: #155fc9; color: #fff !important; }
.ps-save-hint { color: #8792a3; font-size: 12px; text-align: right; }
.ps-canvas, .ps-qr-holder { display: none !important; }

@media (max-width: 640px) {
    .ps-share-btn { margin-left: 8px; padding: 3px 9px; font-size: 12px; }
    .ps-modal-card { width: min(94vw, 420px); padding: 10px; border-radius: 16px; }
    .ps-modal-actions { flex-direction: column; align-items: stretch; }
    .ps-download { justify-content: center; }
    .ps-save-hint { text-align: center; }
}
