.bhfp{--ink:#352820;--muted:#685747;--edge:#e2d8cb;--paper:#f7f2e9;font-family:inherit;color:var(--ink);width:100%;max-width:1160px;margin:20px auto;background:#fff;border:1px solid var(--edge);border-radius:16px;overflow:hidden;box-shadow:0 5px 18px #3528200a}.bhfp *{box-sizing:border-box}.bhfp-heading{padding:20px 22px 8px}.bhfp-heading h2{font-size:clamp(21px,2.4vw,28px);line-height:1.25;margin:0 0 6px;color:var(--ink)}.bhfp-heading p{margin:0;font-size:14px;line-height:1.5;color:var(--muted)}.bhfp-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:18px;padding:15px 20px 22px}.bhfp-preview-wrap{min-width:0}.bhfp-stage{width:100%;overflow:hidden;border-radius:12px;background:#272e31}.bhfp-canvas{width:100%;height:auto;aspect-ratio:900/660;display:block}.bhfp-preview-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 2px}.bhfp-hint{font-size:12px;color:var(--muted)}.bhfp-controls{display:flex;flex-direction:column;gap:15px;min-width:0;padding:2px}.bhfp-controls label{display:block;font-size:13px;font-weight:650;line-height:1.55;color:var(--ink)}.bhfp-controls input[type=file]{width:100%;max-width:100%;display:block;margin-top:7px;padding:10px;border:1px solid var(--edge);border-radius:8px;background:white;font-size:13px}.bhfp-controls input[type=range]{display:block;width:100%;margin:8px 0 0;accent-color:#925d4e;min-height:23px}.bhfp-controls output{float:right;font-weight:450;color:var(--muted)}.bhfp-controls .bhfp-checkbox{display:flex;align-items:flex-start;gap:9px}.bhfp-checkbox input{margin:3px 0 0;width:17px;height:17px;flex:none;accent-color:#925d4e}.bhfp-help,.bhfp-status,.bhfp-note{font-size:12px;line-height:1.55;color:var(--muted);margin:0}.bhfp-status{margin:-6px 0 0;min-height:18px}.bhfp-help{margin:-10px 0 0}.bhfp-note{padding-top:10px;border-top:1px solid var(--edge)}.bhfp-row2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.bhfp-actions{display:flex;gap:8px;flex-wrap:wrap}.bhfp button{font:inherit;font-size:13px;font-weight:600;border:1px solid var(--edge);border-radius:8px;padding:10px 13px;min-height:40px;cursor:pointer;color:var(--ink);background:var(--paper)}.bhfp button:hover{background:#eaddc9}.bhfp button:focus-visible,.bhfp input:focus-visible{outline:3px solid #ad725d;outline-offset:2px}.bhfp .bhfp-export{background:#594333;color:#fff;border-color:#594333}.bhfp .bhfp-export:hover{background:#352820;color:#fff}@media(max-width:780px){.bhfp-layout{grid-template-columns:1fr;padding:12px;gap:12px}.bhfp-heading{padding:16px 15px 6px}.bhfp-preview-actions{padding:10px 3px}.bhfp-controls{padding:6px 3px;gap:16px}.bhfp{border-radius:12px}.bhfp .bhfp-export{width:100%}}@media(max-width:380px){.bhfp-row2{grid-template-columns:1fr}.bhfp-preview-actions{gap:10px}}

.bhfp .bhfp-cancel-bg:not([hidden]){display:inline-flex;align-self:flex-start;align-items:center;justify-content:center;min-height:44px;background:#f7f2e9;border:1px solid #927458;color:#352820}
.bhfp .bhfp-cancel-bg[hidden]{display:none!important}

/* v1.2.2: explicit default and customer opt-out, no changes to image appearance */
.bhfp-auto-info{font:inherit;font-size:14px;line-height:1.5;color:#594333;background:#f7f2e9;padding:12px 13px;border-radius:10px;margin:0}
.bhfp-auto-info strong{font-weight:650}
.bhfp-keep-row[hidden],.bhfp-remove-bg[hidden]{display:none!important}
.bhfp-keep-row{font-size:15px!important;min-height:44px;align-items:center!important}

/* v1.3 manual refinement editor: on-demand, no additional AI calls */
.bhfp-refine[hidden],.bhfp-refine-editor[hidden]{display:none!important}
.bhfp-refine{padding:12px;border:1px solid #e7d8c2;border-radius:12px;background:#fffaf3}
.bhfp-refine-intro{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.bhfp-refine-intro strong{font:700 14px/1.4 system-ui,sans-serif}
.bhfp .bhfp-refine-toggle{background:#594333;color:white;border-color:#594333;min-height:44px}
.bhfp-refine-editor{margin-top:13px;display:grid;gap:12px;min-width:0}
.bhfp-refine-help,.bhfp-refine-status{font:13px/1.5 system-ui,sans-serif;color:#685747;margin:0}
.bhfp-refine-toolbar,.bhfp-refine-actions{display:flex;gap:8px;flex-wrap:wrap}
.bhfp .bhfp-refine-toolbar button{flex:1 1 145px;min-height:44px}
.bhfp .bhfp-refine-toolbar button[aria-pressed="true"]{background:#594333;color:#fff;border-color:#594333}
.bhfp-refine-canvas-wrap{background-color:#eee;background-image:linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(-45deg,transparent 75%,#ddd 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0;border:1px solid #ddd;border-radius:9px;overflow:hidden;max-width:100%}
.bhfp-refine-canvas{width:100%;height:auto;display:block;touch-action:none;cursor:crosshair}
.bhfp-refine-bottom label{display:block;font:600 14px/1.3 system-ui,sans-serif}
.bhfp-refine-bottom label input{width:100%;max-width:100%}
.bhfp-refine-actions button{min-height:44px}
.bhfp-refine-actions button[aria-pressed="true"]{background:#594333;color:white}
@media(max-width:780px){.bhfp-refine-intro .bhfp-refine-toggle{flex:1 1 100%}.bhfp-refine-actions button{flex:1 1 30%}}
