.bp-wrap{--bp-dark:#18322d;--bp-gold:#b58a56;--bp-bg:#f5f4ef;--bp-line:#dbe0d8;max-width:800px;margin:20px auto;padding:0 12px;color:#263630;font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}.bp-wrap *{box-sizing:border-box}.bp-hero{background:var(--bp-dark);color:#fff;border-radius:20px;padding:26px 23px}.bp-hero small{letter-spacing:2px;color:#e2c89e;font-size:11px;font-weight:700}.bp-hero h2{font-size:26px;line-height:1.2;margin:12px 0}.bp-hero p{color:#e0e8e1;margin:0}.bp-card{background:#fff;border:1px solid #e2e5df;border-radius:18px;padding:22px;margin:16px 0;box-shadow:0 8px 30px #1732290a}.bp-card h3{font-size:21px;margin:8px 0 18px}.bp-progress{height:7px;background:#e5e8e2;border-radius:9px;overflow:hidden}.bp-progress>div{height:100%;background:var(--bp-gold);transition:width .2s}.bp-stepcount{font-size:12px;color:#758078}.bp-step[hidden]{display:none!important}.bp-label{display:block;font-size:13px;font-weight:700;margin:19px 0 7px}.bp-label span,.bp-consent span{color:#9d512c}.bp-wrap input:not([type=checkbox]),.bp-wrap textarea,.bp-wrap select{width:100%;padding:12px;border:1px solid #cbd4ca;border-radius:11px;background:white;color:#263630;font:inherit}.bp-wrap textarea{min-height:95px}.bp-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.bp-options label{border:1px solid var(--bp-line);border-radius:10px;padding:11px;display:flex;align-items:center;gap:8px;font-size:13px}.bp-consent{display:flex;gap:12px;align-items:flex-start;margin:24px 0;font-size:13px}.bp-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.bp-actions button,.bp-button{display:inline-block;border:1px solid var(--bp-dark);background:var(--bp-dark);color:white!important;border-radius:11px;padding:12px 17px;font-weight:700;text-decoration:none;cursor:pointer}.bp-actions button:first-child:not(:last-child){background:white;color:var(--bp-dark)}.bp-actions [hidden]{display:none}.bp-note{font-size:12px;color:#6b786f}.bp-lead{border-top:1px solid #e0e5de;padding:15px 0}.bp-lead summary{cursor:pointer;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.bp-lead summary span{color:#69756d;font-size:12px}.bp-lead dt{font-size:12px;color:#788379;font-weight:700;margin-top:10px}.bp-lead dd{margin:0 0 8px}.bp-lead form{border-top:1px solid #e0e5de;margin-top:16px;padding-top:12px}.bp-lead form select{max-width:260px}.bp-lead form button{margin-left:8px}.bp-photo-list{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}@media(max-width:450px){.bp-options{grid-template-columns:1fr}.bp-card{padding:17px}.bp-lead form button{margin:10px 0 0}}

/* Painel 2.0 */
.bp-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.bp-metric{background:#fff;border:1px solid #e3e8e5;border-radius:15px;padding:18px;display:flex;flex-direction:column;gap:8px}.bp-metric span{font-size:13px;color:#51615c}.bp-metric strong{font-size:30px;color:#193a31}.bp-v2 .bp-lead{border:1px solid #e5e9e5;border-radius:12px;padding:15px;margin:12px 0}.bp-v2 .bp-lead summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.bp-note-item{border-left:3px solid #c99d5d;background:#f7f8f6;padding:8px 12px;margin:8px 0}.bp-note-item p{margin:5px 0;white-space:normal}.bp-inline-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.bp-inline-form select{max-width:240px}@media(max-width:700px){.bp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bp-metric{padding:12px}.bp-metric strong{font-size:25px}}

/* Painel comercial 2.1 */
.bp-dashboard{max-width:1100px}.bp-dashboard .bp-hero{padding:30px}.bp-crm-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.bp-crm-heading h3{margin:0}.bp-export{font-weight:700;color:#235a48}.bp-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;margin:20px 0}.bp-filters label{font-weight:650;font-size:13px}.bp-filters input,.bp-filters select{display:block;margin-top:7px}.bp-crm .bp-lead[hidden],.bp-crm [hidden]{display:none!important}.bp-v2 .bp-lead{background:#fff;transition:border-color .2s}.bp-v2 .bp-lead[open]{border-color:#b9cfc2}.bp-v2 .bp-lead summary{align-items:center;list-style:none}.bp-v2 .bp-lead summary::-webkit-details-marker{display:none}.bp-client-title{display:flex;flex-direction:column;gap:4px}.bp-client-title small{color:#718078;font-weight:400}.bp-status{font-size:12px;font-weight:700;border-radius:999px;padding:6px 11px;background:#edf0ed;color:#44574d}.bp-status-contato{background:#e9f1ff;color:#2857a2}.bp-status-proposta{background:#fdf1d7;color:#825c14}.bp-status-negociacao{background:#f7e8fd;color:#744493}.bp-status-fechado{background:#e0f5e8;color:#23663d}.bp-status-perdido{background:#fce8e8;color:#9b3434}.bp-crm .bp-lead dl{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,2fr);gap:5px 16px}.bp-crm .bp-lead dt{margin:0}.bp-crm .bp-lead dd{overflow-wrap:anywhere}@media(max-width:650px){.bp-filters{grid-template-columns:1fr}.bp-crm .bp-lead dl{display:block}.bp-crm .bp-lead dt{margin-top:12px}}

/* CRM 2.2 — também aplicado no painel administrativo */
.bp-dashboard{max-width:1160px;margin:24px auto!important}.bp-dashboard .bp-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.bp-dashboard .bp-metric{box-shadow:0 4px 18px #153b2b0d}.bp-dashboard .bp-card{margin:18px 0;padding:24px}.bp-dashboard .bp-filters{display:grid!important;grid-template-columns:2fr 1fr;align-items:end;gap:16px}.bp-dashboard .bp-filters input,.bp-dashboard .bp-filters select{width:100%;max-width:none}.bp-dashboard .bp-lead{background:white;border:1px solid #e0e8e2;border-radius:14px;padding:20px;margin:12px 0}.bp-dashboard .bp-lead summary{align-items:center;gap:14px}.bp-dashboard .bp-followup{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.bp-dashboard .bp-followup label{font-weight:700}.bp-dashboard .bp-followup input{max-width:190px}.bp-dashboard .bp-followup small{flex-basis:100%;color:#66766b}.bp-followup-alert{border-left:4px solid #b58a56!important}.bp-dashboard .bp-inline-form button{margin:0}.bp-dashboard .bp-lead .bp-status{font-size:12px}.bp-dashboard .bp-client-title{display:flex;flex-direction:column;gap:3px}@media(max-width:780px){.bp-dashboard .bp-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bp-dashboard .bp-filters{grid-template-columns:1fr}}

/* Briefing Pro 2.3 */
.bp-deal,.bp-activity{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:16px 0 24px;padding:18px;background:#f7f9f7;border-radius:14px}.bp-deal label,.bp-activity label{display:flex;flex-direction:column;gap:6px;font-weight:600}.bp-deal input,.bp-activity select,.bp-activity textarea{width:100%;box-sizing:border-box}.bp-deal button,.bp-activity button{align-self:end}.bp-timeline{list-style:none;margin:0 0 22px;padding:0;border-left:3px solid #bd8e58}.bp-timeline li{padding:10px 16px;margin:0 0 6px 12px;background:#f7f9f7;border-radius:8px}.bp-timeline li small{margin-left:10px;color:#68736e}.bp-timeline li p{margin:6px 0 0;white-space:normal}@media(max-width:700px){.bp-deal,.bp-activity{grid-template-columns:1fr}}

/* Briefing Pro 2.5 - portal da marcenaria */
.bp-portal-shell{max-width:1500px;margin:0 auto;padding:0 16px 40px;font-family:inherit;color:#18332c}
.bp-portal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 25px;margin:16px auto 24px;background:#15352e;color:#fff;border-radius:18px;flex-wrap:wrap}
.bp-portal-header small{display:block;color:#edc990;letter-spacing:1.5px;font-size:11px}.bp-portal-header strong{font-size:21px}
.bp-portal-header nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.bp-portal-header a{color:#fff;border:1px solid #ffffff88;border-radius:9px;padding:8px 15px;text-decoration:none}
.bp-portal-main .bp-wrap{max-width:none;margin:0;padding:0}.bp-portal-login{min-height:70vh;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:32px}.bp-portal-brand{padding:48px 32px;background:#15352e;color:#fff;border-radius:24px}.bp-portal-brand small{color:#edc990;letter-spacing:2px}.bp-portal-brand h1{color:#fff;font-size:clamp(30px,4vw,52px);line-height:1.1}.bp-portal-login-card{padding:32px;background:#fff;border:1px solid #e8e6df;border-radius:22px;box-shadow:0 8px 30px #0000000b}.bp-portal-login-card label{display:block;margin:14px 0 6px}.bp-portal-login-card input[type=text],.bp-portal-login-card input[type=password]{display:block;width:100%;box-sizing:border-box;padding:12px;border:1px solid #d6d8d5;border-radius:9px}.bp-portal-login-card input[type=submit]{background:#15352e;color:#fff;border:0;border-radius:9px;padding:12px 24px;cursor:pointer}.bp-portal-login-card a{color:#15352e}
@media(max-width:750px){.bp-portal-login{grid-template-columns:1fr;gap:15px}.bp-portal-brand{padding:28px}.bp-portal-login-card{padding:22px}.bp-portal-header{padding:16px}.bp-portal-header strong{font-size:17px}}

/* 0.6.4: manter o rótulo Voltar legível sobre o fundo claro. */
.bp-form .bp-actions button[data-bp-back]{background:#fff!important;color:#18322d!important;border:1px solid #18322d!important;}
.bp-form .bp-actions button[data-bp-back]:focus-visible{outline:3px solid #b58a56;outline-offset:2px;}

/* 0.6.5: seletor correto e especificidade contra regras globais do tema. */
.bp-wrap .bp-actions button[data-bp-back], .bp-wrap .bp-actions button[data-bp-back]:hover, .bp-wrap .bp-actions button[data-bp-back]:focus { color:#18322d !important; -webkit-text-fill-color:#18322d !important; background-color:#fff !important; border:1px solid #18322d !important; opacity:1 !important; }
