.pbsp-profile-modal{position:fixed;inset:0;z-index:99999;align-items:center;justify-content:center;padding:20px}
.pbsp-profile-modal-backdrop{position:absolute;inset:0;background:rgba(17,24,39,.42)}
.pbsp-profile-modal-dialog{position:relative;max-width:1080px;width:min(1080px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,.16);padding:22px}
.pbsp-profile-close{position:absolute;top:12px;left:12px;border:0;background:#eef2ff;color:#111827;width:36px;height:36px;border-radius:999px;font-size:24px;line-height:1;cursor:pointer}
html.pbsp-modal-open,html.pbsp-modal-open body{overflow:hidden}
.pbsp-profile-shell{display:flex;flex-direction:column;gap:14px}
.pbsp-profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:4px}
.pbsp-profile-head h3{margin:0;font-size:1.2rem}
.pbsp-profile-head p{margin:.35rem 0 0;color:#6b7280}
.pbsp-profile-message{display:none;border-radius:14px;padding:10px 12px;font-size:.95rem}
.pbsp-profile-message.is-success,.pbsp-profile-message.is-error{display:block}
.pbsp-profile-message.is-success{background:#ecfdf5;color:#065f46}
.pbsp-profile-message.is-error{background:#fef2f2;color:#991b1b}
.pbsp-profile-loading{padding:20px;border:1px dashed #d1d5db;border-radius:16px;color:#6b7280;text-align:center}
.pbsp-profile-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pbsp-profile-summary-card{background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px;padding:14px}
.pbsp-profile-summary-title{font-weight:700;font-size:1.06rem}
.pbsp-profile-summary-sub,.pbsp-profile-summary-k{color:#6b7280;font-size:.9rem}
.pbsp-profile-summary-v{margin-top:6px;font-weight:700}
.pbsp-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.pbsp-profile-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:16px;box-shadow:0 8px 26px rgba(15,23,42,.04)}
.pbsp-profile-card-title{font-weight:700;margin-bottom:12px}
.pbsp-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pbsp-profile-fields label{display:flex;flex-direction:column;gap:6px;font-size:.92rem}
.pbsp-profile-fields input,.pbsp-profile-fields textarea{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:10px 12px;font:inherit;background:#fff;box-sizing:border-box}
.pbsp-profile-fields textarea{resize:vertical;min-height:92px}
.pbsp-profile-span-2{grid-column:1/-1}
.pbsp-profile-checkbox{grid-column:1/-1;flex-direction:row!important;align-items:center;gap:8px!important}
.pbsp-profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.pbsp-profile-address-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.pbsp-profile-address-list{display:flex;flex-direction:column;gap:10px}
.pbsp-profile-address-card{border:1px solid #e5e7eb;border-radius:16px;padding:12px;background:#fbfdff}
.pbsp-profile-address-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.pbsp-profile-address-title-wrap{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pbsp-profile-address-title{font-weight:700}
.pbsp-profile-address-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:.82rem}
.pbsp-profile-address-actions{display:flex;gap:8px;flex-wrap:wrap}
.pbsp-profile-address-body{margin-top:10px;color:#374151;line-height:1.8}
.pbsp-profile-address-empty{padding:14px;border:1px dashed #d1d5db;border-radius:14px;color:#6b7280;text-align:center}
.pbsp-profile-address-editor{border-style:dashed}
.pbsp-profile-standalone{max-width:1100px;margin:0 auto}
.pbsp-auth-session{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pbsp-auth-session-actions{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width: 900px){.pbsp-profile-grid,.pbsp-profile-summary,.pbsp-profile-fields{grid-template-columns:1fr}.pbsp-profile-address-toolbar,.pbsp-profile-address-top{flex-direction:column;align-items:stretch}.pbsp-profile-modal{padding:12px}.pbsp-profile-modal-dialog{padding:18px 14px 14px}}
.pbsp-profile-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pbsp-profile-head-actions .button{text-decoration:none}
@media (max-width: 640px){.pbsp-profile-head{flex-direction:column}.pbsp-profile-head-actions{width:100%;justify-content:stretch}.pbsp-profile-head-actions .button{flex:1;text-align:center}}
