#bt-roof-builder{--rb-offset:0px;--red:#890A00;--char:#1A1A1A;--stone:#EAE7E2;--copper:#B87333;--line:#d6d1c9;font-family:minion-pro,"Open Sans",Georgia,serif;color:var(--char);display:grid;grid-template-columns:320px 1fr;height:calc(100vh - var(--rb-offset));background:#fff}
#bt-roof-builder *{box-sizing:border-box}
#bt-roof-builder button,#bt-roof-builder summary,#bt-roof-builder .rb-brand,#bt-roof-builder .rb-tag,#bt-roof-builder .rb-cta,#bt-roof-builder .rb-sum-text,#bt-roof-builder h3{font-family:gotham,Montserrat,"Helvetica Neue",Arial,sans-serif}
#bt-roof-builder .rb-panel{background:var(--stone);overflow-y:auto;padding:20px 18px 28px;border-right:1px solid var(--line)}
#bt-roof-builder .rb-brand{display:flex;gap:10px;align-items:center;margin-bottom:14px}
#bt-roof-builder .rb-brand small{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#5C5C5C}
#bt-roof-builder .rb-mark{width:26px;height:32px;display:block}
#bt-roof-builder .rb-reset{margin-left:auto;border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 12px;font-size:12px;cursor:pointer}
#bt-roof-builder .rb-group{border-top:1px solid var(--line);padding:12px 0}
#bt-roof-builder .rb-group>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:600;padding:4px 0 10px}
#bt-roof-builder .rb-group>summary::after{content:"–";color:#888}
#bt-roof-builder .rb-group:not([open])>summary::after{content:"+"}
#bt-roof-builder .rb-group>summary em{font-style:normal;text-transform:none;letter-spacing:0;color:#666;font-weight:400;margin-left:auto;margin-right:10px;font-family:minion-pro,Georgia,serif;font-size:14px}
#bt-roof-builder .rb-opts{display:grid;gap:8px}
#bt-roof-builder .rb-opts.profiles{grid-template-columns:1fr 1fr}
#bt-roof-builder .rb-opt{position:relative;border:1.5px solid transparent;background:#fff;border-radius:10px;padding:8px 10px;font-size:13px;text-align:left;cursor:pointer;color:var(--char)}
#bt-roof-builder .rb-opt.on{border-color:var(--red);box-shadow:0 0 0 3px #890a0018}
#bt-roof-builder .rb-opt:disabled{opacity:.4;cursor:not-allowed;filter:grayscale(1)}
#bt-roof-builder .rb-opt img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;margin-bottom:6px;background:#ddd}
#bt-roof-builder .rb-opt.profile{padding:6px;font-size:11.5px;line-height:1.25}
#bt-roof-builder .rb-opts.swatches{grid-template-columns:repeat(6,1fr);gap:7px}
#bt-roof-builder .rb-sw{aspect-ratio:1;border-radius:8px;border:2px solid #fff;cursor:pointer;position:relative;padding:0;box-shadow:0 0 0 1px #0002}
#bt-roof-builder .rb-sw.on{box-shadow:0 0 0 2px var(--red)}
#bt-roof-builder .rb-sw.prem::after{content:"P";position:absolute;top:-5px;right:-5px;background:var(--copper);color:#fff;font-size:8px;width:13px;height:13px;border-radius:50%;display:grid;place-items:center}
#bt-roof-builder .rb-sw-label{font-size:13px;margin:8px 0 0;color:#444;min-height:1.2em}
#bt-roof-builder .rb-badge{display:inline-block;background:var(--copper);color:#fff;font-size:9px;letter-spacing:.08em;text-transform:uppercase;border-radius:4px;padding:2px 6px;font-family:gotham,Montserrat,sans-serif;vertical-align:middle;margin-left:4px}
#bt-roof-builder .rb-hint{font-size:12px;color:#5C5C5C;margin:6px 0 0}
#bt-roof-builder .rb-stage{position:relative;background:#EFECE7;min-height:0}
#bt-roof-builder .rb-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
#bt-roof-builder .rb-viewtoggle{position:absolute;top:18px;left:18px;z-index:2;background:#fff;border-radius:999px;padding:4px;box-shadow:0 2px 12px #0001}
#bt-roof-builder .rb-viewtoggle button{border:0;background:none;padding:7px 14px;border-radius:999px;font-size:13px;cursor:pointer}
#bt-roof-builder .rb-viewtoggle button.on{background:var(--char);color:#fff}
#bt-roof-builder .rb-tag{position:absolute;top:22px;right:18px;z-index:2;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#555;background:#fffc;padding:6px 10px;border-radius:6px}
#bt-roof-builder .rb-loading{position:absolute;top:50%;width:100%;text-align:center;z-index:2;color:#555}
#bt-roof-builder .rb-bar{position:absolute;left:18px;right:18px;bottom:18px;z-index:2;display:flex;align-items:center;gap:16px;background:#fffffff0;border-radius:14px;padding:12px 14px 12px 20px;box-shadow:0 4px 24px #0002}
#bt-roof-builder .rb-sum{flex:1;min-width:0}
#bt-roof-builder .rb-sum-text{font-size:14px;font-weight:500}
#bt-roof-builder .rb-disc summary{font-size:12px;color:#5C5C5C;cursor:pointer;margin-top:3px;font-family:minion-pro,Georgia,serif}
#bt-roof-builder .rb-disc p{font-size:12.5px;color:#555;margin:4px 0 0}
#bt-roof-builder .rb-cta{background:var(--red);color:#fff;text-decoration:none;border-radius:999px;padding:12px 22px;font-size:14px;white-space:nowrap}
#bt-roof-builder .rb-cta:hover{background:#6e0800}
@media (max-width:900px){#bt-roof-builder{display:flex;flex-direction:column;height:auto;min-height:100vh}#bt-roof-builder .rb-stage{order:1;height:58vh;flex:none}#bt-roof-builder .rb-panel{order:2;border-right:0;border-radius:18px 18px 0 0;margin-top:-18px;position:relative;z-index:3;padding:10px 0 24px;box-shadow:0 -6px 20px #0002}#bt-roof-builder .rb-panel::before{content:"";display:block;width:40px;height:4px;border-radius:2px;background:#bbb;margin:0 auto 10px}#bt-roof-builder .rb-brand{padding:0 16px}#bt-roof-builder .rb-group{padding:10px 0}#bt-roof-builder .rb-group>summary{padding:4px 16px 8px}#bt-roof-builder .rb-opts,#bt-roof-builder .rb-opts.profiles,#bt-roof-builder .rb-opts.swatches{display:flex;overflow-x:auto;gap:8px;padding:2px 16px 6px;scrollbar-width:none}#bt-roof-builder .rb-opt{flex:none;white-space:nowrap}#bt-roof-builder .rb-opt.profile{width:112px;white-space:normal}#bt-roof-builder .rb-sw{flex:none;width:44px}#bt-roof-builder .rb-sw-label,#bt-roof-builder .rb-hint{padding:0 16px}#bt-roof-builder .rb-bar{left:10px;right:10px;bottom:28px;padding:10px 10px 10px 14px;gap:10px}#bt-roof-builder .rb-sum-text{font-size:12.5px}#bt-roof-builder .rb-cta{padding:10px 14px;font-size:13px}#bt-roof-builder .rb-tag{top:18px}}
#bt-roof-builder .rb-pill{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:999px;background:#C6A15B;color:#fff;font-size:9px;font-weight:700;margin-left:4px;vertical-align:1px;cursor:help;font-family:gotham,Montserrat,sans-serif}
#bt-roof-builder .rb-legend{font-size:11px;color:#5C5C5C;font-weight:400;margin-left:8px;white-space:nowrap}
#bt-roof-builder .rb-favbar{position:absolute;top:60px;right:18px;z-index:3;display:flex;gap:8px}
#bt-roof-builder .rb-favbar button,#bt-roof-builder .rb-favs-head button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 14px;font-size:13px;cursor:pointer;color:var(--char)}
#bt-roof-builder .rb-save[aria-pressed=true]{border-color:var(--red);color:var(--red)}
#bt-roof-builder .rb-save span{font-size:15px}
#bt-roof-builder .rb-fav-count{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:9px;background:var(--char);color:#fff;font-size:11px;margin-left:4px;padding:0 5px}
#bt-roof-builder .rb-favs{position:absolute;top:104px;right:18px;z-index:4;width:300px;max-height:calc(100% - 210px);overflow:auto;background:#fff;border-radius:14px;box-shadow:0 8px 30px #0002;padding:14px}
#bt-roof-builder .rb-favs-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}
#bt-roof-builder .rb-favs-head strong{flex:1;font-family:gotham,Montserrat,sans-serif;font-size:14px}
#bt-roof-builder .rb-favs-head .rb-favs-close{padding:2px 10px;font-size:16px}
#bt-roof-builder .rb-favs-list{display:grid;gap:8px}
#bt-roof-builder .rb-fav{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:8px;cursor:pointer;background:#fff;text-align:left;font:inherit;width:100%}
#bt-roof-builder .rb-fav.on{border-color:var(--red)}
#bt-roof-builder .rb-fav i{width:34px;height:34px;border-radius:6px;flex:none;box-shadow:inset 0 0 0 1px #0002}
#bt-roof-builder .rb-fav span{flex:1;font-size:12.5px;line-height:1.3}
#bt-roof-builder .rb-fav span b{display:block;font-family:gotham,Montserrat,sans-serif;font-size:12.5px}
#bt-roof-builder .rb-fav-x{border:0;background:none;font-size:18px;color:#999;cursor:pointer;padding:0 4px}
#bt-roof-builder .rb-favs-empty{font-size:12.5px;color:#5C5C5C;margin:4px 0 0}
#bt-roof-builder .rb-cta-wrap{display:flex;flex-direction:column;align-items:center;gap:4px}
#bt-roof-builder .rb-cta-note{font-size:11px;color:#5C5C5C}
#bt-roof-builder .rb-toast{position:absolute;left:50%;top:18px;transform:translateX(-50%);z-index:6;background:var(--char);color:#fff;border-radius:999px;padding:8px 16px;font-size:13px;font-family:gotham,Montserrat,sans-serif}
@media (max-width:900px){#bt-roof-builder .rb-favbar{top:56px;right:10px}#bt-roof-builder .rb-favs{left:10px;right:10px;width:auto;top:100px;max-height:calc(100% - 230px)}#bt-roof-builder .rb-cta-note{font-size:10px}}
#bt-roof-builder .rb-fav-sample{font-size:11.5px;display:flex;align-items:center;gap:4px;white-space:nowrap;cursor:pointer}
#bt-roof-builder .rb-fav-free{font-style:normal;font-size:10.5px;color:var(--copper);white-space:nowrap;font-family:gotham,Montserrat,sans-serif}
#bt-roof-builder .rb-favs-hint{font-size:12px;color:#666;margin:0 0 10px}
@media (max-width:900px){#bt-roof-builder .rb-bar{flex-wrap:wrap}#bt-roof-builder .rb-sum{flex-basis:100%}#bt-roof-builder .rb-cta-wrap{width:100%}#bt-roof-builder .rb-cta{width:100%;text-align:center}}
/* Guard against theme (Divi) styles inside the builder */
#bt-roof-builder p{padding-bottom:0}
#bt-roof-builder h2,#bt-roof-builder h3{padding-bottom:0;line-height:1.25;letter-spacing:0;text-transform:none}
#bt-roof-builder button{line-height:1.25;letter-spacing:normal;text-transform:none;min-height:0;box-shadow:none}
#bt-roof-builder .rb-group>summary,#bt-roof-builder .rb-tag{text-transform:uppercase}
#bt-roof-builder img{max-width:100%;height:auto}
#bt-roof-builder .rb-mark{height:32px}
#bt-roof-builder a.rb-cta{color:#fff}
#bt-roof-builder ul{padding:0;list-style:none}
#bt-roof-builder input[type=checkbox]{margin:0;width:auto}
#bt-roof-builder .rb-pill{line-height:15px;padding:0;text-indent:0;font-size:9px;color:#fff}
/* 0.4.3: custom premium color + tighter lockup */
#bt-roof-builder .rb-sw{background-size:cover;background-position:center}
#bt-roof-builder .rb-custom-btn{display:flex;align-items:center;gap:10px;width:100%;margin:10px 0 0;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;text-align:left}
#bt-roof-builder .rb-custom-btn.on{border-color:var(--red);box-shadow:0 0 0 1px var(--red)}
#bt-roof-builder .rb-custom-btn i{flex:none;width:30px;height:30px;border-radius:8px;box-shadow:0 0 0 1px #0002}
#bt-roof-builder .rb-custom-btn span{flex:1;min-width:0}
#bt-roof-builder .rb-custom-btn b{display:block;font-size:13px;font-weight:600;color:#222}
#bt-roof-builder .rb-custom-btn small{display:block;font-size:11px;color:#5C5C5C}
#bt-roof-builder .rb-custom{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
#bt-roof-builder .rb-custom input[type=color]{width:44px;height:36px;padding:2px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer}
#bt-roof-builder .rb-custom input.rb-chex{width:92px;height:36px;padding:0 8px;border:1px solid var(--line);border-radius:8px;font:13px/1 ui-monospace,Menlo,monospace;text-transform:uppercase;color:#222;background:#fff}
#bt-roof-builder .rb-custom input.rb-chex.bad{border-color:var(--red)}
#bt-roof-builder .rb-custom .rb-hint{flex-basis:100%;margin:0;padding:0}
#bt-roof-builder .rb-brand{gap:9px;align-items:center}
#bt-roof-builder .rb-brand>div{display:flex;flex-direction:column;justify-content:space-between;height:32px}
#bt-roof-builder .rb-brand strong{display:block;font-size:17px;line-height:13px;letter-spacing:.08em;font-weight:700;color:#1d1d1d;margin:0;padding:0}
#bt-roof-builder .rb-brand small{display:block;font-size:10px;line-height:8px;letter-spacing:.12em;margin:0;padding:0}
@media (max-width:900px){#bt-roof-builder .rb-custom-btn{width:auto;margin:10px 16px 0}#bt-roof-builder .rb-custom{padding:0 16px}#bt-roof-builder .rb-sw-label{padding:0 16px}}
#bt-roof-builder .rb-custom-btn .rb-badge{flex:none;margin:0}
/* 0.4.9 audit fixes (AUDIT-2026-10-14 P2-4, P2-5, P2-10, P3-10) */
#bt-roof-builder .rb-badge{background:none;color:#890A00;border:1px solid #890A00;border-radius:0}
#bt-roof-builder .rb-sw.on{color:#fff}
#bt-roof-builder .rb-opt,#bt-roof-builder .rb-reset{border-radius:0;box-shadow:none}
#bt-roof-builder .rb-opt.on{box-shadow:none;outline:2px solid #890A00;outline-offset:-2px}
#bt-roof-builder .rb-opt:focus-visible,#bt-roof-builder .rb-sw:focus-visible,#bt-roof-builder .rb-reset:focus-visible{outline:3px solid #1A1A1A;outline-offset:2px}

/* v0.5.0 House (Preview) view */
#bt-roof-builder .rb-viewtoggle button small{font-size:9px;letter-spacing:.08em;text-transform:uppercase;margin-left:4px;padding:1px 5px;border-radius:4px;background:#890A00;color:#fff;vertical-align:1px}
#bt-roof-builder .rb-preview{position:absolute;top:64px;left:18px;z-index:2;max-width:330px;margin:0;font-size:12px;line-height:1.4;color:#333;background:#fffe;padding:8px 10px;border-radius:6px;box-shadow:0 2px 10px #0001}
#bt-roof-builder .rb-preview[hidden]{display:none}
#bt-roof-builder .rb-preview b{display:inline-block;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#890A00;margin-right:6px}
@media (max-width:900px){#bt-roof-builder .rb-viewtoggle button{padding:7px 10px}#bt-roof-builder .rb-preview{top:100px;left:10px;right:10px;max-width:none;font-size:11.5px}}
@media (max-width:900px){#bt-roof-builder .rb-tag{top:20px;right:10px;left:auto;font-size:9.5px;padding:5px 7px}#bt-roof-builder .rb-viewtoggle{left:10px;top:12px}#bt-roof-builder .rb-viewtoggle button{font-size:12.5px;padding:7px 9px}#bt-roof-builder .rb-preview{top:100px;padding:6px 8px;font-size:11px}}
/* 0.5.5: sample card minimize / expand */
#bt-roof-builder .rb-bar{overflow:hidden;transition:padding .25s ease}
#bt-roof-builder .rb-bar-toggle{position:absolute;top:2px;right:2px;width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:var(--char);cursor:pointer;border-radius:999px;padding:0;transition:background .2s ease,color .2s ease}
#bt-roof-builder .rb-bar-toggle svg{transition:transform .25s ease}
#bt-roof-builder .rb-bar-toggle:hover{background:#1a1a1a12;color:var(--red)}
#bt-roof-builder .rb-bar-toggle:focus-visible{outline:2px solid var(--red);outline-offset:-2px}
#bt-roof-builder .rb-bar.is-min .rb-bar-toggle svg{transform:rotate(180deg)}
#bt-roof-builder .rb-bar:not(.is-min){padding-right:54px}
#bt-roof-builder .rb-sum,#bt-roof-builder .rb-cta-note{transition:opacity .2s ease,max-height .25s ease;max-height:240px}
#bt-roof-builder .rb-bar.is-min .rb-sum,#bt-roof-builder .rb-bar.is-min .rb-cta-note{opacity:0;max-height:0;overflow:hidden;margin:0;padding:0;flex:0 0 0;min-width:0;pointer-events:none}
#bt-roof-builder .rb-bar.is-min{padding:8px 8px 8px 8px;gap:8px;left:auto;max-width:calc(100% - 36px)}
#bt-roof-builder .rb-bar.is-min .rb-cta-wrap{width:auto}
#bt-roof-builder .rb-bar.is-min .rb-cta-note{max-width:0;white-space:nowrap}
#bt-roof-builder .rb-bar.is-min .rb-bar-toggle{position:static;flex:none}
@media (max-width:900px){
#bt-roof-builder .rb-bar:not(.is-min) .rb-sum{padding-right:6px}
#bt-roof-builder .rb-bar:not(.is-min){padding-right:46px}
#bt-roof-builder .rb-bar.is-min{left:10px;right:10px;max-width:none;padding:6px 6px 6px 10px}
#bt-roof-builder .rb-bar.is-min .rb-cta-wrap{flex:1}
#bt-roof-builder .rb-bar.is-min .rb-cta{width:100%}
}
@media (prefers-reduced-motion:reduce){#bt-roof-builder .rb-bar,#bt-roof-builder .rb-sum,#bt-roof-builder .rb-cta-note,#bt-roof-builder .rb-bar-toggle svg{transition:none}}


/* ---------- Lighting control (0.6.0): radio-group segmented control, 44px targets ---------- */
#bt-roof-builder .rb-light{position:absolute;top:66px;left:18px;z-index:2;display:flex;align-items:center;gap:2px;background:#fff;border-radius:999px;padding:3px;box-shadow:0 2px 12px #0001;max-width:calc(100% - 36px)}
#bt-roof-builder .rb-light-cap{font-family:gotham,Montserrat,"Helvetica Neue",Arial,sans-serif;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#555;padding:0 10px 0 12px;white-space:nowrap}
#bt-roof-builder .rb-light [role=radio]{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:0 13px;border:0;border-radius:999px;background:transparent;color:var(--char);font-family:gotham,Montserrat,"Helvetica Neue",Arial,sans-serif;font-size:12.5px;line-height:1;cursor:pointer;white-space:nowrap;transition:background .2s ease,color .2s ease,box-shadow .2s ease;-webkit-tap-highlight-color:transparent}
#bt-roof-builder .rb-light [role=radio] svg{flex:none;color:var(--copper);transition:color .2s ease}
#bt-roof-builder .rb-light [role=radio]:hover{background:#1a1a1a0f}
#bt-roof-builder .rb-light [role=radio][aria-checked=true]{background:var(--char);color:#fff;box-shadow:inset 0 -3px 0 var(--red)}
#bt-roof-builder .rb-light [role=radio][aria-checked=true] svg{color:#e3b184}
#bt-roof-builder .rb-light [role=radio]:focus-visible{outline:2px solid var(--red);outline-offset:2px}
#bt-roof-builder .rb-l-short{display:none}
#bt-roof-builder .rb-stage.has-light .rb-preview{top:118px}
@media (max-width:1020px){
  #bt-roof-builder .rb-light{top:104px;left:10px;right:10px;max-width:none;justify-content:space-between}
  #bt-roof-builder .rb-light-cap{display:none}
  #bt-roof-builder .rb-light [role=radio]{flex:1 1 0;min-width:0;padding:0 6px;gap:5px;font-size:12px}
  #bt-roof-builder .rb-stage.has-light .rb-preview{top:156px}
}
@media (max-width:600px){
  #bt-roof-builder .rb-l-full{display:none}#bt-roof-builder .rb-l-short{display:inline}
  #bt-roof-builder .rb-light [role=radio]{padding:0 4px;gap:4px;font-size:11.5px}
  #bt-roof-builder .rb-light [role=radio] svg{width:16px;height:16px}
}
@media (max-width:370px){#bt-roof-builder .rb-light [role=radio] svg{display:none}}
@media (prefers-reduced-motion:reduce){#bt-roof-builder .rb-light [role=radio],#bt-roof-builder .rb-light [role=radio] svg{transition:none}}
