/* Integrated Belles & Boots GM Agreement Builder. Original site palette. */
.bbc-proposal-card{
 border:1px solid #d3adbc;border-left:4px solid #af2447;border-radius:13px;
 background:var(--belles-layout-header,#fff8f1);padding:17px 19px;margin:10px 0 16px;
 color:var(--belles-layout-text,#382128);display:grid;gap:11px;
}
.bbc-proposal-card small,.bbc-worksheet small{display:block;letter-spacing:.07em;color:#af2447;font-size:11px;font-weight:800}
.bbc-proposal-main h4{font:800 clamp(21px,2.1vw,27px)/1.1 "Bree Serif",Georgia,serif;margin:6px 0}
.bbc-proposal-main h4 span{font:600 13px/1.4 Inter,Arial,sans-serif;color:var(--belles-layout-muted,#765d66)}
.bbc-proposal-main p,.bbc-proposal-card>p{font-size:13px;line-height:1.5;margin:0}
.bbc-proposal-card>p{color:var(--belles-layout-muted,#765d66)}
.bbc-proposal-meta{display:flex;gap:8px;flex-wrap:wrap}
.bbc-proposal-meta span{padding:8px 10px;border:1px solid var(--belles-layout-line,#e1c8ce);border-radius:8px;font-size:12px;font-weight:650}
.bbc-proposal-card button,.bbc-worksheet button,.bbc-review button{
 justify-self:start;min-height:40px;padding:9px 14px;border:1px solid #af2447;border-radius:9px;
 background:#af2447;color:#fff;font-size:13px;font-weight:800;cursor:pointer
}
.bbc-worksheet{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px;
 background:var(--belles-layout-header,#fff8f1);border:1px solid var(--belles-layout-line,#e1c8ce);
 border-radius:14px;margin-bottom:17px}
.bbc-worksheet h2{font:750 clamp(19px,2.1vw,25px)/1.2 "Bree Serif",Georgia,serif;margin:6px 0}
.bbc-worksheet p{font-size:13px;line-height:1.55;margin:7px 0}
.bbc-worksheet button{flex:none}
.bbc-dialog{box-sizing:border-box;position:fixed;inset:0;width:min(1050px,96vw);height:min(890px,94dvh);
 max-width:none;max-height:none;padding:0;margin:auto;border:1px solid #d5b1bd;border-radius:17px;
 background:#fffaf5;color:#3b2730;box-shadow:0 25px 85px #0007;overflow:hidden;
 flex-direction:column;overscroll-behavior:contain}
.bbc-dialog[open]{display:flex}
.bbc-dialog::backdrop{background:#170b10b8}
.bbc-dialog *{box-sizing:border-box}
.bbc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 24px 14px;
 background:#f4e9df;border-bottom:1px solid #dcc1c8;flex:none}
.bbc-head small{font-size:10px;color:#af2447;font-weight:850;letter-spacing:.13em}
.bbc-head h2{font:800 25px/1.12 "Bree Serif",Georgia,serif;margin:5px 0;color:#342029}
.bbc-head p{font-size:12px;margin:4px 0 0;color:#73545f}
.bbc-head>button{width:41px;height:41px;flex:none;border:1px solid #d6b9c1;background:transparent;
 border-radius:10px;font-size:17px;color:#603747;cursor:pointer}
.bbc-tabs{display:flex;gap:8px;overflow-x:auto;flex:none;min-height:49px;padding:8px 20px;
 border-bottom:1px solid #dcc1c8;background:#fffaf5}
.bbc-tabs button{font-size:12px;font-weight:750;border:1px solid #dec5cc;border-radius:9px;
 background:transparent;color:#603747;padding:9px 12px;white-space:nowrap;cursor:pointer}
.bbc-tabs button.active{background:#af2447;border-color:#af2447;color:#fff}
.bbc-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px clamp(14px,3vw,30px);color:#3c2730}
.bbc-term-form{display:grid;gap:12px;max-width:860px;margin:0 auto}
.bbc-math{border:1px solid #d8b7c1;border-left:4px solid #af2447;border-radius:11px;
 background:#f5e9de;padding:14px 17px;display:grid;gap:5px}
.bbc-math strong{font:800 20px/1.25 "Bree Serif",Georgia,serif;color:#432634}
.bbc-math small,.bbc-muted{font-size:12px;color:#755660;line-height:1.5}
.bbc-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.bbc-input{display:grid;gap:6px;font-size:13px;font-weight:750;min-width:0}
.bbc-input input,.bbc-input textarea{width:100%;min-width:0;min-height:43px;background:#fff;border:1px solid #ceb3bc;
 border-radius:9px;color:#38212c;font:500 14px/1.4 Inter,Arial,sans-serif;padding:10px 12px}
.bbc-input textarea{min-height:75px;resize:vertical}
.bbc-input input:focus-visible,.bbc-input textarea:focus-visible,.bbc-dialog button:focus-visible{
 outline:2px solid #af2447;outline-offset:2px}
.bbc-notes{display:grid;gap:13px;max-width:850px;margin:auto}
.bbc-notes h3{font:800 24px/1.25 "Bree Serif",Georgia,serif;margin:0}
.bbc-notes>p{font-size:13px;line-height:1.55;color:#745560}
.bbc-notes article{border:1px solid #e0ccd0;background:#fff;border-radius:11px;padding:12px 16px}
.bbc-notes article small{font-size:10px;font-weight:850;letter-spacing:.05em;color:#af2447}
.bbc-notes article h4{font-size:15px;margin:7px 0}
.bbc-notes article p{margin:6px 0;font-size:13px;line-height:1.55;white-space:pre-wrap}
.bbc-review{display:grid;gap:12px;max-width:880px;margin:auto}
.bbc-review-intro{display:flex;align-items:center;justify-content:space-between;gap:15px}
.bbc-review-intro p{font-size:13px;line-height:1.5;margin:0}
.bbc-review-intro button{flex:none}
.bbc-clause{border:1px solid #dbc0c8;border-radius:10px;padding:13px;background:#fff}
.bbc-clause summary{cursor:pointer;font-size:14px;font-weight:800}
.bbc-clause label{display:grid;gap:9px;margin-top:13px;font-size:12px;font-weight:700}
.bbc-clause textarea{min-height:130px;width:100%;border:1px solid #d1b4be;border-radius:9px;
 background:#fffaf5;padding:12px;color:#3a2630;font:13px/1.55 Georgia,serif;resize:vertical}
.bbc-preview{border:1px solid #d9b9c2;border-radius:10px;padding:17px;background:#fff}
.bbc-preview h3{font:800 22px/1.2 Georgia,serif;margin:0 0 5px}
.bbc-preview p{font-size:12px;color:#755660}
.bbc-preview pre{font:13px/1.58 Georgia,serif;color:#382731;white-space:pre-wrap;overflow-wrap:anywhere;
 padding:15px;border:1px solid #ded1d3;border-radius:7px;background:#fffaf5;max-height:350px;overflow:auto}
.bbc-export{display:flex;gap:8px;flex-wrap:wrap}
.bbc-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex:none;
 min-height:65px;padding:10px 20px;background:#f5e9df;border-top:1px solid #dec2c9}
.bbc-footer>div{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.bbc-footer span{font-size:12px;color:#6d5360}
.bbc-footer a{font-size:12px;font-weight:750;color:#a51d45;text-underline-offset:3px}
.bbc-footer button{min-height:40px;border:1px solid #d6b9c1;border-radius:9px;padding:8px 15px;
 background:#fff9f4;color:#482a39;font-weight:800;cursor:pointer}
.bbc-footer button[data-bbc-next]{background:#af2447;color:#fff;border-color:#af2447}
.bbc-footer button:disabled{opacity:.4;cursor:default}
html[data-theme="dark"] .bbc-proposal-card,html[data-theme="dark"] .bbc-worksheet{
 background:#24181e;color:#fbf2ec;border-color:#734557}
html[data-theme="dark"] .bbc-proposal-card>p{color:#ceb6bf}
@media(max-width:730px){
 .bbc-dialog{width:100vw;height:100dvh;border:0;border-radius:0}
 .bbc-head{padding:13px 15px}
 .bbc-head h2{font-size:24px}
 .bbc-head p{display:none}
 .bbc-tabs{padding:8px 12px}
 .bbc-content{padding:12px 13px}
 .bbc-input-grid{grid-template-columns:1fr}
 .bbc-review-intro{display:grid}
 .bbc-footer{align-items:stretch;flex-wrap:wrap;padding:10px 12px}
 .bbc-footer>div{justify-content:space-between;flex:1}
 .bbc-worksheet{flex-direction:column;align-items:stretch}
}
@media print{
 body:has(.bbc-dialog[open]) *{visibility:hidden!important}
 body:has(.bbc-dialog[open]) .bbc-dialog,
 body:has(.bbc-dialog[open]) #bbc-print-content,
 body:has(.bbc-dialog[open]) #bbc-print-content *{visibility:visible!important}
 body:has(.bbc-dialog[open]) .bbc-dialog{position:absolute!important;top:0;left:0;width:100%!important;
  height:auto!important;overflow:visible!important;border:0!important;background:white!important;box-shadow:none!important}
 body:has(.bbc-dialog[open]) .bbc-head,
 body:has(.bbc-dialog[open]) .bbc-tabs,
 body:has(.bbc-dialog[open]) .bbc-footer,
 body:has(.bbc-dialog[open]) .bbc-content>:not(.bbc-review){display:none!important}
 body:has(.bbc-dialog[open]) .bbc-review>:not(.bbc-preview),
 body:has(.bbc-dialog[open]) .bbc-preview>*:not(#bbc-print-content){display:none!important}
 body:has(.bbc-dialog[open]) .bbc-content{height:auto!important;overflow:visible!important;padding:0!important}
 body:has(.bbc-dialog[open]) .bbc-preview{border:0!important;padding:0!important}
 body:has(.bbc-dialog[open]) #bbc-print-content{position:absolute!important;left:0;top:0;width:100%!important;
  margin:0!important;max-height:none!important;overflow:visible!important;white-space:pre-wrap!important;
  background:#fff!important;color:#111!important;border:0!important;font:11pt/1.5 Georgia,serif!important}
}
