.bpbcg{--bpbcg-ink:#293442;--bpbcg-border:#cfdae4;--bpbcg-bg:#f4f8fb;--bpbcg-accent:#365879;--bpbcg-focus:#1f6eaa;color:var(--bpbcg-ink);max-width:100%;box-sizing:border-box;font:inherit}
.bpbcg *, .bpbcg *::before,.bpbcg *::after{box-sizing:border-box}
.bpbcg h2,.bpbcg h3{margin:0 0 12px;line-height:1.3;color:inherit}
.bpbcg h2{font-size:1.65rem}.bpbcg h3{font-size:1.16rem}
.bpbcg p{margin:0 0 12px}.bpbcg-head{margin-bottom:20px}
.bpbcg-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.bpbcg-panel{padding:20px;background:var(--bpbcg-bg);border:1px solid var(--bpbcg-border);border-radius:12px;min-width:0}
.bpbcg-field{margin:0 0 15px}.bpbcg-field label,.bpbcg-test>label{display:block;font-weight:700;margin-bottom:6px}
.bpbcg input,.bpbcg select,.bpbcg textarea{display:block;width:100%;min-width:0;max-width:100%;font:inherit;font-size:15px;line-height:1.4;color:#243240;background:#fff;border:1px solid #a9b9c8;border-radius:7px;padding:10px 11px;box-shadow:none}
.bpbcg select{min-height:44px}.bpbcg textarea{resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px}
.bpbcg input:focus-visible,.bpbcg select:focus-visible,.bpbcg textarea:focus-visible,.bpbcg button:focus-visible,.bpbcg a:focus-visible{outline:2px solid var(--bpbcg-focus);outline-offset:2px}
.bpbcg-field small,.bpbcg-hint{display:block;font-size:13px;line-height:1.5;color:#596b7a;margin-top:5px}
.bpbcg-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.bpbcg-preview{min-height:118px;max-width:100%;padding:16px;border:1px dashed #a9b9c8;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;text-align:center;overflow:auto}
.bpbcg-preview img{display:block;max-width:100%;height:auto;object-fit:contain}
.bpbcg-preview a{display:inline-block;max-width:100%}
.bpbcg-hint{margin:9px 0 14px}.bpbcg-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px;margin-bottom:18px}
.bpbcg-button{appearance:none;border:1px solid var(--bpbcg-accent);border-radius:7px;background:var(--bpbcg-accent);color:#fff;cursor:pointer;padding:10px 14px;font:inherit;font-size:14px;font-weight:700;line-height:1.3}
.bpbcg-button:hover:not(:disabled){filter:brightness(.91)}.bpbcg-button:disabled{opacity:.45;cursor:not-allowed}.bpbcg-secondary{background:#fff;color:var(--bpbcg-accent)}.bpbcg-quiet{background:transparent;color:var(--bpbcg-accent);border-color:transparent}
.bpbcg-feedback{color:#425b6e;font-size:13px;min-height:1em}.bpbcg-error{color:#a42b2b;font-size:13px;min-height:1em}.bpbcg-test{margin-top:20px}.bpbcg-test-preview{margin-top:10px}.bpbcg-test code{font-size:inherit}.bpbcg-footer{margin-top:18px!important;font-size:13px;line-height:1.65;color:#4e5e69}
.bpbcg-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:780px){.bpbcg-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.bpbcg-panel{padding:15px}.bpbcg-grid{grid-template-columns:minmax(0,1fr)}}
/* Version 1.1: text / banner selection and combinable rel flags */
.bpbcg [hidden]{display:none!important}
.bpbcg-mode,.bpbcg-rel{border:0;padding:0;margin:0 0 16px;min-width:0}
.bpbcg-mode legend,.bpbcg-rel legend{font-weight:700;margin:0 0 8px;padding:0}
.bpbcg-mode{display:flex;flex-wrap:wrap;gap:10px 22px}
.bpbcg-mode legend{width:100%}
.bpbcg-mode label,.bpbcg-rel label{display:flex;align-items:flex-start;gap:8px;margin:0 0 8px;font-weight:400;cursor:pointer;line-height:1.4}
.bpbcg-mode input[type=radio],.bpbcg-rel input[type=checkbox]{display:inline-block;flex:0 0 auto;width:17px;height:17px;min-width:17px;padding:0;margin:2px 0 0;accent-color:var(--bpbcg-accent)}
.bpbcg-rel small{display:block;color:#596b7a;line-height:1.45}
.bpbcg-text-link{color:#1d5e9f;text-decoration:underline;overflow-wrap:anywhere;font-weight:600}
