/* V61.10.434 — BP upload / PDF viewer; scopes do not affect other fields. */
.pb-bp-upload{min-width:0}
.pb-bp-upload-picker{border:1px dashed #a7bedc;border-radius:11px;padding:16px;background:#f8fbff}
.pb-bp-upload-picker input[type=file]{display:block;width:100%;box-sizing:border-box;max-width:100%;height:auto;min-height:40px;padding:8px;background:white}
.pb-bp-upload-picker p,.pb-bp-local-hint{font-size:12px;line-height:1.6;color:#6c8097;margin:7px 0 0}
.pb-bp-current{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:10px;padding:10px;border:1px solid #dce7f4;border-radius:9px;background:white}
.pb-bp-current[hidden]{display:none!important}
.pb-bp-current>div{flex:1;min-width:130px}
.pb-bp-current strong{display:block;font-size:13px;overflow-wrap:anywhere}
.pb-bp-current small{display:block;font-size:12px;color:#6c8097;margin-top:4px}
.pb-bp-download-setting{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;margin-top:10px;font-size:13px!important;line-height:1.5}
.pb-bp-download-setting input{width:16px!important;height:16px!important;min-width:16px;padding:0!important;accent-color:#1677ff}
.bp-viewer .pb-bp-pdf-wrap{margin-top:12px;min-width:0}
.bp-viewer .pb-bp-pdf-wrap p{font-size:13px;word-break:break-all}
.bp-viewer #pbBpIframe{display:block;width:100%;height:min(65vh,670px);border:1px solid #dbe5f1;border-radius:9px;background:white}
.bp-viewer #pbBpIframe[hidden]{display:none}
.bp-viewer{width:min(860px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}
.pb-bp-local-notice{font-size:12px;color:#71879e;margin:9px 0 0}
.pb-bp-request-action{margin-left:0}
.pb-bp-requests{margin-top:18px;border-top:1px solid #e1e9f4;padding-top:12px}
.pb-bp-requests h4{font-size:15px;margin:0 0 7px}
.pb-bp-requests>p{font-size:12px;color:#71879e}
.pb-bp-request-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;border-bottom:1px solid #e6edf5;padding:10px 0}
.pb-bp-request-row strong{font-size:13px}
.pb-bp-request-row small{font-size:12px;color:#607e9c}
.pb-bp-request-row>div{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:480px){.pb-bp-current{align-items:stretch}.bp-viewer #pbBpIframe{height:60vh}.pb-bp-request-row>div{margin-left:0;width:100%}.bp-viewer{padding:16px}}

/* V61.10.435 — BP module design system: quiet file cards and distinct permissions. */
#publishEditor .pb-bp-upload{display:flex;flex-direction:column;gap:14px;min-width:0}
#publishEditor .pb-bp-manager-title{display:flex;justify-content:space-between;align-items:center;gap:12px}
#publishEditor .pb-bp-manager-title strong{font-size:15px;line-height:1.45;color:#183b62;font-weight:700}
#publishEditor .pb-bp-manager-title strong span{font-size:12px;color:#71869c;font-weight:400}
#publishEditor .pb-bp-manager-title small{display:block;margin-top:5px;color:#73869b;font-size:12px;font-weight:400;line-height:1.5}
#publishEditor .pb-bp-upload-panel{border:1px solid #dce6f2;border-radius:12px;background:#f8fbff;min-width:0;overflow:hidden}
#publishEditor .pb-bp-upload-picker{border:0;border-radius:0;background:transparent;padding:22px 14px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center;min-width:0}
#publishEditor .pb-bp-upload-picker[hidden]{display:none!important}
#publishEditor .pb-bp-native-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;padding:0!important;border:0!important;pointer-events:none}
#publishEditor .pb-bp-upload-picker strong{font-size:14px;color:#214462}
#publishEditor .pb-bp-upload-picker small{font-size:12px;color:#8091a5;font-weight:400;line-height:1.5;margin:0}
#publishEditor .pb-bp-file-symbol{flex:none;width:46px;height:48px;border-radius:11px;background:#e9f1ff;color:#2475d4;font-size:12px;font-weight:800;display:grid;place-items:center;letter-spacing:.2px}
#publishEditor .pb-bp-choose{display:inline-flex;align-items:center;justify-content:center;margin-top:5px;min-height:38px;min-width:128px;padding:0 15px!important;cursor:pointer;background:#fff;font-size:13px;line-height:1.4;color:#1c6fce;border:1px solid #bfd3eb;border-radius:8px;text-align:center}
#publishEditor .pb-bp-choose:hover,#publishEditor .pb-bp-choose:focus-within{background:#eef5ff;border-color:#7eb1eb}
#publishEditor .pb-bp-current{display:flex;flex-wrap:nowrap;align-items:center;gap:13px;margin:0;padding:16px;border:0;border-radius:0;background:transparent;min-width:0}
#publishEditor .pb-bp-current[hidden]{display:none!important}
#publishEditor .pb-bp-current-info{flex:1 1 160px;min-width:0}
#publishEditor .pb-bp-current-info strong{display:block;font-size:14px;line-height:1.5;color:#1b3d63;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
#publishEditor .pb-bp-current-info small{display:block;font-size:12px;font-weight:400;line-height:1.5;color:#73879c;margin-top:4px}
#publishEditor .pb-bp-current-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;flex:none}
#publishEditor .pb-bp-current-actions .btn{height:38px;min-height:38px;white-space:nowrap;padding:0 12px;border-radius:8px}
#publishEditor .pb-bp-current-actions .pb-bp-remove{color:#bf5656;border-color:#f1caca}
#publishEditor .pb-bp-permissions-panel{padding:17px 18px 15px;border:1px solid #dce6f2;border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:13px}
#publishEditor .pb-bp-panel-head strong{display:block;color:#1d416a;font-size:14px;font-weight:700}
#publishEditor .pb-bp-panel-head small{display:block;color:#8192a4;font-size:12px;margin-top:4px;line-height:1.5;font-weight:400}
#publishEditor .pb-bp-permission-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
#publishEditor .pb-bp-permission-row>label{color:#4d6581;font-size:13px;font-weight:600;margin:0;flex:none}
#publishEditor .pb-bp-permission-row select{box-sizing:border-box;flex:0 1 310px;min-width:0;max-width:100%;height:42px;padding:0 12px;border-radius:8px;border:1px solid #dbe5f1;background:#fff;font-size:13px;color:#284768}
#publishEditor .pb-bp-download-setting{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:10px!important;padding:12px 0;border-top:1px solid #edf2f7;margin:0!important;font-size:13px!important;font-weight:400;cursor:pointer}
#publishEditor .pb-bp-download-setting>input{width:17px!important;height:17px!important;min-width:17px!important;flex:none;margin:3px 0 0!important;padding:0!important;accent-color:#1677ff}
#publishEditor .pb-bp-download-setting>span{display:block;min-width:0}
#publishEditor .pb-bp-download-setting strong{display:block;font-size:13px;color:#244360;line-height:1.5}
#publishEditor .pb-bp-download-setting small{display:block;font-size:12px;color:#8294a7;margin-top:3px;font-weight:400;line-height:1.5}
#publishEditor .pb-bp-storage-note{margin:0;padding:10px 12px;background:#f6f8fc;border-radius:8px;color:#8799ac;font-size:12px;line-height:1.6;font-weight:400}
#publishEditor .pb-bp-local-hint{margin:0;font-size:12px;line-height:1.5;color:#57789b}
#publishEditor .pb-bp-local-hint:empty{display:none}
/* Detail: one file card with a single row of context-relevant actions. */
.bp-detail-section{min-width:0}
.bp-detail-section .pb-bp-detail-heading{display:flex;justify-content:flex-start;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.bp-detail-section .pb-bp-detail-heading h3{margin:0;color:#1b3c64}
.pb-bp-access-badge{flex:none;max-width:50%;border-radius:7px;padding:6px 10px;background:#edf4ff;color:#2870c3;font-size:12px;line-height:1.4;font-weight:600;text-align:center}
.pb-bp-access-badge.is-available{color:#268465;background:#eaf8f2}
.pb-bp-access-badge.is-closed{background:#f2f4f7;color:#7a8796}
.bp-detail-section .pb-bp-detail-card{display:flex;align-items:center;gap:14px;min-width:0;padding:17px 18px;border:1px solid #e0e9f3;border-radius:12px;background:#f7faff}
.pb-bp-detail-icon{display:grid;place-items:center;flex:none;width:50px;height:56px;border-radius:10px;background:#e8f1ff;color:#2573ce;font-size:12px;font-weight:800;letter-spacing:.4px}
.pb-bp-detail-file{flex:1;min-width:0}
.pb-bp-detail-file strong{display:block;color:#1c3d62;font-size:15px;line-height:1.5;font-weight:700;overflow-wrap:anywhere}
.pb-bp-detail-file small{display:block;color:#8094aa;margin:5px 0 0;font-size:12px;line-height:1.5}
.pb-bp-detail-file p{margin:5px 0 0;font-size:12px;line-height:1.6;color:#6c8198;overflow-wrap:anywhere}
.bp-detail-section .pb-bp-detail-actions{display:flex;align-items:center;justify-content:flex-start;gap:9px;flex-wrap:wrap;margin-top:14px}
.bp-detail-section .pb-bp-detail-actions.pb-bp-guest-request{justify-content:center}
.bp-detail-section .pb-bp-detail-actions.pb-bp-guest-request .pb-bp-request-action{margin-left:0}
.bp-detail-section .pb-bp-detail-actions .btn{height:44px;min-height:44px;padding:0 16px;font-size:13px;border-radius:9px}
.bp-detail-section .pb-bp-detail-actions [hidden]{display:none!important}
/* Owner-only requests are a separate, independent white panel. */
.pb-bp-owner-section{margin-top:22px;border:1px solid #dce7f3;border-radius:14px;background:#fff;padding:18px 20px;min-width:0}
.pb-bp-owner-section[hidden]{display:none!important}
.pb-bp-requests-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid #e8edf5}
.pb-bp-requests-head h3{margin:0;color:#1e3e62;font-size:16px}
.pb-bp-requests-head p{margin:4px 0 0;font-size:12px;line-height:1.6;color:#7f91a3}
.pb-bp-requests-count{flex:none;background:#f1f6ff;color:#4c78ac;padding:6px 10px;border-radius:7px;font-size:12px}
.pb-bp-requests-empty{padding:22px 4px 7px;text-align:center;color:#90a1b3;font-size:13px;margin:0}
.pb-bp-requests-list{min-width:0}
.pb-bp-request-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:14px;row-gap:10px;border-bottom:1px solid #edf1f6;padding:15px 0;min-width:0}
.pb-bp-request-row:last-child{border-bottom:0;padding-bottom:0}
.pb-bp-request-user{min-width:0;display:flex;flex-direction:column;gap:5px}
.pb-bp-request-user strong{font-size:13px;font-weight:650;color:#1d3e63;overflow-wrap:anywhere}
.pb-bp-request-user small{font-size:12px;color:#8798aa;line-height:1.5}
.pb-bp-request-status{flex:none;padding:5px 8px;font-size:12px;line-height:1.4;border-radius:7px;background:#f1f5fa;color:#6a7e94}
.pb-bp-request-status.is-pending{background:#fff6e8;color:#a06e26}
.pb-bp-request-status.is-approved{background:#e8f7f0;color:#25815d}
.pb-bp-request-status.is-rejected{background:#fff0ef;color:#b15b58}
.pb-bp-request-buttons{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;min-width:0}
.pb-bp-request-buttons .btn{height:38px;min-height:38px;padding:0 12px;white-space:nowrap}
.pb-bp-request-buttons .pb-bp-revoke{color:#b45b59;border-color:#f1cccb}
@media(max-width:720px){
 #publishEditor .pb-bp-current{flex-wrap:wrap}
 #publishEditor .pb-bp-current-info{flex:1}
 #publishEditor .pb-bp-current-actions{width:100%;justify-content:flex-start;padding-left:59px;box-sizing:border-box}
 .pb-bp-request-row{grid-template-columns:minmax(0,1fr) auto}
 .pb-bp-request-buttons{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:480px){
 #publishEditor .pb-bp-upload-picker{padding:17px 10px}
 #publishEditor .pb-bp-current{padding:13px 12px;gap:10px}
 #publishEditor .pb-bp-current-actions{padding-left:0}
 #publishEditor .pb-bp-current-actions .btn{padding:0 10px}
 #publishEditor .pb-bp-permissions-panel{padding:14px 12px}
 #publishEditor .pb-bp-permission-row{align-items:stretch;flex-direction:column;gap:8px}
 #publishEditor .pb-bp-permission-row select{flex:auto;width:100%}
 .bp-detail-section .pb-bp-detail-card{padding:14px 12px;gap:10px;align-items:flex-start}
 .pb-bp-detail-icon{width:42px;height:50px}
 .bp-detail-section .pb-bp-detail-actions .btn{flex:1 1 auto}
 .bp-detail-section .pb-bp-detail-actions.pb-bp-guest-request .pb-bp-request-action{flex:0 1 auto}
 .pb-bp-owner-section{padding:15px 13px}
 .pb-bp-request-buttons .btn{flex:1 1 auto}
}
/* Override the legacy rule that right-aligned every request-row div. */
.pb-bp-request-row>.pb-bp-request-user{margin-left:0;display:flex;flex-direction:column;gap:5px;justify-content:flex-start}
.pb-bp-request-row>.pb-bp-request-buttons{margin-left:0;display:flex;gap:7px}

/* V61.10.460 — BP requests: portrait + linked username, independent of actions. */
.pb-bp-request-row>.pb-bp-request-user{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:11px;min-width:0}
.pb-bp-request-avatar-link{display:inline-flex;flex:none;text-decoration:none;border-radius:50%;outline-offset:3px}
.pb-bp-request-avatar{width:40px;height:40px;min-width:40px;border-radius:50%;overflow:hidden;background:#e8f2ff;color:#2269b6;display:grid;place-items:center;position:relative;font-size:16px;font-weight:650}
.pb-bp-request-avatar-initial{grid-area:1/1;line-height:1}
.pb-bp-request-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.pb-bp-request-person{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.pb-bp-request-name-link{color:#1d3e63;text-decoration:none;max-width:100%;overflow-wrap:anywhere;line-height:1.4}
.pb-bp-request-name-link strong{color:inherit}
.pb-bp-request-name-link:hover,.pb-bp-request-name-link:focus-visible{color:#176fff;text-decoration:underline}
.pb-bp-request-user small{line-height:1.5}
@media(max-width:480px){.pb-bp-request-row>.pb-bp-request-user{gap:9px}.pb-bp-request-avatar{width:38px;height:38px;min-width:38px}}
